/* ============================================================
   Wazamba — feuille de style unique du site.
   Jetons de design, puis composants par ordre alphabetique.
   ============================================================ */

/* --- Jetons -------------------------------------------------- */
:root {
  /* couleurs */
  --t-pillar: #072345;
  --t-spot: #90cf51;
  --t-press: #78c235;
  --t-back: #071e3b;
  --t-layer: #0c2a4d;
  --t-reading: #ffffff;
  --t-subtle: #bdbdbd;
  --t-edge: #143459;
  --t-rule-bold: #1e4674;
  --t-blend-a: #fed742;
  --t-fade-bottom: #f77f02;
  --t-caution: #c1121f;

  /* espacements — echelle modulaire 4px */
  --g-1: 4px;
  --g-2: 8px;
  --g-3: 12px;
  --g-4: 16px;
  --g-5: 24px;
  --g-6: 40px;
  --g-7: 64px;
  --g-8: 96px;

  /* geometrie — angles vifs */
  --r-1: 0;
  --r-2: 0;
  --r-3: 0;
  --r-4: 0;
  --r-5: 0;
  --r-pill: 0;
  --r-circle: 50%;
  --b-slim: 1px;
  --b-base: 2px;
  --b-wide: 4px;
  --d-3: 0 1px 0 rgba(0, 0, 0, 0.28);
  --d-4: 0 2px 0 rgba(0, 0, 0, 0.32);
  --d-5: 0 4px 0 rgba(0, 0, 0, 0.36);

  /* typographie */
  --f-title: "Montserrat", "Trebuchet MS", sans-serif;
  --f-text: "Montserrat", "Segoe UI", sans-serif;
  --z-title: 38px;
  --z-xl-2: 30px;
  --z-sub: 24px;
  --z-h4: 20px;
  --z-sm-2: 17px;
  --z-h6: 15px;
  --z-normal: 17px;
  --z-sm: 15px;
  --z-micro: 13px;
  --l-compact: 1.25;
  --l-normal: 1.6;
  --l-roomy: 1.8;
  --w-book: 400;
  --w-mid: 500;
  --w-heavy: 600;
  --e-snug: 0;
  --e-regular: 0;
  --e-wide: 0.01em;

  /* mouvement — chiffres propres a cette compilation */
  --t-fast: 102ms;
  --t-normal: 180ms;
  --t-calm: 301ms;
  --x-exit: cubic-bezier(0.3, 0.6, 0.55, 1);
  --x-swing: cubic-bezier(0.44, 0.01, 0.33, 0.94);
  --x-bounce: cubic-bezier(0.29, 1.25, 0.71, 1.1);

  /* conteneurs */
  --v-full: 1260px;
  --v-text: 1260px;
  --v-edge-wide: 48px;
  --v-pad-md: 24px;
  --v-pad-sm: 16px;
  --h-height-desktop: 68px;
  --h-size-mobile: 62px;

  /* reglages locaux (hors dictionnaire canonique) */
  --slim: 440px;
  --sec-y: 40px;
  --frame: calc(var(--v-full) + 2 * var(--v-edge-wide));
  --rg-height: 44px;
}

/* --- Polices auto-hebergees ---------------------------------- */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("/output/montserrat-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("/output/montserrat-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  src: url("/output/montserrat-latin-600-normal.woff2") format("woff2");
}

/* --- Remise a zero ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  background-color: var(--t-back);
  color: var(--t-reading);
  display: flex;
  flex-direction: column;
  font-family: var(--f-text);
  font-size: var(--z-normal);
  font-weight: var(--w-book);
  line-height: var(--l-roomy);
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--rg-height);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--f-title);
  font-weight: var(--w-heavy);
  letter-spacing: var(--e-regular);
  line-height: var(--l-compact);
  margin-block: 0 var(--g-4);
}

h4,
h5,
h6 {
  font-family: var(--f-text);
  font-weight: var(--w-mid);
  line-height: var(--l-compact);
  margin-block: 0 var(--g-3);
}

h1 { font-size: var(--z-title); }
h2 { font-size: var(--z-xl-2); }
h3 { font-size: var(--z-sub); }
h4 { font-size: var(--z-h4); }
h5 { font-size: var(--z-sm-2); }
h6 { font-size: var(--z-h6); }

img {
  max-width: 100%;
}

p {
  margin-block: 0 var(--g-5);
  overflow-wrap: anywhere;
}

ul,
ol {
  margin-block: 0 var(--g-5);
}

/* --- Accessibilite ------------------------------------------- */
.skiplane {
  background-color: var(--t-spot);
  color: var(--t-back);
  font-weight: var(--w-heavy);
  inset-inline-start: var(--g-4);
  padding: var(--g-3) var(--g-5);
  position: absolute;
  z-index: 200;
}

.skiplane:not(:focus) {
  top: -200px !important;
}

.skiplane:focus {
  top: var(--g-3);
}

.srhidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* --- Trame commune ------------------------------------------- */
.shell {
  display: block;
  flex: 1 0 auto;
}

.cahier-body,
.classeur-body,
.crypte-body,
.encart-body,
.etabli-body,
.fresque-body,
.medaillon-body,
.panneau-body,
.paroi-body,
.pignon-body,
.rubrique-body,
.voussure-body,
.arche-body {
  display: block;
  margin-inline: auto;
  max-width: var(--frame);
  padding-inline: var(--v-edge-wide);
  width: 100%;
}

.cahier,
.classeur,
.crypte,
.encart,
.etabli,
.fresque,
.medaillon,
.panneau,
.paroi,
.pignon,
.rubrique,
.arche {
  padding-block: var(--sec-y);
}

/* apparition au defilement — decalage 18px, cascade 70ms */
[data-inview] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-calm) var(--x-exit), transform var(--t-calm) var(--x-exit);
}

[data-inview].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* --- Fiche autrice (AUTH-02) --------------------------------- */
.arche-body {
  text-align: center;
}

.arche-headshot {
  border-radius: var(--r-circle);
  display: block;
  height: 140px;
  margin: 0 auto var(--g-5);
  object-fit: cover;
  width: 140px;
}

.arche-position {
  color: var(--t-spot);
  font-size: var(--z-sm);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-4);
  text-transform: uppercase;
}

.arche-lede {
  line-height: var(--l-roomy);
  margin-block-end: var(--g-4);
}

.arche-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-2);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.arche-tag {
  background-color: var(--t-pillar);
  color: var(--t-reading);
  font-size: var(--z-micro);
  letter-spacing: var(--e-wide);
  padding: var(--g-1) var(--g-3);
  text-transform: uppercase;
}

.arche-articles {
  border-top: var(--b-slim) solid var(--t-edge);
  margin-block-start: var(--g-6);
  padding-block-start: var(--g-5);
}

.arche-articles-heading {
  font-size: var(--z-h4);
  margin-block-end: var(--g-3);
}

.arche-stack {
  color: var(--t-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--g-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.arche-one {
  font-size: var(--z-sm);
}

/* --- Cartes reperes (GRID-11 blocs de tailles melangees) ------ */
.cahier-heading {
  margin-block-end: var(--g-5);
}

.cahier-stack {
  display: grid;
  gap: var(--g-5);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.cahier-card {
  background-color: var(--t-layer);
  border: var(--b-slim) solid var(--t-edge);
  color: var(--t-reading);
  display: flex;
  flex-direction: column;
  gap: var(--g-3);
  padding: var(--g-5);
  transition: background-color var(--t-normal) var(--x-swing);
}

.cahier-card:hover {
  background-color: var(--t-pillar);
}

.cahier-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.cahier-card:nth-child(4) {
  grid-column: span 2;
}

.cahier-figure {
  fill: var(--t-blend-a);
  flex-shrink: 0;
  height: 32px;
  width: 32px;
}

.cahier-card-heading {
  font-family: var(--f-title);
  font-size: var(--z-h4);
  font-weight: var(--w-heavy);
  margin: 0;
}

.cahier-card:nth-child(1),
.cahier-card:nth-child(4) {
  justify-content: center;
}

.cahier-card:nth-child(1) .cahier-card-heading {
  font-size: var(--z-xl-2);
}

.cahier-card:nth-child(1) .cahier-note,
.cahier-card:nth-child(4) .cahier-note {
  font-size: var(--z-normal);
}

.cahier-card:nth-child(1) .cahier-figure {
  height: 40px;
  width: 40px;
}

.cahier-note {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  line-height: var(--l-normal);
}

/* --- Pages juridiques (LEGAL-07 style magazine) --------------- */
.classeur-tag {
  color: var(--t-spot);
  display: block;
  font-size: var(--z-micro);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-2);
  text-transform: uppercase;
}

.classeur-lede {
  color: var(--t-reading);
  font-family: var(--f-title);
  font-size: var(--z-h4);
  font-style: italic;
  line-height: var(--l-normal);
  margin-block-end: var(--g-6);
}

.classeur-part {
  margin-block-end: var(--g-6);
}

.classeur-heading {
  font-family: var(--f-title);
  font-size: var(--z-sub);
  font-style: italic;
  margin-block-end: var(--g-3);
}

.classeur-rule {
  background-color: var(--t-spot);
  border: 0;
  height: var(--b-base);
  margin: 0 0 var(--g-5);
  width: 80px;
}

.classeur-part p {
  color: var(--t-subtle);
  line-height: var(--l-roomy);
}

.classeur-part p:first-of-type::first-letter {
  color: var(--t-spot);
  float: left;
  font-family: var(--f-title);
  font-size: 3em;
  font-weight: var(--w-heavy);
  line-height: 0.9;
  padding-inline-end: var(--g-2);
}

.classeur-aid {
  background-color: var(--t-layer);
  border: var(--b-slim) solid var(--t-edge);
  margin-block-end: var(--g-6);
  padding: var(--g-5);
}

.classeur-aid-heading {
  font-size: var(--z-h4);
  margin-block-end: var(--g-3);
}

.classeur-stack {
  color: var(--t-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--g-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.classeur-one {
  font-size: var(--z-sm);
}

.classeur-note {
  color: var(--t-subtle);
  font-size: var(--z-sm);
}

/* --- Encart d'appel intercalaire (INLINE-CTA-02) -------------- */
.crypte-card {
  background-color: var(--t-layer);
  border: var(--b-slim) solid var(--t-edge);
  margin-inline: auto;
  max-width: 600px;
  padding: var(--g-6) var(--g-5);
  text-align: center;
}

.crypte-heading {
  font-family: var(--f-title);
  font-size: var(--z-h4);
  font-weight: var(--w-heavy);
  margin-block-end: var(--g-3);
}

.crypte-note {
  color: var(--t-subtle);
  margin-inline: auto;
  max-width: var(--slim);
}

/* --- Bloc d'appel principal (CTA-09) ------------------------- */
.encart-tag {
  color: var(--t-spot);
  display: block;
  font-size: var(--z-micro);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-2);
  text-transform: uppercase;
}

.encart-heading {
  font-size: var(--z-xl-2);
  margin-block-end: var(--g-4);
}

.encart-note {
  color: var(--t-subtle);
  line-height: var(--l-roomy);
}

.encart-fine {
  color: var(--t-subtle);
  display: block;
  font-size: var(--z-micro);
  margin-block-start: var(--g-3);
}

/* --- Tableau (TABLE-02 sans bordures) ------------------------ */
.etabli-heading {
  margin-block-end: var(--g-5);
}

.etabli-scroll {
  overflow-x: auto;
}

.etabli-table {
  border-collapse: collapse;
  width: 100%;
}

.etabli-table th {
  border-bottom: var(--b-base) solid var(--t-spot);
  color: var(--t-reading);
  font-family: var(--f-title);
  font-size: var(--z-sm);
  font-weight: var(--w-heavy);
  letter-spacing: var(--e-wide);
  padding-block: var(--g-4);
  padding-inline: 0 var(--g-5);
  text-align: start;
  text-transform: uppercase;
}

.etabli-table td {
  border-bottom: var(--b-slim) solid var(--t-edge);
  color: var(--t-subtle);
  font-size: var(--z-normal);
  padding-block: var(--g-4);
  padding-inline: 0 var(--g-5);
  vertical-align: top;
}

.etabli-table td:first-child {
  color: var(--t-reading);
  font-weight: var(--w-mid);
  white-space: nowrap;
}

.etabli-table tr:last-child td {
  border-bottom: 0;
}

/* --- Page 404 (ERR-08) --------------------------------------- */
.fresque {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--sec-y);
}

.fresque-body {
  text-align: center;
}

.fresque-heading {
  margin-inline: auto;
  max-width: var(--slim);
}

.fresque-note {
  color: var(--t-subtle);
  margin-inline: auto;
  max-width: var(--slim);
}

.fresque-picks {
  background-color: var(--t-layer);
  margin-block-start: var(--g-6);
  padding: var(--g-6) var(--g-5);
}

.fresque-picks-heading {
  font-size: var(--z-h4);
  margin-block-end: var(--g-4);
}

.fresque-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-4);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fresque-path {
  color: var(--t-spot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fresque-path:hover {
  text-decoration-thickness: 2px;
}

/* --- En-tete (HEAD-BURGER) ----------------------------------- */
.linteau {
  backdrop-filter: blur(6px);
  background-color: var(--t-pillar);
  position: relative;
  z-index: 80;
}

.linteau-row {
  align-items: center;
  display: flex;
  gap: var(--g-5);
  margin-inline: auto;
  max-width: calc(var(--v-full) + 2 * var(--g-7));
  min-height: 68px;
  padding-inline: var(--g-7);
  width: 100%;
}

.linteau-logo {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: var(--g-3);
}

.linteau-badge {
  align-items: center;
  background-color: var(--t-pillar);
  border: var(--b-base) solid var(--t-blend-a);
  border-radius: var(--r-circle);
  color: var(--t-blend-a);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--f-title);
  font-size: var(--z-sub);
  font-weight: var(--w-heavy);
  height: 52px;
  justify-content: center;
  line-height: 1;
  width: 52px;
}

.linteau-logo img {
  display: block;
  flex-shrink: 0;
  height: 60px;
  width: auto;
}

.linteau-menu-tap {
  align-items: center;
  background-color: var(--t-back);
  border: var(--b-slim) solid var(--t-rule-bold);
  color: var(--t-reading);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 46px;
  justify-content: center;
  margin-inline-start: auto;
  width: 46px;
}

.linteau-menu-tap:hover {
  background-color: var(--t-layer);
  color: var(--t-blend-a);
}

.linteau-lines {
  background-color: currentColor;
  block-size: 7px;
  box-shadow: 11px 0 0 currentColor, 0 11px 0 currentColor, 11px 11px 0 currentColor;
  display: block;
  inline-size: 7px;
  margin-block-end: 11px;
  margin-inline-end: 11px;
}

.linteau-deck {
  display: flex;
  flex-shrink: 0;
  gap: var(--g-3);
}

.linteau-drawer {
  background-color: var(--t-pillar);
  border-top: var(--b-slim) solid var(--t-edge);
  display: none;
  inset-block-start: 100%;
  inset-inline: 0;
  max-height: 70vh;
  overflow-y: auto;
  position: absolute;
  z-index: 90;
}

.linteau-drawer.is-open {
  display: block;
}

.linteau-stack {
  list-style: none;
  margin: 0 auto;
  max-width: var(--frame);
  padding: var(--g-3) var(--g-7);
}

.linteau-one {
  display: block;
}

.linteau-path {
  border-bottom: var(--b-slim) solid var(--t-edge);
  color: var(--t-reading);
  display: block;
  font-size: 15px;
  font-weight: 500;
  padding-block: var(--g-3);
  text-decoration: none;
  white-space: nowrap;
}

.linteau-path:hover {
  color: var(--t-blend-a);
}

.linteau-path[aria-current="page"] {
  color: var(--t-spot);
  font-weight: var(--w-heavy);
}

.linteau-one:last-child .linteau-path {
  border-bottom: 0;
}

/* --- Signature d'autrice (BYLINE-05 bandeau) ----------------- */
.lutrin {
  background-color: var(--t-pillar);
}

.lutrin-row {
  align-items: center;
  display: flex;
  gap: var(--g-4);
  justify-content: space-between;
  margin-inline: auto;
  max-width: var(--frame);
  padding-block: var(--g-5);
  padding-inline: var(--v-edge-wide);
  width: 100%;
}

.lutrin-face {
  align-items: center;
  display: flex;
  gap: var(--g-4);
}

.lutrin-headshot {
  border-radius: var(--r-circle);
  flex-shrink: 0;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.lutrin-who {
  color: var(--t-reading);
  font-weight: var(--w-heavy);
}

.lutrin-who a {
  color: var(--t-reading);
  text-decoration: none;
}

.lutrin-who a:hover {
  color: var(--t-blend-a);
}

.lutrin-position {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  font-style: italic;
}

.lutrin-on {
  color: var(--t-subtle);
  display: block;
  font-size: var(--z-micro);
}

.lutrin-goto {
  background-color: var(--t-pillar);
  border: var(--b-slim) solid var(--t-spot);
  color: var(--t-spot);
  display: inline-flex;
  flex-shrink: 0;
  font-size: var(--z-sm);
  padding: var(--g-3) var(--g-4);
  text-decoration: none;
  white-space: nowrap;
}

.lutrin-goto:hover {
  background-color: var(--t-spot);
  color: var(--t-back);
}

/* --- Avis (REV-01 trois colonnes) ---------------------------- */
.medaillon-heading {
  margin-block-end: var(--g-5);
}

.medaillon-stack {
  display: grid;
  gap: var(--g-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.medaillon-card {
  background-color: var(--t-layer);
  border: var(--b-slim) solid var(--t-edge);
  color: var(--t-reading);
  padding: var(--g-5);
}

.medaillon-row {
  align-items: baseline;
  display: flex;
  gap: var(--g-3);
  justify-content: space-between;
}

.medaillon-who {
  color: var(--t-reading);
  font-weight: var(--w-heavy);
}

.medaillon-on {
  color: var(--t-subtle);
  font-size: var(--z-micro);
}

.medaillon-score {
  color: var(--t-blend-a);
  font-size: var(--z-sm-2);
  letter-spacing: 2px;
  margin-block: var(--g-2);
}

.medaillon-score span {
  color: var(--t-subtle);
  font-size: var(--z-micro);
  letter-spacing: var(--e-regular);
  margin-inline-start: var(--g-2);
}

.medaillon-note {
  color: var(--t-subtle);
  font-size: var(--z-normal);
  line-height: var(--l-roomy);
  margin: 0;
}

/* --- Pied de page (FOOT-10 sections detaillees) -------------- */
.nef {
  background-color: var(--t-back);
  border-top: var(--b-slim) solid var(--t-edge);
}

.nef-row {
  margin-inline: auto;
  max-width: var(--frame);
  padding-block: var(--g-7);
  padding-inline: var(--v-edge-wide);
  width: 100%;
}

.nef-crest {
  align-items: center;
  border-bottom: var(--b-slim) solid var(--t-edge);
  display: flex;
  gap: var(--g-5);
  justify-content: space-between;
  padding-block-end: var(--g-5);
}

.nef-logo img {
  display: block;
  height: 42px;
  width: auto;
}

.nef-second {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  margin: 0;
  max-width: 520px;
  text-align: end;
}

.nef-grid {
  border-bottom: var(--b-slim) solid var(--t-edge);
  display: grid;
  gap: var(--g-6);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: var(--g-6);
}

.nef-track {
  display: block;
}

.nef-heading {
  color: var(--t-reading);
  font-size: var(--z-h6);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-4);
  text-transform: uppercase;
}

.nef-stack {
  display: flex;
  flex-direction: column;
  gap: var(--g-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nef-one {
  display: block;
}

.nef-path {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  letter-spacing: var(--e-wide);
  text-decoration: none;
}

.nef-path:hover {
  color: var(--t-blend-a);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.nef-detail {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  margin: 0;
}

.nef-warn {
  border-bottom: var(--b-slim) solid var(--t-edge);
  color: var(--t-subtle);
  font-size: var(--z-micro);
  line-height: var(--l-normal);
  padding-block: var(--g-5);
}

.nef-warn a {
  color: var(--t-blend-a);
}

.nef-base {
  align-items: center;
  color: var(--t-subtle);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--z-micro);
  gap: var(--g-4);
  justify-content: space-between;
  padding-block-start: var(--g-5);
}

.nef-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- FAQ (FAQ-05 balise details) ----------------------------- */
.panneau-heading {
  margin-block-end: var(--g-5);
}

.panneau-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panneau-one {
  border-bottom: var(--b-slim) solid var(--t-edge);
  padding-block: var(--g-4);
}

.panneau-ask {
  align-items: center;
  color: var(--t-reading);
  cursor: pointer;
  display: grid;
  gap: var(--g-4);
  grid-template-columns: minmax(0, 1fr) auto;
  list-style: none;
}

.panneau-ask::-webkit-details-marker {
  display: none;
}

.panneau-ask h3 {
  font-family: var(--f-text);
  font-size: var(--z-sm-2);
  font-weight: var(--w-heavy);
  margin: 0;
}

.panneau-ask:hover {
  color: var(--t-blend-a);
}

.panneau-chevron {
  border-inline-end: var(--b-base) solid currentColor;
  border-block-end: var(--b-base) solid currentColor;
  display: block;
  height: 9px;
  transform: rotate(45deg);
  transition: transform var(--t-fast) var(--x-swing);
  width: 9px;
}

.panneau-one[open] .panneau-chevron {
  transform: rotate(225deg);
}

.panneau-meat {
  color: var(--t-subtle);
  padding-block-start: var(--g-3);
}

.panneau-meat p {
  margin: 0;
}

/* --- En-tete de page (PHEAD-05) ------------------------------ */
.paroi {
  background-color: var(--t-pillar);
}

.paroi-crumbs {
  color: var(--t-subtle);
  font-size: var(--z-micro);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-3);
  text-transform: uppercase;
}

.paroi-crumbs a {
  color: var(--t-spot);
  text-decoration: none;
}

.paroi-crumbs a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.paroi-heading {
  margin-block-end: var(--g-3);
}

.paroi-note {
  color: var(--t-subtle);
  margin: 0;
}

/* --- Texte courant (PROSE-28 retraits en escalier) ----------- */
.pignon-part {
  margin-block-end: var(--g-7);
}

.pignon-part:last-child {
  margin-block-end: 0;
}

.pignon-heading {
  font-size: var(--z-xl-2);
  font-weight: var(--w-heavy);
  margin-block-end: var(--g-5);
}

.pignon-part p {
  color: var(--t-subtle);
  line-height: var(--l-roomy);
  margin-block-end: var(--g-5);
}

.pignon-part p:nth-of-type(2) {
  padding-inline-start: var(--g-5);
}

.pignon-part p:nth-of-type(3) {
  padding-inline-start: var(--g-6);
}

.pignon-part p:nth-of-type(4) {
  padding-inline-start: var(--g-7);
}

.pignon-part p:nth-of-type(n + 5) {
  padding-inline-start: var(--g-7);
}

.pignon-part a {
  color: var(--t-spot);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pignon-part a:hover {
  text-decoration-thickness: 2px;
}

.pignon-part strong {
  color: var(--t-reading);
  font-weight: var(--w-heavy);
}

.pignon-part em {
  font-style: italic;
}

.pignon-stack {
  color: var(--t-subtle);
  margin-block-end: var(--g-5);
  padding-inline-start: var(--g-6);
}

.pignon-one {
  line-height: var(--l-roomy);
  margin-block-end: var(--g-2);
}

.pignon-figure {
  display: block;
  height: auto;
  margin-block: var(--g-5);
  max-height: 56vh;
  object-fit: cover;
  width: 100%;
}

/* --- Bandeau cookies (COOK-03 carte d'angle) ----------------- */
.plaque {
  background-color: var(--t-layer);
  border: var(--b-slim) solid var(--t-rule-bold);
  box-shadow: var(--d-5);
  inset-block-end: calc(var(--rg-height) + var(--g-4));
  inset-inline-end: var(--g-4);
  max-width: 360px;
  position: fixed;
  transform: translateY(140%);
  visibility: hidden;
  width: 360px;
  z-index: 95;
}

.plaque.is-open {
  transform: translateY(0);
  visibility: visible;
}

.plaque-box {
  display: flex;
  flex-direction: column;
  gap: var(--g-4);
  padding: var(--g-5);
}

.plaque-heading {
  color: var(--t-spot);
  font-family: var(--f-title);
  font-size: var(--z-sm-2);
  font-weight: var(--w-heavy);
  letter-spacing: var(--e-wide);
  margin: 0;
  text-transform: uppercase;
}

.plaque-message {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  line-height: var(--l-normal);
  margin: 0;
}

.plaque-deck {
  display: flex;
  gap: var(--g-3);
}

.plaque-ok,
.plaque-refuse {
  align-items: center;
  border: var(--b-slim) solid var(--t-spot);
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 50%;
  font-family: var(--f-text);
  font-size: var(--z-micro);
  font-weight: var(--w-mid);
  justify-content: center;
  min-height: 40px;
  padding: var(--g-2) var(--g-3);
  text-align: center;
}

.plaque-ok {
  background-color: var(--t-spot);
  color: var(--t-back);
}

.plaque-ok:hover {
  background-color: var(--t-press);
  color: var(--t-back);
}

.plaque-refuse {
  background-color: var(--t-layer);
  color: var(--t-reading);
}

.plaque-refuse:hover {
  background-color: var(--t-pillar);
  color: var(--t-blend-a);
}

/* --- Bandeau 18+ (RG-06 colle en bas) ------------------------ */
.rgline {
  background-color: var(--t-caution);
  color: #ffffff;
  display: block;
  font-size: var(--z-micro);
  inset-block-end: 0;
  inset-inline: 0;
  line-height: var(--l-normal);
  margin: 0;
  padding: var(--g-2) var(--g-4);
  pointer-events: none;
  position: fixed;
  text-align: center;
  z-index: 100;
}

.rgroute {
  color: #ffffff;
  display: block;
  margin: 2px auto 0;
  max-width: 100%;
  pointer-events: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

.rgroute:hover {
  text-decoration-thickness: 2px;
}

/* --- Formulaire de contact (FORM-06 labels flottants) -------- */
.rubrique-heading {
  margin-block-end: var(--g-4);
}

.rubrique-lede {
  color: var(--t-subtle);
  margin-block-end: var(--g-5);
}

.rubrique-form {
  display: flex;
  flex-direction: column;
  gap: var(--g-5);
  max-width: 640px;
}

.rubrique-field {
  position: relative;
}

.rubrique-input,
.rubrique-area {
  background-color: var(--t-layer);
  border: var(--b-base) solid var(--t-edge);
  color: var(--t-reading);
  font-family: var(--f-text);
  font-size: var(--z-normal);
  padding: var(--g-5) var(--g-4) var(--g-3);
  width: 100%;
}

.rubrique-area {
  min-height: 150px;
  resize: vertical;
}

.rubrique-input:focus,
.rubrique-area:focus {
  border-color: var(--t-spot);
  outline: none;
}

.rubrique-tag {
  color: var(--t-subtle);
  font-size: var(--z-sm);
  inset-block-start: var(--g-5);
  inset-inline-start: var(--g-4);
  pointer-events: none;
  position: absolute;
  transition: inset-block-start var(--t-normal) var(--x-swing), font-size var(--t-normal) var(--x-swing);
}

.rubrique-input:focus + .rubrique-tag,
.rubrique-input:not(:placeholder-shown) + .rubrique-tag,
.rubrique-area:focus + .rubrique-tag,
.rubrique-area:not(:placeholder-shown) + .rubrique-tag {
  color: var(--t-spot);
  font-size: var(--z-micro);
  inset-block-start: var(--g-2);
}

.rubrique-send {
  align-self: flex-start;
  background-color: var(--t-spot);
  border: 0;
  color: var(--t-back);
  cursor: pointer;
  font-family: var(--f-text);
  font-size: var(--z-normal);
  font-weight: var(--w-heavy);
  min-height: 48px;
  padding: var(--g-3) var(--g-6);
}

.rubrique-send:hover {
  background-color: var(--t-press);
  color: var(--t-back);
}

.rubrique-message {
  background-color: var(--t-pillar);
  border: var(--b-slim) solid var(--t-spot);
  color: var(--t-reading);
  display: none;
  margin-block-start: var(--g-4);
  max-width: 640px;
  padding: var(--g-4);
}

.rubrique-message.is-open {
  display: block;
}

/* --- Premier ecran (HERO-10 lettre verticale) ---------------- */
.voussure {
  align-items: center;
  background-color: var(--t-back);
  background-image: linear-gradient(180deg, rgba(7, 30, 59, 0.9) 0%, rgba(7, 30, 59, 0.97) 100%),
    url("/output/composition.webp");
  background-position: center;
  background-size: cover;
  border-bottom: var(--b-slim) solid var(--t-edge);
  display: flex;
  min-height: clamp(520px, calc(100vh - 68px), 760px);
  overflow: hidden;
  position: relative;
}

.voussure-mark {
  color: var(--t-reading);
  font-family: var(--f-title);
  font-size: 46vh;
  font-weight: var(--w-heavy);
  inset-block-start: 50%;
  inset-inline-start: max(var(--v-edge-wide), calc((100vw - var(--v-full)) / 2));
  line-height: 1;
  max-width: calc(var(--v-full) * 0.3);
  opacity: 0.05;
  pointer-events: none;
  position: absolute;
  transform: translateY(-50%);
  user-select: none;
}

.voussure-body {
  position: relative;
  z-index: 2;
}

.voussure-meat {
  padding-block: var(--g-7);
  padding-inline-start: 32%;
  width: 100%;
}

.voussure-tag {
  color: var(--t-blend-a);
  display: block;
  font-size: var(--z-micro);
  letter-spacing: var(--e-wide);
  margin-block-end: var(--g-3);
  text-transform: uppercase;
}

.voussure-heading {
  margin-block-end: var(--g-4);
}

.voussure-second {
  color: var(--t-subtle);
  line-height: var(--l-roomy);
  margin-block-end: var(--g-5);
}

.voussure-deck {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-4);
}

.voussure-detail {
  color: var(--t-subtle);
  display: block;
  font-size: var(--z-micro);
  margin-block-start: var(--g-4);
}

/* --- Boutons d'offre ----------------------------------------- */
.encart-offer,
.crypte-offer,
.voussure-offer,
.linteau-offer,
.fresque-goto,
.paroi-offer {
  align-items: center;
  background-color: var(--t-spot);
  border: 0;
  color: var(--t-back);
  display: inline-flex;
  font-family: var(--f-text);
  font-size: var(--z-normal);
  font-weight: var(--w-heavy);
  justify-content: center;
  letter-spacing: var(--e-wide);
  min-height: 48px;
  padding: var(--g-3) var(--g-6);
  text-align: center;
  text-decoration: none;
  transition: transform var(--t-fast) var(--x-swing), background-color var(--t-fast) var(--x-swing);
}

.encart-offer:hover,
.crypte-offer:hover,
.voussure-offer:hover,
.linteau-offer:hover,
.fresque-goto:hover,
.paroi-offer:hover {
  background-color: var(--t-press);
  color: var(--t-back);
  transform: scale(1.015);
}

.linteau-offer {
  font-size: var(--z-sm);
  min-height: 46px;
  padding: var(--g-2) var(--g-5);
  white-space: nowrap;
}

/* --- Ecrans intermediaires (desktop-first) ------------------- */
@media (max-width: 1380px) {
  .voussure-meat {
    padding-inline-start: 28%;
  }
}

@media (max-width: 1040px) {
  :root {
    --v-edge-wide: 24px;
    --sec-y: 36px;
  }

  .cahier-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cahier-card:nth-child(1),
  .cahier-card:nth-child(4) {
    grid-column: span 2;
    grid-row: auto;
  }

  .linteau-row {
    max-width: calc(var(--v-full) + 2 * var(--g-5));
    padding-inline: var(--g-5);
  }

  .linteau-stack {
    padding-inline: var(--g-5);
  }

  .linteau-badge {
    height: 46px;
    width: 46px;
  }

  .linteau-logo img {
    height: 50px;
  }

  .medaillon-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nef-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .voussure-mark {
    font-size: 34vh;
  }

  .voussure-meat {
    padding-inline-start: 24%;
  }
}

@media (max-width: 720px) {
  :root {
    --v-edge-wide: 16px;
    --sec-y: 32px;
  }

  body {
    font-size: 16px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  h4 { font-size: 18px; }
  h5 { font-size: 16px; }
  h6 { font-size: 14px; }

  .arche-headshot {
    height: 120px;
    width: 120px;
  }

  .cahier-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .cahier-card:nth-child(1),
  .cahier-card:nth-child(4) {
    grid-column: auto;
  }

  .lutrin-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .lutrin-goto {
    width: 100%;
    justify-content: center;
  }

  .medaillon-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .nef-crest {
    align-items: flex-start;
    flex-direction: column;
  }

  .nef-second {
    text-align: start;
  }

  .nef-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--g-5);
  }

  .nef-row {
    padding-block: var(--g-6);
  }

  .plaque {
    inset-inline: var(--g-3);
    max-width: none;
    width: auto;
  }

  .plaque-box {
    font-size: 13px;
    gap: 8px;
    line-height: 1.35;
    padding: 12px 14px;
  }

  .plaque-heading {
    display: none;
  }

  .plaque-ok,
  .plaque-refuse {
    font-size: 12px;
    min-height: 36px;
    padding: 8px 14px;
  }

  .pignon-part p:nth-of-type(2),
  .pignon-part p:nth-of-type(3),
  .pignon-part p:nth-of-type(4),
  .pignon-part p:nth-of-type(n + 5) {
    padding-inline-start: 0;
  }

  .pignon-figure {
    max-height: 46vh;
  }

  .rubrique-form {
    max-width: none;
  }

  .voussure {
    min-height: 0;
  }

  .voussure-mark {
    font-size: 30vh;
    inset-inline-start: var(--v-pad-sm);
    opacity: 0.06;
  }

  .voussure-meat {
    padding-block: var(--g-7) var(--g-6);
    padding-inline-start: 0;
  }
}

@media (max-width: 620px) {
  .linteau-row {
    flex-wrap: wrap;
    gap: var(--g-3);
    min-height: 0;
    padding-block: var(--g-3);
  }

  .linteau-badge {
    height: 40px;
    width: 40px;
  }

  .linteau-logo img {
    height: 38px;
  }

  .linteau-deck {
    flex-basis: 100%;
    order: 4;
  }

  .linteau-deck .linteau-offer {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .etabli-table th,
  .etabli-table td {
    font-size: 14px;
    padding-inline-end: var(--g-3);
  }

  .etabli-table td:first-child {
    white-space: normal;
  }

  .linteau-badge {
    display: none;
  }

  .linteau-logo img {
    height: 32px;
  }

  .plaque-deck {
    flex-direction: column;
  }

  .voussure-mark {
    font-size: 24vh;
  }
}

/* --- Mouvement reduit ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-inview] {
    opacity: 1;
    transform: none;
  }
}

/* --- Marge autour du bouton d'offre insere dans le texte ----- */
.pignon-deck {
  display: flex;
  flex-wrap: wrap;
  gap: var(--g-4);
  margin-block: var(--g-5);
}

/* Offer CTA */
.joog-act{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;
  min-height:54px;padding:0 32px;border:2px solid #071E3B;border-radius:2px;
  background:#C026D3;color:#FFFFFF;text-decoration:none;
  font-size:15px;font-weight:600;letter-spacing:2.2px;
  box-shadow:0 5px 15px rgba(0,0,0,.22);transition:background .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease}
.joog-act:hover{background:#A21CAF;color:#FFFFFF;box-shadow:0 3px 10px rgba(0,0,0,.28);animation:none}
.joog-act:hover::after{animation:none}
.joog-act:active{background:#86198F;color:#FFFFFF}
.joog-act:focus-visible{outline:3px solid #071E3B;outline-offset:3px}
.joog-act{animation:stamp_joog 2.54s ease-in-out infinite}
@keyframes stamp_joog{0%{transform:translate(0,0)}8.661%{transform:translate(3px,3px)}25.197%,100%{transform:translate(0,0)}}
@media (prefers-reduced-motion:reduce){.joog-act,.joog-act::after{animation:none!important;transition:none!important}}
