/**
 * SD Formation - Page d'accueil.
 * Mobile-first. Tokens repris de custom.css (:root déjà chargé avant ce fichier).
 * Pas de photos réelles disponibles à l'intégration (assets Figma non
 * récupérables) : blocs de couleur de marque en remplacement, à échanger
 * plus tard contre les vraies photos si besoin.
 */

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

.sdf-homepage {
	font-family: var( --sdf-font-body );
	color: var( --sdf-text-primary );
	overflow-x: hidden;
}
.sdf-homepage h1,
.sdf-homepage h2 {
	font-family: var( --sdf-font-heading );
}

/* Gouttière horizontale seulement : le centrage/largeur de 1280px vit sur
   .sdf-band__inner (custom.css, imbriqué à l'intérieur), jamais les deux sur
   le même élément (sinon le padding vient ronger le max-width en box-sizing
   border-box, et le contenu tombe sous 1280px). */
.sdf-h-band {
	padding: 0 16px;
}
@media ( min-width: 640px ) {
	.sdf-h-band { padding: 0 clamp( 20px, 5vw, 64px ); }
}

.sdf-h-section-head {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 40px;
}
.sdf-h-section-head h2 {
	font-size: clamp( 30px, 5vw, 44px );
	font-weight: 800;
	margin: 0 0 12px;
}
.sdf-h-section-head p {
	color: var( --sdf-text-secondary );
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
}
.sdf-h-section-head--light h2,
.sdf-h-section-head--light p {
	color: #fff;
}
.sdf-h-section-head--light p {
	color: var( --sdf-gray );
}

.sdf-h-catalog .sdf-h-band h2,
.sdf-h-stats .sdf-h-band h2,
.sdf-h-values .sdf-h-band h2,
.sdf-h-certifications .sdf-h-band h2,
.sdf-h-faq .sdf-h-band h2 {
	font-size: clamp( 30px, 5vw, 44px );
	font-weight: 800;
	text-align: center;
	margin: 0 0 40px;
}

.sdf-h-center-cta {
	text-align: center;
	margin-top: 40px;
}

/* Boutons partagés */
.sdf-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.02em;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 2px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.15s ease;
}
.sdf-btn--primary {
	background: var( --sdf-blue );
	color: #fff;
}
.sdf-btn--primary:hover {
	background: var( --sdf-blue-dark );
}
.sdf-btn--outline {
	border-color: #fff;
	color: #fff;
	background: transparent;
}
.sdf-btn--outline:hover {
	background: rgba(255,255,255,0.1);
}
.sdf-btn--outline-dark {
	border-color: var( --sdf-border );
	color: var( --sdf-text-primary );
	background: transparent;
}
.sdf-btn--outline-dark:hover {
	border-color: var( --sdf-blue );
	color: var( --sdf-blue );
}

/* ---------- Hero ---------- */
/* Le header est fixed et flotte en transparence par-dessus (voir
   site-header-footer.css, .sdf-site-header--overlay) : le hero doit donc
   compenser lui-même sa hauteur en padding-top, au lieu de compter sur le
   flux normal du document comme avant. */
.sdf-h-hero {
	position: relative;
	padding: calc( var( --sdf-header-h ) + 24px ) 0 0;
	overflow: hidden;
}
.sdf-h-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient( circle at 20% 20%, rgba(31,143,204,0.35), transparent 55% ),
		linear-gradient( 135deg, #0a0d14 0%, #10151f 55%, #0a0d14 100% );
}
.sdf-h-hero__content {
	position: relative;
	text-align: center;
	color: #fff;
	padding: 40px 0 96px;
}
.sdf-h-hero__content h1 {
	font-size: clamp( 32px, 7vw, 56px );
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 20px;
}
.sdf-h-hero__subtitle {
	font-size: clamp( 16px, 2.4vw, 22px );
	opacity: 0.8;
	line-height: 1.5;
	max-width: 780px;
	margin: 0 auto 32px;
}
.sdf-h-hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.sdf-h-hero__infobar {
	position: relative;
	background: rgba(0,0,0,0.3);
	backdrop-filter: blur(5px);
	border-top: 1px solid rgba(255,255,255,0.08);
}
.sdf-h-hero__infobar-inner {
	/* Padding horizontal géré par .sdf-h-band (parent) : ici uniquement le
	   padding vertical propre à la barre. */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 0;
}
.sdf-h-hero__infobar-inner a,
.sdf-h-hero__infobar-inner span {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}
.sdf-h-hero__infobar-inner svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var( --sdf-blue );
}
@media ( min-width: 900px ) {
	.sdf-h-hero__infobar-inner {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		padding: 20px 0;
	}
}

/* ---------- Chiffres clés ---------- */
.sdf-h-stats {
	padding: 56px 0;
	background: #ffffff;
}
.sdf-h-stats__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	max-width: 900px;
	margin: 0 auto;
}
.sdf-h-stats__card {
	text-align: center;
	padding: 24px;
}
.sdf-h-stats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var( --sdf-blue-soft );
	color: var( --sdf-blue );
	margin-bottom: 16px;
	flex: none;
}
.sdf-h-stats__number {
	display: block;
	font-family: var( --sdf-font-heading );
	font-size: 44px;
	font-weight: 800;
	color: var( --sdf-dark );
}
.sdf-h-stats__label {
	display: block;
	font-size: 15px;
	color: var( --sdf-text-secondary );
	margin-top: 4px;
}
/* Mobile/tablette (grille encore en 1 colonne, voir le breakpoint 900px
   ci-dessous) : carte en ligne (icône + chiffre/label) plutôt qu'empilée,
   trop haute verticalement sur un petit écran. Icône en colonne 1 sur 2
   lignes de grille, chiffre/label en colonne 2. */
@media ( max-width: 899px ) {
	.sdf-h-stats__card {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 2px 18px;
		text-align: left;
		padding: 16px 20px;
		border: 1px solid var( --sdf-border-soft );
		border-radius: var( --sdf-radius-md );
	}
	.sdf-h-stats__icon {
		grid-row: 1 / 3;
		margin-bottom: 0;
	}
	.sdf-h-stats__number {
		font-size: 26px;
	}
	.sdf-h-stats__label {
		margin-top: 0;
	}
}
@media ( min-width: 900px ) {
	.sdf-h-stats__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Catalogue ---------- */
.sdf-h-catalog {
	padding: 64px 0;
	background: var( --sdf-blue-soft );
}
.sdf-h-catalog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
.sdf-h-catalog__card {
	display: block;
	background: #ffffff;
	border: 1px solid var( --sdf-border-soft );
	border-radius: var( --sdf-radius-md );
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.sdf-h-catalog__card:hover {
	box-shadow: 0 12px 28px rgba(10,13,20,0.12);
	transform: translateY(-2px);
}
.sdf-h-catalog__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 220px;
	background: linear-gradient( 135deg, var(--sdf-blue) 0%, var(--sdf-dark) 130% );
	overflow: hidden;
}
.sdf-h-catalog__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}
.sdf-h-catalog__card:hover .sdf-h-catalog__visual img {
	transform: scale( 1.04 );
}
.sdf-h-catalog__visual-icon {
	width: 48px;
	height: 48px;
	color: #fff;
	opacity: 0.9;
}
.sdf-h-catalog__title {
	display: block;
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	font-size: 19px;
	padding: 20px 20px 8px;
}
.sdf-h-catalog__desc {
	display: block;
	font-size: 14px;
	color: var( --sdf-text-secondary );
	line-height: 1.55;
	padding: 0 20px 24px;
}
@media ( min-width: 640px ) {
	.sdf-h-catalog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media ( min-width: 1024px ) {
	.sdf-h-catalog__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Nos valeurs / Certifications (grille réutilisée) ---------- */
.sdf-h-values {
	padding: 64px 0;
	background: #ffffff;
}
.sdf-h-certifications {
	padding: 64px 0;
	background: #ffffff;
}
.sdf-h-values__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media ( min-width: 640px ) {
	.sdf-h-values__grid { grid-template-columns: repeat(2, 1fr); }
}
@media ( min-width: 1024px ) {
	.sdf-h-values__grid { grid-template-columns: repeat(4, 1fr); }
	.sdf-h-values__grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.sdf-h-values__card {
	text-align: center;
	padding: 32px 20px;
	border: 1px solid var( --sdf-border-soft );
	border-radius: var( --sdf-radius-md );
}
.sdf-h-values__grid--1 {
	grid-template-columns: 1fr;
	max-width: 420px;
	margin: 0 auto;
}
/* Carte "Certifié Qualiopi" : le visuel officiel du certificateur remplace
   l'icône ronde des autres cartes. Il embarque déjà la mention réglementaire,
   ne pas le recadrer. */
.sdf-h-values__qualiopi-logo {
	display: block;
	width: 240px;
	max-width: 100%;
	height: auto;
	margin: 0 auto 16px;
}
.sdf-h-values__meta {
	font-size: 12.5px;
	color: var( --sdf-text-muted, rgba(10,13,20,0.55) );
	line-height: 1.5;
	margin: 10px 0 0;
}
.sdf-h-values__lien {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 600;
	color: var( --sdf-blue );
	text-decoration: none;
}
.sdf-h-values__lien:hover,
.sdf-h-values__lien:focus-visible {
	text-decoration: underline;
}
.sdf-h-values__lien svg {
	flex: none;
}
.sdf-h-values__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var( --sdf-blue-soft );
	color: var( --sdf-blue );
	margin-bottom: 16px;
	flex: none;
}
.sdf-h-values__title {
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	font-size: 18px;
	margin: 0 0 10px;
}
.sdf-h-values__text {
	font-size: 14px;
	color: var( --sdf-text-secondary );
	line-height: 1.6;
	margin: 0;
}
/* Mobile (grille encore en 1 colonne, voir le breakpoint 640px ci-dessus) :
   carte en ligne (icône + titre/texte) plutôt qu'empilée verticalement,
   trop haute sur un petit écran. Pas appliqué à .sdf-h-values__card--logo
   (carte avec un vrai logo image type Qualiopi, doit rester centrée). */
@media ( max-width: 639px ) {
	.sdf-h-values__card {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: start;
		gap: 4px 18px;
		text-align: left;
		padding: 20px;
	}
	.sdf-h-values__icon {
		grid-row: 1 / 3;
		align-self: center;
		margin-bottom: 0;
	}
	/* Carte avec un vrai logo (image, pas icône) : reste en bloc centré,
	   le format image (ex. 220x135 Qualiopi) ne se prête pas à la mise en
	   ligne icône-à-gauche des cartes texte. */
	.sdf-h-values__card--logo {
		display: block;
		text-align: center;
	}
}

/* ---------- Sessions dynamiques ---------- */
.sdf-h-sessions {
	padding: 64px 0;
	background: var( --sdf-blue-soft );
}
.sdf-h-sessions__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media ( min-width: 640px ) {
	.sdf-h-sessions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media ( min-width: 1024px ) {
	.sdf-h-sessions__grid { grid-template-columns: repeat(3, 1fr); }
}
/* Cartes : voir formation-cards.css (.sdf-fcard, partagé avec l'archive) */
.sdf-h-sessions__empty {
	text-align: center;
	color: var( --sdf-text-muted );
	padding: 40px 0;
}

/* ---------- Témoignages ---------- */
/* Fond : .sdf-textured-dark (custom.css), posée en classe supplémentaire
   dans le HTML — composant générique partagé avec le footer. */
.sdf-h-testimonials {
	padding: 64px 0;
}
.sdf-h-testimonials__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
@media ( min-width: 1024px ) {
	.sdf-h-testimonials__grid { grid-template-columns: repeat(3, 1fr); }
}
.sdf-h-testimonial-card {
	background: rgba(21,27,38,0.6);
	border: 1px solid #1e293b;
	border-radius: var( --sdf-radius-md );
	padding: 32px;
}
.sdf-h-testimonial-card__stars {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	color: var( --sdf-blue );
}
.sdf-h-testimonial-card__stars svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
	stroke: none;
}
.sdf-h-testimonial-card__quote {
	color: #fff;
	font-style: italic;
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 20px;
}
.sdf-h-testimonial-card__name {
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	font-size: 18px;
	color: #fff;
	margin: 0;
}
.sdf-h-testimonial-card__role {
	font-family: var( --sdf-font-heading );
	font-weight: 600;
	font-size: 12.5px;
	text-transform: uppercase;
	color: var( --sdf-blue );
	margin: 4px 0 0;
}
.sdf-h-testimonials__empty {
	text-align: center;
	color: var( --sdf-gray );
	font-size: 15px;
	margin: 0;
}

/* Carrousel (au-delà de 3 témoignages) : scroll horizontal natif avec
   snap, les flèches ne font qu'appeler scrollBy() en JS — pas de recalcul
   de position ni de librairie tierce (voir homepage-testimonials.js). */
.sdf-h-testimonials__wrap--carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
}
.sdf-h-testimonials__grid--carousel {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 24px;
	padding-bottom: 4px;
}
.sdf-h-testimonials__grid--carousel::-webkit-scrollbar {
	display: none;
}
.sdf-h-testimonials__grid--carousel .sdf-h-testimonial-card {
	flex: 0 0 85%;
	scroll-snap-align: start;
}
@media ( min-width: 640px ) {
	.sdf-h-testimonials__grid--carousel .sdf-h-testimonial-card { flex-basis: 46%; }
}
@media ( min-width: 1024px ) {
	.sdf-h-testimonials__grid--carousel .sdf-h-testimonial-card { flex-basis: calc( (100% - 48px) / 3 ); }
}
.sdf-h-testimonials__nav {
	flex: 0 0 auto;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #1e293b;
	background: rgba(21,27,38,0.6);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.sdf-h-testimonials__nav:hover {
	background: var( --sdf-blue );
	border-color: var( --sdf-blue );
}
.sdf-h-testimonials__nav svg {
	width: 18px;
	height: 18px;
}
@media ( min-width: 1024px ) {
	.sdf-h-testimonials__nav { display: flex; }
}

/* ---------- Nous trouver ---------- */
.sdf-h-find {
	padding: 64px 0;
	background: #ffffff;
}
.sdf-h-find__content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}
@media ( min-width: 1024px ) {
	.sdf-h-find__content { grid-template-columns: 1.3fr 1fr; }
}
.sdf-h-find__map {
	min-height: 320px;
	border-radius: var( --sdf-radius-md );
	overflow: hidden;
	border: 1px solid var( --sdf-border-soft );
}
.sdf-h-find__map iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}
@media ( min-width: 1024px ) {
	.sdf-h-find__map,
	.sdf-h-find__map iframe {
		min-height: 448px;
	}
}
/* Carte contact : fond sombre distinct du bleu nuit du site (#243f51 côté
   maquette Maxence), pour se détacher à la fois du bloc carte et de la carte. */
.sdf-h-find__card {
	background: #243f51;
	border-radius: var( --sdf-radius-md );
	padding: 32px;
}
.sdf-h-find__row {
	padding: 14px 0;
}
.sdf-h-find__row:first-child {
	padding-top: 0;
}
.sdf-h-find__divider {
	height: 1px;
	background: #1e293b;
}
.sdf-h-find__label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var( --sdf-font-heading );
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	color: var( --sdf-blue );
	margin: 0 0 8px;
}
.sdf-h-find__label svg {
	width: 16px;
	height: 16px;
	color: var( --sdf-blue );
}
.sdf-h-find__value {
	font-size: 15px;
	color: #ffffff;
	line-height: 1.5;
	margin: 0;
}
.sdf-h-find__card .sdf-h-find__row:first-of-type .sdf-h-find__value {
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	font-size: 20px;
}
.sdf-h-find__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 6px;
	font-family: var( --sdf-font-heading );
	font-weight: 700;
	text-transform: uppercase;
	font-size: 15px;
	letter-spacing: 0.02em;
	color: #fff;
	background: var( --sdf-blue );
	text-decoration: none;
	padding: 14px 20px;
	border-radius: 2px;
	transition: background-color 0.15s ease;
}
.sdf-h-find__cta:hover {
	background: var( --sdf-blue-dark );
}
.sdf-h-find__cta svg {
	width: 18px;
	height: 18px;
}

/* ---------- FAQ ---------- */
/* Accordéon (.sdf-faq-list / .sdf-faq-item) : composant générique, voir
   custom.css — réutilisé tel quel sur la page Contact. */
.sdf-h-faq {
	padding: 64px 0;
	background: var( --sdf-blue-soft );
}
