/* École Notre-Dame de Lourdes — Gilly. Les couleurs reprennent celles du logo. */

@font-face {
  font-family: 'Fredoka';
  src: url('fredoka.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fond: #fbfaf6;
  --fond-teinte: #f4f1fb;
  --surface: #ffffff;
  --texte: #1d1a2e;
  --doux: #5b5670;
  --ligne: #e6e1f2;
  --indigo: #3a2bb5;
  --indigo-fonce: #2c1f90;
  --sur-indigo: #ffffff;
  --jaune: #f5b400;   --jaune-doux: #fff4d1;  --jaune-texte: #6b4e00;
  --rose: #e8558c;    --rose-doux: #ffe8f0;   --rose-texte: #8f1f4b;
  --ciel: #2f8fd4;    --ciel-doux: #e3f1fb;   --ciel-texte: #135a8c;
  --vert: #2e9e5b;    --vert-doux: #e2f5e9;   --vert-texte: #17603a;
  --orange: #ef7d22;  --orange-doux: #ffeedd; --orange-texte: #8a3f06;
  --violet: #7a5cff;  --violet-doux: #eeeaff; --violet-texte: #3a2bb5;
  --ombre: 0 1px 2px rgba(35, 25, 80, .05), 0 12px 32px rgba(35, 25, 80, .08);
  --rayon: 22px;
  --rayon-petit: 12px;
  --titres: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --corps: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #13111b;
    --fond-teinte: #1a1726;
    --surface: #1f1c2c;
    --texte: #eeecf6;
    --doux: #aaa4c4;
    --ligne: #332e46;
    --indigo: #a197ff;
    --indigo-fonce: #bdb5ff;
    --sur-indigo: #15112e;
    --jaune-doux: #2e2711;  --jaune-texte: #f7d57a;
    --rose-doux: #33182a;   --rose-texte: #ffa7c8;
    --ciel-doux: #14283a;   --ciel-texte: #8fcaf5;
    --vert-doux: #132b1f;   --vert-texte: #86d9a9;
    --orange-doux: #33200f; --orange-texte: #ffb880;
    --violet-doux: #221d42; --violet-texte: #c4bbff;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.65 var(--corps);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-fonce); }
:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--titres); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
sup { line-height: 0; font-size: .7em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.enveloppe { width: min(1160px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.saut { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: var(--sur-indigo); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.saut:focus { left: 8px; }

.sur-titre {
  font-family: var(--titres);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: .6em;
}
.chapeau { font-size: 1.15rem; color: var(--doux); max-width: 62ch; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--titres); font-weight: 600; font-size: 1rem;
  padding: .7em 1.25em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-plein { background: var(--indigo); color: var(--sur-indigo); }
.bouton-plein:hover { background: var(--indigo-fonce); color: var(--sur-indigo); }
.bouton-contour { border-color: var(--indigo); color: var(--indigo); background: transparent; }
.bouton-contour:hover { background: var(--violet-doux); }
.bouton-grand { font-size: 1.1rem; padding: .85em 1.5em; }
.bouton-large { width: 100%; margin-top: 10px; }

.lien-fleche { font-family: var(--titres); font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: ' →'; transition: margin .15s ease; }
.lien-fleche:hover::after { margin-left: 4px; }

/* En-tête */
.entete {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--fond);
  background: color-mix(in srgb, var(--fond) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ligne);
}
.entete-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texte); }
.marque img { width: 48px; }
.marque span { display: flex; flex-direction: column; line-height: 1.2; }
.marque strong { font-family: var(--titres); font-weight: 600; font-size: 1.12rem; }
.marque small { color: var(--doux); font-size: .85rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.bouton) { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--texte); font-weight: 500; }
.nav a:not(.bouton):hover { background: var(--fond-teinte); }
.nav .bouton { margin-left: 8px; }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 46px; height: 46px; border-radius: 12px; display: grid; place-content: center; gap: 5px; background: var(--fond-teinte); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--texte); }
.nav-mobile-panneau {
  position: absolute; right: 0; top: 56px; width: min(280px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 4px; padding: 12px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-petit); box-shadow: var(--ombre);
}
.nav-mobile-panneau a:not(.bouton) { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--texte); font-weight: 500; }
.nav-mobile-panneau a:not(.bouton):hover { background: var(--fond-teinte); }
.nav-mobile-panneau .bouton { margin-top: 6px; }
@media (max-width: 920px) {
  .nav { display: none; }
  .nav-mobile { display: block; }
}

/* Accueil */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grille { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.souligne { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--jaune) 55%, transparent) 62%); padding-inline: .08em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visuel { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.hero-medaillon {
  position: absolute; inset: 9%;
  display: grid; place-items: center;
  background: var(--surface); border-radius: 50%; box-shadow: var(--ombre);
}
.hero-medaillon img { width: 72%; }
@media (prefers-color-scheme: dark) { .hero-medaillon { background: #ffffff; } }
.bulle { position: absolute; border-radius: 50%; }
.bulle-jaune { width: 34%; aspect-ratio: 1; background: var(--jaune); top: -2%; right: 2%; opacity: .9; }
.bulle-rose { width: 20%; aspect-ratio: 1; background: var(--rose); bottom: 6%; left: -2%; opacity: .85; }
.bulle-ciel { width: 42%; aspect-ratio: 1; background: var(--ciel-doux); bottom: -6%; right: -6%; }
.bulle-vert { width: 13%; aspect-ratio: 1; background: var(--vert); top: 10%; left: 4%; opacity: .85; }

.atouts {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.atouts li {
  background: var(--surface); border: 1px solid var(--ligne); border-radius: var(--rayon-petit);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
}
.atouts strong { font-family: var(--titres); font-weight: 600; font-size: 1.2rem; }
.atouts span { color: var(--doux); font-size: .95rem; }
.atouts li:nth-child(1) { border-top: 5px solid var(--jaune); }
.atouts li:nth-child(2) { border-top: 5px solid var(--vert); }
.atouts li:nth-child(3) { border-top: 5px solid var(--ciel); }
.atouts li:nth-child(4) { border-top: 5px solid var(--rose); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-teintee { background: var(--fond-teinte); }
.section-tete { margin-bottom: clamp(28px, 4vw, 48px); }
.section-tete h2 { max-width: 28ch; }

/* Valeurs */
.cartes-valeurs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.valeur { background: var(--surface); border-radius: var(--rayon); padding: 26px 24px; box-shadow: var(--ombre); }
.valeur p { color: var(--doux); margin: 0; }
.icone {
  width: 56px; height: 56px; padding: 12px; border-radius: 16px; margin-bottom: 16px;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.valeur-rose .icone { background: var(--rose-doux); color: var(--rose-texte); }
.valeur-rose .icone path { fill: currentColor; stroke: none; }
.valeur-jaune .icone { background: var(--jaune-doux); color: var(--jaune-texte); }
.valeur-ciel .icone { background: var(--ciel-doux); color: var(--ciel-texte); }
.valeur-vert .icone { background: var(--vert-doux); color: var(--vert-texte); }

/* Parcours */
.parcours { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.etape { background: var(--surface); border-radius: var(--rayon); padding: clamp(24px, 3vw, 36px); box-shadow: var(--ombre); position: relative; overflow: hidden; }
.etape::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 8px; }
.etape-maternelle::before { background: linear-gradient(90deg, var(--jaune), var(--orange)); }
.etape-primaire::before { background: linear-gradient(90deg, var(--ciel), var(--violet)); }
.etape-age { display: inline-block; font-family: var(--titres); font-weight: 600; font-size: .95rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.etape-maternelle .etape-age { background: var(--jaune-doux); color: var(--jaune-texte); }
.etape-primaire .etape-age { background: var(--ciel-doux); color: var(--ciel-texte); }
.etape h3 { font-size: 1.7rem; }
.liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.liste li { padding-left: 28px; position: relative; }
.liste li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--indigo); opacity: .75; }
.pastille { display: inline-block; font-size: .85rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--violet-doux); color: var(--violet-texte); }

/* Journée */
.frise {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); position: relative;
}
.frise::before { content: ''; position: absolute; left: 7%; right: 7%; top: 11px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--jaune), var(--vert), var(--ciel), var(--violet)); opacity: .5; }
.frise li { position: relative; text-align: center; padding: 34px 6px 0; display: flex; flex-direction: column; gap: 4px; }
.frise li::before { content: ''; position: absolute; top: 4px; left: 50%; translate: -50% 0; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ligne); }
.frise li.fort::before { border-color: var(--indigo); }
.frise time { font-family: var(--titres); font-weight: 600; font-size: 1.25rem; white-space: nowrap; }
.frise span { color: var(--doux); font-size: .92rem; line-height: 1.35; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.encart { border-radius: var(--rayon); padding: clamp(24px, 3vw, 32px); }
.encart p:last-child { margin-bottom: 0; }
.encart-ciel { background: var(--ciel-doux); }
.encart-ciel h3 { color: var(--ciel-texte); }
.encart-jaune { background: var(--jaune-doux); }
.encart-jaune h3 { color: var(--jaune-texte); }

/* Vie de l'école */
.mosaique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tuile { border-radius: var(--rayon); padding: 26px 24px; min-height: 180px; }
.tuile p { margin: 0; }
.tuile h3 { margin-bottom: .4em; }
.tuile-vert { background: var(--vert-doux); } .tuile-vert h3 { color: var(--vert-texte); }
.tuile-ciel { background: var(--ciel-doux); } .tuile-ciel h3 { color: var(--ciel-texte); }
.tuile-violet { background: var(--violet-doux); } .tuile-violet h3 { color: var(--violet-texte); }
.tuile-rose { background: var(--rose-doux); } .tuile-rose h3 { color: var(--rose-texte); }
.tuile-jaune { background: var(--jaune-doux); } .tuile-jaune h3 { color: var(--jaune-texte); }
.tuile-orange { background: var(--orange-doux); } .tuile-orange h3 { color: var(--orange-texte); }

/* Implantations */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.site { background: var(--surface); border-radius: var(--rayon); padding: 28px 26px; box-shadow: var(--ombre); border-top: 8px solid; display: flex; flex-direction: column; }
.site-ciel { border-color: var(--ciel); }
.site-vert { border-color: var(--vert); }
.site-violet { border-color: var(--violet); }
.site h3 { font-size: 1.5rem; margin-bottom: .25em; }
.site-niveaux { font-weight: 600; color: var(--doux); }
.site address { font-style: normal; font-size: 1.05rem; margin-bottom: 1em; }
.site-garderie { font-size: .95rem; color: var(--doux); margin-top: auto; }
.site .lien-fleche { margin-top: 4px; }

/* Inscription */
.section-inscription { background: linear-gradient(160deg, var(--violet-doux), var(--fond) 70%); }
.inscription-grille { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.etapes { counter-reset: etape; list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; }
.etapes li { counter-increment: etape; position: relative; padding: 16px 18px 16px 70px; background: var(--surface); border-radius: var(--rayon-petit); border: 1px solid var(--ligne); }
.etapes li::before {
  content: counter(etape); position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--titres); font-weight: 700; font-size: 1.15rem;
  background: var(--indigo); color: var(--sur-indigo);
}
.note { color: var(--doux); font-size: .98rem; max-width: 60ch; }
.contact { background: var(--surface); border-radius: var(--rayon); padding: clamp(24px, 3vw, 32px); box-shadow: var(--ombre); }
.contact h3 { font-size: 1.45rem; }
.contact-liste { list-style: none; margin: 0 0 16px; padding: 0; }
.contact-liste li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.contact-liste li:last-child { border-bottom: 0; }
.contact-libelle { font-size: .85rem; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; }
.contact-liste a { font-size: 1.15rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

/* Pied de page */
.pied { background: var(--surface); border-top: 1px solid var(--ligne); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; color: var(--doux); }
.pied-grille { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 40px; align-items: center; }
.pied-ecole { display: flex; gap: 16px; align-items: center; }
.pied-ecole img { width: 64px; flex: none; }
@media (prefers-color-scheme: dark) { .pied-ecole img, .marque img { background: #ffffff; border-radius: 50%; padding: 3px; } }
.pied-ecole p, .pied-reseau, .pied-note { margin: 0; }
.pied-ecole strong, .pied-reseau strong { color: var(--texte); }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pied-note { font-size: .88rem; }

/* Tablette */
@media (max-width: 1020px) {
  .cartes-valeurs { grid-template-columns: repeat(2, 1fr); }
  .mosaique { grid-template-columns: repeat(2, 1fr); }
  .atouts { grid-template-columns: repeat(2, 1fr); }
}

/* Téléphone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-grille { grid-template-columns: 1fr; }
  .hero-visuel { max-width: 260px; order: -1; }
  .actions .bouton { flex: 1 1 100%; }
  .parcours, .duo, .sites, .inscription-grille, .pied-grille { grid-template-columns: 1fr; }
  .cartes-valeurs, .mosaique { grid-template-columns: 1fr; }
  .tuile { min-height: 0; }
  .frise { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .frise::before { left: 16px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; background: linear-gradient(180deg, var(--jaune), var(--vert), var(--ciel), var(--violet)); }
  .frise li { flex-direction: row; align-items: baseline; gap: 14px; text-align: left; padding: 10px 0 10px 40px; }
  .frise li::before { top: 50%; left: 9px; translate: 0 -50%; }
  .frise time { min-width: 4.4em; font-size: 1.15rem; }
  .hero-visuel { max-width: 220px; }
}
@media (max-width: 420px) {
  .atouts { grid-template-columns: 1fr; }
  .marque small { display: none; }
}

/* Pages de texte (vie privée) : une colonne de lecture confortable. */
.document-colonne { max-width: 760px; }
.document h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.document h2 { font-size: 1.55rem; margin-top: 2.2em; }
.document h3 { font-size: 1.12rem; margin-top: 1.4em; color: var(--indigo); }
.document section { scroll-margin-top: 96px; }
.document .liste { margin-bottom: 1em; }
.document-date { color: var(--doux); font-size: .95rem; }
.sommaire { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.sommaire a { padding: 6px 14px; border-radius: 999px; background: var(--violet-doux); color: var(--violet-texte); text-decoration: none; font-weight: 600; font-size: .92rem; }
.sommaire a:hover { background: var(--ligne); }
.encadre { background: var(--surface); border: 1px solid var(--ligne); border-left: 6px solid var(--indigo); border-radius: var(--rayon-petit); padding: 16px 20px; }
.encadre p { margin: 0; }
