/* ==========================================================================
   portfolio.css — ce que le site ajoute au kit Identity (bw-ui.css).
   Classes préfixées « pf- ». Couleurs : uniquement les jetons de tokens.css.
   Les cartes topographiques prennent les couleurs réservées aux illustrations
   (ocre, ardoise, écorce), dans l'ordre des séries de la charte.
   ========================================================================== */

html { scroll-padding-top: 80px; }
main:focus { outline: none; }
.pf-icone { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* ---------- En-tête : langue, thème dans le menu mobile ---------- */
.pf-langue {
  font-family: var(--font-code); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--encre-douce); text-decoration: none; padding: 6px 10px; border-radius: var(--arrondi-plein);
  border: 1px solid var(--trait);
}
.pf-langue:hover { color: var(--encre); background: var(--papier-creux); }
.bw-entete__barre { gap: var(--espace-4); }
.pf-menu-theme { padding: var(--espace-2) var(--espace-3) var(--espace-1); border-top: 1px solid var(--trait); margin-top: var(--espace-2); }
.bw-menu-mobile .pf-menu-theme .bw-theme { display: inline-flex; }
@media (max-width: 760px) {
  .pf-langue { margin-left: auto; }
  .bw-menu-mobile { margin-left: 0; }
  .bw-marque span { font-size: 16px; }
}

/* ---------- Bandeau d'accueil et fiche d'observation ---------- */
.pf-hero__grille { position: relative; display: grid; gap: var(--espace-12); align-items: center; }
@media (min-width: 980px) { .pf-hero__grille { grid-template-columns: minmax(0, 1fr) 380px; } }
.pf-hero .bw-hero__contenu { max-width: 660px; }
.pf-hero__suite { color: var(--encre-douce); font-size: 17px; margin-top: calc(-1 * var(--espace-3)); }
.pf-hero__actions { margin-top: var(--espace-2); }

.pf-fiche {
  position: relative; background: var(--papier-releve); border: 1px solid var(--trait); border-radius: var(--arrondi-l);
  padding: var(--espace-6); display: grid; gap: var(--espace-4);
  transform: rotate(1.2deg); transition: transform .4s ease, box-shadow .4s ease;
}
.pf-fiche::before { /* le ruban adhésif qui tient la fiche dans le carnet */
  content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  background: color-mix(in srgb, var(--rouge-gorge-pale) 85%, transparent); border-radius: 3px; transform: rotate(-3deg);
}
.pf-fiche:hover { transform: rotate(0deg); box-shadow: var(--ombre-douce); }
.pf-fiche__tete { display: flex; gap: var(--espace-4); align-items: center; }
.pf-fiche__photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--papier); box-shadow: 0 0 0 1px var(--trait); }
.pf-fiche__nom { font-family: var(--font-titre); font-weight: 600; font-size: 22px; line-height: 28px; margin-top: 2px; }
.pf-fiche__espece { color: var(--encre-douce); font-size: 15px; }
.pf-fiche__lignes { margin: 0; display: grid; border-top: 1px dashed var(--trait-fort); }
.pf-fiche__lignes > div { display: grid; grid-template-columns: 86px 1fr; gap: var(--espace-3); padding: 9px 0; border-bottom: 1px dashed var(--trait); }
.pf-fiche__lignes dt { font-family: var(--font-code); font-size: 12px; line-height: 22px; text-transform: uppercase; letter-spacing: .06em; color: var(--sapin); }
.pf-fiche__lignes dd { margin: 0; font-size: 15px; line-height: 22px; }
.pf-fiche__releve { display: flex; gap: var(--espace-2); align-items: center; font-family: var(--font-code); font-size: 12px; color: var(--encre-douce); }
.pf-fiche__releve .pf-icone { width: 15px; height: 15px; color: var(--rouge-gorge); }

/* ---------- Profil ---------- */
.pf-profil { display: grid; gap: var(--espace-12); }
@media (min-width: 960px) { .pf-profil { grid-template-columns: minmax(0, 1fr) 360px; } }
.pf-profil__texte { font-size: 17px; line-height: 28px; }
.pf-profil__cote { display: grid; gap: var(--espace-6); align-content: start; }
.pf-chiffres { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--espace-3); }
.pf-chiffre { background: var(--papier-releve); border: 1px solid var(--trait); border-radius: var(--arrondi-m); padding: var(--espace-4); display: flex; flex-direction: column-reverse; gap: 2px; }
.pf-chiffre dd { margin: 0; font-family: var(--font-titre); font-weight: 650; font-size: 40px; line-height: 44px; color: var(--encre); font-variant-numeric: tabular-nums; }
.pf-chiffre:first-child dd { color: var(--rouge-gorge); }
.pf-chiffre:nth-child(2) dd { color: var(--sapin); }
.pf-chiffre dt { font-size: 14px; line-height: 20px; color: var(--encre-douce); }
.pf-langues { display: grid; grid-template-columns: auto 1fr; gap: var(--espace-2) var(--espace-3); align-items: center; padding: var(--espace-4); border: 1px solid var(--trait); border-radius: var(--arrondi-m); }
.pf-langues > .pf-icone { color: var(--sapin); }
.pf-langues ul { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-1); font-size: 15px; }
.pf-langues span { color: var(--encre-douce); }
.pf-sous-titre { display: flex; align-items: center; gap: var(--espace-2); font-size: 20px; margin: var(--espace-12) 0 var(--espace-6); }
.pf-sous-titre .pf-icone { color: var(--rouge-gorge); width: 22px; height: 22px; }
.pf-competences { display: grid; gap: var(--espace-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.pf-competence { display: grid; gap: var(--espace-3); align-content: start; padding: var(--espace-6); border-radius: var(--arrondi-m); background: var(--papier-releve); border: 1px solid var(--trait); }
.pf-competence__icone { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--rouge-gorge-pale); color: var(--rouge-gorge); }
.pf-competence--infra .pf-competence__icone, .pf-competence--humain .pf-competence__icone { background: var(--sapin-pale); color: var(--sapin); }

/* ---------- Cartes topographiques (une par projet, générées) ---------- */
.pf-topo { position: relative; background: var(--papier); color: var(--ardoise); overflow: hidden; }
.pf-topo--cyber { color: var(--rouge-gorge); }
.pf-topo--nature { color: var(--sapin); }
.pf-topo--web { color: var(--ardoise); }
.pf-topo--outils { color: var(--ocre); }
.pf-topo--infra { color: var(--ecorce); }
.pf-topo__sommet { fill: var(--rouge-gorge); }
.pf-topo--cyber .pf-topo__sommet { fill: var(--encre); }
.pf-topo__carte { display: block; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Projets ---------- */
.pf-filtres { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin-bottom: var(--espace-8); }
.pf-filtre {
  font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; cursor: pointer;
  padding: 8px 14px; border-radius: var(--arrondi-plein); border: 1px solid var(--trait-fort);
  background: transparent; color: var(--encre); display: inline-flex; gap: 6px; align-items: center;
}
.pf-filtre:hover { background: var(--papier-releve); }
.pf-filtre[aria-pressed="true"] { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.pf-filtre__n { font-family: var(--font-code); font-size: 12px; opacity: .7; }
.pf-projets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-6); grid-template-columns: 1fr; }
@media (min-width: 700px) { .pf-projets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .pf-projets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pf-carte { grid-column: span 2; }
  .pf-carte--une { grid-column: span 3; }
  .pf-projets--filtre .pf-carte--une { grid-column: span 2; }
}
.pf-carte .bw-carte__visuel { position: relative; }
.pf-carte .bw-carte__visuel > .pf-pastille { position: absolute; width: auto; height: auto; top: var(--espace-3); left: var(--espace-3); }
.pf-carte:hover .pf-topo__carte { transform: scale(1.06) rotate(-.6deg); }
.pf-carte--une .bw-carte__titre { font-size: 24px; line-height: 30px; }
.pf-carte__accroche { color: var(--encre-douce); font-size: 15px; line-height: 24px; }
.pf-carte .bw-carte__meta { font-family: var(--font-code); font-size: 12px; line-height: 18px; }
.pf-projets__vide { color: var(--encre-douce); }

.pf-pastille {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 600;
  padding: 4px 10px 4px 8px; border-radius: var(--arrondi-plein); background: var(--papier-releve); color: var(--encre);
  border: 1px solid var(--trait);
}
.pf-pastille__point { width: 8px; height: 8px; border-radius: 50%; background: var(--trait-fort); }
.pf-pastille--en-ligne .pf-pastille__point, .pf-pastille--ok .pf-pastille__point { background: var(--sapin); box-shadow: 0 0 0 3px var(--sapin-pale); }
.pf-pastille--en-cours .pf-pastille__point, .pf-pastille--perturbe .pf-pastille__point { background: var(--ocre); }
.pf-pastille--panne .pf-pastille__point { background: var(--brique); }
.pf-pastille--ok .pf-pastille__point { animation: pf-battement 2.4s ease-in-out infinite; }
@keyframes pf-battement { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--sapin) 18%, transparent); } }

/* ---------- Parcours : profil altimétrique et frise ---------- */
.pf-denivele { margin: 0 0 var(--espace-12); }
.pf-denivele__defile { overflow-x: auto; border-radius: var(--arrondi-l); border: 1px solid var(--trait); background: var(--papier-releve); padding: var(--espace-2) var(--espace-4) 0; }
.pf-denivele svg { display: block; width: 100%; min-width: 700px; height: auto; overflow: visible; }
.pf-denivele__sol { fill: var(--sapin-pale); opacity: .7; }
.pf-denivele__ligne { fill: none; stroke: var(--sapin); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pf-denivele__annee path { stroke: var(--trait-fort); }
.pf-denivele__annee text { font-family: var(--font-code); font-size: 12px; fill: var(--encre-douce); text-anchor: middle; }
.pf-denivele__repere { cursor: pointer; text-decoration: none; }
.pf-denivele__repere circle { fill: var(--papier-releve); stroke: var(--rouge-gorge); stroke-width: 2.5; transition: r .2s ease; }
.pf-denivele__repere--formation circle { stroke: var(--sapin); }
.pf-denivele__repere text { font-family: var(--font-titre); font-weight: 600; font-size: 15px; fill: var(--encre); text-anchor: middle; }
.pf-denivele__repere:last-of-type text { text-anchor: start; fill: var(--rouge-gorge); font-size: 17px; }
.pf-denivele__tige { stroke: var(--trait-fort); stroke-width: 1; stroke-dasharray: 3 3; }
.pf-denivele__drapeau { fill: var(--rouge-gorge); stroke: var(--rouge-gorge); stroke-width: 2; stroke-linejoin: round; }
.pf-denivele__repere:hover circle, .pf-denivele__repere:focus circle { r: 8; }
.pf-denivele__repere:hover text { fill: var(--rouge-gorge); }
.pf-denivele__repere:focus { outline: none; }
.pf-denivele__repere:focus-visible circle { stroke-width: 4; }
/* Le tracé : posé par le script quand le profil entre à l'écran (jamais sans lui). */
.pf-denivele--attente .pf-denivele__ligne { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pf-denivele--attente .pf-denivele__repere, .pf-denivele--attente .pf-denivele__sol { opacity: 0; }
.pf-denivele--trace .pf-denivele__ligne { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(.45, .1, .3, 1); }
.pf-denivele--trace .pf-denivele__sol { opacity: .7; transition: opacity 1.2s ease 1.6s; }
.pf-denivele--trace .pf-denivele__repere { opacity: 1; transition: opacity .5s ease; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(1) { transition-delay: .3s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(2) { transition-delay: .7s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(3) { transition-delay: 1.1s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(4) { transition-delay: 1.6s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(5) { transition-delay: 1.9s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(6) { transition-delay: 2.2s; }
.pf-denivele--trace .pf-denivele__repere:nth-of-type(7) { transition-delay: 2.6s; }

.pf-parcours { display: grid; gap: var(--espace-8) var(--espace-12); }
@media (min-width: 960px) { .pf-parcours { grid-template-columns: 1.15fr 1fr; } }
.pf-parcours .pf-sous-titre { margin-top: 0; }
.pf-parcours .bw-parcours__corps ul:not(.bw-etiquettes) { margin: var(--espace-2) 0 0; padding-left: 1.2em; color: var(--encre-douce); font-size: 15px; line-height: 24px; }
.pf-parcours .bw-parcours__corps li::marker { color: var(--rouge-gorge); }
/* Le kit met en grille tout « .bw-parcours li » : rendre leur forme aux listes imbriquées. */
.bw-parcours .bw-parcours__corps li { display: list-item; }
.bw-parcours .bw-parcours__corps .bw-etiquette { display: inline-flex; }
.pf-parcours .bw-etiquettes { margin-top: var(--espace-3); }
.pf-parcours__parallele { font-size: 15px; color: var(--encre-douce); margin: var(--espace-2) 0 var(--espace-4) 116px; }
@media (max-width: 520px) { .pf-parcours__parallele { margin-left: 32px; } }
.pf-parcours--parallele .bw-parcours__corps { padding-bottom: var(--espace-6); }
.pf-parcours--parallele .bw-parcours__corps h3 { font-size: 16px; line-height: 24px; }
.pf-parcours--parallele .bw-parcours__trace::after { width: 8px; height: 8px; margin-top: 9px; border-color: var(--trait-fort); }
.pf-etape__org { font-weight: 500; color: var(--encre) !important; }
.pf-etape__org span { font-weight: 400; color: var(--encre-douce); }
.pf-etape:target .bw-parcours__corps h3 { color: var(--rouge-gorge); }
.pf-etape:target .bw-parcours__trace::after { background: var(--rouge-gorge); }

/* ---------- Dehors ---------- */
.pf-dehors__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--espace-6); }
.pf-rouge-gorge.pf-rouge-gorge--grand { width: 150px; height: auto; flex: none; margin-bottom: var(--espace-8); transform-origin: 45% 100%; cursor: pointer; }
.pf-rouge-gorge.pf-rouge-gorge--grand:hover { animation: pf-sautille .9s ease; }
@keyframes pf-sautille {
  0%, 100% { transform: translateY(0) rotate(0); }
  20% { transform: translateY(-14px) rotate(-6deg); }
  40% { transform: translateY(0) rotate(0); }
  60% { transform: translateY(-7px) rotate(4deg); }
  80% { transform: translateY(0) rotate(0); }
}
@media (max-width: 640px) { .pf-rouge-gorge.pf-rouge-gorge--grand { display: none; } }
.pf-dehors__grille { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.pf-dehors__item { display: grid; align-content: start; grid-template-columns: 48px 1fr; gap: 2px var(--espace-4); padding: var(--espace-6); background: var(--papier-releve); border: 1px solid var(--trait); border-radius: var(--arrondi-m); }
.pf-dehors__icone { grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--sapin-pale); color: var(--sapin); }
.pf-dehors__item h3 { font-size: 18px; line-height: 26px; }
.pf-dehors__item p { color: var(--encre-douce); font-size: 15px; line-height: 24px; }
.pf-minis { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pf-mini { display: grid; grid-template-columns: 112px 1fr; gap: var(--espace-4); align-items: center; padding: var(--espace-3); padding-right: var(--espace-4); border-radius: var(--arrondi-m); background: var(--papier-releve); border: 1px solid var(--trait); text-decoration: none; color: var(--encre); }
.pf-mini:hover { border-color: var(--trait-fort); box-shadow: var(--ombre-douce); }
.pf-mini__visuel { display: block; aspect-ratio: 16 / 9; border-radius: var(--arrondi-s); }
.pf-mini b { display: block; font-family: var(--font-titre); font-weight: 600; font-size: 17px; }
.pf-mini b + span { display: block; font-size: 14px; line-height: 20px; color: var(--encre-douce); }
.pf-mini:hover .pf-topo__carte { transform: scale(1.1); }

/* ---------- Contact ---------- */
.pf-email { font-family: var(--font-code); font-size: 15px; white-space: nowrap; }
.pf-reseaux { list-style: none; margin: var(--espace-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--espace-2) var(--espace-6); }
.pf-reseaux a { display: inline-flex; align-items: center; gap: var(--espace-2); color: var(--encre); text-decoration: none; font-weight: 500; padding: var(--espace-2) 0; }
.pf-reseaux a:hover { color: var(--lien); }
.pf-reseaux .pf-icone { color: var(--encre-douce); }

/* ---------- Pied de page ---------- */
.pf-pied__marque { display: grid; gap: var(--espace-2); align-content: start; }
.pf-pied__faille { margin-top: var(--espace-3); }
.pf-pied__faille a { color: var(--lien) !important; text-decoration: underline !important; }
.pf-pied__devise { display: inline-flex; align-items: center; gap: var(--espace-2); font-family: var(--font-titre); font-weight: 600; color: var(--encre); }
.pf-rouge-gorge { width: 28px; height: auto; }

/* ---------- Fiche d'un projet ---------- */
.pf-projet { padding-block: var(--espace-8) var(--espace-16); }
.pf-projet__tete { display: grid; gap: var(--espace-8); align-items: center; margin: var(--espace-8) 0 var(--espace-12); }
@media (min-width: 900px) { .pf-projet__tete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pf-projet__intro { display: grid; gap: var(--espace-4); }
.pf-projet__visuel { aspect-ratio: 16 / 9; border-radius: var(--arrondi-l); border: 1px solid var(--trait); }
.pf-projet__visuel .pf-topo__carte { animation: pf-derive 26s ease-in-out infinite alternate; }
@keyframes pf-derive { to { transform: scale(1.12) translate(-2%, 1.5%) rotate(-1deg); } }
.pf-projet__corps { display: grid; gap: var(--espace-12); align-items: start; }
@media (min-width: 900px) { .pf-projet__corps { grid-template-columns: minmax(0, 1fr) 320px; } }
.pf-projet__corps .bw-prose > h2:first-child { margin-top: 0; }
.pf-note { display: inline-flex; align-items: center; gap: var(--espace-2); font-size: 14px; color: var(--encre-douce); }
.pf-fiche-projet { position: sticky; top: 88px; display: grid; gap: var(--espace-4); padding: var(--espace-6); background: var(--papier-releve); border: 1px solid var(--trait); border-radius: var(--arrondi-m); }
.pf-fiche-projet__lignes { margin: 0; display: grid; }
.pf-fiche-projet__lignes > div { display: grid; grid-template-columns: 76px 1fr; gap: var(--espace-3); padding: 8px 0; border-bottom: 1px solid var(--trait); align-items: center; }
.pf-fiche-projet__lignes dt { font-size: 13px; color: var(--encre-douce); }
.pf-fiche-projet__lignes dd { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; }
.pf-fiche-projet__titre { font-family: var(--font-texte); font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); margin-top: var(--espace-2); }
.pf-documents { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--espace-2); }
.pf-documents a { display: flex; gap: var(--espace-3); align-items: flex-start; padding: var(--espace-3); border-radius: var(--arrondi-s); background: var(--papier); text-decoration: none; color: var(--encre); border: 1px solid var(--trait); }
.pf-documents a:hover { border-color: var(--trait-fort); }
.pf-documents .pf-icone { color: var(--rouge-gorge); margin-top: 2px; }
.pf-documents b { display: block; font-weight: 600; font-size: 15px; line-height: 20px; }
.pf-documents b + span { font-size: 13px; color: var(--encre-douce); }
.pf-projet__suite { margin-top: var(--espace-16); padding-top: var(--espace-6); border-top: 1px solid var(--trait); display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--espace-4); align-items: center; }
.pf-voisin { display: inline-flex; align-items: center; gap: var(--espace-3); text-decoration: none; color: var(--encre); }
.pf-voisin > span > * { display: block; }
.pf-voisin b { font-family: var(--font-titre); font-weight: 600; font-size: 17px; }
.pf-voisin:hover b { color: var(--lien); }
.pf-voisin--suivant { justify-self: end; text-align: right; }
@media (max-width: 640px) {
  .pf-projet__suite { grid-template-columns: 1fr 1fr; }
  .pf-projet__suite .bw-btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- CV ---------- */
.pf-cv { padding-block: var(--espace-8) var(--espace-16); max-width: 960px; }
.pf-cv__actions { display: flex; justify-content: space-between; align-items: center; gap: var(--espace-4); flex-wrap: wrap; margin-bottom: var(--espace-6); }
.pf-cv__feuille { background: var(--papier-releve); border: 1px solid var(--trait); border-radius: var(--arrondi-m); padding: clamp(20px, 5vw, 56px); display: grid; gap: var(--espace-8); font-size: 15px; line-height: 23px; }
.pf-cv__tete { display: grid; grid-template-columns: 72px 1fr; gap: var(--espace-3) var(--espace-6); align-items: center; padding-bottom: var(--espace-6); border-bottom: 2px solid var(--rouge-gorge); }
.pf-cv__tete img { width: 72px; height: 72px; border-radius: 50%; }
.pf-cv__tete h1 { font-size: 34px; line-height: 40px; }
.pf-cv__metier { font-family: var(--font-titre); font-weight: 600; font-size: 18px; color: var(--rouge-gorge); }
.pf-cv__poste { color: var(--encre-douce); }
.pf-cv__contact { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--espace-1) var(--espace-6); font-size: 14px; }
.pf-cv__contact li { display: inline-flex; align-items: center; gap: 6px; }
.pf-cv__contact .pf-icone { width: 15px; height: 15px; color: var(--sapin); }
.pf-cv__contact a { color: var(--encre); text-decoration: none; }
@media (min-width: 760px) { .pf-cv__tete { grid-template-columns: 72px 1fr auto; } .pf-cv__contact { grid-column: auto; flex-direction: column; } }
.pf-cv h2 { font-family: var(--font-texte); font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--sapin); padding-bottom: var(--espace-2); border-bottom: 1px solid var(--trait); margin-bottom: var(--espace-4); }
.pf-cv h3 { font-size: 16px; line-height: 22px; }
.pf-cv__colonnes { display: grid; gap: var(--espace-8); }
@media (min-width: 760px) { .pf-cv__colonnes { grid-template-columns: 1.5fr 1fr; } }
.pf-cv__colonnes > div { display: grid; gap: var(--espace-8); align-content: start; }
.pf-cv__bloc { display: grid; gap: 2px; }
.pf-cv__bloc + .pf-cv__bloc { margin-top: var(--espace-4); }
.pf-cv__ligne { display: flex; justify-content: space-between; gap: var(--espace-3); align-items: baseline; }
.pf-cv__ligne span { font-family: var(--font-code); font-size: 12px; color: var(--encre-douce); white-space: nowrap; }
.pf-cv__org { font-weight: 600; color: var(--encre-douce); }
.pf-cv__bloc ul { margin: 4px 0 0; padding-left: 1.1em; }
.pf-cv__bloc li::marker { color: var(--rouge-gorge); }
.pf-cv__techno { font-family: var(--font-code); font-size: 12px; color: var(--encre-douce); }
.pf-cv__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

@media print {
  :root, :root[data-theme] {
    --papier: #ffffff; --papier-releve: #ffffff; --papier-creux: #f6f1e9; --trait: #ded3c3; --trait-fort: #8f7e6e;
    --encre: #2b2119; --encre-douce: #5c4d40; --rouge-gorge: #b14c18; --sapin: #2f5d4a; --sapin-pale: #dbe5da;
    color-scheme: light;
  }
  @page { size: A4; margin: 12mm 13mm; }
  body { background: #fff; font-size: 10pt; }
  .bw-entete, .bw-pied, .bw-lien-evitement, .pf-cv__actions { display: none !important; }
  .pf-cv { padding: 0; max-width: none; }
  .pf-cv__feuille { border: 0; padding: 0; gap: 14px; font-size: 9.5pt; line-height: 1.38; background: #fff; }
  .pf-cv__tete { grid-template-columns: 56px 1fr auto; padding-bottom: 10px; }
  .pf-cv__tete img { width: 56px; height: 56px; }
  .pf-cv__tete h1 { font-size: 22pt; line-height: 1.1; }
  .pf-cv__contact { grid-column: auto; flex-direction: column; font-size: 9pt; }
  .pf-cv__colonnes { grid-template-columns: 1.5fr 1fr; gap: 22px; }
  .pf-cv__colonnes > div { gap: 14px; }
  .pf-cv h2 { margin-bottom: 8px; font-size: 8.5pt; }
  .pf-cv h3 { font-size: 10.5pt; line-height: 1.3; }
  .pf-cv__bloc + .pf-cv__bloc { margin-top: 8px; }
  .pf-cv__bloc { break-inside: avoid; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- Page introuvable ---------- */
.pf-introuvable { position: relative; padding-block: var(--espace-16); min-height: 70vh; display: grid; align-items: center; }
.pf-introuvable__carte { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--trait-fort); opacity: .6; pointer-events: none; }
.pf-introuvable__texte { position: relative; max-width: 560px; display: grid; gap: var(--espace-4); background: var(--papier); padding: var(--espace-8); border-radius: var(--arrondi-l); border: 1px solid var(--trait); }
.pf-introuvable__boussole { width: 44px; height: 44px; color: var(--rouge-gorge); animation: pf-cherche 4s ease-in-out infinite; }
@keyframes pf-cherche { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(35deg); } }
.pf-introuvable__en { font-size: 16px; }
