/* ============================================================
   DOONI — mise en page des sections (couche web)
   Desktop = grille-outil exposée. Mobile = fiches de terrain
   (posters verticaux empilés). Tokens : dooni-web.css
   ============================================================ */

/* ---------- TOPBAR ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: var(--rule); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brandmark { display: flex; align-items: center; text-decoration: none; }
.topnav { display: flex; gap: 30px; }
.topnav a { color: var(--ink-700); text-decoration: none; }
.topnav a:hover { color: var(--structure); }
/* État page courante : trace CYAN (cyan = navigation), jamais le rose café.
   Rule partagée ici pour que l'actif marche sur les 4 pages. */
.topnav a.is-active { color: var(--structure); box-shadow: inset 0 -3px 0 var(--cyan); }
/* Language cross-link (EN pages) — discreet, set apart from the site nav. */
.topnav a.topnav-lang { margin-left: 4px; padding-left: 14px; border-left: var(--hair); color: var(--ink-500); }
.topnav a.topnav-lang:hover { color: var(--structure); }
.topcta { padding: 11px 18px; font-size: 14px; }

/* ---------- PAGE FRAME ---------- */
#top { background: var(--surface); }
.page { max-width: var(--shell-max); margin: 0 auto; }
.pad { padding: clamp(40px, 6vw, 96px) var(--gutter); }
.pad-sm { padding: clamp(28px, 4vw, 56px) var(--gutter); }

/* ============================================================
   01 · HERO — la confrontation
   ============================================================ */
.hero { position: relative; }
.hero-eyebrow { display: flex; align-items: center; gap: 14px; padding: 18px var(--gutter); border-bottom: var(--hair); }
.hero-eyebrow .dot { width: 11px; height: 11px; background: var(--action-primary); display: block; }
.hero-body { padding: clamp(34px, 5vw, 74px) var(--gutter) clamp(40px, 6vw, 88px); }
.hero-sub { max-width: 760px; margin: clamp(24px,3vw,40px) 0 0; }
.hero-bridge { display: flex; gap: 14px; align-items: flex-start; margin-top: 30px; max-width: 720px; }
.hero-bridge .tick { font-family: var(--font-tech); color: var(--action-secondary); font-size: 20px; line-height: 1.2; }

/* Variant A — split franc (deux colonnes, règle au milieu) */
.heroA { display: grid; grid-template-columns: 1fr 1fr; }
.heroA .col { padding: clamp(30px,4vw,56px) var(--gutter); }
.heroA .col.passive { color: var(--ink-300); border-right: var(--rule); }
.heroA .col.active { color: var(--structure); }
.heroA .col .tag { margin-bottom: 18px; }
.heroA .big { font-family: var(--font-poster); text-transform: uppercase; line-height: 0.9; font-size: clamp(34px,4.4vw,68px); }
.heroA .col.passive .big { color: var(--ink-300); }

/* Variant B — barré / corrigé (bloc unique, partie passive rayée) */
.heroB-wrap { padding: clamp(34px,5vw,74px) var(--gutter); position: relative; }
.heroB .strike { color: var(--ink-300); position: relative; }
.heroB .strike s { text-decoration: none; background-image: linear-gradient(var(--structure),var(--structure)); background-size: 100% 4px; background-position: 0 55%; background-repeat: no-repeat; }
.heroB .keep { color: var(--structure); }
.heroB-note { position: absolute; right: var(--gutter); top: clamp(34px,5vw,74px); text-align: right; }

/* Variant C — fiche technique (comparatif labellisé) */
.heroC-top { padding: clamp(30px,4vw,56px) var(--gutter) clamp(20px,2vw,28px); }
.heroC-compare { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
.heroC-compare .cell { padding: clamp(24px,3vw,40px) var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.heroC-compare .cell.neg { border-right: var(--rule); background: var(--ink-100); }
.heroC-compare .verdict { font-family: var(--font-tech); font-size: 13px; letter-spacing: var(--trk-tech); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.heroC-compare .neg .verdict { color: var(--ink-500); }
.heroC-compare .pos .verdict { color: var(--structure); }
.heroC-compare .verdict .mk { width: 22px; height: 22px; display: grid; place-items: center; font-weight: 700; }
.heroC-compare .neg .mk { background: var(--ink-300); color: #fff; }
.heroC-compare .pos .mk { background: var(--action-primary); color: var(--on-primary); }
.heroC fig { margin: 0; }
.heroC fig img { height: 130px; width: auto; filter: grayscale(1) opacity(0.55); }

/* ============================================================
   02 · INVITATION — l'action dominante (le café domine)
   ============================================================ */
.invite { background: var(--surface); }
.invite-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px,4vw,64px); align-items: center; }
.invite .lead { max-width: 560px; }
.invite-cta { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.invite-cta .or { display: flex; align-items: center; gap: 12px; }
.invite-stamp { border: var(--rule); background: var(--action-primary); color: var(--on-primary); padding: clamp(24px,3vw,40px); }
.invite-stamp .w-tech { color: var(--on-primary); opacity: 0.78; }
.invite-stamp .zero { font-family: var(--font-poster); font-weight: var(--poster-weight); text-transform: uppercase; line-height: 0.86; font-size: clamp(40px,5vw,80px); color: var(--on-primary); margin-top: 10px; }
.invite-stamp .w-body { color: var(--on-primary); opacity: 0.92; }

/* ============================================================
   03 · L'ESPACE — le lieu comme système
   ============================================================ */
.space-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: end; }
.space-shots { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; margin-top: clamp(24px,3vw,40px); border-top: var(--rule); }
.space-shots .shot { border-right: var(--rule); border-top: none; border-bottom: none; border-left: none; }
.space-shots .shot:last-child { border-right: none; }
.labels { display: grid; grid-template-columns: repeat(2, 1fr); }
.labels .lab-cell { padding: clamp(20px,2.4vw,30px) var(--gutter); border-top: var(--rule); }
.labels .lab-cell:nth-child(odd) { border-right: var(--rule); }
.labels .lab-cell h4 { margin: 14px 0 8px; }
.labels .lab-cell p { margin: 0; max-width: 360px; }
.space-sign { padding: clamp(28px,4vw,56px) var(--gutter); border-top: var(--rule); }

/* ============================================================
   04 · LE FILTRE
   ============================================================ */
.filter-head { max-width: 760px; }
.no-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(28px,3vw,44px); border-top: var(--rule); border-left: var(--rule); }
.no-cell { padding: clamp(22px,2.6vw,32px) clamp(24px,3vw,36px); border-right: var(--rule); border-bottom: var(--rule); display: flex; gap: 16px; align-items: flex-start; }
.no-cell .x { font-family: var(--font-tech); font-weight: 600; color: var(--ink-300); font-size: 18px; line-height: 1.2; }
.no-cell p { margin: 0; font-family: var(--font-headline); font-weight: 700; font-size: clamp(17px,1.6vw,21px); line-height: 1.2; color: var(--structure); text-transform: none; }
.filter-reframe { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); margin-top: clamp(36px,4vw,64px); align-items: start; }
.filter-reframe .postit { justify-self: start; }
.filter-punch { padding: clamp(34px,5vw,72px) var(--gutter); border-top: var(--rule); border-bottom: var(--rule); margin-top: clamp(36px,4vw,64px); text-align: center; }

/* ============================================================
   05 · PLUS QU'UNE SALLE — preuve (notes + people)
   ============================================================ */
.proof-notes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
.proof-notes .notes-visual { border: var(--rule); padding: clamp(22px,3vw,34px); display: flex; flex-direction: column; gap: 14px; }
.proof-notes .note-row { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: var(--hair); }
.proof-notes .note-row:last-child { border-bottom: none; padding-bottom: 0; }
.proof-notes .note-row .n { font-family: var(--font-tech); color: var(--action-secondary); background: var(--structure); padding: 3px 8px; font-size: 12px; }
.proof-people { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,4vw,56px); align-items: center; margin-top: clamp(36px,4vw,64px); border-top: var(--rule); padding-top: clamp(36px,4vw,64px); }

/* ============================================================
   06 · LES FORMULES — secondaire, démoté
   ============================================================ */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--rule); border-left: var(--rule); margin-top: clamp(24px,3vw,40px); }
.offer { border-right: var(--rule); border-bottom: var(--rule); padding: clamp(24px,3vw,36px); display: flex; flex-direction: column; min-height: 360px; }
.offer .o-idx { color: var(--ink-500); }
.offer .o-name { margin: 14px 0 6px; }
.offer .o-price { font-family: var(--font-poster); font-size: clamp(40px,5vw,68px); line-height: 0.9; color: var(--structure); margin: 18px 0 6px; }
.offer .o-price small { font-family: var(--font-tech); font-size: 15px; letter-spacing: 0.08em; }
.offer .o-desc { margin: 0 0 auto; max-width: 280px; }
.offer .o-cta { margin-top: 24px; }

/* ============================================================
   07 · FOOTER
   ============================================================ */
.footer { border-top: var(--rule); }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(34px,4vw,64px) var(--gutter); border-bottom: var(--rule); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px var(--gutter); }
.footer-bottom .left { display: flex; align-items: center; gap: 16px; }
.footer-meta { display: flex; gap: 22px; align-items: center; }

/* ============================================================
   MODAL
   ============================================================ */
.overlay { position: fixed; inset: 0; background: rgba(10,10,10,0.62); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--surface); max-width: 460px; width: 100%; padding: 30px; border: var(--rule); }
.modal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-x { background: none; border: none; cursor: pointer; color: var(--ink-500); }
.modal-x:hover { color: var(--structure); }
.field { margin-top: 14px; }
.field label { display: block; margin-bottom: 6px; }
.field input { width: 100%; border: var(--rule); padding: 12px 14px; font-family: var(--font-read); font-size: 15px; background: var(--surface); }
.field input:focus { outline: none; background: var(--trace); }

/* ============================================================
   MOBILE — fiches de terrain / posters verticaux
   ============================================================ */
@media (max-width: 880px) {
  :root { --gutter: 20px; }
  .topnav { display: none; }
  .topcta { font-size: 13px; padding: 10px 14px; }

  .heroA { grid-template-columns: 1fr; }
  .heroA .col.passive { border-right: none; border-bottom: var(--rule); }
  .heroB-note { position: static; text-align: left; margin-top: 20px; }
  .heroC-compare { grid-template-columns: 1fr; }
  .heroC-compare .cell.neg { border-right: none; border-bottom: var(--rule); }

  .invite-grid,
  .space-intro,
  .filter-reframe,
  .proof-notes,
  .proof-people { grid-template-columns: 1fr; }
  .proof-people { gap: 24px; }

  .space-shots { grid-template-columns: 1fr; }
  .space-shots .shot { border-right: none; border-bottom: var(--rule); }
  .space-shots .shot:last-child { border-bottom: none; }

  .labels { grid-template-columns: 1fr; }
  .labels .lab-cell:nth-child(odd) { border-right: none; }

  .no-grid { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .offer { min-height: 0; }
}
@media (max-width: 520px) {
  .footer-cta { flex-direction: column; align-items: flex-start; }
}
