/* =========================================================
   PORTFOLIO — Feuille de style
   Pour changer les couleurs : modifie les variables ci-dessous
   ========================================================= */
:root {
  /* Palette inspirée de la charte eXalt */
  --bg: #f4f4ff;        /* lavande très clair */
  --bg-alt: #eaeafb;
  --card: #ffffff;
  --ink: #14143f;       /* bleu nuit (texte) */
  --ink-soft: #4d4d7a;
  --dark: #17174d;      /* fond des sections sombres */
  --light: #f4f4ff;
  --accent: #5853ff;    /* violet eXalt */
  --accent-2: #fe2c9b;  /* rose eXalt */
  --accent-3: #ffda3e;  /* jaune eXalt */
  --navy: #2f2f9b;      /* bleu eXalt */
  --line: rgba(20, 20, 70, 0.12);
  --on-ink: #f4f4ff;     /* texte posé sur un fond var(--ink) */
  --nav-bg: rgba(244, 244, 255, .85);
  --glass: rgba(255, 255, 255, .6);
  --dot-off: #c9c9ee;
  --hex: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 76rem;
  --radius: 1rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; } /* les ancres ne passent plus sous le menu fixe */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Barre de progression ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left; transform: scaleX(0);
  z-index: 200;
}

/* ---------- Curseur personnalisé (desktop) : anneau discret qui suit la souris ---------- */
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 300; border-radius: 50%;
    width: 22px; height: 22px;
    border: 1px solid rgba(88, 83, 255, .45);
    transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s, opacity .3s;
  }
  .cursor.is-hover {
    width: 34px; height: 34px;
    background: rgba(88, 83, 255, .08);
    border-color: rgba(88, 83, 255, .25);
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--pad);
  z-index: 150;
  transition: transform .5s var(--ease), background .3s, padding .3s;
}
/* Fond flouté sur un pseudo-élément : un backdrop-filter sur .nav casserait le menu mobile plein écran */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-block: .6rem; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.nav__logo span { color: var(--accent-2); }

.nav__links { display: flex; align-items: center; gap: 1.75rem; font-size: .9rem; }
.nav__links a:not(.nav__cta) { position: relative; font-weight: 500; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  background: var(--ink); color: var(--on-ink);
  padding: .55rem 1.15rem; border-radius: 999px; font-weight: 500;
  transition: background .3s;
}
.nav__cta:hover { background: var(--accent); color: #fff; }

.nav__burger {
  display: none; background: none; border: 0;
  width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 160;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 26px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 1.4rem;
    background: var(--bg); font-size: 1.6rem; font-weight: 700;
    clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
    visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  }
  .nav__links.is-open {
    clip-path: circle(150% at calc(100% - 3rem) 2.5rem);
    visibility: visible; transition: clip-path .7s var(--ease);
  }
  .nav__cta { font-size: 1.1rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px;
  font: 500 .95rem var(--font);
  border: 1.5px solid var(--ink);
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary::before { background: var(--accent); }
.btn--primary:hover { color: #fff; border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--on-ink); }
.magnetic { will-change: transform; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 7.5rem var(--pad) 3rem;
  overflow: hidden;
  isolation: isolate;
}
.hero > * { max-width: var(--maxw); margin-inline: auto; }
/* Calque des halos : s'estompe avant le bas de la section pour éviter toute coupure nette */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none;
}

.hero__hive {
  position: absolute; inset: 0; z-index: -1; max-width: none; opacity: .6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%235853ff' stroke-opacity='.2' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 80% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 80% 35%, #000 0%, transparent 75%);
  animation: hiveDrift 40s linear infinite;
}
@keyframes hiveDrift { to { background-position: 56px 100px; } }

.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); z-index: -2;
  max-width: none; animation: float 18s ease-in-out infinite;
}
.hero__blob--1 { width: 34vw; height: 34vw; background: var(--accent); top: -12%; right: -6%; opacity: .45; }
.hero__blob--2 { width: 22vw; height: 22vw; background: var(--accent-2); top: 30%; right: 30%; opacity: .2; animation-delay: -9s; }
.hero__blob--3 { width: 16vw; height: 16vw; background: var(--accent-3); top: 30%; right: 12%; opacity: .4; animation-delay: -5s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-6%, 8%) scale(1.08); }
  66% { transform: translate(5%, -6%) scale(.94); }
}

.hero__status {
  display: flex; width: fit-content; align-items: center; gap: .55rem;
  padding: .35rem .9rem; margin-left: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  font-size: .82rem; font-weight: 500;
  margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .2s forwards;
}
.hero > .hero__status { margin-inline: max(0px, calc((100% - var(--maxw)) / 2)) auto; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero__name {
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: .6rem;
  opacity: 0; animation: fadeUp .8s var(--ease) .3s forwards;
}
.hero__name span {
  display: inline-block; margin-left: .5rem; padding-left: .75rem;
  border-left: 2px solid var(--accent-2);
  font-size: .62em; font-weight: 500; color: var(--ink-soft); vertical-align: middle;
}
.hero__title {
  font-weight: 800;
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__title .line:nth-child(3) > span { animation-delay: .24s; }
.hero__rotate {
  font-style: normal; display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .4s, transform .4s var(--ease), filter .4s;
}
.hero__rotate.is-out { opacity: 0; transform: translateY(-30%); filter: blur(6px); }
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; margin-top: 1.75rem;
  opacity: 0; animation: fadeUp 1s var(--ease) .6s forwards;
}
.hero__intro { max-width: 40rem; color: var(--ink-soft); font-size: 1rem; }
.hero__intro strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.04em; color: var(--accent);
}
.stat:nth-child(2) strong { color: var(--accent-2); }
.stat:nth-child(3) strong { color: var(--navy); }
.stat:nth-child(4) strong { color: #e8a400; }
.stat--link { display: block; border-radius: .6rem; transition: transform .4s var(--ease); }
.stat--link:hover { transform: translateY(-3px); }
.stat--link:hover span { color: var(--accent); }
.stat span { font-size: .8rem; color: var(--ink-soft); line-height: 1.35; display: block; margin-top: .3rem; }
@media (max-width: 700px) { .hero__stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Logos des entreprises ---------- */
.logos { padding: 1.25rem var(--pad) 1.75rem; }
.logos > * { max-width: var(--maxw); margin-inline: auto; }
.logos__label {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-soft); margin-bottom: .9rem;
}
.logos__list {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem;
}
.logos__list li {
  display: flex; align-items: center; gap: .5rem;
  filter: grayscale(1); opacity: .6;
  transition: filter .4s, opacity .4s, transform .4s var(--ease);
}
.logos__list li:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.logos__list img { width: auto; }
.logos__list span { font-weight: 700; font-size: 1rem; color: var(--ink); }
.logos__text { font-size: .85rem !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; color: #2e7d4f !important; }
@media (max-width: 700px) { .logos__list { justify-content: center; } }

/* ---------- Bandeau défilant ---------- */
.marquee {
  background: var(--accent); color: var(--light);
  padding: .8rem 0; overflow: hidden;
  transform: rotate(-1deg) scale(1.02);
  margin: .5rem 0 1rem;
}
.marquee__track { display: flex; width: max-content; gap: 1.5rem; align-items: center; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.marquee b { color: var(--accent-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections communes ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) var(--pad); position: relative; }
.section > * { max-width: var(--maxw); margin-inline: auto; }

.section__label {
  font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: .6rem;
  display: flex; align-items: center; gap: .7rem;
}
.section__label::before { content: ""; width: 2rem; height: 2px; background: currentColor; }
.section__label--light { color: var(--accent-3); }

.section__title {
  font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 1.75rem;
}
/* Mot mis en valeur dans les titres : dégradé violet → rose en couleur pleine */
.outline {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.accent { color: var(--accent); }

/* ---------- Apparition au scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- À propos ---------- */
.about__grid {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.about__photo { position: relative; }
.about__photo img {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center 35%;
  border-radius: 50%;
  border: 5px solid var(--card);
  box-shadow: 0 0 0 2px var(--accent), 0 20px 45px -20px rgba(47, 47, 155, .45);
}
.about__badge {
  position: absolute; bottom: -.5rem; right: -.75rem;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: var(--dark); color: #f4f4ff;
  display: grid; place-items: center;
}
.about__badge svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: spin 14s linear infinite; fill: currentColor;
  font-size: 9.5px; font-weight: 600; letter-spacing: .1em;
}
.about__badge > span { color: var(--accent-3); font-size: 1.3rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.about__content p { color: var(--ink-soft); margin-bottom: .9rem; }
.about__content p strong { color: var(--ink); }

.skills {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 2.5rem;
}
.skills__group {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.skills__group h3 { font-size: .95rem; font-weight: 700; margin-bottom: .7rem; }
.skills__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.skills__list li {
  padding: .25rem .7rem; font-size: .8rem; font-weight: 500;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  transition: background .3s, color .3s, transform .3s var(--ease), border-color .3s;
}
.skills__list li:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { width: 12rem; }
  .skills { grid-template-columns: 1fr; }
}

/* ---------- Expertises (section sombre) ---------- */
.services { background: var(--dark); color: var(--light); border-radius: 2rem 2rem 0 0; }
.services .accent { color: var(--accent-2); }
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.service {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(244, 244, 255, .14); border-radius: var(--radius);
  background: rgba(244, 244, 255, .04);
  transition: transform .5s var(--ease), border-color .3s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover { transform: translateY(-6px); border-color: transparent; }
.service:hover::before { opacity: 1; }
.service__num { font-size: .8rem; font-weight: 700; color: var(--accent-3); }
.service h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin: .4rem 0 .5rem; }
.service p { font-size: .85rem; color: rgba(244, 244, 255, .72); transition: color .3s; }
.service:hover p { color: #fff; }
@media (max-width: 1000px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Expériences ---------- */
.xp__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.xp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.xp:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(47, 47, 155, .35); border-color: rgba(88, 83, 255, .35); }
.xp--current { border: 1.5px solid var(--accent); box-shadow: 0 0 0 4px rgba(88, 83, 255, .08); }

.xp__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .55rem; }
.xp__logo {
  flex: none; width: 5.25rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: .6rem;
  padding: .35rem .5rem;
}
.xp__logo img { display: block; width: 100%; height: 2rem; min-width: 0; object-fit: contain; }
.xp__logo--text {
  font-size: .62rem; font-weight: 800; letter-spacing: .14em; color: #2e7d4f;
}
.xp__title { flex: 1; min-width: 0; }
.xp__title h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.xp__title p { font-size: .82rem; color: var(--ink-soft); }
.xp__title p strong { color: var(--accent); font-weight: 600; }
.xp__now {
  flex: none; align-self: flex-start;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--accent); color: #fff; padding: .2rem .6rem; border-radius: 999px;
}
.xp__meta { font-size: .78rem; font-weight: 500; color: var(--accent-2); margin-bottom: .5rem; }
.xp__desc { font-size: .87rem; margin-bottom: .55rem; }
.xp__list { margin-bottom: .75rem; }
.xp__list li {
  position: relative; padding-left: 1.05rem;
  font-size: .84rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: .2rem;
}
.xp__list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .5rem; height: .55rem; clip-path: var(--hex); background: var(--accent);
}
.xp__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.xp__tags li {
  font-size: .72rem; font-weight: 500; padding: .15rem .55rem;
  background: var(--bg-alt); color: var(--navy); border-radius: 999px;
}
.xp__other {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  font-size: .85rem; color: var(--ink-soft);
  border-left: 3px solid var(--accent-3); background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.xp__other strong { color: var(--ink); }
@media (max-width: 860px) { .xp__grid { grid-template-columns: 1fr; } }

/* ---------- Recommandations ---------- */
.recos { background: var(--dark); color: var(--light); border-radius: 2rem 2rem 0 0; overflow: hidden; }
.recos .accent { color: var(--accent-3); }
.recos__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.recos__nav { display: flex; gap: .5rem; margin-bottom: 1.75rem; }
.recos__btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(244, 244, 255, .3); background: transparent; color: var(--light);
  font-size: 1.1rem; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s;
}
.recos__btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
.recos__btn:disabled { opacity: .3; cursor: default; }

.recos__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(24rem, 85%);
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .75rem 0 .5rem; scrollbar-width: none;
}
.recos__track::-webkit-scrollbar { display: none; }
.recos__track:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 4px; }

.reco {
  scroll-snap-align: start; position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.4rem;
  background: rgba(244, 244, 255, .05); border: 1px solid rgba(244, 244, 255, .12);
  border-radius: var(--radius);
  transition: border-color .3s, background .3s;
}
.reco:hover { border-color: rgba(254, 44, 155, .5); background: rgba(244, 244, 255, .08); }
.reco__quote {
  position: absolute; top: -.5rem; left: 1.2rem;
  font-size: 4.5rem; line-height: 1; font-weight: 800; color: var(--accent-2);
}
.reco blockquote { font-size: .88rem; line-height: 1.65; color: rgba(244, 244, 255, .78); padding-top: .75rem; }
.reco mark { background: none; color: #fff; font-weight: 600; box-shadow: inset 0 -.45em 0 rgba(88, 83, 255, .55); }
.reco__author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid rgba(244, 244, 255, .12); }
.reco__avatar {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--c, var(--accent));
  color: #fff; font-size: .78rem; font-weight: 700;
}
.reco__author strong { display: block; font-size: .9rem; }
.reco__author div span { display: block; font-size: .75rem; color: rgba(244, 244, 255, .6); line-height: 1.35; }
.reco__author em { display: block; font-style: normal; font-size: .72rem; font-weight: 600; color: var(--accent-3); margin-top: .1rem; }

.recos__more {
  display: block; width: fit-content; margin: 1.5rem 0 0 max(0px, calc((100% - var(--maxw)) / 2)); font-size: .88rem; font-weight: 500;
  color: rgba(244, 244, 255, .8); border-bottom: 1px solid var(--accent-2); padding-bottom: .1rem;
  transition: color .3s;
}
.recos__more:hover { color: var(--accent-3); }
@media (max-width: 560px) { .recos__nav { display: none; } }

/* ---------- Formation & certifications ---------- */
.education { background: var(--bg-alt); }
.edu__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }

.timeline { position: relative; padding-left: 2rem; }
.timeline__line { position: absolute; left: 9px; top: .4rem; bottom: .4rem; width: 2px; background: var(--line); }
.timeline__progress { width: 100%; height: 100%; background: linear-gradient(var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(0); }
.timeline__item { position: relative; padding-bottom: 1.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-2rem); top: .2rem;
  width: 20px; height: 22px; clip-path: var(--hex); background: var(--dot-off);
  transition: background .4s, transform .4s var(--ease);
}
.timeline__item.is-visible::before { background: var(--accent); }
.timeline__date { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.timeline__item h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.timeline__place { font-size: .82rem; font-weight: 500; color: var(--accent-2); }
.timeline__item p:last-child:not(.timeline__place) { font-size: .84rem; color: var(--ink-soft); }

.certs__title { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.certs__list { display: grid; gap: .45rem; margin-bottom: 1.4rem; }
.certs__list:last-child { margin-bottom: 0; }
.cert {
  display: flex; align-items: center; gap: .8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
  padding: .5rem .85rem;
  transition: transform .3s var(--ease), border-color .3s;
}
.cert:hover { transform: translateX(4px); border-color: var(--accent); }
.cert__icon {
  flex: none; width: 2rem; height: 2.2rem; display: grid; place-items: center;
  clip-path: var(--hex); background: var(--c, var(--accent));
  color: #fff; font-size: .68rem; font-weight: 800;
}
.cert--award .cert__icon { font-size: 1rem; }
.cert strong { display: block; font-size: .85rem; line-height: 1.3; }
.cert span { font-size: .76rem; color: var(--ink-soft); }
/* Colonne gauche : frise + langues */
.edu__grid { align-items: start; }
.edu__col { display: flex; flex-direction: column; gap: 2rem; }

/* Langues : petites pastilles avec niveau à points */
.langs { display: flex; flex-wrap: wrap; gap: .5rem; }
.langs li {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .85rem; font-size: .82rem;
}
.langs strong { font-weight: 600; }
.langs span { color: var(--ink-soft); font-size: .75rem; }
.langs .dots { display: inline-flex; gap: 3px; }
.langs .dots b { width: 7px; height: 7px; border-radius: 50%; background: var(--bg-alt); border: 1px solid rgba(88, 83, 255, .25); }
.langs .dots b.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }

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

/* ---------- Contact ---------- */
.contact { background: var(--dark); color: var(--light); border-radius: 2rem 2rem 0 0; overflow: hidden; }
.contact::after {
  content: ""; position: absolute; width: 40vw; height: 40vw; right: -12vw; bottom: -18vw;
  background: var(--accent-2); border-radius: 50%; filter: blur(120px); opacity: .25; pointer-events: none;
}
.contact__inner { position: relative; z-index: 1; }
.contact__title {
  font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1; letter-spacing: -0.04em; text-transform: uppercase; margin-bottom: 2rem;
}
.contact .accent { color: var(--accent-3); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); }
.contact__links p { color: rgba(244, 244, 255, .72); margin-bottom: 1rem; }
.contact__links p strong { color: var(--light); }
.contact__mail {
  display: inline-block; font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 700;
  border-bottom: 2px solid var(--accent-2); padding-bottom: .15rem; margin-bottom: 1.25rem;
  word-break: break-all; transition: color .3s;
}
.contact__mail:hover { color: var(--accent-2); }

.contact__mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.contact__mailrow .contact__mail { margin-bottom: 0; }
.contact__copy {
  font: 500 .8rem var(--font); color: var(--light); cursor: pointer;
  background: transparent; border: 1px solid rgba(244, 244, 255, .3); border-radius: 999px;
  padding: .35rem .9rem; transition: background .3s, border-color .3s;
}
.contact__copy:hover { background: var(--accent); border-color: var(--accent); }
.contact__noscript { font-weight: 600; }
.contact__info { margin-top: 1.5rem; font-size: .9rem; color: rgba(244, 244, 255, .72); }
.contact__info strong { color: var(--light); }
.contact__icon.contact__icon--cv { background: var(--accent-2); font-size: 1.15rem; }

.contact__cards { display: grid; gap: .75rem; align-content: start; }
.contact__card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: rgba(244, 244, 255, .05); border: 1px solid rgba(244, 244, 255, .12);
  transition: border-color .3s, background .3s, transform .4s var(--ease);
}
a.contact__card:hover { border-color: var(--accent-3); background: rgba(244, 244, 255, .09); transform: translateX(4px); }
.contact__icon {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem;
}
.contact__card strong { display: block; font-size: .95rem; }
.contact__card small { display: block; font-size: .8rem; color: rgba(244, 244, 255, .6); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark); color: rgba(244, 244, 255, .55);
  padding: 1.25rem var(--pad);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: .82rem; border-top: 1px solid rgba(244, 244, 255, .1);
}
.footer__top:hover { color: var(--accent-3); }

/* ---------- Accessibilité : moins d'animations si demandé ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__status, .hero__bottom, .hero__name { opacity: 1; }
}

/* ---------- Page Mentions légales ---------- */
.legal { max-width: 52rem; margin-inline: auto; padding: 7rem var(--pad) 4rem; }
.legal__back { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.5rem; transition: color .3s; }
.legal__back:hover { color: var(--accent); }
.legal .section__title { margin-bottom: 1rem; }
.legal__intro { color: var(--ink-soft); margin-bottom: 2rem; }
.legal__block {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.legal__block h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.1rem; font-weight: 700; margin-bottom: .8rem; }
.legal__block h2 span {
  flex: none; width: 1.9rem; height: 2.1rem; display: grid; place-items: center;
  clip-path: var(--hex); background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800;
}
.legal__block p { font-size: .9rem; color: var(--ink-soft); margin-bottom: .7rem; }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block strong { color: var(--ink); }
.legal__block a { color: var(--accent); border-bottom: 1px solid rgba(88, 83, 255, .35); transition: border-color .3s; overflow-wrap: anywhere; }
.legal__block a:hover { border-color: var(--accent); }
.legal__note { font-size: .82rem !important; padding: .6rem .8rem; background: var(--bg-alt); border-radius: .6rem; }
.legal__checks { display: grid; gap: .45rem; margin-bottom: .9rem; }
.legal__checks li { position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--ink-soft); }
.legal__checks li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  display: grid; place-items: center; background: #22c55e; color: #fff; font-size: .7rem; font-weight: 800;
}
.legal__date { font-size: .8rem; color: var(--ink-soft); margin-top: 1.5rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a:hover { color: var(--accent-3); }

/* ---------- Sélecteur de langue FR / EN ---------- */
.nav__lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.nav__lang > * { padding: .2rem .55rem; border-radius: 999px; line-height: 1.4; }
.nav__lang [aria-current] { background: var(--ink); color: var(--on-ink); }
.nav__lang a { color: var(--ink-soft); transition: color .3s, background .3s; }
.nav__lang a:hover { color: var(--accent); background: var(--bg-alt); }
.nav__links .nav__lang a::after { display: none; }
@media (max-width: 860px) { .nav__lang { font-size: 1rem; } }

/* Mention de traduction sous les recommandations traduites */
.reco__tr { display: block; margin-top: .6rem; font-size: .7rem; font-style: italic; color: rgba(244, 244, 255, .45); }

/* =========================================================
   MODE SOMBRE
   Activé par <html data-theme="dark"> (voir le script dans <head>)
   ========================================================= */
:root { color-scheme: light; }
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d24;
  --bg-alt: #13133a;
  --card: #191945;
  --ink: #ececff;
  --ink-soft: #a9a9d0;
  --dark: #17174f;
  --accent: #7d79ff;
  --navy: #a3a3ff;
  --line: rgba(220, 220, 255, .12);
  --on-ink: #14143f;
  --nav-bg: rgba(13, 13, 36, .82);
  --glass: rgba(255, 255, 255, .06);
  --dot-off: #34346a;
}
/* Les sections déjà sombres se distinguent du fond par un liseré */
[data-theme="dark"] .services,
[data-theme="dark"] .recos,
[data-theme="dark"] .contact { box-shadow: inset 0 1px 0 rgba(220, 220, 255, .1); }
/* Les logos d'entreprise restent sur fond blanc pour rester lisibles */
[data-theme="dark"] .logos__list li { background: #fff; padding: .35rem .75rem; border-radius: .6rem; opacity: .85; }
[data-theme="dark"] .logos__list li:hover { opacity: 1; }
[data-theme="dark"] .logos__list span { color: #14143f; }
[data-theme="dark"] .xp__logo { border-color: transparent; }
[data-theme="dark"] .hero__blob { opacity: .3; }
[data-theme="dark"] .about__photo img { border-color: #191945; }
[data-theme="dark"] .xp:hover { box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6); }

/* ---------- Bouton clair / sombre ---------- */
.theme-toggle {
  width: 2.2rem; height: 2.2rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass); color: var(--ink);
  transition: background .3s, color .3s, transform .5s var(--ease);
}
.theme-toggle:hover { color: var(--accent); transform: rotate(-20deg); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 860px) { .theme-toggle { width: 2.8rem; height: 2.8rem; } }

/* Transition douce lors du changement de thème (désactivée au chargement) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease !important;
}

/* ---------- Impression (Ctrl+P) : version sobre, sans animations ni décor ---------- */
@media print {
  .nav, .scroll-progress, .cursor, .cursor-dot, .hero__blob, .hero__hive, .marquee,
  .recos__nav, .theme-toggle, .contact__copy, .hero__actions { display: none !important; }
  .js [data-reveal], .hero__status, .hero__bottom, .hero__name { opacity: 1 !important; transform: none !important; }
  .hero__title .line > span { transform: none !important; }
  .recos__track { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; }
  .section, .hero { break-inside: avoid-page; }
  .xp, .reco, .cert { break-inside: avoid; }
}

/* Sans JavaScript, le bouton de thème ne peut pas fonctionner : on le masque */
html:not(.js) .theme-toggle { display: none; }
