/* ==========================================================================
   AFI Colombes — feuille de style principale
   Palette issue du logo : bleu #3378D5 / vert #33D583
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #3378d5;
  --blue-dark: #2661b3;
  --blue-soft: #e7f0fc;
  --blue-tint: #f3f7fd;
  --green: #33d583;
  --green-dark: #1fa866;
  --green-soft: #e4f9ef;
  --sand: #fff7ea;
  --amber: #f5b84b;
  --ink: #17263f;
  --text: #3b4a61;
  --muted: #6c7a90;
  --line: #e3e9f2;
  --white: #ffffff;
  --bg: #f7f9fc;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(23, 38, 63, 0.18);
  --shadow-lg: 0 24px 50px -20px rgba(23, 38, 63, 0.28);
  --container: 1160px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
strong { font-weight: 700; color: var(--ink); }
address { font-style: normal; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--blue-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(51, 120, 213, 0.45);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(51, 120, 213, 0.65);
}
.btn--primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 14px 26px -10px rgba(51, 120, 213, 0.7); }

.btn--green {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 10px 22px -10px rgba(51, 213, 131, 0.7);
}
.btn--green:hover { background: #2ccb7a; color: var(--ink); }

.btn--outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue);
  border-color: currentColor;
}
.btn--outline:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn--light {
  background: #fff;
  color: var(--blue);
}
.btn--light:hover { background: var(--blue-soft); color: var(--blue-dark); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(23, 38, 63, 0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 190px; height: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 22px; height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--green);
}
.site-nav .btn { margin-left: 0.6rem; padding: 0.7rem 1.25rem; color: #fff; }
.site-nav .btn:hover { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { width: 160px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 0.5rem 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(23, 38, 63, 0.35);
    transform-origin: top;
    transform: scaleY(0.96) translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { display: block; padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--blue-soft); }
  .site-nav .btn { margin: 0.6rem 0 0; display: flex; }
}

/* --------------------------------------------------------------------------
   Sections & titres
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tint { background: var(--bg); }
.section--sand { background: var(--sand); }
.section--blue {
  background: linear-gradient(135deg, var(--blue) 0%, #2a68c2 60%, #245ab0 100%);
  color: rgba(255, 255, 255, 0.92);
}
.section--blue h2, .section--blue h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.12rem; color: var(--muted); }
.section--blue .section-head p { color: rgba(255, 255, 255, 0.85); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  line-height: 1.45;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow--blue { background: var(--blue-soft); color: var(--blue-dark); }
.eyebrow--amber { background: #fdefd3; color: #9a6410; }
.section--blue .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(51, 213, 131, 0.14) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(51, 120, 213, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero__title { margin-bottom: 1rem; }
.hero__title em {
  font-style: normal;
  color: var(--blue);
  background: linear-gradient(transparent 62%, rgba(51, 213, 131, 0.35) 62%);
  padding-inline: 0.05em;
  border-radius: 4px;
}
.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero__trust svg { width: 20px; height: 20px; color: var(--green-dark); }

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__blob {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
}
.hero__blob--green { width: 46%; aspect-ratio: 1; right: -8%; top: -10%; background: rgba(51, 213, 131, 0.38); }
.hero__blob--blue { width: 38%; aspect-ratio: 1; left: -8%; bottom: -10%; background: rgba(51, 120, 213, 0.3); }
.hero__badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem 0.8rem 0.8rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.hero__badge small { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.hero__badge--age { left: -6%; top: 8%; }
.hero__badge--place { right: -5%; bottom: 8%; }
.hero__badge .icon-circle { width: 42px; height: 42px; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-top: 0.5rem; }
  .hero__badge--age { left: 0; top: -4%; }
  .hero__badge--place { right: 0; bottom: -4%; }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
  .hero__badge { padding: 0.6rem 0.8rem 0.6rem 0.6rem; font-size: 0.9rem; }
  .hero__badge .icon-circle { width: 36px; height: 36px; }
}

/* Bandeau chiffres clés */
.facts {
  position: relative;
  z-index: 2;
  margin-top: -2.4rem;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fact {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.3rem;
  background: #fff;
}
.fact strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.fact span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts__grid { grid-template-columns: 1fr; } .facts { margin-top: 1.5rem; } }

/* --------------------------------------------------------------------------
   Icônes
   -------------------------------------------------------------------------- */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue);
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle--green { background: var(--green-soft); color: var(--green-dark); }
.icon-circle--amber { background: #fdefd3; color: #b8791a; }
.icon-circle--round { border-radius: 50%; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon-circle { margin-bottom: 1.2rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text); }
.card__link {
  margin-top: auto;
  padding-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
}
.card__link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.card__link:hover svg { transform: translateX(4px); }

/* Carte cours principale */
.course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.course-card__media { position: relative; min-height: 320px; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.course-card__tag {
  position: absolute;
  left: 1.25rem; top: 1.25rem;
  z-index: 1;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.course-card__body { min-width: 0; padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.course-card__quote {
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 4px solid var(--green);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  font-style: italic;
}
.course-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 860px) {
  .course-card { display: block; width: 100%; min-width: 0; }
  .course-card__media { min-height: 240px; aspect-ratio: 16 / 9; }
  .course-card__body {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .course-card__body h3,
  .course-card__body p {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 480px) {
  .course-card__body { padding: 1.5rem 1.15rem; }
  .course-card__body h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    text-wrap: wrap;
  }
}

/* Liste d'atouts avec coche */
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--ink);
}
.check-list svg {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 0.1rem;
  color: var(--green-dark);
}

/* Cartes niveaux / horaires */
.level {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.level:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.level__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}
.level:nth-child(2) .level__num { background: var(--green-dark); }
.level:nth-child(3) .level__num { background: var(--amber); color: var(--ink); }
.level:nth-child(4) .level__num { background: var(--ink); }
.level h3 { font-size: 1.2rem; }
.level p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.level ul { margin: 0; padding: 0; list-style: none; }
.level li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3rem 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line);
}
.level li:first-child { border-top: 0; }
.level li span { color: var(--muted); }
.level li strong { white-space: nowrap; }
.section-note {
  max-width: 760px;
  margin: 1.4rem auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1.1rem 0.95rem;
  background: linear-gradient(to top, rgba(23, 38, 63, 0.75), transparent);
  color: #fff;
  font-weight: 700;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child { aspect-ratio: 4 / 3; } }

/* Section association : texte + visuel */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.split__media {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Infos pratiques */
.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.grid--4 .info-card { flex-direction: column; gap: 0.9rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.info-card p { margin: 0; color: var(--text); }
.info-card a { font-weight: 700; }
.info-card address { font-style: normal; }

/* Témoignages (avis Google) */
.testimonials { position: relative; overflow: hidden; }
.testimonials::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 46vw;
  max-width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 213, 131, 0.28), transparent 65%);
  pointer-events: none;
}
.testimonials .container { position: relative; }
.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.google-rating:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.google-rating__logo { display: inline-flex; width: 26px; height: 26px; }
.google-rating__logo svg { width: 100%; height: 100%; }
.google-rating__score { font-size: 1.15rem; }
.google-rating__stars, .testimonial__stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; fill: var(--amber); }
.google-rating__count { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.testimonials__grid { margin-top: 0.5rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial::after {
  content: "”";
  position: absolute;
  top: 0.6rem;
  right: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--blue-soft);
  pointer-events: none;
}
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial__avatar {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex: none;
}
.testimonial:nth-child(2) .testimonial__avatar { background: var(--green-dark); }
.testimonial:nth-child(3) .testimonial__avatar { background: var(--amber); color: var(--ink); }
.testimonial__who { display: flex; flex-direction: column; line-height: 1.3; }
.testimonial__who strong { color: var(--ink); }
.testimonial__who small { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.testimonials__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}
.testimonials__link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.testimonials__link:hover { color: var(--green); }
@media (max-width: 480px) {
  .google-rating { flex-wrap: wrap; justify-content: center; }
  .testimonial { padding: 1.4rem; }
}

/* Bandeau CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--blue) 0%, #2a68c2 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(51, 213, 131, 0.35);
  filter: blur(6px);
}
.cta-band::after {
  content: "";
  position: absolute;
  left: 30%; bottom: -120px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 0; }
.cta-band .btn--light { box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4); }
@media (max-width: 760px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
}

/* Actualités */
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 1; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.6rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue); }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__media { aspect-ratio: 16 / 9; }
  .post-card__body { padding: 0 1.4rem 1.4rem; }
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.form-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.form-aside .contact-list { margin-top: 1.5rem; }
@media (max-width: 900px) {
  .form-wrap { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; font-weight: 600; color: var(--ink); }
.contact-list .icon-circle { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .icon-circle svg { width: 22px; height: 22px; }
.contact-list small { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-field label,
.form-field .form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}
.form-field .req { color: #d64545; margin-left: 0.15rem; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233b4a61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(51, 120, 213, 0.15);
}
.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid,
.form-field .is-invalid { border-color: #d64545; }
.form-field .form-hint { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.form-field .form-error { display: none; margin-top: 0.35rem; font-size: 0.85rem; font-weight: 700; color: #c53030; }
.form-field.has-error .form-error { display: block; }

.choice-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.form-field .choice {
  position: relative;
  display: inline-flex;
  margin: 0;
  font-size: 1rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__dot {
  display: inline-block;
  flex: none;
  width: 18px; height: 18px;
  border: 2px solid #b6c2d3;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.choice:has(input:checked) .choice__dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(51, 120, 213, 0.2); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-actions .form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  font-weight: 600;
}
.form-status.is-success { display: block; background: var(--green-soft); color: #14603c; border: 1px solid #b5ecd0; }
.form-status.is-error { display: block; background: #fdecec; color: #8f2323; border: 1px solid #f5c2c2; }

/* Champ anti-spam (honeypot) */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(51, 213, 131, 0.14) 0%, transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero__lead { font-size: 1.15rem; color: var(--text); max-width: 42em; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.5rem; }
.page-hero__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.page-hero__note::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.page-hero--split .page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .page-hero--split .page-hero__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .page-hero__actions .btn { width: 100%; } }

.breadcrumb { margin: 0 0 1.2rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: #a5b1c3; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }

/* FAQ */
.faq { display: grid; gap: 0.8rem; max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233378d5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 1.35rem 1.25rem; color: var(--text); }

/* Carte Google */
.map-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 8;
  background: var(--bg);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* Transports */
.access-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.access-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.access-list strong { display: block; }
.access-list span { color: var(--text); }

/* Article / prose */
.prose { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul li { margin-bottom: 0.35rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.prose .post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.5rem; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.prose address { font-style: normal; }

.article-footer {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--sand);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.article-footer p { margin: 0; font-weight: 700; color: var(--ink); }

/* Page 404 */
.error-page { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page .big { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--blue); margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}
.site-footer h2 {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--green); }
.site-footer address { font-style: normal; display: grid; gap: 0.55rem; }
.footer-brand img { width: 200px; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { max-width: 34ch; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; gap: 2rem; } }

/* --------------------------------------------------------------------------
   Section inscription pleine largeur (page Arabe pour enfants)
   -------------------------------------------------------------------------- */
.inscription {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.inscription::before,
.inscription::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.inscription::before {
  width: 520px; height: 520px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, rgba(51, 213, 131, 0.45), rgba(51, 213, 131, 0) 70%);
}
.inscription::after {
  width: 460px; height: 460px;
  left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%);
}
.inscription .section-head { max-width: 780px; }
.inscription .section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.inscription .form-card {
  border: 0;
  box-shadow: 0 30px 70px -30px rgba(9, 24, 52, 0.55);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.steps li:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px -8px rgba(51, 213, 131, 0.8);
}
.steps strong { display: block; color: #fff; margin-bottom: 0.15rem; }
.steps span { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 0.75rem; } }

@media (min-width: 900px) {
  .inscription .form-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.5rem; }
  .inscription .form-grid > .form-field:nth-child(5),
  .inscription .form-grid > .form-field:nth-child(6) { grid-column: span 2; }
  .inscription .form-field textarea { min-height: 120px; }
}

.inscription__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.inscription__contact li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.inscription__contact li:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.inscription__contact svg { width: 20px; height: 20px; color: var(--green); }
.inscription__contact a { color: #fff; }
.inscription__contact a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   Transitions & animations
   -------------------------------------------------------------------------- */

/* Transition douce entre les pages (navigateurs compatibles, sinon ignoré) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Entrée du hero au chargement */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.6); }
  70% { transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.hero .eyebrow,
.hero__title,
.hero__lead,
.hero__actions,
.hero__trust,
.page-hero .breadcrumb,
.page-hero .eyebrow,
.page-hero h1,
.page-hero__lead,
.page-hero__actions, .page-hero__note { animation: rise 0.8s var(--ease) both; }
.hero .eyebrow, .page-hero .breadcrumb { animation-delay: 0.05s; }
.hero__title, .page-hero .eyebrow { animation-delay: 0.15s; }
.hero__lead, .page-hero h1 { animation-delay: 0.27s; }
.hero__actions, .page-hero__lead { animation-delay: 0.4s; }
.hero__trust, .page-hero__actions { animation-delay: 0.52s; }
.page-hero__note { animation-delay: 0.62s; }
.hero__photo, .page-hero--split .split__media { animation: zoom-in 1s var(--ease) 0.25s both; }
.hero__badge { animation: pop 0.7s var(--ease) both; }
.hero__badge--age { animation-delay: 0.9s; }
.hero__badge--place { animation-delay: 1.1s; }
.hero__blob { animation: float 9s ease-in-out infinite; }
.hero__blob--blue { animation-delay: -4s; animation-duration: 11s; }

/* En-tête compact au défilement */
.site-header__inner,
.brand img { transition: min-height 0.35s var(--ease), width 0.35s var(--ease); }
@media (min-width: 861px) {
  .site-header.is-scrolled .site-header__inner { min-height: 64px; }
  .site-header.is-scrolled .brand img { width: 160px; }
}

/* Menu : soulignement qui grandit depuis le centre */
.site-nav a:not(.btn)::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
@media (min-width: 861px) {
  .site-nav a:not(.btn):hover { background: transparent; }
  .site-nav a:not(.btn):hover::before { width: calc(100% - 1.8rem); }
}

/* Boutons : reflet au survol + icône qui glisse */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn--outline::after { background: linear-gradient(115deg, transparent 30%, rgba(51, 120, 213, 0.12) 50%, transparent 70%); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Cartes : icône qui réagit, liseré coloré */
.card::before {
  content: "";
  position: absolute;
  left: 1.75rem; right: 1.75rem; top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card:hover::before { transform: scaleX(1); }
.icon-circle { transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s; }
.card:hover .icon-circle,
.info-card:hover .icon-circle,
.fact:hover .icon-circle { transform: scale(1.1) rotate(-6deg); }
.level__num { transition: transform 0.4s var(--ease); }
.level:hover .level__num { transform: rotate(-8deg) scale(1.08); }
.fact { transition: background-color 0.3s; }
.fact:hover { background: var(--blue-tint); }

/* Images : zoom doux */
.split__media img,
.course-card__media img,
.post-card__media img { transition: transform 0.8s var(--ease); }
.split__media:hover img,
.course-card:hover .course-card__media img,
.post-card:hover .post-card__media img { transform: scale(1.04); }
.gallery figcaption { transform: translateY(6px); transition: transform 0.5s var(--ease); }
.gallery figure:hover figcaption { transform: none; }

/* FAQ : contenu qui apparaît en fondu */
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.faq details[open] .faq__body { animation: faq-open 0.4s var(--ease) both; }
.faq summary { transition: color 0.2s, background-color 0.2s; }
.faq summary:hover { color: var(--blue); background: var(--blue-tint); }

/* Formulaire : libellé qui se colore au focus */
.form-field label, .form-field .form-label { transition: color 0.2s; }
.form-field:focus-within > label { color: var(--blue); }

/* Apparition au défilement */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal--left { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
@media (max-width: 900px) {
  .reveal--left,
  .reveal--right { transform: translateY(26px); }
}
.reveal--zoom { transform: scale(0.93) translateY(12px); }
.reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.no-js .reveal { opacity: 1; transform: none; }

/* Décalage automatique des enfants dans les grilles */
.grid > .reveal:nth-child(2), .gallery > .reveal:nth-child(2), .steps > .reveal:nth-child(2) { --delay: 0.1s; }
.grid > .reveal:nth-child(3), .gallery > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { --delay: 0.2s; }
.grid > .reveal:nth-child(4) { --delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__blob { animation: none; }
}

/* Impression */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero__blob, .cta-band { display: none !important; }
  body { color: #000; }
}
