/* ==========================================================================
   Fumisto, registre des conduits et campagne d automne
   Feuille de style unique. Vocabulaire de classes issu du metier:
   souche (en tete), tirage (hero), pavage (motif), ruban (bandeau defilant),
   conduit, fenetre, reserve, feuille (feuille de route), certificat.
   ========================================================================== */

/* 1. Variables de base ---------------------------------------------------- */

:root {
  --basalte: #14110F;
  --basalte-clair: #1C1815;
  --surface: #241F1A;
  --texte: #F5EFE7;
  --texte-doux: #A79A8D;
  --braise: #CE3323;
  --braise-fonce: #A5271A;
  --sur-braise: #FFFFFF;
  --ambre: #E8A33D;
  --bordure: #3B322A;

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --courant: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --compte: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --encoche: 18px;
  --mesure: 68ch;
  --transition: 160ms ease;

  --pavage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='168' height='97' viewBox='0 0 168 97'%3E%3Cg fill='none' stroke='%233B322A' stroke-width='1'%3E%3Cpath d='M140 48.5L112 97L56 97L28 48.5L56 0L112 0Z'/%3E%3Cpath d='M56 0L28 48.5L-28 48.5L-56 0L-28 -48.5L28 -48.5Z'/%3E%3Cpath d='M224 0L196 48.5L140 48.5L112 0L140 -48.5L196 -48.5Z'/%3E%3Cpath d='M56 97L28 145.5L-28 145.5L-56 97L-28 48.5L28 48.5Z'/%3E%3Cpath d='M224 97L196 145.5L140 145.5L112 97L140 48.5L196 48.5Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 2. Remise a plat -------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--basalte);
  color: var(--texte);
  font-family: var(--courant);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ambre); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--transition); }
a:hover { color: var(--braise); }

h1, h2, h3, h4 {
  font-family: var(--titre);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: 3.4rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; max-width: var(--mesure); }
strong { font-weight: 600; }

ul, ol { margin: 0 0 1.1em; padding: 0 0 0 1.2rem; }

:focus-visible {
  outline: 2px solid var(--ambre);
  outline-offset: 3px;
}

::selection { background: var(--braise); color: var(--sur-braise); }

/* 3. Formes et briques recurrentes ---------------------------------------- */

/* L encoche hexagonale: deux facettes de 30 degres au coin superieur droit. */
.encoche {
  clip-path: polygon(0 0, calc(100% - 22px) 0, calc(100% - 11px) 6px, 100% 18px, 100% 100%, 0 100%);
}

.pavage {
  position: relative;
  isolation: isolate;
}

.pavage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pavage);
  background-position: center top;
  opacity: 0.22;
  z-index: -1;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 90%);
  pointer-events: none;
}

.cadre {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
}

.surtitre {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ambre);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.surtitre::before {
  content: "";
  width: 6px;
  height: 7px;
  background: var(--braise);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}

.etiquette {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--bordure);
  color: var(--texte-doux);
  display: inline-block;
}

.etiquette-echu { color: var(--braise); border-color: var(--braise); }
.etiquette-ouverte { color: var(--ambre); border-color: var(--ambre); }
.etiquette-ajour { color: var(--texte-doux); }

.filet-bas { position: relative; }
.filet-bas::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ambre);
}
.filet-bas-braise::after { background: var(--braise); }

.mono { font-family: var(--compte); }

.puce-hexa {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
}

.puce-hexa li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55rem;
  max-width: var(--mesure);
}

.puce-hexa li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 9px;
  background: var(--ambre);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* Boutons ----------------------------------------------------------------- */

.bouton-braise,
.bouton-filet {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  font-family: var(--courant);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 14px 26px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  clip-path: polygon(0 0, calc(100% - 22px) 0, calc(100% - 11px) 6px, 100% 18px, 100% 100%, 0 100%);
}

.bouton-braise {
  background: var(--braise);
  color: var(--sur-braise);
}
.bouton-braise:hover { background: var(--braise-fonce); color: var(--sur-braise); }
.bouton-braise:active { transform: translateY(1px); }

.bouton-filet {
  background: transparent;
  color: var(--texte);
  box-shadow: inset 0 0 0 1px var(--bordure);
}
.bouton-filet:hover {
  box-shadow: inset 0 0 0 1px var(--ambre);
  background: rgba(36, 31, 26, 0.4);
  color: var(--texte);
}
.bouton-filet:active { transform: translateY(1px); }

.bouton-prix {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* 4. En tete, souche ------------------------------------------------------ */

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--braise);
  color: var(--sur-braise);
  padding: 0.7rem 1.2rem;
  z-index: 200;
}
.evitement:focus { left: 1rem; top: 1rem; position: fixed; }

.souche {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.souche.souche-posee {
  height: 64px;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 var(--ambre);
}

.souche-interieur {
  width: min(1240px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.logotype {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--texte);
  font-family: var(--titre);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  flex: none;
}
.logotype:hover { color: var(--texte); }
.logotype svg { flex: none; }

.nav-souche { margin-left: auto; }

.nav-liste {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-liste a {
  color: var(--texte);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding-left: 0;
  transition: color var(--transition), padding-left var(--transition);
}

.nav-liste a:hover,
.nav-liste a.nav-active { color: var(--ambre); padding-left: 12px; }

.nav-liste a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 7px;
  background: var(--ambre);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: width var(--transition);
}

.nav-liste a:hover::before,
.nav-liste a.nav-active::before { width: 6px; }

.souche .bouton-braise { padding: 10px 20px; font-size: 0.95rem; flex: none; }

.trois-filets {
  display: none;
  width: 46px;
  height: 40px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--bordure);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.trois-filets span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--texte);
}

.menu-plein {
  position: fixed;
  inset: 0;
  background: var(--basalte);
  z-index: 150;
  display: none;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
}
.menu-plein[data-ouvert="oui"] { display: flex; }

.menu-plein ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.menu-plein a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--texte);
  text-decoration: none;
}
.menu-plein a:hover { color: var(--ambre); }

.fermer-menu {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--bordure);
  color: var(--texte);
  font-family: var(--compte);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

/* 5. Hero, tirage --------------------------------------------------------- */

.tirage {
  padding: 168px 0 72px;
  border-bottom: 1px solid var(--bordure);
}

.tirage-grille {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr;
  gap: 2.4rem;
  align-items: start;
}

.tirage h1 { margin-bottom: 1rem; }
.tirage-promesse { font-size: 1.1875rem; color: var(--texte-doux); max-width: 34em; }

.tirage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.8rem 0 1.6rem;
}

.tirage-reassurance {
  font-family: var(--compte);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--texte-doux);
  border-top: 1px solid var(--bordure);
  padding-top: 1rem;
  max-width: 36em;
}
.tirage-reassurance b { color: var(--ambre); font-weight: 700; }

/* Carte des conduits dus */
.carte-conduits {
  background: var(--surface);
  padding: 1.4rem 1.4rem 1.6rem;
  box-shadow: inset 0 0 0 1px var(--bordure);
}

.carte-entete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.carte-entete h2 {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0;
}
.carte-semaine { font-family: var(--compte); font-size: 0.75rem; color: var(--ambre); }

.nid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 1.1rem;
}
.nid span {
  aspect-ratio: 1 / 1.12;
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--bordure);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.nid span:nth-child(even) { transform: translateY(6px); }
.nid .hexa-ouverte { background: var(--ambre); box-shadow: none; }
.nid .hexa-echue { background: var(--braise); box-shadow: none; }

.legende-nid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-family: var(--compte);
  font-size: 0.75rem;
  color: var(--texte-doux);
}
.legende-nid li { display: flex; align-items: center; gap: 0.55rem; }
.legende-nid i {
  width: 10px;
  height: 11px;
  flex: none;
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--bordure);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.legende-nid .pastille-ouverte { background: var(--ambre); box-shadow: none; }
.legende-nid .pastille-echue { background: var(--braise); box-shadow: none; }

/* Pile de compteurs */
.pile-compteurs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compteur {
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1rem 1.1rem 1.2rem;
  position: relative;
}
.compteur b {
  display: block;
  font-family: var(--compte);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--texte);
  margin-bottom: 0.35rem;
}
.compteur span {
  font-size: 0.8125rem;
  color: var(--texte-doux);
  display: block;
}
.compteur-ambre b { color: var(--ambre); }
.compteur-braise b { color: var(--braise); }

/* 6. Ruban defilant ------------------------------------------------------- */

.ruban {
  height: 52px;
  background: var(--basalte-clair);
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ruban-piste {
  display: flex;
  width: max-content;
  animation: defile 38s linear infinite;
}
.ruban:hover .ruban-piste { animation-duration: 60s; }

.ruban-piste ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0 1rem;
}

.ruban-piste li {
  font-family: var(--compte);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ambre);
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}
.ruban-piste li::after {
  content: "";
  width: 8px;
  height: 9px;
  background: var(--braise);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}

@keyframes defile {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 7. Rythme des sections -------------------------------------------------- */

.registre { padding: 84px 0; }
.registre-alt { background: var(--basalte-clair); }

.registre-entete { margin-bottom: 2.6rem; max-width: 46em; }
.registre-entete p { color: var(--texte-doux); }

/* Probleme, 5fr de texte et 5fr de cartes de cout */
.cout-grille {
  display: grid;
  grid-template-columns: 5fr 5fr;
  gap: 3rem;
  align-items: start;
}

.pile-couts { display: flex; flex-direction: column; gap: 1.1rem; }

.carte-cout {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.3rem 1.4rem 1.5rem;
  position: relative;
}
.carte-cout h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.carte-cout p { margin: 0; font-size: 0.9375rem; color: var(--texte-doux); }
.carte-cout .montant {
  font-family: var(--compte);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--braise);
  display: block;
  margin-bottom: 0.3rem;
}

.photo-hexa {
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 28px 100%, 0 50%);
  box-shadow: inset 0 0 0 1px var(--bordure);
  filter: saturate(0.55) sepia(0.14) contrast(1.05);
  width: 100%;
}

.photo-legende {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--texte-doux);
  margin-top: 0.7rem;
}

figure { margin: 0; }

/* Solution, quatre etapes de 3fr */
.temps-grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.temps {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.5rem 1.3rem 1.7rem;
  position: relative;
}
.temps .numero {
  width: 32px;
  height: 35px;
  background: var(--braise);
  color: var(--sur-braise);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--compte);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.temps h3 { font-size: 1.2rem; }
.temps p { font-size: 0.9375rem; color: var(--texte-doux); margin: 0; }

/* Fonctionnalites, trois colonnes de deux rangees */
.fonctions-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.fonction {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.5rem 1.4rem 1.7rem;
  position: relative;
}
.fonction svg { margin-bottom: 0.9rem; }
.fonction h3 { font-size: 1.2rem; }
.fonction p { font-size: 0.9375rem; color: var(--texte-doux); margin: 0; }

/* Avantages, 2fr de chiffre, 5fr de texte, 3fr d appui */
.gain {
  display: grid;
  grid-template-columns: 2fr 5fr 3fr;
  gap: 2rem;
  align-items: start;
  padding: 1.8rem 0;
  border-top: 1px solid var(--bordure);
}
.gain:last-of-type { border-bottom: 1px solid var(--bordure); }

.gain-chiffre {
  font-family: var(--compte);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ambre);
}
.gain-chiffre small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-top: 0.5rem;
  font-weight: 500;
}
.gain h3 { margin-bottom: 0.4rem; }
.gain p { margin: 0; }
.gain-appui {
  font-size: 0.875rem;
  color: var(--texte-doux);
  border-left: 1px solid var(--bordure);
  padding-left: 1.2rem;
}

/* Preuve sociale */
.bandeau-chiffres {
  border-top: 1px solid var(--bordure);
  border-bottom: 1px solid var(--bordure);
  padding: 2.4rem 0;
  margin-bottom: 3rem;
}
.bandeau-grille {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.bandeau-grille div b {
  display: block;
  font-family: var(--compte);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--texte);
  margin-bottom: 0.5rem;
}
.bandeau-grille div:nth-child(2) b { color: var(--ambre); }
.bandeau-grille div:nth-child(3) b { color: var(--braise); }
.bandeau-grille div span { font-size: 0.875rem; color: var(--texte-doux); }

.temoins-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.temoin {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.5rem 1.4rem 1.7rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.temoin blockquote { margin: 0 0 1.2rem; }
.temoin blockquote p { font-size: 1rem; margin-bottom: 0.8rem; }
.temoin figcaption {
  margin-top: auto;
  border-top: 1px solid var(--bordure);
  padding-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--texte-doux);
}
.temoin figcaption b { display: block; color: var(--texte); font-size: 0.9375rem; }
.temoin figcaption .lieu { font-family: var(--compte); color: var(--ambre); }

/* Tarifs */
.formules-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.formule {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.7rem 1.5rem 1.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.formule-avant {
  margin: -24px 0;
  padding-block: calc(1.7rem + 24px) calc(1.9rem + 24px);
  box-shadow: inset 0 0 0 1px var(--ambre);
  background: var(--basalte-clair);
}
.formule h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.formule .cible { font-size: 0.875rem; color: var(--texte-doux); min-height: 3.4em; }
.formule .prix {
  font-family: var(--compte);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--texte);
  display: block;
  margin: 0.6rem 0 0.2rem;
}
.formule-avant .prix { color: var(--ambre); }
.formule .unite {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
  display: block;
  margin-bottom: 1.2rem;
}
.formule ul { margin-bottom: 1.6rem; }
.formule ul li { font-size: 0.9375rem; }
.formule .bouton-braise,
.formule .bouton-filet { margin-top: auto; align-self: stretch; }

.ruban-formule {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--braise);
  color: var(--sur-braise);
  font-family: var(--compte);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}

.note-tarifs {
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--texte-doux);
  border-left: 2px solid var(--ambre);
  padding-left: 1.2rem;
  max-width: var(--mesure);
}

/* FAQ, colonne de 8fr decalee a droite */
.faq-grille {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
}
.faq-intro { grid-column: 1 / span 4; }
.faq-liste { grid-column: 5 / span 8; }

.question {
  border-top: 1px solid var(--bordure);
}
.question:last-child { border-bottom: 1px solid var(--bordure); }

.question button {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--texte);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: left;
  padding: 1.2rem 3rem 1.2rem 0;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.question button:hover { color: var(--ambre); }
.question button::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 1.55rem;
  width: 11px;
  height: 12px;
  background: var(--bordure);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background var(--transition);
}
.question button[aria-expanded="true"]::after { background: var(--braise); }

.reponse { padding: 0 3rem 1.4rem 0; }
.reponse[hidden] { display: none; }
.reponse p { color: var(--texte-doux); margin-bottom: 0.8rem; }
.reponse p:last-child { margin-bottom: 0; }
.reponse code {
  font-family: var(--compte);
  font-size: 0.8125rem;
  color: var(--ambre);
  background: var(--surface);
  padding: 0.15rem 0.4rem;
}

/* Contact, 5fr d accroche et 7fr de formulaire */
.contact-grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3rem;
  align-items: start;
}

.contact-appui {
  font-size: 0.9375rem;
  color: var(--texte-doux);
}
.contact-appui dl { margin: 1.6rem 0 0; }
.contact-appui dt {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ambre);
  margin-top: 1rem;
}
.contact-appui dd { margin: 0.2rem 0 0; }

.formulaire {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.8rem 1.7rem 2rem;
  position: relative;
}

.champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.2rem;
}
.champ-large { grid-column: 1 / -1; }

.formulaire label {
  display: block;
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-bottom: 0.4rem;
}

.formulaire input[type="text"],
.formulaire input[type="email"],
.formulaire select,
.formulaire textarea {
  width: 100%;
  background: var(--basalte);
  color: var(--texte);
  border: 1px solid var(--bordure);
  font-family: var(--courant);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  transition: border-color var(--transition);
}
.formulaire textarea { resize: vertical; }
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus { border-color: var(--ambre); }

.consentement {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.consentement label {
  font-family: var(--courant);
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--texte-doux);
  margin: 0;
}
.consentement input { margin-top: 0.25rem; accent-color: var(--braise); flex: none; }

.formulaire .bouton-braise { margin-top: 1.4rem; }

.apres-formulaire {
  margin: 1.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--texte-doux);
}

/* 8. Pied de page --------------------------------------------------------- */

.pied {
  border-top: 1px solid var(--bordure);
  padding: 64px 0 0;
  background: var(--basalte);
}

.pied-grille {
  display: grid;
  grid-template-columns: 3fr 2fr 2fr 3fr;
  gap: 2.4rem;
  padding-bottom: 3rem;
}

.pied h2 {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambre);
  margin-bottom: 1rem;
}
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: 0.5rem; }
.pied a { color: var(--texte); text-decoration: none; font-size: 0.9375rem; }
.pied a:hover { color: var(--ambre); text-decoration: underline; }
.pied p { font-size: 0.9375rem; color: var(--texte-doux); }

.pied-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
}
.pied-social a {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-doux);
}

.pied-barre {
  border-top: 1px solid var(--bordure);
  padding: 1.4rem 0;
  font-size: 0.8125rem;
  color: var(--texte-doux);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}
.pied-barre p { margin: 0; font-size: 0.8125rem; max-width: none; }

/* 9. Pages interieures ---------------------------------------------------- */

.page-texte { padding: 148px 0 72px; }
.page-texte h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.page-texte h2 { font-size: 1.7rem; margin-top: 2.6rem; }
.page-texte h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.page-texte .chapeau {
  font-size: 1.1875rem;
  color: var(--texte-doux);
  max-width: 40em;
  border-left: 2px solid var(--braise);
  padding-left: 1.2rem;
}

.fil { font-family: var(--compte); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 1.6rem; }
.fil a { color: var(--texte-doux); text-decoration: none; }
.fil a:hover { color: var(--ambre); }

.bloc-legal {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
}
.bloc-legal p:last-child { margin-bottom: 0; }
.bloc-legal dl { margin: 0; }
.bloc-legal dt { font-family: var(--compte); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ambre); margin-top: 0.9rem; }
.bloc-legal dt:first-child { margin-top: 0; }
.bloc-legal dd { margin: 0.2rem 0 0; }

.tableau-parc { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: 0.9375rem; }
.tableau-parc th, .tableau-parc td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--bordure); }
.tableau-parc th { font-family: var(--compte); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ambre); font-weight: 500; }
.tableau-parc td.mono { font-family: var(--compte); }
.enveloppe-tableau { overflow-x: auto; }

.auteur-tete {
  display: grid;
  grid-template-columns: 5fr 3fr 2fr;
  gap: 2.4rem;
  align-items: start;
}
.auteur-portrait img {
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 28px 100%, 0 50%);
  box-shadow: inset 0 0 0 1px var(--bordure);
  filter: saturate(0.6) sepia(0.12);
}
.auteur-fiche {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  padding: 1.2rem 1.3rem 1.4rem;
  font-size: 0.875rem;
}
.auteur-fiche ul { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.auteur-fiche li { margin-bottom: 0.5rem; }

.plan-liste { list-style: none; padding: 0; margin: 0; }
.plan-liste li {
  border-top: 1px solid var(--bordure);
  padding: 1.1rem 0;
}
.plan-liste li:last-child { border-bottom: 1px solid var(--bordure); }
.plan-liste a { font-family: var(--titre); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.plan-liste p { margin: 0.3rem 0 0; color: var(--texte-doux); font-size: 0.9375rem; }

.page-etroite { max-width: 780px; }

.centre-message { text-align: center; padding: 168px 0 96px; }
.centre-message h1 { margin-bottom: 1rem; }
.centre-message p { margin-left: auto; margin-right: auto; }
.centre-message .tirage-actions { justify-content: center; }

/* 10. Reveal au defilement ------------------------------------------------ */

.parait {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.parait.parait-vu { opacity: 1; transform: none; }

/* 11. Adaptations --------------------------------------------------------- */

@media (max-width: 1080px) {
  h1 { font-size: 2.8rem; }
  .tirage-grille { grid-template-columns: 5fr 4fr; }
  .pile-compteurs { grid-column: 1 / -1; flex-direction: row; }
  .pile-compteurs .compteur { flex: 1; }
  .temps-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fonctions-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bandeau-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auteur-tete { grid-template-columns: 3fr 2fr; }
  .auteur-fiche { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-souche, .souche .bouton-braise { display: none; }
  .trois-filets { display: flex; margin-left: auto; }
  .tirage { padding-top: 132px; }
  .tirage-grille { grid-template-columns: 1fr; }
  .tirage-texte { order: 1; }
  .carte-conduits { order: 2; }
  .pile-compteurs { order: 3; flex-direction: column; }
  .cout-grille { grid-template-columns: 1fr; }
  .contact-grille { grid-template-columns: 1fr; }
  .faq-intro, .faq-liste { grid-column: 1 / -1; }
  .formules-grille { grid-template-columns: 1fr; }
  .formule-avant { margin: 0; padding-block: 1.7rem 1.9rem; }
  .temoins-grille { grid-template-columns: 1fr; }
  .gain { grid-template-columns: 1fr; gap: 1rem; }
  .gain-appui { border-left: 0; border-top: 1px solid var(--bordure); padding-left: 0; padding-top: 1rem; }
  .auteur-tete { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.7rem; }
  .cadre, .souche-interieur { width: min(1240px, 100% - 2rem); }
  .registre { padding: 60px 0; }
  .champs { grid-template-columns: 1fr; }
  .temps-grille, .fonctions-grille, .bandeau-grille { grid-template-columns: 1fr; }
  .nid { grid-template-columns: repeat(6, 1fr); }
  .page-texte { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ruban-piste { animation: none; transform: none; }
  .ruban { height: auto; min-height: 52px; }
  .ruban-piste { flex-wrap: wrap; width: 100%; }
  .ruban-piste ul:last-child { display: none; }
  .parait { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 1ms !important; }
}

@media print {
  .souche, .ruban, .menu-plein { display: none; }
  body { background: #fff; color: #000; }
}

/* 12. Figures pleines de la page d accueil ------------------------------- */

.bande-photo { margin-top: 2.6rem; margin-bottom: 2.6rem; }
.figure-terrain { margin-top: 2.8rem; }

/* 13. Magazine, Le Carnet du Conduit -------------------------------------- */
/* Meme palette, meme encoche hexagonale, meme pavage et meme ruban que le site.
   Le corps des articles ne porte aucune classe: les balises nues sont mises en
   forme comme descendantes de .corps-article. */

/* 13.1 Entete de la page d index du magazine ------------------------------ */

.carnet { padding: 148px 0 0; }

.carnet-tete {
  max-width: 46em;
  margin-bottom: 2.8rem;
}
.carnet-tete h1 { font-size: 3rem; margin-bottom: 1rem; }
.carnet-chapo {
  font-size: 1.1875rem;
  color: var(--texte-doux);
  border-left: 2px solid var(--braise);
  padding-left: 1.2rem;
  max-width: 42em;
}
.carnet-compte {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-doux);
  border-top: 1px solid var(--bordure);
  padding-top: 0.9rem;
  margin: 1.6rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}
.carnet-compte b { color: var(--ambre); font-weight: 500; }

/* 13.2 Grille et cartes d article ----------------------------------------- */

.carnet-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.feuillet {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  text-decoration: none;
  color: var(--texte);
  transition: background var(--transition), box-shadow var(--transition);
}
.feuillet:hover {
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--ambre);
  color: var(--texte);
}
.feuillet:hover .filet-bas::after,
.feuillet.filet-bas:hover::after { background: var(--braise); }

.feuillet-visuel {
  margin: 0;
  padding: 0.9rem 0.9rem 0;
}
.feuillet-visuel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  filter: saturate(0.55) sepia(0.14) contrast(1.05);
}

.feuillet-corps {
  padding: 1.1rem 1.3rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.feuillet-corps .etiquette { align-self: flex-start; }

.feuillet-titre {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--texte);
  transition: color var(--transition);
}
.feuillet:hover .feuillet-titre { color: var(--ambre); }

.feuillet-extrait {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--texte-doux);
  max-width: none;
}

.feuillet-pied {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--bordure);
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--texte-doux);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.feuillet-pied span { display: inline-flex; align-items: center; gap: 0.7rem; }
.feuillet-pied span + span::before {
  content: "";
  width: 6px;
  height: 7px;
  background: var(--braise);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  flex: none;
}

/* La une du sommaire occupe deux colonnes et pose l image a gauche. */
.feuillet-une { grid-column: span 2; }
.feuillet-une .feuillet-visuel { padding: 0.9rem 0 0.9rem 0.9rem; }
.feuillet-une .feuillet-visuel img { aspect-ratio: 4 / 3; height: 100%; }
.feuillet-une .feuillet-titre { font-size: 1.7rem; }
.feuillet-une .feuillet-extrait { font-size: 1rem; }

/* Le dernier feuillet du sommaire ferme la grille sur toute la largeur. */
.feuillet-fin { grid-column: span 3; }
.feuillet-fin .feuillet-visuel { padding: 0.9rem 0 0.9rem 0.9rem; }
.feuillet-fin .feuillet-visuel img { aspect-ratio: 16 / 9; height: 100%; }
.feuillet-fin .feuillet-titre { font-size: 1.5rem; }

@media (min-width: 901px) {
  .feuillet-une,
  .feuillet-fin {
    display: grid;
    align-items: stretch;
  }
  .feuillet-une { grid-template-columns: 5fr 4fr; }
  .feuillet-fin { grid-template-columns: 4fr 5fr; }
}

/* 13.3 Entete d un article ------------------------------------------------ */

.article-magazine { padding: 148px 0 0; }

.article-tete { max-width: 48em; }
.article-tete h1 { font-size: 3rem; margin-bottom: 1.2rem; }

.article-reperes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin: 0 0 1.4rem;
}
.article-reperes .etiquette { text-transform: uppercase; }
.article-reperes time { color: var(--ambre); }

.chapo-article {
  font-size: 1.1875rem;
  color: var(--texte-doux);
  border-left: 2px solid var(--braise);
  padding-left: 1.2rem;
  max-width: 40em;
  margin-bottom: 0;
}

.image-une {
  margin: 2.6rem 0 0;
}
.image-une img {
  width: 100%;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 28px 100%, 0 50%);
  box-shadow: inset 0 0 0 1px var(--bordure);
  filter: saturate(0.55) sepia(0.14) contrast(1.05);
}
.image-une figcaption {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--texte-doux);
  margin-top: 0.7rem;
}

.article-signature {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--texte-doux);
  border-top: 1px solid var(--bordure);
  padding-top: 0.9rem;
  margin: 2.6rem 0 0;
  max-width: var(--mesure);
}
.article-signature a { color: var(--ambre); }

/* 13.4 Corps redactionnel, balises nues ----------------------------------- */

.corps-article {
  max-width: var(--mesure);
  margin-top: 2.4rem;
  padding-bottom: 1rem;
}

.corps-article > *:first-child { margin-top: 0; }

.corps-article h2 {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 2.9rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bordure);
  position: relative;
}
.corps-article h2::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 9px;
  background: var(--ambre);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.corps-article h3 {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.7rem;
  padding-left: 1.1rem;
  position: relative;
}
.corps-article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 7px;
  background: var(--braise);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.corps-article p { max-width: none; margin: 0 0 1.15em; }
.corps-article strong { font-weight: 600; color: var(--texte); }
.corps-article em { font-style: italic; color: var(--texte-doux); }
.corps-article a { color: var(--ambre); text-decoration: underline; text-underline-offset: 3px; }
.corps-article a:hover { color: var(--braise); }

.corps-article ul,
.corps-article ol {
  margin: 0 0 1.3em;
  padding: 0;
  list-style: none;
  counter-reset: point;
}
.corps-article li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
}
.corps-article ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 9px;
  background: var(--ambre);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.corps-article ol > li { counter-increment: point; }
.corps-article ol > li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ambre);
}
.corps-article li ul,
.corps-article li ol { margin: 0.5rem 0 0.2rem; }

.corps-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.corps-article th,
.corps-article td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--bordure);
  vertical-align: top;
}
.corps-article thead th {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ambre);
}
.corps-article tbody th { font-weight: 600; }
.corps-article tbody tr:last-child th,
.corps-article tbody tr:last-child td { border-bottom: 0; }
.corps-article thead tr { border-bottom: 1px solid var(--bordure); }
.corps-article tbody tr:hover { background: var(--basalte-clair); }

.corps-article blockquote {
  margin: 1.9rem 0;
  padding: 0 0 0 1.3rem;
  border-left: 2px solid var(--braise);
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--texte);
}
.corps-article blockquote p { margin: 0 0 0.5em; max-width: none; }
.corps-article blockquote p:last-child { margin-bottom: 0; }

.corps-article aside {
  margin: 1.9rem 0;
  padding: 1.2rem 1.3rem 1.3rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  border-left: 2px solid var(--ambre);
  clip-path: polygon(0 0, calc(100% - 22px) 0, calc(100% - 11px) 6px, 100% 18px, 100% 100%, 0 100%);
  font-size: 0.9375rem;
}
.corps-article aside p:last-child,
.corps-article aside ul:last-child,
.corps-article aside ol:last-child { margin-bottom: 0; }

.corps-article figure { margin: 1.9rem 0; }
.corps-article figure img {
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  box-shadow: inset 0 0 0 1px var(--bordure);
  filter: saturate(0.55) sepia(0.14) contrast(1.05);
}
.corps-article figcaption {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--texte-doux);
  margin-top: 0.7rem;
}

/* 13.5 Appel a l action de fin d article ---------------------------------- */

.appel-article {
  max-width: var(--mesure);
  margin: 2.4rem 0 0;
  padding: 1.5rem 1.6rem 1.7rem;
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--bordure);
  position: relative;
}
.appel-article p { margin-bottom: 1.2rem; }
.appel-article p:last-child { margin-bottom: 0; }

/* 13.6 Encart auteur ------------------------------------------------------ */

.encart-auteur {
  max-width: var(--mesure);
  margin: 2.6rem 0 0;
  padding: 1.4rem 1.5rem 1.6rem;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.3rem;
  align-items: start;
  position: relative;
}
.encart-auteur img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  filter: saturate(0.6) sepia(0.12);
}
.encart-auteur p { margin: 0 0 0.6rem; font-size: 0.9375rem; color: var(--texte-doux); max-width: none; }
.encart-auteur p:last-child { margin-bottom: 0; }
.encart-auteur .nom-auteur {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--texte);
  letter-spacing: -0.02em;
}

/* 13.7 Titre de bloc, employe la ou un h2 n est pas admis ----------------- */

.titre-bloc {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--texte);
  margin: 0 0 1.3rem;
  max-width: none;
}

.pied .pied-titre {
  font-family: var(--compte);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ambre);
  margin: 0 0 1rem;
  max-width: none;
}

/* 13.8 Bloc A lire aussi -------------------------------------------------- */

.lire-aussi {
  margin-top: 3.4rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--bordure);
}

.lire-aussi-grille {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.carte-lire {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--bordure);
  text-decoration: none;
  color: var(--texte);
  padding: 0.9rem 0.9rem 1.4rem;
  gap: 0.7rem;
  position: relative;
  transition: background var(--transition), box-shadow var(--transition);
}
.carte-lire:hover {
  background: var(--basalte-clair);
  box-shadow: inset 0 0 0 1px var(--ambre);
  color: var(--texte);
}
.carte-lire:hover::after { background: var(--braise); }
.carte-lire img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%);
  filter: saturate(0.55) sepia(0.14) contrast(1.05);
}
.carte-lire-titre {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  padding: 0 0.4rem;
  transition: color var(--transition);
}
.carte-lire:hover .carte-lire-titre { color: var(--ambre); }
.carte-lire-accroche {
  font-size: 0.875rem;
  color: var(--texte-doux);
  padding: 0 0.4rem;
}

/* 13.9 Section Derniers articles de la page d accueil --------------------- */

.derniers-entete {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
}
.derniers-entete > div { max-width: 40em; }
.derniers-entete p { color: var(--texte-doux); }
.derniers-entete .bouton-filet { flex: none; }

/* 13.10 Liste des parutions, page auteur et plan du site ------------------ */

.liste-parutions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.liste-parutions li {
  border-top: 1px solid var(--bordure);
  padding: 1rem 0;
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.4rem 1.4rem;
  align-items: baseline;
}
.liste-parutions li:last-child { border-bottom: 1px solid var(--bordure); }
.liste-parutions .parution-date {
  font-family: var(--compte);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ambre);
}
.liste-parutions a {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.liste-parutions a:hover { text-decoration: underline; }
.liste-parutions p {
  grid-column: 2;
  margin: 0.3rem 0 0;
  font-size: 0.9375rem;
  color: var(--texte-doux);
}

/* 13.11 Adaptations du magazine ------------------------------------------- */

@media (max-width: 1080px) {
  .carnet-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feuillet-une { grid-column: span 2; }
  .feuillet-fin { grid-column: auto; display: flex; }
  .feuillet-fin .feuillet-visuel { padding: 0.9rem 0.9rem 0; }
  .feuillet-fin .feuillet-visuel img { aspect-ratio: 3 / 2; height: auto; }
  .feuillet-fin .feuillet-titre { font-size: 1.25rem; }
  .lire-aussi-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .carnet-tete h1, .article-tete h1 { font-size: 2.6rem; }
}

@media (max-width: 900px) {
  .carnet, .article-magazine { padding-top: 132px; }
  .lire-aussi-grille { grid-template-columns: 1fr; }
  .liste-parutions li { grid-template-columns: 1fr; }
  .liste-parutions p { grid-column: 1; }
}

@media (max-width: 640px) {
  .carnet, .article-magazine { padding-top: 120px; }
  .carnet-grille { grid-template-columns: 1fr; }
  .feuillet-une { grid-column: auto; }
  .carnet-tete h1, .article-tete h1 { font-size: 2.25rem; }
  .corps-article h2 { font-size: 1.5rem; }
  .corps-article table { display: block; overflow-x: auto; }
  .encart-auteur { grid-template-columns: 1fr; }
  .image-une img,
  .feuillet-visuel img,
  .carte-lire img,
  .corps-article figure img { clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%); }
}

@media print {
  .lire-aussi, .encart-auteur, .appel-article { display: none; }
  .corps-article { max-width: none; }
}
