/* Relicelle, feuille unique.
   Vocabulaire de classes: classeur, marge, piece, fiche, etiquette, encoche,
   hachures, tampon, jalon, releve, parole, carton, registre, pli.
   Mode clair integral, aplats francs, aucun degrade, aucune ombre floue. */

:root {
  --papier: #FFFFFF;
  --papier-rose: #F8EBEA;
  --fiche: #FDF6F5;
  --encre: #2A1E21;
  --encre-douce: #6B5157;
  --tampon: #166E35;
  --tampon-dense: #0F4F26;
  --tampon-encre: #FFFFFF;
  --ruban: #C9878E;
  --ruban-pale: #F1D9D9;
  --filet: #E6CECD;
  --titre: "Bungee", "Arial Black", Impact, sans-serif;
  --courant: "Alegreya", Georgia, "Times New Roman", serif;
  --carnet: "Cardo", Georgia, "Times New Roman", serif;
  --encoche: 22px;
  --colonne: 68ch;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: var(--courant);
  font-size: 1.08rem;
  line-height: 1.68;
  font-weight: 400;
}

h1, h2 {
  font-family: var(--titre);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.6rem; }

h3 {
  font-family: var(--carnet);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--encre);
}

h4 {
  font-family: var(--courant);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 6px;
}

p { margin: 0 0 16px; max-width: var(--colonne); }
p:last-child { margin-bottom: 0; }

a { color: var(--tampon-dense); text-decoration: underline; text-underline-offset: 3px; transition: color 120ms linear; }
a:hover { color: var(--encre); }

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

ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; }

strong { font-weight: 700; }
em { font-style: italic; }

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

.evitement {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tampon);
  color: var(--tampon-encre);
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  padding: 12px 20px;
  z-index: 60;
}
.evitement:focus { left: 12px; top: 12px; }

.hors-ecran {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.marge {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Encoche d etiquette, coupe de 22 pixels au coin superieur gauche,
   toujours du meme cote, doublee d un filet vieux rose qui s arrete net. */
.encoche {
  position: relative;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.encoche::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-top: 1px solid var(--ruban);
  transform: rotate(-45deg);
  transform-origin: top left;
  translate: 0.5px 0;
  pointer-events: none;
}

/* Surtitre en Cardo petites capitales, souligne de trois hachures. */
.etiquette {
  display: block;
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  color: var(--encre-douce);
  margin: 0 0 10px;
}

.etiquette--tampon { color: var(--tampon-dense); }

.bande-hachures {
  display: block;
  width: 64px;
  height: 14px;
  margin: 0 0 18px;
}

.hachures-angle {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 132px;
  height: 84px;
  pointer-events: none;
}

/* En tete collante, filet inferieur, aucune ombre. */
.classeur {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
}

.classeur__rang {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: height 120ms linear;
}

.classeur.est-tasse .classeur__rang { height: 60px; }

.logotype {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--encre);
  flex: 0 0 auto;
}
.logotype__marque { display: block; width: 30px; height: 30px; }
.logotype__nom {
  font-family: var(--titre);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.onglets {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.onglets a {
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--encre);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 120ms linear, color 120ms linear;
}
.onglets a:hover { border-bottom-color: var(--ruban); }

.classeur .bouton { flex: 0 0 auto; }

/* Boutons, aplat franc, encoche, aucun arrondi. */
.bouton {
  display: inline-block;
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 1.02rem;
  line-height: 1.2;
  padding: 14px 26px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  position: relative;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
  transition: background-color 120ms linear, color 120ms linear, box-shadow 120ms linear;
}

.bouton--tampon {
  background: var(--tampon);
  color: var(--tampon-encre);
}
.bouton--tampon:hover {
  background: var(--tampon-dense);
  color: var(--tampon-encre);
  box-shadow: inset 0 -2px 0 0 var(--ruban);
}

.bouton--contour {
  background: var(--papier);
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--ruban);
}
.bouton--contour:hover {
  background: var(--ruban-pale);
  color: var(--encre);
}

.bouton--large { display: block; width: 100%; text-align: center; }

/* Menu mobile, panneau plein ecran blanc. */
.trois-traits {
  display: none;
  margin-left: auto;
  width: 46px; height: 40px;
  background: var(--papier);
  border: 1px solid var(--filet);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.trois-traits svg { width: 24px; height: 20px; }

.panneau {
  position: fixed;
  inset: 0;
  background: var(--papier);
  z-index: 70;
  padding: 26px 24px 40px;
  overflow-y: auto;
}
.panneau[hidden] { display: none; }
.panneau__rang { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.panneau__fermer {
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  background: var(--papier);
  border: 2px solid var(--ruban);
  color: var(--encre);
  padding: 8px 16px;
  cursor: pointer;
}
.panneau__liens { list-style: none; margin: 0; padding: 0; }
.panneau__liens li { border-bottom: 1px solid var(--filet); margin: 0; }
.panneau__liens a {
  display: block;
  font-family: var(--courant);
  font-size: 1.2rem;
  padding: 14px 0;
  color: var(--encre);
  text-decoration: none;
}
.panneau .bouton { margin-top: 26px; }

/* Sections, rythme vertical volontairement inegal. */
.piece { padding: 78px 0; position: relative; }
.piece--serree { padding: 54px 0; }
.piece--haute { padding: 96px 0; }
.piece--rose { background: var(--papier-rose); }
.piece--filet { border-top: 1px solid var(--filet); }

.piece__chapeau { max-width: 720px; margin-bottom: 34px; }

/* Hero, trois colonnes de largeurs inegales, 6 pour 4 pour 2. */
.ouverture { padding: 62px 0 70px; position: relative; overflow: hidden; }
.ouverture__grille {
  display: grid;
  grid-template-columns: 6fr 4fr 2fr;
  gap: 42px;
  align-items: start;
}
.ouverture h1 { max-width: 12ch; }
.ouverture__intro { font-size: 1.14rem; }

.frappe {
  font-family: var(--carnet);
  font-size: 1.24rem;
  line-height: 1.45;
  color: var(--tampon-dense);
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  max-width: 34ch;
}
.frappe__curseur {
  display: none;
  width: 2px;
  height: 1.05em;
  background: var(--ruban);
  vertical-align: -0.15em;
  margin-left: 2px;
}
.frappe.est-en-frappe .frappe__curseur { display: inline-block; animation: clignote 620ms steps(1, end) infinite; }
@keyframes clignote { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.ouverture__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Cadre photographique, bord blanc epais, filet rose, encoche reprise. */
.cadre {
  background: var(--papier);
  padding: 12px;
  border: 1px solid var(--ruban);
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.cadre img { width: 100%; }
.cadre__legende {
  display: block;
  font-family: var(--carnet);
  font-size: 0.86rem;
  color: var(--encre-douce);
  margin-top: 10px;
  line-height: 1.45;
}
figure { margin: 0; }

.colonne-etroite { display: flex; flex-direction: column; gap: 22px; }

.cle {
  background: var(--tampon);
  color: var(--tampon-encre);
  padding: 20px 18px 22px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.cle__nombre {
  display: block;
  font-family: var(--titre);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.cle__texte {
  font-family: var(--carnet);
  font-size: 0.94rem;
  line-height: 1.5;
  margin: 0;
  color: var(--tampon-encre);
  max-width: none;
}

.categories { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--filet); }
.categories li {
  margin: 0;
  border-bottom: 1px solid var(--filet);
  padding: 9px 0 9px 16px;
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.96rem;
  color: var(--encre);
  position: relative;
}
.categories li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 2px;
  background: var(--ruban);
  transform: rotate(-32deg);
}

/* Section probleme, texte large a gauche, colonne de couts a droite. */
.charge__grille {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 50px;
  align-items: start;
}

.couts { border-top: 2px solid var(--ruban); }
.couts__ligne {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--filet);
}
.couts__poste {
  font-family: var(--carnet);
  font-size: 1rem;
  color: var(--encre);
  max-width: 22ch;
  margin: 0;
}
.couts__montant {
  font-family: var(--titre);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--tampon-dense);
  white-space: nowrap;
}
.couts__note {
  font-family: var(--carnet);
  font-size: 0.86rem;
  color: var(--encre-douce);
  margin-top: 14px;
}

/* Quatre gestes, bande de largeur pleine. */
.jalons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--filet);
  border-bottom: 1px solid var(--filet);
}
.jalon {
  padding: 26px 24px 30px;
  border-right: 1px solid var(--filet);
}
.jalon:last-child { border-right: 0; }
.jalon__puce {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--titre);
  font-size: 1.1rem;
  color: var(--encre);
  margin-bottom: 16px;
  background-color: var(--ruban-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='46'%3E%3Cg stroke='%23C9878E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 40 L17 19'/%3E%3Cpath d='M13 42 L27 18'/%3E%3Cpath d='M23 41 L36 21'/%3E%3Cpath d='M32 42 L44 24'/%3E%3C/g%3E%3C/svg%3E");
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}
.jalon p { font-size: 1rem; }

/* Fonctionnalites, trois colonnes egales de fiches a encoche. */
.classement {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.fiche {
  background: var(--fiche);
  border: 1px solid var(--filet);
  padding: 24px 22px 26px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.fiche p { font-size: 1rem; margin-bottom: 0; }
.fiche__rang {
  font-family: var(--carnet);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  color: var(--ruban);
  display: block;
  margin-bottom: 8px;
}

/* Avantages, deux colonnes inegales et une liste de gains. */
.retour__grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.gains { list-style: none; margin: 0; padding: 0; }
.gains li {
  border-top: 1px solid var(--filet);
  padding: 18px 0 18px 88px;
  position: relative;
  margin: 0;
}
.gains li:last-child { border-bottom: 1px solid var(--filet); }
.gains__mesure {
  position: absolute;
  left: 0; top: 18px;
  font-family: var(--titre);
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  color: var(--tampon);
  width: 76px;
}

/* Preuve sociale. */
.paroles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.parole {
  background: var(--papier);
  border: 1px solid var(--filet);
  padding: 24px 22px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
  margin: 0;
}
.parole blockquote { margin: 0 0 16px; }
.parole blockquote p {
  font-family: var(--carnet);
  font-size: 1.06rem;
  line-height: 1.6;
}
.parole figcaption {
  border-top: 1px solid var(--filet);
  padding-top: 12px;
  font-size: 0.94rem;
  color: var(--encre-douce);
}
.parole figcaption b { display: block; color: var(--encre); font-weight: 700; }

.releve {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--filet);
  border-left: 4px solid var(--tampon);
  margin-top: 34px;
  background: var(--papier);
}
.releve__poste { padding: 20px 18px; border-right: 1px solid var(--filet); }
.releve__poste:last-child { border-right: 0; }
.releve__nombre {
  display: block;
  font-family: var(--titre);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tampon-dense);
  margin-bottom: 8px;
}
.releve__mot {
  font-family: var(--carnet);
  font-size: 0.92rem;
  color: var(--encre-douce);
  margin: 0;
  line-height: 1.45;
}

/* Tarifs, trois colonnes dont celle du milieu plus large. */
.cartons {
  display: grid;
  grid-template-columns: 5fr 7fr 5fr;
  gap: 22px;
  align-items: start;
}
.carton {
  background: var(--papier);
  border: 1px solid var(--filet);
  padding: 26px 24px 30px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.carton--retenu {
  border: 2px solid var(--tampon);
  background: var(--fiche);
}
.carton__mise {
  display: inline-block;
  background: var(--tampon);
  color: var(--tampon-encre);
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.carton__prix {
  font-family: var(--titre);
  font-size: 2.1rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
  margin: 14px 0 4px;
}
.carton__unite {
  font-family: var(--carnet);
  font-size: 0.9rem;
  color: var(--encre-douce);
  display: block;
  margin-bottom: 14px;
}
.carton__cible { font-size: 0.98rem; color: var(--encre-douce); }
.carton__inclus { list-style: none; margin: 18px 0 24px; padding: 0; }
.carton__inclus li {
  padding-left: 20px;
  position: relative;
  font-size: 0.99rem;
  margin-bottom: 10px;
}
.carton__inclus li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 11px; height: 2px;
  background: var(--tampon);
  transform: rotate(-32deg);
}
.tarifs__note { font-family: var(--carnet); font-size: 0.92rem; color: var(--encre-douce); margin-top: 26px; }

/* FAQ. */
.registre { border-top: 1px solid var(--filet); max-width: 860px; }
.registre details { border-bottom: 1px solid var(--filet); }
.registre summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--carnet);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--encre);
}
.registre summary::-webkit-details-marker { display: none; }
.registre summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 26px;
  width: 14px; height: 2px;
  background: var(--tampon);
}
.registre summary::before {
  content: "";
  position: absolute;
  right: 14px; top: 20px;
  width: 2px; height: 14px;
  background: var(--tampon);
  transition: opacity 120ms linear;
}
.registre details[open] summary::before { opacity: 0; }
.registre__reponse { padding: 0 0 20px; }
.registre__reponse p { font-size: 1rem; }

/* Formulaire. */
.contact__grille {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.formulaire {
  background: var(--papier);
  border: 1px solid var(--filet);
  padding: 28px 26px 30px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.champ { margin-bottom: 18px; }
.champ label {
  display: block;
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: var(--encre);
}
.champ input[type="text"],
.champ input[type="email"],
.champ select,
.champ textarea {
  width: 100%;
  font-family: var(--courant);
  font-size: 1rem;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--filet);
  border-bottom: 2px solid var(--ruban);
  padding: 11px 12px;
  transition: border-color 120ms linear;
}
.champ input:hover, .champ select:hover, .champ textarea:hover { border-color: var(--ruban); }
.champ textarea { resize: vertical; }
.champ--accord {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.96rem;
  margin-bottom: 22px;
}
.champ--accord input { margin-top: 6px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--tampon); }
.champ--accord label {
  font-family: var(--courant);
  font-variant: normal;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.96rem;
  margin: 0;
}
.formulaire__suite {
  font-family: var(--carnet);
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin-top: 16px;
}

/* Pied de page. */
.pli {
  background: var(--fiche);
  border-top: 2px solid var(--ruban);
  padding: 56px 0 0;
  position: relative;
}
.pli__grille {
  display: grid;
  grid-template-columns: 4fr 2.5fr 2.5fr 3fr;
  gap: 34px;
}
.pli h2, .pli h3 {
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pli ul { list-style: none; margin: 0; padding: 0; }
.pli li { margin-bottom: 9px; font-size: 0.98rem; }
.pli a { color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--filet); }
.pli a:hover { border-bottom-color: var(--ruban); color: var(--tampon-dense); }
.pli__phrase { font-size: 0.99rem; color: var(--encre-douce); margin: 14px 0 16px; }
.pli__profils { display: flex; flex-wrap: wrap; gap: 12px; font-family: var(--carnet); font-size: 0.94rem; }
.pli__editeur { font-size: 0.94rem; color: var(--encre-douce); margin-top: 12px; }
.pli__barre {
  margin-top: 44px;
  border-top: 1px solid var(--filet);
  padding: 18px 0 26px;
  font-family: var(--carnet);
  font-size: 0.9rem;
  color: var(--encre-douce);
}

/* Pages internes. */
.feuillet { padding: 54px 0 76px; }
.feuillet__corps { max-width: 760px; }
.feuillet__corps h2 { margin-top: 38px; }
.feuillet__corps h3 { margin-top: 26px; }
.fil {
  font-family: var(--carnet);
  font-size: 0.9rem;
  color: var(--encre-douce);
  padding: 16px 0 0;
}
.fil a { color: var(--encre-douce); }
.portrait {
  border: 1px solid var(--ruban);
  padding: 10px;
  background: var(--papier);
  width: 220px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.auteur__tete {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  align-items: start;
}
.profils { list-style: none; margin: 18px 0 0; padding: 0; }
.profils li { margin-bottom: 8px; }

.table-legale { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.table-legale th, .table-legale td {
  border-bottom: 1px solid var(--filet);
  text-align: left;
  padding: 10px 12px 10px 0;
  font-size: 0.99rem;
  vertical-align: top;
}
.table-legale th { font-family: var(--carnet); font-weight: 700; width: 40%; }

.plan-liste { list-style: none; margin: 0; padding: 0; }
.plan-liste li {
  border-left: 3px solid var(--ruban);
  padding: 4px 0 4px 16px;
  margin-bottom: 18px;
}
.plan-liste a { font-family: var(--carnet); font-weight: 700; font-size: 1.06rem; }
.plan-liste p { font-size: 0.99rem; margin: 4px 0 0; }

.avis {
  background: var(--papier-rose);
  border-left: 4px solid var(--tampon);
  padding: 18px 20px;
  margin: 26px 0;
}
.avis p { font-size: 1rem; }

.centre-page { text-align: center; max-width: 620px; margin: 0 auto; padding: 70px 0 84px; }
.centre-page h1 { max-width: none; }
.centre-page p { margin-left: auto; margin-right: auto; }
.centre-page .bouton { margin-top: 12px; }

/* Apparitions au defilement. */
.au-defile { opacity: 0; transform: translateY(14px); transition: opacity 420ms linear, transform 420ms ease-out; }
.au-defile.est-vue { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .ouverture__grille { grid-template-columns: 7fr 5fr; }
  .colonne-etroite { grid-column: 1 / -1; flex-direction: row; gap: 26px; }
  .colonne-etroite .cle { flex: 0 0 42%; }
  .categories { flex: 1 1 auto; }
  .classement { grid-template-columns: repeat(2, 1fr); }
  .cartons { grid-template-columns: 1fr; }
  .jalons { grid-template-columns: repeat(2, 1fr); }
  .jalon:nth-child(2) { border-right: 0; }
  .jalon:nth-child(1), .jalon:nth-child(2) { border-bottom: 1px solid var(--filet); }
  .paroles { grid-template-columns: 1fr; }
  .releve { grid-template-columns: repeat(2, 1fr); }
  .releve__poste:nth-child(2) { border-right: 0; }
  .releve__poste:nth-child(1), .releve__poste:nth-child(2) { border-bottom: 1px solid var(--filet); }
  .pli__grille { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .onglets { display: none; }
  .classeur .bouton { display: none; }
  .trois-traits { display: flex; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  .ouverture__grille { grid-template-columns: 1fr; gap: 30px; }
  .ouverture h1 { max-width: none; }
  .charge__grille, .retour__grille, .contact__grille, .auteur__tete { grid-template-columns: 1fr; gap: 30px; }
  .classement { grid-template-columns: 1fr; }
  .colonne-etroite { flex-direction: column; }
  .colonne-etroite .cle { flex: 1 1 auto; }
  .piece, .piece--haute { padding: 52px 0; }
  .hachures-angle { width: 96px; height: 62px; right: 10px; }
  .frappe { max-width: none; }
}

@media (max-width: 560px) {
  .jalons { grid-template-columns: 1fr; }
  .jalon { border-right: 0; border-bottom: 1px solid var(--filet); }
  .jalon:last-child { border-bottom: 0; }
  .releve { grid-template-columns: 1fr; }
  .releve__poste { border-right: 0; border-bottom: 1px solid var(--filet); }
  .pli__grille { grid-template-columns: 1fr; }
  .ouverture__actions .bouton { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .au-defile { opacity: 1; transform: none; }
  .frappe__curseur { display: none !important; }
}

@media print {
  .classeur, .panneau, .trois-traits, .ouverture__actions, .formulaire { display: none; }
  body { font-size: 11pt; }
}
/* ================================================================
   LE CAHIER D INVENTAIRE, section magazine.
   Ajoutee a la fin de la feuille: aucune regle precedente n est modifiee.
   Le magazine reprend la palette du site, l encoche d etiquette de 22 pixels
   au coin superieur gauche, les hachures obliques a 32 degres, Bungee pour les
   titres, Alegreya pour la lecture longue, Cardo en petites capitales pour les
   surtitres, les dates et les legendes, et la meme frappe machine a ecrire.
   Vocabulaire de classes: cahier, sommaire, notice, chemise, exergue, feuille,
   appel, signataire, voisins, derniers.
   ================================================================ */

:root {
  /* Bande de trois hachures obliques posee au dessus des intertitres du corps.
     Meme trace irregulier que les svg en ligne des sections du site. */
  --trois-traits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='14'%3E%3Cg stroke='%23C9878E' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M3 12 L11 2'/%3E%3Cpath d='M17 11.5 L26 2.5'/%3E%3Cpath d='M32 12.5 L40 1.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------- ouverture du magazine */

.cahier { padding: 58px 0 46px; position: relative; overflow: hidden; }
.cahier__grille {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 50px;
  align-items: start;
}
.cahier h1 { max-width: 16ch; }
.cahier__intro { font-size: 1.14rem; }
.cahier__reperes { border-top: 2px solid var(--ruban); }
.cahier__repere {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--filet);
  font-family: var(--carnet);
  font-size: 0.96rem;
  color: var(--encre-douce);
  margin: 0;
  max-width: none;
}
.cahier__repere b {
  font-family: var(--titre);
  font-weight: 400;
  font-size: 0.96rem;
  letter-spacing: -0.03em;
  color: var(--tampon-dense);
  white-space: nowrap;
}

/* ---------------------------------------------- grille de cartes d article */

.sommaire {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.notice {
  background: var(--fiche);
  border: 1px solid var(--filet);
  display: flex;
  flex-direction: column;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
  transition: background-color 120ms linear, border-color 120ms linear;
}
.notice:hover { background: var(--papier); border-color: var(--ruban); }
.notice__vue { display: block; margin: 0; background: var(--papier-rose); }
.notice__vue img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.notice__corps {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.notice__angle {
  display: block;
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.88rem;
  color: var(--tampon-dense);
  margin: 0 0 8px;
}
.notice__titre {
  font-family: var(--carnet);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0 0 10px;
  max-width: none;
  color: var(--encre);
}
.notice__titre a {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid var(--ruban-pale);
  transition: color 120ms linear, border-color 120ms linear;
}
.notice:hover .notice__titre a { color: var(--tampon-dense); border-bottom-color: var(--ruban); }
.notice__extrait { font-size: 1rem; margin: 0 0 18px; max-width: none; }
.notice__pied {
  margin-top: auto;
  border-top: 1px solid var(--filet);
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  font-family: var(--carnet);
  font-size: 0.86rem;
  color: var(--encre-douce);
}

/* La premiere carte du sommaire tient la largeur, en deux colonnes inegales:
   le meme desequilibre 7 pour 5 que la section Problème de la page d accueil. */
.notice--tete {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 7fr 5fr;
}
.notice--tete .notice__vue { height: 100%; }
.notice--tete .notice__vue img { height: 100%; min-height: 280px; aspect-ratio: auto; }
.notice--tete .notice__corps { padding: 30px 30px 32px; }
.notice--tete .notice__titre {
  font-family: var(--titre);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: 1.42rem;
}
.notice--tete .notice__titre a { border-bottom-width: 3px; }
.notice--tete .notice__extrait { font-size: 1.04rem; }

/* ---------------------------------------------- entete d article */

.cahier-article { padding: 6px 0 78px; }

.chemise { padding: 22px 0 6px; }
.chemise__reperes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-family: var(--carnet);
  font-size: 0.92rem;
  color: var(--encre-douce);
  margin: 0 0 18px;
  max-width: none;
}
.chemise__reperes > span { position: relative; }
.chemise__reperes > span + span::before {
  content: "";
  position: absolute;
  left: -13px; top: 50%;
  width: 10px; height: 2px;
  background: var(--ruban);
  transform: rotate(-32deg);
}
.chemise__angle {
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--tampon-dense);
}
.chemise h1 {
  font-size: 1.85rem;
  line-height: 1.14;
  max-width: 26ch;
  margin-bottom: 22px;
}
.chemise .cadre { margin-top: 26px; max-width: 940px; }

/* Chapeau en exergue, aplat vieux rose et filet epais, aucun degrade. */
.exergue {
  background: var(--papier-rose);
  border-left: 4px solid var(--ruban);
  padding: 20px 24px 22px;
  margin: 0;
  max-width: var(--colonne);
}
.exergue p {
  font-family: var(--carnet);
  font-size: 1.16rem;
  line-height: 1.55;
  margin: 0;
  max-width: none;
  color: var(--encre);
}

/* ---------------------------------------------- corps d article
   Le corps redactionnel est du HTML nu, sans aucun attribut class:
   toutes les balises sont donc mises en forme comme descendantes de .feuille. */

.feuille {
  max-width: var(--colonne);
  margin-top: 34px;
}
.feuille > *:first-child { margin-top: 0; }

.feuille h2 {
  font-size: 1.5rem;
  margin: 46px 0 16px;
  padding-top: 24px;
  background-image: var(--trois-traits);
  background-repeat: no-repeat;
  background-position: left top;
  max-width: none;
}
.feuille h3 {
  font-size: 1.14rem;
  margin: 32px 0 12px;
  padding-left: 22px;
  position: relative;
  max-width: none;
}
.feuille h3::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 13px; height: 2px;
  background: var(--ruban);
  transform: rotate(-32deg);
}
.feuille p { font-size: 1.08rem; margin: 0 0 18px; max-width: none; }
.feuille a { color: var(--tampon-dense); text-decoration: underline; text-underline-offset: 3px; }
.feuille a:hover { color: var(--encre); text-decoration-color: var(--ruban); }
.feuille strong { font-weight: 700; color: var(--encre); }
.feuille em { font-style: italic; }

.feuille ul, .feuille ol { margin: 0 0 24px; padding-left: 0; list-style: none; }
.feuille li { margin-bottom: 10px; }
.feuille ul li { position: relative; padding-left: 24px; }
.feuille ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.74em;
  width: 13px; height: 2px;
  background: var(--tampon);
  transform: rotate(-32deg);
}
.feuille ol { counter-reset: point-cahier; }
.feuille ol li { position: relative; padding-left: 40px; counter-increment: point-cahier; }
.feuille ol li::before {
  content: counter(point-cahier);
  position: absolute;
  left: 0; top: 0.12em;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--titre);
  font-size: 0.78rem;
  color: var(--encre);
  background-color: var(--ruban-pale);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
}
.feuille li > ul, .feuille li > ol { margin-top: 10px; margin-bottom: 0; }

/* Tableau recapitulatif, filets fins et en tete en aplat rose. */
.feuille table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: 0.99rem;
  border-top: 2px solid var(--ruban);
}
.feuille th, .feuille td {
  text-align: left;
  vertical-align: top;
  padding: 11px 12px;
  border-bottom: 1px solid var(--filet);
}
.feuille thead th {
  background: var(--papier-rose);
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--encre);
  border-bottom: 2px solid var(--ruban);
}
.feuille tbody th { font-family: var(--carnet); font-weight: 700; }
.feuille tbody tr:nth-child(even) { background: var(--fiche); }

/* Citation, filet vieux rose et Cardo, aucune italique decorative. */
.feuille blockquote {
  margin: 0 0 28px;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ruban);
}
.feuille blockquote p {
  font-family: var(--carnet);
  font-size: 1.12rem;
  line-height: 1.6;
}
.feuille blockquote p:last-child { margin-bottom: 0; }

/* Encadre, meme encoche que les fiches du site. */
.feuille aside {
  background: var(--papier-rose);
  border: 1px solid var(--filet);
  padding: 22px 24px 24px;
  margin: 0 0 28px;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.feuille aside p { font-size: 1rem; }
.feuille aside p:last-child { margin-bottom: 0; }

.feuille figure { margin: 0 0 28px; }
.feuille figcaption {
  font-family: var(--carnet);
  font-size: 0.86rem;
  color: var(--encre-douce);
  line-height: 1.45;
  margin-top: 10px;
}

/* ---------------------------------------------- appel a l action de fin d article */

.appel {
  background: var(--tampon);
  color: var(--tampon-encre);
  padding: 28px 30px 30px;
  margin: 38px 0 0;
  max-width: var(--colonne);
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.appel .etiquette { color: var(--ruban-pale); }
.appel p { color: var(--tampon-encre); max-width: none; font-size: 1.04rem; }
.appel .bouton { margin-top: 8px; }

.appel--bande {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 36px;
  align-items: center;
}
.appel--bande .bouton { margin-top: 0; }

.bouton--clair { background: var(--papier); color: var(--encre); }
.bouton--clair:hover { background: var(--ruban-pale); color: var(--encre); }

/* ---------------------------------------------- encart auteur */

.signataire {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--fiche);
  border: 1px solid var(--filet);
  padding: 24px 26px 26px;
  margin: 34px 0 0;
  max-width: var(--colonne);
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
}
.signataire__photo {
  border: 1px solid var(--ruban);
  background: var(--papier);
  padding: 5px;
  width: 108px;
}
.signataire__nom {
  font-family: var(--carnet);
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  margin: 0 0 8px;
  max-width: none;
  color: var(--encre);
}
.signataire p { font-size: 1rem; max-width: none; }

/* ---------------------------------------------- bloc A lire aussi */

.voisins {
  margin-top: 46px;
  border-top: 1px solid var(--filet);
  padding-top: 32px;
}
.voisins__titre {
  font-family: var(--titre);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.22rem;
  margin: 0 0 22px;
  max-width: none;
  color: var(--encre);
}
.voisins__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.voisin {
  background: var(--papier);
  border: 1px solid var(--filet);
  display: flex;
  flex-direction: column;
  clip-path: polygon(var(--encoche) 0, 100% 0, 100% 100%, 0 100%, 0 var(--encoche));
  transition: background-color 120ms linear, border-color 120ms linear;
}
.voisin:hover { background: var(--fiche); border-color: var(--ruban); }
.voisin__vue { display: block; margin: 0; background: var(--papier-rose); }
.voisin__vue img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.voisin__corps { padding: 16px 18px 20px; }
.voisin__titre {
  font-family: var(--carnet);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 8px;
  max-width: none;
}
.voisin__titre a {
  color: var(--encre);
  text-decoration: none;
  border-bottom: 2px solid var(--ruban-pale);
  transition: color 120ms linear, border-color 120ms linear;
}
.voisin:hover .voisin__titre a { color: var(--tampon-dense); border-bottom-color: var(--ruban); }
.voisin__accroche { font-size: 0.95rem; color: var(--encre-douce); margin: 0; max-width: none; }

/* ---------------------------------------------- derniers articles, page d accueil */

.derniers__tete {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px 30px;
  margin-bottom: 30px;
}
.derniers__tete h2 { margin-bottom: 0; }
.derniers__intro { max-width: 620px; margin: 12px 0 0; }
.derniers__lien {
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  font-size: 1.02rem;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--ruban);
  text-decoration: none;
  color: var(--tampon-dense);
}
.derniers__lien:hover { color: var(--encre); border-bottom-color: var(--encre); }

/* Intitule de colonne du pied de page sur les pages du magazine:
   les intertitres h2 y sont reserves au corps redactionnel. */
.pli__titre {
  font-family: var(--carnet);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  max-width: none;
  color: var(--encre);
}

/* ---------------------------------------------- adaptations d ecran */

@media (max-width: 1080px) {
  .cahier__grille { grid-template-columns: 1fr; gap: 32px; }
  .cahier h1 { max-width: none; }
  .sommaire { grid-template-columns: repeat(2, 1fr); }
  .notice--tete { grid-template-columns: 1fr; }
  .notice--tete .notice__vue img { min-height: 0; aspect-ratio: 3 / 2; }
  .notice--tete .notice__corps { padding: 22px 22px 24px; }
}

@media (max-width: 860px) {
  .sommaire { grid-template-columns: 1fr; }
  .voisins__grille { grid-template-columns: 1fr; }
  .chemise h1 { font-size: 1.4rem; max-width: none; }
  .feuille h2 { font-size: 1.28rem; margin-top: 38px; }
  .voisins__titre { font-size: 1.1rem; }
  .signataire { grid-template-columns: 1fr; }
  .appel--bande { grid-template-columns: 1fr; }
  .cahier { padding: 40px 0 34px; }
  .cahier-article { padding: 4px 0 56px; }
}

@media (max-width: 560px) {
  .feuille table { display: block; overflow-x: auto; }
  .appel, .signataire { padding: 20px 18px 22px; }
  .appel .bouton { display: block; width: 100%; text-align: center; }
  .exergue { padding: 18px 18px 20px; }
  .exergue p { font-size: 1.08rem; }
}

@media print {
  .voisins, .appel { display: none; }
  .feuille { max-width: none; }
}

/* Maillage du reseau, bandeau de pied de page. Mise en page seulement:
   les couleurs, la police et le survol restent ceux du site.
   grid-column et flex-basis font tenir le bandeau sur toute la largeur,
   que le pied de page soit une grille ou une boite flexible.
   Les raccourcis margin et padding sont evites: ils ecraseraient le retrait
   interieur d une colonne dont le bandeau herite la classe. */
[data-reseau-bloc]{grid-column:1/-1;flex-basis:100%;width:100%;margin-top:26px;padding-top:18px}
[data-reseau-titre]{font-size:.8rem;line-height:1.3;letter-spacing:.09em;text-transform:uppercase;
  font-weight:600;margin:0 0 12px}
ul[data-reseau]{list-style:none;display:flex;flex-wrap:wrap;gap:10px 26px;margin:0;padding:0}
ul[data-reseau] li{margin:0;padding:0}
