/* ============================================================
   Premiers Pas pour l'Enfance — feuille de style commune
   Charte : bleu marine, bleu, jaune, rose, bleu clair
   ============================================================ */

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Polices de la charte ── */
:root {
  --font-display: 'Oswald', 'Segoe UI', system-ui, sans-serif;  /* titres condensés */
  --font-script:  'Dancing Script', cursive;                     /* cursive accent */
  --font-body:    'Poppins', 'Segoe UI', system-ui, sans-serif;  /* corps de texte */
}

/* ── Palette (charte graphique) ── */
:root {
  --navy:        #1b3a6b;   /* titres, texte foncé */
  --navy-deep:   #14223f;   /* footer */
  --blue:        #85b0e0;   /* BLEU OFFICIEL (logo, décor) */
  --blue-deep:   #4f86c6;   /* bleu soutenu : liens, boutons, petits textes */
  --blue-bright: #6f9fd6;
  --blue-light:  #a9cbeb;   /* bleu clair (base du cairn) */
  --blue-pale:   #eaf2fb;
  --yellow:      #f4d634;   /* JAUNE OFFICIEL */
  --yellow-deep: #c9a800;   /* jaune lisible sur fond clair */
  --yellow-soft: #fdf3c2;
  --pink:        #e8bcbf;   /* ROSE OFFICIEL */
  --pink-deep:   #c98b91;
  --pink-soft:   #f9eded;
  --cream:       #fff5ec;   /* dégradé chaud du hero */
  --lavender:    #eef3fc;
  --text:        #28344a;
  --text-muted:  #5e6b7e;
  --line:        #e3ecf6;
  --white:       #ffffff;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow-sm:   0 2px 14px rgba(27,58,107,.07);
  --shadow-md:   0 12px 36px rgba(27,58,107,.12);
  --maxw:        1120px;
}

/* ── Typographie utilitaire ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue-deep);
  margin-bottom: .5rem;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); line-height: 1.14; font-weight: 700; letter-spacing: .004em; }
h2.section-title {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  margin-bottom: 1.05rem;
}
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 640px;
}

/* Titre de section — police display (bâton), façon flyer */
.script-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: .01em;
  color: var(--navy);
  margin-bottom: .6rem;
  text-align: center;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 3.5rem 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

/* variante flottante : transparente sur le dégradé du hero, blanche au défilement */
.nav.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.nav-overlay.nav-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav.nav-overlay.nav-scrolled .brand-logo { height: 50px; }
.nav.nav-overlay.nav-scrolled .nav-cairn { width: 40px; height: 50px; }
.nav-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 2.5rem;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; text-decoration: none;
  flex-shrink: 0;
  padding: .7rem 0;
}
.brand-logo {
  height: 66px; width: auto; display: block;
  transform: scaleX(1.08); transform-origin: left center;
  transition: height .3s ease;
}
/* cairn : calques recadrés sur la même boîte que le logo officiel (ratio 1803/2263) */
.nav-cairn { position: relative; width: 53px; height: 66px; margin-right: 1rem; flex-shrink: 0; transition: width .3s ease, height .3s ease; }
.cairn-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  animation: stoneIn .55s cubic-bezier(.22,1,.36,1) forwards;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: .92rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border-radius: 40px; border: none; font-size: .95rem;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
}
.btn-yellow {
  background: var(--yellow); color: var(--navy);
  padding: .6rem 1.3rem; box-shadow: 0 6px 18px rgba(255,206,0,.35);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,206,0,.45); }
.btn-yellow-deep {
  background: var(--yellow-deep); color: #fff;
  padding: .6rem 1.3rem; box-shadow: 0 6px 18px rgba(201,168,0,.35);
}
.btn-yellow-deep:hover { transform: translateY(-2px); background: #b39600; box-shadow: 0 10px 24px rgba(201,168,0,.45); }
.btn-yellow-soft {
  background: rgba(244,214,52,.16); color: var(--yellow-deep);
  padding: .6rem 1.3rem;
}
/* CTA don pas encore actif : visuellement discret, non cliquable */
.btn-disabled {
  cursor: default; pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
}
.btn-soon {
  font-size: .64rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: rgba(27,58,107,.12); color: var(--navy);
  padding: .18rem .5rem; border-radius: 20px;
}
.cc-note { font-size: .74rem; color: var(--text-muted); opacity: .8; margin-top: .3rem; }
.cc-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.btn-blue {
  background: var(--blue-deep); color: #fff; padding: .85rem 1.9rem;
  box-shadow: 0 8px 22px rgba(79,134,198,.32);
}
.btn-blue:hover { transform: translateY(-2px); background: #3f74b4; }
/* bouton WhatsApp */
.btn-wa {
  background: #25d366; color: #fff; padding: .85rem 1.7rem;
  box-shadow: 0 8px 22px rgba(37,211,102,.32);
}
.btn-wa:hover { transform: translateY(-2px); background: #1ebe5a; color:#fff; }
.btn-wa svg { width: 20px; height: 20px; }
.nav-links .btn-wa {
  padding: .45rem 1rem;
  font-size: .88rem;
  background: rgba(37,211,102,.1);
  color: #1a9b52;
  box-shadow: none;
  border: 1.5px solid rgba(37,211,102,.35);
}
.nav-links .btn-wa:hover {
  background: rgba(37,211,102,.18);
  transform: none;
  color: #158042;
}

.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 15%, var(--cream) 0%, transparent 55%),
    radial-gradient(120% 130% at 10% 0%, var(--lavender) 0%, transparent 60%),
    linear-gradient(160deg, #eaf2fc 0%, #fdf3ee 100%);
  padding: calc(3.5rem + 100px) 0 4rem;
}
.hero .inner { max-width: 760px; margin: 0 auto; position: relative; }
.hero-lead { position: relative; }
.hero-quote {
  position: absolute; top: -1.6rem; left: -3.4rem;
  font-family: Georgia, serif; font-size: 5.8rem; line-height: 1;
  color: var(--pink); opacity: .38; z-index: 0; pointer-events: none; user-select: none;
}
.hero .inner > * { position: relative; z-index: 1; }
.hero .inner > .hero-badge { display: flex; width: fit-content; margin: 1.6rem auto 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .4rem .9rem; border-radius: 30px; margin-bottom: .9rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero h2 { margin-bottom: 1.2rem; }
.hero p { color: var(--text-muted); font-size: 1.03rem; margin-bottom: 1rem; }

/* vague de séparation */
.wave { display: block; width: 100%; margin-bottom: -1px; }

/* ── Animation cairn (galets qui se déposent par le haut) ── */
@keyframes stoneIn {
  from { opacity: 0; transform: translateY(-28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.s1 { animation-delay: .4s; }
.s2 { animation-delay: .9s; }
.s3 { animation-delay: 1.35s; }
.s4 { animation-delay: 1.75s; }

/* ============================================================
   GOUVERNANCE
   ============================================================ */
.governance { background: var(--white); }

/* ============================================================
   À PROPOS — historique
   ============================================================ */
.about-hero {
  background:
    radial-gradient(110% 120% at 90% 10%, var(--cream) 0%, transparent 55%),
    linear-gradient(160deg, #eaf2fc 0%, #fdf3ee 100%);
  padding: 4.5rem 0 4rem; text-align: center;
}
/* réduit l'espace entre la vague du hero et "Notre histoire" sur À propos */
.about-hero ~ .governance { padding-top: 2rem; }
.about-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.about-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 1.06rem; text-align: left; }

/* valeurs */
.values { background: var(--white); position: relative; }
.values::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 240px; height: 240px;
  border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
  background: var(--pink);
  opacity: .3;
  z-index: 0;
}
.values::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 150px; height: 150px;
  border-radius: 55% 45% 40% 60% / 50% 55% 45% 50%;
  background: var(--blue);
  opacity: .25;
  z-index: 0;
}
.values > .container { position: relative; z-index: 1; }

/* ============================================================
   RESTONS EN LIEN (email + whatsapp)
   ============================================================ */
.stay-connected {
  background:
    radial-gradient(100% 140% at 0% 100%, rgba(133,176,224,.18) 0%, transparent 55%),
    radial-gradient(100% 140% at 100% 0%, rgba(244,214,52,.12) 0%, transparent 55%),
    linear-gradient(135deg, var(--lavender), #fdf9f0);
}
.sc-header { text-align: left; margin-bottom: 2rem; }

/* grille 2x2 : ligne 1 = 75/25, ligne 2 = 50/50, même hauteur par ligne */
.connect-grid-2x2 { display: flex; flex-direction: column; gap: 1.5rem; }
.connect-row { display: grid; gap: 1.5rem; align-items: stretch; }
.connect-row-write { grid-template-columns: 65fr 35fr; }
.connect-row-contact { grid-template-columns: 1fr 1fr; }
.connect-row > .connect-card { min-width: 0; }

/* bloc "Nous écrire" : le message est visible d'emblée, le reste apparaît en écrivant */
.ce-message-field { margin-bottom: 0; }
.ce-message-field textarea { min-height: 88px; transition: min-height .5s ease; }
.connect-write.is-expanded .ce-message-field { margin-bottom: 1.2rem; }
.connect-write.is-expanded .ce-message-field textarea { min-height: 110px; }
.ce-extra {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s ease;
}
.ce-extra.is-open { grid-template-rows: 1fr; }
.ce-extra-inner { overflow: hidden; min-height: 0; }
.ce-extra .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.connect-card {
  background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.95);
  border-radius: 24px; padding: 2.2rem;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .7rem;
}
.connect-card h3 { font-size: 1.18rem; }
.connect-card > p { color: var(--text-muted); font-size: .97rem; }
.cc-head { display: flex; align-items: center; gap: .9rem; }
.cc-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--blue-pale); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
}
.cc-icon svg { width: 24px; height: 24px; }
.cc-icon-wa { background: rgba(37,211,102,.12); color: #25d366; }
.cc-icon-don { background: rgba(244,214,52,.16); color: var(--yellow-deep); }
.connect-wa { justify-content: space-between; }
.connect-don-ctas { display: flex; flex-direction: column; gap: .6rem; width: 100%; margin-top: .4rem; }
.connect-don-ctas .btn { justify-content: center; width: 100%; }
.nl-form { margin-top: .3rem; }
.nl-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.nl-row input[type="email"] {
  flex: 1 1 190px; padding: .82rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: 40px;
  font-size: .97rem; font-family: inherit; color: var(--text);
  background: #fcfdff; transition: border-color .2s, box-shadow .2s; min-width: 0;
}
.nl-row input[type="email"]:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(133,176,224,.25);
}
.nl-row .btn-blue { padding: .82rem 1.5rem; white-space: nowrap; flex-shrink: 0; }
#nlToast {
  position: fixed; bottom: 1.8rem; left: 50%; max-width: 90vw; text-align: center;
  transform: translateX(-50%) translateY(220px);
  background: #1ca85a; color: #fff; padding: .9rem 1.8rem; border-radius: 30px;
  font-weight: 600; font-size: .92rem; box-shadow: 0 8px 26px rgba(0,0,0,.18);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1); z-index: 999;
}
#nlToast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   PAGE CONTACT
   ============================================================ */
.contact-wrap {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start;
  margin-top: 2.6rem;
}
.contact-info .ci-item {
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-info .ci-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-pale); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
}
.contact-info .ci-ic svg { width: 20px; height: 20px; }
.contact-info .ci-lbl {
  font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
}
.contact-info .ci-val { color: var(--navy); font-weight: 500; }
.contact-info .ci-val a { color: var(--blue-deep); text-decoration: none; }
.contact-info .ci-val a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: .95rem; color: var(--text);
  background: #fcfdff; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(133,176,224,.25);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; justify-content: center; margin-top: .4rem; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: .9rem; text-align: center; }
.nl-form .form-note { text-align: left; margin-top: .6rem; opacity: .85; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-error { font-size: .9rem; color: #c0392b; background: #fdf2f2; border: 1px solid #f5c6cb; border-radius: 8px; padding: .7rem 1rem; margin-bottom: .6rem; }

/* toast */
#toast {
  position: fixed; bottom: 1.8rem; left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #1ca85a; color: #fff; padding: .9rem 1.8rem; border-radius: 30px;
  font-weight: 600; font-size: .92rem; box-shadow: 0 8px 26px rgba(0,0,0,.18);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1); z-index: 999;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-deep); color: rgba(255,255,255,.72);
  padding: 3.5rem 0 2rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .7rem 1.8rem;
  padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.footer-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 1.4rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem;
  font-size: .82rem; color: rgba(255,255,255,.55); text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.55); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-dot { color: rgba(255,255,255,.3); }
.footer-status { color: rgba(255,255,255,.55); }

/* ============================================================
   VALEURS — pictos sur « taches » de couleur (façon flyer)
   ============================================================ */
.values-layout {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 2.6rem;
  align-items: center;
}
.values-photo {
  position: relative;
  margin: 0;
  rotate: -1.4deg;
}
.values-photo-blob {
  position: absolute; top: -22px; left: -26px;
  width: 100px; height: 100px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: var(--yellow); opacity: .55; z-index: 0;
}
.values-photo-blob2 {
  position: absolute; bottom: -20px; right: -22px;
  width: 70px; height: 70px;
  border-radius: 55% 45% 40% 60% / 60% 40% 55% 45%;
  background: var(--blue); opacity: .45; z-index: 0;
}
.values-photo img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  object-fit: cover; border-radius: 30% 8% 30% 8% / 8% 30% 8% 30%;
  box-shadow: var(--shadow-md);
}
/* grille 3 + 2 : la 2e ligne (2 pictos) est centrée sous la 1re */
.values-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem 1rem;
}
.value-card { grid-column: span 2; }
.value-card:nth-child(4) { grid-column: 2 / span 2; }
.value-card:nth-child(5) { grid-column: 4 / span 2; }
.value-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1rem .8rem; background: none; border: none; box-shadow: none;
}
.value-card:hover { transform: none; box-shadow: none; }
.value-card .ic {
  position: relative;
  width: 104px; height: 104px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.02rem; }
/* tache organique (SVG) derrière le glyphe */
.ic-blob {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  filter: drop-shadow(0 6px 14px rgba(27,58,107,.10));
}
/* dessin au trait (Phosphor, poids thin) : forme marine sur toutes les taches */
.ic-glyph { position: relative; z-index: 1; width: 46px; height: 46px; }
.ic-glyph path { fill: var(--navy); }
.tache-blue   .ic-blob { fill: var(--blue);   }
.tache-yellow .ic-blob { fill: var(--yellow); }
.tache-pink   .ic-blob { fill: var(--pink);   }
/* rotations légères pour un rendu organique et non répétitif
   (via la propriété `rotate` pour laisser `scale`/`transform` libres au survol) */
.value-card:nth-child(1) .ic-blob { rotate: -10deg; }
.value-card:nth-child(2) .ic-blob { rotate: 18deg; }
.value-card:nth-child(3) .ic-blob { rotate: -24deg; }
.value-card:nth-child(4) .ic-blob { rotate: 120deg; }
.value-card:nth-child(5) .ic-blob { rotate: 200deg; }

/* ── Animations valeurs : respiration de la tache + rebond du glyphe au survol ── */
.value-card .ic-blob {
  transition: scale .4s cubic-bezier(.34,1.56,.64,1), rotate .4s ease, filter .3s ease;
}
.value-card .ic-glyph {
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.value-card:hover .ic-blob,
.value-card:focus-within .ic-blob {
  scale: 1.1;
  filter: drop-shadow(0 10px 20px rgba(27,58,107,.18));
}
.value-card:hover .ic-glyph,
.value-card:focus-within .ic-glyph {
  transform: translateY(-5px) scale(1.06);
}

/* ============================================================
   GOUVERNANCE — Bureau (cartes qui pivotent)
   ============================================================ */
.governance-team { background: var(--white); }
.gov-flip-grid {
  max-width: 900px; margin: 2.2rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.gov-flip {
  all: unset; box-sizing: border-box; display: block; cursor: pointer;
  height: 236px; perspective: 1200px; border-radius: var(--radius-sm);
}
.gov-flip:focus-visible .gov-flip-inner { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
.gov-flip-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}
.gov-flip.is-flipped .gov-flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .gov-flip:hover .gov-flip-inner { transform: rotateY(180deg); }
}
.gov-face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1rem; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.gov-front h3 { font-size: 1rem; margin: 0; color: var(--navy); }
.gov-role { font-size: .82rem; color: var(--blue-deep); font-weight: 600; margin: .15rem 0 0; }
.gov-avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; margin-bottom: .7rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem; color: #fff; overflow: hidden;
}
.gov-avatar-photo { background: var(--blue-pale); }
.gov-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.gov-hint {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: .68rem; font-weight: 600; color: var(--blue-deep); opacity: .75;
}
.gov-hint svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: gov-hint-spin 2.6s ease-in-out infinite;
}
@keyframes gov-hint-spin {
  0%, 60%, 100% { transform: rotate(0deg); }
  75% { transform: rotate(180deg); }
  90% { transform: rotate(150deg); }
}
.gov-back {
  transform: rotateY(180deg); align-items: flex-start; justify-content: flex-start;
  text-align: left; overflow-y: auto;
}
.gov-back p { color: var(--text-muted); font-size: .74rem; line-height: 1.55; margin: 0 0 .55rem; }
.gov-back p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .gov-flip-grid { grid-template-columns: 1fr; max-width: 340px; }
}

/* ============================================================
   NOS STRUCTURES
   ============================================================ */
.structures { background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.structures-layout { margin-top: 2.2rem; }


/* liste complète en colonnes (sans scroll), au-dessus de la carte */
.structures-list {
  list-style: none; columns: 3; column-gap: 2.2rem; margin-bottom: 2rem;
}
.st-item {
  display: flex; align-items: center; gap: .6rem; break-inside: avoid;
  padding: .4rem 0; cursor: pointer; font-size: .92rem; color: var(--navy);
}
.st-item:hover .st-name { color: var(--blue-deep); text-decoration: underline; }
.st-dot { flex-shrink: 0; width: 11px; height: 11px; border-radius: 50%; }
.st-dot-creche { background: #4f86c6; }
.st-dot-halte  { background: var(--yellow); }
.st-dot-pmi    { background: #c98b91; }
.st-name { line-height: 1.3; }

/* carte */
.ppe-map {
  border-radius: var(--radius); min-height: 460px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); z-index: 1;
}
/* marqueurs par type : pastille ronde + mini-icône (sans numéro) */
.ppe-pin {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.ppe-pin svg { display: block; }
.pin-creche { background: #4f86c6; }
.pin-halte  { background: var(--yellow); }
.pin-pmi    { background: #c98b91; }

/* ============================================================
   ANNÉE SCOLAIRE 2026 / 2027 — encadré dans "Nos structures"
   ============================================================ */
.structures-note {
  display: flex; align-items: flex-start; gap: 1.2rem;
  margin-top: 2.2rem; padding: 1.6rem 1.8rem;
  background: #fff; border-radius: var(--radius);
  border-left: 5px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.structures-note .sn-icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px;
  background: var(--yellow); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.sn-eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--yellow-deep); margin-bottom: .3rem;
}
.structures-note h3 { font-size: 1.2rem; color: var(--navy); margin: 0 0 .4rem; }
.structures-note p { color: var(--text); font-size: 1.02rem; margin: 0; line-height: 1.6; }

/* ============================================================
   TRAIT COLORÉ SOUS LES TITRES NON-CURSIFS (façon flyer)
   ============================================================ */
.title-trait { display: block; width: 64px; height: 12px; margin: -.3rem 0 .5rem; overflow: visible; flex-shrink: 0; }
.title-trait path { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.trait-blue   path { stroke: var(--blue); }
.trait-yellow path { stroke: var(--yellow); }
.trait-pink   path { stroke: var(--pink); }
/* variante centrée, sous les titres de section */
.title-trait-center { width: 84px; height: 14px; margin: -.3rem auto .4rem; }

/* titres de bloc (h3) en cursive — échange avec les titres de section */
.connect-card h3,
.structures-note h3 {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--navy);
}

/* ============================================================
   ANIMATIONS LÉGÈRES (reveal au scroll)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
.reveal.d6 { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .value-card .ic-blob, .value-card .ic-glyph { transition: none; }
  .value-card:hover .ic-blob, .value-card:focus-within .ic-blob { scale: 1; filter: drop-shadow(0 6px 14px rgba(27,58,107,.10)); }
  .value-card:hover .ic-glyph, .value-card:focus-within .ic-glyph { transform: none; }
  .cairn-layer { animation: none; opacity: 1; }
  .gov-flip-inner { transition: none; }
  .gov-hint svg { animation: none; }
  .connect-write, .ce-message-field textarea, .ce-extra { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .values-layout { grid-template-columns: 1fr; }
  .values-photo { max-width: 340px; margin: 0 auto; rotate: 0deg; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .structures-list { columns: 2; }
}
@media (max-width: 680px) {
  .connect-grid-2x2 { padding: 0 1rem; }
  .connect-row { display: flex; flex-direction: column; }
  .connect-card { margin: 0; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 1rem;
    padding: 1.2rem 1.5rem; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex; background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--navy);
  }
  .footer-links { gap: .6rem 1.2rem; }
  .form-row { grid-template-columns: 1fr; }
  .structures-list { columns: 1; }
  .ce-form .form-row { grid-template-columns: 1fr; }

  /* ── Alignement gauche des titres sur mobile ── */
  .about-hero,
  .sc-header { text-align: left; }
}

/* ============================================================
   PAGE D'ENTRÉE ET CONNEXION (teaser + login.php)
   ============================================================ */
.teaser-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 120% at 85% 15%, var(--cream) 0%, transparent 55%),
    radial-gradient(120% 130% at 10% 0%, var(--lavender) 0%, transparent 60%),
    linear-gradient(160deg, #eaf2fc 0%, #fdf3ee 100%);
  padding: 2rem;
}
.teaser-box {
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
  text-align: center;
}
.teaser-logo { max-width: 220px; width: 100%; height: auto; }
.teaser-login {
  position: fixed; bottom: 1.4rem; right: 1.6rem;
  color: var(--text-muted); font-size: .8rem; text-decoration: none;
  opacity: .6; transition: opacity .2s ease, color .2s ease;
}
.teaser-login:hover { opacity: 1; color: var(--blue-deep); }
.login-form {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  width: 100%; max-width: 280px;
}
.login-form label { font-weight: 600; color: var(--navy); font-size: .9rem; }
.login-form input[type="password"] {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--line);
  border-radius: 40px; font-size: 1rem; text-align: center;
  box-sizing: border-box;
}
.login-form input[type="password"]:focus { outline: 2px solid var(--blue-deep); outline-offset: 2px; }
.login-form .btn { width: 100%; justify-content: center; }
.login-error { color: var(--pink-deep); font-size: .85rem; margin: 0; }
.login-back { color: var(--text-muted); font-size: .85rem; text-decoration: none; }
.login-back:hover { color: var(--blue-deep); }
