/* ══════════════════════════════════════════════════════════
   Un monde de différences — styles communs à toutes les pages
   (couleurs, typographie, menu, boutons, pied de page).
   Les styles propres à chaque page sont dans pages/<nom>.css
   (front matter pageCss). La mise en page fine des sections est
   écrite directement dans les gabarits, comme dans la maquette.
   ══════════════════════════════════════════════════════════ */

body { margin: 0; }

/* ── COULEURS ── */
.pg {
  --bg: #EBF5F4; --surface: #F8FCFB; --surface2: #DDEEEC;
  --ink: #0B2A2A; --ink2: #35504F; --ink3: #486563;
  --line: rgba(11,42,42,0.16);
  --green: #0F5E50; --amber: #8C4208;
  --lab: #1D6595; --atel: #A5441A; --arch: #0F5E50;
  --navbg: rgba(235,245,244,0.92);
  --band: #0B2A2A; --bandfg: #EBF5F4; --bandfg2: #B9D3D0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px; line-height: 1.6;
  background: var(--bg); color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
html.dark .pg {
  --bg: #0B1B2B; --surface: #12283C; --surface2: #163149;
  --ink: #EAE5DE; --ink2: #C2CACB; --ink3: #94A7AA;
  --line: rgba(234,229,222,0.18);
  --green: #5DCAA5; --amber: #F0A63A;
  --lab: #7BB8E0; --atel: #EC8F70; --arch: #5DCAA5;
  --navbg: rgba(11,27,43,0.92);
  --band: #0F2D38; --bandfg: #EAE5DE; --bandfg2: #A9C2C3;
}
html { color-scheme: light; }
html.dark { color-scheme: dark; }

/* ── BASE ── */
.pg * { box-sizing: border-box; }
.pg h1, .pg h2, .pg h3, .pg p, .pg ul, .pg dl, .pg dd,
.pg blockquote, .pg fieldset, .pg legend { margin: 0; padding: 0; }
.pg ul { list-style: none; }
.pg :where(a) { color: inherit; text-decoration: none; }
.pg em { font-style: italic; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: clamp(20px,4vw,40px); padding-right: clamp(20px,4vw,40px); }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink3); }
.pg a:focus-visible, .pg button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ── MENU ── */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--navbg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 32px; padding-top: 10px; padding-bottom: 10px; }
.site-brand { font-size: 22px; font-style: italic; font-weight: 500; color: var(--ink); padding: 8px 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; }
.nl { font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2); padding: 12px 0; transition: color .2s; }
.nl:hover { color: var(--ink); }
.nl[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
.nav-cta { padding: 10px 22px; min-height: 44px; font-size: 13px; }
.nav-cta[aria-current="page"] { background: var(--green); color: var(--bg); }
.mode-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; background: none; border: none; cursor: pointer; color: var(--ink2); font-family: inherit; font-size: 13px; }

/* ── BOUTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; padding: 15px 26px; border-radius: 999px; min-height: 48px; border: none; cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s; }
.btn-p { background: var(--ink); color: var(--bg); }
.btn-p:hover { transform: translateY(-2px); background: var(--green); color: var(--bg); }
.btn-g { border: 1.5px solid var(--line); color: var(--ink); }
.btn-g:hover { border-color: var(--green); color: var(--green); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── CARTES (accueil, Le projet) ── */
.card { transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(11,42,42,0.45); }
.card:hover .go { gap: 14px; }
.go { transition: gap .2s; }

/* ── PIED DE PAGE ── */
.foot { padding-top: 36px; padding-bottom: 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; border-top: 1px solid var(--line); }
.foot-brand { font-size: 18px; font-style: italic; color: var(--ink3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink3); }
.foot-nav .nl { color: inherit; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--ink); }
.foot-verbes { width: 100%; text-align: center; font-size: 17px; font-style: italic; letter-spacing: 0.04em; color: var(--ink3); padding-top: 12px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .card, .btn, .go { transition: none; }
  .card:hover, .btn-p:hover { transform: none; }
}
