/* =====================================================================
   Portfolio Clément Devaux
   Principe : la page est une montée. On décolle du Havre en haut de page
   et on atteint l'orbite au contact. Le ciel s'assombrit section après
   section ; l'altimètre à droite indique où l'on se trouve.
   ===================================================================== */

:root {
  --encre: #0E2236;
  --encre-douce: #3B5268;
  --papier: #FBFCFD;
  --trait: #C7D7E3;
  --magenta: #B8216F;        /* le magenta des cartes aéronautiques VFR */
  --magenta-clair: #F27BB8;
  --ambre: #F2B134;          /* afficheurs d'instruments */
  --clair: #F3F6FB;
  --clair-doux: #B9CCE0;
  --instrument: #081426;

  --ciel-0: #EAF2F6;
  --ciel-1: #D3E4EE;
  --ciel-2: #B4CFE0;
  --ciel-2b: #A3C3D8;
  --ciel-3: #6E9CBD;
  --ciel-4: #2E5A82;
  --ciel-5: #15305A;
  --ciel-6: #0A1530;
  --vide: #03050D;

  --police: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'DejaVu Sans Mono', monospace;

  --barre-h: 64px;
  --rayon: 10px;
}

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

html {
  background: var(--ciel-0);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--barre-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
dl, dd { margin: 0; }

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

.evitement {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--encre); color: var(--clair);
  padding: .6rem 1rem; border-radius: 8px; text-decoration: none;
}
.evitement:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent, var(--magenta)); outline-offset: 3px; border-radius: 4px; }

/* ---------- Zones de lumière ---------- */
.zone-jour { color: var(--encre); --accent: var(--magenta); --texte-doux: var(--encre-douce); }
.zone-nuit { color: var(--clair); --accent: var(--magenta-clair); --texte-doux: var(--clair-doux); }

/* ---------- Mise en page commune ---------- */
.conteneur { width: min(1120px, 100% - 48px); margin-inline: auto; }

.section { position: relative; padding-block: clamp(4.5rem, 8.5vw, 7rem); }

.section-tete { max-width: 62ch; margin-bottom: 2.75rem; }
.section-tete h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-stretch: 125%;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: .95;
  margin-bottom: 1rem;
}
.section-tete p { color: var(--texte-doux); font-size: 1.125rem; }
.section-tete p + p { margin-top: .9rem; }

.section-tete-actions {
  max-width: none;
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  justify-content: space-between; align-items: flex-end;
}
.section-tete-actions > div { max-width: 62ch; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.2rem;
  border: 1.5px solid currentColor; border-radius: 8px;
  background: transparent; color: inherit;
  font-weight: 600; font-size: .9875rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.bouton:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.bouton-plein { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.bouton-plein:hover { background: var(--magenta); border-color: var(--magenta); }

.bouton-instrument {
  border: 1px solid rgba(185, 204, 224, .35);
  background: rgba(255, 255, 255, .04);
  border-radius: 6px;
  padding: .55rem .95rem; font-size: .9rem;
}
.bouton-instrument:hover { background: rgba(255, 255, 255, .1); border-color: rgba(185, 204, 224, .6); }

/* =====================================================================
   BARRE DU HAUT
   ===================================================================== */
.barre {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--barre-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: max(24px, calc((100% - 1120px) / 2));
  color: var(--encre);
  transition: color .3s;
}
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur la barre elle-même
   rendrait le menu déroulant mobile partiellement transparent dans Chrome. */
.barre::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transition: background-color .3s, box-shadow .3s;
}
.barre.defile::before { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.barre[data-zone="jour"].defile::before { background: rgba(234, 242, 246, .84); box-shadow: 0 1px 0 rgba(14, 34, 54, .08); }
.barre[data-zone="nuit"] { color: var(--clair); }
.barre[data-zone="nuit"].defile::before { background: rgba(8, 20, 38, .78); box-shadow: 0 1px 0 rgba(185, 204, 224, .1); }

.barre-logo {
  font-stretch: 125%; font-weight: 800; font-size: 1.125rem; letter-spacing: .02em;
  text-decoration: none; padding: .25rem .1rem;
}
.barre-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.barre-nav a { text-decoration: none; font-weight: 500; padding: .25rem 0; border-bottom: 1.5px solid transparent; }
.barre-nav a:hover, .barre-nav a[aria-current="true"] { border-bottom-color: currentColor; }

.barre-alt {
  background: var(--instrument); color: var(--ambre);
  border-radius: 6px; padding: .2rem .6rem;
  font-size: .8125rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
  min-width: 5.2rem; text-align: right;
}
.bouton-cv { padding: .45rem .85rem; font-size: .875rem; }
.barre-menu {
  display: none; background: none; border: 0; padding: .4rem; cursor: pointer; border-radius: 6px;
}

/* =====================================================================
   ALTIMÈTRE (grands écrans)
   ===================================================================== */
.altimetre {
  display: none;
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 40;
  width: 138px; padding: 16px 14px 18px;
  background: rgba(8, 20, 38, .88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 12px; color: var(--clair);
}
.alt-lecture { text-align: right; margin-bottom: 14px; }
.alt-lecture-titre { font-size: .75rem; color: var(--clair-doux); display: block; }
.alt-lecture-val {
  display: block; color: var(--ambre); font-variant-numeric: tabular-nums;
  font-size: 1.25rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.alt-echelle { position: relative; height: min(44vh, 380px); margin-right: 6px; border-right: 1.5px solid rgba(185, 204, 224, .45); }
.alt-point { position: absolute; right: 0; transform: translateY(-50%); }
.alt-point a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: .78rem; color: var(--clair-doux); white-space: nowrap;
}
.alt-point a::after { content: ""; width: 10px; height: 1.5px; background: rgba(185, 204, 224, .6); }
.alt-point a:hover, .alt-point a[aria-current="true"] { color: var(--clair); }
.alt-point a[aria-current="true"]::after { background: var(--magenta-clair); width: 14px; }
.alt-repere {
  position: absolute; right: -8px; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-right: 10px solid var(--ambre);
  transform: translate(100%, -50%);
}

@media (min-width: 1280px) {
  .altimetre { display: block; }
  .barre-alt { display: none; }
  .conteneur { width: min(1120px, 100% - 360px); }
  .barre { padding-inline: 32px; }
}

/* =====================================================================
   ACCUEIL — le terrain
   ===================================================================== */
.s-accueil {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--barre-h) + 3rem);
  padding-bottom: 30vh;
  background: linear-gradient(var(--ciel-0), var(--ciel-1));
  overflow: hidden;
}
.nom {
  font-size: clamp(3.4rem, 12.5vw, 9.75rem);
  font-stretch: 125%;
  font-weight: 820;
  line-height: .86;
  letter-spacing: -0.025em;
}
.nom span { display: block; }
.accroche {
  max-width: 40ch;
  margin: 2rem 0 2.25rem;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
}
.accueil-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.accueil-statut { margin-top: 2.25rem; font-size: .9375rem; color: var(--texte-doux); max-width: 52ch; }

.piste { position: absolute; left: 0; right: 0; bottom: 15vh; height: 0; }
.horizon { position: absolute; left: 0; right: 0; top: 0; border-top: 1.5px solid var(--encre); opacity: .85; }
.horizon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--encre) 0 38px, transparent 38px 76px);
  opacity: .28;
}
.avion {
  position: absolute; left: 6vw; bottom: 0;
  width: clamp(112px, 13vw, 184px);
  transform-origin: 72% 85%;
  will-change: transform;
}
.avion-fuselage, .avion-derive, .avion-aile, .avion-stab { fill: var(--encre); }
.avion-verriere { fill: var(--ciel-2); stroke: var(--encre); stroke-width: 1.2; }
.avion-train path { stroke: var(--encre); stroke-width: 2; fill: none; }
.avion-train circle { fill: var(--encre); }
.avion-helice { fill: var(--encre); opacity: .22; transform-origin: 108.5px 23px; animation: helice .12s linear infinite alternate; }
@keyframes helice { from { transform: scaleY(1); } to { transform: scaleY(.55); } }

.accueil-indice {
  position: absolute; bottom: 5.5vh; left: 0; right: 0; text-align: center;
  font-size: .875rem; color: var(--texte-doux);
}

/* =====================================================================
   PROJETS — la bibliothèque
   ===================================================================== */
.s-projets { background: linear-gradient(var(--ciel-1), var(--ciel-2)); }

.projets-outils {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  margin-bottom: 2.25rem;
}
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; }
.filtre {
  border: 1.5px solid rgba(14, 34, 54, .22); background: transparent;
  border-radius: 999px; padding: .42rem .9rem; cursor: pointer;
  font-weight: 550; font-size: .9375rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filtre:hover { border-color: var(--encre); }
.filtre span { opacity: .6; margin-left: .3rem; font-weight: 500; }
.filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.filtre[aria-pressed="true"] span { opacity: .75; }

.recherche {
  display: flex; align-items: center; gap: .5rem;
  border-bottom: 1.5px solid rgba(14, 34, 54, .45);
  padding: .3rem .1rem; color: var(--encre-douce);
}
.recherche:focus-within { border-bottom-color: var(--magenta); color: var(--encre); }
.recherche input {
  border: 0; background: transparent; outline: none;
  width: 14rem; color: var(--encre); padding: .2rem 0;
}
.recherche input::placeholder { color: var(--encre-douce); opacity: .8; }

.projets-grille {
  display: grid; gap: 2.5rem 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.carte {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--rayon);
}
.carte-couverture {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--rayon);
  background: var(--fond); color: var(--encre-c);
}
.carte-couverture img.capture { width: 100%; height: 100%; object-fit: cover; }
.motif {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.carte:hover .motif { transform: scale(1.045) translateY(-2%); }
.carte-nom {
  position: absolute; left: 18px; right: 18px; bottom: 16px;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-stretch: 125%; font-weight: 760; line-height: 1;
  letter-spacing: -0.01em;
}
.carte-texte { padding: 1rem .1rem 0; }
.carte-resume { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.carte:hover .carte-resume { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.carte-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .6rem; font-size: .875rem; color: var(--encre-douce); }
.etiquette {
  display: inline-block; padding: .12rem .55rem; border-radius: 5px;
  border: 1px solid rgba(14, 34, 54, .25); font-size: .8125rem; font-weight: 550; color: var(--encre);
}

.projets-vide { padding: 2.5rem 0; }
.projets-vide p { margin-bottom: 1rem; font-size: 1.125rem; }

/* Motifs des couvertures */
.motif .trace { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .38; }
.motif .trace-fort { fill: none; stroke: currentColor; stroke-width: 2; opacity: .7; }
.motif .plein { fill: currentColor; opacity: .14; }
.motif .plein-fort { fill: currentColor; opacity: .85; }
.motif .accent { fill: none; stroke: var(--accent-c, currentColor); stroke-width: 3; opacity: .95; }
.motif .accent-plein { fill: var(--accent-c, currentColor); }
.motif .pointille { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 4 7; opacity: .5; }

/* =====================================================================
   FICHE PROJET (dialog)
   ===================================================================== */
.fiche {
  width: min(720px, 100% - 32px); max-height: min(88vh, 900px);
  padding: 0; border: 0; border-radius: 14px;
  background: var(--papier); color: var(--encre);
  overflow: auto; overscroll-behavior: contain;
}
.fiche::backdrop { background: rgba(8, 20, 38, .62); backdrop-filter: blur(3px); }
.fiche[open] { animation: fiche-ouvre .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes fiche-ouvre { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fiche-couverture { position: relative; aspect-ratio: 16 / 7; background: var(--fond); color: var(--encre-c); overflow: hidden; }
.fiche-couverture img.capture { width: 100%; height: 100%; object-fit: cover; }
.fiche-corps { padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem) 2.25rem; }
.fiche-meta { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; font-size: .875rem; color: var(--encre-douce); margin-bottom: .9rem; }
.fiche-nom { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-stretch: 125%; font-weight: 780; letter-spacing: -0.01em; }
.fiche-resume { font-size: 1.125rem; font-weight: 600; margin-top: .5rem; }
.fiche-description { margin-top: 1rem; max-width: 64ch; }
.fiche-sous-titre { font-size: 1rem; font-weight: 700; margin: 1.75rem 0 .6rem; }
.fiche-points li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.fiche-points li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px;
  border: 2px solid var(--magenta); transform: rotate(45deg);
}
.fiche-tech { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin-top: 1.5rem; font-size: .9375rem; }
.fiche-tech dt { color: var(--encre-douce); }
.fiche-tech dd { display: flex; flex-wrap: wrap; gap: .4rem; }
.puce {
  display: inline-block; padding: .14rem .55rem; border-radius: 5px;
  background: rgba(14, 34, 54, .065); font-size: .875rem; font-weight: 500;
}
.fiche-liens { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.fiche-fermer {
  position: absolute; top: 12px; right: 12px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 252, 253, .92); color: var(--encre);
}
.fiche-fermer:hover { background: #fff; }

/* =====================================================================
   PARCOURS — carnet de vol
   ===================================================================== */
.s-parcours { background: linear-gradient(var(--ciel-2), var(--ciel-2b)); }

.carnet {
  background: var(--papier);
  border: 1px solid var(--trait); border-radius: 12px;
  overflow: hidden;
}
.carnet-entete, .ligne-resume {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1.1fr) minmax(0, 1.2fr) 7.75rem 8.75rem;
  padding-right: 52px;
}
.carnet-entete > *, .ligne-resume > * { padding: .95rem 1.1rem; }
.carnet-entete > * + *, .ligne-resume > * + * { border-left: 1px solid var(--trait); }
.carnet-entete {
  font-size: .8125rem; font-weight: 600; color: var(--encre-douce);
  border-bottom: 2px solid var(--encre);
}
.ligne { border-bottom: 1px solid var(--trait); }
.ligne:last-child { border-bottom: 0; }
.ligne-resume { position: relative; list-style: none; align-items: center; }
.ligne-resume::-webkit-details-marker { display: none; }
details.ligne > .ligne-resume { cursor: pointer; }
details.ligne > .ligne-resume:hover { background: rgba(180, 207, 224, .18); }
details.ligne > .ligne-resume::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--encre-douce); border-bottom: 2px solid var(--encre-douce);
  transform: rotate(45deg); transition: transform .2s;
}
details.ligne[open] > .ligne-resume::after { transform: rotate(-135deg); margin-top: -2px; }
.ligne-date { font-weight: 500; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.ligne-org { font-weight: 700; }
.ligne-fonction { color: var(--encre-douce); }
.ligne-duree { font-size: .9375rem; }
.type {
  display: inline-block; padding: .12rem .5rem; border-radius: 5px;
  font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.type-alternance { background: rgba(184, 33, 111, .1); color: #8E1754; }
.type-stage { background: rgba(46, 90, 130, .12); color: #234A6D; }
.type-saisonnier { background: rgba(14, 34, 54, .07); color: var(--encre-douce); }

.ligne-detail { padding: .25rem 1.1rem 1.4rem calc(12.5rem + 1.1rem); }
.ligne-detail ul { display: grid; gap: .3rem; }
.ligne-detail li { position: relative; padding-left: 1.2rem; }
.ligne-detail li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 1.5px; background: var(--magenta); }
.ligne-note { margin-top: .6rem; font-size: .9rem; color: var(--encre-douce); }

.cv-grille {
  display: grid; gap: 1.5rem; margin-top: 1.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.panneau {
  background: var(--papier); border: 1px solid var(--trait); border-radius: 12px;
  padding: 1.5rem 1.6rem 1.6rem;
}
.panneau h3 { font-size: 1.125rem; font-weight: 720; font-stretch: 112%; margin-bottom: 1rem; }

.formations { display: grid; gap: 1rem; }
.formations li { padding-left: 1rem; border-left: 2px solid var(--trait); }
.formations li.en-cours { border-left-color: var(--magenta); }
.formation-titre { font-weight: 650; line-height: 1.35; }
.formation-lieu { font-size: .9375rem; color: var(--encre-douce); margin-top: .2rem; }
.badge-encours { display: inline-block; margin-top: .35rem; font-size: .8125rem; font-weight: 600; color: #8E1754; }

.competences { display: grid; gap: .9rem; }
.competence-groupe h4 { margin: 0 0 .4rem; font-size: .875rem; font-weight: 600; color: var(--encre-douce); }
.competence-groupe div { display: flex; flex-wrap: wrap; gap: .35rem; }

.langues { display: grid; gap: .85rem; }
.langues li { display: grid; grid-template-columns: 6.5rem auto 1fr; align-items: center; gap: .9rem; }
.langue-nom { font-weight: 650; }
.echelle { display: flex; gap: 3px; }
.echelle i { width: 20px; height: 7px; border-radius: 2px; background: var(--trait); }
.echelle i.plein { background: var(--encre); }
.langue-niveau { font-size: .9375rem; color: var(--encre-douce); }

.divers { display: grid; gap: .5rem; }
.divers li { position: relative; padding-left: 1.3rem; }
.divers li::before {
  content: ""; position: absolute; left: 1px; top: .5em; width: 6px; height: 10px;
  border-right: 2px solid var(--magenta); border-bottom: 2px solid var(--magenta);
  transform: rotate(40deg);
}

/* =====================================================================
   PASSIONS — la traversée de la couche
   ===================================================================== */
.s-nuages {
  min-height: 82vh;
  display: flex; align-items: flex-end;
  padding-bottom: 4.5rem;
  background: linear-gradient(var(--ciel-2b) 0%, var(--ciel-3) 40%, var(--ciel-4) 78%, var(--ciel-4) 100%);
  color: var(--clair); overflow: hidden;
}
.nuages { position: absolute; inset: 0; pointer-events: none; }
.nuage { position: absolute; fill: #fff; will-change: transform; }
.nuage.n1 { left: -6%; top: 6%; width: 52vw; opacity: .96; }
.nuage.n2 { right: -8%; top: 16%; width: 44vw; opacity: .9; }
.nuage.n3 { left: 28%; top: 30%; width: 36vw; opacity: .7; filter: blur(1px); }
.nuage.n4 { left: -12%; top: 44%; width: 34vw; opacity: .42; fill: #e3eef6; filter: blur(2px); }
.nuage.n5 { right: 2%; top: 50%; width: 30vw; opacity: .3; fill: #e3eef6; filter: blur(2.5px); }
.passions-texte { position: relative; }
.passions-texte h2 {
  font-size: clamp(2.75rem, 8vw, 5.5rem); font-stretch: 125%; font-weight: 800;
  letter-spacing: -0.02em; line-height: .9; margin-bottom: 1rem;
}
.passions-texte p { max-width: 48ch; font-size: 1.1875rem; color: #DCE7F1; }

/* =====================================================================
   AVIATION — METAR
   ===================================================================== */
.s-aviation { background: linear-gradient(var(--ciel-4), var(--ciel-5)); }
.aviation-grille { display: grid; gap: 2.5rem 3.5rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.aviation-grille .section-tete { margin-bottom: 0; }
.aviation-licence { font-weight: 650; color: var(--clair) !important; font-size: 1.25rem !important; }
.aviation-chiffres { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.aviation-chiffres div { display: flex; flex-direction: column-reverse; }
.aviation-chiffres dt { font-size: .875rem; color: var(--clair-doux); }
.aviation-chiffres dd { font-size: 1.75rem; font-weight: 750; font-stretch: 115%; color: var(--ambre); line-height: 1.1; }

.metar {
  background: var(--instrument);
  border: 1px solid rgba(185, 204, 224, .16);
  border-radius: 14px; padding: 1.5rem;
}
.metar-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.metar-titre { font-size: 1.125rem; font-weight: 700; }
.metar-etat { font-size: .875rem; color: var(--clair-doux); margin-top: .25rem; }
.metar-etat.exemple { color: var(--ambre); }
.metar-brut {
  font-family: var(--mono); font-size: .9375rem; line-height: 1.5;
  color: var(--ambre); background: rgba(242, 177, 52, .07);
  border-radius: 8px; padding: .75rem .9rem; word-break: break-word;
}
.metar-corps { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1.5rem; margin-top: 1.4rem; align-items: start; }
.rose { width: 100%; height: auto; }
.rose-moyeu { fill: var(--ambre); }
.rose-cercle { fill: rgba(255, 255, 255, .02); stroke: rgba(185, 204, 224, .4); stroke-width: 1.5; }
.rose-graduations line { stroke: rgba(185, 204, 224, .45); stroke-width: 1.2; }
.rose-cardinal { fill: var(--clair-doux); font-size: 14px; font-weight: 650; text-anchor: middle; }
.rose-fleche path { fill: none; stroke: var(--ambre); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.rose-fleche { transition: transform .6s cubic-bezier(.2, .7, .2, 1); transform-origin: 100px 100px; }
.rose-valeur { fill: var(--clair); font-size: 15px; font-weight: 700; text-anchor: middle; }
.metar-decode { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .5rem 1.1rem; font-size: .9688rem; }
.metar-decode dt { color: var(--clair-doux); }
.metar-decode dd { color: var(--clair); font-weight: 500; }

/* =====================================================================
   MONTAGE PC
   ===================================================================== */
.s-pc { background: linear-gradient(var(--ciel-5), var(--ciel-6)); }
.pc-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: center; }
.pc-schema { width: 100%; height: auto; overflow: visible; }
.pc-boitier { fill: rgba(255, 255, 255, .025); stroke: rgba(185, 204, 224, .5); stroke-width: 2; }
.pc-ventilos circle { fill: none; stroke: rgba(185, 204, 224, .28); stroke-width: 1.5; }
.pc-part { cursor: pointer; outline: none; }
.pc-part > rect { fill: rgba(185, 204, 224, .07); stroke: rgba(185, 204, 224, .75); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.pc-part .pc-detail { fill: none; stroke: rgba(185, 204, 224, .45); stroke-width: 1.2; transition: stroke .2s; }
.pc-part:hover > rect { fill: rgba(242, 123, 184, .12); stroke: var(--magenta-clair); }
.pc-part.actif > rect { fill: rgba(242, 123, 184, .22); stroke: var(--magenta-clair); stroke-width: 2.2; }
.pc-part.actif .pc-detail { stroke: var(--magenta-clair); }
.pc-part:focus-visible > rect { stroke: var(--ambre); stroke-width: 3; }
.pc-part[data-id="cm"].actif > rect { fill: rgba(242, 123, 184, .1); }

.pc-liste { display: flex; flex-wrap: wrap; gap: .45rem; }
.pc-bouton {
  border: 1px solid rgba(185, 204, 224, .32); background: transparent; color: var(--clair-doux);
  border-radius: 999px; padding: .38rem .8rem; cursor: pointer; font-size: .9rem; font-weight: 500;
}
.pc-bouton:hover { color: var(--clair); border-color: rgba(185, 204, 224, .7); }
.pc-bouton[aria-pressed="true"] { background: var(--magenta-clair); border-color: var(--magenta-clair); color: var(--instrument); font-weight: 650; }
.pc-fiche { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(185, 204, 224, .2); min-height: 11rem; }
.pc-fiche-nom { font-size: 1.6rem; font-stretch: 118%; font-weight: 740; margin-bottom: .6rem; }
.pc-fiche-role { color: var(--clair); max-width: 46ch; }
.pc-fiche-config { margin-top: .9rem; color: var(--ambre); font-weight: 600; }
.pc-fiche-config:empty { display: none; }

/* =====================================================================
   ESPACE + CONTACT
   ===================================================================== */
.ciel-nuit {
  position: relative;
  background: linear-gradient(var(--ciel-6), var(--vide) 55%, var(--vide));
  overflow: hidden;
  overflow: clip;   /* coupe la Terre sans casser le globe « sticky » */
}
.etoiles { position: absolute; inset: 0; width: 100%; height: 100%; }
.ciel-nuit .section { z-index: 1; }

.s-contact { padding-bottom: calc(30vh + 4rem); min-height: 90vh; }
.contact-contenu { position: relative; z-index: 1; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-bottom: 2rem; }
.contact-email-lien {
  font-size: clamp(1.45rem, 4.4vw, 2.75rem); font-stretch: 112%; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em;
  text-decoration-color: rgba(242, 123, 184, .7);
  overflow-wrap: anywhere;
}
.contact-email-lien:hover { color: var(--magenta-clair); }
.contact-liens { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.contact-liens a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; text-decoration: none; padding: .3rem 0; border-bottom: 1.5px solid transparent; }
.contact-liens a:hover { border-bottom-color: currentColor; }
.contact-liens svg { width: 20px; height: 20px; }

.terre {
  position: absolute; left: 50%; top: calc(100% - 26vh);
  width: max(260vw, 1800px); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #3b7fc0 0%, #17457a 4%, #0b2547 12%, #050f22 30%);
  box-shadow: 0 0 70px 14px rgba(105, 170, 245, .32), 0 0 14px 2px rgba(175, 215, 255, .55);
}

.pied {
  background: var(--vide); color: var(--clair-doux);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding: 1.75rem max(24px, calc((100% - 1120px) / 2)) 2.25rem;
  font-size: .875rem;
  border-top: 1px solid rgba(185, 204, 224, .1);
}
@media (min-width: 1280px) { .pied { padding-inline: 180px; } }

.sans-js { position: fixed; bottom: 0; left: 0; right: 0; background: var(--encre); color: var(--clair); padding: 1rem 24px; z-index: 60; }

#cv-imprimable { display: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .aviation-grille, .pc-grille { grid-template-columns: minmax(0, 1fr); }
  .pc-schema { max-width: 560px; }
  .carnet-entete, .ligne-resume { grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 1.1fr) 7rem 6.5rem; }
  .ligne-detail { padding-left: calc(9.5rem + 1.1rem); }
}

@media (max-width: 780px) {
  .barre { gap: .75rem; }
  .barre-menu { display: block; order: 4; }
  .barre-alt { margin-left: auto; }
  .barre-nav {
    position: absolute; top: var(--barre-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: .5rem 24px 1.25rem;
    background: var(--ciel-0); color: var(--encre);
    box-shadow: 0 12px 24px rgba(8, 20, 38, .12);
    display: none;
  }
  .barre[data-zone="nuit"] .barre-nav { background: var(--instrument); color: var(--clair); }
  .barre-nav.ouvert { display: flex; }
  .barre-nav a { padding: .8rem 0; font-size: 1.125rem; border-bottom: 1px solid rgba(127, 150, 175, .2); }

  .cv-grille { grid-template-columns: minmax(0, 1fr); }

  .carnet-entete { display: none; }
  .ligne-resume { display: block; padding: 1rem 52px 1rem 1.1rem; }
  .ligne-resume > * { padding: 0; border: 0 !important; }
  .ligne-resume > * + * { border-left: 0; }
  .ligne-date { display: block; font-size: .875rem; color: var(--encre-douce); margin-bottom: .2rem; }
  .ligne-org { display: block; font-size: 1.0625rem; }
  .ligne-fonction { display: block; }
  .ligne-type { display: inline-block; margin-top: .45rem; }
  .ligne-duree { display: inline-block; margin-left: .6rem; color: var(--encre-douce); }
  .ligne-detail { padding: 0 1.1rem 1.25rem; }

  .metar-corps { grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; }
  .langues li { grid-template-columns: 5.5rem auto 1fr; gap: .6rem; }
  .echelle i { width: 14px; }
}

@media (max-width: 520px) {
  .conteneur { width: calc(100% - 32px); }
  .barre { padding-inline: 16px; }
  .bouton-cv { display: none; }
  .recherche { width: 100%; }
  .recherche input { width: 100%; }
  .metar { padding: 1.1rem; }
  .metar-tete { flex-direction: column; }
  .metar-corps { grid-template-columns: minmax(0, 1fr); }
  .rose { max-width: 150px; }
  .panneau { padding: 1.25rem 1.15rem; }
  .langues li { grid-template-columns: 1fr auto; }
  .langues .langue-niveau { grid-column: 1 / -1; margin-top: -.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .avion-helice { animation: none; }
  .motif, .rose-fleche, .fiche[open] { transition: none; animation: none; }
}

/* =====================================================================
   IMPRESSION — CV sur une page A4
   ===================================================================== */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  html, body { background: #fff !important; }
  body > *:not(#cv-imprimable) { display: none !important; }
  #cv-imprimable { display: block !important; }
}

#cv-imprimable {
  font-family: var(--police); color: #0E2236; font-size: 9pt; line-height: 1.4;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.cvi-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm; padding-bottom: 4mm; border-bottom: 1.6pt solid #0E2236; }
.cvi-nom { font-size: 26pt; font-stretch: 125%; font-weight: 820; line-height: .9; letter-spacing: -0.02em; }
.cvi-titre { font-size: 11pt; font-weight: 600; margin-top: 2.2mm; }
.cvi-contact { text-align: right; font-size: 8.8pt; line-height: 1.55; }
.cvi-contact a { text-decoration: none; }
.cvi-accroche { margin: 3.5mm 0 1mm; font-size: 9.6pt; max-width: 165mm; }
.cvi-colonnes { display: grid; grid-template-columns: 1.65fr 1fr; gap: 8mm; margin-top: 4mm; }
.cvi-bloc + .cvi-bloc { margin-top: 3.8mm; }
.cvi-bloc h2 { font-size: 10.5pt; font-stretch: 118%; font-weight: 760; color: #B8216F; margin-bottom: 2mm; padding-bottom: 1mm; border-bottom: .6pt solid #C7D7E3; }
.cvi-exp { break-inside: avoid; margin-bottom: 1.8mm; }
.cvi-exp-ligne { display: flex; justify-content: space-between; gap: 4mm; }
.cvi-exp-org { font-weight: 700; }
.cvi-exp-date { color: #3B5268; white-space: nowrap; font-size: 8.6pt; }
.cvi-exp-fonction { color: #3B5268; }
.cvi-exp-missions { margin: .6mm 0 0; padding: 0; list-style: none; }
.cvi-exp-missions li { position: relative; padding-left: 3mm; }
.cvi-exp-missions li::before { content: "–"; position: absolute; left: 0; color: #B8216F; }
.cvi-projet { margin-bottom: 1.3mm; break-inside: avoid; }
.cvi-projet strong { font-weight: 700; }
.cvi-projet span { color: #3B5268; }
.cvi-liste li { margin-bottom: .9mm; }
.cvi-sous { color: #3B5268; font-size: 8.6pt; }
.cvi-comp { margin-bottom: 1.1mm; }
.cvi-comp b { font-weight: 650; }
.cvi-pied { margin-top: 3mm; padding-top: 2mm; border-top: .6pt solid #C7D7E3; font-size: 8pt; color: #3B5268; }

/* =====================================================================
   PHOTOS D'AVIATION — pellicule justifiée + visionneuse
   ===================================================================== */
.photos-vol { margin-top: clamp(3rem, 6vw, 4.5rem); }
.pellicule { display: flex; gap: 14px; align-items: flex-start; }
.pellicule figure { margin: 0; flex: var(--ratio) 1 0; min-width: 0; }
.photo-bouton {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: var(--ratio); border-radius: var(--rayon); overflow: hidden;
  background: var(--ciel-6);
}
.photo-bouton img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.photo-bouton:hover img { transform: scale(1.03); }
.pellicule figcaption { margin-top: .55rem; font-size: .9rem; color: var(--clair-doux); }
.lien-instagram {
  display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem;
  font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; padding: .2rem 0;
}
.lien-instagram:hover { border-bottom-color: currentColor; }
.lien-instagram svg, .contact-liens svg { width: 20px; height: 20px; flex: none; }

.visionneuse {
  width: min(1100px, 100% - 24px); max-width: none; max-height: 94vh;
  padding: 0; border: 0; background: transparent; color: var(--clair); overflow: visible;
}
.visionneuse::backdrop { background: rgba(3, 5, 13, .92); }
.visionneuse figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.visionneuse img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 10px; }
.visionneuse figcaption { margin-top: .8rem; color: var(--clair-doux); text-align: center; }
.visionneuse-nav, .visionneuse-fermer {
  position: fixed; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(243, 246, 251, .12); color: var(--clair);
}
.visionneuse-nav:hover, .visionneuse-fermer:hover { background: rgba(243, 246, 251, .24); }
.visionneuse-prec { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse-suiv { right: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse-fermer { right: 16px; top: 16px; }
.visionneuse[data-seule] .visionneuse-nav { display: none; }

/* =====================================================================
   VOYAGES — le globe
   ===================================================================== */
.voyages-grille {
  display: grid; gap: 1.5rem 4rem; align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "globe tete" "globe info";
  grid-template-rows: auto 1fr;
}
.voyages-tete { grid-area: tete; margin-bottom: 0; }
.globe-zone {
  grid-area: globe; position: sticky; top: calc(var(--barre-h) + 16px); align-self: start;
  width: 100%; max-width: min(580px, calc(100vh - var(--barre-h) - 250px)); min-width: min(100%, 360px); justify-self: center;
}
.globe {
  display: block; width: 100%; aspect-ratio: 1; height: auto;
  cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.globe.glisse { cursor: grabbing; }
.globe-aide { text-align: center; font-size: .875rem; color: var(--clair-doux); margin-top: .4rem; }
.voyages-info { grid-area: info; }
.voyages-liste { border-top: 1px solid rgba(185, 204, 224, .18); }

.voyage-fiche { min-height: 8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(185, 204, 224, .18); }
.voyage-region { font-size: .875rem; color: var(--clair-doux); min-height: 1.4em; }
.voyage-nom { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-stretch: 118%; font-weight: 760; margin: .15rem 0 .5rem; }
.voyage-detail { color: var(--clair); }
.voyage-note { color: var(--clair-doux); margin-top: .5rem; }
.voyage-note:empty { display: none; }
.voyage-photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.voyage-photos:empty { display: none; }
.voyage-photos .photo-bouton { width: 88px; aspect-ratio: 1; border-radius: 8px; }

.voyages-liste { display: grid; }
.destination {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: .58rem .25rem; border-bottom: 1px solid rgba(185, 204, 224, .12);
  color: var(--clair-doux);
}
.destination:hover { color: var(--clair); }
.destination .repere { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; justify-self: center; }
.destination-nom { font-weight: 600; color: var(--clair); }
.destination-nom small { font-weight: 500; font-size: .8125rem; color: var(--clair-doux); margin-left: .5rem; }
.destination-dist { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.destination[aria-pressed="true"] { color: var(--ambre); }
.destination[aria-pressed="true"] .repere { background: var(--ambre); border-color: var(--ambre); }
.destination[aria-pressed="true"] .destination-nom { color: var(--ambre); }

/* Portrait du contact */
.contact-portrait {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 0 3px rgba(243, 246, 251, .9), 0 0 0 9px rgba(242, 123, 184, .28);
}

@media (max-width: 960px) {
  .voyages-grille { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tete" "globe" "info"; grid-template-rows: none; }
  .globe-zone { position: relative; top: auto; max-width: 520px; }
}
@media (max-width: 640px) {
  .pellicule { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .pellicule figure { flex: 0 0 auto; width: calc(var(--ratio) * min(300px, 62vw)); scroll-snap-align: start; }
  .visionneuse-nav { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-bouton img { transition: none; }
}


/* =====================================================================
   ESPACE — trois étapes
   ===================================================================== */
.espace-etapes {
  list-style: none; margin: 0; padding: 0;
  position: relative; display: grid; gap: 2rem 3rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.espace-etapes::before {
  content: ""; position: absolute; top: 31px; left: 32px; right: 10%;
  border-top: 1.5px dashed rgba(185, 204, 224, .32);
}
.espace-etapes li { position: relative; }
.etape-icone {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.1rem;
  border-radius: 50%; background: var(--ciel-6); border: 1.5px solid rgba(185, 204, 224, .4);
  color: var(--clair);
}
.espace-etapes li:last-child .etape-icone { border-color: var(--ambre); color: var(--ambre); }
.etape-icone svg { width: 34px; height: 34px; }
.espace-etapes h3 { font-size: 1.3rem; font-weight: 720; font-stretch: 112%; margin-bottom: .5rem; }
.espace-etapes p { color: var(--clair-doux); max-width: 38ch; }

/* =====================================================================
   AVIATION — vidéo, carte des navigations
   ===================================================================== */
.video-vol { margin: 2rem 0 0; }
.video-vol video {
  display: block; width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  border-radius: var(--rayon); background: var(--ciel-6); object-fit: cover;
}
.video-vol figcaption { margin-top: .55rem; font-size: .9rem; color: var(--clair-doux); }
.video-commande {
  margin-top: .6rem; display: inline-flex; align-items: center; gap: .45rem;
  background: none; border: 0; color: var(--clair-doux); cursor: pointer; padding: .2rem 0; font-size: .9rem;
}
.video-commande:hover { color: var(--clair); }

.emplacement-vide {
  display: grid; place-content: center; justify-items: center; gap: .45rem; text-align: center;
  border: 1.5px dashed rgba(185, 204, 224, .5); border-radius: var(--rayon);
  background: rgba(255, 255, 255, .035); color: var(--clair-doux);
  padding: 1rem; font-size: .875rem; line-height: 1.4;
  width: 100%; aspect-ratio: var(--ratio, 16 / 9);
}
.emplacement-vide strong { color: var(--clair); font-weight: 650; }
.emplacement-vide svg { width: 30px; height: 30px; opacity: .8; }

.photo-video { position: relative; }
.photo-video video { width: 100%; height: 100%; object-fit: cover; }
.badge-lecture {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 20, 38, .72); color: #fff; pointer-events: none;
}
.badge-lecture svg { width: 22px; height: 22px; margin-left: 3px; }
.visionneuse video { max-width: 100%; max-height: 82vh; border-radius: 10px; background: #000; }

.navigations { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.navigations-tete h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 118%; font-weight: 770; margin-bottom: .6rem; }
.navigations-tete p { color: var(--clair-doux); max-width: 60ch; font-size: 1.0625rem; }
.navigations-grille {
  display: grid; gap: 2rem 2.75rem; margin-top: 1.75rem; align-items: start;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.carte-vfr {
  position: relative; background: #C9DDEA; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(185, 204, 224, .35);
}
.carte-vfr-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.vfr-terre { fill: #EEF1E7; stroke: #86A7BE; stroke-width: .8; }
.vfr-lac { fill: #C9DDEA; stroke: #86A7BE; stroke-width: .8; }
.vfr-grille { fill: none; stroke: rgba(14, 34, 54, .13); stroke-width: .6; }
.vfr-grille-texte { font: 500 9.5px var(--police); fill: rgba(14, 34, 54, .45); }
.vfr-route { fill: none; stroke: var(--magenta); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; transition: opacity .25s, stroke-width .25s; cursor: pointer; }
.vfr-route.projet { stroke-dasharray: 6 5; }
.carte-vfr[data-choix] .vfr-route { opacity: .16; }
.carte-vfr[data-choix] .vfr-route.actif { opacity: 1; stroke-width: 3; }
.vfr-terrain { cursor: pointer; }
.vfr-terrain .symbole { fill: #fff; stroke: var(--magenta); stroke-width: 2; }
.vfr-terrain .piste { stroke: var(--magenta); stroke-width: 2; }
.vfr-terrain.base .symbole { fill: var(--magenta); }
.vfr-terrain.base .anneau { fill: none; stroke: var(--magenta); stroke-width: 1.5; }
.vfr-point .symbole { fill: #fff; stroke: var(--magenta); stroke-width: 1.8; }
.vfr-label {
  font: 650 10.5px var(--police); fill: var(--encre);
  paint-order: stroke; stroke: #EEF1E7; stroke-width: 3px; stroke-linejoin: round;
  pointer-events: none;
}
.vfr-label.base { font-size: 12px; fill: var(--magenta); }
.vfr-label.sur-route-projet { fill: var(--magenta); font-size: 11.5px; }
.carte-vfr[data-choix] .vfr-label.sur-route-projet:not(.actif) { opacity: .3; }
.carte-vfr[data-choix] .vfr-terrain:not(.sur-route), .carte-vfr[data-choix] .vfr-point:not(.sur-route), .carte-vfr[data-choix] .vfr-label:not(.sur-route):not(.sur-route-projet) { opacity: .3; }
.vfr-echelle line { stroke: var(--encre); stroke-width: 1.5; }
.vfr-echelle text, .vfr-nord text { font: 650 10px var(--police); fill: var(--encre); }
.vfr-nord path { fill: var(--encre); }

.nav-fiche { min-height: 9.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid rgba(185, 204, 224, .2); }
.nav-statut { font-size: .875rem; color: var(--clair-doux); }
.nav-statut.projet { color: var(--magenta-clair); font-weight: 600; }
.nav-titre { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 740; font-stretch: 112%; margin: .2rem 0 .55rem; line-height: 1.2; }
.nav-route { font-family: var(--mono); font-size: .875rem; color: var(--ambre); word-spacing: .1em; }
.nav-distance { margin-top: .4rem; color: var(--clair); }
.nav-note { margin-top: .45rem; color: var(--clair-doux); }
.nav-note:empty, .nav-route:empty, .nav-video:empty { display: none; }
.nav-video { margin-top: .9rem; }
.nav-video video { width: 100%; border-radius: 8px; }

.navigations-liste { display: grid; margin-top: .4rem; }
.nav-bouton {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: .55rem .1rem; border-bottom: 1px solid rgba(185, 204, 224, .12);
  color: var(--clair); font-size: .95rem;
}
.nav-bouton span:last-child { color: var(--clair-doux); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-bouton:hover { color: var(--magenta-clair); }
.nav-bouton[aria-pressed="true"] { color: var(--magenta-clair); font-weight: 650; }
.nav-bouton.projet span:last-child { color: var(--magenta-clair); }

/* =====================================================================
   VOYAGES — projets sur le globe, le russe
   ===================================================================== */
.destination.projet .repere { border-style: dashed; }
.destination.projet .destination-dist { color: var(--magenta-clair); font-size: .85rem; }
.voyages-groupe {
  margin: 1.4rem 0 .2rem; font-size: .8125rem; font-weight: 600; color: var(--magenta-clair);
}

.russe {
  margin-top: clamp(4rem, 8vw, 6rem);
  display: grid; gap: 2.5rem 4rem; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.russe-titre { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-stretch: 118%; font-weight: 770; }
.russe-phrase {
  font-family: 'Unbounded', var(--police); font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); line-height: 1.15; color: var(--ambre);
  margin: 1.1rem 0 .35rem;
}
.russe-traduction { color: var(--clair-doux); font-size: .95rem; }
.russe-raisons { margin-top: 1.5rem; display: grid; gap: .8rem; }
.russe-raisons li { position: relative; padding-left: 1.4rem; color: var(--clair); }
.russe-raisons li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border: 2px solid var(--magenta-clair); transform: rotate(45deg); }

.alphabet {
  background: rgba(8, 20, 38, .78); border: 1px solid rgba(185, 204, 224, .16);
  border-radius: 14px; padding: 1.4rem;
}
.alphabet-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1rem; margin-bottom: 1.1rem; }
.alphabet-tete p { color: var(--clair-doux); font-size: .95rem; max-width: 34ch; }
.bouton-instrument[aria-pressed="true"] { background: var(--magenta-clair); border-color: var(--magenta-clair); color: var(--instrument); }
.alphabet-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.lettre {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  font-family: 'Unbounded', var(--police); font-size: 1.05rem; font-weight: 500;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(185, 204, 224, .18);
  border-radius: 8px; color: var(--clair); cursor: pointer; padding: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
.lettre:hover { border-color: rgba(185, 204, 224, .55); }
.lettre[aria-pressed="true"] { background: var(--ambre); border-color: var(--ambre); color: var(--instrument); }
.alphabet.faux-amis .lettre.faux-ami { border-color: var(--magenta-clair); box-shadow: inset 0 0 0 1px var(--magenta-clair); }
.alphabet.faux-amis .lettre.faux-ami::after {
  content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--magenta-clair);
}
.alphabet-fiche { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.25rem; min-height: 5.5rem; }
.lettre-grande { font-family: 'Unbounded', var(--police); font-size: 2.9rem; font-weight: 700; color: var(--ambre); line-height: 1; white-space: nowrap; }
.lettre-son { color: var(--clair); }
.lettre-son em { font-style: normal; color: var(--magenta-clair); }

@media (max-width: 960px) {
  .navigations-grille, .russe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .espace-etapes { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .espace-etapes::before { top: 32px; bottom: 32px; left: 31px; right: auto; border-top: 0; border-left: 1.5px dashed rgba(185, 204, 224, .32); }
  .espace-etapes li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1.1rem; }
  .espace-etapes .etape-icone { grid-row: span 2; margin-bottom: 0; }
}
@media (max-width: 640px) {
  .vfr-label:not(.base):not(.sur-route):not(.sur-route-projet) { display: none; }
  .vfr-label, .vfr-label.sur-route-projet { font-size: 20px; stroke-width: 5px; }
  .vfr-label.base { font-size: 22px; }
  .vfr-echelle text, .vfr-nord text { font-size: 19px; }
}


/* =====================================================================
   PROJETS — captures, galerie, projets liés au parcours
   ===================================================================== */
.carte-couverture:not(.avec-image)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 34%, color-mix(in srgb, var(--fond) 94%, transparent) 72%);
}
.carte-couverture .carte-nom { z-index: 1; }
.carte-couverture.avec-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 20, 38, .82));
}
.carte-couverture.avec-image .carte-nom { z-index: 1; color: #fff; }
.carte-couverture.avec-image img.capture { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.carte:hover .carte-couverture.avec-image img.capture { transform: scale(1.035); }

.fiche-galerie {
  display: flex; gap: 12px; overflow-x: auto; margin: 1.4rem calc(-1 * clamp(1.25rem, 4vw, 2.5rem)) 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem) 8px; scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  scrollbar-width: thin;
}
.fiche-galerie[hidden] { display: none; }
.fiche-galerie figure { margin: 0; flex: 0 0 auto; width: max(150px, calc(var(--ratio) * var(--h, 210px))); max-width: 82%; scroll-snap-align: start; }
.fiche-galerie .photo-bouton { aspect-ratio: var(--ratio); border-radius: 8px; background: #DDE6EE; border: 1px solid var(--trait); }
.fiche-galerie figcaption { font-size: .8125rem; color: var(--encre-douce); margin-top: .4rem; line-height: 1.35; }

.ligne-projets { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .5rem; margin-top: .9rem; }
.ligne-projets > span { font-size: .875rem; color: var(--encre-douce); margin-right: .2rem; }
.puce-projet {
  border: 1.5px solid rgba(184, 33, 111, .35); background: rgba(184, 33, 111, .06); color: #8E1754;
  border-radius: 999px; padding: .28rem .7rem; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.puce-projet:hover { background: rgba(184, 33, 111, .14); border-color: var(--magenta); }

.nav-bouton small { margin-left: .5rem; font-size: .78rem; color: var(--clair-doux); font-weight: 500; }

/* Préparation de navigation sur carte papier */
.nav-preparations { margin-top: 1.25rem; display: grid; gap: 1.25rem; }
.nav-preparations figure { margin: 0; }
.nav-preparations .photo-bouton { aspect-ratio: 16 / 9; }
.nav-preparations .photo-bouton img { object-position: 50% 62%; }
.nav-preparations figcaption { margin-top: .6rem; color: var(--clair-doux); font-size: .9375rem; line-height: 1.5; }
.nav-preparations figcaption span { display: block; }
.lien-route {
  margin-top: .35rem; padding: .2rem 0; background: none; border: 0; cursor: pointer;
  color: var(--magenta-clair); font-weight: 600; font-size: .9375rem;
  border-bottom: 1.5px solid transparent;
}
.lien-route:hover { border-bottom-color: currentColor; }
