/* ==========================================================================
   Portfolio Erwan Bouvet — BTS SIO SISR
   Direction : la baie de brassage. Fond « salle serveur », accent jaune
   d'étiqueteuse, et une couleur de câble par compétence du bloc 1.
   ========================================================================== */

:root {
  /* Surfaces */
  --salle: #121a23;      /* fond de page */
  --baie: #19232e;       /* panneaux, fiche */
  --tole: #222f3c;       /* façades métalliques */
  --creux: #0c131a;      /* fonds enfoncés : console, prises */
  --rail: #33475a;       /* bordures nettes */
  --rail-doux: #26343f;  /* séparateurs discrets */

  /* Texte */
  --texte: #e8eef3;
  --texte-2: #9db0c0;

  /* Accent : ruban d'étiqueteuse */
  --etiquette: #f5c542;
  --encre: #11171e;

  /* Voyants */
  --led: #58e08f;
  --ambre: #ffa53b;

  /* Câbles : une couleur par compétence du bloc 1 */
  --c-patrimoine: #4fa8ff;
  --c-incidents: #ff9248;
  --c-presence: #3fd6c8;
  --c-projet: #b596ff;
  --c-service: #a8e05f;
  --c-devpro: #ff7fa6;

  --f-titre: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-texte: "Barlow", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --page: 72rem;
  --marge: clamp(1rem, 4vw, 2.5rem);
  --rayon: 4px;
}

/* ------------------------------------------------------------------ Base */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--salle);
  color: var(--texte);
  font: 400 1.125rem/1.6 var(--f-texte);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-titre);
  font-weight: 600;
  line-height: 1.05;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

a { color: var(--etiquette); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

[hidden] { display: none !important; }

.page {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--marge);
}

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

.evitement {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  padding: 0.6rem 0.9rem;
  background: var(--etiquette);
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.evitement:focus { top: 0.75rem; }

.sans-js { padding: 2rem var(--marge); }

/* --------------------------------------------------------------- Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--rayon);
  font: 600 1.05rem/1 var(--f-texte);
  text-decoration: none;
  cursor: pointer;
}
.btn--plein { background: var(--etiquette); color: var(--encre); }
.btn--plein:hover { background: #ffd866; }
.btn--contour { background: transparent; border-color: var(--rail); color: var(--texte); }
.btn--contour:hover { border-color: var(--texte-2); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ----------------------------------------- Façade (barre de navigation) */

.facade {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(#293846, #202c38);
  border-bottom: 1px solid #080c10;
  box-shadow: inset 0 1px 0 #3d5165, 0 8px 20px -14px #000;
}
.facade__int {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  max-width: calc(var(--page) + 4rem);
  margin-inline: auto;
  padding-inline: var(--marge);
}

/* Vis des oreilles de rack, aux deux bouts de la façade */
.vis,
.facade__int::before,
.facade__int::after {
  content: "";
  flex: none;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background:
    linear-gradient(-35deg, transparent 43%, #121a22 43% 57%, transparent 57%),
    radial-gradient(circle at 35% 30%, #93a7b9, #43566a 60%, #1e2a35);
}
.facade__int::after { order: 9; }

.etiquette {
  flex: none;
  padding: 0.42rem 0.7rem 0.36rem;
  background: var(--etiquette);
  color: var(--encre);
  font: 700 1.1rem/1 var(--f-titre);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  box-shadow: 0 1px 0 #0007, inset 0 -1px 0 #0002;
}

.facade__menu {
  display: none;
  margin-left: auto;
  padding: 0.5rem 0.8rem;
  background: var(--creux);
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
  color: var(--texte);
  font: 500 1rem/1 var(--f-texte);
  cursor: pointer;
}

.ports {
  display: flex;
  gap: 0.15rem;
  margin-left: auto;
}

.port {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  color: var(--texte-2);
  font: 500 1rem/1 var(--f-texte);
  text-decoration: none;
  border-radius: var(--rayon);
}
.port:hover,
.port[aria-current="true"] { color: var(--texte); }

/* Prise RJ45 : la même forme sert à la navigation et au tableau de synthèse */
.prise,
.port__prise {
  --fond: #090e13;
  --bord: #4d647a;
  --broche: #6d6337;
  position: relative;
  display: inline-block;
  flex: none;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-radius: 2px;
}
/* Encoche du clip, en haut */
.prise::after,
.port__prise::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 46%;
  height: 0.28rem;
  translate: -50% 0;
  background: var(--fond);
  border: 1px solid var(--bord);
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}
/* Broches de contact, en bas */
.prise::before,
.port__prise::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 1px;
  height: 42%;
  background: repeating-linear-gradient(90deg, var(--broche) 0 1.5px, transparent 1.5px 4px);
}

.port__prise { width: 1.5rem; height: 0.95rem; margin-top: 0.3rem; }

/* Deux voyants par port, de part et d'autre de l'encoche */
.led {
  position: absolute;
  top: -0.32rem;
  width: 5px;
  height: 3px;
  border-radius: 1px;
  background: #2b3a48;
}
.led--lien { left: -1px; }
.led--act { right: -1px; }

.port[aria-current="true"] .led--lien {
  background: var(--led);
  box-shadow: 0 0 6px var(--led);
}
.port:hover .led--act,
.port:focus-visible .led--act {
  background: var(--ambre);
  box-shadow: 0 0 6px var(--ambre);
  animation: clignote 0.5s steps(2, jump-none) infinite;
}

/* Démarrage : les voyants s'allument port après port, une seule fois */
.ports--amorce .led {
  animation: amorce 0.9s steps(1) both;
  animation-delay: calc(var(--i, 0) * 110ms);
}

@keyframes clignote {
  50% { background: #2b3a48; box-shadow: none; }
}
@keyframes amorce {
  0%, 30%, 60% { background: var(--ambre); box-shadow: 0 0 6px var(--ambre); }
  15%, 45% { background: #2b3a48; box-shadow: none; }
  75%, 100% { background: var(--led); box-shadow: 0 0 6px var(--led); }
}

@media (max-width: 63.99rem) {
  .facade__menu { display: block; }
  .facade__int::before, .facade__int::after { display: none; }
  .ports {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem var(--marge) 1rem;
    background: #202c38;
    border-bottom: 1px solid #080c10;
    box-shadow: 0 12px 24px -12px #000;
  }
  .ports--ouvert { display: grid; }
  .port { padding: 0.8rem 0.6rem; font-size: 1.05rem; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rail-doux);
  overflow: hidden;
}
/* Tôle perforée d'une porte de baie, qui s'efface vers la gauche */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #2c3d4d 1.3px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000);
  mask-image: linear-gradient(100deg, transparent 30%, #000);
  opacity: 0.6;
  pointer-events: none;
}

.hero__grille {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
@media (min-width: 60rem) {
  .hero__grille { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.hero h1 {
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.01em;
}
.hero h1 span { display: block; }

.hero__statut {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
}
.hero__accroche {
  max-width: 36rem;
  margin-top: 0.75rem;
  color: var(--texte-2);
}
.hero .actions { margin-top: 1.75rem; }

/* Bloc « alternance.conf » */
.conf {
  background: var(--creux);
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
  font: 400 0.9rem/1.65 var(--f-mono);
}
.conf__nom {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--rail-doux);
  color: var(--texte-2);
}
.conf__corps {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 1ch;
  margin: 0;
  padding: 0.9rem 1rem 1.1rem;
}
.conf__corps dt { color: var(--texte-2); }
.conf__corps dt::after { content: " ="; }
.conf__corps dd { margin: 0; color: var(--texte); }

/* --------------------------------------------------------------- Sections */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--rail-doux); }

.section__tete {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.section__tete h2 { font-size: clamp(2.4rem, 6vw, 3.75rem); }
.section__tete p { margin-top: 0.6rem; color: var(--texte-2); }

/* ----------------------------------------------------------- Réalisations */

.filtres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filtre {
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
  color: var(--texte-2);
  font: 500 1rem/1 var(--f-texte);
  cursor: pointer;
}
.filtre { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.filtre__nombre { font: 400 0.8rem/1 var(--f-mono); opacity: 0.7; }
.filtre:hover { color: var(--texte); border-color: var(--texte-2); }
.filtre[aria-pressed="true"] {
  background: var(--texte);
  border-color: var(--texte);
  color: var(--encre);
}

.type {
  font: 400 0.85rem/1.5 var(--f-mono);
  color: var(--texte-2);
}

.technos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.technos > * {
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--rail);
  border-radius: 2px;
  color: var(--texte-2);
  font: 400 0.8rem/1.2 var(--f-mono);
}

/* Réalisation à la une */
.vedette {
  display: grid;
  gap: 1.75rem 3rem;
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background: var(--baie);
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
}
@media (min-width: 58rem) {
  .vedette { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
}
.vedette h3 {
  margin-top: 0.25rem;
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 700;
}
.vedette__resume { max-width: 38rem; margin: 0.75rem 0 1rem; }
.vedette .actions { margin-top: 1.5rem; }

/* Relevé de chiffres, façon sortie de commande */
.releve {
  margin: 0;
  font: 400 0.9rem/1.4 var(--f-mono);
  font-variant-numeric: tabular-nums;
}
.releve div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--rail);
}
.releve div:first-child { border-top: 1px dashed var(--rail); }
.releve dt { color: var(--texte-2); }
.releve dd { margin: 0; text-align: right; }

/* Lots de la liste : deuxième année, stage, projets personnels, première année */
.vedette:last-child { margin-bottom: 0; }
.lot { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.lot__titre {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 3.6vw, 2.1rem);
}

/* Liste d'inventaire */
.inventaire {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rail);
}
.ligne {
  display: grid;
  gap: 0.4rem 2rem;
  width: 100%;
  padding: 1.15rem 0.25rem 1.25rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rail-doux);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ligne:hover { background: var(--baie); }
.ligne > span { display: block; }
.ligne > .voyants { margin-top: 0.4rem; }
.ligne__periode { display: block; }
.ligne__titre {
  display: block;
  font: 600 1.6rem/1.15 var(--f-titre);
}
.ligne:hover .ligne__titre { text-decoration: underline; text-decoration-color: var(--etiquette); text-underline-offset: 0.2em; }
.ligne__resume {
  display: block;
  max-width: 62ch;
  margin: 0.3rem 0 0.7rem;
  color: var(--texte-2);
}
@media (min-width: 58rem) {
  .ligne {
    grid-template-columns: 10rem minmax(0, 1fr) auto;
    padding-inline: 0.85rem;
  }
  .ligne > .type { padding-top: 0.3rem; }
  .ligne > .voyants { margin-top: 0; padding-top: 0.6rem; }
}

/* Six voyants : un par compétence du bloc 1 */
.voyants { display: flex !important; gap: 4px; }
.voyant {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #2b3a48;
}
.voyant[data-on] {
  background: var(--c);
  box-shadow: 0 0 7px color-mix(in srgb, var(--c) 55%, transparent);
}

/* ------------------------------------- Tableau de synthèse (panneau de brassage) */

.panneau {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: linear-gradient(#273543, #202c38);
  border: 1px solid #080c10;
  border-radius: var(--rayon);
  box-shadow: inset 0 1px 0 #3d5165;
}
.panneau__oreille {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 2.25rem;
  padding: 1rem 0;
}
.panneau__oreille:first-child { border-right: 1px solid #151e27; }
.panneau__oreille:last-child { border-left: 1px solid #151e27; }
.panneau__corps { overflow-x: auto; }

.synthese {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
}
.synthese th,
.synthese td {
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid #151e27;
}
.synthese tbody tr:last-child > * { border-bottom: 0; }
.synthese thead th {
  vertical-align: bottom;
  padding-top: 1rem;
  font: 600 1.05rem/1.1 var(--f-titre);
  letter-spacing: 0.02em;
  text-align: center;
}
.synthese thead th:first-child { text-align: left; color: var(--texte-2); font-weight: 500; }
.synthese__couleur {
  display: block;
  width: 2rem;
  height: 4px;
  margin: 0 auto 0.45rem;
  background: var(--c);
  border-radius: 1px;
}
.synthese tbody th {
  min-width: 15rem;
  text-align: left;
  font-weight: 400;
  line-height: 1.3;
}
.synthese tbody th .type { display: block; }
.synthese td { text-align: center; }

.prise { width: 2.1rem; height: 1.3rem; margin-top: 0.3rem; vertical-align: middle; }
/* Prise câblée : le connecteur prend la couleur du câble de la compétence */
.prise[data-on] {
  --fond: var(--c);
  --bord: var(--c);
  --broche: #00000059;
  box-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent);
}

/* Sur téléphone, le tableau tient sans défilement : titres de colonnes à la
   verticale, prises plus petites, oreilles de rack retirées. */
.synthese__tete { display: block; }
@media (max-width: 47.99rem) {
  .panneau { grid-template-columns: minmax(0, 1fr); }
  .panneau__oreille { display: none; }
  .synthese { min-width: 0; }
  .synthese th,
  .synthese td { padding: 0.6rem 0.15rem; }
  .synthese tr > :first-child { padding-left: 0.75rem; }
  .synthese tr > :last-child { padding-right: 0.6rem; }
  .synthese tbody th { min-width: 0; font-size: 0.95rem; }
  .synthese tbody th .type { display: none; }
  .synthese__tete {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.45rem;
  }
  .synthese__nom { writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; }
  .synthese__couleur { width: 1.5rem; margin: 0; }
  .prise { width: 1.6rem; height: 1.05rem; }
}

.lien-fiche {
  padding: 0;
  background: none;
  border: 0;
  color: var(--texte);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--rail);
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.lien-fiche:hover { text-decoration-color: var(--etiquette); }

.legende {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.5rem 2.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--texte-2);
  font-size: 1rem;
  line-height: 1.4;
}
.synthese__note {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--texte-2);
  font-size: 1rem;
  line-height: 1.45;
}
.synthese__note:empty { display: none; }
.legende li { display: flex; gap: 0.65rem; align-items: baseline; }
.legende i {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--c);
  border-radius: 2px;
  translate: 0 0.05rem;
}

/* -------------------------------------------------- Compétences techniques */

.groupes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem 3rem;
}
.groupe h3 {
  padding-bottom: 0.55rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--rail);
  font-size: 1.7rem;
}
.groupe ul { margin: 0; padding: 0; list-style: none; }
.groupe li { padding: 0.4rem 0; line-height: 1.35; }
.groupe__ou {
  display: block;
  margin-top: 0.1rem;
  color: var(--texte-2);
  font-size: 0.92rem;
}
.groupe__ou .lien-fiche { color: var(--texte-2); font-weight: 400; }
.groupe__ou .lien-fiche:hover { color: var(--texte); }

/* ---------------------------------------------- Parcours, veille, contact */

.frise { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rail-doux); }
.frise li {
  display: grid;
  gap: 0.2rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rail-doux);
}
.frise li:first-child { border-top-color: var(--rail); }
@media (min-width: 48rem) {
  .frise li { grid-template-columns: 13rem minmax(0, 1fr); }
  .frise__periode { padding-top: 0.35rem; }
}
.frise__periode { font: 400 0.9rem/1.5 var(--f-mono); color: var(--texte-2); }
.frise h3 { font-size: 1.6rem; }
.frise__lieu { margin-top: 0.15rem; }
.frise__detail { max-width: 62ch; margin-top: 0.35rem; color: var(--texte-2); }

.veilles { display: grid; gap: 2.5rem; }
.veille h3 { font-size: 1.9rem; }
.veille p { max-width: 68ch; margin-top: 0.5rem; }
.veille ul { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--texte-2); }

.contacts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rail); }
.contacts li {
  display: grid;
  gap: 0.1rem 2rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--rail-doux);
}
@media (min-width: 48rem) {
  .contacts li { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; }
}
.contacts a {
  color: var(--texte);
  font: 600 clamp(1.5rem, 4.2vw, 2.4rem)/1.15 var(--f-titre);
  text-decoration-color: var(--etiquette);
  text-decoration-thickness: 2px;
  overflow-wrap: anywhere;
}
.contacts a:hover { color: var(--etiquette); }

.pied {
  padding-block: 2rem 5rem;
  border-top: 1px solid var(--rail-doux);
  color: var(--texte-2);
  font-size: 0.95rem;
}

/* --------------------------------------------------- Page introuvable (404) */

.introuvable {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  min-height: 100dvh;
}
.introuvable h1 { font-size: clamp(2.75rem, 9vw, 5.5rem); font-weight: 700; }
.introuvable p:not(.type) { color: var(--texte-2); }
.introuvable .btn { margin-top: 0.75rem; }

/* ------------------------------------------------- Fiche d'une réalisation */

.fiche {
  width: min(56rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  background: var(--baie);
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
  color: var(--texte);
  overflow: auto;
  overscroll-behavior: contain;
}
.fiche::backdrop { background: #06090dd9; }

.fiche__tete {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3.5vw, 2.25rem) 1.1rem;
  background: var(--baie);
  border-bottom: 1px solid var(--rail-doux);
}
.fiche__type { font: 400 0.85rem/1.5 var(--f-mono); color: var(--texte-2); }
.fiche__tete h2 { margin-top: 0.2rem; font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; }
.fiche__tete .btn { flex: none; padding: 0.55rem 0.85rem; font-size: 1rem; }

.fiche__corps { padding: 1.5rem clamp(1rem, 3.5vw, 2.25rem) 2.5rem; }
.fiche__corps > * { max-width: 44rem; }
.fiche__resume { font-size: 1.2rem; line-height: 1.5; }
.fiche__corps .releve { margin-top: 1.5rem; max-width: 26rem; }
.fiche__corps h3 { margin: 2rem 0 0.6rem; font-size: 1.5rem; }
.fiche__corps p + p { margin-top: 0.75rem; }
.fiche__corps ol,
.fiche__corps ul:not(.technos) { margin: 0; padding-left: 1.3rem; }
.fiche__corps :where(ol, ul:not(.technos)) > li { padding: 0.25rem 0; }
.fiche__corps li::marker { color: var(--texte-2); }
.fiche__corps .actions { margin-top: 2rem; }

.competences-fiche { padding: 0 !important; list-style: none; }
.competences-fiche li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 0.7rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rail-doux);
}
.competences-fiche li:first-child { border-top: 0; }
.competences-fiche i {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.5rem;
  background: var(--c);
  border-radius: 2px;
}
.competences-fiche strong { font-weight: 500; }
.competences-fiche span { display: block; color: var(--texte-2); }

.a-completer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--etiquette);
  border-radius: var(--rayon);
}
.a-completer h3 { margin: 0 0 0.4rem; color: var(--etiquette); }

/* ---------------------------------------------------------- Mode brouillon */

.brouillon {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  max-width: min(28rem, calc(100vw - 2rem));
  text-align: right;
}
.brouillon__liste { text-align: left; }
.brouillon summary {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  background: var(--etiquette);
  color: var(--encre);
  font: 600 0.95rem/1 var(--f-texte);
  border-radius: 2px;
  box-shadow: 0 6px 18px #000a;
  list-style: none;
  cursor: pointer;
}
.brouillon summary::-webkit-details-marker { display: none; }
.brouillon__liste {
  max-height: min(60vh, 28rem);
  margin-top: 0.5rem;
  padding: 0.9rem 1rem 1rem;
  background: var(--baie);
  border: 1px solid var(--rail);
  border-radius: var(--rayon);
  box-shadow: 0 12px 30px #000c;
  font-size: 0.95rem;
  line-height: 1.4;
  overflow: auto;
}
.brouillon__liste ul { margin: 0; padding-left: 1.1rem; }
.brouillon__liste li { padding: 0.2rem 0; }
.brouillon__liste p { margin-top: 0.75rem; color: var(--texte-2); }

/* ------------------------------------------------------------ Préférences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ports--amorce .led,
  .port:hover .led--act,
  .port:focus-visible .led--act { animation: none; }
}

/* ---------------------------------------------------------------- Impression */

@media print {
  :root {
    --salle: #fff; --baie: #fff; --tole: #fff; --creux: #fff;
    --texte: #000; --texte-2: #333; --rail: #999; --rail-doux: #ccc;
    --etiquette: #000; --encre: #fff;
  }
  html { color-scheme: light; }
  body { font-size: 11pt; }
  .facade, .filtres, .actions, .brouillon, .hero::before, .panneau__oreille, .evitement { display: none !important; }
  .section, .hero { padding-block: 1.25rem; }
  .panneau { background: none; border: 1px solid #999; box-shadow: none; }
  .synthese th, .synthese td { border-bottom: 1px solid #ccc; }
  .prise { --fond: #fff; --bord: #999; --broche: transparent; }
  .prise[data-on] { --fond: #000; --bord: #000; --broche: transparent; box-shadow: none; }
  .vedette, .ligne, .frise li, .groupe { break-inside: avoid; }
  a { color: #000; }
}
