/* ==========================================================================
   EDUC'AIR — site public
   Implémentation de la maquette Educair.dc.html (Claude Design).
   ========================================================================== */

:root {
  --bg:            #FDFAF5;
  --surface:       #FFFFFF;
  --muted:         #F6F1E8;
  --border:        #E8E0D3;
  --border-strong: #DBD1C1;

  --ink:           #2D2722;
  --ink-soft:      #524C45;
  --ink-faint:     #7A7167; /* maquette : #B8ADA0 — éclairci pour rester lisible sur blanc */

  --accent:        #B0573A;
  --accent-dark:   #99472D;
  --accent-soft:   #F7E7DC;

  --dark:          #3D3229;
  --footer:        #2E2620;
  --footer-ink:    #B8ADA0;

  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 18px 44px rgba(16, 24, 40, .18);

  --sans: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img { max-width: 100%; }
input, textarea, button, select { font: inherit; }

h1, h2, h3, p { margin: 0; text-wrap: pretty; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

.wrap        { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
.wrap--mid   { max-width: 1080px; }
.wrap--narrow{ max-width: 900px; }

.site-main { flex: 1; }

.stack   { display: flex; flex-direction: column; }
.gap-8   { gap: 8px; }  .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.gap-14  { gap: 14px; } .gap-16 { gap: 16px; } .gap-22 { gap: 22px; }
.gap-28  { gap: 28px; } .gap-30 { gap: 30px; } .gap-40 { gap: 40px; }
.gap-44  { gap: 44px; } .gap-56 { gap: 56px; }

.grid    { display: grid; gap: 16px; }
.grid-2  { grid-template-columns: 1fr 1fr; }
.grid-3  { grid-template-columns: repeat(3, 1fr); }

.rule { padding-top: 24px; border-top: 1px solid var(--border); }

/* Rythme vertical des blocs de page (le retrait latéral reste celui de .wrap). */
.page-body    { padding-block: 56px 80px; }
.block-64-24  { padding-block: 64px 24px; }
.block-64-72  { padding-block: 64px 72px; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 16px;
}

.brand { display: flex; align-items: center; flex: none; }
/* La maquette prévoyait 46px ; le pissenlit et les akènes s'y empâtent. */
.brand img { height: 58px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }

.nav__link {
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 6px;
  background: none; border: 0; cursor: pointer;
  font-weight: 400;
  display: flex; align-items: center; gap: 7px;
}
.nav__link:hover { color: var(--ink); background: var(--muted); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--ink); background: var(--muted); font-weight: 600; }

.nav__caret { font-size: 10px; opacity: .7; transition: transform .18s ease; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__mail { color: var(--accent); font-weight: 600; margin-left: 6px; }
.nav__mail:hover { color: var(--accent-dark); background: var(--accent-soft); }

.nav__tel {
  background: var(--accent); color: var(--surface);
  padding: 10px 18px; border-radius: 6px; font-weight: 600;
}
.nav__tel:hover { background: var(--accent-dark); color: var(--surface); }

.nav__group { position: relative; display: flex; align-items: center; }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex; flex-direction: column;
}
.dropdown[hidden] { display: none; }
.dropdown a {
  color: var(--ink); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15.5px;
}
.dropdown a:hover { background: var(--muted); color: var(--ink); }

.burger {
  display: none;
  background: none; border: 1px solid var(--border-strong);
  border-radius: 6px; padding: 10px 12px; cursor: pointer;
  color: var(--ink); line-height: 1;
}

/* --------------------------------------------------------------------------
   Pages (routage par ancre)
   -------------------------------------------------------------------------- */

.page[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Bandeaux
   -------------------------------------------------------------------------- */

.band { background: var(--muted); border-bottom: 1px solid var(--border); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
        padding-block: 76px 72px; }

.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: 64px 56px; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}

.tagline {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--accent);
  padding: 7px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600;
}

.h1     { font-size: 56px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.h1--sm { font-size: 46px; line-height: 1.1; }
.h2     { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.h2--30 { font-size: 30px; }
.h2--28 { font-size: 28px; }
.h2--26 { font-size: 26px; }

.lead     { font-size: 18.5px; line-height: 1.65; color: var(--ink-soft); max-width: 50ch; }
.subtitle { font-size: 19px;   line-height: 1.6;  color: var(--ink-soft); }

.prose p { font-size: 17.5px; line-height: 1.75; color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Boutons & liens
   -------------------------------------------------------------------------- */

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: var(--radius-sm);
  font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--dark    { background: var(--dark); color: var(--surface); }
.btn--dark:hover { background: var(--accent); color: var(--surface); }
.btn--primary { background: var(--accent); color: var(--surface); }
.btn--primary:hover { background: var(--accent-dark); color: var(--surface); }
.btn--ghost   { background: var(--surface); border-color: var(--border-strong); color: var(--ink); font-weight: 500; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--self    { align-self: flex-start; }

.link-underline {
  align-self: flex-start;
  font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
.link-underline--lg { font-size: 19px; }

/* --------------------------------------------------------------------------
   Cartes
   -------------------------------------------------------------------------- */

.num-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
}
.num-card:hover { border-color: var(--accent); }
.num-card__n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.num-card__t { font-size: 19px; font-weight: 600; line-height: 1.4; }

.need-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; background: var(--muted);
  border-radius: var(--radius); border-top: 3px solid var(--accent);
}
.need-card__t { font-size: 18px; font-weight: 600; line-height: 1.45; }
.need-card__d { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.need-item {
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 20px; border-left: 3px solid var(--accent);
}
.need-item__t { font-size: 19px; font-weight: 600; line-height: 1.45; }
.need-item__d { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }

.svc-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink);
}
.svc-card:hover { border-color: var(--accent); color: var(--ink); }
.svc-card__t { font-size: 19px; font-weight: 600; }
.svc-card__d { font-size: 15px; line-height: 1.55; color: var(--ink-faint); }

.svc-card--accent { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.svc-card--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--surface); }
.svc-card--accent .svc-card__d { color: #F3DDD1; }

.pill {
  padding: 24px; background: var(--muted);
  border-radius: 10px; border-top: 3px solid var(--accent);
  font-size: 18px; font-weight: 600; line-height: 1.45;
}
.pill--17 { font-size: 17.5px; }

.chip {
  padding: 16px 20px; background: var(--muted); border-radius: 10px;
  font-size: 17.5px; line-height: 1.7; color: var(--ink-soft);
}

.outline-card {
  padding: 22px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
}

.note-card {
  padding: 20px; background: var(--muted); border-radius: 10px;
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
}

.panel {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px; background: var(--muted); border-radius: var(--radius); color: var(--ink);
}
.panel p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
         padding: 32px; background: var(--muted); border-radius: var(--radius); }
.steps span { font-size: 19px; font-weight: 600; line-height: 1.4; }

.dash-list { display: flex; flex-direction: column; gap: 10px;
             font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); }
.dash-list > span { display: flex; gap: 12px; }
.dash-list > span::before { content: '—'; color: var(--accent); flex: none; }

.section-dark { background: var(--muted); color: var(--ink); margin-top: 56px; }

.cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  padding: 28px 32px; background: var(--muted); border-radius: var(--radius);
}
.cta-bar__t { font-size: 18px; font-weight: 600; }

.mail-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 22px 26px; background: var(--accent-soft); border-radius: var(--radius);
}
.mail-bar__t { font-size: 18px; font-weight: 600; color: var(--ink); }
.mail-bar__a { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   Plan d'accès
   Le plan est un SVG statique généré depuis OpenStreetMap (tools/build-plan.py) :
   aucune requête tierce, donc aucun cookie ni bandeau de consentement.
   -------------------------------------------------------------------------- */
.map {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}
.map__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 580 / 328;
}
.map__cap {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 11.5px; color: var(--ink-faint);
}
.map__cap a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.map__cap a:hover { color: var(--accent); }

.access { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.access li {
  display: grid; grid-template-columns: 82px 1fr; gap: 14px;
  align-items: baseline;
  font-size: 15.5px; line-height: 1.55; color: var(--ink-soft);
}
.access__k {
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint);
}
.access b {
  display: inline-block; min-width: 17px; padding: 0 4px;
  border-radius: 4px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; text-align: center;
}

.map__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.map__links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Emplacements d'images à remplacer — voir landing/README.md */
.placeholder {
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #F1E9DD 0 8px, #E6DACB 8px 16px);
  display: flex; align-items: flex-end; padding: 16px;
}
.placeholder--hero   { height: 340px; }

/* Logo en grand à la place de la photo d'en-tête */
.hero-logo {
  height: 340px; border-radius: var(--radius);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.hero-logo img { width: 100%; max-width: 400px; height: auto; }
.placeholder--poster { height: 420px; }
.placeholder span {
  font-family: var(--mono); font-size: 11px; color: #8B8175;
  background: var(--surface); padding: 6px 9px; border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Tarifs
   -------------------------------------------------------------------------- */

.tarifs { display: flex; flex-direction: column; }
.tarifs__row {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 17px;
}
.tarifs__row:last-child { border-bottom: 0; }
.tarifs__row span { color: var(--ink-soft); }
.tarifs__row strong { font-weight: 600; white-space: nowrap; }

.contact-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px; background: var(--muted); border-radius: var(--radius);
  font-size: 17px; line-height: 1.6;
}
.contact-card__t { font-weight: 600; }
.contact-card span { color: var(--ink-soft); }
.contact-card a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 12px; }
.form input,
.form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 16px; color: var(--ink); background: var(--surface);
  width: 100%;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form input::placeholder, .form textarea::placeholder { color: #918A80; }
.form button { align-self: flex-start; padding: 15px 26px; font-size: 16px; }

.form__hint { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

.form__sent {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px; background: var(--accent-soft); border-radius: var(--radius);
}
.form__sent[hidden] { display: none; }
.form__sent-t { font-size: 19px; font-weight: 600; color: var(--accent); }
.form__sent-d { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); }

/* Anti-spam : champ leurre, invisible pour les humains. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */

.site-footer { background: var(--footer); color: var(--footer-ink); }
.site-footer__inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
  padding-block: 44px; font-size: 15px; line-height: 1.7;
}
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand { color: #FFF; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.site-footer__head  { color: #FFF; font-weight: 600; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #FFF; }
.site-footer a.is-strong { color: #FFF; font-weight: 600; }
.site-footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 18px; font-size: 13.5px;
  display: flex; gap: 18px; flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Apparition au défilement
   -------------------------------------------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(14px);
                transition: opacity .55s cubic-bezier(.22,.61,.36,1),
                            transform .55s cubic-bezier(.22,.61,.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
/* Sans JS, tout reste visible. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .h1 { font-size: 46px; }
  .hero { gap: 40px; }
}

@media (max-width: 900px) {
  .wrap { padding-inline: 20px; }

  .burger { display: block; }
  .brand img { height: 48px; }

  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 14px; }
  .nav__group { display: block; }
  .dropdown {
    position: static; width: auto; box-shadow: none;
    border: 0; border-left: 2px solid var(--border); border-radius: 0;
    margin: 4px 0 8px 14px; padding: 0;
  }
  .nav__mail, .nav__tel { margin-left: 0; align-self: flex-start; margin-top: 6px; }

  .hero { grid-template-columns: 1fr; padding-block: 48px 44px; }
  .placeholder--hero, .hero-logo { height: 240px; }
  .access li { grid-template-columns: 1fr; gap: 2px; }

  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .section-dark { margin-top: 40px; }
  .cta-bar, .mail-bar { flex-direction: column; align-items: flex-start; }
  .page-body   { padding-block: 40px 56px; }
  .block-64-24 { padding-block: 44px 20px; }
  .block-64-72 { padding-block: 44px 52px; }
}

@media (max-width: 620px) {
  .h1 { font-size: 34px; }
  .h1--sm { font-size: 30px; }
  .h2 { font-size: 26px; }
  .h2--30, .h2--28, .h2--26 { font-size: 23px; }
  .lead { font-size: 17px; }
  .prose p { font-size: 16.5px; }
  .page-head { padding: 44px 0 36px; }
  .section { padding-block: 40px; }
  .panel, .steps { padding: 22px; }
  .num-card, .need-card, .svc-card { padding: 20px; }
  .actions .btn { width: 100%; text-align: center; }
  .tarifs__row { flex-direction: column; gap: 4px; }
}

/* --------------------------------------------------------------------------
   Impression
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .burger, .actions, .form { display: none; }
  .page[hidden] { display: block; }
  [data-reveal] { opacity: 1; transform: none; }
  body { background: #fff; }
}
