/* ==========================================================================
   AGS — maquette statique
   Design system repris de NOTES_AGS_projet.md
   ========================================================================== */

:root {
	/* Couleurs — tokens réels relevés en Figma Dev Mode le 31/08/2026.
	   Bleu/900 documenté comme #00043A dans le swatch, mais chaque
	   instance réellement peinte (Teaser bg, titre H1 du Hero) utilise
	   #000B4B — on suit la valeur appliquée en pratique, pas le swatch. */
	--color-navy: #000B4B;         /* Bleu/900 */
	--color-navy-light: #002962;   /* Bleu/700 */
	--color-accent: #0095FF;       /* Bleu/400 */
	--color-accent-pale: #E5F4FF;  /* Bleu/50 */
	--color-red: #C8161F;          /* Rouge/400 */
	--color-white: #FFFFFF;        /* Neutre/blanc */
	--color-bg-light: #F1F3F7;     /* Neutre/paper */
	--color-bg-light-2: #E9ECF2;   /* Neutre/paper-2 */
	--color-text: #1F1F1F;         /* Neutre/gris */
	--color-text-muted: #6B7180;   /* Neutre/muted */
	--color-line: #E2E5EC;         /* Neutre/line */

	--font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-base: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--container-width: 1240px;
	--radius-sm: 14px;
	--radius-md: 20px;
	--radius-lg: 28px;
	--radius-pill: 999px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 17px;
	color: var(--color-text);
	background: var(--color-bg-light);
	line-height: 1.5;
}

h1, h2, h3, h4, h5,
.logo,
.hero-title,
.section-title,
.cta-final-title,
.formation-card h3,
.pricing-card h3,
.pricing-card .price {
	font-family: var(--font-heading);
	font-weight: 500;
}

img {
	max-width: 100%;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Les boutons n'heritent pas de la police de la page par defaut
   (reset navigateur) — sans ca ils s'affichent en Arial au lieu de
   DM Sans, confirme par Chrome sur tous les <button> du site. */
button {
	font-family: inherit;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 28px;
}

/* fond utilisé tant qu'aucune vraie photo n'est disponible pour
   cette section (actuellement : CTA final) */
.placeholder-bg {
	background: linear-gradient(135deg, #2f6f4e, #1b4d34);
}

/* Boutons
   -------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 13px;
	line-height: 13px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: box-shadow 0.3s ease-out, border-color 0.3s ease-out, color 0.3s ease-out;
}

.btn-primary:hover,
.btn-white:hover {
	box-shadow: 0 26px 50px -30px rgba(0, 4, 58, 0.25);
}

.btn-primary {
	background: var(--color-navy);
	color: var(--color-white);
}

.btn-outline {
	background: var(--color-white);
	border-color: var(--color-line);
	color: var(--color-navy);
}

.btn-outline:hover {
	border-color: #1F1F1F;
	color: #1F1F1F;
}

/* "Découvrir nos contenus" (Hero) correspond au composant Figma
   "Button Light" : vérifié composant par composant, son hover est
   la même ombre portée que "Button Dark" (S'abonner), rien d'autre
   — pas de changement de couleur/bordure. On annule donc ici le
   changement de couleur générique de .btn-outline:hover pour ce
   bouton précis, sans toucher aux autres usages de .btn-outline
   (Connexion, "Afficher tout le contenu") dont le hover Figma n'est
   pas re-confirmé par cette vérification. */
.hero-actions .btn-outline:hover {
	border-color: var(--color-line);
	color: var(--color-navy);
	box-shadow: 0 26px 50px -30px rgba(0, 4, 58, 0.25);
}

/* Le bouton "Connexion" de la nav est un vrai composant à part
   ("Button Ghost Dark" côté Figma) : fond transparent (pas blanc) et
   bordure foncée, à 80% d'opacité par défaut, 100% au survol — sans
   aucun changement de couleur au survol, contrairement au
   .btn-outline:hover générique (border-color/color → #1F1F1F) qu'on
   annule donc ici pour ce bouton précis. Spécifique à ce contexte,
   pas les autres usages de .btn-outline comme "Découvrir nos
   contenus" dans le Hero, qui n'ont pas cette réduction d'opacité en
   Figma. */
.header-actions .btn-outline {
	background: transparent;
	border-color: #1F1F1F;
	opacity: 0.8;
	transition: opacity 0.3s ease-out;
}

.header-actions .btn-outline:hover {
	opacity: 1;
	border-color: #1F1F1F;
	color: var(--color-navy);
}

.btn-white {
	background: var(--color-white);
	color: var(--color-navy);
}

.btn-outline-white {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--color-white);
}

.btn-red {
	background: var(--color-red);
	color: var(--color-white);
}

.btn-small {
	padding: 8px 18px;
	font-size: 13px;
}

/* Header
   -------------------------------------------------------------------- */

.site-header {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 910px;
	max-width: calc(100% - 32px);
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--radius-pill);
	opacity: 0;
	animation: header-fade-in 0.8s ease-in-out 2.3s forwards;
}

@keyframes header-fade-in {
	to {
		opacity: 1;
	}
}

/* Décale la navbar sous la barre d'admin WordPress (visible
   uniquement pour les utilisateurs connectés) — sans ça, notre
   position: fixed ignore la barre d'admin et se retrouve
   partiellement cachée derrière elle. */
body.admin-bar .site-header {
	top: calc(16px + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: calc(16px + 46px);
	}
}

/* Compense la navbar flottante (fixed) pour les liens d'ancre du menu
   (#a-propos, #formations, #tarifs, #partenaires) : sans ça, le
   scroll-behavior: smooth amène le haut de la section pile sous la
   fenêtre, et la navbar fixed le recouvre partiellement. */
#a-propos,
#formations,
#tarifs,
#partenaires {
	scroll-margin-top: 110px;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding: 10px 10px 10px 24px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 20px;
	color: var(--color-navy);
}

.main-nav {
	display: flex;
	gap: 12px;
	padding: 0 24px;
}

.main-nav li {
	list-style: none;
}

.main-nav a {
	font-size: 13px;
	line-height: 13px;
	font-weight: 600;
	color: var(--color-text);
	opacity: 0.8;
	padding: 16px 24px;
	white-space: nowrap;
	transition: opacity 0.3s ease-out, color 0.3s ease-out;
}

.main-nav a:hover {
	opacity: 1;
	color: var(--color-navy);
}

.header-actions {
	display: flex;
	gap: 16px;
}

/* Actions mobiles (icône compte + S'abonner) : masquées en desktop,
   affichées à la place de .header-actions sous 900px — cf. Figma
   Mobile-version, composant "Navigation Mobile / Sticky". */
.header-actions-mobile {
	display: none;
	align-items: center;
	gap: 16px;
}

.account-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 41px;
	height: 41px;
	border-radius: 50%;
	border: 1px solid rgba(31, 31, 31, 0.8);
	color: var(--color-text);
	flex-shrink: 0;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.nav-toggle span {
	width: 22px;
	height: 2px;
	background: var(--color-navy);
}

/* Hero
   -------------------------------------------------------------------- */

.hero {
	background: var(--color-bg-light);
	padding-top: 120px;
	padding-bottom: 24px;
}

/* Le frame Hero du Figma (1412px) est plus large que le container
   standard du site (1240px) et n'a que 12px de marge latérale au
   lieu de 28px — propre à cette section, confirmé via l'extraction
   directe des propriétés du frame ("HeroMain" 1182px + marge 12px de
   chaque côté ≈ 1184px, valeur reprise ici pour le container Hero). */
.hero .container {
	max-width: 1184px;
	padding: 0 12px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 611fr 531fr;
	gap: 40px;
	align-items: center;
	padding: 32px 0 16px;
}

/* Fondu croisé synchronisé avec .site-header : même délai, même
   durée, pour que la navbar prenne le relais du logo au même
   rythme plutôt que l'un après l'autre. */
.hero-logo {
	display: block;
	margin-bottom: 16px;
	opacity: 1;
	animation: hero-logo-fade-out 0.8s ease-out 2.3s forwards;
}

@keyframes hero-logo-fade-out {
	to {
		opacity: 0;
		transform: translateY(-40px);
	}
}

.hero-title {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 20px;
}

.text-accent {
	color: var(--color-accent);
}

.hero-title-accent {
	font-size: 42px;
	line-height: 57px;
	letter-spacing: -0.028em;
	color: var(--color-accent);
	white-space: nowrap;
}

.hero-title-dark {
	font-size: 38px;
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: var(--color-navy);
}

.hero-subtitle {
	max-width: 544px;
	margin: 0 0 32px;
	font-size: 18px;
	line-height: 28px;
	color: var(--color-text-muted);
}

.hero-actions {
	display: flex;
	gap: 12px;
}

.hero-stats {
	display: flex;
	gap: 12px;
	margin-top: 48px;
}

.stat {
	background: transparent;
	border: 1px solid var(--color-line);
	border-radius: 20px;
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.stat-number {
	font-size: 20px;
	line-height: 24px;
	letter-spacing: -0.01em;
	font-weight: 500;
	font-family: var(--font-heading);
	color: var(--color-navy);
}

.stat-label {
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--color-text-muted);
}

.hero-collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: center;
}

.hero-collage img {
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 24px;
}

.collage-stadium {
	grid-column: 1;
	grid-row: 1;
	aspect-ratio: 259.5 / 260;
}

.collage-hands {
	grid-column: 1;
	grid-row: 2;
	aspect-ratio: 259.5 / 211;
}

/* La colonne de droite ne fait que 380px de haut contre 483px pour
   la colonne de gauche (stade + mains empilées) — elle ne s'étire
   pas sur toute la hauteur, elle reste centrée verticalement entre
   les deux photos de gauche (confirmé par comparaison de capture,
   écarts haut/bas égaux), pas alignée en haut. */
.collage-sprinklers {
	grid-column: 2;
	grid-row: 1 / 3;
	aspect-ratio: 259.5 / 380;
}

.hero-ticker {
	margin-top: 48px;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-pill);
	padding: 20px 32px;
	color: var(--color-text);
}

/* En <img> + object-fit:cover, ce navigateur n'applique pas le clip
   du border-radius du parent (overflow:hidden) a l'image — confirme
   par un test isole, element neuf, bug reproduit a l'identique. Avec
   un background-image + background-size:cover, le clip fonctionne
   correctement : c'est pour ca que cette photo est en fond CSS et
   pas en balise <img> (voir hero.php). */
.ticker-photo {
	width: 80px;
	height: 45px;
	border-radius: var(--radius-pill);
	flex-shrink: 0;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.ticker-text {
	flex: 1;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-navy);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ticker-text strong {
	font-weight: 500;
}

.ticker-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--color-accent);
	font-weight: 600;
	font-size: 13px;
	line-height: 13px;
	flex-shrink: 0;
}

.dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-accent);
	display: inline-block;
}

/* Pill label / titres de section
   -------------------------------------------------------------------- */

.pill-label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--color-white);
	color: var(--color-navy);
	padding: 7px 14px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	line-height: 20.8px;
	letter-spacing: 0.26px;
	font-weight: 500;
	margin-bottom: 20px;
}

.pill-label .dot {
	width: 7px;
	height: 7px;
}

.pill-label-light {
	background: var(--color-white);
	color: var(--color-navy);
	padding: 8px 16px;
	gap: 8px;
}

.pill-label-light .dot {
	background: var(--color-accent);
}

.section-title {
	font-size: 42px;
	line-height: 57px;
	letter-spacing: -0.028em;
	margin: 0 0 48px;
	color: var(--color-navy);
}

.section-title-light {
	color: var(--color-white);
}

.section-title-center {
	text-align: center;
}

.section-title-small {
	font-size: 28px;
	font-weight: 400;
	line-height: 29.4px;
	letter-spacing: -0.025em;
}

/* À propos
   -------------------------------------------------------------------- */

.about {
	background: var(--color-bg-light);
	padding: 32px 0 48px;
}

.about-intro {
	font-size: 19px;
	line-height: 24px;
	letter-spacing: -0.01em;
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--color-text);
	margin: 0 0 40px;
}

.about-intro .text-muted {
	color: var(--color-text-muted);
	font-family: var(--font-base);
	font-weight: 400;
}

/* align-items: start (pas stretch) : la photo gère maintenant sa
   propre taille via aspect-ratio (voir .about-image) — la stretch
   qu'on avait mise pour l'ancien système de mesure JS entre en
   conflit avec ça pendant la transition (la grille essaie de forcer
   la photo à la hauteur de la ligne pendant qu'elle anime son propre
   ratio, d'où le mouvement parasite qui semblait chevaucher le
   texte). */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: stretch;
}

/* La hauteur suit celle du texte (.about-text) via le stretch de
   .about-grid, dans les deux sens (agrandir et réduire) — confirmé
   sur le vrai prototype Figma. L'<img> est en position: absolute
   (voir plus bas) pour ne pas contribuer à la hauteur intrinsèque du
   conteneur : sans ça, le stretch ne peut qu'agrandir l'image
   au-delà de sa taille naturelle, jamais la réduire en dessous (testé
   en pratique, cf. JS pour la gestion de la transition). */
.about-image {
	position: relative;
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: height 1s ease-out;
}

.about-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* La personne et la tondeuse sont à droite du centre sur la photo
	   source — ce point d'ancrage les garde dans le cadre même quand
	   le conteneur devient très haut et étroit (contenu déplié). */
	object-position: 65% 55%;
}

.about-text p {
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 24px;
	margin: 0 0 20px;
}

.about-text .text-strong {
	color: var(--color-text);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.4;
}

.about-text strong {
	color: var(--color-text);
}

/* Replié, on voit un aperçu tronqué de la première ligne (celle qui
   commence par "Aujourd'hui...") qui s'estompe dans un dégradé,
   plutôt qu'un masquage total — puis le reste du texte se révèle en
   pleine hauteur au clic. La hauteur max généreuse (600px) sert de
   plafond pour permettre la transition ; le vrai contenu est plus
   court. */
.about-more {
	position: relative;
	max-height: 24px;
	overflow: hidden;
	transition: max-height 1s ease-out;
}

.about-more.is-open {
	max-height: 600px;
}

/* Sur une boîte aussi basse qu'une seule ligne, le Figma montre bien
   la ligne entièrement délavée (pas nette avec juste la base qui
   s'estompe) — confirmé par capture Figma réelle le 2026-09-11,
   après une tentative précédente (à tort) d'inverser ce choix. */
.about-more::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, var(--color-bg-light) 90%);
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.about-more.is-open::after {
	opacity: 0;
}

/* Formations
   -------------------------------------------------------------------- */

/* Fond de section : degrade gauche -> droite + halo navy floute
   (Ellipse 2 du Figma, 808x808, opacite 20%, flou 504 converti en
   ~252px CSS). Le flou deborde tres largement de la boite de
   l'element (jamais coupe net) : clip sur toute la section + halo
   positionne tres haut (-900px) pour qu'il s'estompe avant d'atteindre
   les cards, plutot qu'un clip serre qui donnait un bord rectangulaire
   visible. Valeurs de position/degrade ajustees a l'oeil contre une
   capture Figma, pas une mesure exacte du panneau Proprietes — seule
   la taille du halo (808px) est confirmee. */
.formations {
	position: relative;
	overflow: hidden;
	padding: 48px 0;
	background: linear-gradient(90deg, #F8F9FB 0%, #E4E6EC 100%);
}

.formations::before {
	content: "";
	position: absolute;
	width: 808px;
	height: 808px;
	border-radius: 50%;
	background: var(--color-navy);
	opacity: 0.2;
	filter: blur(252px);
	top: -900px;
	right: -200px;
	pointer-events: none;
	z-index: 0;
}

.formations .container {
	position: relative;
	z-index: 1;
}

.formations-header {
	position: relative;
	margin-bottom: 32px;
}

.formations-heading {
	text-align: center;
}

.formations-heading .pill-label {
	padding: 8px 16px;
	gap: 8px;
	font-weight: 600;
	line-height: 13px;
	letter-spacing: 0;
	margin-bottom: 24px;
}

.formations-header .carousel-nav {
	position: absolute;
	top: auto;
	bottom: 0;
	right: 20px;
}

.formations-header .section-title {
	margin-bottom: 0;
	color: #1F1F1F;
}

/* Sélecteur à deux classes (au lieu d'une seule) pour garantir une
   spécificité supérieure à .carousel-arrow ci-dessous, quel que soit
   l'ordre des règles dans le fichier — sans ça la déclaration la plus
   tardive gagne à spécificité égale, et .carousel-arrow (blanc) peut
   écraser silencieusement cette variante « fond clair » (navy). */
.carousel-arrow.carousel-arrow-dark {
	border-color: var(--color-navy);
	color: var(--color-navy);
}

.formations-carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 8px;
	cursor: grab;
}

.formations-carousel.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

.formations-carousel::-webkit-scrollbar {
	display: none;
}

.formations-carousel .formation-card {
	flex: 0 0 360px;
}

.formation-card {
	position: relative;
	z-index: 1;
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	transition: border-color 0.4s ease-in, box-shadow 0.4s ease-in;
}

.formation-card:hover {
	border-color: var(--color-accent);
	box-shadow: 0 26px 50px -30px rgba(0, 4, 58, 0.25);
}

.formation-icon {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: var(--color-accent-pale);
	color: #1F1F1F;
	display: flex;
	align-items: center;
	justify-content: center;
}

.formation-card h3 {
	margin: 0;
	font-size: 22px;
	line-height: 26.4px;
	letter-spacing: -0.015em;
	color: var(--color-navy);
	min-height: 60px;
}

.formation-card p {
	color: var(--color-text-muted);
	font-size: 15px;
	line-height: 24px;
	margin: 0;
	max-width: 240px;
	min-height: 72px;
}

.link-explore {
	font-weight: 600;
	font-size: 13px;
	line-height: 13px;
	color: var(--color-navy-light);
	align-self: flex-start;
}

/* Aperçu des contenus
   -------------------------------------------------------------------- */

.contenus {
	position: relative;
	background: var(--color-navy);
	padding: 80px 0;
	overflow: hidden;
}

/* Section pleine largeur du Figma (1412px, padding 100px) avec un
   container interne encore plus étroit (padding 15px) — la
   combinaison des deux donne une largeur de contenu de 1182px,
   valeur reprise ici directement en max-width. */
.contenus .container {
	/* 1220px (pas 1182px) : avec 3 cartes de 380px + 2 gaps de 24px
	   (1188px), un max-width de 1182px laissait la 3e carte
	   partiellement hors champ dès le chargement, sans avoir besoin
	   de faire défiler — on élargit juste assez pour que les 3
	   cartes réelles tiennent entièrement. */
	max-width: 1220px;
	padding: 0 15px;
}

/* purement decoratif (deja aria-hidden) : sans pointer-events:none,
   ce SVG absolument positionne interceptait les clics sur les
   fleches du carousel juste au-dessus de lui, meme si elementFromPoint
   reportait la fleche comme element visuellement au sommet. */
.pitch-decoration {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	width: 631px;
	height: 972px;
	pointer-events: none;
}

.content-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.content-filters {
	display: inline-flex;
	background: transparent;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-pill);
	padding: 8px;
	gap: 12px;
}

.filter-tab {
	border: none;
	background: transparent;
	color: var(--color-white);
	padding: 8px 32px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.filter-tab.is-active {
	background: var(--color-white);
	color: var(--color-navy-light);
	font-weight: 600;
}

.content-carousel-wrapper {
	position: relative;
}

.content-carousel {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	padding-bottom: 8px;
	cursor: grab;
}

.content-carousel.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	user-select: none;
}

/* Defense supplementaire : empeche le glisser-deposer natif des
   images/boutons a l'interieur, qui interrompait notre script de
   glissement personnalise (diagnostic confirme par Chrome). */
.content-carousel img,
.content-carousel button {
	-webkit-user-drag: none;
	user-select: none;
}

.content-carousel::-webkit-scrollbar {
	display: none;
}

.content-card {
	position: relative;
	z-index: 1;
	flex: 0 0 380px;
	background: var(--color-white);
	border-radius: var(--radius-md);
	overflow: hidden;
}

/* Les 5 cartes "Contenu à venir" (contenu non finalisé côté client,
   pas de vraie photo ni de vrai titre à afficher) : pas de vignette
   photo, juste un aplat neutre à la place, pour ne pas laisser croire
   à du contenu réel. */
.content-card-placeholder .content-thumb-placeholder {
	height: 280px;
	background: var(--color-bg-light);
}

.content-card-placeholder .content-title {
	color: var(--color-text-muted);
	margin: 0;
}

.content-thumb {
	position: relative;
	height: 280px;
	overflow: hidden;
}

.content-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--color-accent);
	color: var(--color-white);
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
}

.type-icon {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: var(--color-white);
	display: flex;
	align-items: center;
	justify-content: center;
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--color-white);
	border: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	color: var(--color-navy);
	font-size: 22px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.play-button:hover {
	background: var(--color-accent);
	color: var(--color-white);
}

/* Sans ça, le rond de lecture garde l'anneau de focus par défaut du
   navigateur après un simple clic souris — visible tant qu'on ne
   clique pas ailleurs, ce qui donnait l'impression qu'une carte
   restait "plus grosse"/différente des autres alors que c'était
   juste celle cliquée en dernier. :focus-visible (pas :focus tout
   court) n'affiche l'anneau qu'à la navigation clavier, jamais après
   un clic souris — accessibilité clavier préservée, plus d'écart
   visuel entre cartes après un clic. */
.play-button:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.content-body {
	padding: 20px;
}

.content-meta {
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0 0 8px;
}

.content-title {
	font-size: 19px;
	line-height: 1.4;
	color: var(--color-text);
	margin: 0 0 20px;
	font-family: var(--font-heading);
	font-weight: 500;
}

.content-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.content-duration {
	font-size: 13px;
	line-height: 20.8px;
	color: var(--color-text-muted);
}

.premium-badge {
	background: var(--color-bg-light);
	color: var(--color-navy-light);
	font-size: 10px;
	line-height: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 5px;
}

.carousel-nav {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.carousel-arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--color-line);
	background: transparent;
	color: var(--color-white);
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Thématiques
   -------------------------------------------------------------------- */

.thematiques {
	background: linear-gradient(180deg, var(--color-bg-light), var(--color-white));
	border-top: 1px solid var(--color-line);
	padding: 24px 0 80px;
	overflow: hidden;
}

.thematiques-label {
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 10px;
	font-weight: 500;
	color: var(--color-text-muted);
	margin: 0 0 48px;
}

.marquee-row {
	overflow: hidden;
	margin-bottom: 16px;
}

.marquee-track {
	display: flex;
	gap: 12px;
	width: max-content;
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-pill);
	padding: 12px 20px;
	font-size: 13px;
	color: var(--color-text);
	white-space: nowrap;
}

.tag:hover {
	border-color: var(--color-navy-light);
}

.tag b {
	color: var(--color-accent);
	font-weight: 500;
	font-size: 10px;
}

.thematiques-cta {
	text-align: center;
	margin-top: 48px;
}

/* Tarifs
   -------------------------------------------------------------------- */

/* Halo decoratif (Ellipse 3 du Figma), meme spec que celui de
   .formations (voir plus haut) — a gauche, en partie hors cadre. */
.tarifs {
	position: relative;
	overflow: hidden;
	background: var(--color-bg-light);
	padding: 80px 0 0;
}

.tarifs::before {
	content: "";
	position: absolute;
	width: 808px;
	height: 808px;
	border-radius: 50%;
	background: var(--color-navy);
	opacity: 0.2;
	filter: blur(252px);
	top: 0;
	left: -400px;
	pointer-events: none;
	z-index: 0;
}

/* Section pleine largeur du Figma (1412px, padding 100px de chaque
   côté), pas le container standard du site (1240px/28px). */
.tarifs .container {
	position: relative;
	z-index: 1;
	max-width: none;
	padding: 0 100px;
}

.tarifs .pill-label {
	display: flex;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.tarifs .section-title {
	text-align: center;
}

.pricing-toggle {
	display: flex;
	width: fit-content;
	background: var(--color-white);
	border-radius: var(--radius-pill);
	padding: 8px;
	gap: 12px;
	margin: 0 auto 48px;
	border: 1px solid var(--color-line);
}

.toggle-option {
	border: none;
	background: transparent;
	padding: 10px 24px;
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	color: var(--color-text-muted);
}

.toggle-option.is-active {
	background: var(--color-navy);
	color: var(--color-white);
	font-weight: 600;
}

.toggle-option:not(.is-active) {
	color: var(--color-navy-light);
}

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 38px;
	margin-bottom: 32px;
}

.pricing-card {
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: 20px;
	padding: 28px 24px;
	text-align: center;
	display: flex;
	flex-direction: column;
}

/* Pousse le bouton en bas de la card, pour que toutes les cards
   s'alignent sur la même ligne même quand un titre passe sur 2
   lignes (ex. "Plus de 15 salariés"). */
.pricing-card .btn {
	margin-top: auto;
}

.pricing-card h3 {
	margin: 0 0 20px;
	font-size: 22px;
	line-height: 23px;
	letter-spacing: -0.015em;
}

.pricing-card .price {
	font-size: 24px;
	line-height: 28px;
	letter-spacing: -0.015em;
	font-weight: 400;
	margin: 0 0 28px;
}

/* Titre en gris et prix en navy sur les 3 cards non mises en avant
   seulement (la card featured reste blanche sur fond navy, cf.
   .pricing-card-featured plus bas). */
.pricing-card:not(.pricing-card-featured) h3 {
	color: var(--color-text-muted);
}

.pricing-card:not(.pricing-card-featured) .price {
	color: var(--color-navy);
}

.pricing-card .price span {
	font-size: 13px;
	font-weight: 400;
	font-family: var(--font-base);
	color: var(--color-text-muted);
}

.pricing-card-featured {
	background: var(--color-navy);
	color: var(--color-white);
}

.pricing-card-featured .price span {
	color: rgba(255, 255, 255, 0.7);
}

.link-details {
	display: block;
	margin-top: 16px;
	font-size: 14px;
	color: var(--color-text-muted);
}

.pricing-card-featured .link-details {
	color: rgba(255, 255, 255, 0.7);
}

.pricing-note {
	background: var(--color-white);
	border: 1px solid var(--color-line);
	border-radius: 30px;
	padding: 20px 32px;
}

.pricing-note-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.pricing-note p {
	color: #1F1F1F;
	font-size: 15.92px;
	line-height: 25px;
	margin: 0;
	max-width: 882px;
}

.pricing-note strong {
	color: var(--color-accent);
	font-size: 13.8px;
	font-weight: 600;
}

/* Figma anime chaque ligne individuellement (opacity + margin qui se
   replie), pas le conteneur entier d'un coup — reproduit ici a
   l'identique plutot qu'un simple max-height sur tout le bloc, pour
   le meme ressenti de fondu/depliement ligne par ligne. */
.pricing-benefits {
	overflow: hidden;
}

.pricing-benefits ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pricing-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #1F1F1F;
	font-size: 15.92px;
	line-height: 25px;
	opacity: 0;
	margin: -15px 0;
	transition: opacity 0.4s ease-out, margin 0.4s ease-out;
}

.pricing-benefits.is-open li {
	opacity: 1;
	margin: 7.43px 0;
}

.pricing-benefits.is-open li:first-child {
	margin-top: 14.86px;
}

.pricing-benefits .check {
	color: var(--color-accent);
	font-weight: 600;
	font-size: 13.8px;
	line-height: 14px;
}

/* Partenaires
   -------------------------------------------------------------------- */

.partenaires {
	padding: 80px 0;
	overflow: hidden;
}

.partners-track {
	display: flex;
	gap: 16px;
	width: max-content;
	padding: 0 24px;
}

.partner-card {
	flex: 0 0 auto;
	padding: 0 40px;
	font-size: 17px;
	line-height: 27.2px;
	font-family: var(--font-heading);
	font-weight: 500;
	color: var(--color-text);
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.55);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	height: 90px;
}

.partner-card:hover {
	background: rgba(255, 255, 255, 1);
	color: var(--color-navy-light);
}

/* CTA final
   -------------------------------------------------------------------- */

.cta-final {
	padding: 0 0 100px;
}

.cta-final-inner {
	border-radius: var(--radius-lg);
	padding: 80px 120px;
	text-align: center;
	color: var(--color-white);
	position: relative;
	overflow: hidden;
}

.cta-final-inner .hero-actions {
	justify-content: center;
}

.cta-final-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-final-inner > *:not(.cta-final-bg) {
	position: relative;
	z-index: 2;
}

.cta-final-title {
	font-size: 42px;
	line-height: 57px;
	letter-spacing: -0.028em;
	margin: 0 0 16px;
}

.cta-final-inner p {
	margin: 0 0 32px;
	color: rgba(255, 255, 255, 0.85);
}

/* Footer
   -------------------------------------------------------------------- */

.site-footer {
	position: relative;
	background: var(--color-bg-light);
	padding: 80px 0 24px;
	overflow: hidden;
}

.footer-watermark {
	position: absolute;
	z-index: -1;
	right: -40px;
	bottom: -40px;
	width: 420px;
	height: auto;
	color: var(--color-navy);
	opacity: 0.04;
	pointer-events: none;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(4, 1fr);
	gap: 40px;
	margin-bottom: 56px;
}

.footer-brand p {
	color: var(--color-text-muted);
	font-size: 14px;
	line-height: 22.4px;
	margin-top: 16px;
}

.footer-col h3 {
	font-size: 19px;
	line-height: 24px;
	letter-spacing: -0.01em;
	margin: 0 0 16px;
}

.footer-col a,
.footer-col span {
	display: block;
	color: var(--color-text-muted);
	font-size: 14px;
	margin-bottom: 12px;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid #e2e5ec;
	padding: 24px 0;
	font-size: 10px;
	line-height: 12px;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Responsive
   -------------------------------------------------------------------- */

@media (max-width: 900px) {
	.main-nav,
	.header-actions {
		display: none;
	}

	/* Ordre mobile confirmé en Figma : hamburger — logo — icône
	   compte — S'abonner. .header-inner est en justify-content:
	   space-between par défaut, ce qui centrerait le logo au lieu de
	   le coller au hamburger avec 3 éléments — on repasse donc en
	   flex-start et on pousse .header-actions-mobile à droite avec
	   margin-left:auto. */
	.header-inner {
		justify-content: flex-start;
	}

	.nav-toggle {
		display: flex;
		order: 1;
	}

	.logo {
		order: 2;
	}

	.header-actions-mobile {
		display: flex;
		order: 3;
		margin-left: auto;
	}

	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero-title-accent {
		font-size: 32px;
		line-height: 1.2;
		white-space: normal;
	}

	.hero-title-dark {
		font-size: 28px;
	}

	.hero-actions,
	.hero-stats {
		flex-wrap: wrap;
	}

	.about-grid,
	.formations-grid {
		grid-template-columns: 1fr;
	}

	/* Figma mobile prévoit un carrousel horizontal swipable pour les
	   4 cards (cartes fixes ~252px dans un cadre de 358px), pas un
	   empilement vertical : on reprend le même pattern que
	   .formations-carousel (flex + overflow-x:auto + scrollbar
	   masquée) plutôt que le grid-template-columns:1fr précédent. */
	.pricing-grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-behavior: smooth;
		scrollbar-width: none;
		padding-bottom: 8px;
	}

	.pricing-grid::-webkit-scrollbar {
		display: none;
	}

	.pricing-card {
		flex: 0 0 252px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* Aperçu des contenus : Figma masque entièrement les flèches en
	   mobile (l'utilisateur swipe les cards au doigt) et les filtres
	   prennent toute la largeur — sans ça, filtres (355px) + flèches
	   (100px) dépassent du conteneur et sortent de l'écran. */
	.content-toolbar .carousel-nav {
		display: none;
	}

	.content-filters {
		width: 100%;
		justify-content: space-between;
	}

	/* Bandeau copyright du footer : Figma mobile empile les deux
	   lignes (au lieu de les mettre côte à côte comme en desktop). */
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 16px 0 0;
	}

	/* Tarifs : les 100px de marge latérale du desktop (frame pleine
	   largeur du Figma) sont ingérables en mobile — on retombe sur un
	   inset raisonnable comme pour le container standard du site. */
	.tarifs .container {
		padding: 0 16px;
	}

	/* CTA final : Figma mobile garde spacing/80 haut/bas mais réduit
	   le padding gauche/droite à spacing/16 (contre 120px desktop) —
	   sans ça le texte s'empile sur trop de lignes, la boîte devient
	   trop haute et object-fit:cover zoome trop sur la photo de fond
	   (le cheval et le rugby disparaissent, seul le centre reste). */
	.cta-final-inner {
		padding: 80px 16px;
	}

	/* Bandeau récap Tarifs : le bouton "Plus de détails" se retrouve
	   écrasé sur 3 lignes faute de place à côté du texte sur mobile. */
	.pricing-note {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
	}
}
