/* baie de brassage : fond bleu nuit, panneaux plus clairs, accents = paires d'un cable t568b
   une famille de competences = une couleur, reprise sur les cables, la frise, les technos et les liens */
:root {
  --fond: #162231;
  --panneau: #1f2e40;
  --panneau-2: #263850;
  --creux: #0e1823;
  --trait: #344a63;
  --texte: #e9eef4;
  --doux: #a7b6c7;
  --orange: #f28a2e;
  --vert: #3dbb74;
  --bleu: #5b9bf3;
  --marron: #c08a5c;
  --blanc-fil: #eef2f6;
  --police: "Archivo", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: #ffb070; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 3px; }

.page { max-width: 72rem; margin: 0 auto; padding-inline: 1.25rem; }

/* familles */
.f-java { --c: var(--bleu); }
.f-lang { --c: var(--bleu); --raye: 1; }
.f-web { --c: var(--orange); }
.f-bd { --c: var(--orange); --raye: 1; }
.f-res { --c: var(--vert); }
.f-out { --c: var(--marron); }
.f-aucune { --c: var(--doux); }

/* en-tete */
.tete {
  display: grid;
  gap: 2.5rem;
  padding-block: 4.5rem 3rem;
}

.nom {
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(3rem, 9vw, 5.25rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.nom span { display: block; }

.fiche { display: grid; gap: 1rem; align-content: end; }

.statut { font-stretch: 112%; font-weight: 650; font-size: 1.3rem; line-height: 1.3; }

.lieu { color: var(--doux); }

.recherche {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: var(--panneau);
  border-left: 6px solid var(--vert);
  font-weight: 550;
  line-height: 1.45;
}

.contacts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 650; }

.intro {
  max-width: 44rem;
  padding-bottom: 3.5rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--texte);
}

/* panneau de brassage */
.brassage {
  padding: 1.75rem 1.25rem 1.25rem;
  border-radius: 10px;
  background: var(--panneau);
  box-shadow: inset 0 0 0 1px var(--trait);
}

.brassage-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; padding-inline: 0.5rem; }

.brassage h2, .section-titre { font-stretch: 112%; font-weight: 750; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }

.aide { color: var(--doux); font-size: 0.95rem; }

.panneau { display: block; width: 100%; height: auto; margin-top: 1rem; overflow: visible; }
.panneau-v { display: none; max-width: 26rem; margin-inline: auto; }

.lecture {
  min-height: 3.2em;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--creux);
  color: var(--doux);
  font-size: 0.95rem;
}

.lecture strong { color: var(--texte); }

.fam-trait { stroke: var(--c); stroke-width: 4; stroke-linecap: round; }
.fam-raye { stroke: var(--blanc-fil); stroke-width: 4; stroke-dasharray: 6 6; }
.fam-nom { fill: var(--c); font: 700 12.5px var(--police); font-stretch: 100%; }
.fam-nom.c { text-anchor: middle; }

.prise { fill: var(--creux); stroke: var(--c, #7f93a8); stroke-width: 2; }
.port-p .prise { stroke: #7f93a8; }
.port-p.encours .prise { stroke-dasharray: 4 3; }
.encoche { fill: #3d5168; }
.zone { fill: transparent; }
.port { cursor: pointer; outline: none; }
.port:focus-visible .prise { stroke: var(--texte); stroke-width: 3; }
.port:focus-visible .lib-s, .port:focus-visible .lib-p { text-decoration: underline; }

.lib-s { fill: var(--texte); font: 600 13.5px var(--police); font-stretch: 85%; }
.lib-s.v { text-anchor: end; font-size: 14px; }
.lib-p { fill: var(--texte); font: 700 14.5px var(--police); font-stretch: 90%; text-anchor: middle; }
.lib-p.v { text-anchor: start; }
.lib-ec { fill: var(--doux); font: 500 12.5px var(--police); text-anchor: middle; font-style: italic; }
.lib-ec.v { text-anchor: start; }

.cable path { fill: none; stroke-linecap: round; }
.gaine { stroke: var(--creux); stroke-width: 8; }
.ame { stroke: var(--c); stroke-width: 4.5; }
.raye { stroke: var(--blanc-fil); stroke-width: 4.5; stroke-dasharray: 5 6; }

.cable, .port, .famille { transition: opacity 0.2s ease; }
.panneau.filtre .cable:not(.allume) { opacity: 0.12; }
.panneau.filtre .port:not(.allume) { opacity: 0.35; }
.panneau.filtre .cable.allume .ame { stroke-width: 6; }
.panneau.filtre .port.allume .prise { stroke: var(--texte); }

/* branchement au chargement : chaque cable se trace l'un apres l'autre */
@media (prefers-reduced-motion: no-preference) {
  .branche .gaine, .branche .ame {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: brancher 0.55s ease-out forwards;
    animation-delay: calc(var(--i) * 70ms + 200ms);
  }
  .branche .raye { opacity: 0; animation: apparaitre 0.2s forwards; animation-delay: calc(var(--i) * 70ms + 750ms); }
}

@keyframes brancher { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }

/* projets */
.projets { padding-block: 5rem 2rem; }

.projet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: 3rem;
  scroll-margin-top: 1rem;
}

.projet-fil {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.projet-fil::before {
  content: "";
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--c);
}

.projet-fil.raye::before { background: repeating-linear-gradient(90deg, var(--c) 0 14px, var(--blanc-fil) 14px 22px); }

.prise-mini {
  width: 26px;
  height: 20px;
  border: 2px solid var(--c);
  border-radius: 3px;
  background: var(--creux);
  position: relative;
}

.prise-mini::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 5px;
  background: #3d5168;
}

.projet h3 {
  font-stretch: 110%;
  font-weight: 800;
  font-size: clamp(1.7rem, 6.4vw, 2.9rem);
  line-height: 1;
  text-transform: uppercase;
  hyphens: auto;
  margin-bottom: 1.25rem;
}

.projet-texte p { color: var(--doux); max-width: 38rem; }

.technos { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-block: 1.5rem; font-weight: 650; font-stretch: 92%; }
.technos li { display: inline-flex; align-items: center; gap: 0.5rem; }
.technos li::before { content: ""; width: 18px; height: 5px; border-radius: 3px; background: var(--c); }
.technos li.raye::before { background: repeating-linear-gradient(90deg, var(--c) 0 4px, var(--blanc-fil) 4px 8px); }

.code { font-weight: 700; }

.fenetre {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--creux);
  box-shadow: 0 0 0 1px var(--trait), 0 18px 40px rgba(4, 10, 18, 0.45);
}

.fenetre-barre {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 12px;
  background: #0b141e;
  color: var(--doux);
  font-size: 12.5px;
}


.fenetre img { display: block; width: 100%; height: auto; }


/* sections */
.section-titre { margin-bottom: 0.5rem; }
.projets-encours { padding-top: 2rem; }
.projet.sans-visuel .projet-texte { max-width: 44rem; }
.fenetre.petite { max-width: 37.5rem; }

.etat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.75rem; margin-bottom: 0.75rem; color: var(--doux); font-size: 0.95rem; }
.etat span {
  padding: 0.15rem 0.6rem;
  border: 2px dashed var(--c);
  border-radius: 4px;
  color: var(--texte);
  font-weight: 700;
  font-size: 0.85rem;
}

.projet.encours .prise-mini { border-style: dashed; }

.encours-duo { display: grid; gap: 0 3.5rem; }
.projet.compact h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }

/* schema de topologie */
.schema {
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 8px;
  background: var(--panneau);
  box-shadow: inset 0 0 0 1px var(--trait);
}

.topo { display: block; width: 100%; max-width: 100%; height: auto; color: var(--texte); }
.schema, .fenetre, .projet-texte { min-width: 0; }
.topo .lien { stroke: var(--vert); stroke-width: 2; fill: none; }
.topo .dorsale { stroke: var(--vert); stroke-width: 6; stroke-linecap: round; }
.topo .noeud { fill: var(--vert); }
.topo .eq { fill: var(--creux); stroke: #7f93a8; stroke-width: 1.5; }
.topo .routeur { stroke: var(--vert); stroke-width: 2.5; }
.topo .nuage { fill: transparent; stroke: var(--doux); stroke-width: 1.5; stroke-dasharray: 5 4; }
.topo .et { font: 600 13px var(--police); fill: var(--texte); text-anchor: middle; }
.topo .et-d { text-anchor: end; fill: var(--vert); font-weight: 700; }
.schema figcaption { margin-top: 0.75rem; color: var(--doux); font-size: 0.9rem; }

/* parcours */
.parcours { padding-block: 5rem 3rem; }
.parcours-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.frise-zone { position: relative; padding: 1.5rem 1.25rem 1rem; border-radius: 10px; background: var(--panneau); box-shadow: inset 0 0 0 1px var(--trait); }
.frise { display: block; width: 100%; height: auto; overflow: visible; }
.frise-v { display: none; max-width: 22rem; margin-inline: auto; }

.l-form { --c: var(--vert); }
.l-exp { --c: var(--marron); }

.grad { stroke: var(--trait); stroke-width: 1; }
.an { font: 700 14px var(--police); fill: var(--doux); text-anchor: middle; }
.an.v { text-anchor: start; }
.auj { stroke: var(--texte); stroke-width: 1.2; stroke-dasharray: 3 4; }
.auj-t { font: 600 12.5px var(--police); fill: var(--texte); text-anchor: middle; }
.auj-t.v { text-anchor: end; }
.nom-ligne { font: 800 15px var(--police); fill: var(--c); }
.nom-ligne.c { text-anchor: middle; }

.trace { fill: none; stroke: var(--c); stroke-width: 14; stroke-linecap: round; }
.trace-raye { fill: none; stroke: var(--blanc-fil); stroke-width: 4; stroke-dasharray: 10 12; opacity: 0.85; }
.trace.futur { stroke-dasharray: 2 18; stroke-width: 12; }

.station { cursor: pointer; outline: none; }
.station .cible { fill: transparent; }
.station .arret { fill: var(--fond); stroke: var(--c); stroke-width: 5; transition: r 0.15s; }
.station:hover .arret, .station.actif .arret { fill: var(--c); }
.station:focus-visible .arret { stroke: var(--texte); stroke-width: 4; }
.st-lieu { font: 800 15.5px var(--police); fill: var(--texte); text-anchor: middle; }
.st-quoi { font: 500 13px var(--police); fill: var(--doux); text-anchor: middle; }
.st-lieu.v, .st-quoi.v { text-anchor: start; }

.bulle {
  position: absolute;
  z-index: 2;
  width: min(19rem, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--creux);
  box-shadow: 0 0 0 2px var(--c, var(--trait)), 0 14px 32px rgba(4, 10, 18, 0.55);
  font-size: 0.95rem;
  line-height: 1.45;
  pointer-events: none;
}
.bulle strong { display: block; font-size: 1.02rem; }
.bulle .b-dates { color: var(--c); font-weight: 700; }
.bulle .b-lieu, .bulle .b-detail { color: var(--doux); }

.parcours-listes { display: grid; gap: 2rem 3.5rem; margin-top: 2.5rem; }
.parcours-listes h3 { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-stretch: 112%; font-size: 1.35rem; }
.parcours-listes h3::before { content: ""; width: 36px; height: 10px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--c) 0 8px, var(--blanc-fil) 8px 12px); }
.etapes { display: grid; gap: 0.9rem; }
.etapes li { padding: 0.15rem 0 0.15rem 1rem; border-left: 3px solid var(--trait); color: var(--doux); transition: border-color 0.15s; }
.etapes li strong { color: var(--texte); }
.etapes li span { display: block; color: var(--texte); font-weight: 600; font-size: 0.92rem; }
.etapes li.actif { border-left-color: var(--c); }

/* en plus */
.plus { padding-block: 3rem; }
.plus-grille { display: grid; gap: 2rem 3.5rem; margin-top: 1.5rem; }
.plus h3 { margin-bottom: 0.6rem; color: var(--doux); font-size: 1rem; font-weight: 700; }
.plus li { font-weight: 600; }

/* contact */
.contact { padding-block: 3.5rem 5rem; border-top: 1px solid var(--trait); margin-top: 2rem; }
.contact-mail { display: inline-block; margin-block: 1rem 1.25rem; font-stretch: 112%; font-weight: 750; font-size: clamp(1.35rem, 4.4vw, 2.6rem); }
.contact-liens { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; font-weight: 650; }

@media (min-width: 48rem) {
  .projet.inverse .projet-texte { order: 2; }
  .projet.sans-visuel { grid-template-columns: 1fr; }
  .encours-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projet.compact { grid-template-columns: 1fr; }
  .parcours-listes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plus-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
  .frise-h { display: none; }
  .frise-v { display: block; }
  .frise-zone { padding-inline: 0.75rem; }
}

@media (min-width: 48rem) {
  .page { padding-inline: 2rem; }
  .tete { grid-template-columns: 1.25fr 1fr; align-items: end; gap: 3.5rem; }
  .projet { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; column-gap: 3.5rem; }
  .projet-fil { grid-column: 1 / -1; }
}

@media (max-width: 47.99rem) {
  .panneau-h { display: none; }
  .panneau-v { display: block; }
  .brassage { padding-inline: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cable, .port, .famille, .etapes li, .station .arret { transition: none; }
}
