/* ==========================================================================
   BDL Advisory — site vitrine
   Source unique : marque/plateforme-de-marque.md (§4 couleurs, §5 typographies).
   Thème clair unique, volontairement : tous les fonds sont peints explicitement.
   Aucune ressource extérieure : polices et images sont servies avec le site.
   Seule exception, le pixel Meta, chargé par consentement.js après accord.
   ========================================================================== */

/* ---------- Polices (auto-hébergées, sous-ensemble latin, SIL OFL) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/DMMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/DMMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Jetons ---------- */

:root {
  color-scheme: light;

  /* Couleurs — plateforme §4, colonne « Clair » */
  --papier: #F7F8FA;
  --papier-releve: #FFFFFF;
  --papier-regle: #ECF0F7;
  --reglure: #C8D2E6;
  --texte: #141B2D;
  --texte-doux: #525C72;
  --bleu-encre: #1D3160;
  --sur-bleu: #F7F8FA;
  --sur-bleu-doux: #B8C4E0;
  --reglure-sur-bleu: #5B6C95;
  --pointage: #B8321F;
  --pointage-pale: #F8E5E0;

  /* Familles — plateforme §5 */
  --f-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-texte: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Mise en page */
  --max: 1280px;
  --gouttiere: clamp(16px, 4vw, 48px);
  --colonne: 32px;
  --espace-section: clamp(72px, 8.5vw, 120px);
  --espace-tete: clamp(40px, 5vw, 64px);
  --mesure: 28em; /* ≈ 65 caractères en Source Serif 4 (mesuré) */
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--papier);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--papier);
  color: var(--texte);
  font-family: var(--f-texte);
  font-weight: 400;
  font-size: 17px;
  line-height: 27px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
ul,
ol,
dl,
dd,
figure,
blockquote,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

th {
  font-weight: inherit;
  text-align: left;
}

.insecable {
  white-space: nowrap;
}

sup {
  font-size: 0.68em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.52em;
}

a {
  color: var(--bleu-encre);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* Focus clavier : filet papier puis anneau bleu-encre */
:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--papier), 0 0 0 4px var(--bleu-encre);
}

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

/* Lien d'évitement */
.evitement {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background-color: var(--bleu-encre);
  color: var(--sur-bleu);
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  transform: translateY(-200%);
}

.evitement:focus,
.evitement:focus-visible {
  transform: none;
}

/* ---------- Échelle typographique (plateforme §5) ---------- */

.titre-une,
.titre-section,
.titre-bloc {
  font-family: var(--f-titre);
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
}

.titre-une {
  font-weight: 700;
  /* 40/42 sur mobile ; ramené à la largeur utile sous 400 px pour tenir sur deux lignes */
  font-size: min(40px, calc((100vw - 2 * var(--gouttiere)) / 9.3));
  line-height: 1.05;
  color: var(--bleu-encre);
}

.titre-une .ligne {
  display: block;
}

.titre-section {
  font-weight: 650;
  font-size: 30px;
  line-height: 34px;
  color: var(--texte);
}

.titre-bloc {
  font-weight: 650;
  font-size: 22px;
  line-height: 28px;
  color: var(--texte);
}

.chapeau {
  font-size: 21px;
  line-height: 32px;
  max-width: var(--mesure);
}

.texte {
  max-width: var(--mesure);
}

.texte-petit {
  font-size: 15px;
  line-height: 23px;
  max-width: var(--mesure);
}

.etiquette {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chiffre {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 720px) {
  .titre-une {
    font-size: 64px;
    line-height: 1;
  }

  .titre-section {
    font-size: 40px;
    line-height: 44px;
  }
}

/* ---------- Mise en page ---------- */

.conteneur {
  width: min(100% - 2 * var(--gouttiere), var(--max));
  margin-inline: auto;
}

.section {
  padding-bottom: var(--espace-section);
  background-color: var(--papier);
}

.section__cadre {
  border-top: 1px solid var(--reglure);
  padding-top: var(--espace-tete);
}

.section--sans-filet .section__cadre {
  border-top: 0;
  padding-top: var(--espace-section);
}

.section__titre {
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .section__grille {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--colonne);
    align-items: start;
  }

  .section__grille > .section__titre {
    grid-column: 1 / span 4;
    margin-bottom: 0;
  }

  .section__grille > .section__corps {
    grid-column: 5 / -1;
  }
}

/* ---------- Boutons et liens d'action ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background-color: var(--bleu-encre);
  color: var(--sur-bleu);
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0;
  text-decoration: none;
  border: 0;
  border-radius: 0;
}

.bouton:hover {
  background-color: var(--texte);
}

.bouton--petit {
  min-height: 40px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 18px;
}

.lien-action {
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  padding-block: 14px;
}

/* ---------- En-tête ---------- */

.entete {
  background-color: var(--papier);
  border-bottom: 1px solid var(--reglure);
}

.entete__barre {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "logo bouton"
    "nav nav";
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding-top: 14px;
}

.entete__logo {
  grid-area: logo;
  display: block;
  padding-block: 4px;
}

.entete__logo img {
  width: 124px;
  height: auto;
}

.entete__bouton {
  grid-area: bouton;
}

.entete__nav {
  grid-area: nav;
  margin-top: 14px;
  border-top: 1px solid var(--reglure);
}

.entete__nav ul {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.entete__nav a {
  display: block;
  padding-block: 12px;
  color: var(--bleu-encre);
  text-decoration: none;
}

.entete__nav a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

@media (min-width: 900px) {
  .entete__barre {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav bouton";
    column-gap: 40px;
    min-height: 88px;
    padding-top: 0;
  }

  .entete__logo img {
    width: 152px;
  }

  .entete__nav {
    justify-self: end;
    margin-top: 0;
    border-top: 0;
  }

  .entete__nav ul {
    gap: 32px;
  }
}

/* ---------- Héro ---------- */

.hero {
  background-color: var(--papier);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: var(--espace-section);
}

.hero__grille {
  display: grid;
  row-gap: 56px;
}

.hero__texte > .etiquette {
  color: var(--texte-doux);
  margin-bottom: 24px;
  max-width: 36ch;
}

.hero__texte > .titre-une {
  margin-bottom: 32px;
}

.hero__texte > .chapeau {
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
}

@media (min-width: 720px) {
  .hero__texte > .etiquette {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .hero__grille {
    grid-template-columns: minmax(0, 1fr) minmax(600px, 634px);
    column-gap: 56px;
    align-items: start;
  }

  .hero__texte {
    padding-top: 8px;
    container-type: inline-size;
  }

  /* Le titre suit la largeur réelle de sa colonne (barre de défilement comprise) :
     la ligne la plus longue mesure 9,04 fois le corps ; 64 px dès que la colonne le permet. */
  .hero .titre-une {
    font-size: clamp(42px, 10.85cqi, 64px);
  }

  .hero .titre-une .ligne {
    white-space: nowrap;
  }
}

/* ---------- Registre de référence ---------- */

.registre {
  container-type: inline-size;
  min-width: 0;
  max-width: 720px;
}

@media (min-width: 1200px) {
  .registre {
    max-width: none;
  }
}

.registre__feuille {
  background-color: var(--papier-releve);
  border: 1px solid var(--reglure);
  padding: 20px 20px 24px;
}

.registre__defile {
  overflow-x: auto;
}

/* display: table : le double trait prend toujours la largeur réelle du tableau */
.registre__contenu {
  display: table;
  width: 100%;
}

.registre table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--texte);
}

.registre caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 18px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: var(--texte);
}

.registre__compte {
  color: var(--bleu-encre);
}

.registre th,
.registre td {
  padding: 9px 12px 9px 0;
  white-space: nowrap;
  vertical-align: baseline;
  text-align: left;
}

.registre thead th {
  font-weight: 500;
  padding-top: 0;
  padding-bottom: 10px;
  color: var(--texte-doux);
  border-bottom: 1px solid var(--bleu-encre);
}

.registre tbody > tr > * {
  border-bottom: 1px solid var(--reglure);
}

.registre tbody > tr:last-child > * {
  border-bottom: 0;
}

/* Les deux écritures lettrées BDL : lignes en évidence */
.registre .ligne-bdl > * {
  background-color: var(--papier-regle);
}

/* Colonnes montants : filets verticaux du papier comptable */
.registre .c-num {
  text-align: right;
  padding-left: 12px;
  padding-right: 12px;
  border-left: 1px solid var(--reglure);
}

.registre .c-let {
  padding-left: 10px;
  padding-right: 0;
  border-left: 1px solid var(--reglure);
}

.registre .c-lib {
  font-family: var(--f-texte);
  font-weight: 400;
  font-size: 15px;
  padding-right: 16px;
}

.registre thead .c-lib {
  font-family: var(--f-mono);
  font-size: 12px;
}

.registre__date-mobile {
  display: none;
}

.registre tfoot .totaux > * {
  border-top: 1px solid var(--texte);
  font-weight: 500;
}

.registre tfoot .c-lib {
  font-weight: 600;
}

.registre tfoot .solde .c-num {
  font-weight: 500;
}

.montant-pointe {
  position: relative;
  display: inline-block;
}

.coche {
  position: absolute;
  top: 50%;
  left: calc(100% + 18px);
  width: 16px;
  height: 16px;
  margin-top: -9px;
  overflow: visible;
}

.coche path {
  fill: none;
  stroke: var(--pointage);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Le double trait sous le solde : le registre est arrêté */
.registre__trait {
  height: 6px;
  margin-top: 1px;
  border-top: 2px solid var(--bleu-encre);
  border-bottom: 2px solid var(--bleu-encre);
}

.registre figcaption {
  margin-top: 16px;
  font-style: italic;
  font-size: 15px;
  line-height: 23px;
  color: var(--texte-doux);
  max-width: var(--mesure);
}

/* Codes de lettrage */
.code {
  display: inline-block;
  margin-left: -5px;
  padding: 0 5px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
}

.code--actif {
  color: var(--pointage);
  background-image: linear-gradient(var(--pointage-pale), var(--pointage-pale));
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.code--actif > span {
  display: inline-block;
}

/* Registre étroit : la date passe au-dessus du libellé */
@container (max-width: 629px) {
  .registre__feuille {
    padding: 16px 16px 20px;
  }

  .registre table {
    font-size: 12px;
    line-height: 18px;
  }

  .registre caption {
    font-size: 13px;
    line-height: 20px;
    padding-bottom: 14px;
  }

  .registre th,
  .registre td {
    padding: 8px 10px 8px 0;
  }

  .registre thead th {
    font-size: 11px;
    letter-spacing: 0.06em;
    padding-bottom: 8px;
  }

  .registre .c-date {
    display: none;
  }

  .registre .c-lib {
    white-space: normal;
    font-size: 14px;
    line-height: 19px;
    padding-right: 10px;
  }

  .registre thead .c-lib {
    font-size: 11px;
  }

  .registre__date-mobile {
    display: block;
    margin-bottom: 2px;
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 16px;
    color: var(--texte-doux);
  }

  .registre .c-num {
    padding-left: 10px;
    padding-right: 10px;
  }

  .registre .c-let {
    padding-left: 10px;
  }

  .registre .code {
    font-size: 12px;
    line-height: 18px;
    margin-left: -4px;
    padding: 0 4px;
  }

  .coche {
    left: calc(100% + 12px);
    width: 14px;
    height: 14px;
    margin-top: -8px;
  }
}

@media (max-width: 479px) {
  .registre .c-jnl {
    display: none;
  }

  /* Le registre prend toute la largeur de l'écran */
  .registre {
    margin-inline: calc(-1 * var(--gouttiere));
  }

  .registre__feuille {
    border-inline: 0;
  }

  .registre figcaption {
    padding-inline: var(--gouttiere);
  }
}

/* ---------- Animation d'ouverture (un seul moment, ≤ 1,8 s) ----------
   L'état final est l'état par défaut : sans la classe .anime (posée par
   un script en tête, seulement si le mouvement est accepté), rien ne bouge. */

@keyframes bdl-fond {
  from { background-size: 0% 100%; }
  to { background-size: 100% 100%; }
}

@keyframes bdl-lettre {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes bdl-ligne {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bdl-trait {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes bdl-coche {
  from { stroke-dashoffset: 1; opacity: 1; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

.anime .code--actif {
  animation: bdl-fond 300ms linear var(--t, 0ms) both;
}

.anime .code--actif > span {
  animation: bdl-lettre 90ms linear both;
}

.anime .code--actif > span:nth-child(1) { animation-delay: var(--t, 0ms); }
.anime .code--actif > span:nth-child(2) { animation-delay: calc(var(--t, 0ms) + 100ms); }
.anime .code--actif > span:nth-child(3) { animation-delay: calc(var(--t, 0ms) + 200ms); }

.anime .code--1 { --t: 150ms; }
.anime .code--2 { --t: 600ms; }

.anime .registre .solde {
  animation: bdl-ligne 220ms ease-out 1050ms both;
}

.anime .registre__trait {
  transform-origin: left center;
  animation: bdl-trait 380ms cubic-bezier(0.2, 0.7, 0.2, 1) 1080ms both;
}

.anime .coche path {
  stroke-dasharray: 1;
  animation: bdl-coche 300ms cubic-bezier(0.4, 0, 0.2, 1) 1450ms both;
}

/* En attente tant que le registre n'est pas à moitié visible (classe .en-vue,
   posée par IntersectionObserver) : l'animation part quand on la voit.
   Placé après les raccourcis « animation », qui remettent l'état à « running ». */
.anime .registre :is(.code--actif, .code--actif > span, .solde, .coche path, .registre__trait) {
  animation-play-state: paused;
}

.anime .registre.en-vue :is(.code--actif, .code--actif > span, .solde, .coche path, .registre__trait) {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .anime *,
  .anime *::before,
  .anime *::after {
    animation: none !important;
  }
}

/* ---------- Missions ---------- */

.missions {
  width: 100%;
  border-collapse: collapse;
}

.missions thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 0 32px 12px 0;
  color: var(--texte-doux);
  border-bottom: 1px solid var(--bleu-encre);
}

.missions tbody > tr > * {
  text-align: left;
  vertical-align: top;
  padding: 28px 32px 30px 0;
  border-bottom: 1px solid var(--reglure);
}

.missions tbody th {
  font-weight: 650;
}

.missions .m-quand {
  font-style: italic;
}

.missions :is(th, td):last-child {
  padding-right: 0;
}

.missions col.m-col-mission { width: 22%; }
.missions col.m-col-quand { width: 20%; }
.missions col.m-col-faisons { width: 38%; }
.missions col.m-col-tarif { width: 20%; }

.note-echeance {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 24px;
  color: var(--texte-doux);
}

.note-echeance .etiquette {
  color: var(--texte);
}

.note-echeance .texte-petit {
  max-width: var(--mesure);
}

/* Sur mobile : chaque mission devient un bloc empilé */
@media (max-width: 759px) {
  .missions,
  .missions tbody,
  .missions tr,
  .missions th,
  .missions td {
    display: block;
  }

  .missions colgroup {
    display: none;
  }

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

  .missions tbody > tr {
    border-top: 1px solid var(--bleu-encre);
    padding: 20px 0 28px;
  }

  .missions tbody > tr > * {
    padding: 0;
    border-bottom: 0;
  }

  .missions tbody th {
    margin-bottom: 16px;
  }

  .missions td + td {
    margin-top: 14px;
  }

  .missions td {
    max-width: var(--mesure);
  }

  .missions td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 4px;
    font-family: var(--f-mono);
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texte-doux);
  }

  .note-echeance {
    border-top: 1px solid var(--reglure);
    padding-top: 20px;
    margin-top: 0;
  }
}

/* ---------- Ce que nous ne faisons jamais ---------- */

.engagements {
  display: grid;
  gap: 0 var(--colonne);
}

.engagements > li {
  border-top: 1px solid var(--reglure);
  padding: 20px 0 28px;
}

.engagements .titre-bloc {
  margin-bottom: 8px;
}

@media (min-width: 720px) {
  .engagements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .engagements > li:nth-child(-n + 2) {
    border-top-color: var(--bleu-encre);
  }
}

/* ---------- Méthode ---------- */

.etapes {
  display: grid;
  gap: 40px var(--colonne);
}

.etape__num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0.04em;
  color: var(--bleu-encre);
}

.etape__num::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--reglure);
}

.etapes .titre-bloc {
  margin-bottom: 12px;
}

.etapes p {
  max-width: 26em;
}

@media (min-width: 720px) {
  .etapes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .etapes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Vos données (bandeau bleu-encre) ---------- */

.bande {
  background-color: var(--bleu-encre);
  color: var(--sur-bleu);
  padding-block: var(--espace-section);
}

.bande :focus-visible {
  box-shadow: 0 0 0 2px var(--bleu-encre), 0 0 0 4px var(--sur-bleu);
}

.bande .titre-section {
  color: var(--sur-bleu);
  margin-bottom: 28px;
}

.bande__intro {
  color: var(--sur-bleu);
}

.pieces {
  margin-top: 32px;
  border-bottom: 1px solid var(--reglure-sur-bleu);
}

.pieces > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 16px 0 17px;
  border-top: 1px solid var(--reglure-sur-bleu);
}

.pieces > li > span:last-child {
  max-width: var(--mesure);
}

.pieces__rang {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 14px;
  line-height: 27px;
  color: var(--sur-bleu-doux);
}

.bande__acces {
  margin-top: 32px;
  color: var(--sur-bleu);
}

@media (min-width: 1024px) {
  .bande__grille {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--colonne);
    align-items: start;
  }

  .bande__tete {
    grid-column: 1 / span 5;
  }

  .bande__corps {
    grid-column: 7 / -1;
  }

  .pieces {
    margin-top: 6px;
  }
}

/* ---------- Pourquoi Casablanca ---------- */

.raisons > li {
  border-top: 1px solid var(--reglure);
  padding: 20px 0 28px;
}

.raisons .titre-bloc {
  margin-bottom: 8px;
}

.fondateur {
  margin-top: 48px;
  background-color: var(--papier-regle);
  padding: 32px 24px 36px;
}

.fondateur > .etiquette {
  color: var(--texte-doux);
  margin-bottom: 20px;
}

.fondateur blockquote p {
  font-size: 19px;
  line-height: 30px;
  max-width: var(--mesure);
}

.fondateur figcaption {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--reglure);
  font-family: var(--f-titre);
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: var(--texte);
}

@media (min-width: 1024px) {
  .casablanca__grille {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--colonne);
    align-items: start;
  }

  .casablanca__raisons {
    grid-column: 1 / span 6;
  }

  .fondateur {
    grid-column: 8 / -1;
    margin-top: 84px;
    padding: 40px 40px 44px;
  }

  .fondateur blockquote p {
    font-size: 21px;
    line-height: 32px;
  }
}

/* ---------- Contact ---------- */

.contact__intro {
  margin-top: 20px;
}

.coordonnees > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 4px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--reglure);
}

.coordonnees > div:last-child {
  border-bottom: 1px solid var(--reglure);
}

.coordonnees dt {
  color: var(--texte-doux);
  padding-top: 6px;
}

.coordonnees__email a {
  font-family: var(--f-titre);
  font-variation-settings: "wdth" 112;
  font-weight: 650;
  font-size: clamp(18px, 5.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.coordonnees__email a:hover {
  text-decoration-thickness: 3px;
}

.a-completer {
  font-family: var(--f-mono);
  font-size: 15px;
  color: var(--texte-doux);
}

@media (min-width: 600px) {
  /* L'email, en grand, garde toute la largeur : il tient sur une ligne */
  .coordonnees > div:not(.coordonnees__email) {
    grid-template-columns: 136px minmax(0, 1fr);
    column-gap: 24px;
    align-items: baseline;
  }

  .coordonnees dt {
    padding-top: 0;
  }
}

@media (min-width: 1024px) {
  .contact__grille > .section__titre {
    grid-column: 1 / span 5;
  }

  .contact__grille > .section__corps {
    grid-column: 7 / -1;
  }
}

/* ---------- Pied de page ---------- */

.pied {
  background-color: var(--papier);
  padding-bottom: 40px;
}

/* Le total arrêté de la page */
.pied__trait {
  height: 9px;
  border-top: 3px solid var(--bleu-encre);
  border-bottom: 3px solid var(--bleu-encre);
}

.pied__grille {
  display: grid;
  gap: 28px var(--colonne);
  padding-top: 48px;
}

.pied__logo img {
  width: 140px;
  height: auto;
}

.pied__mention {
  font-size: 15px;
  line-height: 23px;
  color: var(--texte-doux);
  max-width: var(--mesure);
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--reglure);
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 20px;
  color: var(--texte-doux);
}

.pied__bas a {
  color: var(--bleu-encre);
}

@media (min-width: 1024px) {
  .pied__grille {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding-top: 56px;
  }

  .pied__logo {
    grid-column: 1 / span 4;
  }

  .pied__mention {
    grid-column: 5 / span 7;
  }

  .pied__bas {
    grid-column: 1 / -1;
    margin-top: 24px;
  }
}

/* ---------- Mentions légales ---------- */

.page-titre {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-titre .titre-section {
  color: var(--bleu-encre);
}

.page-titre .texte-petit {
  margin-top: 16px;
  color: var(--texte-doux);
}

.mentions {
  padding-bottom: var(--espace-section);
}

.mention-bloc {
  border-top: 1px solid var(--reglure);
  padding: 28px 0 36px;
}

.mention-bloc .titre-bloc {
  margin-bottom: 14px;
}

.mention-bloc p + p,
.mention-bloc p + ul,
.mention-bloc ul + p {
  margin-top: 12px;
}

.mention-bloc li + li {
  margin-top: 4px;
}

.mention-bloc p + .registre-legal {
  margin-top: 20px;
}

.mention-bloc .registre-legal + p {
  margin-top: 20px;
}

/* Données personnelles : une ligne par rubrique, comme un registre */
.registre-legal {
  border-bottom: 1px solid var(--reglure);
}

.registre-legal > div {
  padding: 12px 0 14px;
  border-top: 1px solid var(--reglure);
}

.registre-legal dt {
  color: var(--texte-doux);
  margin-bottom: 4px;
}

.mention-bloc .a-completer {
  font-size: 14px;
}

.mention-bloc__corps {
  max-width: var(--mesure);
}

@media (min-width: 1024px) {
  .mention-bloc {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--colonne);
  }

  .mention-bloc .titre-bloc {
    grid-column: 1 / span 4;
    margin-bottom: 0;
  }

  .mention-bloc__corps {
    grid-column: 5 / span 7;
  }
}

.mentions code {
  font-family: var(--f-mono);
  font-size: 0.875em;
}

/* ---------- Consentement (pixel Meta) ---------- */

/* Lien « Gérer les cookies » : un bouton qui a l'air d'un lien du pied */
.pied__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.pied__cookies {
  padding: 0;
  background: none;
  border: 0;
  color: var(--bleu-encre);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

/* Bandeau : Refuser et Accepter ont exactement le même poids (CNIL) */
.consentement {
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  bottom: 0;
  padding-block: 16px;
  background-color: var(--papier-releve);
  border-top: 3px solid var(--bleu-encre);
  box-shadow: 0 -8px 24px rgba(20, 27, 45, 0.08);
}

.consentement__grille {
  display: grid;
  gap: 12px 32px;
  align-items: center;
}

.consentement__texte {
  font-size: 15px;
  line-height: 23px;
  color: var(--texte);
  max-width: 44em;
}

.consentement__texte a {
  color: var(--bleu-encre);
}

.consentement__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.consentement__actions .bouton {
  cursor: pointer;
}

@media (min-width: 720px) {
  .consentement__grille {
    grid-template-columns: 1fr auto;
  }

  .consentement__actions {
    grid-template-columns: repeat(2, 120px);
  }
}
