/* ==========================================================================
   Pages de texte au style de l'accueil v8 (26/11/2026) : mentions légales, politique de confidentialité,
   conditions de vente, crédits. Générées par site/outils/pages.py (page_v8).
   En-tête et pied : copiés de site/index.html à chaque génération ; leurs styles ci-dessous reprennent les
   valeurs mesurées sur l'accueil (1440 et 375 px), au pixel près.
   Guide : .claude/skills/retouche-site/SKILL.md, section 1. Brique #9C4840, crème #F4F1EA, blanc.
   Arrondis 8 / 6 px. Host Grotesk, approche -4 %. Texte : conteneur petit (880 px).
   ========================================================================== */

@font-face { font-family: "Host Grotesk"; src: url("/polices/HostGrotesk-variable.ttf") format("truetype"); font-weight: 300 800; font-display: swap; }

:root {
  --brique: #9c4840;
  --creme: #f4f1ea;
  --blanc: #ffffff;
  --brique-fonce: #7f3832;
  --brique-nuit: #6e2117;
  --encre: #1c1a17;
  --texte: #4a4540;
  --discret: #6f685f;
  --trait: #e7e2d8;
  --r-petit: 6px;
  --r-grand: 8px;
  --approche: -0.04em;
  --courbe-i: cubic-bezier(.35, 0, 0, 1);
  --c-menu: min(880px, calc(100% - 32px));   /* largeur du menu de l'accueil */
  --c-moyen: min(1360px, calc(100% - 64px)); /* largeur du pied de l'accueil */
}
@media (max-width: 760px) { :root { --c-moyen: calc(100% - 24px); } }

* { box-sizing: border-box; letter-spacing: var(--approche); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--encre); background: var(--creme); font-family: "Host Grotesk", system-ui, sans-serif; line-height: 1.2; overflow-x: clip; }
/* Écrans courts (fondateur, 26/11/2026) : le contenu occupe au moins la hauteur de l'écran, le pied vient en dessous. */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: .95; text-wrap: balance; }
p { margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--brique); outline-offset: 3px; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Menu (accueil v8) ---------- */
.menu { position: sticky; top: 0; z-index: 30; width: var(--c-menu); margin: 8px auto 0; padding-top: 16px; transition: padding-top .3s cubic-bezier(.2, 0, 0, 1); }
.menu.colle { padding-top: 12px; }
.menu::before { content: ""; position: absolute; left: 50%; top: 0; width: 100vw; height: 26px; transform: translateX(-50%); z-index: -1; opacity: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); transition: opacity .3s; }
.menu.colle::before { opacity: 1; }
.menu__barre { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 12px;
  background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-grand); transition: border-radius .3s, box-shadow .3s; }
.menu.colle .menu__barre { box-shadow: 0 10px 24px -20px rgb(60 40 30 / .45); }
.menu__liens { display: flex; gap: 26px; }
.menu__liens a { color: var(--encre); text-decoration: none; font-size: 16px; }
@media (min-width: 761px) { .menu__liens { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } }

.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--encre); text-decoration: none; font-weight: 500; font-size: 18px; }
.logo-dossier { width: 44px; height: 34px; overflow: visible; flex: none; }
.logo-dossier .ld-dos, .logo-dossier .ld-devant, .logo-dossier .ld-b { fill: var(--brique); }
.logo-dossier .ld-f { fill: var(--blanc); }
.logo-dossier .ld-fente { fill: none; stroke: var(--blanc); stroke-linejoin: round; }
.logo__nom { display: inline-flex; flex-direction: column; margin-left: 6.5px; font-weight: 800; font-size: 16.5px; line-height: 14.1px; color: var(--brique); position: relative; top: 3px; }
.logo__nom > span { display: block; }

/* ---------- Liens texte (.nl : texte qui roule, pointillés) ---------- */
.nl { position: relative; display: inline-block; padding: 2px 0 5px; color: var(--encre); text-decoration: none; font-size: 15px; }
.nl__fenetre { display: block; overflow: hidden; height: 1.2em; }
.nl__pile { display: block; position: relative; transition: transform .6s var(--courbe-i); }
.nl__pile span { display: block; }
.nl__pile span:last-child { position: absolute; left: 0; top: 100%; color: var(--brique); }
.nl__pointilles { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; overflow: hidden; }
.nl__pointilles::after { content: ""; position: absolute; inset: 0; transform: translateX(-105%); transition: transform .6s var(--courbe-i);
  background: radial-gradient(circle at 1px 1px, var(--brique) 1px, transparent 1.2px) 0 0 / 4px 2px; }
.nl:hover .nl__pile, .nl:focus-visible .nl__pile { transform: translateY(-100%); transition-duration: .7s; }
.nl:hover .nl__pointilles::after, .nl:focus-visible .nl__pointilles::after { transform: translateX(0); transition-duration: .7s; }

/* ---------- Bouton du menu (accueil v8) ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex: none;
  min-height: 40px; height: 40px; padding: 4px 14px; border: 0; border-radius: var(--r-petit); background: var(--brique); color: var(--blanc);
  font-size: 15px; font-weight: 400; white-space: nowrap; cursor: pointer; text-decoration: none; transition: transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn__remplissage { position: absolute; inset: 0; z-index: 0; background: var(--brique-fonce); border-radius: inherit; transform: scale(0); transform-origin: 50% 100%; transition: transform .6s var(--courbe-i); }
.btn--menu .btn__carre { display: none; }
.btn__texte { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; flex: 1; overflow: hidden; white-space: nowrap; }
.btn__pile { position: relative; display: block; transition: transform .6s var(--courbe-i); }
.btn__pile span { display: block; }
.btn__pile span + span { position: absolute; left: 0; right: 0; top: 240%; }
.btn i { font-style: normal; }
.btn .mm { display: none; }
/* Grand bouton (accueil v8) : carré brique foncé avec flèche, 48 px de haut */
.btn--grand { height: auto; min-height: 48px; padding: 0 16px 0 6px; font-size: 16px; }
.btn__carre { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-petit); background: var(--brique-fonce); transition: background-color .6s var(--courbe-i); }
.btn__carre svg { width: 58%; height: 58%; fill: var(--blanc); transition: transform .6s var(--courbe-i); }
/* Survol réservé aux appareils qui survolent (28/11/2026) : après un toucher, le bouton ne reste plus « survolé ». Focus clavier inchangé. */
.btn:focus-visible .btn__carre { background: var(--brique-nuit); transition-duration: .7s; }
.btn:focus-visible .btn__carre svg { transform: translateX(2px); transition-duration: .7s; }
.btn:focus-visible .btn__remplissage { transform: scale(1); transition-duration: .7s; }
.btn:focus-visible .btn__pile { transform: translateY(-240%); transition-duration: .7s; }
@media (hover: hover) {
  .btn:hover .btn__carre { background: var(--brique-nuit); transition-duration: .7s; }
  .btn:hover .btn__carre svg { transform: translateX(2px); transition-duration: .7s; }
  .btn:hover .btn__remplissage { transform: scale(1); transition-duration: .7s; }
  .btn:hover .btn__pile { transform: translateY(-240%); transition-duration: .7s; }
}

/* ---------- Pied (accueil v8) ---------- */
.pied { width: var(--c-moyen); margin: 0 auto; padding: 40px 0 56px; border-top: 1px solid var(--trait); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--texte); }
.pied nav { display: flex; gap: 20px; flex-wrap: wrap; }
.pied a { color: var(--texte); text-decoration: none; }
.pied .nl { font-size: inherit; color: var(--texte); padding: 2px 0 5px; }

/* ---------- Page de texte ---------- */
.legal { width: var(--c-menu); margin: 0 auto; padding: 96px 0 128px; }
.legal__tete { padding-bottom: 40px; border-bottom: 1px solid var(--trait); }
.legal--court .btn { margin-top: 32px; }
.legal__titre { font-size: clamp(40px, 5vw, 56px); line-height: 1.02; }
.legal__chapeau { margin-top: 16px; font-size: 17px; line-height: 1.35; color: var(--discret); max-width: 40em; text-wrap: pretty; }
.legal__chapeau strong { font-weight: 400; color: var(--texte); }

.texte { max-width: 700px; font-size: 17px; line-height: 1.35; color: var(--texte); }
.texte > * + * { margin-top: 14px; }
.texte > :first-child { margin-top: 40px; }
.texte p, .texte li, .texte td { text-wrap: pretty; }
.texte p { line-height: 1.35; }
.texte strong { font-weight: 500; color: var(--encre); }
.texte h2 { margin-top: 56px; font-size: 26px; line-height: 1.08; color: var(--encre); scroll-margin-top: 112px; }
.texte h2 + * { margin-top: 16px; }
.texte h3 { margin-top: 32px; font-size: 19px; line-height: 1.15; font-weight: 500; color: var(--encre); }
.texte ul, .texte ol { margin-bottom: 0; padding-left: 1.25em; }
.texte ol { padding-left: 1.6em; }
.texte li { padding-left: .25em; }
.texte li + li { margin-top: 8px; }
.texte li::marker { color: var(--brique); }
.texte ol > li::marker { font-variant-numeric: tabular-nums; }
.texte li > ul, .texte li > ol, .texte li > p { margin-top: 8px; }
.texte a { color: var(--encre); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgb(28 26 23 / .3);
  overflow-wrap: anywhere; transition: color .2s, text-decoration-color .2s; }
.texte a:hover { color: var(--brique); text-decoration-color: currentColor; }

/* Tableau : grande carte blanche sur ordinateur, blocs empilés sur téléphone */
.tableau { max-width: none; margin-top: 20px; }
.texte > .tableau { width: min(880px, calc(100vw - 32px)); }
.tableau table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-grand); overflow: hidden; font-size: 15px; line-height: 1.35; }
.tableau th { padding: 14px 16px; text-align: left; vertical-align: bottom; font-size: 13px; font-weight: 400; line-height: 1.25; color: var(--discret); background: #fcfbf8; border-bottom: 1px solid var(--trait); }
.tableau td { padding: 16px; vertical-align: top; color: var(--texte); }
.tableau tr + tr td { border-top: 1px solid var(--trait); }
.tableau td:first-child { color: var(--encre); font-weight: 500; }
/* 4 colonnes (politique de confidentialité) : largeurs réglées pour que la dernière colonne ne soit pas étroite */
.tableau--4 table { table-layout: fixed; }
.tableau--4 th:nth-child(1) { width: 21%; }
.tableau--4 th:nth-child(2) { width: 32%; }
.tableau--4 th:nth-child(3) { width: 25%; }
.tableau--4 th:nth-child(4) { width: 22%; }

@media (max-width: 760px) {
  .menu { margin-top: 0; padding-top: 8px; }
  .menu.colle { padding-top: 8px; }
  .menu__barre { height: 56px; padding: 0 8px; }
  .menu__liens { display: none; }
  .btn--menu { padding: 4px 12px; font-size: 14px; }
  .btn--menu .mv { display: none; }
  .btn--menu .mm { display: inline; }

  .legal { padding: 48px 0 88px; }
  .legal__tete { padding-bottom: 28px; }
  .legal__titre { font-size: 36px; }
  .texte { font-size: 16px; }
  .texte > :first-child { margin-top: 28px; }
  .texte h2 { margin-top: 44px; font-size: 23px; }

  .texte > .tableau { width: 100%; }
  .tableau table, .tableau tbody, .tableau tr, .tableau td { display: block; width: 100%; }
  .tableau table { background: none; border: 0; border-radius: 0; overflow: visible; }
  .tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tableau tr { background: var(--blanc); border: 1px solid var(--trait); border-radius: var(--r-grand); }
  .tableau tr + tr { margin-top: 12px; }
  .tableau td { padding: 12px 16px; }
  .tableau tr td, .tableau tr + tr td { border-top: 0; }
  .tableau tr td + td, .tableau tr + tr td + td { border-top: 1px solid var(--trait); }
  .tableau td[data-titre]::before { content: attr(data-titre); display: block; margin-bottom: 4px; font-size: 13px; font-weight: 400; line-height: 1.25; color: var(--discret); }
  .tableau td:first-child { font-size: 16px; padding-top: 16px; }
}

/* Arrivée du haut de page : descente de 16 px avec léger flou, l'un après l'autre (comme l'accueil et le récapitulatif) */
.arrive { animation: arrive .7s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes arrive { from { opacity: 0; transform: translateY(-16px); filter: blur(6px); } }

@media (prefers-reduced-motion: reduce) {
  .arrive { animation: none; }
  .btn__remplissage, .btn__pile, .nl__pile, .nl__pointilles::after, .menu, .menu::before, .menu__barre { transition: none !important; }
}

@media print {
  .menu, .pied { display: none; }
  .legal { width: auto; padding: 0; }
  body { background: #fff; }
}
