/* damien-bacon : une page, sans framework.

   SIGNÉ À L'ENCRE BLEUE (05/11/2026). Une identité à Damien, pas celle de Valyo (Cyril :
   « on est trop proche de Valyo ») et en bleu (« Damien aime le bleu »). En France, on
   signe un acte au stylo bleu pour distinguer l'original de la copie ; sa règle de
   marchand de biens, c'est « ce qui est écrit ». D'où :
   - papier blanc, titres à l'encre bleue, texte en bleu-noir, un lavis bleu très clair ;
   - une seule famille, Newsreader : un tirage « titre » pour les grandes tailles, un
     tirage « texte », une italique ; les étiquettes en capitales espacées ;
   - la signature : la carte de son terrain (Bouches-du-Rhône et Var), où le lieu de
     l'opération qu'on lit s'allume (carte.js) ; puis un seul bandeau bleu plein, pour
     sa phrase sur la méthode ;
   - pas de thème sombre : un document à l'encre se lit sur papier.
   Ce qui le sépare de Valyo : pas d'Onest, pas de nuit, pas de givre, pas de bleu vif. */

@font-face {
  font-family: "Newsreader Titre";
  src: url("assets/fonts/newsreader-titre.woff2") format("woff2");
  font-weight: 420;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-texte.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italique.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- les jetons ---------- */
:root {
  color-scheme: light;
  --papier: #ffffff;
  --lavis: #eef2fc;
  --encre: #2340b8;
  --encre-fonce: #182c8c;
  --bleu-noir: #141c3c;
  --texte: #2a3253;
  --texte-2: #586186;
  --filet: #d8def2;
  --trait-dessin: #8e9cd2;

  --titre: "Newsreader Titre", "Newsreader", Georgia, "Times New Roman", serif;
  --lecture: "Newsreader", Georgia, "Times New Roman", serif;

  --duree: 160ms;
  --largeur: 1240px;
  --marge: clamp(20px, 4.5vw, 56px);
  --respiration: clamp(80px, 11vw, 152px);
}

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

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

body {
  margin: 0;
  background: var(--papier);
  color: var(--texte);
  font-family: var(--lecture);
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3 {
  font-family: var(--titre);
  font-weight: 420;
  color: var(--encre);
  text-wrap: balance;
}

::selection {
  background: var(--encre);
  color: var(--papier);
}

/* AUCUN LIEN SOULIGNÉ, ni au survol (Cyril, 04/11/2026) : un lien se reconnaît à sa
   couleur et à sa graisse ; au survol, l'encre fonce ; au clavier, l'anneau. */
a {
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duree) ease, background-color var(--duree) ease, border-color var(--duree) ease;
}

a:hover {
  color: var(--encre-fonce);
}

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

.lien-discret {
  color: var(--bleu-noir);
}

.lien-discret:hover {
  color: var(--encre);
}

.chiffre {
  font-variant-numeric: lining-nums tabular-nums;
}

.cadre {
  width: min(100% - 2 * var(--marge), var(--largeur));
  margin-inline: auto;
}

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

.evitement {
  position: absolute;
  left: var(--marge);
  top: -60px;
  z-index: 20;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--encre);
  color: var(--papier);
}

.evitement:focus {
  top: 12px;
  color: var(--papier);
}

/* l'étiquette : capitales espacées, pour le public d'un sujet ou une rubrique */
.etiquette {
  font-family: var(--lecture);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texte-2);
}

/* ---------- les boutons ---------- */
.bouton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--encre);
  border-radius: 999px;
  background: transparent;
  color: var(--encre);
  font-family: var(--lecture);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.bouton svg {
  width: 14px;
  height: 14px;
}

.bouton:hover {
  background: var(--lavis);
  color: var(--encre-fonce);
}

.bouton--plein {
  background: var(--encre);
  color: var(--papier);
}

.bouton--plein:hover {
  background: var(--encre-fonce);
  border-color: var(--encre-fonce);
  color: var(--papier);
}

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

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.lien-fleche svg {
  width: 14px;
  height: 14px;
}

/* ---------- la barre ---------- */
.barre {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--papier);
  border-bottom: 1px solid var(--filet);
}

.barre__dedans {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.barre__nom {
  font-family: var(--titre);
  font-size: 23px;
  font-weight: 420;
  letter-spacing: -0.01em;
}

.barre nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
}

.barre nav a:not(.bouton) {
  color: var(--bleu-noir);
  font-size: 17px;
}

.barre nav a:not(.bouton):hover {
  color: var(--encre);
}

@media (max-width: 640px) {
  .barre__lien-tertiaire {
    display: none;
  }
}

@media (max-width: 440px) {
  .barre__lien-secondaire {
    display: none;
  }
}

/* ---------- le haut : le portrait, le nom, trois phrases ---------- */
.haut {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px);
}

.haut__portrait {
  grid-column: 1;
  grid-row: 1;
}

.haut__texte {
  grid-column: 2;
  grid-row: 1;
}

.haut__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 4px;
}

.haut h1 {
  font-size: clamp(60px, 2.4rem + 6.2vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.028em;
}

.haut__fonction {
  margin-top: 20px;
  font-style: italic;
  font-size: clamp(22px, 1.1rem + 0.9vw, 30px);
  line-height: 1.25;
  color: var(--encre);
}

.haut__bio {
  margin-top: 28px;
  max-width: 31em;
}

.haut__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .haut {
    grid-template-columns: minmax(0, 1fr);
  }

  .haut__portrait,
  .haut__texte {
    grid-column: 1;
    grid-row: auto;
  }

  .haut__portrait {
    max-width: 440px;
  }
}

/* ---------- les sections ---------- */
.section {
  padding-block: var(--respiration);
}

.section__titre {
  max-width: 18ch;
  font-size: clamp(38px, 1.5rem + 3vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.section__chapo {
  margin-top: 18px;
  max-width: 32em;
  font-style: italic;
  font-size: clamp(20px, 1rem + 0.5vw, 24px);
  line-height: 1.4;
  color: var(--texte-2);
}

/* ---------- le métier : la carte, fixe à gauche, et les trois opérations ---------- */
.metier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
}

.carte {
  position: sticky;
  top: 112px;
  align-self: start;
}

.carte svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.carte__dep {
  fill: var(--lavis);
  stroke: var(--encre);
  stroke-width: 1;
  stroke-linejoin: round;
}

.carte__dep-nom {
  fill: var(--texte-2);
  font-family: var(--lecture);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.carte__lieu {
  font-weight: 400;
}

.carte__lieu text {
  fill: var(--bleu-noir);
  font-family: var(--lecture);
  font-style: italic;
  font-size: 21px;
}

.carte__point {
  fill: var(--encre);
  stroke: var(--papier);
  stroke-width: 2;
  transition: opacity 240ms ease;
}

.carte__halo {
  fill: var(--encre);
  opacity: 0;
  transition: opacity 240ms ease;
}

.carte.est-vivante .carte__lieu:not(.est-actif):not(:hover):not(:focus-visible) .carte__point {
  opacity: 0.45;
}

.carte.est-vivante .carte__lieu:not(.est-actif):not(:hover):not(:focus-visible) text {
  fill: var(--texte-2);
}

.carte__lieu.est-actif .carte__halo,
.carte__lieu:hover .carte__halo,
.carte__lieu:focus-visible .carte__halo {
  opacity: 0.16;
}

.operations {
  padding: 0;
  list-style: none;
}

.operation {
  padding-block: 36px 44px;
  border-top: 1px solid var(--filet);
}

.operation:first-child {
  padding-top: 0;
  border-top: 0;
}

.operation__tete {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.operation h3 {
  font-size: clamp(32px, 1.3rem + 1.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.operation__chiffre {
  font-style: italic;
  font-size: clamp(24px, 1rem + 1vw, 30px);
  line-height: 1.1;
  color: var(--encre);
}

.operation__unite {
  font-size: 16px;
  color: var(--texte-2);
}

.operation__dessin {
  margin-top: 24px;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: 4px;
  background: var(--lavis);
}

.operation__dessin svg {
  width: 100%;
  height: auto;
}

.operation__recit {
  margin-top: 20px;
  max-width: 30em;
}

/* quand la carte rétrécit, ses noms grossissent pour rester lisibles */
@media (max-width: 860px) {
  .carte__lieu text {
    font-size: 25px;
  }

  .carte__dep-nom {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .carte__lieu text {
    font-size: 30px;
  }

  .carte__dep-nom {
    font-size: 17px;
  }
}

@media (max-width: 860px) {
  .metier {
    grid-template-columns: minmax(0, 1fr);
  }

  .carte {
    position: static;
    max-width: 560px;
  }
}

/* le dessin coté, à l'encre : traits clairs, ce qui a été vérifié en encre pleine */
.d-trait {
  fill: none;
  stroke: var(--trait-dessin);
  stroke-width: 1;
}

.d-tirets {
  stroke-dasharray: 4 4;
}

.d-fort {
  fill: none;
  stroke: var(--encre);
  stroke-width: 1.6;
}

.d-plein,
.d-fond {
  fill: var(--papier);
}

.d-hachure-trait {
  stroke: var(--trait-dessin);
  stroke-width: 1;
}

.d-hachure-fort {
  stroke: var(--encre);
  stroke-width: 1;
}

.d-legende {
  fill: var(--texte-2);
  font-family: var(--lecture);
  font-style: italic;
  font-size: 14px;
}

.d-cote {
  fill: var(--encre);
  font-family: var(--lecture);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- la phrase, en bleu plein ---------- */
.bandeau {
  padding-block: clamp(88px, 12vw, 168px);
  background: var(--encre);
  color: var(--papier);
}

.bandeau p {
  max-width: 24ch;
  font-style: italic;
  font-size: clamp(32px, 1.2rem + 3vw, 60px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.bandeau ::selection {
  background: var(--papier);
  color: var(--encre);
}

/* ---------- Valyo, mis en avant : le logiciel qu'il a cofondé ---------- */
.valyo {
  padding-block: var(--respiration);
  border-bottom: 1px solid var(--filet);
}

.valyo__dedans {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

/* le logo garde ses couleurs officielles : lettres marine, point bleu (valyo-brand) */
.valyo h2 {
  margin-top: 18px;
  color: #0b1f3b;
}

.logo-valyo {
  width: clamp(170px, 14vw, 220px);
  height: auto;
}

.valyo__phrase {
  margin-top: 28px;
  font-family: var(--titre);
  font-size: clamp(26px, 1.2rem + 1.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--bleu-noir);
}

.valyo__phrase + p {
  margin-top: 18px;
}

.valyo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.valyo__visuel {
  padding: clamp(20px, 3vw, 44px);
  border-radius: 6px;
  background: var(--lavis);
}

.valyo__visuel img {
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .valyo__dedans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- les interventions ---------- */
.interventions {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}

.interventions__colonne {
  position: sticky;
  top: 112px;
  align-self: start;
}

.fiche {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-top: 36px;
  padding: 16px;
  border-radius: 4px;
  background: var(--lavis);
  color: var(--texte);
  font-weight: 400;
}

.fiche img {
  width: 72px;
  height: auto;
  border-radius: 2px;
}

.fiche__titre {
  display: block;
  font-family: var(--titre);
  font-size: 23px;
  line-height: 1.1;
  color: var(--encre);
}

.fiche__detail {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
}

.fiche__lien {
  display: inline-block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--encre);
}

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

.fiche:hover .fiche__lien {
  color: var(--encre-fonce);
}

.interventions__photo {
  margin-top: 16px;
  font-size: 16px;
  color: var(--texte-2);
}

.interventions__actions {
  margin-top: 28px;
}

.sujets {
  padding: 0;
  list-style: none;
}

.sujets li {
  padding-block: 28px 32px;
  border-top: 1px solid var(--filet);
}

.sujets li:first-child {
  padding-top: 8px;
  border-top: 0;
}

.sujets h3 {
  margin-top: 10px;
  font-size: clamp(26px, 1.1rem + 1vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.sujets h3 + p {
  margin-top: 12px;
}

.recent {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--filet);
}

.recent__date {
  margin-top: 18px;
  font-style: italic;
  color: var(--texte-2);
}

.recent__quoi {
  margin-top: 4px;
  font-family: var(--titre);
  font-size: clamp(26px, 1.1rem + 1vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--encre);
}

.recent__detail {
  margin-top: 12px;
}

.recent__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 470px;
  margin-top: 24px;
}

.recent__photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.recent__photos figcaption {
  margin-top: 8px;
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--texte-2);
}

@media (max-width: 860px) {
  .interventions {
    grid-template-columns: minmax(0, 1fr);
  }

  .interventions__colonne {
    position: static;
  }
}

/* ---------- le pied : l'adresse, en grand ---------- */
.bas {
  border-top: 1px solid var(--encre);
}

.bas__dedans {
  padding-block: clamp(72px, 9vw, 120px) 36px;
}

.bas__mail {
  display: inline-block;
  margin-top: 16px;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 1rem + 4.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.bas__liens {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.bas__liens a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
}

.bas__pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 16px;
  border-top: 1px solid var(--filet);
  font-size: 15px;
  color: var(--texte-2);
}

.bas__pied a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- les pages simples : mentions légales, 404 ---------- */
.page-simple {
  padding-block: clamp(48px, 8vw, 104px) var(--respiration);
}

.page-simple h1 {
  max-width: 16ch;
  font-size: clamp(46px, 1.8rem + 4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.026em;
}

.page-simple__chapo {
  margin-top: 18px;
  max-width: 32em;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--texte-2);
}

.page-simple .haut__actions {
  margin-top: 36px;
}

.legal {
  max-width: 44em;
  margin-top: clamp(40px, 5vw, 64px);
}

.legal h2 {
  margin-top: 44px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  margin: 12px 0 0;
}

.legal ul {
  padding-left: 20px;
}

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

.legal strong {
  color: var(--bleu-noir);
  font-weight: 600;
}

.legal code {
  font-size: 0.9em;
}

.legal .legal__date {
  margin-top: 44px;
  font-style: italic;
  font-size: 16px;
  color: var(--texte-2);
}

/* ---------- aucun mouvement pour qui n'en veut pas ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
