/* ============================================================
   Othman Khanfara — Portfolio (statique). Charte : Eskimoz.
   Thème clair + sections bleu nuit. Inter (titres) / Spline Sans (corps).
   ============================================================ */

:root {
  --navy: #000B6D;          /* texte/titres sur clair */
  --navy-bg: #001640;       /* fond sections sombres */
  --navy-2: #002351;
  --sky: #51CBF3;           /* accent bleu ciel */
  --indigo: #4B65FF;        /* accent indigo */
  --cta: #0860D6;           /* boutons */
  --cta-dark: #0750b0;
  --muted: #3B4D6F;         /* texte secondaire (clair) */
  --muted-2: #6B7896;
  --muted-light: #9DACC9;   /* texte secondaire (sombre) */
  --bg: #FFFFFF;
  --soft: #F4F8FE;
  --line: rgba(0, 11, 109, 0.10);
  --line-light: rgba(255, 255, 255, 0.12);
  --signal-up: #19C37D;
  --signal-down: #F2664B;

  --heading: 'Inter', system-ui, sans-serif;
  --text: 'Spline Sans', system-ui, sans-serif;

  --r-card: 22px;
  --r-pill: 999px;
  --shell: 1280px;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--text);
  font-weight: 350;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--heading); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(75, 101, 255, 0.22); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .shell { padding: 0 40px; } }
@media (min-width: 1024px) { .shell { padding: 0 64px; } }

.section { padding: 6rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy-bg); color: #fff; }

.eyebrow {
  font-family: var(--heading);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--indigo); margin-bottom: 1.1rem;
}
.eyebrow--sky { color: var(--sky); }

.section-title {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  color: var(--navy); max-width: 22ch; margin-bottom: 0.4rem;
}
.section--dark .section-title { color: #fff; }

.lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.lead--light { color: var(--muted-light); }

.micro-title { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted-2); margin-bottom: 0.8rem; }
.micro-title--sky { color: var(--sky); }
.micro-title--accent { color: var(--indigo); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-weight: 600; font-size: 0.86rem;
  padding: 0.62rem 1.25rem; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); box-shadow: 0 10px 30px rgba(8, 96, 214, .35); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: var(--sky); color: var(--sky); }
.btn--ghost { background: transparent; border-color: rgba(0,11,109,.25); color: var(--navy); }
.btn--ghost:hover { border-color: var(--cta); color: var(--cta); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  font-size: 0.85rem; padding: 0.4rem 0.9rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--muted); background: #fff;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.section--dark .chip, .chips--light .chip { background: rgba(255,255,255,.04); border-color: var(--line-light); color: #cdd6e6; }
.chip:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.section--dark .chip:hover, .chips--light .chip:hover { color: var(--sky); border-color: var(--sky); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2rem; font-weight: 600; color: var(--cta); }
.section--dark .link-arrow { color: var(--sky); }
.link-arrow span { transition: transform .25s ease; }
.link-arrow:hover span { transform: translateX(5px); }

/* ===== Reveal (n'affecte le contenu que si JS actif) ===== */
.js .reveal { opacity: 0; transform: translateY(28px); }

/* ===== Curseur custom ===== */
@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor, .has-custom-cursor * { cursor: none; }
}
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); will-change: transform; opacity: 0; }
.has-custom-cursor .cursor-dot, .has-custom-cursor .cursor-ring { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; background: var(--indigo); }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(75,101,255,.5); transition: width .25s, height .25s, background .25s, border-color .25s; }
.cursor-ring.is-hover { width: 60px; height: 60px; background: rgba(81,203,243,.10); border-color: var(--sky); }

/* ===== Header ===== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s ease, box-shadow .3s ease; }
.header__progress { position: absolute; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--sky), var(--indigo)); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header__logo { display: flex; align-items: center; gap: 0.6rem; }
.header__logo img { height: 30px; width: auto; }
.logo-word { font-family: var(--heading); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.03em; line-height: 1; }
.logo-word__a { color: var(--navy); }
.logo-word__b { background: linear-gradient(90deg, var(--sky), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header__nav { display: none; align-items: center; gap: 2rem; }
.header__nav a { font-size: 0.9rem; font-weight: 600; color: var(--navy); transition: color .2s ease; }
.header__nav a:hover { color: var(--cta); }
.header.scrolled { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
/* Header opaque blanc (pages au hero sombre, ex. blog) — sinon les liens foncés sont invisibles. */
.header--solid { background: #fff; box-shadow: 0 1px 0 var(--line); }
/* Menu ouvert : on neutralise tout filtre/fond du header, sinon backdrop-filter crée
   un bloc conteneur qui « emprisonne » le .menu (position:fixed) à la hauteur du header. */
.header.menu-open, .header.menu-open.scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.header.scrolled .header__nav a { color: var(--navy); }
.header.scrolled .header__nav a:hover { color: var(--cta); }
.header.scrolled .header__nav a.btn--primary { color: #fff; }
.header.scrolled .header__burger span { background: var(--navy); }
@media (min-width: 900px) { .header__nav { display: flex; } .header__burger { display: none; } }

.header__actions { display: flex; align-items: center; gap: 0.25rem; }
.header__call { position: relative; z-index: 95; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--navy); transition: color .2s ease, transform .2s ease; }
.header__call:hover { color: var(--cta); transform: translateY(-1px); }
.header.menu-open .header__call { color: #fff; }
.header.menu-open .header__call:hover { color: var(--sky); }
@media (min-width: 900px) { .header__call { display: none; } }
.header__burger { position: relative; z-index: 95; display: flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; }
.header__burger span { display: block; width: 24px; height: 2px; background: var(--navy); transition: transform .3s ease, opacity .3s ease, background .3s ease; }
.header.menu-open .header__burger span { background: #fff; }
.header.menu-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.menu-open .header__burger span:nth-child(2) { opacity: 0; }
.header.menu-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; background: var(--navy-bg); display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: 0 2rem; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.menu a { font-family: var(--heading); font-weight: 700; font-size: 2.4rem; color: #fff; }
.menu a:hover { color: var(--sky); }
.header.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu__home {
  position: absolute;
  top: 1.4rem;
  left: 2rem;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.55) !important;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.04em;
  transition: color .2s ease !important;
}
.menu__home::before { content: '←'; font-size: 1rem; transition: transform .2s ease; }
.menu__home:hover { color: var(--sky) !important; }
.menu__home:hover::before { transform: translateX(-4px); }
/* CTA « Prendre RDV » en bas du menu */
.menu__rdv {
  margin-top: 1.6rem;
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--cta);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}
.menu__rdv::after { content: '→'; font-size: 1rem; }
.menu__rdv:hover { color: #fff !important; background: var(--cta-dark); transform: translateY(-2px); }

/* ===== Réservation / Calendly ===== */
.booking .lead { margin-bottom: 2rem; }
.booking__embed {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,11,109,.05);
}
.booking__embed .calendly-inline-widget { min-width: 320px; height: 700px; }
/* Sur mobile, on garde l'iframe plus court que le viewport : il y a toujours du contenu
   de page visible au-dessus/dessous, donc l'utilisateur peut continuer à scroller la page
   en touchant en dehors de l'iframe (sinon Calendly capture le toucher et on est coincé). */
@media (max-width: 600px) {
  .booking__embed .calendly-inline-widget { height: 560px; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(55% 45% at 80% 18%, rgba(81,203,243,.55), transparent 62%),
    radial-gradient(46% 42% at 15% 12%, rgba(75,101,255,.16), transparent 60%),
    linear-gradient(180deg, #E6F1FF 0%, #F2F8FF 42%, #FFFFFF 100%);
}
.hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__blobs span { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .65; }
.hero__blobs span:nth-child(1) { width: 52vmax; height: 52vmax; right: -12vmax; top: -16vmax; background: radial-gradient(circle, rgba(81,203,243,.65), transparent 62%); animation: blobA 20s ease-in-out infinite; }
.hero__blobs span:nth-child(2) { width: 36vmax; height: 36vmax; left: -10vmax; top: 8vmax; background: radial-gradient(circle, rgba(75,101,255,.35), transparent 62%); animation: blobB 26s ease-in-out infinite; }
.hero__blobs span:nth-child(3) { width: 30vmax; height: 30vmax; right: 18vmax; bottom: -12vmax; background: radial-gradient(circle, rgba(81,203,243,.4), transparent 62%); animation: blobA 30s ease-in-out infinite; }
@keyframes blobA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-4vmax,3vmax); } }
@keyframes blobB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(4vmax,-3vmax); } }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 72%, #FFFFFF 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 7rem; padding-bottom: 4rem; }
.hero__title { font-size: clamp(2.6rem, 9vw, 7.5rem); line-height: 1.12; color: var(--navy); max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: block; }
.js .hero__title .line > span { transform: translateY(110%); }
.hero__title .accent { color: var(--sky); }
.hero__sub { margin-top: 2rem; max-width: 40ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero .eyebrow--sky { color: var(--indigo); transform: translateY(-10px); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Ticker */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 1rem 0; overflow: hidden; }
.ticker__track { display: flex; gap: 2.5rem; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.ticker__track span { font-family: var(--heading); font-size: 0.9rem; color: var(--muted); }
.ticker__track .d { color: var(--sky); margin: 0 1rem; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes rise { to { transform: translateY(0); } }

/* ===== Manifeste ===== */
.manifeste { display: grid; gap: 3rem; }
@media (min-width: 900px) { .manifeste { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
.manifeste__media { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,11,109,.10); }
.manifeste__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.manifeste__text .lead { margin-bottom: 1.1rem; }
.manifeste .chips { margin-top: 1.8rem; }
.manifeste .chip { border-color: rgba(75,101,255,.35); color: var(--indigo); }
.devise { margin-top: 2rem; font-family: var(--heading); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--navy); letter-spacing: -0.02em; }

/* ===== KPI ===== */
.kpi-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.kpi-card { padding: 1.6rem; border-radius: var(--r-card); background: rgba(255,255,255,.04); border: 1px solid var(--line-light); }
.kpi { font-family: var(--heading); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; color: var(--sky); display: inline-block; }
.kpi-label { margin-top: 1rem; font-weight: 600; color: #fff; font-size: 0.95rem; }
.kpi-detail { margin-top: 0.3rem; font-size: 0.82rem; color: var(--muted-light); }

/* ===== Expertise ===== */
.platforms { margin-top: 3.5rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .platforms { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.platform-card { padding: 1.8rem; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.platform-card:hover { border-color: rgba(75,101,255,.4); box-shadow: 0 16px 40px rgba(0,11,109,.08); transform: translateY(-3px); }
.platform-card h3 { font-size: 1.3rem; color: var(--indigo); }
.platform-card p { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; }
.tools { margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool-cat h4 { font-family: var(--heading); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--sky); margin-bottom: 0.8rem; }
.section .tool-cat h4 { color: var(--cta); }

/* ===== Timeline ===== */
.timeline { position: relative; margin-top: 3.5rem; padding-left: 1.8rem; }
.timeline__line { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--sky), var(--indigo)); }
.exp { position: relative; padding-left: 1.8rem; margin-bottom: 3rem; }
.exp:last-child { margin-bottom: 0; }
.exp__dot { position: absolute; left: -1.8rem; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--indigo); transform: translateX(-7px); }
.exp__card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; box-shadow: 0 10px 30px rgba(0,11,109,.05); }
@media (min-width: 768px) { .exp__card { padding: 2rem; } }
.exp__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; align-items: baseline; margin-bottom: 0.8rem; }
.exp__head h3 { font-size: 1.25rem; color: var(--navy); }
.exp__company { margin-top: 0.2rem; font-weight: 600; color: var(--indigo); font-size: 0.92rem; }
.exp__logos { display: flex; align-items: center; gap: 1rem; margin-top: 0.7rem; }
.exp__logo { height: 34px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.exp__logo-link { display: inline-flex; align-items: center; cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease; }
.exp__logo-link:hover, .exp__logo-link:focus-visible { opacity: 0.75; transform: translateY(-1px); }
.exp__dates { font-family: var(--heading); font-size: 0.8rem; color: var(--muted-2); }
.exp__context { color: var(--muted); font-size: 0.92rem; margin-bottom: 1rem; }
.exp__bullets { list-style: none; display: grid; gap: 0.55rem; }
.exp__bullets li { position: relative; padding-left: 1.1rem; font-size: 0.92rem; color: var(--muted); }
.exp__bullets li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.tags { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span { font-size: 0.74rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: var(--r-pill); background: rgba(75,101,255,.10); color: var(--indigo); }

/* ===== Case study ===== */
.cs-defi { margin-top: 3rem; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem 1.8rem; background: var(--soft); }
.cs-subtitle { margin: 3.5rem 0 1.5rem; font-size: 1.5rem; color: var(--navy); }
.ba-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba { padding: 1rem; border-radius: var(--r-card); border: 1px solid var(--line); }
.ba--down { border-color: rgba(242,102,75,.35); background: rgba(242,102,75,.04); }
.ba--up { border-color: rgba(25,195,125,.35); background: rgba(25,195,125,.05); }
.ba__tag { display: inline-block; margin-bottom: 0.8rem; font-family: var(--heading); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.3rem 0.8rem; border-radius: var(--r-pill); }
.ba__tag--down { background: rgba(242,102,75,.15); color: var(--signal-down); }
.ba__tag--up { background: rgba(25,195,125,.15); color: var(--signal-up); }
.ba__legend { margin-top: 0.9rem; font-style: italic; color: var(--muted); font-size: 0.9rem; }
.ba__detail { margin-top: 0.5rem; font-family: var(--heading); font-size: 0.8rem; color: var(--muted-2); }
.cs-synth { margin-top: 1.3rem; font-family: var(--heading); font-weight: 600; color: var(--cta); }

.proof { display: block; width: 100%; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; padding: 0; cursor: zoom-in; }
.proof img { width: 100%; transition: transform .5s ease; }
.proof:hover img { transform: scale(1.02); }

.apple-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .apple-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.apple-table { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.apple-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.apple-table th, .apple-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.apple-table thead th { background: var(--soft); font-family: var(--heading); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); }
.apple-table tbody tr:last-child td { border-bottom: none; }
.apple-table .down { color: var(--signal-down); font-family: var(--heading); }
.apple-table .up { color: var(--signal-up); font-family: var(--heading); }
.apple-table .accent { color: var(--cta); font-family: var(--heading); font-weight: 600; }
.ta-r { text-align: right !important; }
.apple-imgs { display: grid; gap: 1rem; }

.growth-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .growth-grid { grid-template-columns: repeat(3, 1fr); } }
.growth-legend { margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted); }

.cs-bottom { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .cs-bottom { grid-template-columns: 1fr 1fr; } }
.cs-leviers, .cs-result { padding: 1.8rem; border-radius: var(--r-card); }
.cs-leviers { border: 1px solid var(--line); background: #fff; }
.cs-leviers ul { list-style: none; display: grid; gap: 0.8rem; }
.cs-leviers li { position: relative; padding-left: 1.2rem; font-size: 0.92rem; color: var(--muted); }
.cs-leviers li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.cs-result { border: 1px solid rgba(75,101,255,.3); background: linear-gradient(135deg, rgba(81,203,243,.08), rgba(75,101,255,.08)); display: flex; flex-direction: column; justify-content: center; }
.cs-result p { font-family: var(--heading); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--navy); line-height: 1.3; }
.cs-mention { margin-top: 2rem; font-size: 0.78rem; color: var(--muted-2); }

/* ===== Marquee marques ===== */
.marquee-section { padding: 5rem 0; overflow: hidden; }
.marquee { margin-top: 2rem; display: flex; gap: 4rem; width: max-content; align-items: flex-start; animation: marquee 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee__item { display: inline-flex; flex-direction: column; align-items: center; gap: .75rem; flex: 0 0 auto; }
.marquee__logo { height: 56px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease; }
.marquee__item:hover .marquee__logo { filter: grayscale(0); opacity: 1; }
.marquee__name { font-family: var(--heading); font-weight: 600; font-size: .85rem; letter-spacing: .02em; color: var(--muted-2); }

/* ===== Méthode ===== */
.steps { margin-top: 3.5rem; border-top: 1px solid var(--line-light); }
.step { display: flex; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line-light); transition: padding-left .3s ease; }
.step:hover { padding-left: 0.8rem; }
.step__n { font-family: var(--heading); font-weight: 800; font-size: 2rem; color: var(--sky); min-width: 2.5rem; }
.step h3 { font-size: 1.15rem; color: #fff; }
.step p { margin-top: 0.3rem; color: var(--muted-light); font-size: 0.92rem; }
.collab { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .collab { grid-template-columns: repeat(3, 1fr); } }
.collab-card { padding: 1.6rem; border-radius: var(--r-card); background: rgba(255,255,255,.04); border: 1px solid var(--line-light); text-align: center; transition: border-color .25s ease, transform .25s ease; }
.collab-card:hover { border-color: var(--sky); transform: translateY(-3px); }
.collab-card h4 { font-size: 1.05rem; color: var(--sky); }
.collab-card p { margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted-light); }

/* ===== Formation ===== */
.edu { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .edu { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.edu-card { padding: 2rem; border-radius: var(--r-card); border: 1px solid var(--line); background: #fff; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.edu-card:hover { border-color: rgba(75,101,255,.4); box-shadow: 0 16px 40px rgba(0,11,109,.08); transform: translateY(-3px); }
.edu-card__icon { display: block; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sky); margin-bottom: 1.2rem; }
.edu-card h3 { font-size: 1.2rem; color: var(--navy); }
.edu-card__school { margin-top: 0.6rem; font-weight: 600; color: var(--indigo); }
.edu-card__city { margin-top: 0.2rem; color: var(--muted-2); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.contact__title { font-size: clamp(2.4rem, 6vw, 4.5rem); color: #fff; line-height: 0.98; }
.contact__left .lead { margin-top: 1.5rem; }
.contact__links { margin-top: 2.5rem; display: grid; gap: 0.8rem; }
.contact__links a { font-size: 1.15rem; color: #fff; transition: color .2s ease; width: max-content; }
.contact__links a:hover { color: var(--sky); }
.contact__loc { color: var(--muted-light); }
.contact__sectors { margin-top: 2.5rem; }
.contact__form { background: rgba(255,255,255,.04); border: 1px solid var(--line-light); border-radius: var(--r-card); padding: 1.8rem; display: grid; gap: 1rem; align-content: start; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field span { font-size: 0.85rem; color: var(--muted-light); }
.field input, .field textarea { width: 100%; background: rgba(0,0,0,.18); border: 1px solid var(--line-light); border-radius: 12px; padding: 0.8rem 1rem; color: #fff; font-family: var(--text); font-size: 1rem; resize: none; transition: border-color .2s ease; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); }
.contact__form .btn { width: 100%; }

/* ===== Footer ===== */
.footer { background: var(--navy); color: #fff; padding: 2.5rem 0; }
.footer__inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
@media (min-width: 640px) { .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand img { height: 24px; }
.footer__brand span { font-size: 0.85rem; color: var(--muted-light); }
.footer__links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--muted-light); }
.footer__links a:hover { color: var(--sky); }

/* ===== Mobile sticky bar ===== */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-light); background: rgba(0,22,64,.92); backdrop-filter: blur(10px); }
.mobile-bar a { padding: 0.72rem; text-align: center; font-family: var(--heading); font-weight: 600; font-size: 0.85rem; color: #fff; }
.mobile-bar__primary { background: var(--cta); }
@media (min-width: 900px) { .mobile-bar { display: none; } }
/* Évite que la barre fixe ne recouvre le contenu en bas de page (mobile) */
@media (max-width: 899px) { body { padding-bottom: 52px; } }
/* Verrou de scroll quand le menu mobile est ouvert */
body.no-scroll { overflow: hidden; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(0,8,30,.92); backdrop-filter: blur(4px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 10px; object-fit: contain; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: none; color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
}

/* ===== Nav active state ===== */
.header__nav a.nav-active { color: var(--cta); font-weight: 600; }
.header.scrolled .header__nav a.nav-active { color: var(--cta); }

/* ===== Page À propos ===== */

/* Hero */
.ap-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background: var(--navy-bg);
  overflow: hidden;
  padding-top: 9rem;
  padding-bottom: 6rem;
}
.ap-hero__blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ap-hero__blobs span { position: absolute; border-radius: 50%; filter: blur(72px); }
.ap-hero__blobs span:nth-child(1) { width: 50vmax; height: 50vmax; right: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(81,203,243,.45), transparent 65%); animation: blobA 22s ease-in-out infinite; }
.ap-hero__blobs span:nth-child(2) { width: 30vmax; height: 30vmax; left: -6vmax; bottom: -10vmax; background: radial-gradient(circle, rgba(75,101,255,.25), transparent 65%); animation: blobB 28s ease-in-out infinite; }
.ap-hero__eyebrow { margin-bottom: 1.5rem; }
.ap-hero__inner { position: relative; z-index: 2; }
.ap-hero__title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: 1.02;
  color: #fff;
  letter-spacing: -0.03em;
}
.ap-hero__accent { color: var(--sky); }
.ap-hero__sub {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--muted-light);
  max-width: 48ch;
}

/* Parcours / Story */
.ap-story { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
.ap-story__block {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 2rem;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ap-story__block:hover { border-color: rgba(75,101,255,.3); box-shadow: 0 12px 36px rgba(0,11,109,.07); transform: translateY(-2px); }
.ap-story__block--accent {
  border-color: rgba(75,101,255,.25);
  background: linear-gradient(135deg, rgba(81,203,243,.06), rgba(75,101,255,.08));
}
.ap-story__block--accent:hover { border-color: rgba(75,101,255,.45); }
.ap-story__marker {
  font-family: var(--heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--sky);
  line-height: 1;
  padding-top: 0.1em;
}
.ap-story__marker--accent { color: var(--indigo); font-size: 2.2rem; }
.ap-story__content h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.ap-story__content p { font-size: 0.95rem; color: var(--muted); line-height: 1.72; }
.ap-story__content strong { color: var(--navy); font-weight: 600; }
@media (max-width: 560px) {
  .ap-story__block { grid-template-columns: 1fr; gap: 0.8rem; }
  .ap-story__marker { font-size: 1.3rem; }
}

/* Hobbies */
.hobbies-grid { margin-top: 3.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .hobbies-grid { grid-template-columns: 1fr 1fr; } }
.hobby-card {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hobby-card:hover { border-color: rgba(75,101,255,.3); box-shadow: 0 16px 40px rgba(0,11,109,.09); transform: translateY(-3px); }
.hobby-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--soft); }
.hobby-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.hobby-card:hover .hobby-card__img img { transform: scale(1.05); }
.hobby-card__body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.hobby-card__tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(81,203,243,.12);
  color: var(--cta);
}
.hobby-card__body p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

/* Formation enrichie — page À propos */
.edu--ap { margin-top: 3rem; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .edu--ap { grid-template-columns: repeat(3, 1fr); } }
.edu-card--ap { display: flex; flex-direction: column; gap: 0; padding: 2rem; }
.edu-card--ap .edu-card__meta { flex: 0 0 auto; }
.edu-card__desc {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.68;
}
.edu-card__logo {
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 1.4rem;
  display: block;
  border-radius: 8px;
}

/* CTA À propos */
.ap-cta {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .ap-cta { grid-template-columns: 1fr auto; gap: 4rem; } }
.ap-cta__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-top: 0.5rem;
  line-height: 1.05;
}
.ap-cta__actions { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 480px) { .ap-cta__actions { flex-direction: row; flex-wrap: wrap; align-items: center; } }

/* ===== Blog ===== */
.blog-empty { color: var(--muted); }
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
.blog-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.8rem; box-shadow: 0 10px 30px rgba(0,11,109,.05); transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,11,109,.12); }
.blog-card__date { font-family: var(--heading); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.blog-card h2 { font-size: 1.35rem; color: var(--navy); margin: 0.5rem 0 0.6rem; }
.blog-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.blog-card .tags { margin-top: 1.1rem; }

/* Article */
.blog-article__inner { max-width: 760px; }
.blog-back { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--cta); margin: 0 0 1.5rem; }
.blog-back:hover { color: var(--cta-dark); }
.blog-article .prose + .blog-back { margin: 2.5rem 0 0; }
.blog-article__date { font-family: var(--heading); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.blog-article h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--navy); margin: 0.5rem 0 1rem; line-height: 1.08; }
.blog-article__lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.2rem; max-width: 60ch; }
.prose { margin-top: 2rem; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; color: var(--navy); margin: 2.4rem 0 0.8rem; }
.prose h3 { font-size: 1.25rem; color: var(--navy); margin: 1.8rem 0 0.6rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; display: grid; gap: 0.45rem; }
.prose li { padding-left: 0.2rem; }
.prose a { color: var(--cta); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--cta-dark); }
.prose strong { color: var(--navy); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-card); margin: 1.6rem 0; }
.prose blockquote { border-left: 3px solid var(--sky); padding: 0.2rem 0 0.2rem 1.1rem; margin: 1.6rem 0; color: var(--navy); font-style: italic; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose code { background: var(--soft); padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.9em; }
