@charset "UTF-8";
/* =========================================================================
   IndéConcept — feuille de style unique

   Direction : « atelier de précision ».
   Bandes carbone rouge et noir en haut et en bas — l'identité conservée —
   et entre les deux un espace clair, structuré et gridé, façon plan
   technique. Aucune police distante : le site ne dépend d'aucun serveur
   extérieur (rapidité, et rien qui parte chez un tiers).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Jetons
   ------------------------------------------------------------------------- */
:root {
  /* Carbone rouge : angle de l'en-tête et barre de menu — la signature.
     Trame découpée dans l'image d'origine du site (14 × 14 px, sa période). */
  --carbone-fond:   #161011;
  --carbone:        url("../img/carbone.png") repeat;

  /* Carbone noir : les grandes surfaces sombres (bandeaux, pied de page).
     Même tissage, désaturé et réétalé sur une plage de gris sombres. */
  --carbone-noir-fond: #141414;
  --carbone-noir:      url("../img/carbone-noir.png") repeat;

  /* Rouge de signalisation, repris de la trame carbone d'origine */
  --rouge:          #b3151d;
  --rouge-fonce:    #7d0e14;
  --rouge-clair:    #e8434c;   /* rouge sur fond sombre */
  --rouge-pale:     #f47c83;   /* petits textes sur la trame noire (contraste AA) */

  /* Neutres, tous légèrement tirés vers le chaud pour tenir avec le rouge */
  --encre:          #16110f;
  --acier:          #55504d;
  --acier-clair:    #6b6663;
  --trait:          #ddd8d4;
  --papier:         #ffffff;
  --papier-gris:    #f3f1ef;

  /* Couleurs de sens, distinctes de l'accent */
  --ok:             #1f7a45;
  --ok-fond:        #e7f5ec;
  --alerte:         #9a5b00;
  --alerte-fond:    #fdf3e2;
  --erreur:         #a3131b;
  --erreur-fond:    #fcebec;
  --info:           #10527a;
  --info-fond:      #e8f2f9;

  /* Typographie */
  --titre:   "Arial Narrow", "Helvetica Neue", "Liberation Sans Narrow", "Nimbus Sans Narrow", Arial, sans-serif;
  --marque:  Georgia, "Times New Roman", "Liberation Serif", serif;
  --texte:   "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --largeur:        1120px;
  --largeur-texte:  68ch;
  --rayon:          4px;

  /* Hauteurs de l'en-tête. L'angle carbone ne descend pas jusqu'en bas du
     bandeau blanc — c'est la proportion de l'image d'origine (69 px de forme
     pour 85 px de blanc). Sa diagonale est calée sur --h-angle pour rester
     exactement à 45°. */
  --h-blanc:        78px;
  --h-angle:        64px;
  --h-filet:        10px;

  --ombre-carte:    0 1px 2px rgba(22, 17, 15, .06), 0 8px 24px rgba(22, 17, 15, .07);
  --ombre-relief:   0 2px 6px rgba(22, 17, 15, .10), 0 16px 40px rgba(22, 17, 15, .12);
}

/* -------------------------------------------------------------------------
   2. Base
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--acier);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, object, iframe { max-width: 100%; }
img, svg, video { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--titre);
  font-weight: 700;
  line-height: 1.1;
  color: var(--encre);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rouge-fonce); }

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

hr { border: 0; border-top: 1px solid var(--trait); margin: 2.5rem 0; }

.lien-evitement {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: .7em 1.2em;
  background: var(--rouge); color: #fff;
  font-weight: 600; text-decoration: none;
}
.lien-evitement:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* -------------------------------------------------------------------------
   3. Conteneurs et bandes
   ------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bande { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.bande--serree { padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0; }
.bande--grise { background: var(--papier-gris); }
.bande--carbone {
  background: var(--carbone-noir-fond) var(--carbone-noir);
  color: rgba(255, 255, 255, .8);
}
.bande--carbone h2, .bande--carbone h3 { color: #fff; }

.bande--rouge {
  background: var(--rouge);
  color: rgba(255, 255, 255, .92);
}
.bande--rouge h2 { color: #fff; }

/* Étiquette de section : dit à quelle catégorie appartient ce qui suit. */
.etiquette {
  display: block;
  margin: 0 0 .75rem;
  font-family: var(--titre);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rouge);
}
/* Sur fond sombre, le rouge de base ne passe pas le contraste : on éclaircit. */
.hero .etiquette,
.bande--carbone .etiquette { color: var(--rouge-pale); }
.bande--rouge .etiquette   { color: rgba(255, 255, 255, .82); }

.tete-bande { max-width: 42rem; margin-bottom: 2.5rem; }
.tete-bande p { font-size: 1.125rem; color: var(--acier); }
.bande--carbone .tete-bande p { color: rgba(255, 255, 255, .72); }
.bande--rouge .tete-bande p { color: rgba(255, 255, 255, .9); }

.tete-bande--centre { margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------------------------------------------------------------
   4. En-tête : bandeau blanc, logo, angle carbone, filet gris
   Reprend la composition d'origine du site.
   ------------------------------------------------------------------------- */
.entete { background: var(--papier); }

.entete__rang {
  position: relative;
  height: var(--h-blanc);
}

/* Le logo est aligné sur la colonne de contenu du reste du site. */
.entete__interieur {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

/* L'angle carbone, décalqué de l'image d'origine : diagonale à exactement
   45°, puis coin arrondi sur le dernier cinquième de la hauteur. Les points
   ci-dessous sont les mesures relevées sur Header_carb.png, ramenées à la
   hauteur de l'angle — la courbe reste donc juste à toutes les tailles. */
.entete__carbone {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--h-angle);
  width: clamp(120px, 54%, 720px);
  background: var(--carbone-fond) var(--carbone);
  -webkit-clip-path: polygon(
      0 0, 100% 0, 100% 100%,
      calc(var(--h-angle) * 1.232) 100%,
      calc(var(--h-angle) * 1.188) calc(var(--h-angle) * .986),
      calc(var(--h-angle) * 1.072) calc(var(--h-angle) * .957),
      calc(var(--h-angle) * 1.000) calc(var(--h-angle) * .928),
      calc(var(--h-angle) *  .942) calc(var(--h-angle) * .899),
      calc(var(--h-angle) *  .899) calc(var(--h-angle) * .870),
      calc(var(--h-angle) *  .855) calc(var(--h-angle) * .841),
      calc(var(--h-angle) *  .812) calc(var(--h-angle) * .812));
  clip-path: polygon(
      0 0, 100% 0, 100% 100%,
      calc(var(--h-angle) * 1.232) 100%,
      calc(var(--h-angle) * 1.188) calc(var(--h-angle) * .986),
      calc(var(--h-angle) * 1.072) calc(var(--h-angle) * .957),
      calc(var(--h-angle) * 1.000) calc(var(--h-angle) * .928),
      calc(var(--h-angle) *  .942) calc(var(--h-angle) * .899),
      calc(var(--h-angle) *  .899) calc(var(--h-angle) * .870),
      calc(var(--h-angle) *  .855) calc(var(--h-angle) * .841),
      calc(var(--h-angle) *  .812) calc(var(--h-angle) * .812));
}

/* Le filet gris qui souligne l'en-tête. */
.entete__filet {
  display: block;
  height: var(--h-filet);
  background: linear-gradient(to bottom, #9d9d9f 0, #8d8d8f 40%, #7c7c7e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* Le logotype, redessiné en texte : net à toutes les tailles, et modifiable
   sans repasser par un logiciel de retouche. */
.logo {
  font-family: var(--marque);
  font-style: italic;
  font-size: clamp(1.4rem, 1.05rem + 1.35vw, 2.1rem);
  line-height: 1;
  letter-spacing: -.005em;
  color: var(--encre);
  text-decoration: none;
  white-space: nowrap;
}
.logo em { font-style: italic; color: var(--rouge); }
.logo:hover em { color: var(--rouge-fonce); }

/* -------------------------------------------------------------------------
   5. Navigation — barre carbone sous l'en-tête
   ------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--carbone-fond) var(--carbone);
  border-bottom: 2px solid var(--rouge);
}

.nav__liste {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: .3rem 1.5rem;
  list-style: none;
}

.nav__liste a {
  display: block;
  padding: .55rem .7rem;
  border-radius: var(--rayon);
  font-family: var(--titre);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}

.nav__item--actif a {
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--rouge);
}

.nav__bouton {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border: 0;
  background: transparent;
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}
.nav__bouton-barres { position: relative; width: 20px; height: 2px; background: #fff; }
.nav__bouton-barres::before,
.nav__bouton-barres::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .18s ease, top .18s ease;
}
.nav__bouton-barres::before { top: -6px; }
.nav__bouton-barres::after  { top:  6px; }
.nav__bouton[aria-expanded="true"] .nav__bouton-barres { background: transparent; }
.nav__bouton[aria-expanded="true"] .nav__bouton-barres::before { top: 0; transform: rotate(45deg); }
.nav__bouton[aria-expanded="true"] .nav__bouton-barres::after  { top: 0; transform: rotate(-45deg); }

/* -------------------------------------------------------------------------
   6. Bandeau de page
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2.75rem, 2rem + 3.5vw, 5rem) 0;
  background: var(--carbone-noir-fond) var(--carbone-noir);
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}

/* Pas de calque au-dessus de la trame : une grille de traits blancs de 1 px
   se rééchantillonne mal quand le navigateur est zoomé ou sur écran haute
   densité, et fait apparaître des carrés clairs sur le fond. La trame carbone
   suffit à donner le registre technique. */
.hero > * { position: relative; }

.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__accroche {
  max-width: 46rem;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem);
  color: rgba(255, 255, 255, .74);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero--large { padding: clamp(3.5rem, 2.5rem + 5vw, 7rem) 0; }

/* Fil d'ariane discret sous le titre */
.hero__fil {
  margin: 1.5rem 0 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.hero__fil a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.hero__fil a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------------------
   7. Contenu principal
   ------------------------------------------------------------------------- */
.contenu { flex: 1 0 auto; }

.prose { max-width: var(--largeur-texte); }
.prose p, .prose li { font-size: 1.0625rem; }
.prose > h2 { margin-top: 2.5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 2rem; }
.prose strong { color: var(--encre); font-weight: 600; }
.prose ul { margin: 0 0 1.15em; padding-left: 1.15em; }
.prose li { margin-bottom: .4em; }
.prose--centre { margin-left: auto; margin-right: auto; }

/* Le logotype dans le corps du texte */
.marque { font-family: var(--marque); font-style: italic; font-weight: 400; color: var(--encre); white-space: nowrap; }
.marque em { font-style: italic; color: var(--rouge); }
.bande--carbone .marque, .bande--rouge .marque { color: #fff; }
.bande--rouge .marque em { color: #fff; }

/* Exergue */
.exergue {
  margin: 2rem 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border-left: 3px solid var(--rouge);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--encre);
}

/* -------------------------------------------------------------------------
   8. Grilles et cartes
   ------------------------------------------------------------------------- */
.grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grille--large { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.carte {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border: 1px solid var(--trait);
  border-top: 3px solid var(--rouge);
  border-radius: var(--rayon);
  background: var(--papier);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bande--grise .carte { background: var(--papier); }

a.carte:hover, a.carte:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--ombre-relief);
  color: inherit;
}

.carte h3 { margin-bottom: .4em; }
.carte p { font-size: .98rem; }
.carte__lire {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--titre);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rouge);
}
.carte__lire::after { content: " →"; }

/* Vignette d'une réalisation */
.carte--projet { padding: 0; overflow: hidden; }
.carte--projet .carte__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--papier-gris);
  border-bottom: 1px solid var(--trait);
}
.carte--projet .carte__corps { display: flex; flex-direction: column; flex: 1; padding: 1.35rem; }
.carte--projet .carte__corps > p:last-of-type { margin-bottom: 1rem; }

.carte__langue {
  display: block;
  margin-bottom: .3em;
  font-family: var(--titre);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acier-clair);
}

/* Chiffres clés */
.reperes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--trait);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  overflow: hidden;
}
.repere { padding: 1.5rem; background: var(--papier); }
.repere__valeur {
  display: block;
  font-family: var(--titre);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--encre);
  font-variant-numeric: tabular-nums;
}
.repere__libelle {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acier-clair);
}

/* -------------------------------------------------------------------------
   9. Boutons
   ------------------------------------------------------------------------- */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid var(--rouge);
  border-radius: var(--rayon);
  background: var(--rouge);
  font-family: var(--titre);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.bouton:hover, .bouton:focus-visible {
  background: var(--rouge-fonce);
  border-color: var(--rouge-fonce);
  color: #fff;
}

.bouton--fantome {
  background: transparent;
  border-color: currentColor;
  color: var(--rouge);
}
.bouton--fantome:hover, .bouton--fantome:focus-visible {
  background: var(--rouge);
  border-color: var(--rouge);
  color: #fff;
}

.hero .bouton--fantome,
.bande--carbone .bouton--fantome { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .bouton--fantome:hover,
.bande--carbone .bouton--fantome:hover { background: #fff; border-color: #fff; color: var(--encre); }

.bande--rouge .bouton {
  background: #fff; border-color: #fff; color: var(--rouge);
}
.bande--rouge .bouton:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.bande--rouge .bouton--fantome { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.bande--rouge .bouton--fantome:hover { background: #fff; color: var(--rouge); }

.bouton--petit { padding: .5rem 1rem; font-size: .85rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions--centre { justify-content: center; }

/* -------------------------------------------------------------------------
   10. Formulaires
   ------------------------------------------------------------------------- */
.formulaire { max-width: 40rem; }

.formulaire fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}
.formulaire legend {
  margin-bottom: 1.1rem;
  padding: 0;
  font-family: var(--titre);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--encre);
}

.champ { margin-bottom: 1.15rem; }
.champ label {
  display: block;
  margin-bottom: .35rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
}
.champ .obligatoire { color: var(--rouge); }

input[type="text"], input[type="email"], input[type="url"],
input[type="password"], input[type="tel"], textarea, select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier);
  font-family: inherit;
  font-size: 1rem;
  color: var(--encre);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(179, 21, 29, .13);
  outline: none;
}
textarea { min-height: 11em; resize: vertical; }

.aide { margin: .35rem 0 0; font-size: .84rem; color: var(--acier-clair); }

.pot-de-miel {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* -------------------------------------------------------------------------
   11. Messages
   ------------------------------------------------------------------------- */
.message {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid;
  border-left-width: 4px;
  border-radius: var(--rayon);
  font-size: .98rem;
}
.message p { margin-bottom: .4em; }
.message ul { margin: .4em 0 0; padding-left: 1.15em; }
.message--succes { border-color: var(--ok);     background: var(--ok-fond);     color: #14512f; }
.message--erreur { border-color: var(--erreur); background: var(--erreur-fond); color: #7a0e14; }
.message--info   { border-color: var(--info);   background: var(--info-fond);   color: #0c3d5c; }
.message--alerte { border-color: var(--alerte); background: var(--alerte-fond); color: #6d4100; }

/* -------------------------------------------------------------------------
   12. Fiche profil (CV)
   ------------------------------------------------------------------------- */
.profil {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  border: 1px solid var(--trait);
  border-top: 3px solid var(--rouge);
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
}
.profil__photo {
  width: 160px; height: 160px;
  object-fit: cover;
  border-radius: var(--rayon);
  background: var(--papier-gris);
}
.profil dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .55rem 1.5rem;
  margin: 0;
  font-size: .98rem;
}
.profil dt {
  font-family: var(--titre);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--acier-clair);
  padding-top: .15em;
}
.profil dd { margin: 0; color: var(--encre); }

.cv-document {
  width: 100%;
  aspect-ratio: 1 / 1.35;
  min-height: 460px;
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--papier-gris);
}

/* -------------------------------------------------------------------------
   13. Sondage
   ------------------------------------------------------------------------- */
.sondage {
  padding: 1.75rem;
  border: 1px solid var(--trait);
  border-top: 3px solid var(--rouge);
  border-radius: var(--rayon);
  background: var(--papier);
  box-shadow: var(--ombre-carte);
}
.sondage + .sondage { margin-top: 1.5rem; }
/* Titre de niveau 2 pour la structure du document, mais à la taille d'un h3. */
.sondage__titre {
  margin-bottom: 1.1rem;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem);
}
.sondage__boutons { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.35rem; }

.sondage__jauge {
  display: flex;
  height: 34px;
  border-radius: var(--rayon);
  background: var(--papier-gris);
  border: 1px solid var(--trait);
  overflow: hidden;
}
.sondage__barre {
  height: 100%;
  line-height: 32px;
  font-family: var(--titre);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  transition: width .45s ease;
}
.sondage__barre--a { background: var(--encre); }
.sondage__barre--b { background: var(--rouge); }
.sondage__barre--c { background: var(--acier-clair); }

.sondage__scores {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  margin: .9rem 0 0;
  font-size: .9rem;
  color: var(--acier-clair);
  font-variant-numeric: tabular-nums;
}
.sondage__scores strong { color: var(--encre); }

/* -------------------------------------------------------------------------
   14. Coordonnées
   ------------------------------------------------------------------------- */
.coordonnees { margin: 0; padding: 0; list-style: none; }
.coordonnees li { padding: 1rem 0; border-bottom: 1px solid var(--trait); }
.coordonnees li:first-child { padding-top: 0; }
.coordonnees li:last-child { border-bottom: 0; }
.coordonnees .etiquette { margin-bottom: .2rem; font-size: .74rem; }
.coordonnees a, .coordonnees span { font-size: 1.05rem; color: var(--encre); text-decoration: none; }
.coordonnees a:hover { color: var(--rouge); text-decoration: underline; }

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

/* -------------------------------------------------------------------------
   15. Pied de page carbone
   ------------------------------------------------------------------------- */
.pied {
  flex: none;
  background: var(--carbone-noir-fond) var(--carbone-noir);
  border-top: 3px solid var(--rouge);
  color: rgba(255, 255, 255, .68);
  font-size: .95rem;
}

.pied__haut {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0;
}

/* Sur le carbone du pied, le logotype passe en blanc + rouge clair. */
.pied .logo { font-size: 1.55rem; color: #fff; }
.pied .logo em { color: var(--rouge-pale); }
.pied__baseline { margin: 1rem 0 0; max-width: 30ch; color: rgba(255, 255, 255, .6); }

.pied__titre {
  margin: 0 0 1rem;
  font-family: var(--titre);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.pied ul { margin: 0; padding: 0; list-style: none; }
.pied li { margin-bottom: .55rem; }
.pied a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}
.pied__bas nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* -------------------------------------------------------------------------
   16. Petits écrans
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --h-blanc: 62px; --h-angle: 51px; --h-filet: 8px; }

  /* Le menu se replie derrière un bouton, dans la barre carbone. */
  .avec-js .nav__bouton { display: flex; }
  .avec-js .nav__liste { display: none; }
  .avec-js .nav--ouvert .nav__liste {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1.25rem .75rem;
  }
  .avec-js .nav__liste a {
    padding: .85rem .5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .avec-js .nav__item--actif a { box-shadow: inset 3px 0 0 var(--rouge); }

  /* Sans JavaScript, le menu reste visible sur plusieurs lignes. */
  .sans-js .nav__liste { flex-wrap: wrap; }
  .sans-js .nav__liste a { font-size: .85rem; padding: .45rem .5rem; }

  .deux-colonnes { grid-template-columns: 1fr; }
  .pied__haut { grid-template-columns: 1fr 1fr; }
  .pied__marque { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .profil { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .profil__photo { width: 120px; height: 120px; }
  .profil dl { grid-template-columns: 1fr; gap: 0; }
  .profil dt { margin-top: .8rem; }
  .profil dt:first-of-type { margin-top: 0; }
  .pied__haut { grid-template-columns: 1fr; gap: 2rem; }
  .pied__bas { justify-content: flex-start; }
  .hero__actions .bouton, .actions .bouton { flex: 1 1 auto; }
}

/* -------------------------------------------------------------------------
   17. Impression
   ------------------------------------------------------------------------- */
@media print {
  .entete, .nav, .lien-evitement, .bouton, .actions, .pied__haut { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { background: #fff; color: #000; padding: 0 0 1rem; border-bottom: 2px solid #000; }
  .hero::before { display: none; }
  .hero h1, .hero__accroche { color: #000; }
  .bande { padding: 1rem 0; }
  .carte, .profil, .sondage { border: 1px solid #999; box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #555; }
}

/* =========================================================================
   18. Habillage « carbone moulé dans une armature métallique »
   -------------------------------------------------------------------------
   Reproduction de la maquette de référence (1964 x 801 px).
   Unité unique : --u = 1 px de la maquette (100vw / 1964). Toutes les cotes
   ci-dessous sont celles relevées sur la maquette ; le rendu est donc
   identique à 1964 px de large et proportionnel aux autres largeurs.
   Carbone : tuiles plates et périodiques (assets/img/carbone/), jamais
   déformées ; le relief vient de l'armature (dégradés, ombres internes).
   Mesures détaillées : assets/img/carbone/analyse-maquette.md (non servi)
   ========================================================================= */
@font-face { font-family: "Fira Sans Condensed"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/fira-sans-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/fira-sans-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/fira-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/fira-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("../fonts/fira-sans-latin-500-italic.woff2") format("woff2"); }

/* ---- 18.1 Jetons ---------------------------------------------------------- */
:root {
  --u: calc(100vw / 1964);
  --titre:      "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
  --titre-hero: "Fira Sans", Arial, sans-serif;

  --tuile-panneau: url("../img/carbone/panneau.png");   /* 28 x 28 */
  --tuile-bandeau: url("../img/carbone/bandeau.png");   /* 28 x 28 */
  --tuile-onglet:  url("../img/carbone/onglet-photo.webp"); /* 300 x 61, copié de la photo */
  --tuile-menu:    url("../img/carbone/menu.png");      /* 28 x 22 */

  --page:   #4d4c4c;
  --lisere: #d40d18;
}

body {
  background-color: var(--page);
  background-image: linear-gradient(180deg, #262424 0, #3c3a3a calc(120 * var(--u)), var(--page) calc(400 * var(--u)));
  background-repeat: no-repeat;
}
.contenu { background: transparent; }
.contenu > .bande:not(.bande--grise):not(.bande--rouge):not(.bande--carbone) { background: var(--papier); }

/* ---- 18.2 Bandeau blanc métallisé (maquette y 3 → 104) ------------------ */
.chassis { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.chassis::before { display: none; }

.entete {
  position: relative;
  height: calc(102 * var(--u));
  margin: calc(3 * var(--u)) calc(4 * var(--u)) 0;
  border-style: solid;
  border-color: transparent;
  border-width: calc(10 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u));
  border-radius: calc(46 * var(--u)) calc(26 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u));
  background-color: #b4b2b2;
  background-image:
    /* raccord de la lèvre avec la surface (maquette x 1262 → 1282, y 89 → 97) */
    linear-gradient(90deg, #d4d4d4, rgba(212,212,212,0)),
    /* lèvre argentée sous le panneau carbone (à partir de x 1262) */
    linear-gradient(180deg, #d6cdcb 0, #fffffe calc(1 * var(--u)), #fffffe calc(3 * var(--u)), #dcdadb calc(4 * var(--u)),
      #c6c4c5 calc(5 * var(--u)), #d2d1d1 calc(6 * var(--u)), #dadad9 calc(12 * var(--u)), #eeefed calc(13 * var(--u)),
      #eeefed calc(15 * var(--u)), #766f6d calc(15 * var(--u))),
    /* biseau haut et chant bas */
    linear-gradient(180deg, #292728 0, #f4f2f2 calc(1 * var(--u)), #f4f2f2 calc(3 * var(--u)), #e1dfe0 calc(3 * var(--u)),
      #bdbdbd calc(4 * var(--u)), #b2b2b2 calc(5 * var(--u)), #a1a1a1 calc(6 * var(--u)), #d3d3d3 calc(7 * var(--u)),
      #f1f1f1 calc(8 * var(--u)), #e2e2e2 calc(10 * var(--u)), transparent calc(10 * var(--u)),
      transparent calc(100% - 8 * var(--u)), #e6e3e4 calc(100% - 8 * var(--u)), #adaaab calc(100% - 6.5 * var(--u)),
      #5e5b5c calc(100% - 5.5 * var(--u)), #535051 calc(100% - 4.5 * var(--u)), #4f4a4a 100%),
    /* biseaux latéraux */
    linear-gradient(90deg, #131313 0, #1e1e1e calc(1 * var(--u)), #686868 calc(2 * var(--u)), #666465 calc(5 * var(--u)),
      #726f70 calc(7 * var(--u)), #827f80 calc(9 * var(--u)), #8d8b8c calc(10 * var(--u)), #aaa8a9 calc(11 * var(--u)),
      #dddddd calc(12 * var(--u)), transparent calc(12 * var(--u)),
      transparent calc(100% - 12 * var(--u)), #dddddd calc(100% - 12 * var(--u)), #aaa8a9 calc(100% - 11 * var(--u)),
      #8d8b8c calc(100% - 10 * var(--u)), #827f80 calc(100% - 9 * var(--u)), #726f70 calc(100% - 7 * var(--u)),
      #666465 calc(100% - 5 * var(--u)), #686868 calc(100% - 2 * var(--u)), #1e1e1e calc(100% - 1 * var(--u)), #131313 100%),
    /* surface bombée (maquette y 13 → 96) */
    linear-gradient(180deg, #dddddd 0, #e8e8e8 calc(3 * var(--u)), #f0f0f0 calc(7 * var(--u)), #f6f6f6 calc(12 * var(--u)),
      #f7f7f7 calc(17 * var(--u)), #f3f3f3 calc(27 * var(--u)), #ebebeb calc(37 * var(--u)), #e2e2e2 calc(47 * var(--u)),
      #dadada calc(57 * var(--u)), #d6d6d6 calc(67 * var(--u)), #d4d4d4 calc(75 * var(--u)), #d2d0d0 100%),
    /* fond de l'armature (angles) */
    linear-gradient(180deg, #d9d9d9, #a9a7a7);
  background-origin: border-box, border-box, border-box, border-box, padding-box, border-box;
  background-clip: border-box, border-box, border-box, border-box, padding-box, border-box;
  background-repeat: no-repeat;
  background-size: calc(20 * var(--u)) calc(7 * var(--u)), calc(100% - 1258 * var(--u)) calc(16 * var(--u)), 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: calc(1258 * var(--u)) calc(100% - 8 * var(--u)), right bottom, 0 0, 0 0, 0 0, 0 0;
  box-shadow:
    /* surface bombée : liseré clair sous le biseau puis ombre douce */
    inset 0 calc(1.5 * var(--u)) 0 rgba(255,255,255,.85),
    inset calc(1.5 * var(--u)) 0 0 rgba(255,255,255,.7),
    inset 0 calc(5 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.09),
    0 0 0 calc(1 * var(--u)) #100d0e, 0 0 calc(8 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.55);
}
.entete::before { display: none; }
.entete__rang { position: static; height: 100%; }
.entete__interieur {
  position: relative;
  z-index: 2;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: calc(11 * var(--u)) 0 0 calc(330 * var(--u));
  align-items: flex-start;
}
.entete__filet { display: none; }

/* Logotype : apparence conservée (Georgia gras italique), « Indé » en rouge dégradé */
.logo {
  font-family: var(--marque);
  font-style: italic;
  font-weight: 700;
  font-size: calc(61 * var(--u));
  line-height: calc(61 * var(--u));
  letter-spacing: 0;
  /* Georgia est ~11 % plus large que le logo de la maquette à hauteur égale */
  transform: scaleX(.893);
  transform-origin: 0 50%;
  color: #121111;
  text-shadow: none;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(2.5 * var(--u)) rgba(0,0,0,.32));
}
.logo em {
  color: #d40d16;
  background: linear-gradient(180deg, #ff2a2a 15%, #c80812 60%, #8e0008 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- 18.3 Panneau carbone rouge du bandeau ------------------------------- */
/* La forme est une découpe (masque) ; la tuile n'est jamais déformée.
   Le liseré sombre de la courbe = forme décalée de 8 px sous le carbone ;
   le reflet blanc et la lueur rose = ombres portées qui suivent la forme. */
.entete__carbone {
  display: block;
  position: absolute;
  z-index: 1;
  top: calc(-3 * var(--u));
  left: calc(1134 * var(--u));
  right: calc(-12 * var(--u));
  width: auto;
  height: calc(79 * var(--u));
  background: none;
  -webkit-clip-path: none;
  clip-path: none;
  filter:
    drop-shadow(0 calc(-2.5 * var(--u)) 0 #f7e2e2)
    drop-shadow(calc(-1 * var(--u)) 0 0 #2f2626)
    drop-shadow(calc(-9 * var(--u)) calc(4 * var(--u)) calc(1.2 * var(--u)) #fcfcfc)
    drop-shadow(calc(-6 * var(--u)) 0 calc(6 * var(--u)) rgba(0,0,0,.17));
}
.entete__carbone::before,
.entete__carbone::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  border-radius: 0 calc(22 * var(--u)) calc(4 * var(--u)) 0;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 79' preserveAspectRatio='none'%3E%3Cpath d='M3 0C11 0 17 4 23 10L82 66C88 72 99 78.5 118 79H130V0Z'/%3E%3C/svg%3E") left top / calc(130 * var(--u)) 100% no-repeat,
    linear-gradient(#000 0 0) right top / calc(100% - 129 * var(--u)) 100% no-repeat;
          mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 79' preserveAspectRatio='none'%3E%3Cpath d='M3 0C11 0 17 4 23 10L82 66C88 72 99 78.5 118 79H130V0Z'/%3E%3C/svg%3E") left top / calc(130 * var(--u)) 100% no-repeat,
    linear-gradient(#000 0 0) right top / calc(100% - 129 * var(--u)) 100% no-repeat;
}
/* bord sombre de la courbe */
.entete__carbone::before { left: 0; background: linear-gradient(90deg, #3a0507 calc(100% - 8 * var(--u)), #2e2223 calc(100% - 5 * var(--u)), #3c3536 calc(100% - 3 * var(--u)), #141010 100%); }
/* carbone + tube rouge brillant en haut + chant bas (maquette y 10 → 88) */
.entete__carbone::after {
  left: calc(8 * var(--u));
  right: calc(5 * var(--u));
  border-radius: 0 calc(18 * var(--u)) calc(3 * var(--u)) 0;
  background-color: #170202;
  background-image:
    /* bord haut sombre (ombre du biseau), sans tube : le carbone monte jusqu'au bord */
    linear-gradient(180deg, #2a0203 0, rgba(12,0,0,.85) calc(1 * var(--u)), rgba(12,0,0,.55) calc(3 * var(--u)),
      rgba(12,0,0,0) calc(6 * var(--u)), rgba(12,0,0,0) calc(100% - 5 * var(--u)), #3c0304 calc(100% - 5 * var(--u)),
      #490709 calc(100% - 4 * var(--u)), #37090b calc(100% - 3 * var(--u)), #1b0000 calc(100% - 2 * var(--u)), #1b0908 100%),
    var(--tuile-bandeau);
  background-size: auto, calc(28 * var(--u)) calc(28 * var(--u));
  background-repeat: no-repeat, repeat;
  background-position: 0 0, calc(-8 * var(--u)) 0;
  box-shadow: inset 0 0 calc(14 * var(--u)) calc(4 * var(--u)) rgba(10,0,0,.55);
}

/* ---- 18.4 Barre de navigation (maquette y 105 → 190) --------------------- */
.nav {
  position: relative;
  top: auto;
  z-index: 3;
  height: calc(86 * var(--u));
  margin: 0 calc(6 * var(--u));
  padding: calc(15 * var(--u)) calc(11 * var(--u)) calc(8 * var(--u));
  border: 0;
  border-radius: calc(22 * var(--u));
  background: #060505;
  box-shadow:
    /* ombre du bandeau puis tube rouge du haut (profil relevé ligne à ligne) */
    inset 0 calc(1 * var(--u)) 0 #3f3a39, inset 0 calc(2 * var(--u)) 0 #312b28,
    inset 0 calc(3 * var(--u)) 0 #1e1513, inset 0 calc(4 * var(--u)) 0 #100502,
    inset 0 calc(5 * var(--u)) 0 #230000, inset 0 calc(6 * var(--u)) 0 #660000,
    inset 0 calc(7 * var(--u)) 0 #92110c, inset 0 calc(8 * var(--u)) 0 #b33933,
    inset 0 calc(9 * var(--u)) 0 #ffb0aa, inset 0 calc(10 * var(--u)) 0 #da2829,
    inset 0 calc(11 * var(--u)) 0 #b60d10, inset 0 calc(12 * var(--u)) 0 #790a09,
    inset 0 calc(13 * var(--u)) 0 #370000, inset 0 calc(14 * var(--u)) 0 #160405,
    /* tube rouge du bas */
    inset 0 calc(-1 * var(--u)) 0 #0e0000, inset 0 calc(-2 * var(--u)) 0 #330303,
    inset 0 calc(-3 * var(--u)) 0 #5c0000, inset 0 calc(-4 * var(--u)) 0 #a00302,
    inset 0 calc(-5 * var(--u)) 0 #c50806, inset 0 calc(-6 * var(--u)) 0 #d21213,
    inset 0 calc(-7 * var(--u)) 0 #980608, inset 0 calc(-8 * var(--u)) 0 #270000,
    0 0 0 calc(1 * var(--u)) #0c0b0e;
}
.nav::before { display: none; }

/* Tampon carbone (maquette y 120 → 182) */
.nav__liste {
  position: relative;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0;
  max-width: none;
  height: calc(63 * var(--u));
  margin: 0;
  padding: 0 0 0 calc(329 * var(--u));
  border-radius: calc(16 * var(--u));
  background-color: #111;
  background-image: var(--tuile-menu);
  background-size: calc(28 * var(--u)) calc(22 * var(--u));
  box-shadow:
    inset 0 calc(1 * var(--u)) 0 #5a5858, inset 0 calc(2 * var(--u)) 0 #eceae8,
    inset 0 calc(3 * var(--u)) 0 #f5f5f2, inset 0 calc(4 * var(--u)) 0 #fefefc,
    inset 0 calc(5 * var(--u)) 0 #7b7c79, inset 0 calc(6 * var(--u)) 0 #5b5b59,
    inset 0 calc(7 * var(--u)) 0 #6c6d6a, inset 0 calc(8 * var(--u)) 0 #61615f,
    inset 0 calc(9 * var(--u)) 0 rgba(71,71,71,.85), inset 0 calc(10 * var(--u)) 0 rgba(35,35,35,.6),
    inset 0 calc(-3 * var(--u)) 0 #050100, inset 0 calc(-4 * var(--u)) 0 #090705,
    inset 0 calc(-5 * var(--u)) 0 #0d0d0b, inset 0 calc(-6 * var(--u)) 0 #181916,
    inset 0 calc(-7 * var(--u)) 0 rgba(48,51,48,.7),
    inset calc(5 * var(--u)) 0 0 rgba(0,0,0,.35), inset calc(-5 * var(--u)) 0 0 rgba(0,0,0,.35);
}
.nav__item { position: relative; display: flex; }
.nav__liste a {
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(6 * var(--u)) calc(35 * var(--u)) 0;
  border-radius: 0;
  font-family: var(--titre);
  font-size: calc(25 * var(--u));
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 calc(1 * var(--u)) 0 #000, 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0,0,0,.95);
}
.nav__liste a:hover { color: #fff; }
.nav__liste a:focus-visible { outline: 2px solid #fff; outline-offset: calc(-8 * var(--u)); }

/* Séparateurs rouges (maquette : 4 x 30 px, centrés) */
.nav__item:not(:last-child) a::after {
  content: "";
  position: absolute;
  right: calc(-2 * var(--u));
  top: 50%;
  width: calc(4 * var(--u));
  height: calc(30 * var(--u));
  margin-top: calc(-15 * var(--u));
  border-radius: calc(1 * var(--u));
  background: linear-gradient(180deg, #480000, #cc1921 calc(2 * var(--u)), #dd0f11 calc(4 * var(--u)), #dd0f11 calc(100% - 4 * var(--u)), #a31d18 calc(100% - 2 * var(--u)), #450000);
  box-shadow: 0 0 calc(4 * var(--u)) rgba(255,20,30,.45);
}
.nav__item--actif a::after,
.nav__item:has(+ .nav__item--actif) a::after { display: none; }

/* Onglet actif : déterminé en PHP ($page → .nav__item--actif).
   Carbone rouge et noir copié de la photo (zone x 1500 → 1800, y 23 → 83 du
   panneau du bandeau), à l'échelle 1:1, sans répétition ni déformation.
   Sans liseré blanc (demande du 18/11), lueur discrète. L'onglet tient entre la ligne grise du
   haut du tampon (maquette y 120 → 129) et sa ligne noire du bas (y 177 → 182) :
   il occupe y 131 → 175, texte aligné sur celui des autres liens. */
/* onglet plus étroit (−21 px) : la marge garde les autres liens à leur place */
.nav__item--actif { z-index: 2; margin: 0 calc(10.5 * var(--u)); }
.nav__item--actif a {
  margin: calc(11 * var(--u)) 0 calc(7 * var(--u));
  padding: calc(2 * var(--u)) calc(30 * var(--u)) 0;
  border: calc(2 * var(--u)) solid transparent;
  border-radius: calc(10 * var(--u));
  background-color: #1a0101;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,.14) 0, rgba(255,255,255,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.28) 100%),
    var(--tuile-onglet);
  background-size: auto, calc(300 * var(--u)) calc(61 * var(--u));
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, center;
  box-shadow:
    0 0 calc(3 * var(--u)) calc(.5 * var(--u)) rgba(255,60,60,.55),
    0 0 calc(12 * var(--u)) calc(1 * var(--u)) rgba(255,30,36,.3);
}

/* ---- 18.5 Grand panneau carbone dans son armature (maquette y 191 → 782) -- */
.hero {
  position: relative;
  overflow: visible;
  margin: 0 calc(2 * var(--u)) calc(14 * var(--u));
  padding: calc(78.6 * var(--u)) 0 calc(88.6 * var(--u));
  border-style: solid;
  border-color: transparent;
  border-width: calc(7 * var(--u)) calc(15 * var(--u)) calc(9 * var(--u));
  border-radius: calc(38 * var(--u));
  background-color: #4f4c4c;
  background-image:
    /* éclairage posé sur le carbone : reflet diagonal doux et bords assombris */
    radial-gradient(ellipse 34% 60% at 76% 42%, rgba(255,255,255,.06), rgba(255,255,255,0) 70%),
    linear-gradient(90deg, rgba(0,0,0,0) 80%, rgba(0,0,0,.35) 100%),
    var(--tuile-panneau),
    /* armature : arête haute argentée, chant bas éclairé de rouge */
    linear-gradient(180deg, #4a4643 0, #d8d6d2 calc(1 * var(--u)), #fbfcfa calc(2 * var(--u)), #fbfcfa calc(5.5 * var(--u)),
      #716f70 calc(6.5 * var(--u)), rgba(0,0,0,0) calc(7 * var(--u)),
      rgba(0,0,0,0) calc(100% - 9 * var(--u)), #331c1f calc(100% - 9 * var(--u)), #4d2f30 calc(100% - 8 * var(--u)),
      #4a2627 calc(100% - 7 * var(--u)), #4c1b1e calc(100% - 6 * var(--u)), #491215 calc(100% - 4 * var(--u)),
      #3e1012 calc(100% - 3 * var(--u)), #190404 calc(100% - 2 * var(--u)), #070002 100%),
    /* armature : arêtes des flancs (contour sombre, chant clair côté liseré) */
    linear-gradient(90deg, #241e1b 0, #130603 calc(2 * var(--u)), #392c2c calc(3 * var(--u)), rgba(40,36,36,.25) calc(4 * var(--u)),
      rgba(0,0,0,0) calc(7 * var(--u)), rgba(0,0,0,0) calc(10 * var(--u)), rgba(0,0,0,.15) calc(11 * var(--u)),
      rgba(255,255,255,.16) calc(12.5 * var(--u)), rgba(255,255,255,0) calc(13.5 * var(--u)),
      rgba(255,255,255,0) calc(100% - 13.5 * var(--u)), rgba(255,255,255,.16) calc(100% - 12.5 * var(--u)),
      rgba(0,0,0,.15) calc(100% - 11 * var(--u)), rgba(0,0,0,0) calc(100% - 10 * var(--u)), rgba(0,0,0,0) calc(100% - 7 * var(--u)),
      rgba(40,36,36,.25) calc(100% - 4 * var(--u)), #392c2c calc(100% - 3 * var(--u)), #130603 calc(100% - 2 * var(--u)), #241e1b 100%),
    /* armature : métal, clair en haut, gris sur les flancs, sombre en bas */
    linear-gradient(180deg, #d2d2d2 0, #a9a9a9 calc(30 * var(--u)), #6e6e6e calc(90 * var(--u)), #5a5a5a calc(180 * var(--u)),
      #555 70%, #4a3c3d 100%);
  background-size: auto, auto, calc(28 * var(--u)) calc(28 * var(--u)), auto, auto, auto;
  background-repeat: no-repeat, no-repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-origin: padding-box, padding-box, padding-box, border-box, border-box, border-box;
  background-clip: padding-box, padding-box, padding-box, border-box, border-box, border-box;
  color: rgba(255,255,255,.9);
  box-shadow:
    /* bas : tube rouge vif (le reflet blanc est l'anneau ::before) */
    inset 0 calc(-1 * var(--u)) 0 #b41919,
    inset 0 calc(-8 * var(--u)) 0 #c40605,
    inset 0 calc(-9 * var(--u)) 0 #860b09,
    inset 0 calc(-10 * var(--u)) 0 #450000,
    /* tour : liseré bordeaux (ombre) */
    inset 0 0 0 calc(1 * var(--u)) #1e0d09,
    inset 0 calc(4 * var(--u)) 0 #541214,
    inset 0 0 0 calc(5 * var(--u)) #3d1616,
    inset 0 0 0 calc(6 * var(--u)) #1d0b08,
    /* gorge noire puis assombrissement progressif */
    inset 0 0 0 calc(15 * var(--u)) #050404,
    inset 0 0 calc(18 * var(--u)) calc(15 * var(--u)) rgba(0,0,0,.6),
    0 0 0 calc(1 * var(--u)) #0d0606,
    0 calc(5 * var(--u)) calc(10 * var(--u)) rgba(0,0,0,.7),
    0 0 calc(5 * var(--u)) calc(1 * var(--u)) rgba(0,0,0,.6);
}
/* Filet blanc entre l'armature et le liseré : un anneau qui suit les courbes */
.hero::before {
  content: "";
  position: absolute;
  inset: calc(-1.6 * var(--u));
  border: calc(1.6 * var(--u)) solid #fffaf8;
  border-radius: calc(24.6 * var(--u)) / calc(32.6 * var(--u)) calc(32.6 * var(--u)) calc(30.6 * var(--u)) calc(30.6 * var(--u));
  pointer-events: none;
}
.hero::after { display: none; }
.hero > .conteneur {
  max-width: none;
  margin: 0;
  padding: 0 calc(40 * var(--u)) 0 calc(326 * var(--u));
}
.hero--large { padding: calc(78.6 * var(--u)) 0 calc(88.6 * var(--u)); }

/* ---- 18.6 Titres et textes (lignes de base relevées sur la maquette) ----- */
.hero .etiquette {
  display: flex;
  align-items: center;
  gap: calc(11 * var(--u));
  margin: 0;
  font-family: var(--titre);
  font-weight: 700;
  font-size: calc(28 * var(--u));
  line-height: calc(34 * var(--u));
  letter-spacing: 0;
  color: #e60a10;
  text-shadow: 0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0,0,0,.8);
}
.hero .etiquette::after {
  content: "";
  flex: none;
  width: calc(278 * var(--u));
  height: calc(3 * var(--u));
  background: #c00c0d;
  box-shadow: 0 0 calc(3 * var(--u)) rgba(255,0,10,.45);
}
.hero h1 {
  margin: calc(11.5 * var(--u)) 0 0;
  font-family: var(--titre-hero);
  font-weight: 700;
  font-size: calc(67 * var(--u));
  line-height: calc(73 * var(--u));
  letter-spacing: 0;
  color: #fff;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 20%, #f4f4f4 55%, #cfcfcf 85%) 0 0 / 100% calc(73 * var(--u)) repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(calc(1 * var(--u)) calc(3 * var(--u)) calc(1 * var(--u)) rgba(0,0,0,.7))
          drop-shadow(calc(2 * var(--u)) calc(5 * var(--u)) calc(8 * var(--u)) rgba(0,0,0,.65));
}
.hero__accroche {
  max-width: calc(960 * var(--u));
  margin: calc(21.5 * var(--u)) 0 0;
  font-family: var(--titre-hero);
  font-style: italic;
  font-weight: 400;
  font-size: calc(28 * var(--u));
  line-height: calc(38 * var(--u));
  color: #f1f1f1;
  text-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) #000;
}
.hero__actions {
  gap: .75rem;
  margin: calc(28.4 * var(--u)) 0 0;
}
.hero__fil, .hero__fil a { color: rgba(255,255,255,.75); }

/* ---- 18.7 Boutons ------------------------------------------------------ */
/* Base commune à tout le site : bouton rouge convexe */
.bouton,
.bande--rouge .bouton {
  position: relative;
  gap: .9rem;
  padding: .8rem 1.5rem;
  border: 2px solid #ff5a5a;
  border-radius: 13px;
  background: linear-gradient(180deg, #f73134 0%, #e3191c 16%, #b20505 34%, #8c0404 58%, #5e0303 82%, #2b0705 100%);
  font-family: var(--titre);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 2px 3px rgba(0,0,0,.6);
  box-shadow: inset 0 2px 0 rgba(255,210,205,.85), inset 0 -2px 0 rgba(255,187,189,.7), 0 0 0 3px #3a0005, 0 4px 8px rgba(0,0,0,.5);
  transition: filter .2s ease, transform .2s ease;
}
.bouton::before { display: none; }
.bouton:hover, .bouton:focus-visible,
.bande--rouge .bouton:hover {
  background: linear-gradient(180deg, #f73134 0%, #e3191c 16%, #b20505 34%, #8c0404 58%, #5e0303 82%, #2b0705 100%);
  border-color: #ff5a5a;
  color: #fff;
  filter: brightness(1.12);
}
.bouton:active { transform: translateY(1px); filter: brightness(.95); }
.bouton:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.bouton--fantome,
.hero .bouton--fantome,
.bande--carbone .bouton--fantome,
.bande--rouge .bouton--fantome {
  border-color: #d6d6d6;
  background: linear-gradient(180deg, #494949 0%, #383838 12%, #252525 28%, #0c0c0c 46%, #0c0c0c 100%);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(235,235,235,.85), inset 0 -2px 0 rgba(209,209,209,.7), 0 0 0 3px #111, 0 4px 8px rgba(0,0,0,.5);
}
.bouton--fantome:hover, .bouton--fantome:focus-visible,
.hero .bouton--fantome:hover, .hero .bouton--fantome:focus-visible,
.bande--carbone .bouton--fantome:hover,
.bande--rouge .bouton--fantome:hover {
  border-color: #d6d6d6;
  background: linear-gradient(180deg, #494949 0%, #383838 12%, #252525 28%, #0c0c0c 46%, #0c0c0c 100%);
  color: #fff;
  filter: brightness(1.3);
}

/* Flèche blanche à droite */
a.bouton:not(.bouton--petit)::after {
  content: "";
  flex: none;
  width: .42em;
  height: .42em;
  margin: 0 .12em 0 .2em;
  border-top: .15em solid currentColor;
  border-right: .15em solid currentColor;
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.7));
}
.bouton--petit { padding: .55rem 1.05rem; font-size: .98rem; border-radius: 10px; }

/* Boutons du panneau (accueil, CV, soutenir) : même rendu que les boutons du
   bas de page — ce sont les règles communes ci-dessus, sans surcharge. */

/* ---- 18.8 Bandes, cartes et pied de page assortis ----------------------- */
.bande--rouge {
  background-color: #170202;
  background-image: linear-gradient(rgba(12,3,4,.5), rgba(12,3,4,.5)), var(--tuile-bandeau);
  background-size: auto, 28px 28px;
  background-repeat: no-repeat, repeat;
  box-shadow: inset 0 4px 8px rgba(0,0,0,.6), inset 0 -4px 8px rgba(0,0,0,.6);
}
.bande--rouge h2, .bande--rouge .tete-bande p { text-shadow: 0 2px 3px #000; }
.bande--carbone { background-color: #111; background-image: var(--tuile-panneau); background-size: 28px 28px; }

.carte, .profil, .sondage {
  border: 1px solid #b4b9bd;
  border-top: 3px solid var(--lisere);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(255,255,255,.8), 0 3px 8px rgba(8,9,10,.10);
}
.reperes { border-color: #b4b9bd; background: #b4b9bd; border-radius: 12px; }

.pied {
  position: relative;
  margin: calc(14 * var(--u)) calc(2 * var(--u)) calc(6 * var(--u));
  border: solid transparent;
  border-width: max(5px, calc(7 * var(--u))) max(8px, calc(15 * var(--u))) max(6px, calc(9 * var(--u)));
  border-radius: max(18px, calc(38 * var(--u)));
  background-color: #4f4c4c;
  background-image:
    var(--tuile-panneau),
    linear-gradient(180deg, #4a4643 0, #fbfcfa 2px, #fbfcfa 5px, #716f70 7px, #595959 40px, #4c3a3b 100%);
  background-size: 28px 28px, auto;
  background-repeat: repeat, no-repeat;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: rgba(255,255,255,.8);
  box-shadow:
    inset 0 -3px 0 #c40605,
    inset 0 0 0 1px #1e0d09, inset 0 0 0 4px #3d1616, inset 0 0 0 12px #050404,
    inset 0 0 18px 12px rgba(0,0,0,.6),
    0 0 0 1px #0d0606, 0 5px 10px rgba(0,0,0,.6);
}
.pied .logo { line-height: 1.2; filter: none; }
.pied a { color: rgba(255,255,255,.85); }
.pied__bas, .pied__baseline { color: rgba(255,255,255,.72); }
.pied, .pied a { text-shadow: 0 1px 2px #000; }

/* ---- 18.9 Écrans intermédiaires (901 → 1099 px) -------------------------- */
@media (max-width: 1099px) {
  :root { --u: calc(100vw / 1700); }
  .entete__interieur { padding-left: calc(120 * var(--u)); }
  .entete__carbone { left: auto; width: calc(41.5% + 7 * var(--u)); }
  .nav__liste { justify-content: center; padding-left: 0; }
  .nav__liste a { padding: 0 calc(20 * var(--u)); }
  .nav__item--actif a {
    padding: calc(2 * var(--u)) calc(20 * var(--u)) 0;
  }
  .nav__item--actif { margin: 0 calc(4 * var(--u)); }
  .hero > .conteneur { padding-left: calc(110 * var(--u)); }
}

/* ---- 18.10 Tablette et mobile (≤ 900 px) : cotes fixes en px ------------- */
@media (max-width: 900px) {
  :root { --u: .5px; }
  .entete { height: 66px; margin: 6px 6px 0; border-width: 6px 7px 5px; border-radius: 18px 18px 6px 6px;
    background-size: 0 0, 38% 8px, 100% 100%, 100% 100%, 100% 100%, 100% 100%; }
  .entete__interieur { padding: 6px 0 0 16px; }
  .logo { font-size: clamp(1.5rem, 1rem + 2.6vw, 2.3rem); line-height: 1.5; }
  .entete__carbone { top: -2px; left: auto; right: -4px; width: 40%; height: 46px; }
  .nav { height: auto; margin: 0 6px; padding: 9px 6px 6px; border-radius: 14px; }
  .nav__bouton {
    min-height: 46px;
    border-radius: 10px;
    background-color: #111;
    background-image: var(--tuile-menu);
    background-size: 28px 22px;
    box-shadow: inset 0 2px 0 #eceae8, inset 0 4px 0 #6c6d6a, inset 0 -4px 0 #050100, 0 0 0 1px #000;
    font-family: var(--titre);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-shadow: 0 2px 3px #000;
  }
  .avec-js .nav__liste { height: auto; padding: 0; border-radius: 10px; box-shadow: none; background: none; }
  .avec-js .nav--ouvert .nav__liste {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 6px;
    padding: 6px;
    background-color: #111;
    background-image: var(--tuile-menu);
    background-size: 28px 22px;
    box-shadow: inset 0 2px 0 #eceae8, inset 0 -3px 0 #050100, 0 0 0 1px #000;
  }
  .nav__item { display: block; }
  .avec-js .nav__liste a { padding: .8rem 1rem; border-bottom: 0; border-radius: 9px; font-size: 1.1rem; box-shadow: inset 0 -1px 0 rgba(255,40,40,.35); }
  .avec-js .nav__item--actif a {
    margin: 2px 3px;
    padding: .8rem 1rem;
    border-width: 2px;
    background-size: auto, cover;
    box-shadow: 0 0 3px 1px rgba(255,60,60,.6), 0 0 12px 2px rgba(255,30,36,.45);
  }
  .nav__item:not(:last-child) a::after { display: none; }
  .sans-js .nav__liste { flex-wrap: wrap; justify-content: center; height: auto; padding: 6px; }
  .sans-js .nav__liste a { padding: .55rem .7rem; font-size: 1rem; }

  .hero { margin: 0 6px 10px; padding: 2.2rem 0 2.4rem; border-width: 5px 8px 6px; border-radius: 20px;
    background-size: auto, auto, 28px 28px, auto, auto; }
  .hero--large { padding: 2.2rem 0 2.4rem; }
  .hero > .conteneur { padding: 0 1.1rem; }
  .hero .etiquette { font-size: 1rem; line-height: 1.3; gap: 10px; white-space: nowrap; }
  .hero .etiquette::after { width: 40px; height: 2px; }
  .hero h1 { margin-top: .5rem; font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.1; }
  .hero__accroche { max-width: none; margin-top: .9rem; font-size: 1.08rem; line-height: 1.45; }
  .hero__actions { margin: 1.4rem 0 0; }
  .pied { margin: 10px 6px 6px; }
}

/* ---- 18.12 Bandeau : image découpée dans la maquette (écrans ≥ 901 px) --
   « Copier-coller » du bandeau de la photo de référence (1964 x 105 px,
   assets/img/bandeau-maquette.webp ; script : img/carbone/decouper-bandeau.php.txt).
   Le logo reste un vrai lien (nom accessible : aria-label), posé sur l'image.
   Sous 901 px, le bandeau dessiné en CSS (18.2 → 18.3) est conservé. */
@media (min-width: 901px) {
  .entete {
    height: auto;
    aspect-ratio: 1964 / 105;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #242222 url("../img/bandeau-maquette.webp") 0 0 / 100% 100% no-repeat;
    box-shadow: none;
  }
  .entete__carbone { display: none; }
  .entete__interieur { position: absolute; inset: 0; height: auto; padding: 0; }
  .entete .logo {
    position: absolute;
    left: 17.2%;
    top: 22%;
    width: 19.6%;
    height: 66%;
    font-size: 0;
    line-height: 0;
    color: transparent;
    transform: none;
    filter: none;
  }
  .entete .logo:focus-visible { outline: 3px solid #d40d16; outline-offset: 4px; }
}

/* ---- 18.11 Impression -------------------------------------------------- */
@media print {
  body { background: #fff; }
  .chassis { display: none !important; }
  .hero, .pied { margin: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; color: #000; }
  .hero h1, .hero__accroche, .hero .etiquette { text-shadow: none; color: #000; }
  .bouton { box-shadow: none; text-shadow: none; }
}
