/*
Theme Name: Alexis Formations
Theme URI: https://example.com/alexis-formations
Author: Marie-Liesse de Roquefeuil
Author URI: https://example.com
Description: Thème de vente de formations en ligne, inspiré d'une application mobile : catalogue, fiche formation, achat à l'unité, lecteur de leçon, bibliothèque et compte. Typographie Instrument Serif + Manrope, noir et blanc avec un seul accent ocre.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alexis-formations
Tags: education, portfolio, one-column, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. Jetons de design
   ========================================================================== */

:root {
	--af-noir: #0A0A0A;
	--af-blanc: #FFFFFF;
	--af-texte: #111111;
	--af-texte-doux: #5B5852;
	--af-texte-mute: #8C8880;
	--af-texte-faible: #B4B0A8;
	--af-ocre: #8A6A2F;
	--af-ocre-clair: #C99B43;
	--af-bord: #ECEAE5;
	--af-bord-fin: #F1EFEB;
	--af-fond-doux: #FAF9F7;
	--af-fond-gris: #F6F5F2;
	--af-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
	--af-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--af-mono: ui-monospace, Menlo, Consolas, monospace;
	--af-rayon: 16px;
	--af-rayon-sm: 12px;
	--af-largeur: 1120px;
	--af-gouttiere: 20px;
	--af-motif: repeating-linear-gradient(135deg, #F4F2EE 0 10px, #EAE7E1 10px 20px);
	--af-motif-fin: repeating-linear-gradient(135deg, #EFEDE8 0 6px, #E4E1DB 6px 12px);
	--af-ombre: 0 10px 30px rgba(0, 0, 0, .08);
	--af-ombre-sm: 0 8px 22px rgba(0, 0, 0, .07);
}

/* ==========================================================================
   2. Réinitialisation et base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--af-blanc);
	color: var(--af-texte);
	font: 400 15px/1.6 var(--af-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--af-texte); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--af-ocre); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--af-ocre);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Typographie des titres : voir assets/css/titres.css (source unique). */

p { margin: 0 0 1.1em; text-wrap: pretty; }

ul, ol { padding-left: 1.2em; }

blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 2px solid var(--af-ocre);
	font: 400 20px/1.5 var(--af-serif);
	color: var(--af-texte-doux);
}

code, kbd, pre, samp { font-family: var(--af-mono); font-size: .92em; }

pre {
	padding: 18px;
	background: var(--af-fond-doux);
	border: 1px solid var(--af-bord);
	border-radius: var(--af-rayon-sm);
	overflow-x: auto;
}

hr { border: 0; border-top: 1px solid var(--af-bord); margin: 2.4em 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--af-bord-fin); text-align: left; }
th { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--af-texte-mute); }

/* ==========================================================================
   3. Accessibilité
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--af-blanc);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, .6);
	clip: auto !important;
	clip-path: none;
	color: var(--af-noir);
	display: block;
	font: 600 14px/1 var(--af-sans);
	height: auto;
	left: 6px;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 6px;
	width: auto;
	z-index: 100000;
}

/* ==========================================================================
   4. Utilitaires et éléments partagés
   ========================================================================== */

.af-enveloppe { max-width: var(--af-largeur); margin: 0 auto; padding: 0 var(--af-gouttiere); }
.af-enveloppe--etroite { max-width: 720px; }

.af-kicker {
	display: block;
	font: 500 10px/1 var(--af-mono);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--af-texte-mute);
}

/* Typographie des titres : voir assets/css/titres.css (source unique). */

.af-serif { font-family: var(--af-serif); font-weight: 400; letter-spacing: .01em; }

.af-motif { background: var(--af-motif); }
.af-motif--fin { background: var(--af-motif-fin); }

.af-vignette { position: relative; overflow: hidden; background: var(--af-motif); }
.af-vignette img { width: 100%; height: 100%; object-fit: cover; }
.af-vignette--169 { aspect-ratio: 16 / 9; }
.af-vignette--carre { aspect-ratio: 1 / 1; }
.af-vignette--mini { flex: none; width: 56px; height: 56px; border-radius: 9px; }

.af-etiquette {
	display: inline-block;
	font: 500 10px/1 var(--af-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--af-ocre);
}

.af-prix { font: 600 16px/1 var(--af-sans); color: var(--af-texte); }
.af-prix--gros { font-size: 22px; }
.af-accent { color: var(--af-ocre); }

.af-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font: 500 11.5px/1.4 var(--af-sans);
	color: var(--af-texte-mute);
	margin: 0;
}
.af-meta span + span::before { content: '·'; margin-right: 8px; color: var(--af-texte-faible); }

/* Boutons */

.af-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 22px;
	border: 1px solid transparent;
	border-radius: 100px;
	background: var(--af-noir);
	color: var(--af-blanc);
	font: 600 13px/1 var(--af-sans);
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
	text-align: center;
}
.af-btn:hover, .af-btn:focus { color: var(--af-blanc); opacity: .86; transform: translateY(-1px); }
.af-btn--fluide { width: 100%; }
.af-btn--fantome { background: transparent; color: var(--af-texte); border-color: var(--af-bord); }
.af-btn--fantome:hover, .af-btn--fantome:focus { color: var(--af-texte); background: var(--af-fond-doux); opacity: 1; }
.af-btn--ocre { background: var(--af-ocre); }
.af-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.af-btn .af-fleche { font: 400 14px/1 var(--af-sans); }

/* Puces de filtre */

.af-puces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.af-puces::-webkit-scrollbar { display: none; }

.af-puce {
	flex: none;
	padding: 9px 15px;
	border: 0;
	border-radius: 100px;
	background: var(--af-fond-gris);
	color: var(--af-texte-doux);
	font: 600 11.5px/1 var(--af-sans);
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
	white-space: nowrap;
}
.af-puce:hover { background: #EDEBE6; color: var(--af-texte); }
.af-puce.est-active { background: var(--af-noir); color: var(--af-blanc); }

/* Champ de recherche */

.af-recherche { display: flex; align-items: center; gap: 10px; background: var(--af-fond-gris); border-radius: var(--af-rayon-sm); padding: 12px 14px; }
.af-recherche svg { flex: none; color: #A8A49C; }
.af-recherche input {
	flex: 1;
	border: 0;
	background: transparent;
	font: 400 13.5px/1.2 var(--af-sans);
	color: var(--af-texte);
	min-width: 0;
}
.af-recherche input::placeholder { color: #9A968E; }
.af-recherche input:focus { outline: none; }
.af-recherche:focus-within { outline: 2px solid var(--af-ocre); outline-offset: 2px; }

/* Barre de progression */

.af-jauge { height: 3px; border-radius: 2px; background: #EFEDE8; overflow: hidden; }
.af-jauge__valeur { display: block; height: 100%; background: var(--af-ocre-clair); border-radius: 2px; transition: width .3s ease; }

/* ==========================================================================
   5. Animations
   ========================================================================== */

@keyframes af-fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes af-scrIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes af-popIn { 0% { opacity: 0; transform: scale(.9); } 60% { transform: scale(1.02); } 100% { opacity: 1; transform: scale(1); } }
@keyframes af-pulseRing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

.af-anim-monte { animation: af-fadeUp .35s ease both; }
.af-anim-glisse { animation: af-scrIn .28s ease both; }

/* ==========================================================================
   6. En-tête
   ========================================================================== */

.af-entete {
	background: var(--af-noir);
	color: var(--af-blanc);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .af-entete { top: 32px; }

.af-entete__interieur {
	max-width: var(--af-largeur);
	margin: 0 auto;
	padding: 18px var(--af-gouttiere);
	display: flex;
	align-items: center;
	gap: 24px;
}

.af-marque { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.af-marque .af-kicker { color: rgba(255, 255, 255, .45); }
.af-marque__titre {
	margin: 0;
	font: 400 22px/1.15 var(--af-serif);
	letter-spacing: .01em;
}
.af-marque__titre a { color: var(--af-blanc); }
.af-marque__titre a:hover, .af-marque__titre a:focus { color: rgba(255, 255, 255, .7); }
.af-marque img { max-height: 40px; width: auto; }

.af-nav { margin-left: auto; }
.af-nav ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.af-nav a {
	color: rgba(255, 255, 255, .62);
	font: 600 12.5px/1 var(--af-sans);
	letter-spacing: .01em;
	padding: 6px 0;
	display: block;
}
.af-nav a:hover, .af-nav a:focus { color: var(--af-blanc); }
.af-nav .current-menu-item > a,
.af-nav .current_page_item > a,
.af-nav .current-menu-ancestor > a { color: var(--af-blanc); }
.af-nav .sub-menu {
	display: none;
	position: absolute;
	background: #151515;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	padding: 8px;
	flex-direction: column;
	gap: 2px;
	min-width: 190px;
	z-index: 60;
}
.af-nav li { position: relative; }
.af-nav li:hover > .sub-menu,
.af-nav li:focus-within > .sub-menu { display: flex; }
.af-nav .sub-menu a { padding: 8px 12px; border-radius: 6px; }
.af-nav .sub-menu a:hover { background: rgba(255, 255, 255, .07); }

.af-avatar {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(160deg, #3A3A3A, #151515);
	border: 1px solid rgba(255, 255, 255, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 600 11px/1 var(--af-sans);
	color: rgba(255, 255, 255, .8);
	overflow: hidden;
}
.af-avatar:hover, .af-avatar:focus { color: var(--af-blanc); border-color: rgba(255, 255, 255, .4); }
.af-avatar img { width: 100%; height: 100%; object-fit: cover; }

.af-bascule {
	display: none;
	margin-left: auto;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 10px;
	color: var(--af-blanc);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
}
.af-bascule span { display: block; width: 15px; height: 1.5px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.af-bascule[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.af-bascule[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.af-bascule[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ==========================================================================
   7. Barre d'onglets (mobile)
   ========================================================================== */

.af-onglets {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--af-noir);
	padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	z-index: 60;
}
.af-onglets ul { display: flex; list-style: none; margin: 0; padding: 0; }
.af-onglets li { flex: 1; }
.af-onglets a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 7px 0;
	color: rgba(255, 255, 255, .42);
	font: 600 9.5px/1 var(--af-sans);
	letter-spacing: .02em;
	transition: color .2s ease;
}
.af-onglets a:hover, .af-onglets a:focus, .af-onglets .est-active a { color: var(--af-blanc); }
.af-onglets svg { width: 15px; height: 15px; }

/* ==========================================================================
   8. Accueil
   ========================================================================== */

.af-heros {
	padding: 54px 0 44px;
	border-bottom: 1px solid var(--af-bord);
}
.af-heros__accroche { max-width: 15ch; }
.af-heros__sous {
	margin: 0 0 26px;
	max-width: 52ch;
	font: 400 15px/1.65 var(--af-sans);
	color: var(--af-texte-doux);
}
.af-heros__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.af-bloc { padding: 46px 0; }
.af-bloc + .af-bloc { border-top: 1px solid var(--af-bord-fin); }
.af-bloc__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.af-bloc__entete .af-section-titre { margin: 0; }
.af-bloc__lien { font: 500 12px/1 var(--af-sans); color: var(--af-texte-mute); }

/* Formation mise en avant */

.af-phare {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	border: 1px solid var(--af-bord);
	border-radius: var(--af-rayon);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}
.af-phare:hover { box-shadow: var(--af-ombre); transform: translateY(-2px); }
.af-phare .af-vignette { height: 100%; min-height: 260px; }
.af-phare__corps { padding: 30px 32px 32px; display: flex; flex-direction: column; gap: 12px; }
.af-phare__desc { margin: 0; font: 400 13.5px/1.62 var(--af-sans); color: var(--af-texte-doux); }
.af-phare__pied {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--af-bord-fin);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.af-phare__vie { font: 600 12px/1 var(--af-sans); color: var(--af-ocre); }

/* ==========================================================================
   9. Cartes et lignes de formation
   ========================================================================== */

.af-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}

.af-carte {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--af-bord);
	border-radius: 14px;
	overflow: hidden;
	background: var(--af-blanc);
	transition: box-shadow .22s ease, transform .22s ease;
}
.af-carte:hover { box-shadow: var(--af-ombre-sm); transform: translateY(-2px); }
.af-carte__corps { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.af-carte__titre a { display: block; }
.af-carte__titre a::after { content: ''; position: absolute; inset: 0; }
.af-carte { position: relative; }
.af-carte .af-meta { margin-top: auto; font-size: 11px; }
.af-carte .af-prix { font-size: 14px; }

.af-liste { display: flex; flex-direction: column; }
.af-ligne {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 12px;
	border-top: 1px solid var(--af-bord-fin);
	transition: background .18s ease;
}
.af-ligne:last-child { border-bottom: 1px solid var(--af-bord-fin); }
.af-ligne:hover { background: var(--af-fond-doux); }
.af-ligne__num { flex: none; width: 22px; font: 400 11px/1 var(--af-mono); color: var(--af-texte-faible); }
.af-ligne .af-vignette { flex: none; width: 78px; height: 78px; border-radius: 10px; }
.af-ligne__corps { flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.af-ligne__titre a::after { content: ''; position: absolute; inset: 0; }
.af-ligne__prix { flex: none; font: 600 14px/1 var(--af-sans); }

.af-vide {
	padding: 72px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.af-vide__rond { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #E4E1DB; }
.af-vide p { margin: 0; max-width: 42ch; font: 400 13px/1.6 var(--af-sans); color: var(--af-texte-mute); }

/* ==========================================================================
   10. Fiche formation
   ========================================================================== */

.af-fiche { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding: 40px 0 80px; }

.af-fiche__media { border-radius: var(--af-rayon); overflow: hidden; margin-bottom: 28px; }
.af-fiche__etiquette { margin-bottom: 12px; }
.af-fiche__accroche { margin: 0 0 24px; font: 400 15px/1.65 var(--af-sans); color: var(--af-texte-doux); max-width: 58ch; }

.af-stats { display: flex; flex-wrap: wrap; gap: 34px; padding: 22px 0; border-top: 1px solid var(--af-bord); border-bottom: 1px solid var(--af-bord); }
.af-stat { display: flex; flex-direction: column; gap: 5px; }
.af-stat__valeur { font: 600 17px/1 var(--af-sans); }
.af-stat__label { font: 500 10.5px/1 var(--af-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--af-texte-mute); }

.af-contenu { padding: 30px 0; font-size: 15px; line-height: 1.7; color: var(--af-texte-doux); }
.af-contenu a { color: var(--af-ocre); text-decoration: underline; text-underline-offset: 3px; }

/* Programme */

.af-programme { margin: 8px 0 0; padding: 0; list-style: none; }
.af-programme__item { border-top: 1px solid var(--af-bord-fin); }
.af-programme__item:last-child { border-bottom: 1px solid var(--af-bord-fin); }
.af-programme__lien {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 15px 10px;
	transition: background .18s ease;
}
.af-programme__lien:hover { background: var(--af-fond-doux); }
.af-programme__num { flex: none; width: 22px; font: 400 11px/1 var(--af-mono); color: var(--af-texte-faible); }
.af-programme__titre { flex: 1; font: 500 14px/1.35 var(--af-sans); color: var(--af-texte); }
.af-programme__duree { flex: none; font: 400 11.5px/1 var(--af-mono); color: var(--af-texte-mute); }
.af-programme__badge {
	flex: none;
	font: 600 10px/1 var(--af-sans);
	color: var(--af-ocre);
	padding: 5px 8px;
	border: 1px solid #E6DCC6;
	border-radius: 100px;
}
.af-programme__cadenas { flex: none; width: 9px; height: 9px; border-radius: 2px; background: #EFEDE8; }
.af-programme__coche { flex: none; color: var(--af-ocre-clair); }
.af-programme__item.est-lue .af-programme__titre { color: var(--af-texte-mute); }

/* Formateur */

.af-formateur {
	margin-top: 34px;
	padding: 28px;
	background: var(--af-fond-doux);
	border-radius: var(--af-rayon);
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.af-formateur__photo { flex: none; width: 62px; height: 62px; border-radius: 50%; background: var(--af-motif-fin); overflow: hidden; }
.af-formateur__photo img { width: 100%; height: 100%; object-fit: cover; }
.af-formateur p { margin: 0; font: 400 13px/1.65 var(--af-sans); color: var(--af-texte-doux); }

/* Encart d'achat (colonne latérale) */

.af-achat {
	position: sticky;
	top: 104px;
	border: 1px solid var(--af-bord);
	border-radius: var(--af-rayon);
	padding: 24px;
	background: var(--af-blanc);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.af-achat__prix { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.af-achat__note { font: 400 11px/1.5 var(--af-sans); color: var(--af-texte-faible); text-align: center; margin: 0; }
.af-inclus { list-style: none; margin: 0; padding: 16px; background: var(--af-fond-doux); border-radius: var(--af-rayon-sm); display: flex; flex-direction: column; gap: 9px; }
.af-inclus li { display: flex; gap: 10px; align-items: flex-start; font: 400 12.5px/1.45 var(--af-sans); color: #3F3D39; }
.af-inclus li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--af-ocre); }

/* Barre d'achat collante (mobile) */

.af-barre-achat {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 55;
	background: var(--af-blanc);
	border-top: 1px solid var(--af-bord);
	padding: 12px var(--af-gouttiere) calc(12px + env(safe-area-inset-bottom));
	align-items: center;
	gap: 14px;
	animation: af-fadeUp .3s ease both;
}
.af-barre-achat__prix { display: flex; flex-direction: column; gap: 2px; }
.af-barre-achat__sous { font: 400 10.5px/1 var(--af-sans); color: var(--af-texte-mute); }
.af-barre-achat .af-btn { flex: 1; }

/* ==========================================================================
   11. Lecteur de leçon
   ========================================================================== */

.af-lecteur { padding-bottom: 60px; }

.af-lecteur__scene { background: var(--af-noir); padding: 16px 0 22px; }
.af-lecteur__barre {
	max-width: var(--af-largeur);
	margin: 0 auto 14px;
	padding: 0 var(--af-gouttiere);
	display: flex;
	align-items: center;
	gap: 12px;
}
.af-retour {
	flex: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: 0;
	color: var(--af-blanc);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 400 14px/1 var(--af-sans);
	cursor: pointer;
	transition: background .2s ease;
}
.af-retour:hover, .af-retour:focus { background: rgba(255, 255, 255, .24); color: var(--af-blanc); }
.af-lecteur__fil { flex: 1; font: 500 12px/1.3 var(--af-sans); color: rgba(255, 255, 255, .55); }
.af-lecteur__fil a { color: rgba(255, 255, 255, .55); }
.af-lecteur__fil a:hover { color: var(--af-blanc); }

.af-lecteur__cadre {
	max-width: var(--af-largeur);
	margin: 0 auto;
	padding: 0 var(--af-gouttiere);
}
.af-lecteur__video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--af-rayon-sm);
	overflow: hidden;
	background: radial-gradient(120% 100% at 50% 0%, #232323 0%, #0E0E0E 70%);
	display: flex;
	align-items: center;
	justify-content: center;
}
.af-lecteur__video video,
.af-lecteur__video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.af-lecteur__attente { color: rgba(255, 255, 255, .35); font: 400 11px/1 var(--af-mono); }
.af-lecteur__badge { position: absolute; top: 12px; left: 12px; font: 400 9.5px/1 var(--af-mono); color: rgba(255, 255, 255, .35); }

.af-lecteur__infos { padding: 30px 0 22px; border-bottom: 1px solid var(--af-bord); }
.af-lecteur__num { display: inline-block; margin-bottom: 10px; font: 500 10px/1 var(--af-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--af-texte-mute); }
.af-lecteur__note { margin: 0; font: 400 14px/1.65 var(--af-sans); color: var(--af-texte-doux); max-width: 62ch; }

.af-lecteur__nav { display: flex; gap: 12px; padding: 22px 0; flex-wrap: wrap; }

.af-lecteur__suite { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.af-lecteur__entete-suite { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.af-lecteur__pct { font: 500 11.5px/1 var(--af-sans); color: var(--af-ocre); }
.af-programme__item.est-courante { background: var(--af-fond-doux); }
.af-programme__item.est-courante .af-programme__titre { color: var(--af-texte); font-weight: 600; }

/* ==========================================================================
   12. Bibliothèque et compte
   ========================================================================== */

.af-page { padding: 44px 0 80px; }
.af-page__entete { margin-bottom: 30px; }
.af-page__sous { margin: 0; font: 400 14px/1.6 var(--af-sans); color: var(--af-texte-mute); }

.af-biblio { display: flex; flex-direction: column; }
.af-biblio__item { position: relative; padding: 22px 12px; border-bottom: 1px solid var(--af-bord-fin); display: flex; flex-direction: column; gap: 12px; transition: background .18s ease; }
.af-biblio__item:hover { background: var(--af-fond-doux); }
.af-biblio__haut { display: flex; gap: 16px; align-items: center; }
.af-biblio__haut .af-vignette { flex: none; width: 66px; height: 66px; border-radius: 10px; }
.af-biblio__corps { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.af-biblio__titre a::after { content: ''; position: absolute; inset: 0; }
.af-biblio__reprise { font: 400 12px/1.4 var(--af-sans); color: var(--af-texte-mute); }
.af-biblio__pct { flex: none; font: 600 12px/1 var(--af-sans); color: var(--af-ocre); }

.af-compte__profil { display: flex; gap: 18px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--af-bord); }
.af-compte__photo { flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: var(--af-motif-fin); }
.af-compte__photo img { width: 100%; height: 100%; object-fit: cover; }
.af-compte__role { font: 400 12.5px/1 var(--af-sans); color: var(--af-texte-mute); }

.af-compte__stats { display: flex; border-bottom: 1px solid var(--af-bord); flex-wrap: wrap; }
.af-compte__stat { flex: 1 1 33%; padding: 20px 16px; display: flex; flex-direction: column; gap: 5px; border-right: 1px solid var(--af-bord-fin); }
.af-compte__stat:last-child { border-right: 0; }
.af-compte__stat b { font: 600 19px/1 var(--af-sans); }

.af-compte__liens { list-style: none; margin: 0; padding: 0; }
.af-compte__liens li { border-bottom: 1px solid var(--af-bord-fin); }
.af-compte__liens a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 17px 12px;
	font: 500 14px/1 var(--af-sans);
	transition: background .18s ease;
}
.af-compte__liens a:hover { background: var(--af-fond-doux); }
.af-compte__liens .af-fleche { color: var(--af-texte-faible); }

/* Formulaires de connexion */

.af-formulaire { max-width: 420px; }
.af-champ { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.af-champ label { font: 600 11.5px/1 var(--af-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--af-texte-mute); }
.af-champ input,
.af-champ textarea,
.af-champ select {
	border: 1px solid var(--af-bord);
	border-radius: var(--af-rayon-sm);
	padding: 13px 14px;
	font: 400 14px/1.3 var(--af-sans);
	color: var(--af-texte);
	background: var(--af-blanc);
	width: 100%;
}
.af-champ input:focus { outline: 2px solid var(--af-ocre); outline-offset: 1px; border-color: transparent; }

/* ==========================================================================
   13. Notification
   ========================================================================== */

.af-toast {
	position: fixed;
	left: 50%;
	bottom: 34px;
	transform: translateX(-50%);
	background: var(--af-noir);
	color: var(--af-blanc);
	border-radius: var(--af-rayon-sm);
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	font: 500 12.5px/1.4 var(--af-sans);
	z-index: 90;
	animation: af-popIn .3s ease both;
	max-width: calc(100vw - 40px);
	box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}
.af-toast::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--af-ocre-clair); }

/* ==========================================================================
   14. Articles, pages, recherche, 404
   ========================================================================== */

.af-article { padding: 44px 0 60px; }
.af-article__entete { margin-bottom: 26px; }
.af-article__meta { font: 500 11.5px/1 var(--af-sans); color: var(--af-texte-mute); }
.af-article__media { margin-bottom: 30px; border-radius: var(--af-rayon); overflow: hidden; }

.af-pagination { display: flex; gap: 8px; justify-content: center; padding: 34px 0; flex-wrap: wrap; }
.af-pagination .page-numbers {
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--af-bord);
	border-radius: 100px;
	font: 600 12.5px/1 var(--af-sans);
}
.af-pagination .page-numbers.current { background: var(--af-noir); color: var(--af-blanc); border-color: var(--af-noir); }
.af-pagination a.page-numbers:hover { background: var(--af-fond-doux); color: var(--af-texte); }

.af-commentaires { padding: 20px 0 40px; border-top: 1px solid var(--af-bord); }
.af-commentaires .comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.af-commentaires .comment-list li { padding: 18px 0; border-bottom: 1px solid var(--af-bord-fin); }
.af-commentaires .children { list-style: none; padding-left: 24px; }

/* ==========================================================================
   15. Pied de page
   ========================================================================== */

.af-pied { background: var(--af-noir); color: rgba(255, 255, 255, .6); padding: 54px 0 40px; margin-top: 60px; }
.af-pied__interieur { max-width: var(--af-largeur); margin: 0 auto; padding: 0 var(--af-gouttiere); display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.af-pied__marque { font: 400 22px/1.2 var(--af-serif); color: var(--af-blanc); margin: 0 0 8px; }
.af-pied__desc { margin: 0; max-width: 40ch; font: 400 12.5px/1.65 var(--af-sans); }
.af-pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.af-pied a { color: rgba(255, 255, 255, .6); font: 500 12.5px/1.9 var(--af-sans); }
.af-pied a:hover, .af-pied a:focus { color: var(--af-blanc); }
.af-pied__bas { max-width: var(--af-largeur); margin: 34px auto 0; padding: 20px var(--af-gouttiere) 0; border-top: 1px solid rgba(255, 255, 255, .1); font: 400 11.5px/1.6 var(--af-sans); color: rgba(255, 255, 255, .38); }

/* ==========================================================================
   16. Classes de l'éditeur WordPress
   ========================================================================== */

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: calc(var(--af-largeur) + 120px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; }
.wp-caption { margin-bottom: 1.6em; max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption { font: 400 12px/1.5 var(--af-sans); color: var(--af-texte-mute); text-align: center; margin-top: 8px; }
.sticky .af-carte__titre::before { content: '★ '; color: var(--af-ocre); }
.gallery-caption { display: block; }
.bypostauthor > .comment-body { border-left: 2px solid var(--af-ocre); padding-left: 14px; }
.wp-block-button__link { border-radius: 100px; background: var(--af-noir); }

/* ==========================================================================
   17. Adaptatif
   ========================================================================== */

@media (max-width: 1024px) {
	.af-fiche,
	.af-lecteur__suite { grid-template-columns: 1fr; gap: 34px; }
	.af-achat { position: static; }
	.af-phare { grid-template-columns: 1fr; }
	.af-phare .af-vignette { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 860px) {
	:root { --af-gouttiere: 18px; }

	.af-bascule { display: flex; }
	.af-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--af-noir);
		border-top: 1px solid rgba(255, 255, 255, .12);
		padding: 12px var(--af-gouttiere) 20px;
	}
	.af-nav.est-ouverte { display: block; }
	.af-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.af-nav a { padding: 12px 4px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
	.af-nav .sub-menu { display: flex; position: static; background: transparent; border: 0; padding: 0 0 0 14px; }
	.af-entete { position: sticky; }
	.af-entete__interieur { padding: 14px var(--af-gouttiere); gap: 14px; position: relative; }
	.af-marque__titre { font-size: 19px; }

	.af-onglets { display: block; }
	body.af-a-onglets { padding-bottom: 82px; }
	body.af-a-barre-achat { padding-bottom: 158px; }
	.af-barre-achat { display: flex; bottom: 72px; }
	.af-toast { bottom: 104px; }

	.af-heros { padding: 36px 0 30px; }
	.af-bloc { padding: 32px 0; }
	.af-grille { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
	.af-phare__corps { padding: 22px 20px 24px; }
	.af-ligne { padding: 15px 4px; gap: 13px; }
	.af-ligne .af-vignette { width: 64px; height: 64px; }
	.af-fiche { padding: 24px 0 40px; }
	.af-formateur { padding: 22px 18px; flex-direction: column; }
	.af-stats { gap: 22px; }
	.af-lecteur__suite { gap: 24px; }
	.af-pied { padding: 40px 0 30px; margin-top: 40px; }
}

@media (max-width: 480px) {
	.af-grille { grid-template-columns: 1fr 1fr; }
	.af-carte__corps { padding: 11px 12px 13px; gap: 7px; }
	.af-carte .af-meta { font-size: 10.5px; }
	.af-compte__stat { flex: 1 1 33%; padding: 16px 10px; }
}

@media print {
	.af-entete, .af-onglets, .af-barre-achat, .af-pied, .af-achat, .af-toast { display: none !important; }
	body { padding: 0 !important; }
}
