/* VaubanPLR — feuille de style commune aux trois pages.
   Deux matières tirées du logo : la brique (ServiceNow, fonds clairs) et le circuit (Lab, fonds sombres). */

@font-face{font-family:'IBM Plex Sans';font-weight:400;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-weight:500;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Sans';font-weight:600;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:400;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:500;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-weight:600;font-style:normal;font-display:swap;src:url('fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2')}

:root{
  --ink:#1F2428; --paper:#F3F5F4; --white:#FFFFFF;
  --accent:#3DBE7E; --accent-deep:#1B7A4C;
  --muted:#4A555D; --rule:#D5DAD8;
  --on-dark:#E9ECEA; --on-dark-muted:#A7B0B5; --rule-dark:#343C43;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;
  --sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--ink);color:var(--ink);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,p,ul{margin:0}
h1,h2{text-wrap:balance}
a{color:var(--accent-deep)}
a:hover{color:#125536}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
section{scroll-margin-top:16px}

.wrap{max-width:1120px;margin:0 auto;padding-inline:32px}
.block{padding-block:80px}
.dark{background:var(--ink);color:var(--on-dark)}
.paper{background:var(--paper)}
.white{background:var(--white)}
.eyebrow{font-family:var(--mono);font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-deep)}
.dark .eyebrow{color:var(--accent)}
.dark a{color:var(--accent)}
.dark a:hover{color:#7FD9AC}
.head{display:flex;flex-direction:column;gap:16px;margin-bottom:40px}
h2{font-size:32px;line-height:1.2;font-weight:600;letter-spacing:-.01em;max-width:24ch}
.wordmark{font-family:var(--mono);font-weight:600;letter-spacing:-.02em;color:var(--on-dark)}
.wordmark span{font-weight:400;color:var(--accent)}

/* En-tête */
.top{border-bottom:1px solid var(--rule-dark)}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 32px;padding-block:14px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-height:44px}
.brand img{height:40px;width:auto}
.brand .wordmark{font-size:22px}
.top nav{display:flex;flex-wrap:wrap;gap:0 28px;font-size:15px}
.top nav a{color:#C9D0D3;text-decoration:none;padding:12px 0}
.top nav a:hover{color:var(--on-dark)}
.top nav a[aria-current="page"]{color:var(--on-dark);box-shadow:inset 0 -2px 0 var(--accent)}
.top nav a.cta{color:var(--accent);font-weight:500}
.top .lang{display:inline-flex;align-items:center;gap:6px;padding-left:22px;border-left:1px solid var(--rule-dark);font-family:var(--mono);font-size:13px;letter-spacing:.06em}
.top .lang span{padding:0 6px;color:var(--on-dark);font-weight:600}
.top .lang a{padding:12px 6px;color:#8E989E}

/* Accroches */
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:40px 64px;padding-block:72px}
.hero-text{flex:999 1 520px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero h1{font-size:clamp(34px,4.8vw,56px);line-height:1.08;font-weight:600;letter-spacing:-.02em}
.lead{max-width:58ch;font-size:19px;line-height:1.55;color:#B9C1C5}
.actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:8px}
.btn{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:2px;font-size:16px;font-weight:600;text-decoration:none}
.btn.primary,.dark .btn.primary{background:var(--accent);color:#10241A}
.btn.primary:hover,.dark .btn.primary:hover{background:#56CC90;color:#10241A}
.btn.ghost,.dark .btn.ghost{border:1px solid #5A656D;color:var(--on-dark);font-weight:500}
.btn.ghost:hover,.dark .btn.ghost:hover{border-color:var(--on-dark);color:var(--on-dark)}
.hero-logo{flex:1 1 220px;display:flex;justify-content:center}
.hero-logo img{width:min(100%,260px)}

/* Accueil : les deux portes */
.hero .doors{display:flex;flex-wrap:wrap;align-items:stretch;gap:20px;padding-block:0 80px}
.hero .wrap.plain{display:block;padding-block:0 80px}
.door{position:relative;flex:1 1 340px;display:flex;flex-direction:column;gap:12px;padding:32px 32px 0;border-radius:2px;text-decoration:none;overflow:hidden}
.door .name{font-family:var(--mono);font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.02em;line-height:1.15}
.door .name span{font-weight:400}
.door p{font-family:var(--mono);font-size:15px;line-height:1.65;max-width:46ch}
.door .go{font-family:var(--mono);font-weight:600;font-size:15px;margin:8px 0 16px;min-height:44px;display:inline-flex;align-items:center}
.door .motif{display:block;height:88px;margin:auto -32px 0;background-repeat:repeat-x;background-position:left bottom}
.door.brick,.dark .door.brick{background:var(--paper);color:var(--ink);border:1px solid var(--paper)}
.door.brick .eyebrow{color:var(--accent-deep)}
.door.brick .name span{color:var(--accent-deep)}
.door.brick p{color:var(--muted)}
.door.brick .go{color:var(--accent-deep)}
.door.brick:hover{border-color:var(--accent)}
.door .wall{display:flex;flex-direction:column;justify-content:flex-end;height:112px;margin:auto -32px 0}
.course{display:block;height:22px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22'%3E%3Crect x='2' y='2' width='84' height='18' fill='%231F2428' fill-opacity='.14'/%3E%3C/svg%3E") repeat-x}
.course.c2,.course.c4{background-position-x:-44px}
.course.c3{width:76%}.course.c4{width:52%}.course.c5{width:26%}
.course.c3,.course.c4,.course.c5{opacity:0;transform:translateY(-16px);transition:opacity .25s ease,transform .25s ease}
.door.brick:hover .course,.door.brick:focus-visible .course,.door.brick.live .course{opacity:1;transform:none;transition:opacity .3s ease,transform .5s cubic-bezier(.22,1,.36,1)}
.door.brick:hover .c3,.door.brick:focus-visible .c3,.door.brick.live .c3{transition-delay:.04s}
.door.brick:hover .c4,.door.brick:focus-visible .c4,.door.brick.live .c4{transition-delay:.17s}
.door.brick:hover .c5,.door.brick:focus-visible .c5,.door.brick.live .c5{transition-delay:.3s}
.door.circuit,.dark .door.circuit{background:#171B1E;color:var(--on-dark);border:1px solid var(--rule-dark)}
.door.circuit .name span{color:var(--accent)}
.door.circuit p{color:var(--on-dark-muted)}
.door.circuit .go{color:var(--accent)}
.door.circuit:hover{border-color:var(--accent)}
.door.circuit .motif{width:calc(100% + 64px);height:112px}

/* Fiole du Lab : même trait que le circuit, pastilles carrées en guise de bulles */
.flask{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.flask .pad{fill:var(--accent);stroke:none}
.door .flask{position:absolute;top:26px;right:28px;width:46px;height:46px}
.hero-logo .flask{width:min(100%,140px);height:auto;stroke-width:1.5}

/* Accueil interactif */
.tour{width:min(100%,280px);height:auto;overflow:visible}
.tour .bit{fill:var(--accent);font:600 12.5px var(--mono);text-anchor:middle}
.tour .seam{opacity:0;transition:opacity .5s ease}
.tour.moving .seam{opacity:1;transition-duration:.1s}
.door{transition:transform .3s cubic-bezier(.22,1,.36,1),border-color .2s ease}
.door:hover,.door:focus-visible{transform:translateY(-6px)}
.door.circuit .nets{transition:stroke-opacity .3s ease}
.door.circuit .led,.door.circuit .rays{opacity:.45;transition:opacity .2s ease}
.door.circuit .rays{opacity:0}
.flow{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-dasharray:5 15;opacity:0;transition:opacity .3s ease}
.door.circuit:hover .nets,.door.circuit:focus-visible .nets,.door.circuit.live .nets{stroke-opacity:.6}
.door.circuit:hover .flow,.door.circuit:focus-visible .flow,.door.circuit.live .flow{opacity:1;animation:flux .7s linear infinite}
.door.circuit:hover .led,.door.circuit:focus-visible .led,.door.circuit.live .led{animation:clignote 1.1s linear infinite;filter:drop-shadow(0 0 5px var(--accent))}
.door.circuit:hover .rays,.door.circuit:focus-visible .rays,.door.circuit.live .rays{animation:clignote-rayons 1.1s linear infinite}
.door.circuit:hover .flask circle,.door.circuit:focus-visible .flask circle,.door.circuit.live .flask circle{animation:bulle 1.5s ease-in infinite}
@keyframes flux{from{stroke-dashoffset:20}to{stroke-dashoffset:0}}
@keyframes clignote{0%,49%{opacity:1}50%,100%{opacity:.25}}
@keyframes clignote-rayons{0%,49%{opacity:1}50%,100%{opacity:0}}
@keyframes bulle{0%{transform:translateY(4px);opacity:0}25%{opacity:1}100%{transform:translateY(-13px);opacity:0}}
@media (prefers-reduced-motion:reduce){
  .door,.course,.flow,.tour .seam{transition:none!important}
  .door:hover,.door:focus-visible{transform:none}
  .door.circuit .led{opacity:1!important;animation:none!important}
  .flow,.door.circuit .rays,.flask circle{animation:none!important}
}

/* Chiffres */
.facts{display:flex;flex-wrap:wrap;gap:28px 48px;padding-block:40px;border-bottom:1px solid var(--rule)}
.fact{flex:1 1 200px;display:flex;flex-direction:column;gap:6px}
.fact b{font-family:var(--mono);font-size:34px;font-weight:600;line-height:1.1}
.fact span{font-size:15px;line-height:1.5;color:var(--muted)}

/* Deux colonnes : titre à gauche, contenu à droite */
.split{display:flex;flex-wrap:wrap;gap:40px 64px}
.split .head{flex:1 1 280px;margin-bottom:0}
.split .body{flex:999 1 560px;min-width:0}
.body.stack{display:flex;flex-direction:column;gap:20px}
.body.stack p{max-width:62ch;font-size:18px;line-height:1.55;color:var(--muted)}

/* Services */
.row{display:flex;flex-wrap:wrap;gap:8px 32px;padding:22px 0;border-top:1px solid #C9D0CD}
.row:last-of-type{border-bottom:1px solid #C9D0CD}
.row h3{flex:1 1 200px;font-size:18px;line-height:1.4;font-weight:600}
.row p{flex:2 1 320px;color:var(--muted)}
.tags{list-style:none;padding:0;margin-top:28px;display:flex;flex-wrap:wrap;gap:8px;font-family:var(--mono);font-size:14px;color:#37424A}
.tags li{padding:6px 12px;border:1px solid #B4BDB9;border-radius:2px}

/* Parcours : résumé sans nom, le détail est sur LinkedIn */
.btn.line{align-self:flex-start;margin-top:8px;border:1px solid var(--ink);color:var(--ink);font-weight:500}
.btn.line:hover{background:var(--ink);color:var(--on-dark)}

/* Certifications */
.certs{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0}
.certs li{flex:1 1 300px;display:flex;flex-direction:column;gap:6px;padding:20px 24px;background:var(--white);border:1px solid var(--rule);border-radius:2px}
.certs strong{font-size:17px;line-height:1.4;font-weight:600}
.certs span{font-family:var(--mono);font-size:14px;color:var(--muted)}
.certs li.major{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 32px;padding:24px 28px;background:var(--ink);border-color:var(--ink);color:var(--on-dark)}
.certs li.major strong{font-size:22px;line-height:1.3}
.certs li.major span{font-size:15px;color:var(--accent)}

/* Lab */
.projects{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0}
.projects li{position:relative;flex:1 1 300px;display:flex;flex-direction:column;gap:10px;padding:24px 28px;background:#171B1E;border:1px solid var(--rule-dark);border-radius:2px}
.projects b{font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.projects strong{font-family:var(--mono);font-size:19px;line-height:1.3;font-weight:600;letter-spacing:-.02em}
.projects p{font-family:var(--mono);font-size:14.5px;line-height:1.65;color:var(--on-dark-muted)}
.projects .icon{position:absolute;top:20px;right:24px;width:48px;height:48px}
.projects .repo{align-self:flex-start;margin-top:auto;display:inline-flex;align-items:center;gap:8px;min-height:44px;font-family:var(--mono);font-size:14.5px;font-weight:500}

/* Contact et pied de page */
.contact .wrap{display:flex;flex-direction:column;gap:20px}
.contact h2{font-size:36px;line-height:1.15;letter-spacing:-.015em;max-width:22ch}
.contact p{max-width:56ch;font-size:18px;line-height:1.55;color:var(--muted)}
.mail{align-self:flex-start;display:inline-flex;align-items:center;min-height:48px;font-family:var(--mono);font-size:clamp(17px,2.4vw,24px);overflow-wrap:anywhere}
.link{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;color:var(--ink)}
footer .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px;padding-block:24px 32px;font-size:14px;color:var(--on-dark-muted)}
footer .wordmark{font-size:17px}

@media (max-width:520px){
  .wrap{padding-inline:20px}
  .top .wrap{position:relative}
  .top nav{flex-basis:100%}
  .top .lang{position:absolute;top:14px;right:14px;height:44px;padding-left:0;border-left:0}
  .block{padding-block:56px}
  .hero .wrap{padding-block:48px}
  h2{font-size:27px}
  .contact h2{font-size:29px}
  .door{padding:24px 24px 0}
  .door .motif{margin-inline:-24px}
  .door .wall{margin-inline:-24px}
  .door .flask{top:18px;right:20px;width:38px;height:38px}
  .door.circuit .motif{width:calc(100% + 48px)}
}
