/* stephanedelavalliere.fr — feuille de style unique. Aucune ressource
   tierce : les quatre familles des couvertures sont auto-hebergees
   (licence SIL OFL), la carte est un SVG local, tout le reste est CSS. */

@font-face { font-family:'Spectral'; font-style:normal; font-weight:400;
  src:url('/fonts/spectral-400.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Spectral'; font-style:normal; font-weight:600;
  src:url('/fonts/spectral-600.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Spectral'; font-style:normal; font-weight:800;
  src:url('/fonts/spectral-800.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'EB Garamond'; font-style:italic; font-weight:400;
  src:url('/fonts/garamond-400i.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600;
  src:url('/fonts/inter-600.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400;
  src:url('/fonts/plexmono-400.woff2') format('woff2'); font-display:swap; }

:root {
  --fond:      #121317;
  --fond-haut: #0b1220;
  --creme:     #eae6dd;
  --attenue:   #8f8a80;
  --filet:     #2a2b31;
  --rouge:     #c9483c;   /* filets, monogramme, arcs : usage decoratif */
  --rouge-txt: #dc6355;   /* petits textes : 4,65:1 minimum sur les trois fonds (AA) */
  --rouge-fond:#8e2622;
  --influence: #0f1626;  --influence-bord: #24293f;  --influence-tranche: #182238;
  --wagner:    #221f1c;  --wagner-bord: #3a352f;     --wagner-tranche: #2e2a25;
  --mesure:    52rem;
  --serif: 'Spectral', Georgia, serif;
  --garam: 'EB Garamond', Georgia, serif;
  --sans:  'Inter', ui-sans-serif, "Segoe UI", Helvetica, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fond); color: var(--creme);
  font-family: var(--serif); line-height: 1.7;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* Grain : casse le plat des aplats sombres. Non interactif. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dedans { max-width: var(--mesure); margin: 0 auto; padding: 0 1.6rem; }
section[id] { scroll-margin-top: 1.5rem; }

/* Lien d'evitement : invisible tant qu'il n'a pas le focus clavier. */
.evitement {
  position: absolute; left: -999px; top: .6rem; z-index: 1000;
  padding: .5rem .9rem; background: var(--rouge); color: #fff;
  font-family: var(--sans); font-size: .8rem; border: 0;
}
.evitement:focus { left: .6rem; }

/* ---------- Barre de navigation --------------------------------- */
.barre {
  position: relative; z-index: 4;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(11,18,32,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.barre .dedans {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 3.4rem;
}
.marque {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--creme);
  text-decoration: none; border: 0; white-space: nowrap;
}
.marque:hover, .marque:focus { color: var(--creme); }
.monogramme { width: 1.55rem; height: 1.55rem; flex: none; }
.barre nav { display: flex; gap: 1.6rem; }
.barre nav a {
  font-family: var(--sans); font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--attenue);
  text-decoration: none; border: 0; padding: .3rem 0; position: relative;
}
.barre nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--rouge); transition: right .2s ease;
}
.barre nav a:hover, .barre nav a:focus { color: var(--creme); }
.barre nav a:hover::after, .barre nav a:focus::after { right: 0; }

/* ---------- Ouverture ------------------------------------------- */
.entete {
  position: relative; overflow: hidden;
  padding: 6.5rem 0 4.5rem;
  background:
    radial-gradient(90% 120% at 78% 30%, rgba(160,40,34,.28), transparent 60%),
    linear-gradient(172deg, var(--fond-haut) 0%, #0e1420 48%, var(--fond) 100%);
}
.entete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, var(--rouge-fond) 0 18%, var(--filet) 18% 100%);
}
/* Voile sur la moitie gauche : le titre garde son contraste. */
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(92deg, rgba(11,18,32,.94) 0%, rgba(11,18,32,.78) 34%, rgba(11,18,32,0) 68%);
}
/* Carte fixe (img) et trajets animes (svg en ligne) partagent le meme
   cadrage, donc les memes coordonnees. La France est a 51 % / 26 %. */
.planisphere, .trajets {
  position: absolute; top: 50%; left: 50%;
  width: min(155%, 1750px); height: auto;
  transform: translate(-45%, -30%);
  pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(78% 88% at 54% 46%, #000 32%, transparent 76%);
          mask-image: radial-gradient(78% 88% at 54% 46%, #000 32%, transparent 76%);
}
.planisphere { z-index: 0; opacity: .9; }
.trajets { z-index: 1; }
.trajets .arc {
  fill: none; stroke: var(--rouge); stroke-width: 1.7; stroke-linecap: round;
  stroke-dasharray: 7 9; opacity: .85;
  animation: defiler 2.4s linear infinite;
}
.trajets .halo { fill: var(--rouge); opacity: .18; transform-origin: 710px 145px;
  animation: battre 3.2s ease-in-out infinite; }
.trajets .pt { fill: var(--creme); }
.trajets .orig { fill: #7c869e; }
@keyframes defiler { to { stroke-dashoffset: -32; } }
@keyframes battre  { 0%,100% { transform: scale(1); opacity: .18; } 50% { transform: scale(1.35); opacity: .08; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trajets .arc, .trajets .halo { animation: none; }
}

.entete .dedans { position: relative; z-index: 2; }
h1 {
  font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800;
  letter-spacing: -0.012em; line-height: 1.02; margin: 0 0 1.1rem; max-width: 15ch;
}
.filet-rouge { width: 5.5rem; height: 4px; background: var(--rouge); margin: 0 0 1.3rem; }
.chapeau {
  font-family: var(--garam); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.45;
  color: #b9b3a7; margin: 0; max-width: 30ch;
}

/* Entete mince des pages secondaires : meme fond, sans la carte. */
.entete--mince { padding: 3.8rem 0 2.6rem; }
.entete--mince h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: .8rem; }
.entete--mince .chapeau { font-size: 1.05rem; }

.surtitre {
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .34em; color: var(--rouge-txt); margin: 0 0 1.1rem;
}

/* ---------- Bandeau de chiffres --------------------------------- */
.chiffres { border-bottom: 1px solid var(--filet); background: #0e0f13; }
.chiffres .dedans { display: grid; grid-template-columns: repeat(4, 1fr); }
.chiffre { padding: 1.6rem 1rem 1.5rem; border-left: 1px solid var(--filet); }
.chiffre:first-child { border-left: 0; padding-left: 0; }
.chiffre b { display: block; font-family: var(--serif); font-weight: 800; font-size: 2.1rem;
  line-height: 1; color: var(--creme); letter-spacing: -.02em; }
.chiffre span { display: block; margin-top: .45rem; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--attenue); }
.chiffre.accent b { color: var(--rouge-txt); }

/* ---------- Sections -------------------------------------------- */
main { max-width: var(--mesure); margin: 0 auto; padding: 0 1.6rem 3rem; }
.section { position: relative; padding-top: 3.6rem; }
.section::before {
  content: attr(data-num); position: absolute; top: 1.6rem; right: -.4rem;
  font-family: var(--serif); font-weight: 800; font-size: 7rem; line-height: 1;
  color: #fff; opacity: .035; pointer-events: none; user-select: none;
}
h2 {
  position: relative; font-family: var(--sans); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3em; color: var(--creme);
  margin: 0 0 1.4rem; padding-bottom: .8rem;
}
h2::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--rouge) 0 3.2rem, var(--filet) 3.2rem 100%);
}
p { margin: 0 0 1.15rem; }

/* ---------- Les ouvrages, composes comme des plats --------------- */
.ouvrages { display: grid; gap: 1.6rem; }
.livre {
  position: relative; display: grid; grid-template-columns: 2.6rem 1fr;
  background: var(--influence); border: 1px solid var(--influence-bord);
  border-top: 3px solid var(--rouge);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,.9);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.livre:hover { border-color: #35446a; transform: translateY(-3px); box-shadow: 0 26px 48px -26px rgba(0,0,0,.95); }
.tranche {
  background: var(--influence-tranche); border-right: 1px solid var(--influence-bord);
  display: flex; align-items: center; justify-content: center; padding: 1.4rem 0;
}
.tranche span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--attenue); white-space: nowrap;
}
.plat { padding: 1.7rem 1.7rem 1.5rem; display: flex; flex-direction: column; }
.livre--wagner { background: var(--wagner); border-color: var(--wagner-bord); border-top-color: var(--rouge); }
.livre--wagner:hover { border-color: #4e473d; }
.livre--wagner .tranche { background: var(--wagner-tranche); border-right-color: var(--wagner-bord); }

/* Etiquette « a paraitre », en haut a droite du plat. */
.badge {
  position: absolute; top: .9rem; right: .9rem;
  font-family: var(--mono); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rouge-txt); border: 1px solid rgba(220,99,85,.6); padding: .28rem .55rem;
  background: rgba(201,72,60,.08);
}
.plat .surtitre { font-size: .56rem; letter-spacing: .24em; margin-bottom: .9rem; padding-right: 6rem; }
.plat h3 { font-family: var(--serif); font-size: 1.85rem; font-weight: 800; line-height: 1.08;
  letter-spacing: -.01em; margin: 0 0 .35rem; }
.soustitre { font-family: var(--garam); font-style: italic; font-size: 1.08rem; line-height: 1.4;
  color: var(--attenue); margin: 0 0 .8rem; }
.annees { font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; color: var(--rouge-txt); margin: 0 0 1.3rem; }
.exergue { font-family: var(--garam); font-style: italic; font-size: 1.14rem; line-height: 1.5;
  color: var(--creme); border-left: 2px solid var(--rouge); padding-left: 1.1rem; margin: 0 0 1.4rem; }
.fiche { font-family: var(--mono); font-size: .66rem; line-height: 1.75; color: var(--attenue);
  padding-top: 1rem; border-top: 1px solid var(--filet); margin-top: auto; margin-bottom: 0; }

/* ---------- Methode --------------------------------------------- */
.regles { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.regles li { position: relative; padding: .7rem 0 .7rem 2.6rem; border-bottom: 1px solid var(--filet); }
.regles li::before { content: attr(data-n); position: absolute; left: 0; top: .78rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--rouge-txt); }
.regles li:last-child { border-bottom: 0; }

a { color: var(--rouge-txt); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover, a:focus { color: var(--creme); }
a:focus-visible { outline: 2px solid var(--rouge); outline-offset: 3px; }
.contact-adresse { font-family: var(--mono); font-size: .95rem; }
/* Adresse de contact : le HTML porte des fragments leurres, masques ici.
   Un robot qui lit le code recupere une adresse fausse ; le visiteur voit
   et copie la bonne. Ne pas retirer cette regle. */
.adr i { display: none; }
.note { font-family: var(--sans); font-size: .72rem; color: var(--attenue); }

/* ---------- Pages secondaires ----------------------------------- */
.prose h2 { margin-top: 2.6rem; }
.prose p, .prose li { max-width: 40rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.15rem; }
.prose li { margin-bottom: .35rem; }
.maj { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; color: var(--attenue); margin-top: 2.5rem; }

/* ---------- Pied de page ---------------------------------------- */
.pied { margin-top: 5rem; border-top: 1px solid var(--filet); background: #0e0f13; }
.pied .dedans { padding-top: 2.6rem; padding-bottom: 1.4rem; }
.pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pied h4 { font-family: var(--sans); font-size: .6rem; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--attenue); margin: 0 0 .9rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0 0 .45rem; }
.pied a { border: 0; color: var(--creme); font-family: var(--sans); font-size: .82rem; }
.pied a:hover, .pied a:focus { color: var(--rouge-txt); }
.pied .marque { margin-bottom: .9rem; }
.pied-texte { font-family: var(--garam); font-style: italic; color: var(--attenue); font-size: 1rem; line-height: 1.5; margin: 0; max-width: 24ch; }
.pied-bas { margin-top: 2.2rem; padding-top: 1.1rem; border-top: 1px solid var(--filet);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--sans); font-size: .7rem; color: var(--attenue); letter-spacing: .03em; }

/* ---------- Adaptations ----------------------------------------- */
@media (min-width: 52rem) { .ouvrages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 44rem) {
  html { font-size: 16px; }
  .barre .dedans { flex-wrap: wrap; height: auto; padding-top: .75rem; padding-bottom: .7rem; row-gap: .55rem; }
  .barre nav { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: .3rem 1.15rem; }
  .barre nav a { font-size: .56rem; letter-spacing: .12em; }
  .entete { padding: 4rem 0 2.6rem; }
  .section::before { font-size: 4.5rem; opacity: .03; }
  .livre { grid-template-columns: 2rem 1fr; }
  .plat { padding: 1.3rem 1.2rem 1.1rem; }
  .chiffres .dedans { grid-template-columns: 1fr 1fr; }
  .chiffre { border-left: 1px solid var(--filet); padding-left: 1rem; }
  .chiffre:nth-child(odd) { border-left: 0; padding-left: 0; }
  .chiffre:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .pied-grille { grid-template-columns: 1fr; gap: 1.6rem; }
}
@media print {
  body { background: #fff; color: #000; }
  body::after, .planisphere, .trajets, .entete, .barre { display: none; }
  a { border: 0; }
}
