/* Portfolio — refonte du 2026-11-04. Chaque projet garde ses propres couleurs. */
@font-face { font-family: 'Space Grotesk'; src: url('/assets/fonts/space-grotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/plex-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/plex-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --papier: #f6f2ea; --teinte: #ece6da; --encre: #14263f; --doux: #52607a; --trait: #d8d0c0;
  --accent: #b9551f; --blanc: #fffdf9;
  --titre: 'Space Grotesk', system-ui, sans-serif;
  --texte: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.6 var(--texte); -webkit-text-size-adjust: 100%; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.largeur { width: min(1120px, 100%); margin-inline: auto; padding-inline: 24px; }

h1, h2 { font-family: var(--titre); font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.7vw, 2.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; }
h3 { font: 700 1.2rem/1.3 var(--titre); }
h4 { font: 600 1rem/1.3 var(--texte); }
.entete { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.role { font: 500 .85rem/1.5 var(--mono); color: var(--doux); margin-top: 10px; }
.intro { margin-top: 18px; max-width: 62ch; }
.note { margin-top: 18px; font-size: .84rem; color: var(--doux); }

.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--encre); background: var(--encre); color: var(--blanc); font-weight: 600; font-size: .97rem; text-decoration: none; transition: transform .15s ease, opacity .15s ease; overflow-wrap: anywhere; text-align: center; }
button.bouton, .fermer { font-family: inherit; cursor: pointer; }
.bouton:disabled { opacity: .6; cursor: wait; }
.bouton:hover { transform: translateY(-1px); opacity: .92; }
.bouton-clair { background: transparent; color: var(--encre); }
.bouton-petit { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.bouton-inverse { background: var(--blanc); border-color: var(--blanc); color: var(--encre); }
.bouton-contour { background: transparent; border-color: rgba(255,255,255,.55); color: var(--blanc); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.bouton-cv { gap: 8px; }
.bouton-cv .icone { stroke: var(--encre); }
.cv-aide { margin-top: -6px; font-size: .95rem; color: var(--doux); }
.cv-liste { margin: 12px 0 0; padding: 0; list-style: none; }
.cv-liste li { border-top: 1px solid var(--trait); }
.cv-lien { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 10px 4px; color: var(--encre); text-decoration: none; }
.cv-lien:hover b { color: var(--accent); }
.cv-texte { min-width: 0; }
.cv-texte b { font-weight: 600; }
.cv-texte em { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--blanc); font: 600 .72rem/1.5 var(--texte); vertical-align: 1px; }
.cv-texte small { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.35; color: var(--doux); }

.barre { position: sticky; top: 0; z-index: 10; background: rgba(246,242,234,.93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.barre-interne { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.marque { font: 700 1.02rem var(--titre); text-decoration: none; white-space: nowrap; }
.barre-liens { display: flex; gap: 20px; margin-left: auto; font-size: .92rem; }
.barre-liens a { text-decoration: none; color: var(--doux); white-space: nowrap; }
.barre-liens a:hover { color: var(--encre); }

.hero { padding: 58px 0 56px;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 44px 44px; background-position: -1px -1px;
  box-shadow: inset 0 0 0 100vmax rgba(246,242,234,.72); }
.hero-grille { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: center; }
.dispo { display: inline-flex; align-items: center; gap: 9px; font: 500 .8rem/1.4 var(--mono); color: var(--accent); }
.dispo span { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #2c8a5b; box-shadow: 0 0 0 4px rgba(44,138,91,.17); }
.hero-role { margin: 18px 0 12px; font: 600 1.06rem/1.5 var(--texte); letter-spacing: 0; color: var(--doux); }
.hero-titre { font: 700 clamp(1.9rem, 3.7vw, 2.8rem)/1.1 var(--titre); letter-spacing: -.02em; text-wrap: balance; }
.hero-texte { margin-top: 20px; font-size: 1.1rem; max-width: 58ch; }
.photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; filter: grayscale(1) contrast(1.03); }
.preuves { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 44px; }
.preuve { display: block; padding: 18px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; text-decoration: none; }
a.preuve { border: 2px solid var(--accent); background: #fbeee3; transition: transform .15s ease, box-shadow .15s ease; }
a.preuve:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(185,85,31,.2); }
.preuve-action { display: block; margin-top: 10px; font-size: .92rem; font-weight: 600; color: #9c4315; }
.preuve b, .chiffre b { display: block; font: 700 2.15rem/1.05 var(--titre); letter-spacing: -.02em; }
.preuve span, .chiffre span { display: block; margin-top: 7px; font-size: .88rem; line-height: 1.35; color: var(--doux); }

.bloc { padding: 76px 0; }
.bloc-teinte { background: var(--teinte); }
.edf-haut { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; }
.chiffres { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px; }
#edf h3 { margin-top: 44px; }
.marche { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.marche li { display: flex; align-items: center; min-height: 72px; padding: 12px 22px 12px 14px; background: var(--encre); color: var(--blanc); font-weight: 600; font-size: .9rem; line-height: 1.25; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); overflow-wrap: anywhere; }
.marche li:last-child { background: var(--accent); }
.grille-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.carte { padding: 20px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; }
.carte p { margin-top: 6px; font-size: .95rem; color: var(--doux); }

.projet { padding: 82px 0; color: var(--projet-texte); background: var(--projet-fond); }
.projet .role, .projet .note, .projet .chiffre span, .projet figcaption { color: var(--projet-doux); }
.projet .entete { color: var(--projet-accent); font-size: .9rem; }
.projet-gameone { --projet-fond: #101014; --projet-texte: #f4f4f6; --projet-doux: #a9a9b4; --projet-accent: #f0465a; --projet-trait: #2b2b33; }
.projet-ariane { --projet-fond: #0c1430; --projet-texte: #f6f1e4; --projet-doux: #aeb2c6; --projet-accent: #d8b268; --projet-trait: #2a3357; }
.projet-grille { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.points { margin-top: 20px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 18px; font-size: .98rem; }
.points li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--projet-accent); }
.bouton-test { background: transparent; border-color: var(--projet-accent); color: var(--projet-texte); }
.bouton-projet { background: var(--projet-accent); border-color: var(--projet-accent); color: var(--projet-fond); }
.telephone { width: 100%; max-width: 300px; margin-inline: auto; padding: 9px; border-radius: 42px; background: #000; border: 1px solid var(--projet-trait); box-shadow: 0 28px 70px rgba(0,0,0,.45); }
.telephone video { width: 100%; border-radius: 33px; background: #000; }
.captures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.captures img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--projet-trait); transition: transform .2s ease; }
.captures a:hover img { transform: translateY(-2px); }
figcaption { margin-top: 9px; font-size: .9rem; }

.demos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.demo { display: flex; flex-direction: column; gap: 9px; padding: 20px; background: var(--blanc); border: 1px solid var(--trait); border-radius: 10px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.demo:hover { border-color: var(--accent); transform: translateY(-2px); }
.demo p { font-size: .93rem; line-height: 1.45; color: var(--doux); flex: 1; }
.demo span { font-weight: 600; color: var(--accent); }

.etapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; counter-reset: e; }
.etapes li { counter-increment: e; padding-top: 14px; border-top: 3px solid var(--encre); }
.etapes li::before { content: '0' counter(e); font: 500 .8rem var(--mono); color: var(--accent); }
.etapes h3 { margin-top: 8px; }
.etapes p { margin-top: 6px; font-size: .95rem; color: var(--doux); }

.parcours-grille { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 52px; margin-top: 30px; }
.missions li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--trait); }
.missions b { display: block; font-weight: 600; }
.missions span { display: block; font-size: .93rem; color: var(--doux); }
.missions time { flex: none; font: 500 .76rem/1.8 var(--mono); color: var(--doux); text-align: right; }
.formation { margin-top: 12px; display: grid; gap: 10px; font-size: .95rem; }

.contact { padding: 76px 0; background: var(--encre); color: var(--blanc); }
.contact p { margin-top: 10px; opacity: .85; }
.pied { padding: 20px 0; font-size: .86rem; color: var(--doux); }
.pied .largeur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.postes-titre { margin-top: 26px; font-size: 1rem; }
.postes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.postes a { display: inline-flex; min-height: 38px; align-items: center; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 999px; background: #fbeee3; color: #9c4315; font-size: .92rem; font-weight: 600; text-decoration: none; }
.postes a:hover { background: var(--accent); color: var(--blanc); }
.certifs { display: grid; gap: 14px; margin-top: 26px; }
.certif-note { font-size: .84rem; color: var(--doux); overflow-wrap: anywhere; }
.certif h3 { font-size: 1rem; }
.certif ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.certif-lien, .certif-prepa { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 6px; font-size: .88rem; line-height: 1.4; color: var(--doux); }
.certif-lien { min-height: 38px; border: 1px solid var(--encre); background: var(--blanc); text-decoration: none; }
.certif-lien:hover { border-color: var(--accent); }
.certif-lien b, .certif-prepa b { font-weight: 600; color: var(--encre); }
.certif-prepa { border: 1px dashed var(--accent); }
.groupes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 10px 0 22px; }
.icone { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.repli-captures .icone { stroke: var(--projet-accent); }
.groupe h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.groupes { align-items: start; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; margin-left: auto; font: 500 1.15rem/1 var(--mono); color: var(--accent); }
details[open] > summary::after { content: '–'; }
.repli { margin-top: 28px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.repli > summary { font-weight: 600; }
.repli-captures { border-color: var(--projet-trait); margin-top: 44px; }
.repli-captures > summary::after { color: var(--projet-accent); }
.repli-captures .captures { margin-top: 12px; margin-bottom: 20px; }
.repli-missions { margin-top: 0; border-top: 0; }
.repli-missions .missions li:last-child { border-bottom: 0; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.etiquettes li { padding: 3px 10px; border: 1px solid var(--trait); border-radius: 6px; background: var(--blanc); font-size: .86rem; }
.contact-adresse { margin-top: 14px; font-size: .95rem; overflow-wrap: anywhere; }
html:has(dialog[open]) { overflow: hidden; }
.fenetre { width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--blanc); color: var(--encre); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: auto; }
.fenetre::backdrop { background: rgba(10,16,30,.72); }
.fenetre-interne { position: relative; padding: 24px; }
.fenetre-haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fenetre h2 { font-size: 1.45rem; }
.fermer { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--trait); border-radius: 50%; background: var(--blanc); color: var(--encre); font-size: 1.5rem; line-height: 1; }
.champ { margin-bottom: 13px; }
.champ label { display: block; margin-bottom: 5px; font-size: .92rem; font-weight: 600; }
.champ input, .champ textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid #a9a597; border-radius: 8px; background: #fff; color: var(--encre); font: inherit; font-size: 16px; }
.champ textarea { resize: vertical; min-height: 110px; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fenetre .note { margin-top: 2px; }
.etat { margin: 10px 0 0; font-size: .92rem; font-weight: 600; color: #a3341a; overflow-wrap: anywhere; }
.etat:empty { display: none; }
#form-contact .bouton { width: 100%; margin-top: 14px; }
#contact-merci .bouton { margin-top: 16px; }
.fenetre-image { width: min(1240px, calc(100vw - 24px)); background: #0d1018; color: #f3f3f3; }
.fenetre-image .fenetre-interne { padding: 14px; }
.fenetre-image img { width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; }
.fenetre-image p { margin-top: 10px; font-size: .92rem; }
.fenetre-image .fermer { position: absolute; top: 22px; right: 22px; background: rgba(13,16,24,.86); border-color: rgba(255,255,255,.4); color: #fff; }
.legal { max-width: 720px; padding-block: 56px; }
.legal h2 { margin-top: 34px; font-size: 1.3rem; }
.legal p { margin-top: 10px; }

@media (max-width: 960px) {
  .preuves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html { scroll-padding-top: 106px; }
  .barre-interne { justify-content: space-between; flex-wrap: wrap; gap: 0 22px; padding-top: 8px; min-height: 0; }
  .barre-liens { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; gap: 18px; }
  .barre-liens::-webkit-scrollbar { display: none; }
  .barre-liens a { display: inline-flex; align-items: center; min-height: 40px; }
  .marche { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demos, .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projet-grille { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .parcours-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .largeur { padding-inline: 16px; }
  .hero { padding: 30px 0 38px; }
  .hero-grille { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .photo { order: -1; width: 112px; aspect-ratio: 1; border-radius: 50%; }
  .preuves { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; }
  .preuve:last-child { grid-column: 1 / -1; }
  .preuve { padding: 14px; }
  .preuve b { font-size: 1.75rem; }
  .bloc, .projet, .contact { padding: 54px 0; }
  .edf-haut, .grille-points, .captures, .demos, .groupes { grid-template-columns: minmax(0, 1fr); }
  .etapes { gap: 18px 14px; }
  .edf-haut { gap: 0; }
  .marche { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .missions li { flex-direction: column; gap: 3px; }
  .missions time { text-align: left; }
  .hero .actions .bouton-cv { flex-basis: 100%; }
  .actions .bouton { flex: 1 1 40%; }
  .actions .bouton:first-child { flex-basis: 100%; }
  .barre .bouton-petit { flex: none; }
  .telephone { max-width: 260px; }
}
