/* Polices auto-hébergées (perf + RGPD : aucun appel à Google).
   Les .woff2 sont déposés dans www/assets/fonts/. À défaut, le fallback
   system-ui défini dans les tokens prend le relais. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fredoka-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/caveat-variable.woff2') format('woff2');
}

/* Tokens de design extraits du prototype Archipel. */
:root {
  /* Couleurs */
  --bg: #FBF7EC;
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --brand: #5FAE97;
  --brand-2: #6FB6D4;
  --accent: #F0DB4B;
  --ink: #274A57;
  --ink-soft: #5E7B83;
  --ink-dark: #22302A;
  --line: #EAE3D0;

  /* Rayons */
  --radius: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  /* Ombres */
  --shadow: 0 6px 14px rgba(40, 80, 90, .07), 0 30px 60px -34px rgba(40, 90, 100, .5);
  --shadow-sm: 0 2px 10px rgba(40, 80, 90, .07);

  /* Typographie */
  --font-display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
  --display-weight: 600;

  /* Échelle / rythme */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(2rem, 3.6vw, 3.25rem);
}

/* Reset moderne minimal. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

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

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

ul[class], ol[class] { list-style: none; padding: 0; }

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

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

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

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

/* Base : corps de page, typographie, liens, utilitaires de texte. */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* 17px */
  color: var(--ink);
  background: var(--bg);
}

/* Titres d'affichage */
.h-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
}

h1.h-display, .hero__title { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; }
h2.h-display { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3.h-display { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4.h-display { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* Sur-titre coloré */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  margin-bottom: .6rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

/* Contenu riche */
.prose { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-soft); }
.prose--narrow { max-width: 58ch; }
.prose > * + * { margin-top: 1.1em; }
.prose strong { color: var(--ink); font-weight: 800; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { color: var(--ink); }
.prose h2, .prose h3 { color: var(--ink); font-family: var(--font-display); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 4px solid var(--brand); padding-left: 1em; font-style: italic; color: var(--ink); }

/* Utilitaires */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center .section__intro, .text-center .prose { margin-inline: auto; }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Mise en page : conteneur, sections, en-têtes de section. */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y) calc(var(--section-y) / 3); }
.section--tight { padding-block: clamp(1.5rem, 2.5vw, 2rem) .6rem; }
/* Resserre l'espace entre deux blocs de contenu consécutifs (titre → texte). */
.section + .section { padding-top: 0; }
.section--band + .section, .section + .section--band { padding-top: var(--section-y); }

/* Bloc titre : marge AVANT + APRÈS proportionnelle au niveau du titre.
   Pas de marge avant pour un H1. (Spacing par marges, qui se chevauchent
   proprement entre blocs adjacents — collapse.) */
.heading-block { margin-block: var(--hb-before) var(--hb-after); scroll-margin-top: 110px; }
.heading-block--h1 { --hb-before: 0;                            --hb-after: clamp(.5rem, 1.2vw, .9rem); }
.heading-block--h2 { --hb-before: clamp(1.8rem, 3.4vw, 2.8rem); --hb-after: clamp(.5rem, 1.1vw, .85rem); }
.heading-block--h3 { --hb-before: clamp(1.3rem, 2.4vw, 1.9rem); --hb-after: clamp(.4rem, .9vw, .7rem); }
.heading-block--h4 { --hb-before: clamp(1rem, 1.9vw, 1.4rem);   --hb-after: clamp(.3rem, .7vw, .55rem); }

/* Bloc texte : marge verticale TRÈS fine. */
.text-block { margin-block: clamp(.15rem, .5vw, .35rem); }

/* Un grand bloc (.section) qui suit un titre/texte ne rajoute pas son padding haut
   (la marge du titre/texte gère déjà l'espacement). */
.heading-block + .section, .text-block + .section { padding-top: 0; }

.section__head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .h-display { margin-top: .2em; }
.section__intro { color: var(--ink-soft); font-size: 1.125rem; margin-top: .8rem; }
.section__action { margin-top: 2rem; }

main { display: block; }

/* Lien « en savoir plus » fléché */
.link-more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; color: var(--brand);
}
.link-more svg { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.link-more:hover { color: var(--ink); }
.link-more:hover svg { transform: translateX(3px); }

/* ============================================================
   Composants
   ============================================================ */

/* --- Boutons pilule --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  padding: .85em 1.5em; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: #51a087; }
.btn--accent { background: var(--accent); color: var(--ink-dark); }
.btn--accent:hover { background: #ecd23a; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outlinelight { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outlinelight:hover { background: rgba(255, 255, 255, .12); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1d3a45; }

.btn-group { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* --- Bloc bouton simple (sans fond ni espacement vertical) --- */
/* On ne remet PAS margin:0 ici : cela écraserait le margin-inline:auto de
   .container et décalerait le bouton à gauche de la fenêtre au lieu de
   l'aligner sur la colonne de contenu. .container n'a aucune marge verticale. */
.btn-block { display: flex; }
.btn-block--left { justify-content: flex-start; }
.btn-block--center { justify-content: center; }
.btn-block--right { justify-content: flex-end; }

/* --- En-tête sticky --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 98px; }

/* Logo */
.brand { display: inline-flex; align-items: center; flex: none; margin-left: -4px; }
.brand__img { height: 72px; width: auto; display: block; }

/* Desktop : tout en haut de page → pas de bordure + logo agrandi ;
   au scroll → en-tête compact + bordure visible. */
@media (min-width: 980px) {
  .site-header { transition: border-color .25s ease; }
  .site-header__inner { transition: min-height .25s ease; }
  .brand__img { transition: height .25s ease; }
  .site-header.is-top { border-bottom-color: transparent; }
  .site-header.is-top .site-header__inner { min-height: 142px; }
  .site-header.is-top .brand__img { height: 114px; }
}

/* Navigation desktop */
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__list { display: flex; align-items: stretch; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__top {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 9px; border-radius: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 18px; color: var(--ink); white-space: nowrap;
}
.nav__top:hover { color: var(--brand); }
/* Taille du menu réduite progressivement sur écrans plus étroits. */
@media (max-width: 1099px) { .nav__top { font-size: 16px; } }
@media (max-width: 1023px) { .nav__top { font-size: 14px; } }
.nav__caret { font-size: 8px; opacity: .55; transition: transform .2s ease; margin-top: 1px; }
.has-mega:hover .nav__caret, .has-mega:focus-within .nav__caret { transform: rotate(180deg); }

/* Méga-menu */
.mega {
  position: absolute; top: 100%; left: 0; padding-top: 8px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease;
}
.has-mega:not(.has-mega--wide) .mega { left: auto; right: 0; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 18px 50px -20px rgba(0, 0, 0, .3); padding: 16px;
  display: flex; flex-direction: column; gap: 1px; width: 250px;
}
.mega__inner--cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 2px; width: 580px; }
.mega__col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mega__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 15px; color: var(--brand); padding: 8px 8px 3px; }
a.mega__title:hover { text-decoration: underline; }
.mega__link { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.3; padding: 7px 8px; border-radius: 9px; }
.mega__link:hover { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--ink); }

.nav__cta { margin-left: 12px; }

/* Burger (mobile) */
.burger { display: none; flex-direction: column; gap: 5px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 13px; margin-left: auto; }
.burger span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s ease; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { padding-block: clamp(56px, 9vw, 110px); position: relative; z-index: 1; max-width: 60ch; }
.hero--compact .hero__inner { padding-block: clamp(24px, 3.5vw, 44px); }
.hero__title { margin-top: .3em; }
.hero__quote { font-family: var(--font-hand); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--brand); margin-top: .6rem; }
.hero__lead { font-size: 1.18rem; line-height: 1.7; color: var(--ink-soft); margin-top: 1.2rem; max-width: 46ch; }
.hero__meta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.hero__meta-icon { width: 1.2em; height: 1.2em; color: var(--brand); }

.hero--gradient {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--brand-2) 22%, var(--bg)), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--brand) 20%, var(--bg)), var(--bg) 72%);
}
.hero--plain { background: var(--bg); }

.hero__decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__decor .deco { position: absolute; }
.deco--a { width: 26px; color: var(--accent); top: 18%; right: 12%; animation: float 7s ease-in-out infinite; }
.deco--b { width: 16px; color: var(--brand-2); top: 64%; right: 28%; animation: float 9s ease-in-out infinite; }
.deco--c { width: 40px; color: color-mix(in srgb, var(--brand) 50%, transparent); bottom: 12%; right: 6%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(8deg); } }

/* --- Hero split (page d'accueil) --- */
.hero--split { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__blob { position: absolute; top: -80px; right: -60px; width: 420px; height: 420px; border-radius: 50%; background: color-mix(in srgb, var(--brand-2) 16%, transparent); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 72px); }
.hero__col { position: relative; z-index: 2; }
.hero--split .hero__title { line-height: 1; margin-top: .1em; }
.hero__hand { display: block; font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--brand); }
.hero__cite { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; margin-top: 1.3rem; }
.hero__cite-author { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }
.hero__aside { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__aside { max-width: 360px; width: 100%; margin-inline: auto; }
}

/* --- Cards / pôles --- */
.poles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.poles__head .h-display { margin: 0; max-width: 18ch; }
.poles__intro { font-size: 1rem; color: var(--ink-soft); max-width: 38ch; margin: 0; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: transform .2s ease; }
.card:hover { transform: translateY(-5px); }
.card__link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 28px; }
.card__num { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.card__num--brand { background: var(--brand); }
.card__num--brand2 { background: var(--brand-2); }
.card__num--accent { background: var(--accent); color: var(--ink-dark); }
.card__badge { display: inline-block; font-family: var(--font-body); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.card__badge--brand2 { color: var(--brand-2); }
.card__badge--accent { color: #b8902a; }
.card__title { margin: 4px 0 0; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.card__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; margin: 0; }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 800; font-size: .9rem; color: var(--brand); }
.card__arrow { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.card:hover .card__arrow { transform: translateX(4px); }

/* --- Figures & galerie --- */
.figure { margin: 0 auto; }
.figure__media img { width: 100%; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.figure--small  { max-width: 320px; }
.figure--medium, .figure--normal { max-width: 560px; }
.figure--large  { max-width: 860px; }
.figure--full, .figure--wide { max-width: none; }
.figure__caption { margin-top: .8rem; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* Affichage neutre : sans bord arrondi ni ombre.
   Les sélecteurs « … img » sont volontairement à 2 classes (.is-flat .X img) pour
   l'emporter sur les règles « .X img » définies plus bas (même spécificité, ordre
   source) — ex. .gallery__media img et .media-text__media img. */
.is-flat img, .is-flat picture, .is-flat .figure__media, .is-flat .gallery__media,
.is-flat .photocard__frame, .is-flat .media-text__media, .is-flat .testimonial__img,
.is-flat .figure__media img, .is-flat .gallery__media img, .is-flat .media-text__media img { border-radius: 0; box-shadow: none; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) {
  .gallery--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery--4 { grid-template-columns: repeat(4, 1fr); }
}
.gallery__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm); }

/* --- Photos (titre + légende) --- */
.photocards { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .photocards--2 { grid-template-columns: repeat(2, 1fr); }
  .photocards--3 { grid-template-columns: repeat(3, 1fr); }
  .photocards--4 { grid-template-columns: repeat(4, 1fr); }
}
.photocard { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.photocard__title { margin: 0; color: var(--brand-2); font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.photocard__frame { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.photocard__media, .photocard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photocard__caption { margin: 0; font-weight: 800; color: var(--ink); font-size: 1rem; line-height: 1.4; max-width: 28ch; margin-inline: auto; }

/* --- Vidéo (façade YouTube clic-pour-charger) --- */
.videoblock { margin: 0; max-width: 900px; margin-inline: auto; }
.ytfacade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; background-color: var(--ink); background-size: cover; background-position: center; box-shadow: var(--shadow); }
.ytfacade::after { content: ""; position: absolute; inset: 0; background: rgba(40, 80, 90, .22); transition: background .2s ease; }
.ytfacade:hover::after, .ytfacade:focus-visible::after { background: rgba(40, 80, 90, .06); }
.ytfacade__play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: 50%; font-size: 26px; padding-left: 5px; z-index: 1; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .55); transition: transform .15s ease; }
.ytfacade:hover .ytfacade__play { transform: scale(1.06); }
.ytfacade__iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.videoblock__caption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--ink-soft); }

/* --- Widget HelloAsso (adhésion / don) --- */
.ha-embed { width: 100%; }
.ha-widget { display: block; width: 100%; border: 0; background: transparent; }

/* --- Calculateurs (CAF + frais de scolarité) --- */
.calc { max-width: 620px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); }
/* L'attribut [hidden] doit l'emporter sur display:flex/grid des champs (divulgation progressive). */
.calc [hidden] { display: none; }
.calc__head { margin-bottom: 22px; }
.calc__head .eyebrow { margin-bottom: .35rem; }
.calc__title { margin: 0 0 .4rem; }
.calc__intro { color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* Champs (colonne unique : plus rapide à remplir) */
.calc__fields { display: grid; grid-template-columns: 1fr; gap: 18px; }
.calc__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin-top: 18px; }
.calc__fields .calc__field { margin-top: 0; }
.calc__label { font-weight: 700; font-size: .96rem; color: var(--ink); }
.calc__micro { margin: 2px 0 0; font-size: .8rem; color: var(--ink-soft); }
.calc__input { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); font: inherit; font-size: 1.05rem; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.calc__input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }

/* Champ avec unité (€ / mois) */
.calc__affix { position: relative; display: flex; align-items: center; }
.calc__affix .calc__input { padding-right: 5.6em; }
.calc__affix-unit { position: absolute; right: 1em; font-size: .92rem; font-weight: 600; color: var(--ink-soft); pointer-events: none; }

/* Pas à pas − valeur + */
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); width: fit-content; }
.stepper__btn { width: 48px; border: 0; background: transparent; color: var(--brand); font-size: 1.5rem; line-height: 1; font-weight: 700; cursor: pointer; transition: background .15s ease; }
.stepper__btn:hover { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.stepper__input { width: 70px; border: 0; border-inline: 1.5px solid var(--line); background: transparent; text-align: center; font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--ink); padding: .55em 0; -moz-appearance: textfield; appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; }

/* Contrôle segmenté (un seul foyer / deux foyers) */
.calc__segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 4px; }
.calc__seg { position: relative; cursor: pointer; }
.calc__seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.calc__seg-box { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 11px; text-align: center; transition: background .15s ease, box-shadow .15s ease; }
.calc__seg-title { font-weight: 700; font-size: .98rem; color: var(--ink); }
.calc__seg-sub { font-size: .8rem; color: var(--ink-soft); }
.calc__seg input:checked + .calc__seg-box { background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 2px var(--brand); }
.calc__seg input:focus-visible + .calc__seg-box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }

/* Résultat (un grand chiffre, mis à jour en direct) */
.calc__result { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 9%, #fff); border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line)); text-align: center; animation: calc-pop .25s ease; }
.calc__result-label { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.calc__result-value { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1.1; color: var(--brand); }
.calc__result-unit { font-size: .42em; color: var(--ink-soft); font-weight: 600; }
.calc__result-detail { margin: 8px 0 0; font-size: .92rem; color: var(--ink-soft); }
@keyframes calc-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Résultat « deux foyers » : une colonne par parent + total */
.calc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__split-col { padding: 14px 12px; background: var(--surface); border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line)); }
.calc__split-name { margin: 0 0 4px; font-weight: 800; font-size: .85rem; color: var(--ink); }
.calc__split-value { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.1; color: var(--brand); }
.calc__split-total { margin: 14px 0 0; font-size: .98rem; color: var(--ink); }
.calc__split-total strong { color: var(--brand); }

.calc__hint { margin: 16px 0 0; text-align: center; color: var(--brand-2); font-weight: 600; }
.calc__note { margin: 18px 0 0; font-size: .86rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 480px) { .calc__split { grid-template-columns: 1fr; } }

/* --- Agrandissement d'image (lightbox) --- */
.is-zoomable, [data-zoom] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(40, 80, 90, .9); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 94vw; max-height: 90vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 24px 70px -20px rgba(0, 0, 0, .7); background: var(--surface); }
.lightbox__close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.lightbox__close:hover { background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox.is-open .lightbox__img { animation: lb-in .2s ease; }
  @keyframes lb-in { from { transform: scale(.96); opacity: .5; } to { transform: none; opacity: 1; } }
}

/* --- Texte + image (flottant : image en haut, le texte reprend toute la largeur
   sous l'image quand il est plus long ; empilés sur mobile) --- */
.media-text { display: flow-root; } /* contient le flottant */
.media-text__figure { margin: 0 0 1.2rem; }
.media-text__media, .media-text__media img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.media-text__eyebrow { margin-bottom: .3rem; }
.media-text__title { margin: 0 0 .7rem; }
.media-text__text { max-width: none; } /* le texte occupe toute la largeur disponible */
@media (min-width: 900px) {
  .media-text--img-right .media-text__figure { float: right; margin: .2rem 0 1.2rem 2.6rem; }
  .media-text--img-left  .media-text__figure { float: left;  margin: .2rem 2.6rem 1.2rem 0; }
  .media-text__figure { width: 42%; } /* taille « moyenne » par défaut */
  .media-text--size-small .media-text__figure { width: 33%; }
  .media-text--size-large .media-text__figure { width: 52%; }
}

/* --- Tableau de données --- */
.data-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; overflow-x: auto; box-shadow: var(--shadow); background: var(--surface); }
.data-table table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table th {
  text-align: left; font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  padding: 15px 20px; border-bottom: 2px solid color-mix(in srgb, var(--brand) 45%, var(--surface)); white-space: nowrap;
}
.data-table td { padding: 13px 20px; border-top: 1px solid var(--line); color: var(--ink); vertical-align: top; line-height: 1.45; }
.data-table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.data-table__section td {
  background: color-mix(in srgb, var(--ink) 7%, var(--surface));
  font-family: var(--font-display); font-weight: var(--display-weight); color: var(--ink);
  font-size: 1.05rem; padding: 12px 20px; box-shadow: inset 3px 0 0 var(--brand);
}
.data-table__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; color: var(--ink-soft); }
.data-table th.data-table__num { color: var(--ink); }

/* --- Formulaire (contact) --- */
.cform-wrap { max-width: 640px; margin-inline: auto; }
.cform { display: grid; gap: 18px; }
.cform__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__field { display: grid; gap: 6px; }
.cform__field > label { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .98rem; }
.cform input, .cform textarea { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); font: inherit; color: var(--ink); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.cform textarea { resize: vertical; min-height: 120px; }
.cform__field--check { gap: 4px; }
.cform__check { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); cursor: pointer; line-height: 1.45; font-size: .95rem; }
.cform__check input { width: auto; flex: none; margin-top: 3px; }
.cform__error { color: #b3261e; font-size: .85rem; font-weight: 600; }
.cform__error:empty { display: none; }
.cform__field.is-invalid input, .cform__field.is-invalid textarea { border-color: #b3261e; }
.cform__status { padding: 14px 18px; border-radius: 14px; font-weight: 600; }
.cform__status[hidden] { display: none; }
.cform__status--ok { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.cform__status--error { background: #fdecec; color: #b3261e; border: 1px solid #f3c0bd; }
.cform__actions { margin-top: 4px; }

/* --- Citation --- */
.quote { max-width: 50ch; margin-inline: auto; text-align: center; }
.quote--left { text-align: left; margin-inline: 0; max-width: none; }
.quote--petit { margin-top: clamp(.85rem, 2vw, 1.6rem); }
.quote__text {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3; color: var(--ink); position: relative;
}
.quote--moyen .quote__text { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.quote--petit .quote__text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.quote__text::before { content: "“"; font-size: 2.4em; line-height: 0; color: var(--brand); vertical-align: -.35em; margin-right: .1em; }
.quote__cite { margin-top: 1.2rem; color: var(--ink-soft); font-weight: 700; }

/* --- Témoignage mis en avant (portrait + grande citation) --- */
.section--testimonial { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.testimonial { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; margin: 0; }
@media (min-width: 820px) { .testimonial { grid-template-columns: .85fr 1.15fr; gap: 44px; } }
.testimonial__portrait {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1;
  box-shadow: var(--shadow); display: flex; align-items: flex-end;
  background-color: color-mix(in srgb, var(--brand-2) 16%, #fff);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0) 0 19px, rgba(255, 255, 255, .4) 19px 20px);
}
.testimonial__portrait picture, .testimonial__portrait img { width: 100%; height: 100%; }
.testimonial__portrait img { object-fit: cover; }
.testimonial__placeholder { padding: 18px 20px; font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.testimonial__body { min-width: 0; }
.testimonial__quote { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.35; color: var(--ink); margin: 12px 0 18px; }
.testimonial__quote--moyen { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; }
.testimonial__quote--petit { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.5; }
.testimonial__author { color: var(--ink); font-weight: 800; font-size: 1rem; margin-bottom: 2px; }
.testimonial__role { color: var(--ink-soft); font-size: .9rem; }
.testimonial .section__action { margin-top: 1.4rem; }
.btn--white { background: #fff; color: color-mix(in srgb, var(--brand) 60%, var(--ink)); box-shadow: var(--shadow-sm); }
.btn--white:hover { background: #fff; }

/* --- Duo (2 cartes côte à côte) --- */
.duo { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1.1fr .9fr; } }
.duo__card { position: relative; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 38px); box-shadow: var(--shadow); overflow: hidden; }
.duo__card--brand { background: var(--brand); color: #fff; }
.duo__card--brand2 { background: var(--brand-2); color: #fff; }
.duo__card--ink { background: var(--ink); color: #fff; }
.duo__card--surface { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.duo__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.duo__card--surface .duo__eyebrow { color: var(--brand); opacity: 1; }
.duo__title { color: inherit; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.06; margin: 12px 0 8px; }
.duo__card--surface .duo__title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--ink); }
.duo__text { font-size: 1rem; line-height: 1.6; margin: 0 0 22px; max-width: 36ch; opacity: .92; }
.duo__card--surface .duo__text { color: var(--ink-soft); opacity: 1; }
.duo__star { position: absolute; top: 24px; right: 28px; width: 26px; color: var(--accent); opacity: .55; }
.duo__star svg { width: 100%; height: auto; }
.btn--on-color { background: #fff; color: var(--brand); }
.btn--on-color:hover { background: rgba(255, 255, 255, .9); }

/* --- Énoncé (mission / cap) --- */
.statement__inner { max-width: 1000px; margin-inline: auto; text-align: center; }
.statement__eyebrow { font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.7rem); color: var(--brand); display: block; }
.statement__text { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.5rem, 3.2vw, 2.35rem); line-height: 1.3; letter-spacing: -.01em; color: var(--ink); margin-top: 8px; }
.statement__text span { color: var(--brand); }

/* --- Bande de chiffres / valeurs --- */
.stats { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.stat-card__n { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--brand); line-height: 1; }
.stat-card__t { font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin: 6px 0 10px; }
.stat-card__d { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* --- Événements (agenda + détail) --- */
.events-grid { display: grid; grid-template-columns: 1fr; gap: 22px; list-style: none; padding: 0; }
@media (min-width: 680px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.events-grid--past { opacity: .82; }
.event-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s ease; }
.event-card:hover { transform: translateY(-4px); }
.event-card__link { display: block; color: inherit; }
.event-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.event-card__body { padding: 20px 22px; }
.event-card__date { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.event-card__title { margin: 6px 0 4px; font-size: clamp(1.2rem, 1.8vw, 1.4rem); }
.event-card__loc { color: var(--ink-soft); font-size: .9rem; }
.event-card__excerpt { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin-top: 8px; }
.event-detail__meta { font-weight: 700; color: var(--ink-soft); margin-top: 1.1rem; font-size: 1.05rem; }
.event-detail__meta a { color: inherit; text-decoration: underline; }

/* --- Encart (callout) --- */
.callout {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
}
.callout--brand { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.callout--brand2 { background: color-mix(in srgb, var(--brand-2) 14%, var(--surface)); }
.callout--accent { background: color-mix(in srgb, var(--accent) 24%, var(--surface)); }
.callout--soft { background: var(--surface-2); }
.callout__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); flex: none; }
.callout__icon svg { width: 28px; height: 28px; }
.callout__body { flex: 1 1 280px; }
.callout__title { margin-bottom: .3rem; }
.callout__text { color: var(--ink-soft); }
.callout__cta { flex: none; }

/* --- Bandeau CTA pleine largeur --- */
.cta-band { color: #fff; }
.cta-band--brand { background: linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--ink-dark))); }
.cta-band--brand2 { background: linear-gradient(160deg, var(--brand-2), color-mix(in srgb, var(--brand-2) 65%, var(--ink))); }
.cta-band--ink { background: var(--ink); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(40px, 6vw, 72px); }
.cta-band__title { color: #fff; }
.cta-band__lead { color: rgba(255, 255, 255, .85); margin-top: .6rem; max-width: 46ch; }
.cta-band__inner .btn-group { margin-top: 0; }

/* --- Pied de page --- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); margin-top: 6px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: clamp(40px, 5vw, 56px); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; } }
.site-footer__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; color: #fff; }
.site-footer__tagline { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .7); max-width: 34ch; margin-top: 10px; }
.site-footer__contact { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.site-footer__contact a { color: rgba(255, 255, 255, .7); }
.site-footer__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col__title { font-weight: 800; color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.site-footer__bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-block: 18px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.site-footer__bottom-inner a { color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__bottom-inner a:hover { color: #fff; }

/* Navigation responsive : panneau coulissant sous 980px. */
@media (max-width: 980px) {
  .burger { display: flex; }

  /* Le header a un backdrop-filter : il crée un « bloc conteneur » pour les éléments
     position:fixed, donc le panneau .nav se calait sur le header (~98px) au lieu du
     viewport et se retrouvait écrasé (seul le 1er item visible, reste hors écran).
     On le neutralise quand le menu est ouvert → le panneau couvre tout l'écran. */
  .site-header.is-open { backdrop-filter: none; background: var(--bg); }

  .nav {
    position: fixed; inset: 88px 0 0 0; z-index: 55;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .15rem;
    margin-left: 0; padding: 1.25rem var(--gutter) 3rem;
    background: var(--bg); border-top: 1px solid var(--line);
    overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease;
  }
  .site-header.is-open .nav { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li { display: block; }
  .nav__top { font-size: 1.1rem; padding: .8rem .25rem; }
  .nav__caret { display: none; }

  /* Méga-menus déployés en accordéon statique sur mobile */
  .mega { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 0 .8rem .8rem; }
  .mega__inner, .mega__inner--cols { display: block; width: auto; background: transparent; border: none; box-shadow: none; padding: 0; }
  .mega__col { margin-bottom: .5rem; }
  .mega__title { padding: 6px 0 2px; }
  .mega__link { font-size: 1rem; padding: 7px 0; }

  .nav__cta { margin: 1.2rem 0 0; width: 100%; justify-content: center; }
}

body.nav-open { overflow: hidden; }

/* Illustration « 3 îlots » du hero d'accueil + animations (reprises du prototype). */
@keyframes floaty  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes dashmove { to { stroke-dashoffset: -260; } }
@keyframes twinkle { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.islands { width: 100%; max-width: 460px; margin-inline: auto; }
.islands__svg { width: 100%; height: auto; overflow: visible; }

.islands__circle { mix-blend-mode: multiply; }
.islands__circle--a { animation: floaty 7s ease-in-out infinite; }
.islands__circle--b { animation: floaty2 8s ease-in-out infinite; }
.islands__circle--c { animation: floaty 6.4s ease-in-out infinite; }

.islands__dash { animation: dashmove 9s linear infinite; }
.islands__dash--2 { animation-duration: 12s; }

.islands__star { animation: twinkle 3.6s ease-in-out infinite; }
.islands__star--2 { animation-duration: 4.2s; }
.islands__star--3 { animation-duration: 3s; }

/* === Styles d'animation alternatifs (choisis dans le bloc Hero) === */

/* « Bulles vivantes » : les cercles respirent (échelle) à des rythmes décalés,
   comme les bulles translucides du logo qui se chevauchent.
   On retire mix-blend-mode (qui empêche la composition GPU et fait saccader le scale)
   et on passe en composition matérielle (will-change) → respiration parfaitement fluide. */
.islands--pulse .islands__circle {
  transform-box: fill-box; transform-origin: center;
  mix-blend-mode: normal; will-change: transform;
  animation: isl-breathe 7s ease-in-out infinite;
}
.islands--pulse .islands__circle--b { animation-duration: 8.4s; animation-delay: -2s; }
.islands--pulse .islands__circle--c { animation-duration: 6.2s; animation-delay: -1.1s; }
.islands--pulse .islands__dash { display: none; }   /* pas de pointillés en mode bulles vivantes */
.islands--pulse .islands__star { animation-duration: 2.8s; }
@keyframes isl-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* « Constellation » : les îlots dérivent en petites ellipses (archipel qui flotte)
   et les courbes pointillées tournent lentement autour du centre. */
.islands--orbit .islands__circle { transform-box: fill-box; transform-origin: center; animation: isl-drift 14s ease-in-out infinite; }
.islands--orbit .islands__circle--b { animation-duration: 17s; animation-delay: -4s; }
.islands--orbit .islands__circle--c { animation-duration: 12s; animation-delay: -7s; }
.islands--orbit .islands__dash { transform-box: view-box; transform-origin: 230px 236px; animation: isl-spin 28s linear infinite; }
.islands--orbit .islands__dash--2 { animation-duration: 38s; animation-direction: reverse; }
@keyframes isl-drift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(7px, -6px); }
  50%  { transform: translate(2px, -11px); }
  75%  { transform: translate(-7px, -5px); }
  100% { transform: translate(0, 0); }
}
@keyframes isl-spin { to { transform: rotate(360deg); } }

/* Accessibilité : on coupe les animations si l'utilisateur préfère moins de mouvement. */
@media (prefers-reduced-motion: reduce) {
  .islands__circle, .islands__star, .islands__dash { animation: none !important; }
}

