/* Topo · page d'accueil (reprise de Balise) : un seul écran typographique sur fond noir d'encre (Archivo, police de Sharpa) */
:root { --fond: #121212; --fonce: #000000; --papier: #F5F4F0; --encre: #121212; --doux: rgba(245, 244, 240, .78); --citrus: #DDF73A; } /* fond noir d'encre */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html, body { background: var(--fond); }
body { color: var(--papier); font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--papier); outline-offset: 3px; }

.s-page { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
/* Ordre de superposition : le grand « Balise » au fond, puis l’écran de l’admin, puis le texte */
.s-head, .s-foot, .s-left { position: relative; z-index: 3; }
.s-hero { position: relative; }
.s-right { z-index: 1; }
/* Le nom en très grand, en noir, posé au bas de l'écran derrière tout le reste */
.s-giant { position: absolute; z-index: 0; left: 2vw; right: 2vw; bottom: 0; margin: 0; font-weight: 900; font-stretch: 125%; font-size: 25.5vw; line-height: .74; letter-spacing: -.05em; color: rgba(0, 0, 0, .3); white-space: nowrap; transform: translateY(14%); clip-path: inset(-50% -5% 14% -5%); pointer-events: none; user-select: none; }
.s-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; padding: 0 3vw; }
.s-note { font-size: 13px; line-height: 1.45; }
.s-soft { color: var(--doux); }
.s-num { font-weight: 500; font-variant-numeric: tabular-nums; }

/* En-tête */
.s-head { padding-top: 22px; padding-bottom: 22px; align-items: center; }
/* Logo : même dessin que le grand « Balise » du bas de l'écran */
.s-brand { grid-column: 1 / span 3; font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; letter-spacing: -.05em; text-decoration: none; }
.s-headlink { grid-column: 11 / span 2; text-align: right; font-weight: 600; text-decoration: none; }
.s-headlink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Ouverture */
.s-hero { flex: 1; align-items: end; min-height: 0; }
.s-left { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 3.2vw; padding-bottom: 2.4vw; }
.s-title { margin: 0; display: flex; flex-direction: column; gap: .15vw; font-weight: 900; font-stretch: 62%; font-size: 5.6vw; line-height: .98; letter-spacing: -.035em; }
.s-title span { white-space: nowrap; }
.s-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2vw; max-width: 38vw; }
.s-sub p { margin: 0; }
.s-wide { font-weight: 300; font-stretch: 125%; font-size: max(15px, 1.2vw); line-height: 1.2; letter-spacing: -.01em; }
.s-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.s-actions p { margin: 0; }
.s-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  background: var(--papier); color: var(--fond); text-decoration: none;
  font-weight: 700; font-stretch: 112%; font-size: 16px; letter-spacing: -.005em; border-radius: 2px;
  transition: background .15s ease, color .15s ease;
}
.s-btn:hover { background: #FFFFFF; }
.s-btn span { transition: transform .15s ease; }
.s-btn:hover span { transform: translateX(3px); }

/* Écran de l'admin : une fenêtre qui sort par le bord droit */
.s-right { grid-column: 7 / span 6; align-self: stretch; position: relative; min-height: 0; margin: 0; }
.s-window {
  position: absolute; bottom: calc(-4vw - 57px); left: 0; width: 70vw;
  background: #FFFFFF; border-radius: 10px 0 0 10px; overflow: hidden;
  box-shadow: 0 3vw 6vw -2vw rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1);
}
.s-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; background: #ECE9E1; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.s-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .16); }
.s-bar span { margin-left: 12px; font-size: 12px; color: rgba(0, 0, 0, .45); }
.s-window img { width: 100%; height: auto; display: block; }

/* Pied */
.s-foot { padding-top: 14px; padding-bottom: 16px; }
.s-foot span:first-child { grid-column: 1 / span 6; }

/* Section 2 : le constat, sur papier */
.s-paper { position: relative; z-index: 1; background: var(--papier); color: #121212; padding: 9vw 0 10vw; }
.s-label { align-items: baseline; padding-top: 1.4vw; margin: 0 3vw; padding-left: 0; padding-right: 0; border-top: 1px solid #121212; }
.s-label .s-num { grid-column: 1 / span 2; font-size: 13px; }
.s-label .s-note { grid-column: 3 / span 6; }
.s-label b { font-weight: 600; }
.s-intro { margin: 0 3vw; font-weight: 300; font-stretch: 125%; font-size: max(19px, 2vw); line-height: 1.15; letter-spacing: -.02em; }
.s-quote { padding: 3vw 3vw 0; }
.s-quote p { margin: 0; white-space: nowrap; font-weight: 900; font-stretch: 62%; font-size: 11.7vw; line-height: .84; letter-spacing: -.035em; }
.s-quote .s-q2 { padding-left: 12.6vw; }
.s-qnote { margin: 2vw 3vw 0 15.6vw; max-width: 300px; }
.s-answers { margin-top: 5vw; row-gap: 6vw; align-items: start; }
.s-ans { display: flex; flex-direction: column; gap: 14px; }
.s-ans p { margin: 0; }
.s-ans .s-note { max-width: 300px; }
.s-ans1 { grid-column: 2 / span 5; }
.s-ans2 { grid-column: 8 / span 5; padding-top: 8vw; }
.s-q { font-weight: 300; font-stretch: 125%; font-size: 3.8vw; line-height: 1; letter-spacing: -.035em; }

/* Section 3 : l'accès, sur bleu nuit pour refermer la page */
.s-access { background: var(--fond); padding: 9vw 0 9vw; }
.s-intro-light { color: var(--papier); }
.s-close { padding-top: 3vw; }
.s-close p { color: var(--papier); }
.s-access-row { margin-top: 5vw; }
.s-access-row .s-actions { grid-column: 1 / -1; justify-content: center; }
/* Pied de page */
.s-end { background: var(--fonce); border-top: 1px solid rgba(245, 244, 240, .14); }
.s-end-in { align-items: center; padding-top: 22px; padding-bottom: 22px; row-gap: 10px; }
.s-end-brand { grid-column: 1 / span 3; font-weight: 900; font-stretch: 125%; font-size: 22px; letter-spacing: -.05em; text-decoration: none; }
.s-end-mid { grid-column: 4 / span 6; text-align: center; }
.s-end-link { grid-column: 10 / span 3; text-align: right; font-weight: 600; text-decoration: none; }
.s-end-link:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 760px) {
  .s-label { margin: 0 5vw; padding-top: 3vw; }
  .s-paper { padding-top: 8vw; }
  .s-label .s-note { grid-column: 3 / -1; }
  .s-intro { margin: 0 5vw; }
  .s-quote { padding: 6vw 5vw 0; }
  .s-qnote { margin: 4vw 5vw 0; }
  .s-end-brand, .s-end-mid, .s-end-link { grid-column: 1 / -1; text-align: left; }
  .s-access-row .s-actions { flex-direction: column; text-align: center; }
  .s-ans1, .s-ans2 { grid-column: 1 / -1; padding-top: 0; }
  .s-q { font-size: 7vw; }
  .s-grid { column-gap: 3vw; padding: 0 5vw; }
  .s-brand { grid-column: 1 / span 6; }
  .s-headlink { grid-column: 7 / span 6; }
  .s-left, .s-right { grid-column: 1 / -1; }
  .s-left { padding: 8vw 0 10vw; gap: 7vw; }
  .s-title { font-size: 11vw; }
  .s-giant { position: relative; left: auto; right: auto; bottom: auto; transform: none; padding: 0 3vw; margin-top: 4vw; font-size: 25.5vw; line-height: .8; }
  .s-sub { grid-template-columns: 1fr; gap: 12px; max-width: none; }
  .s-wide { font-size: 17px; }
  .s-right { height: 62vw; overflow: hidden; margin-right: -5vw; }
  .s-window { position: static; width: 150vw; }
  .s-right { order: 2; }
  .s-foot { grid-template-columns: 1fr; row-gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .s-btn, .s-btn span { transition: none; } }

/* Pages d'erreur (404, lien expiré, erreur serveur) */
.s-error .s-error-main { flex: 1; align-items: center; }
.s-error-text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 2.4vw; padding-bottom: 14vw; }
.s-error-code { margin: 0; font-weight: 300; font-stretch: 125%; font-size: max(15px, 1.2vw); letter-spacing: .08em; color: var(--doux); }
.s-error .s-wide { margin: 0; max-width: 40vw; }
@media (max-width: 760px) {
  .s-error-text { grid-column: 1 / -1; gap: 6vw; padding: 10vw 0 40vw; }
  .s-error .s-wide { max-width: none; }
}

/* Pages légales : en-tête bleu nuit, texte lisible sur fond papier */
.s-legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.s-legal-lang { grid-column: 9 / span 4; display: flex; justify-content: flex-end; gap: 14px; font-weight: 700; letter-spacing: .04em; }
.s-legal-lang a { text-decoration: none; color: var(--doux); }
.s-legal-lang a[aria-current] { color: var(--papier); text-decoration: underline; text-underline-offset: 4px; }
.s-legal { flex: 1; background: var(--papier); color: var(--encre); padding: 40px 3vw 72px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 720px); gap: 48px; justify-content: center; }
.s-legal-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 24px; align-self: start; font-size: 14px; }
.s-legal-nav a { padding: 8px 0; text-decoration: none; color: rgba(13, 27, 30, .68); font-weight: 500; }
.s-legal-nav a:hover { color: var(--encre); }
.s-legal-nav a[aria-current] { color: var(--fond); font-weight: 700; }
.s-legal-text { font-size: 16px; line-height: 1.6; }
.s-legal-text h1 { margin: 0 0 6px; font-weight: 900; font-stretch: 62%; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--fond); }
.s-legal-date { margin: 0 0 28px; font-size: 13px; color: rgba(13, 27, 30, .6); }
.s-legal-lead { font-size: 18px; line-height: 1.55; }
.s-legal-text h2 { margin: 40px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; color: var(--fond); }
.s-legal-text p, .s-legal-text ul, .s-legal-text ol { margin: 0 0 14px; }
.s-legal-text ul, .s-legal-text ol { padding-left: 22px; }
.s-legal-text li { margin: 6px 0; }
.s-legal-text a { color: var(--fond); text-underline-offset: 3px; overflow-wrap: anywhere; }
.s-legal-text :focus-visible, .s-legal-nav :focus-visible { outline-color: var(--fond); }
.s-legal-body .s-end-mid { grid-column: 3 / span 7; }
.s-end-legal { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.s-end-legal a { text-decoration: none; }
.s-end-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .s-legal { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 5vw 56px; }
  .s-legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(13, 27, 30, .14); }
  .s-legal-lang { grid-column: 7 / span 6; }
  .s-legal-body .s-end-mid { grid-column: 1 / -1; }
}

.s-end-mid .s-end-legal { color: var(--papier); }
@media (max-width: 760px) { .s-end-legal { justify-content: flex-start; } }
.s-legal-body .s-head { padding-top: 20px; padding-bottom: 20px; }

/* Pages d'erreur : fond citrus, texte et bouton en noir d'encre */
:root:has(body.s-error-body) { --fond: #DDF73A; --papier: #121212; --doux: rgba(18, 18, 18, .72); }
.s-error-body .s-giant { color: rgba(18, 18, 18, .1); }
.s-error-body .s-btn { color: #DDF73A; }
.s-error-body .s-btn:hover { background: #000000; }
