/* =========================================================
   Lignee Bull Terrier : feuille de style unique du site
   Direction artistique "Registre" : bleu de Prusse indigo,
   papier vergé froid, filets fins, ordinaux sanguine,
   texte courant en serif, titres en grotesque serré.
   Aucune ressource externe. Tout est local.
   ========================================================= */

:root {
  color-scheme: light;

  /* Encres */
  --encre:        #13161d;
  --encre-2:      #4d5666;
  --encre-3:      #737d8e;

  /* Indigo de registre */
  --indigo:       #2b3480;
  --indigo-vif:   #3a45a6;
  --indigo-nuit:  #151a3f;
  --indigo-voile: #e5e8f7;

  /* Sanguine : ordinaux, filets d'appel, marques */
  --sanguine:     #b0492c;
  --sanguine-voile:#f6e7e1;

  /* Papiers */
  --verge:        #eceff4;
  --verge-fonce:  #dfe4ec;
  --feuille:      #ffffff;

  /* Filets */
  --filet:        #d2d8e3;
  --filet-fort:   #adb7c8;

  /* Familles */
  --plume: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Source Serif 4", Georgia, "Times New Roman", serif;
  --grotesque: "Helvetica Neue", Helvetica, "Segoe UI", system-ui, Arial, sans-serif;
  --machine: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Mesures */
  --laize: 1160px;
  --gouttiere: 56px;
  --rail: 252px;
  --relief: 0 1px 0 rgba(19, 22, 29, .04), 0 14px 34px rgba(21, 26, 63, .07);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--verge);
  color: var(--encre);
  font-family: var(--plume);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--indigo); text-decoration-thickness: .06em; text-underline-offset: .2em; }
a:hover { color: var(--sanguine); }

h1, h2, h3, h4 {
  font-family: var(--grotesque);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--encre);
}

hr { border: 0; border-top: 1px solid var(--filet); margin: 40px 0; }

::selection { background: var(--indigo-voile); }

.saut-lecture {
  position: absolute;
  left: -9999px;
}
.saut-lecture:focus {
  left: 12px; top: 12px;
  z-index: 60;
  background: var(--feuille);
  color: var(--indigo);
  padding: 10px 16px;
  border: 1px solid var(--indigo);
  font-family: var(--machine);
  font-size: .78rem;
}

/* --------------------------------------------------------
   Cote d'archive : petite ligne machine à écrire, partout
   -------------------------------------------------------- */
.cote {
  font-family: var(--machine);
  font-size: .715rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-3);
}

/* --------------------------------------------------------
   Bandeau à deux étages
   -------------------------------------------------------- */
.bandeau {
  background: var(--indigo-nuit);
  color: #f2f3fa;
  border-bottom: 3px solid var(--sanguine);
}

.bandeau__haut {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.enseigne {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.enseigne__sceau {
  width: 46px; height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(242, 243, 250, .5);
  display: grid;
  place-items: center;
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  color: #f2f3fa;
  position: relative;
}
.enseigne__sceau::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(176, 73, 44, .85);
}

.enseigne__nom {
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -.025em;
  line-height: 1.05;
  display: block;
}
.enseigne__sous {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a7adcf;
  display: block;
  margin-top: 5px;
}

.bandeau__mention {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d94bd;
  padding-bottom: 4px;
}

.navigation {
  background: var(--indigo);
}
.navigation__piste {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.navigation a {
  font-family: var(--machine);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #dfe2f6;
  text-decoration: none;
  padding: 13px 18px 12px;
  border-bottom: 3px solid transparent;
  display: inline-block;
}
.navigation a:first-child { padding-left: 0; }
.navigation a:hover { color: #fff; border-bottom-color: var(--sanguine); background: rgba(255, 255, 255, .06); }
.navigation a[aria-current="page"],
.navigation a.est-actif { color: #fff; border-bottom-color: var(--sanguine); }

/* --------------------------------------------------------
   Fil d'ariane
   -------------------------------------------------------- */
.fil {
  width: min(var(--laize), calc(100% - 40px));
  margin: 18px auto 0;
}
.fil ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px;
  font-family: var(--machine);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--encre-3);
}
.fil li + li::before { content: "/"; margin-right: 8px; color: var(--filet-fort); }
.fil a { color: var(--encre-2); text-decoration: none; }
.fil a:hover { color: var(--sanguine); text-decoration: underline; }

/* --------------------------------------------------------
   Entête de page
   -------------------------------------------------------- */
.entete {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--filet);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 6px 50px;
  align-items: end;
}
.entete__rubrique {
  grid-column: 1 / -1;
  display: inline-block;
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sanguine);
  border-top: 2px solid var(--sanguine);
  padding-top: 7px;
  margin-bottom: 16px;
}
.entete h1 {
  font-size: clamp(1.9rem, 1.1rem + 2.5vw, 2.75rem);
  max-width: 22ch;
}
.entete .chapo {
  font-size: clamp(1.02rem, .98rem + .3vw, 1.15rem);
  color: var(--encre-2);
  max-width: 56ch;
  margin: 0;
  padding: 2px 0 4px 18px;
  border-left: 3px solid var(--sanguine);
}
@media (max-width: 820px) {
  .entete { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
  .entete h1 { max-width: 26ch; }
}

/* --------------------------------------------------------
   Corps : colonne de texte + rail
   -------------------------------------------------------- */
.corps {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: var(--gouttiere);
  align-items: start;
}
.corps--pleine { grid-template-columns: minmax(0, 1fr); }

.colonne { min-width: 0; }
.colonne p { margin: 0 0 1.15em; max-width: 68ch; }
.colonne p:last-child { margin-bottom: 0; }
.colonne ul, .colonne ol { margin: 0 0 1.35em; padding-left: 1.25em; max-width: 66ch; }
.colonne .grille { max-width: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.colonne h2, .colonne h3 { max-width: 32ch; }
.colonne .chapitre > h2 { max-width: 34ch; }
.colonne li { margin-bottom: .5em; }
.colonne li::marker { color: var(--sanguine); }
.colonne h3 {
  font-size: 1.14rem;
  margin: 2em 0 .7em;
  letter-spacing: -.012em;
}
.colonne strong { font-weight: 600; }

/* Chapitres numérotés : la signature du site */
.chapitre {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--filet);
}
.chapitre:first-of-type { margin-top: 0; }
.chapitre > h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.05vw, 1.8rem);
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 18px;
}
.chapitre__num {
  font-family: var(--machine);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--sanguine);
  flex: 0 0 auto;
  padding-top: .15em;
}

/* --------------------------------------------------------
   Emplacement du rédacteur
   -------------------------------------------------------- */
.a-rediger {
  border: 1px dashed var(--filet-fort);
  background: repeating-linear-gradient(
    -45deg,
    rgba(43, 52, 128, .028) 0 10px,
    transparent 10px 20px
  );
  padding: 18px 20px;
  margin: 0 0 1.15em;
  max-width: 70ch;
  font-family: var(--machine);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--encre-2);
}
.a-rediger b {
  display: block;
  color: var(--sanguine);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .68rem;
  margin-bottom: 8px;
}

/* --------------------------------------------------------
   Planche illustrée
   -------------------------------------------------------- */
.planche {
  margin: 34px 0;
  background: var(--feuille);
  border: 1px solid var(--filet);
  padding: 12px 12px 0;
}
.planche img {
  width: 100%;
  background: var(--verge-fonce);
}
.planche figcaption {
  font-family: var(--machine);
  font-size: .715rem;
  line-height: 1.6;
  letter-spacing: .04em;
  color: var(--encre-3);
  padding: 12px 4px 14px;
  border-top: 1px solid var(--filet);
  margin-top: 12px;
}
.planche figcaption b {
  color: var(--sanguine);
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-right: 8px;
}

/* --------------------------------------------------------
   Notices encadrées
   -------------------------------------------------------- */
.notice {
  border-left: 4px double var(--indigo);
  background: var(--indigo-voile);
  padding: 20px 22px;
  margin: 32px 0;
  max-width: 74ch;
  font-size: .97rem;
}
.notice p { max-width: none; }
.notice p:last-child { margin-bottom: 0; }
.notice__titre {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  display: block;
  margin-bottom: 9px;
}
.notice--prudence {
  border-left-color: var(--sanguine);
  background: var(--sanguine-voile);
}
.notice--prudence .notice__titre { color: var(--sanguine); }

/* --------------------------------------------------------
   Échelle des générations : motif maison, 100 % CSS
   -------------------------------------------------------- */
.echelle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
  background: var(--feuille);
  border: 1px solid var(--filet);
  padding: 18px;
}
.echelle__colonne { display: flex; flex-direction: column; }
.echelle__cases { display: flex; flex-direction: column; gap: 10px; justify-content: space-around; flex: 1; }
.echelle__legende {
  font-family: var(--machine);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-3);
  margin-bottom: 4px;
  display: block;
}
.case-ascendant {
  border: 1px solid var(--filet);
  border-left: 3px solid var(--indigo);
  padding: 9px 11px;
  font-family: var(--machine);
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--encre-2);
  background: var(--verge);
  line-height: 1.45;
}
.case-ascendant--mere { border-left-color: var(--sanguine); }
.case-ascendant b { display: block; color: var(--encre); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .62rem; }

/* --------------------------------------------------------
   Grille de dossiers / cartes
   -------------------------------------------------------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}
.carte {
  background: var(--feuille);
  border: 1px solid var(--filet);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--relief);
  position: relative;
}
.carte::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 44px; height: 3px;
  background: var(--sanguine);
}
.carte h3 { font-size: 1.06rem; letter-spacing: -.012em; }
.carte h3 a { text-decoration: none; color: var(--encre); }
.carte h3 a:hover { color: var(--indigo); text-decoration: underline; }
.carte p { margin: 0; font-size: .94rem; color: var(--encre-2); line-height: 1.62; }
.carte .cote { margin-top: auto; padding-top: 6px; }

/* --------------------------------------------------------
   Liste de sommaire / rail
   -------------------------------------------------------- */
.rail { position: sticky; top: 22px; min-width: 0; }
.rail__bloc { margin-bottom: 30px; }
.rail__titre {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--encre-3);
  padding-bottom: 9px;
  border-bottom: 1px solid var(--filet-fort);
  margin-bottom: 13px;
}
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { margin-bottom: 9px; line-height: 1.45; }
.rail a {
  font-family: var(--grotesque);
  font-size: .875rem;
  letter-spacing: -.005em;
  color: var(--encre-2);
  text-decoration: none;
  border-left: 2px solid var(--filet);
  padding-left: 11px;
  display: block;
}
.rail a:hover { color: var(--indigo); border-left-color: var(--sanguine); }
.rail p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--encre-2);
  margin: 0 0 .8em;
}

/* --------------------------------------------------------
   Tableaux de registre
   -------------------------------------------------------- */
.tableau-registre {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: .92rem;
  background: var(--feuille);
}
.tableau-registre caption {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--encre-3);
  text-align: left;
  padding-bottom: 10px;
}
.tableau-registre th,
.tableau-registre td {
  border: 1px solid var(--filet);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
.tableau-registre thead th {
  background: var(--indigo-voile);
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--indigo-nuit);
}
.table-defilante { overflow-x: auto; }

/* --------------------------------------------------------
   Lexique
   -------------------------------------------------------- */
.lexique { margin: 30px 0; }
.lexique dt {
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  padding-top: 16px;
  border-top: 1px solid var(--filet);
  margin-bottom: 6px;
}
.lexique dd { margin: 0 0 18px; color: var(--encre-2); }

/* --------------------------------------------------------
   Ouverture de l'accueil
   -------------------------------------------------------- */
.ouverture {
  background: var(--feuille);
  border-bottom: 1px solid var(--filet);
}
.ouverture__grille {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}
.ouverture h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.1vw, 3.4rem);
  max-width: 17ch;
}
.ouverture__chapo {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem);
  color: var(--encre-2);
  max-width: 56ch;
  margin: 22px 0 0;
}
.ouverture__marque {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sanguine);
  border-top: 2px solid var(--sanguine);
  padding-top: 7px;
  display: inline-block;
  margin-bottom: 18px;
}
.ouverture__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  font-family: var(--machine);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ouverture__liens a {
  text-decoration: none;
  border-bottom: 2px solid var(--indigo-voile);
  padding-bottom: 3px;
}
.ouverture__liens a:hover { border-bottom-color: var(--sanguine); }

/* Bande de sommaire des piliers */
.bande-piliers {
  background: var(--indigo-nuit);
  color: #e6e8f6;
  padding: 44px 0 48px;
}
.bande-piliers__titre {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto 20px;
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sanguine);
  font-weight: 400;
}
.bande-piliers__interieur {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
  padding: 0;
}
.pilier-case {
  background: var(--indigo-nuit);
  padding: 24px 22px 26px;
}
.pilier-case span {
  font-family: var(--machine);
  font-size: .66rem;
  letter-spacing: .16em;
  color: var(--sanguine);
  display: block;
  margin-bottom: 10px;
}
.pilier-case a {
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.015em;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  display: block;
}
.pilier-case a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sanguine); }
.pilier-case p { margin: 9px 0 0; font-size: .88rem; color: #b3b9dc; line-height: 1.55; }

/* Bloc de section large sur l'accueil */
.section-large {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 10px;
}
.section-large h2 {
  font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.95rem);
  max-width: 26ch;
  margin-bottom: 14px;
}
.section-large .intro {
  max-width: 66ch;
  color: var(--encre-2);
  margin: 0 0 8px;
}
.section-large__tete {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 50px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--filet);
  margin-bottom: 30px;
}
.section-large__tete h2 { margin-bottom: 0; }
.section-large__tete .intro { margin: 0; }
@media (max-width: 820px) {
  .section-large__tete { grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
}
.section-large--sombre {
  max-width: none;
  width: 100%;
}

/* Deux colonnes de texte sur l'accueil */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 46px;
  margin-top: 26px;
}
.duo h3 { font-size: 1.1rem; margin-bottom: 10px; }
.duo p { margin: 0 0 1.05em; }

/* Lien de suite */
.lien-suite {
  font-family: var(--machine);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--indigo-voile);
  padding-bottom: 3px;
  display: inline-block;
  margin-top: 6px;
}
.lien-suite:hover { border-bottom-color: var(--sanguine); }

/* --------------------------------------------------------
   Pied de page
   -------------------------------------------------------- */
.pied {
  background: var(--indigo-nuit);
  color: #b3b9dc;
  border-top: 3px solid var(--sanguine);
  margin-top: 60px;
  font-size: .9rem;
}
.pied__grille {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: 38px;
}
.pied h2 {
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8d94bd;
  font-weight: 400;
  margin-bottom: 14px;
}
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: 8px; line-height: 1.45; }
.pied a { color: #dfe2f6; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--sanguine); }
.pied p { margin: 0 0 .9em; line-height: 1.6; color: #a7adcf; max-width: 46ch; }
.pied__bas {
  border-top: 1px solid rgba(255, 255, 255, .13);
}
.pied__bas > div {
  width: min(var(--laize), calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--machine);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8d94bd;
}

/* --------------------------------------------------------
   Adaptations
   -------------------------------------------------------- */
@media (max-width: 980px) {
  .corps { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .rail { position: static; border-top: 1px solid var(--filet); padding-top: 26px; }
  .ouverture__grille { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 40px 0 42px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  :root { --gouttiere: 34px; }
  .bandeau__haut { padding: 18px 0 14px; }
  .bandeau__mention { display: none; }
  .navigation__piste { gap: 0; }
  .navigation a { padding: 11px 12px; font-size: .68rem; }
  .navigation a:first-child { padding-left: 0; }
  .entete { padding: 26px 0 24px; }
  .corps { padding: 32px 0 54px; }
  .chapitre > h2 { flex-direction: column; gap: 6px; }
  .echelle { grid-template-columns: minmax(0, 1fr); }
  .pied__grille { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 34px 0 26px; }
}

@media print {
  .navigation, .rail, .pied__bas { display: none; }
  body { background: #fff; font-size: 11pt; }
  .corps { grid-template-columns: 1fr; }
}
