/* Educ Care - feuille de style statique.
   Palette dérivée du logo. Polices auto-hébergées (voir fonts/fonts.css). */

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

/* ---------- Variables de marque ---------- */
:root {
  --navy: #21386E;
  --ink: #1B2A4E;
  --coral: #F5A012;
  --coral-deep: #D88A05;
  --sky: #57C1E0;
  --pale-sky: #E6F4FA;
  --parent: #D86B53;
  --pale-parent: #F7E4DE;
  --chef: #FF9900;
  --pale-chef: #FFEFD5;
  --surface: #FAF9F6;
  --muted: #4F5B7A;
  --line: #E3E1D9;
  --hero-blue: #1e3b84;
  --font-sans: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --container: 80rem;     /* max-w-7xl */
  --header-h: 6rem;       /* h-24 */
}

/* ---------- Base ---------- */
body {
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--navy);
}
p { max-width: 68ch; }
a { text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;            /* px-6 */
}
@media (min-width: 1024px) { .container { padding-inline: 3rem; } } /* lg:px-12 */

.section { padding-block: 4rem; }
.section--tight { padding-block: 3rem 4rem; }
.section.border-t { border-top: 1px solid var(--line); }
.section.bg-pale { background-color: rgba(230, 244, 250, 0.4); } /* pale-sky/40 */
.measure { max-width: 48rem; }       /* max-w-3xl */

.eyebrow {
  display: inline-block;
  border-radius: 9999px;
  background: var(--pale-sky);
  color: var(--navy);
  padding: 0.25rem 0.75rem;
  font-size: 13px;
  margin-bottom: 1rem;
}
.eyebrow--bare {
  background: none;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}
.eyebrow--sky { color: var(--sky); }
.eyebrow--parent { color: var(--parent); }
.eyebrow--chef { color: #c47200; }   /* chef lisible sur fond clair */

.lead { color: var(--muted); font-size: 1.125rem; }
.text-muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.625rem;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color .18s ease, transform .18s ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--ink); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgba(27,42,78,.4); }
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { width: 44px; height: 44px; border-radius: 9999px; }
.brand-name { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; display: none; }
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-desktop a { color: var(--muted); transition: color .15s; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] { color: var(--navy); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy);
}
@media (min-width: 640px) {
  .brand img { width: 56px; height: 56px; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .brand-name { display: inline; }
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Menu mobile (sheet) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(27,42,78,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; top: 0; right: 0; z-index: 51;
  height: 100%; width: min(20rem, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto;
}
.sheet.open { transform: translateX(0); }
.sheet-head { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.sheet a { color: var(--ink); font-size: 1.125rem; padding: 0.6rem 0; }
.sheet a:hover { color: var(--navy); }
.sheet .btn { margin-top: 1rem; justify-content: center; }
@media (min-width: 1024px) { .sheet, .sheet-backdrop { display: none; } }

/* ---------- Page header (sous-pages) ---------- */
.page-header {
  padding: 9rem 0 3rem;             /* pt-36 pb-12 */
}
@media (min-width: 1024px) { .page-header { padding: 11rem 0 4rem; } }
.page-header h1 { font-size: 2.25rem; }
@media (min-width: 1024px) { .page-header h1 { font-size: 3rem; } }
.page-header .lead { margin-top: 1rem; max-width: 60ch; }

/* ---------- Hero (accueil) ---------- */
.hero { padding: 9rem 0 5rem; }
@media (min-width: 1024px) { .hero { padding: 11rem 0 6rem; } }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr auto; } }
.hero h1 { font-size: 2.25rem; }
@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }
.hero p { margin-top: 1.25rem; color: var(--muted); }
.hero-portrait {
  width: 14rem; height: auto; aspect-ratio: 3/4; border-radius: 1.5rem;
  object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  order: -1; justify-self: center;
}
@media (min-width: 640px) { .hero-portrait { width: 18rem; } }
@media (min-width: 1024px) { .hero-portrait { width: 22rem; order: 0; } }

/* DoorCards */
.doors { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 640px) { .doors { grid-template-columns: repeat(2, 1fr); } }
.door {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: background-color .15s ease;
}
.door:hover { background: var(--surface); }
.door-sky { border-left-color: var(--sky); }
.door-parent { border-left-color: var(--parent); }
.door-chef { border-left-color: var(--chef); }
.door-ico {
  width: 2.5rem; height: 2.5rem; border-radius: 0.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.door-ico svg { width: 1.4rem; height: 1.4rem; }
.door-sky .door-ico { background: var(--pale-sky); color: var(--navy); }
.door-parent .door-ico { background: var(--pale-parent); color: var(--parent); }
.door-chef .door-ico { background: var(--pale-chef); color: #b86e00; }
.door h2 { font-size: 1.25rem; }
.door p { color: var(--muted); margin-top: 0.4rem; font-size: 0.98rem; }
.door-cta {
  background: var(--hero-blue); color: #fff; border-left-color: var(--hero-blue);
}
.door-cta:hover { background: var(--ink); }
.door-cta h2 { color: #fff; }
.door-cta span { display: block; color: rgba(255,255,255,.85); margin-top: 0.25rem; }

/* Bloc avis Google */
.reviews-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem; color: var(--navy); font-weight: 700;
}
.reviews-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.stars { color: var(--navy); letter-spacing: 0.05em; }

/* ---------- Sections de contenu génériques ---------- */
.prose-section h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.prose-section p + p { margin-top: 1rem; }
.prose-section { color: var(--ink); }

/* Listes à puces colorées */
.bullets { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.bullets li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--navy);
}
.bullets-sky li::before { background: var(--sky); }
.bullets-parent li::before { background: var(--parent); }
.bullets-chef li::before { background: var(--chef); }
.switch-text { margin-top: 1.25rem; color: var(--muted); }
.section-cta { margin-top: 1.5rem; }

/* Listes "flèche" */
.arrows { display: grid; gap: 0.85rem; margin-top: 1.25rem; }
.arrows li { position: relative; padding-left: 1.75rem; color: var(--muted); }
.arrows li::before { content: "→"; position: absolute; left: 0; color: var(--navy); font-weight: 700; }
.arrows strong { color: var(--navy); }

/* Cartes (grilles) */
.cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.5rem;
}
.card h2, .card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); }
.card .example {
  margin-top: 0.85rem; padding-left: 0.85rem; border-left: 3px solid var(--pale-sky);
  font-style: italic; color: var(--muted); font-size: 0.95rem;
}

/* Étapes "Comment ça se passe" */
.steps { display: grid; gap: 1rem; margin-top: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.5rem;
}
.step-num {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--pale-sky); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); }

/* Témoignages */
.quotes { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote {
  background: #fff; border-radius: 1.5rem; padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}
.quote .q-stars { color: var(--coral); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.quote blockquote { color: var(--navy); font-size: 1.05rem; }
.quote figcaption { margin-top: 0.85rem; color: var(--muted); font-weight: 700; }

/* CTA section */
.cta-section {
  border-top: 1px solid var(--line);
  background: rgba(230, 244, 250, 0.6);
  padding-block: 6rem;
  text-align: center;
}
.cta-section h2 { font-size: 1.9rem; }
.cta-section p { margin: 1rem auto 1.75rem; color: var(--muted); max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; padding: 4rem 0; }
.site-footer .inner {
  border-top: 1px solid var(--line); padding-top: 3rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 768px) { .site-footer .inner { flex-direction: row; align-items: center; } }
.footer-brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--muted); }
.footer-brand img { width: 48px; height: 48px; border-radius: 9999px; opacity: .9; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--navy); }

/* ---------- Widget accessibilité ---------- */
.a11y-btn {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 60;
  width: 3rem; height: 3rem; border-radius: 9999px; border: 0;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(27,42,78,.6);
}
.a11y-btn:hover { background: var(--ink); }
.a11y-panel {
  position: fixed; bottom: 5rem; right: 1.25rem; z-index: 60;
  width: 16rem; background: #fff; border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1rem;
  box-shadow: 0 16px 40px -16px rgba(27,42,78,.5);
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.a11y-panel label { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; color: var(--ink); cursor: pointer; }

/* ---------- Formulaire ---------- */
.contact-cards { display: grid; gap: 1.25rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.contact-card { border: 1px solid var(--line); border-radius: 1rem; padding: 1.75rem; background: #fff; }
.contact-card.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.contact-card.navy h2 { color: #fff; }
.contact-card.navy p { color: rgba(255,255,255,.85); }
.contact-card .surtitle { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.5rem; opacity: .85; }
.contact-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.contact-card .arrow-link { display: inline-block; margin-top: 1rem; font-weight: 700; }
.contact-card.navy .arrow-link { color: #fff; }
.contact-card .arrow-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { max-width: 40rem; margin-top: 1.5rem; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 0.625rem;
  padding: 0.7rem 0.85rem;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 8rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: auto; }
.form-help { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.form-error { color: #b3261e; margin-top: 0.75rem; font-weight: 700; }
.form-success {
  background: var(--pale-sky); border: 1px solid var(--line);
  border-radius: 0.75rem; padding: 1.25rem; color: var(--navy); font-weight: 500;
}

/* ---------- Citation "qui suis-je" ---------- */
.lead-quote {
  border-left: 4px solid var(--navy); padding-left: 1.25rem;
  font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); line-height: 1.3;
}
.author-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.author-row img { width: 5rem; height: 5rem; border-radius: 9999px; object-fit: cover; }
.author-row .name { font-weight: 700; color: var(--navy); }
.author-row .role { color: var(--muted); font-size: 0.95rem; }
.highlight { color: var(--navy); font-weight: 700; }

/* ---------- FAQ (accordéon natif) ---------- */
.faq-list { display: grid; gap: 0.85rem; margin-top: 1.5rem; max-width: 48rem; }
.faq-item { background: #fff; border-radius: 1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.05); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; transition: transform .2s ease; color: var(--navy); }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 1.5rem 1.25rem; color: var(--muted); }

/* ---------- 404 ---------- */
.center-screen {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 1rem;
}
.center-screen h1 { font-size: 4rem; }

/* ---------- Reveal au scroll (gated sous .js : sans JS, tout reste visible) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Espacement main (sous header fixe) ---------- */
main { display: block; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- Accessibilité : agrandissement ---------- */
html.a11y-larger body { font-size: 20px; }
html.a11y-larger h1 { font-size: 1.1em; }

/* ---------- Accessibilité : contraste renforcé ---------- */
html.a11y-contrast {
  --navy: #000; --ink: #000; --muted: #000; --surface: #fff;
  --coral: #b85a00; --coral-deep: #8c4500; --sky: #003a5c; --pale-sky: #d6ecf7;
  --parent: #7a1f0d; --pale-parent: #fbe2dc; --line: #000; --hero-blue: #004c3a;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .door, html.a11y-contrast .card, html.a11y-contrast .step,
html.a11y-contrast .quote, html.a11y-contrast .faq-item, html.a11y-contrast .contact-card { background: #fff; }
html.a11y-contrast .btn-navy, html.a11y-contrast .door-cta, html.a11y-contrast .contact-card.navy { background: #004c3a !important; color: #fff !important; }
html.a11y-contrast .btn-navy h2, html.a11y-contrast .door-cta h2, html.a11y-contrast .contact-card.navy h2 { color: #fff !important; }
html.a11y-contrast .section.bg-pale, html.a11y-contrast .cta-section { background: #fff2a8 !important; }
html.a11y-contrast a:not(.btn):not(.door):not(.contact-card) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
html.a11y-contrast :focus-visible { outline-color: #000; outline-width: 3px; }

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