/* ============================================================
   PAUL VUE — Portfolio IT & Cybersécurité
   Design system autonome — généré avec Claude Fable 5
   Aucune dépendance externe (hors Google Fonts + GSAP optionnel)
   ============================================================ */

/* ---------- Tokens / Thème clair (défaut) ---------- */
:root {
  --ink:        #1b1a17;
  --ink-soft:   #4a4742;
  --ink-faint:  #8a857c;
  --paper:      #faf8f3;
  --paper-2:    #f1ede4;
  --paper-3:    #e9e3d6;
  --line:       #e3ddd0;
  --white:      #ffffff;
  --card:       #ffffff;

  --accent:      #f4a81d;   /* orange chaud */
  --accent-deep: #d9831a;   /* orange profond */
  --accent-soft: #fbe9c4;
  --accent-glow: rgba(244,168,29,.45);

  /* second accent — bleu cyber, utilisé avec parcimonie */
  --cyan:       #2bb3c0;
  --cyan-deep:  #1c8a95;

  --ok:   #2faa6a;
  --warn: #e2614a;

  --display: "Archivo Black", "Archivo", sans-serif;
  --sans:    "Archivo", system-ui, sans-serif;
  --script:  "Yellowtail", cursive;
  --mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, monospace;

  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(27,26,23,.08);
  --shadow:    0 18px 50px -20px rgba(27,26,23,.35);
  --shadow-lg: 0 40px 90px -36px rgba(27,26,23,.5);

  --t-fast: .2s cubic-bezier(.2,.8,.2,1);
  --t:      .35s cubic-bezier(.2,.8,.2,1);
  --t-slow: .6s cubic-bezier(.2,.8,.2,1);
}

/* ---------- Thème sombre ---------- */
html[data-theme="dark"] {
  --ink:        #f4f1ea;
  --ink-soft:   #c4bdb0;
  --ink-faint:  #8a847a;
  --paper:      #100f0d;
  --paper-2:    #1a1814;
  --paper-3:    #211f1a;
  --line:       #2c2922;
  --white:      #1a1814;
  --card:       #1a1814;

  --accent-soft: #38301c;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow:    0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -36px rgba(0,0,0,.85);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #2a1d00; }

/* Barre de défilement personnalisée */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  display: grid; place-items: center;
  background: var(--ink);
  transition: opacity .6s ease, visibility .6s;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__mark {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--paper);
  letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: .12em;
}
.preloader__mark .dot { color: var(--accent); }
.preloader__bar {
  margin-top: 22px;
  width: min(260px, 60vw); height: 3px;
  background: rgba(255,255,255,.14);
  border-radius: 999px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  animation: loadbar 1.3s cubic-bezier(.65,0,.35,1) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ============================================================
   PROGRESSION DE DÉFILEMENT + CURSEUR
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep), var(--cyan));
  z-index: 300;
  box-shadow: 0 0 12px var(--accent-glow);
}

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid #fff;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s, border-color .25s;
}
.cursor-ring.hover { width: 60px; height: 60px; background: rgba(255,255,255,.12); }
@media (hover: none), (max-width: 820px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(72px, 12vw, 130px); position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .76rem;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }

.section-title {
  font-family: var(--display);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.015em;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  text-transform: uppercase;
}
.section-title .script {
  font-family: var(--script);
  text-transform: none;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head .section-title { margin-top: 12px; }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--ink-soft); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .95rem;
  padding: .9em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--accent); color: #2a1d00; box-shadow: 0 10px 30px -12px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-3px); background: var(--accent-deep); color: #fff; box-shadow: 0 18px 40px -14px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: min(94vw, var(--maxw));
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.45);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: background var(--t), border-color var(--t), box-shadow var(--t), color var(--t), top var(--t);
  color: #fff;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.nav__brand {
  font-family: var(--display);
  font-weight: 900; letter-spacing: -.02em;
  font-size: 1.1rem; text-transform: uppercase;
  display: flex; align-items: baseline; gap: .3em;
}
.nav__brand .dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  display: inline-block; font-weight: 600; font-size: .9rem;
  padding: .5em 1.05em; border-radius: 999px;
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover { background: rgba(244,168,29,.2); }
.nav__links a.active { color: var(--accent-deep); }
.nav.scrolled .nav__links a.active { background: var(--accent-soft); }

.nav__right { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.theme-toggle:hover { transform: rotate(-25deg) scale(1.05); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: block; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav__cta { background: var(--accent); color: #2a1d00 !important; }
.nav__cta:hover { background: var(--accent-deep); color: #fff !important; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav__burger span { width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: blur(14px);
    border: 1.5px solid var(--line);
    border-radius: 22px; padding: 14px;
    box-shadow: var(--shadow); color: var(--ink);
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .3s, transform .3s;
  }
  .nav.open .nav__links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav__links a { color: var(--ink); text-align: center; padding: .85em; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-block: clamp(120px, 16vh, 180px) clamp(80px, 12vh, 120px);
}
/* Empilement uniquement positif : le contenu est toujours au-dessus des fonds,
   quel que soit le moteur de rendu (évite les bugs d'ordre avec z-index négatif). */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover;
  /* le visage est en bas-droite de la photo : on cadre dessus pour qu'il
     reste visible quel que soit le ratio de l'écran */
  background-position: 80% 60%;
  background-color: var(--ink);
}
/* écrans portrait / étroits : le rognage horizontal est très fort,
   on pousse le cadrage à droite pour garder le visage à l'écran */
@media (max-aspect-ratio: 4/5) {
  .hero__bg { background-position: 92% 50%; }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    /* voile global pour la lisibilité */
    linear-gradient(180deg, rgba(10,13,22,.55) 0%, rgba(10,13,22,.35) 35%, rgba(10,13,22,.5) 70%, rgba(12,11,9,.92) 100%),
    /* renfort côté texte (gauche) pour garantir le contraste du titre blanc */
    linear-gradient(90deg, rgba(8,11,18,.78) 0%, rgba(8,11,18,.45) 38%, rgba(8,11,18,0) 70%);
}
/* canvas réseau (thème cyber) par-dessus le ciel
   (canvas = élément remplacé : width/height explicites obligatoires pour remplir) */
#hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: .5; }

.hero__content { position: relative; z-index: 3; max-width: 1240px; margin-inline: 0 auto; text-align: left; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  color: #fff;
  padding: .5em 1em .5em .7em;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero__badge .pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(47,170,106,.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,170,106,.6); }
  70% { box-shadow: 0 0 0 10px rgba(47,170,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,170,106,0); }
}

.hero__title {
  font-family: var(--display);
  font-weight: 900; color: #fff;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.02em;
  font-size: clamp(2.8rem, 11vw, 8.5rem);
  text-shadow: 0 8px 50px rgba(0,0,0,.5);
}
.hero__title .script {
  font-family: var(--script);
  text-transform: none; color: var(--accent);
  font-weight: 400; letter-spacing: 0;
  font-size: clamp(2.6rem, 9vw, 7rem);
  display: inline-block;
  transform: rotate(-3deg);
  text-shadow: 0 4px 24px rgba(120,80,0,.4);
}
/* libellé rotatif des rôles */
.hero__roles {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: var(--accent);
  display: flex; align-items: center; gap: .6em; flex-wrap: wrap;
  min-height: 1.6em;
}
.hero__roles .prompt { color: rgba(255,255,255,.55); }
.hero__roles .typed { color: #fff; border-right: 2px solid var(--accent); padding-right: 2px; }

.hero__lead {
  margin-top: 22px;
  max-width: 780px;
  color: rgba(255,255,255,.85);
  font-size: clamp(1.02rem, 1.4vw, 1.28rem);
  line-height: 1.7;
}
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero__actions .btn-ghost:hover { background: #fff; color: var(--ink); }

.hero__stats {
  margin-top: 54px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px);
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 30px;
}
.hero__stats .num { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; line-height: 1; }
.hero__stats .num .accent { color: var(--accent); }
.hero__stats .lbl { font-size: .82rem; color: rgba(255,255,255,.7); margin-top: 7px; max-width: 150px; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; position: relative; }
.hero__scroll .mouse::after {
  content: ""; position: absolute; top: 6px; left: 50%;
  width: 4px; height: 8px; background: #fff; border-radius: 2px;
  transform: translateX(-50%); animation: scrolly 1.6s ease-in-out infinite;
}
@keyframes scrolly { 0%,100% { transform: translate(-50%,0); opacity:1 } 50% { transform: translate(-50%,12px); opacity:.3 } }

@media (max-width: 600px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero__scroll { display: none; }
}

/* ============================================================
   MARQUEE (bande de mots-clés)
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 18px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 2;
}
html[data-theme="dark"] .marquee { background: #060504; }
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  padding-inline: 28px;
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap;
  color: var(--paper);
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ============================================================
   À PROPOS
   ============================================================ */
.about { background: var(--paper); }
.about__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  /* aligné sur le hero : bord gauche collé au gutter, même largeur max */
  max-width: 1240px;
  margin-inline: 0 auto;
}
.about__visual { position: relative; }
.about__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, var(--paper-3), var(--paper-2));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.about__card .mono-mark {
  font-family: var(--display);
  font-size: clamp(5rem, 14vw, 9rem);
  color: color-mix(in srgb, var(--accent) 30%, transparent);
  letter-spacing: -.04em;
}
.about__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute;
  bottom: 18px; left: 18px; right: 18px;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  color: var(--paper);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  backdrop-filter: blur(6px);
}
.about__badge .ring {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #2a1d00;
  font-family: var(--display); font-size: .9rem;
  flex: none;
}
.about__badge b { display: block; font-size: .98rem; }
.about__badge small { color: rgba(255,255,255,.65); font-size: .8rem; }

.about__decor {
  position: absolute;
  top: -22px; right: -22px;
  width: 110px; height: 110px;
  border: 2px dashed var(--accent);
  border-radius: 22px;
  z-index: -1;
  opacity: .6;
}
.about__lead { font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.5; margin-top: 8px; }
.about__text { margin-top: 18px; color: var(--ink-soft); font-size: 1.04rem; }
.about__text + .about__text { margin-top: 14px; }
.about__tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.about__tags span {
  font-size: .82rem; font-weight: 600;
  padding: .5em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; gap: .5em;
}
.about__tags span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; margin-inline: auto; }
}

/* ---------- Portrait ASCII (section À propos) — sans conteneur ---------- */
/* aucun fond, aucune bordure : l'image flotte sur le fond de la section */
.ascii-card {
  position: relative;
  display: grid; place-items: center;
  background: transparent;
}
.ascii-art-img {
  display: block;
  width: 100%; height: auto;
  /* penche légèrement vers la droite et occupe plus de largeur ;
     l'origine décalée à gauche fait grandir la fleur vers la droite
     (dans la marge vide) sans empiéter sur le texte */
  transform: rotate(4deg) scale(1.6);
  transform-origin: 25% center;
}
/* l'agrandissement fort n'a de place que sur grand écran (marge à droite) :
   on le réduit sur tablette/mobile pour éviter tout rognage de la fleur */
@media (max-width: 1100px) {
  .ascii-art-img { transform: rotate(4deg) scale(1.25); transform-origin: center; }
}
@media (max-width: 900px) {
  .ascii-art-img { transform: rotate(3deg) scale(1.06); transform-origin: center; }
}

/* ============================================================
   EXPERTISE / SERVICES
   ============================================================ */
.expertise { background: var(--paper-2); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.xcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.xcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--accent-glow), transparent 55%);
  opacity: 0; transition: opacity var(--t);
}
.xcard:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--accent); }
.xcard:hover::before { opacity: .35; }
.xcard__num {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--display); font-size: 2.4rem;
  color: var(--paper-3); line-height: 1;
}
.xcard .ico {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.xcard .ico svg { width: 28px; height: 28px; }
.xcard h3 { font-size: 1.3rem; position: relative; z-index: 1; }
.xcard p { color: var(--ink-soft); font-size: .98rem; margin-top: 10px; position: relative; z-index: 1; }
.xcard ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.xcard li { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
.xcard li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: var(--accent); border-radius: 5px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ============================================================
   COMPÉTENCES
   ============================================================ */
.skills { background: var(--paper); }
.skills__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.skill-block { display: flex; flex-direction: column; gap: 22px; }
.bar-row .top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 700; font-size: .95rem; }
.bar-row .top span:last-child { font-family: var(--mono); color: var(--accent-deep); font-size: .85rem; }
.bar { height: 9px; border-radius: 999px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.bar > span {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}
.skills__aside h3 { font-size: 1.1rem; margin-bottom: 16px; }
.stack {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.stack span {
  font-family: var(--mono);
  font-size: .82rem; font-weight: 500;
  padding: .55em 1em; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform var(--t-fast), border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  cursor: default;
}
.stack span:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.skills__aside + .skills__aside { margin-top: 30px; }

@media (max-width: 900px) {
  .skills__layout { grid-template-columns: 1fr; }
}

/* ============================================================
   PARCOURS — TIMELINE
   ============================================================ */
.journey { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .journey { background: #060504; }
.journey .section-title { color: var(--paper); }
.journey .eyebrow { color: var(--accent); }
.journey .section-head p { color: rgba(244,241,234,.7); }

.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 40px;
  display: flex; flex-direction: column; gap: 26px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(244,168,29,.1));
}
.tl-item {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform var(--t), border-color var(--t), background var(--t);
  cursor: pointer;
}
.tl-item:hover { transform: translateX(6px); border-color: var(--accent); background: rgba(244,168,29,.06); }
.tl-item::before {
  content: ""; position: absolute;
  left: -40px; top: 28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(244,168,29,.18);
  transform: translateX(-50%);
}
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between; }
.tl-item .year {
  font-family: var(--mono); color: var(--accent);
  font-size: .85rem; font-weight: 600;
  padding: .3em .8em; border-radius: 999px;
  background: rgba(244,168,29,.12); border: 1px solid rgba(244,168,29,.3);
}
.tl-item h3 { font-size: 1.3rem; margin-top: 12px; }
.tl-item .org { color: rgba(244,241,234,.55); font-weight: 600; font-size: .92rem; margin-top: 2px; }
.tl-item p { margin-top: 12px; color: rgba(244,241,234,.75); max-width: 760px; }
.tl-logos { display: flex; align-items: center; gap: 12px; }
.tl-logos img { height: 34px; width: auto; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px 6px; }
.tl-skills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-skills span {
  font-size: .78rem; font-weight: 600;
  padding: .4em .9em; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(244,241,234,.85);
}

/* ============================================================
   PROJETS / RÉALISATIONS
   ============================================================ */
.work { background: var(--paper); }
.work__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  font-family: var(--sans); font-weight: 700; font-size: .86rem;
  padding: .55em 1.3em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink-soft); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip.active, .chip:hover { background: var(--accent); color: #1b1208; border-color: var(--accent); }
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 22px;
}
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.project__top {
  aspect-ratio: 16/10;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--paper-3), var(--paper-2));
}
.project__top .glyph { font-size: 3.4rem; opacity: .25; }
.project__top svg { width: 64px; height: 64px; color: var(--accent-deep); opacity: .85; }
.project__cat {
  position: absolute; top: 14px; left: 14px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #2a1d00; background: var(--accent);
  padding: .35em .8em; border-radius: 999px;
}
.project__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.project__body h3 { font-size: 1.25rem; }
.project__body p { color: var(--ink-soft); font-size: .95rem; margin-top: 8px; flex: 1; }
.project__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.project__tags span {
  font-family: var(--mono); font-size: .74rem;
  padding: .35em .7em; border-radius: 8px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-faint);
}
.project__link {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .9rem; color: var(--accent-deep);
}
.project__link svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
.project:hover .project__link svg { transform: translate(4px,-4px); }
.project.hide { display: none; }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.quotes { background: var(--paper-2); }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--display); font-size: 5rem;
  color: var(--accent); opacity: .3;
  position: absolute; top: 6px; left: 22px; line-height: 1;
}
.quote p { margin-top: 26px; font-size: 1.02rem; color: var(--ink-soft); font-style: italic; }
.quote__by { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote__by .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center; font-family: var(--display); font-size: .9rem;
}
.quote__by b { font-size: .95rem; }
.quote__by small { display: block; color: var(--ink-faint); font-size: .8rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; }
html[data-theme="dark"] .contact { background: #060504; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 80px); align-items: start; }
.contact .section-title { color: var(--paper); }
.contact .eyebrow { color: var(--accent); }
.contact__lead { margin-top: 22px; color: rgba(244,241,234,.72); font-size: 1.08rem; max-width: 460px; }
.contact__list { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.contact__list a { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.02rem; transition: color var(--t-fast); }
.contact__list a:hover { color: var(--accent); }
.contact__list .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: var(--accent);
  flex: none; transition: background var(--t-fast), color var(--t-fast);
}
.contact__list .ico svg { width: 20px; height: 20px; }
.contact__list a:hover .ico { background: var(--accent); color: #2a1d00; }

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(244,241,234,.6); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 12px; padding: 14px 16px;
  transition: border-color var(--t-fast), background var(--t-fast); resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); }
.field.invalid input, .field.invalid textarea { border-color: var(--warn); }
.field .err { font-size: .78rem; color: #f0998a; display: none; }
.field.invalid .err { display: block; }
.form .btn-primary { align-self: flex-start; margin-top: 6px; }
.form__success {
  display: none;
  background: rgba(244,168,29,.14);
  border: 1.5px solid var(--accent);
  border-radius: 12px; padding: 16px 18px; color: #fff; font-weight: 600;
}
.form__success.show { display: block; animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: rgba(244,241,234,.55);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 44px 0 30px;
}
html[data-theme="dark"] .footer { background: #060504; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__brand { font-family: var(--display); font-size: 1.4rem; color: var(--paper); display: flex; align-items: baseline; gap: .2em; }
.footer__brand .dot { color: var(--accent); }
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a { font-size: .9rem; transition: color var(--t-fast); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; text-align: left; }
.footer__copy strong { color: var(--paper); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--accent); color: #2a1d00; border: none;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity var(--t), transform var(--t), background var(--t-fast);
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--accent-deep); color: #fff; transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll .mouse::after, .hero__badge .pulse { animation: none; }
  * { scroll-behavior: auto !important; }
}
