/* =========================================================================
   Sciences & réussite - Émilie Le Bossé
   CSS maison, sans dépendance. Palette : violet profond + or.
   ========================================================================= */

:root {
	/* PALETTE - d'après la carte de visite */
	--brand:       #2B2076; /* violet profond - primary */
	--brand-600:   #1E1557; /* survol boutons */
	--brand-50:    #EDEAF9; /* fond très clair icônes */
	--brand-100:   #D4CEEE; /* fond clair sections */
	--accent:      #F5A929; /* or/ambre - CTA, highlights, prix */
	--accent-600:  #D48E1A; /* or foncé - survol boutons */
	--accent-2:    #D4CEEE; /* lavande - zone-pills */
	--accent-2-ink:#2B2076; /* texte sur lavande */
	--coral:       #E55A2B; /* corail - panneaux latéraux de la carte */
	--on-brand:    #ffffff;

	--bg:          #F6F4FB; /* fond froid, blanc-lavande */
	--surface:     #ffffff;
	--surface-alt: #EDEAF9; /* sections alternées, lavande clair */
	--ink:         #1E1A3A; /* texte principal - violet très foncé */
	--muted:       #635D99; /* texte secondaire - violet moyen */
	--line:        #D8D3EE; /* bordures lavande */
	--line-strong: #BCB4DE;

	--shadow-rgb: 43, 32, 118;
	--shadow-sm: 0 1px 2px rgba(var(--shadow-rgb), 0.08);
	--shadow:    0 12px 34px rgba(var(--shadow-rgb), 0.12);
	--radius: 18px;
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

section[id] { scroll-margin-top: 84px; }

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
	border-radius: 6px;
}

/* ---- Boutons ----------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--accent);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 0.78em 1.35em;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.16);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); box-shadow: none; }
.btn-ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-sm { padding: 0.55em 1em; font-size: 0.88rem; }
.btn-lg { padding: 0.95em 1.7em; font-size: 1.02rem; }

/* ---- Icônes ------------------------------------------------------------ */
.icon {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: var(--brand-50);
	color: var(--brand);
	flex: none;
}
.icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---- En-tête ----------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(246, 244, 251, 0.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 251, 0.97); }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 0.55em;
	font-weight: 700;
	letter-spacing: -0.01em;
	text-decoration: none;
	color: var(--ink);
}
.brand svg { color: var(--accent); width: 22px; height: 22px; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.15; gap: 0.22em; }
.brand-main { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; color: var(--brand); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.68rem; color: var(--muted); font-weight: 500; letter-spacing: 0.03em; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.96rem; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.btn { color: #ffffff; }
.site-nav a.btn:hover { color: #ffffff; }

.nav-toggle { display: none; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.hero-grid {
	display: grid;
	grid-template-columns: 1.12fr 0.88fr;
	gap: 52px;
	align-items: center;
}
p.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-size: 0.72rem;
	font-weight: 700;
	color: #ffffff;
	background: var(--accent);
	border-radius: 999px;
	padding: 0.35em 0.95em;
	margin: 0 0 16px;
}
.hero h1 {
	font-family: var(--font-display);
	font-size: clamp(2.3rem, 5.2vw, 3.6rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	font-weight: 700;
	color: var(--brand);
}
.accent { color: var(--accent); }
.lead {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	color: var(--muted);
	max-width: 48ch;
	margin: 0 0 28px;
	line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li {
	font-size: 0.84rem;
	color: var(--muted);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.42em 0.9em;
}
.hero-media { position: relative; }
.hero-media::before {
	content: "";
	position: absolute;
	inset: -20px -20px 30px 20px;
	background: linear-gradient(155deg, var(--surface-alt), rgba(245, 239, 230, 0));
	border-radius: 30px;
	z-index: -1;
}
.hero-media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 24px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}

/* ---- Sections ---------------------------------------------------------- */
.section { padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 8vw, 88px); }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin: 0 0 clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 {
	font-family: var(--font-display);
	font-size: clamp(1.7rem, 3.4vw, 2.3rem);
	letter-spacing: -0.015em;
	line-height: 1.12;
	margin: 0 0 12px;
	color: var(--brand);
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; line-height: 1.6; }

/* ---- Cartes (decks flexibles) ----------------------------------------- */
.deck { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.deck .card { flex: 1 1 240px; max-width: 300px; }
.deck.is-wide .card { flex-basis: 300px; max-width: 342px; }

/* Deck à cartes de hauteur égale (basée sur la plus haute) */
.deck-equal {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 300px));
	grid-auto-rows: 1fr;          /* toutes les rangées prennent la hauteur de la plus haute */
	justify-content: center;
}
.deck-equal .card { max-width: none; }

.card {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { font-family: var(--font-display); margin: 0.85rem 0 0.35rem; font-size: 1.16rem; letter-spacing: -0.01em; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---- Cartes recto/verso (offres) -------------------------------------- */
.card.flip-card {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	perspective: 1200px;
	cursor: pointer;
}
.card.flip-card:hover { transform: translateY(-4px); box-shadow: none; border-color: transparent; }
.card.flip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.flip-inner {
	flex: 1;                       /* remplit toute la hauteur de la carte */
	display: grid;
	transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
	transform-style: preserve-3d;
}
.card.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
	grid-area: 1 / 1;          /* les deux faces se superposent → hauteur auto */
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 24px;
	box-shadow: var(--shadow-sm);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.card.flip-card:hover .flip-face { box-shadow: var(--shadow); border-color: var(--line-strong); }
.flip-back { transform: rotateY(180deg); }

.flip-hint {
	margin-top: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--accent);
}
.flip-front .flip-hint { margin-top: 0.8rem; }
.flip-front .flip-hint::before { content: "\21BA"; font-size: 1em; }
.flip-back .flip-hint { margin-top: auto; }
.flip-back .flip-hint::before { content: "\2190"; font-size: 1em; }

.flip-face.flip-front {
	display: grid;
	grid-template-columns: 46px 1fr;
	column-gap: 14px;
	align-items: center;
}
.flip-face.flip-front .icon { grid-column: 1; grid-row: 1; }
.flip-face.flip-front h3   { grid-column: 2; grid-row: 1; margin: 0; }
.flip-face.flip-front .price      { grid-column: 1 / -1; margin-top: 0.75rem; justify-content: center; }
.flip-face.flip-front .flip-hint  { grid-column: 1 / -1; justify-self: center; }

/* -- Prix : chip lavande + typo badge ----------------------------------- */
.price.price-chip {
	display: inline-flex;
	grid-column: 1 / -1;
	justify-self: center;
	align-items: baseline;
	gap: 0.5em;
	background: var(--brand-50);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.4em 1.15em;
	margin-top: 0.85rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--accent-600);
}
.price.price-chip .amount { font-size: 1.05rem; font-weight: 700; color: var(--accent); letter-spacing: 0; text-transform: none; }

/* ---- Contact ----------------------------------------------------------- */
.contact-card {
	padding: clamp(32px, 5vw, 56px) 0;
	text-align: center;
}
.contact-card .section-sub { max-width: 52ch; margin: 0 auto 26px; }
.contact-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 44px;
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.contact-info > div { display: flex; align-items: center; gap: 13px; text-align: left; }
.contact-info b { display: block; font-size: 0.95rem; }
.contact-info span { color: var(--muted); font-size: 0.9rem; }
.contact-info a { color: var(--brand); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* ---- Prix (cartes de cours) ------------------------------------------- */
.price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.45em;
	margin-top: auto;            /* colle le prix en bas de la carte */
	padding-top: 0.9rem;
	margin-bottom: 0;
	font-size: 0.92rem;
	color: var(--muted);
}
.price .amount { font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; }
.cards-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 22px 0 0; }

/* ---- Bannière crédit d'impôt ------------------------------------------- */
.credit-banner {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: calc(3 * 300px + 2 * 18px); /* aligne avec .deck-equal */
	margin: 0 auto 26px;
	padding: 16px 20px;
	text-align: left;
	background: linear-gradient(120deg, var(--brand-50), var(--surface));
	border: 1.5px solid var(--accent);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	font: inherit;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.credit-banner:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.credit-banner-icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--accent);
	color: #fff;
	font-size: 1.2rem;
}
.credit-banner-text { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.credit-banner-text strong { color: var(--brand); }
.credit-banner-cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	color: var(--accent-600);
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
@media (max-width: 640px) {
	.credit-banner { flex-wrap: wrap; }
	.credit-banner-cta { margin-left: 0; }
}

/* ---- Modale ------------------------------------------------------------ */
.modal[hidden] { display: none; }
.modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 26, 58, 0.55); backdrop-filter: blur(2px); }
.modal-card {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: 85vh;
	overflow-y: auto;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 30px 30px 28px;
	animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: none;
	border-radius: 50%;
	background: var(--surface-alt);
	color: var(--brand);
	font-size: 1.05rem;
	cursor: pointer;
	transition: background 0.15s ease;
}
.modal-close:hover { background: var(--line); }
.modal-card h3 {
	font-family: var(--font-display);
	color: var(--brand);
	font-size: 1.4rem;
	margin: 0 34px 18px 0;
	line-height: 1.2;
}
.modal-steps p {
	margin: 0 0 14px;
	padding-left: 1.7em;
	text-indent: -1.7em; /* retrait négatif : les lignes suivantes s'alignent sous le texte, pas sous le ✔ */
	color: var(--muted);
	font-size: 0.97rem;
	line-height: 1.6;
}
.modal-steps p:last-child { margin-bottom: 0; }
.modal-steps strong { color: var(--brand); font-weight: 600; }
.modal-check { color: var(--accent); font-weight: 700; margin-right: 0.55em; }

/* ---- À propos ---------------------------------------------------------- */
.about-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
}
.about-copy h2 { margin-top: 6px; }
.about-copy p { color: var(--muted); margin: 0 0 16px; max-width: 60ch; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p.eyebrow { color: #ffffff; margin-bottom: 16px; }
.about-facts h3 { margin: 0 0 16px; font-size: 1.1rem; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.facts li svg {
	width: 20px; height: 20px; flex: none; margin-top: 2px;
	fill: none; stroke: var(--brand); stroke-width: 1.7;
	stroke-linecap: round; stroke-linejoin: round;
}
.facts li b { display: block; }
.facts li span { color: var(--muted); }
.zones { border-top: 1px solid var(--line); padding-top: 18px; }
.zones b { display: block; margin-bottom: 11px; font-size: 0.95rem; }

/* ---- Témoignages ------------------------------------------------------- */
.deck .testimonial.card {
	flex: 1 1 400px;
	max-width: 520px;
}
#avis .deck { align-items: flex-start; }
.testimonial blockquote {
	margin: 0;
	position: relative;
	padding-top: 28px;
	font-size: 1.02rem;
	line-height: 1.6;
	color: var(--ink);
}
.testimonial blockquote::before {
	content: "\201C";
	position: absolute;
	top: -10px;
	left: -4px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 3.2rem;
	line-height: 1;
	color: var(--accent);
}
.testimonial-more {
	display: block;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}
.testimonial-toggle {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--accent);
}
.testimonial-toggle:hover { color: var(--accent-600); }
.testimonial figcaption {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.testimonial figcaption b { display: block; font-size: 0.98rem; }
.testimonial figcaption span { color: var(--muted); font-size: 0.88rem; }

/* ---- À propos : présentation structurée -------------------------------- */
.cv-stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.cv-block {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 30px;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.cv-block:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}
.cv-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	position: relative;
	padding: 0;
	width: 100%;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
}
.cv-block-num { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: var(--accent); }
.cv-block-head h3 { font-family: var(--font-display); color: var(--brand); font-size: 1.3rem; line-height: 1.2; margin: 0; }
.cv-chevron {
	flex: none;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
	margin-top: -3px;
}
.cv-block-head[aria-expanded="true"] .cv-chevron { transform: rotate(-135deg); margin-top: 3px; }
.cv-panel { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.cv-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px 30px;
}
.cv-list li { position: relative; padding-left: 16px; }
.cv-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 6px;
	height: 6px;
	border-radius: 2px;
	background: var(--accent);
}
.cv-list b { display: block; color: var(--brand); font-weight: 600; font-size: 0.97rem; line-height: 1.35; margin-bottom: 3px; }
.cv-list span { display: block; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.cv-icon { color: var(--accent); margin-right: 11px; font-size: 0.92em; }
.cv-text { margin: 0; padding-top: 16px; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.cv-text strong { color: var(--brand); font-weight: 600; }
.cv-text a { color: var(--brand); font-weight: 600; text-decoration: none; }
.cv-text a:hover { color: var(--accent); }
.cv-zones { justify-content: center; margin-top: 26px; }

/* ---- Mes offres : encart contextuel ----------------------------------- */
/* ---- Zones desservies -------------------------------------------------- */
.zone-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: stretch;
}
.zone-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 24px 26px;
}
.zone-card h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	color: var(--brand);
	font-size: 1.15rem;
	margin: 0 0 6px;
}
.zone-card h3 i { color: var(--accent); font-size: 0.95rem; }
.zone-card-intro { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; }
.commune-list {
	columns: 2;
	column-gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.commune-list li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 8px;
	font-size: 0.95rem;
	break-inside: avoid;
	white-space: nowrap; /* "Divonne-les-Bains" ne casse pas sur son trait d'union */
}
.commune-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
}
.zone-card-foot {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
}
.zone-card-foot i { color: var(--accent); }
.zone-map {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	min-height: 340px;
}
#zone-leaflet {
	width: 100%;
	height: 100%;
	min-height: 340px;
	background: var(--surface-alt);
}
.leaflet-container { font: inherit; }
.zone-map .leaflet-interactive { cursor: pointer; }
/* Liste de gauche : item actif quand la zone correspondante est survolée */
.commune-list li { cursor: pointer; transition: color 0.15s ease; }
.commune-list li.is-active { color: var(--brand); font-weight: 600; }
.commune-list li.is-active::before { background: var(--brand); transform: scale(1.5); }
.commune-list li::before { transition: transform 0.15s ease, background 0.15s ease; }

/* ---- Mes offres : option supplementaire ------------------------------- */
.offer-option {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 28px auto 0;
	max-width: calc(3 * 300px + 2 * 18px); /* aligne avec .deck-equal 3 colonnes */
	padding: 20px 24px;
	background: var(--surface);
	border: 1.5px dashed var(--accent);
	border-radius: var(--radius);
}
.offer-option h3 {
	font-family: var(--font-display);
	color: var(--brand);
	font-size: 1.1rem;
	margin: 4px 0 6px;
}
.offer-option p { color: var(--muted); font-size: 0.93rem; margin: 0; line-height: 1.55; }
.offer-option .step-badge { margin-bottom: 2px; }

/* ---- Mon approche : timeline steps ------------------------------------ */
.steps-timeline {
	list-style: none;
	margin: 0 auto;
	padding: 40px 0;
	max-width: 1000px;
	position: relative;
}
.steps-timeline::before {
	content: '';
	position: absolute;
	left: calc((100% - 60px) / 3 + 30px);
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, transparent, var(--brand-100) 8%, var(--brand-100) 92%, transparent);
	transform: translateX(-50%);
	pointer-events: none;
}
.step {
	display: grid;
	grid-template-columns: 1fr 60px 2fr;
	align-items: center;
	gap: 0;
	padding: 18px 0;
}
.step-axis {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 1;
}
.step-num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	font-size: 1.1rem;
	font-weight: 900;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 14px rgba(245,169,41,0.3);
	flex-shrink: 0;
}
.step-label {
	padding: 6px 20px 6px 0;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
}
.step-label h3 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--brand);
	margin: 0;
	line-height: 1.2;
	text-align: left;
}
.step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--brand);
	color: #fff;
	font-size: 1.1rem;
	flex-shrink: 0;
}
.step-detail {
	padding: 6px 0 6px 20px;
}
.step-card {
	background: var(--surface);
	border-radius: 14px;
	padding: 20px 24px;
	box-shadow: 0 2px 16px rgba(43,32,118,0.08);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.step-card p {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.55;
	margin: 0;
}
.step-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.step-card li {
	color: var(--muted);
	font-size: 0.97rem;
	line-height: 1.5;
	padding-left: 18px;
	position: relative;
}
.step-card li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}
.step-badge {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 0.67rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 20px;
	align-self: flex-start;
}

/* ---- Offres de cours --------------------------------------------------- */
#cours .section-head { max-width: none; }

/* ---- À propos ---------------------------------------------------------- */
#apropos .section-head { max-width: none; }

/* ---- Pour qui : parcours scolaire ------------------------------------- */
#niveaux .section-head { max-width: none; }
#niveaux .icon { color: var(--accent); }

.level-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	margin-bottom: 18px;
}

.level-panel {
	padding: 24px 20px 28px;
	border-right: 1px solid var(--line);
	position: relative;
}

.level-panel:last-child { border-right: none; }

.level-panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--brand);
}

.level-panel:nth-child(1)::before { opacity: 0.28; }
.level-panel:nth-child(2)::before { opacity: 0.6; }

.level-panel-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-top: 6px;
}

.level-panel-head h3 {
	font-family: var(--font-display);
	color: var(--brand);
	font-size: 1.1rem;
	margin: 0 0 1px;
	line-height: 1.2;
}

.level-panel-head .icon i { font-size: 1.05rem; }

.level-range {
	font-size: 0.8rem;
	color: var(--muted);
	display: block;
	font-weight: 500;
}

.level-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.level-list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9rem;
	color: var(--ink);
	line-height: 1.45;
}

.level-list li::before {
	content: "";
	flex: none;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	margin-top: 6px;
}

.level-special {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.level-special .level-list { margin-top: 10px; }

.level-special--cols .level-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px 24px;
}

.level-special + .level-special { margin-top: 18px; }

.level-special h3 {
	font-family: var(--font-display);
	color: var(--brand);
	font-size: 1.15rem;
	margin: 0 0 4px;
}

.level-special p {
	color: var(--muted);
	font-size: 0.93rem;
	margin: 0;
	line-height: 1.5;
}

.level-special .icon i { font-size: 1.05rem; }

/* ---- Pied de page ------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.9rem;
}

/* ---- Apparition au défilement (optionnelle, sûre sans JS) -------------- */
.reveal-init { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-in { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; gap: 30px; }
	.hero-media { order: -1; max-width: 380px; }
	.about-grid { grid-template-columns: 1fr; }
	.steps-timeline::before { left: 23px; transform: none; }
	.step { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; padding: 12px 0; }
	.step-axis { grid-column: 1; grid-row: 1 / 3; align-self: start; justify-content: flex-start; }
	.step-label { grid-column: 2; grid-row: 1; padding: 0; justify-content: flex-start; }
	.step-detail { grid-column: 2; grid-row: 2; padding: 0; }
	.deck-equal { grid-template-columns: repeat(2, minmax(0, 300px)); }
	.zone-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.level-grid { grid-template-columns: 1fr; }
	.level-panel { border-right: none; border-bottom: 1px solid var(--line); }
	.level-panel:last-child { border-bottom: none; }
	.level-special { align-items: flex-start; }
}

@media (max-width: 560px) {
	.deck-equal { grid-template-columns: minmax(0, 320px); }
}

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 40px;
		height: 40px;
		background: none;
		border: 0;
		padding: 0;
		cursor: pointer;
	}
	.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
	.site-nav {
		position: fixed;
		inset: 64px 0 auto 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: #fff;
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 8px 24px 18px;
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.2s ease, opacity 0.2s ease;
	}
	.site-nav[data-open] { transform: none; opacity: 1; pointer-events: auto; }
	.site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
	.site-nav a.btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal-init { opacity: 1; transform: none; transition: none; }
	.card, .btn { transition: none; }
	.flip-inner { transition: none; }
}
