/* ==========================================================================
   Mélissa Medjahed — feuille de style
   1. Thème  2. Base  3. Composants  4. Sections  5. Pages  6. Animations
   ========================================================================== */

/* ---------- 1. Thème ---------- */
:root {
  --navy-900: #0b1d3a;
  --navy-800: #0f2a52;
  --navy-700: #163a6e;
  --blue-600: #2f5e9e;
  --blue-500: #3b74c4;
  --blue-100: #dbe7f6;
  --amber: #f2a93b;

  --bg: #ffffff;
  --bg-soft: #e6effb;
  --bg-tint: #d6e4f7;
  --surface: #ffffff;
  --text: #1c2a3d;
  --muted: #5b6b82;
  --heading: var(--navy-800);
  --accent: var(--blue-600);
  --line: #dde5ef;
  --tag-bg: var(--blue-100);
  --tag-text: var(--navy-800);
  --shadow-sm: 0 1px 2px rgb(15 42 82 / .06), 0 2px 8px rgb(15 42 82 / .05);
  --shadow-md: 0 10px 30px -10px rgb(15 42 82 / .25);
  --shadow-lg: 0 30px 60px -20px rgb(15 42 82 / .35);

  --radius: 14px;
  --radius-sm: 8px;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 68px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a1628;
  --bg-soft: #0f1f38;
  --bg-tint: #102443;
  --surface: #132746;
  --text: #d7e1ee;
  --muted: #93a4bb;
  --heading: #eef3fa;
  --accent: #7fb0f0;
  --line: #213859;
  --tag-bg: #1c3660;
  --tag-text: #cfe0f7;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
  --shadow-md: 0 10px 30px -10px rgb(0 0 0 / .6);
  --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
.h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-100); color: var(--navy-900); }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--bg-soft); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section__title { margin-bottom: 2rem; }
.section__head .section__title { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.5rem 3rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy-800); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- 3. Composants ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn .ico { transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -8px rgb(15 42 82 / .6); }
.btn--primary:hover { background: var(--navy-700); box-shadow: 0 14px 28px -10px rgb(15 42 82 / .6); }
.btn--ghost { border-color: var(--line); color: var(--heading); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--outline-light { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
:root[data-theme="dark"] .btn--primary { background: var(--blue-500); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tag {
  display: inline-block; padding: .3rem .65rem; border-radius: 999px;
  background: var(--tag-bg); color: var(--tag-text); font: 600 .75rem/1.2 var(--font-body);
}
.tags--lg .tag { font-size: .85rem; padding: .45rem .85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent); }
.link-arrow .ico { transition: transform .2s; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: #fff;
}
.card__icon .ico { width: 24px; height: 24px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* Barre de progression de lecture */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-500), var(--amber)); transform: scaleX(0); transform-origin: left; }

/* Barre de navigation */
.navbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.navbar.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.navbar__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--heading); font: 800 1.08rem/1 var(--font-head); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: #fff; font-size: .85rem; letter-spacing: .02em;
}
.nav { margin-left: auto; display: flex; gap: .25rem; }
.nav a {
  position: relative; padding: .55rem .9rem; border-radius: 999px;
  color: var(--text); font-weight: 500; font-size: .95rem; transition: color .2s, background-color .2s;
}
.nav a:hover { text-decoration: none; color: var(--accent); background: var(--bg-soft); }
.nav a.active { color: #fff; background: var(--navy-800); }
:root[data-theme="dark"] .nav a.active { background: var(--blue-500); }
.navbar__actions { display: flex; gap: .5rem; }
.menu-btn { display: none; }
.i-close, .show-dark { display: none; }
.menu-open .i-open { display: none; }
.menu-open .i-close { display: block; }
:root[data-theme="dark"] .show-light { display: none; }
:root[data-theme="dark"] .show-dark { display: block; }
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .navbar__actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: .25rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; }
}

/* Pied de page */
.footer { background: var(--navy-900); color: #b9c7da; padding-top: 3.5rem; font-size: .92rem; }
.footer a { color: #d9e4f2; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 2rem; }
.footer__name { font: 800 1.15rem/1.2 var(--font-head); color: #fff; margin-bottom: .5rem; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.footer__links--col { flex-direction: column; }
.footer__links--col li, .footer__links--col a { display: inline-flex; align-items: center; gap: .5rem; word-break: break-all; }
.footer__copy { text-align: center; margin: 2.5rem 0 0; padding: 1.25rem; border-top: 1px solid rgb(255 255 255 / .08); color: #7f93ae; font-size: .82rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md);
  display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-500); }

/* Cartes projet */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.pcard {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s, box-shadow .35s, border-color .35s, opacity .35s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-tint); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pcard__body h3 { font-size: 1.2rem; }
.pcard__body h3 a { color: var(--heading); }
.pcard__body h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard__body p { color: var(--muted); font-size: .95rem; flex: 1; }
.pcard__body .link-arrow { margin-top: 1rem; }
.pcard:hover .link-arrow .ico { transform: translateX(4px); }
.pcard.is-hidden { display: none; }
.pcard--soon {
  display: grid; place-items: center; text-align: center; padding: 2rem; min-height: 280px;
  background: transparent; border: 2px dashed var(--line); box-shadow: none;
}
.pcard--soon:hover { transform: none; box-shadow: none; border-color: var(--accent); }
.pcard--soon p { color: var(--muted); max-width: 30ch; margin-inline: auto; }
.soon-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tag-bg); color: var(--accent); margin-bottom: 1rem; }
.soon-icon .ico { width: 24px; height: 24px; }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font: 600 .88rem/1 var(--font-body); cursor: pointer; transition: .2s;
}
.chip small { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--bg-tint); color: var(--muted); font-size: .72rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip.active small { background: rgb(255 255 255 / .18); color: #fff; }

/* ---------- 4. Sections ---------- */

/* Hero accueil */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); background: var(--bg-soft); }
.hero::before {
  /* Motif discret de piste de circuit imprimé */
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 35%, transparent) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 40%, #000 0%, transparent 65%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--heading); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: .35em; }
.hero h1 span { background: linear-gradient(120deg, var(--navy-800), var(--blue-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hero h1 span { background-image: linear-gradient(120deg, #fff, #7fb0f0); }
.typed { font: 700 clamp(1.1rem, 2.2vw, 1.45rem)/1.3 var(--font-head); color: var(--accent); min-height: 1.9em; margin-bottom: 1.1rem; }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -.15em; background: var(--amber); animation: blink 1s steps(1) infinite; }
.hero .lead { margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__visual { position: relative; justify-self: center; width: min(100%, 400px); isolation: isolate; }
.hero__photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg); transition: transform .25s ease-out; will-change: transform;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__visual::before {
  content: ""; position: absolute; inset: -18px -18px 18px 18px; border-radius: 32px; z-index: -1;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); opacity: .9;
}
.float-badge {
  position: absolute; display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  font-size: .82rem; line-height: 1.3; color: var(--muted); animation: float 6s ease-in-out infinite;
}
.float-badge strong { display: block; color: var(--heading); font-size: .92rem; }
.float-badge .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--tag-bg); color: var(--accent); }
.float-badge--1 { left: -2.5rem; bottom: 2.5rem; }
.float-badge--2 { right: -2rem; top: 2rem; animation-delay: -3s; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(78%, 330px); margin-bottom: 1rem; }
  .float-badge--1 { left: -1.5rem; }
  .float-badge--2 { right: -1.5rem; }
}

/* Chiffres clés */
.stats { position: relative; margin-top: -2.5rem; z-index: 2; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.stat { padding: 1.5rem 1.25rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font: 800 clamp(1.9rem, 3.5vw, 2.5rem)/1 var(--font-head); color: var(--heading); }
.stat__num sup { font-size: .5em; color: var(--accent); }
.stat__label { margin-top: .4rem; font-size: .86rem; color: var(--muted); }
@media (max-width: 720px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; }

/* Bloc alternance */
.feature {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 60%, var(--blue-600)); color: #c9d7ea;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 40px solid rgb(255 255 255 / .05);
}
.feature h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.feature .eyebrow { color: var(--amber); margin-bottom: .5rem; }
.feature__logo { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: rgb(255 255 255 / .1); color: #fff; }
.feature__logo .ico { width: 34px; height: 34px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* Frise chronologique */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 2.4rem; padding-bottom: 1.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.timeline .date { font: 700 .82rem/1 var(--font-body); color: var(--accent); letter-spacing: .04em; }
.timeline h3 { font-size: 1.08rem; margin: .45rem 0 .25rem; }
.timeline p { color: var(--muted); font-size: .94rem; }

.tool-groups { display: grid; gap: 1.1rem; }
.tool-groups h3 { font: 700 .78rem/1 var(--font-body); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.tool-groups .tags { margin: 0; }

/* Bandeau contact */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3.25rem); border-radius: calc(var(--radius) + 6px);
  background: var(--navy-800); color: #c9d7ea; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: radial-gradient(600px 200px at 100% 0%, var(--blue-500), transparent 70%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* En-tête de page intérieure */
.page-head { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs [aria-current] { color: var(--heading); font-weight: 600; }

/* ---------- 5. Pages ---------- */

/* Projet détaillé */
.phero { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--bg-soft); }
.phero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.phero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.phero__media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bg-tint); }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .phero__grid { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; margin: -2rem 0 0; position: relative; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-md); }
.fact dt { font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.fact dd { margin: 0; font-weight: 700; color: var(--heading); line-height: 1.35; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.25rem; counter-reset: s; position: relative; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: #fff; font: 800 1.05rem/1 var(--font-head);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .94rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 2.2rem; right: -1.25rem; width: 1.25rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px);
}
@media (max-width: 980px) { .step::after { display: none; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; }
.checklist .ico { color: #fff; background: var(--accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: .2rem; }

.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.4rem 1.6rem; }
.callout--accent { margin-top: 2.5rem; border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.callout--result { border-left-color: #22a06b; }

.soon { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: 999px; background: var(--bg-tint); color: var(--muted); font-size: .9rem; font-style: italic; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.gallery__item { margin: 0; }
.gallery__item button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.gallery__item button:hover img { transform: scale(1.04); }
.gallery__zoom { position: absolute; right: .75rem; bottom: .75rem; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; opacity: 0; transform: scale(.8); transition: .25s; }
.gallery__item button:hover .gallery__zoom, .gallery__item button:focus-visible .gallery__zoom { opacity: 1; transform: none; }
.gallery__item figcaption { margin-top: .6rem; font-size: .88rem; color: var(--muted); }

.placeholder {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.6rem; min-height: 96px;
  border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.placeholder .ico { width: 36px; height: 36px; color: var(--accent); }
.placeholder strong { display: block; color: var(--heading); }
.placeholder span { font-size: .9rem; }
.placeholder--link { border-style: solid; background: var(--surface); transition: .25s; }
.placeholder--link:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
video { width: 100%; border-radius: var(--radius); }

.pager { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.pager a { display: inline-flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--heading); font-weight: 700; transition: .25s; }
.pager a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.pager small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.pager__next { text-align: right; margin-left: auto; }

/* Galerie plein écran */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 4rem 4.5rem; background: rgb(6 14 28 / .92); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 10rem); width: auto; border-radius: var(--radius-sm); background: #fff; }
.lightbox figcaption { color: #d7e1ee; margin-top: 1rem; text-align: center; font-size: .92rem; }
.lightbox .icon-btn { position: absolute; background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .2); color: #fff; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1rem; top: 50%; }
.lightbox__next { right: 1rem; top: 50%; }
@media (max-width: 600px) { .lightbox { padding: 4rem 1rem 5rem; } .lightbox__nav { top: auto !important; bottom: 1.25rem; } }

/* Expérience */
.xp { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.xp:first-child { border-top: 0; padding-top: 0; }
.xp__date { font: 700 .95rem/1.4 var(--font-head); color: var(--accent); }
.xp__date small { display: block; color: var(--muted); font: 500 .85rem/1.4 var(--font-body); margin-top: .25rem; }
.xp h3 { font-size: 1.35rem; }
.xp__org { color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
@media (max-width: 720px) { .xp { grid-template-columns: 1fr; gap: .75rem; } }

.lang { display: grid; gap: 1.1rem; }
.lang__row { display: flex; justify-content: space-between; font-weight: 600; color: var(--heading); margin-bottom: .45rem; }
.lang__row span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.meter { height: 8px; border-radius: 999px; background: var(--bg-tint); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--navy-800), var(--blue-500)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.is-in .meter span { transform: scaleX(var(--v)); }

/* CV */
.cv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; max-width: 820px; align-items: start; }
.cv-cards .btn { width: 100%; justify-content: center; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.ccard { display: flex; align-items: center; gap: 1rem; }
.ccard__body { flex: 1; min-width: 0; }
.ccard__body strong { display: block; color: var(--heading); }
.ccard__body a { word-break: break-all; font-size: .95rem; }
.ccard__body span { font-size: .95rem; }
.ccard .card__icon { margin: 0; flex: none; }
.copy-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--heading); font: 600 .8rem/1 var(--font-body); cursor: pointer; transition: .2s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.is-done { background: #22a06b; border-color: #22a06b; color: #fff; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--heading); }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-status { display: flex; gap: .6rem; align-items: center; padding: .9rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, #22a06b 12%, var(--surface)); color: var(--heading); font-size: .92rem; }
.form-status .ico { color: #22a06b; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- 6. Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.pcard.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.card--hover.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }

@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-10px); } }

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

/* Ajouts : description, 6 étapes, vidéo */
.prose { max-width: 78ch; }
.prose p { font-size: 1.05rem; }
.steps--n6 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.steps--n6 .step:nth-child(3n)::after { display: none; }
.step h3:last-child { margin-bottom: 0; font-size: 1.02rem; line-height: 1.4; }
.media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.25rem; }
.video { grid-column: 1 / -1; margin: 0; justify-self: center; width: min(100%, 900px); }
.video video { display: block; max-height: 70vh; background: #000; box-shadow: var(--shadow-lg); }
.video figcaption { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: .75rem; color: var(--muted); font-size: .9rem; }
