/* =====================================================================
   besimdemiri.ch : feuille de style du site CV (français et anglais)
   ---------------------------------------------------------------------
   Univers « studio de campagne » : le site se lit comme une campagne
   en quatre étapes (stratégie, création, diffusion, mesure).
   - Couleurs : règle 60-30-10, toujours en clair (pas de mode sombre) :
       60 % fond clair #f6f7fb (et blanc pour les cartes),
       30 % bleu nuit #0f1a2e (en-tête, ouverture, bandeau IA, contact, pied),
       10 % bleu vif #3451d8 (boutons, liens, repères).
     #8ea2ff est une teinte claire du bleu vif, pour rester lisible sur le bleu nuit.
   - Police : Hanken Grotesk (licence OFL), hébergée dans fonts/.
   - Un seul moment fort : le ruban des quatre étapes sous l'ouverture,
     qui sert aussi de navigation.
   ===================================================================== */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/HankenGrotesk-variable.woff2") format("woff2");
  font-weight: 400 700; /* police « variable » : toutes les graisses dans un fichier */
  font-display: swap;
}

/* ---------- Couleurs et mesures (à modifier ici seulement) ---------- */
:root {
  color-scheme: light;
  /* Les trois couleurs du site */
  --fond: #f6f7fb;         /* 60 % : fond clair */
  --nuit: #0f1a2e;         /* 30 % : bleu nuit */
  --bleu: #3451d8;         /* 10 % : bleu vif, accent */
  /* Nuances de ces trois couleurs */
  --surface: #ffffff;      /* cartes, sur le fond clair */
  --encre: var(--nuit);    /* texte principal */
  --encre-douce: #4a5568;  /* texte secondaire (contraste > 7:1 sur le fond) */
  --bleu-fonce: #23389e;   /* bleu vif au survol */
  --bleu-clair: #e7ebff;   /* bleu vif très pâle, sur le fond clair */
  --bleu-sur-nuit: #8ea2ff;/* bleu vif éclairci, lisible sur le bleu nuit */
  --sur-nuit: #ffffff;     /* texte principal sur le bleu nuit */
  --sur-nuit-doux: #b9c2d8;/* texte secondaire sur le bleu nuit */
  --trait-nuit: rgba(255, 255, 255, .14);
  --trait: #e2e6ef;
  --ombre: 0 1px 2px rgba(15, 26, 46, .05), 0 8px 24px -12px rgba(15, 26, 46, .12);

  --police: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --large: 74rem;          /* largeur maximale de la page */
  --mesure: 64ch;          /* largeur maximale d'un paragraphe */
  --marge: clamp(1rem, 4vw, 2.5rem);
  --rayon: 14px;
}

/* ---------- Bases ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem; /* les ancres ne passent pas sous l'en-tête fixe */
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }

.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--encre); color: var(--fond); padding: .6rem 1rem; border-radius: 8px;
}
.evitement:focus { top: 1rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--nuit) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--trait-nuit);
}
.entete__barre {
  max-width: var(--large); margin: 0 auto; padding: .7rem var(--marge);
  display: flex; align-items: center; gap: 1rem;
}
.marque { display: flex; align-items: center; gap: .6rem; color: var(--sur-nuit); text-decoration: none; font-weight: 700; }
.marque__initiales {
  display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px;
  background: var(--bleu); color: #fff; font-size: .85rem; letter-spacing: .02em;
}
.nav { display: flex; gap: .15rem; margin-left: auto; }
.nav a {
  padding: .45rem .8rem; border-radius: 999px; color: var(--sur-nuit-doux);
  text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav a:hover { color: var(--sur-nuit); background: rgba(255, 255, 255, .08); }
.nav a[aria-current] { color: #fff; background: var(--bleu); }
.langue {
  font-weight: 700; font-size: .85rem; color: var(--sur-nuit); text-decoration: none;
  border: 1.5px solid var(--trait-nuit); border-radius: 999px; padding: .3rem .7rem;
}
.langue:hover { border-color: var(--bleu-sur-nuit); color: var(--bleu-sur-nuit); }

/* Barre de lecture : un trait bleu qui s'allonge avec le défilement (script.js) */
.progression { height: 2px; }
.progression span {
  display: block; height: 100%; background: var(--bleu-sur-nuit);
  transform-origin: left; transform: scaleX(0);
}

/* Téléphone : la marque et la langue sur une ligne, le menu dessous, défilant */
@media (max-width: 46rem) {
  .entete__barre { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .45rem; }
  .langue { margin-left: auto; }
  .nav {
    order: 3; width: calc(100% + 2 * var(--marge)); margin: 0 calc(-1 * var(--marge));
    padding: 0 var(--marge); overflow-x: auto; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .4rem .75rem; font-size: .925rem; }
  .nav a:first-child { margin-left: -.75rem; }
  html { scroll-padding-top: 7.5rem; }
}

/* ---------- Boutons ---------- */
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px;
  border: 1.5px solid var(--trait); background: var(--surface); color: var(--encre);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.bouton:hover { border-color: var(--bleu); color: var(--bleu); }
.bouton:active { transform: translateY(1px); }
.bouton--plein { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton--plein:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
/* Boutons posés sur un fond bleu nuit (bandeau IA, contact) */
.bouton--clair { background: #fff; border-color: #fff; color: #0f1a2e; }
.bouton--clair:hover { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton--contour-clair { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.bouton--contour-clair:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Mise en page commune ---------- */
main > section, .haut > .ouverture, .campagne {
  max-width: var(--large); margin-left: auto; margin-right: auto;
  padding-left: var(--marge); padding-right: var(--marge);
}
.section { padding-top: clamp(4.5rem, 10vw, 7.5rem); }
.section__tete { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section__tete h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: .8rem; }
.section__tete p { font-size: 1.15rem; color: var(--encre-douce); margin: 0; }
.petit-titre { font-size: 1.1rem; margin: 2.5rem 0 1rem; color: var(--encre); }
.petit-titre:first-child { margin-top: 0; }

/* ---------- Ouverture : bandeau bleu nuit (30 %) ---------- */
.haut { background: var(--nuit); color: var(--sur-nuit); padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.ouverture {
  display: grid; gap: 2rem 4rem; align-items: center;
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
}
@media (min-width: 56rem) {
  .ouverture { grid-template-columns: 1fr minmax(16rem, 22rem); }
  .reperes { grid-column: 1 / -1; }
}
.ouverture h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02; letter-spacing: -.04em; max-width: 13ch;
  margin-bottom: 1.5rem; color: var(--sur-nuit);
}
.ouverture__intro { font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--sur-nuit-doux); max-width: 40rem; margin-bottom: 2rem; }
.ouverture__intro strong { color: var(--sur-nuit); }

/* Portrait : cadre bleu décalé, comme sur le CV PDF */
.portrait { margin: 0; position: relative; max-width: 22rem; justify-self: center; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--bleu); border-radius: 22px;
}
.portrait img {
  position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 22px 22px 22px 22px; background: #1d1d1d;
}
@media (max-width: 55.99rem) {
  .portrait { order: -1; max-width: 9rem; justify-self: start; }
  .portrait::before { inset: .6rem -.6rem -.6rem .6rem; border-radius: 14px; }
  .portrait img { border-radius: 14px; }
}

/* Trois repères sous l'ouverture */
.reperes {
  display: grid; gap: 1px; margin: clamp(1rem, 3vw, 2rem) 0 0;
  background: var(--trait-nuit); border: 1px solid var(--trait-nuit); border-radius: var(--rayon); overflow: hidden;
}
@media (min-width: 40rem) { .reperes { grid-template-columns: repeat(3, 1fr); } }
.reperes div { background: #16233b; padding: 1.1rem 1.25rem; }
.reperes dt { font-weight: 700; line-height: 1.35; color: var(--sur-nuit); }
.reperes dd { margin: .2rem 0 0; color: var(--sur-nuit-doux); font-size: .95rem; }

/* ---------- Le ruban des quatre étapes (moment fort de la page) ---------- */
.campagne { margin-top: clamp(3rem, 7vw, 4.5rem); }
.campagne ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem;
  position: relative;
}
@media (min-width: 52rem) {
  .campagne ol { grid-template-columns: repeat(4, 1fr); gap: 0; }
  /* Le trait qui relie les quatre étapes */
  .campagne ol::before {
    content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.4rem; height: 2px;
    background: linear-gradient(90deg, var(--bleu-sur-nuit), rgba(142, 162, 255, .15));
  }
}
.campagne a {
  position: relative; display: grid; gap: .25rem; height: 100%; align-content: start;
  padding: 0 1rem 0 0; color: var(--sur-nuit); text-decoration: none;
}
@media (max-width: 51.99rem) {
  .campagne a { padding: 1rem; background: #16233b; border: 1px solid var(--trait-nuit); border-radius: var(--rayon); }
}
.campagne__num {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .6rem;
  border-radius: 50%; background: var(--nuit); border: 2px solid var(--bleu-sur-nuit);
  color: var(--bleu-sur-nuit); font-weight: 700; font-size: 1.1rem;
  transition: background-color .2s, color .2s;
}
.campagne__nom { font-weight: 700; font-size: 1.2rem; }
.campagne__quoi { color: var(--sur-nuit-doux); font-size: .95rem; line-height: 1.4; }
.campagne a:hover .campagne__num,
.campagne a[aria-current] .campagne__num { background: var(--bleu); border-color: var(--bleu); color: #fff; }

/* ---------- Ce que j'apporte : les quatre étapes en détail ---------- */
.etapes { display: grid; gap: 1rem; }
.etape {
  display: grid; gap: 1.25rem 3rem;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: clamp(1.4rem, 4vw, 2.5rem);
}
@media (min-width: 52rem) { .etape { grid-template-columns: 1fr 1.25fr; } }
.etape__tete { display: flex; gap: 1rem; align-items: flex-start; }
.etape__num {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--bleu-clair); color: var(--bleu); font-weight: 700;
}
.etape h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.etape__nom { display: block; font-size: 1rem; letter-spacing: 0; color: var(--bleu); margin-bottom: .35rem; }
.coches { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.coches li { position: relative; padding: 0 0 .55rem 1.9rem; }
.coches li::before { /* coche dessinée en CSS */
  content: ""; position: absolute; left: .2rem; top: .45em;
  width: .9rem; height: .5rem; border-left: 2.5px solid var(--bleu); border-bottom: 2.5px solid var(--bleu);
  transform: rotate(-45deg);
}
.outils { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.outils li {
  font-size: .85rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px;
  background: var(--fond); border: 1px solid var(--trait); color: var(--encre-douce);
}
.outils--grands li { font-size: .95rem; padding: .35rem .9rem; }
.preuve { margin: 0; padding-top: 1rem; border-top: 1px dashed var(--trait); color: var(--encre-douce); font-size: .95rem; }
.preuve span { display: block; font-weight: 700; color: var(--encre); font-size: .85rem; margin-bottom: .15rem; }

/* Le grand plus : bandeau bleu nuit */
.plus {
  margin-top: 1rem; display: grid; gap: 1.5rem 3rem; align-items: center;
  background: var(--nuit); color: var(--sur-nuit); border-radius: var(--rayon);
  padding: clamp(1.6rem, 4.5vw, 3rem);
}
@media (min-width: 60rem) { .plus { grid-template-columns: 1.3fr 1fr auto; } }
.plus h3 { font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-bottom: .75rem; }
.plus p { margin: 0; color: var(--sur-nuit-doux); }
.plus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plus li { color: var(--sur-nuit-doux); }
.plus li strong { display: block; color: var(--bleu-sur-nuit); }

/* ---------- Réalisations ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filtres button {
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--surface); color: var(--encre-douce); border: 1.5px solid var(--trait);
}
.filtres button:hover { color: var(--encre); border-color: var(--encre-douce); }
.filtres button[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--fond); }

.realisations { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .realisations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .realisations { grid-template-columns: repeat(3, 1fr); } }
.real {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.real h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.real p { color: var(--encre-douce); }
.real p:last-child { margin-bottom: 0; }
.real__cat { font-size: .85rem; font-weight: 700; color: var(--bleu) !important; margin-bottom: .5rem; }
.real__lien { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: auto; font-weight: 700; }
.real__note { font-size: .9rem; margin-top: auto; }
.real details { margin: 0 0 1rem; }
.real summary { cursor: pointer; font-weight: 700; color: var(--encre); }
.real details ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--encre-douce); }
.real details li { margin-bottom: .35rem; }

/* Place des cartes dans la grille.
   2 colonnes : les grandes cartes et « Ce site » prennent toute la largeur.
   3 colonnes : la remise des diplômes prend deux colonnes, à côté d'eduQua. */
@media (min-width: 46rem) {
  .real--large, .real--vka, .real--reseaux, .real--evenement, .real--eduqua, .real--site { grid-column: 1 / -1; }
  .real--large, .real--vka { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.25rem; align-items: center; }
  .real--reseaux { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
}
@media (min-width: 64rem) {
  .real--evenement { grid-column: span 2; }
  .real--eduqua, .real--site { grid-column: auto; }
  .real--large, .real--vka { padding: 2.25rem; }
}

/* techniquebatiment.ch : capture ordinateur dans un cadre de navigateur,
   capture téléphone posée devant, en bas à droite */
.ecrans { position: relative; padding: 0 9% 2.25rem 0; }
.navigateur {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--trait);
  background: var(--fond); box-shadow: var(--ombre);
}
.navigateur__barre { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; background: var(--surface); border-bottom: 1px solid var(--trait); }
.navigateur__barre span { width: .6rem; height: .6rem; border-radius: 50%; background: var(--trait); }
.navigateur__barre p {
  margin: 0 0 0 .6rem !important; flex: 1; padding: .1rem .7rem; border-radius: 999px;
  background: var(--fond); font-size: .8rem; color: var(--encre-douce);
}
.navigateur img { width: 100%; }
.ecrans__tel {
  position: absolute; right: 0; bottom: 0; width: 27%;
  border-radius: 16px; border: 4px solid var(--encre); background: #fff;
  box-shadow: 0 12px 30px -10px rgba(15, 26, 46, .35);
}
@media (max-width: 45.99rem) { .ecrans { margin-bottom: 1.5rem; } }

/* Remise des diplômes : photo à gauche (en haut sur téléphone), texte à droite */
.real--evenement { padding: 0; overflow: hidden; }
.real__photo { margin: 0; background: #1b0f0f; }
.real__photo { display: flex; align-items: center; }
.real__photo img { width: 100%; } /* photo entière, sans recadrage */
.real--evenement .real__texte { padding: 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 46rem) {
  .real--evenement { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .real--evenement .real__texte { justify-content: center; padding: 2rem; }
}
.chiffre { margin-bottom: .9rem; color: var(--encre-douce); }
.chiffre strong {
  display: block; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; letter-spacing: -.035em;
  color: var(--encre); margin-bottom: .2rem;
}

/* Réseaux sociaux de TBS SA : deux liens en forme de tuiles */
.reseaux { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (max-width: 45.99rem) { .reseaux { margin-top: 1.25rem; } }
.reseaux a {
  display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.25rem;
  border: 1.5px solid var(--trait); border-radius: 12px; background: var(--fond);
  text-decoration: none; transition: border-color .15s;
}
.reseaux a:hover { border-color: var(--bleu); }
.reseaux__nom { font-weight: 700; color: var(--encre); }
.reseaux__compte { color: var(--bleu); font-size: .95rem; }

/* V-KA Tech : fond en carrelage bleu, repris de la charte de la marque */
.real--vka {
  background-color: #1846a3; color: #fff; border-color: #1846a3;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.14) 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.14) 2px, transparent 2px);
  background-size: 48px 48px;
}
.real--vka h3, .real--vka summary { color: #fff; }
.real--vka p, .real--vka details ul { color: #dfe7fb; }
.real--vka .real__cat { color: #b9cdf7 !important; }
.real--vka a { color: #fff; }
.real--vka .real__texte { background: #1846a3; border-radius: 10px; padding: 1rem; margin: -1rem; }
.vka-images { display: grid; grid-template-columns: 1fr 1.4fr; gap: .75rem; }
.vka-images img { border-radius: 8px; background: #fff; width: 100%; }
.vka-images__brochure { grid-row: span 2; height: 100%; object-fit: cover; object-position: top; }
.vka-images img:not(.vka-images__brochure) { align-self: center; }
@media (max-width: 45.99rem) { .vka-images { margin-top: 1.5rem; } }

/* Applis personnelles : écrans de téléphone en haut de la carte */
.telephones {
  display: flex; justify-content: center; align-items: flex-start; gap: .6rem;
  margin-bottom: 1.25rem; padding: 1.25rem 1rem 0; height: 15.5rem; overflow: hidden;
  background: var(--fond); border-radius: 10px;
}
.telephones img {
  width: 7.5rem; border-radius: 14px;
  border: 3px solid var(--encre); background: #0f1a2e;
}
.telephones img:nth-child(2) { margin-top: 1.5rem; }

/* ---------- Parcours ---------- */
.parcours { display: grid; gap: 3rem 4rem; }
@media (min-width: 56rem) { .parcours { grid-template-columns: 1.35fr 1fr; } }
.frise { list-style: none; margin: 0; padding: 0; }
.frise > li { position: relative; padding: 0 0 2rem 1.75rem; border-left: 2px solid var(--trait); }
.frise > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.frise > li::before {
  content: ""; position: absolute; left: -8px; top: .3rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--fond); border: 3px solid var(--bleu);
}
.frise > li:first-child::before { background: var(--bleu); }
.frise h4 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.3; }
.frise p { margin: 0; }
.frise__dates { font-size: .9rem; color: var(--encre-douce); font-weight: 600; margin-bottom: .2rem !important; }
.frise__lieu { color: var(--bleu); font-weight: 600; }
.frise ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--encre-douce); max-width: var(--mesure); }
.frise ul li { margin-bottom: .3rem; }
.frise ul li::marker { color: var(--bleu); }

/* Langues : jauge de 6 cases (A1 à C2) */
.langues { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.langues li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .2rem 1rem; align-items: center; }
.langues__nom { font-weight: 700; }
.langues__niveau { grid-column: 2; font-size: .9rem; color: var(--encre-douce); }
.jauge {
  height: .55rem; border-radius: 999px;
  /* 6 cases : la partie remplie en bleu, le reste en gris, séparées par des joints */
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 6 - 3px), var(--fond) calc(100% / 6 - 3px) calc(100% / 6)),
    linear-gradient(90deg, var(--bleu) calc(var(--n) * 100% / 6 - 3px), var(--trait) 0);
}
.jauge[data-niveau="6"] { --n: 6; }
.jauge[data-niveau="4"] { --n: 4; }
.jauge[data-niveau="3"] { --n: 3; }

/* ---------- Contact ---------- */
.contact {
  max-width: none !important; margin-top: clamp(4.5rem, 10vw, 7.5rem);
  background: var(--nuit); color: var(--sur-nuit);
  padding-top: clamp(3.5rem, 9vw, 6rem); padding-bottom: clamp(3.5rem, 9vw, 6rem);
}
.contact__int { max-width: calc(var(--large) - 2 * var(--marge)); margin: 0 auto; }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.035em; color: #fff; margin-bottom: 1rem; }
.contact p { max-width: 40rem; color: var(--sur-nuit-doux); font-size: 1.15rem; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.75rem 0 2rem; }
.contact__mail a { color: #fff; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact__mail a:hover { color: var(--bleu-sur-nuit); }
.copier {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.08);
  color: #fff; border: 1px solid rgba(255,255,255,.3);
}
.copier:hover { background: rgba(255,255,255,.16); }
.imprime-seul { display: none; }

.pied {
  background: var(--nuit); border-top: 1px solid var(--trait-nuit);
  /* marges latérales calculées pour aligner le texte sur le reste de la page */
  padding: 1.5rem max(var(--marge), calc((100% - var(--large)) / 2 + var(--marge))) 2.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  color: var(--sur-nuit-doux); font-size: .9rem;
}
.pied a { color: var(--bleu-sur-nuit); }
.pied p { margin: 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
}

/* ---------- Impression / PDF : une version CV sobre, sur fond blanc ---------- */
@media print {
  @page { margin: 1.3cm; }
  :root {
    --fond: #fff; --surface: #fff; --encre: #000; --encre-douce: #333;
    --bleu: #3451d8; --bleu-clair: #e7ebff; --trait: #ccc;
  }
  body { font-size: 10pt; background: #fff; }
  .entete, .evitement, .boutons, .campagne, .filtres, .plus .bouton, .ecrans, .real__photo,
  .reseaux, .vka-images, .telephones, .pied, .copier, .real__lien { display: none !important; }
  .haut { background: #fff !important; padding: 0; }
  .ouverture h1, .ouverture__intro, .ouverture__intro strong, .reperes dt, .reperes dd { color: #000; }
  .reperes, .reperes div { background: #fff; border-color: #ccc; }
  .ouverture { grid-template-columns: 1fr 3.2cm; padding-top: 0; gap: 1rem 2rem; }
  .ouverture h1 { font-size: 24pt; max-width: none; }
  .portrait { order: 0; max-width: 3.2cm; }
  .portrait::before { display: none; }
  .reperes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .section { padding-top: 1.5rem; }
  .section__tete h2 { font-size: 16pt; }
  .etape, .real, .plus { break-inside: avoid; padding: .8rem; box-shadow: none; }
  .etape { grid-template-columns: 1fr 1.4fr; }
  .plus { background: #fff !important; color: #000; border: 1px solid #ccc; grid-template-columns: 1fr 1fr; }
  .plus h3, .plus p, .plus li { color: #000; }
  .plus li strong { color: #3451d8; }
  .realisations { grid-template-columns: repeat(2, 1fr); }
  .real--large, .real--vka, .real--evenement, .real--reseaux, .real--eduqua, .real--site { grid-column: auto; display: block; }
  .real--evenement .real__texte { padding: 0; }
  .real--vka { background: #fff !important; border-color: #ccc; }
  .real--vka .real__texte { background: none; padding: 0; margin: 0; }
  .real--vka h3, .real--vka summary, .real--vka p, .real--vka details ul { color: #000; }
  .parcours { grid-template-columns: 1.35fr 1fr; }
  .frise > li { break-inside: avoid; }
  .contact { background: #fff !important; color: #000; padding: 1rem 0 0; }
  .contact h2, .contact p, .contact__mail a { color: #000; }
  .contact h2 { font-size: 16pt; }
  .imprime-seul { display: block; }
  .jauge, .frise > li::before, .campagne__num { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
}
