/* =========================================================================
   OCE WEB STUDIO — DESIGN SYSTEM (2026-11)
   Remplace styles.css sur les pages principales du site.
   ========================================================================= */

/* ---------- Polices (hébergées sur le site) --------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}
/* Polices de secours calibrées : limitent le « saut » du texte au chargement */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 103%;
  descent-override: 29%;
}
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 104%;
  ascent-override: 92%;
  descent-override: 24%;
}

/* ---------- Tokens ---------------------------------------------------- */
:root {
  --bg: #07060d;
  --bg-2: #0c0a17;
  --bg-3: #121024;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f2ff;
  --muted: #a7a3c2;
  --dim: #6f6a8f;
  --accent: #9f7cff;
  --accent-2: #6d4aff;
  --mint: #3ee6c4;
  --amber: #ffb547;
  --grad: linear-gradient(120deg, #b69bff 0%, #8a63ff 45%, #3ee6c4 100%);
  --radius: 26px;
  --radius-sm: 16px;
  --wrap: 1240px;
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fond ------------------------------------------------------ */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(109, 74, 255, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(62, 230, 196, .08), transparent 60%),
    var(--bg);
}
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Layout ---------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sec { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.sec-tight { padding: clamp(56px, 7vw, 90px) 0; }
.sec + .sec { padding-top: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.center { text-align: center; }

/* ---------- Typo ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d8cfff;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 230, 196, .18), 0 0 14px var(--mint);
}
.eyebrow.plain { border: 0; background: none; padding: 0; }
.eyebrow.plain::before { width: 26px; height: 1px; border-radius: 0; background: var(--accent); box-shadow: none; }

.display { font-size: clamp(2.7rem, 6.2vw, 5.4rem); letter-spacing: -.05em; line-height: .98; }
.h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -.045em; }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 640px; line-height: 1.6; }
.muted { color: var(--muted); }

em, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -.02em;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: .06em;
}

.sec-head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head.center { margin-inline: auto; }
.sec-head .lead { margin-top: 22px; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- Boutons --------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, #9f7cff, #6d4aff);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 34px -10px rgba(109, 74, 255, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 20px 44px -10px rgba(109, 74, 255, 1); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; border-color: rgba(255, 255, 255, .3); }
.btn-light { color: #120d2b; background: #fff; box-shadow: 0 14px 34px -12px rgba(255, 255, 255, .5); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #d8cfff;
  border-bottom: 1px solid rgba(159, 124, 255, .4);
  padding-bottom: 2px;
  transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.link-arrow:hover { gap: 14px; color: #fff; border-color: #fff; }

/* ---------- Header ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 10px 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 10, 23, .62);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}
.logo b { font-family: var(--serif); font-weight: 700; font-style: normal; letter-spacing: -.02em; }
.logo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px var(--accent);
  align-self: center;
}
.logo span { font-weight: 600; letter-spacing: -.02em; color: #d9d4f5; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--muted);
  transition: color .3s, background-color .3s;
}
.nav a:not(.btn):hover { color: #fff; background: var(--surface); }
.nav a.active:not(.btn) { color: #fff; background: var(--surface-2); }
.nav .btn { margin-left: 10px; }
.nav .nav-call { display: none; }
.nav-toggle { display: none; }

/* ---------- Hero ------------------------------------------------------ */
.hero { position: relative; padding: clamp(50px, 7vw, 100px) 0 clamp(60px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero .lead { margin: 28px 0 38px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--muted); font-size: .92rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: "✓"; color: var(--mint); font-weight: 800; }

/* composition de téléphones */
.stack { position: relative; height: clamp(440px, 46vw, 620px); }
.phone {
  position: absolute;
  width: 46%;
  aspect-ratio: 430 / 800;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a2545, #0f0d1d);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .6) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  width: 26%;
  height: 16px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #05040a;
  z-index: 2;
}
/* 1er enfant = halo lumineux ; les téléphones sont les enfants 2, 3 et 4 */
.stack .phone:nth-child(2) { left: 0; top: 12%; rotate: -9deg; z-index: 1; }
.stack .phone:nth-child(3) { left: 27%; top: 0; z-index: 3; }
.stack .phone:nth-child(4) { right: 0; top: 14%; rotate: 9deg; z-index: 2; }
.stack-glow {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 74, 255, .55), transparent 65%);
  filter: blur(40px);
}
.float-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(18, 15, 36, .82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-size: .85rem;
  line-height: 1.3;
}
.float-chip strong { display: block; font-size: 1.05rem; }
.float-chip small { color: var(--muted); }
.float-chip .dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-size: 1.1rem; color: #0b0820; font-weight: 800; }
.float-chip.c1 { left: -4%; bottom: 10%; animation: chipFloat 6s ease-in-out infinite; }
.float-chip.c2 { right: -2%; top: 4%; animation: chipFloat 7s ease-in-out -2s infinite; }
@keyframes chipFloat { 50% { translate: 0 -12px; } }

/* hero des pages internes */
.page-hero { padding: clamp(50px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.page-hero .lead { margin-top: 26px; }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font-size: .88rem; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.page-hero-visual { position: relative; }
.page-hero-visual img { width: 100%; border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  color: #dcd6f7;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Bandeau de confiance -------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.trust > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.trust > div:first-child { border-left: 0; }
.trust strong { display: block; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.1; }
.trust small { color: var(--muted); font-size: .88rem; }

/* ---------- Cartes génériques ----------------------------------------- */
.tile {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  overflow: hidden;
  transition: border-color .4s, transform .4s var(--ease), background-color .4s;
}
.tile:hover { border-color: var(--line-2); }
.tile h3 { margin-bottom: 14px; }
.tile p { color: var(--muted); }
.tile .num {
  display: inline-block;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 16px;
  border: 1px solid rgba(159, 124, 255, .35);
  background: rgba(159, 124, 255, .12);
  color: #cbb9ff;
}
.tile-icon svg { width: 24px; height: 24px; }
.tile.feature { background: linear-gradient(160deg, rgba(109, 74, 255, .32), rgba(18, 14, 40, .6) 60%); border-color: rgba(159, 124, 255, .4); }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { position: relative; padding-left: 30px; color: #d9d5ee; font-size: .97rem; line-height: 1.5; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(62, 230, 196, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ee6c4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > :nth-child(1) { grid-column: span 3; }
.bento > :nth-child(2) { grid-column: span 3; }
.bento > :nth-child(3) { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 2; }
.bento > :nth-child(5) { grid-column: span 2; }
.bento-3 > * { grid-column: span 2 !important; }

/* ---------- Portfolio ------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 700;
  color: var(--muted);
  transition: all .3s var(--ease);
}
.filters button small { font-size: .75rem; color: var(--dim); }
.filters button:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.filters button[aria-pressed="true"] { color: #120d2b; background: #fff; border-color: #fff; }
.filters button[aria-pressed="true"] small { color: #6d4aff; }

.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.proj { display: block; position: relative; }
.proj[hidden] { display: none; }
.proj-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 30%, rgba(109, 74, 255, .35), transparent 70%), var(--bg-3);
  overflow: hidden;
}
.proj-media .phone {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 62%;
  transform: translateX(-50%);
  transition: transform .7s var(--ease);
}
.proj:hover .proj-media .phone { transform: translateX(-50%) translateY(-10px) scale(1.03); }
.proj-media .ph-blank {
  position: absolute;
  inset: 12% 18% -6%;
  border-radius: 30px;
  border: 1px solid var(--line-2);
  background: linear-gradient(170deg, #241d4a, #100d21);
  padding: 30px 22px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.ph-blank i { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.ph-blank i:nth-child(1) { width: 40%; background: var(--grad); }
.ph-blank i:nth-child(2) { height: 22px; width: 90%; background: rgba(255, 255, 255, .22); }
.ph-blank i:nth-child(3) { height: 22px; width: 70%; background: rgba(255, 255, 255, .22); }
.ph-blank i:nth-child(5) { height: 90px; margin-top: 10px; border-radius: 14px; background: rgba(159, 124, 255, .18); }
.proj-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 6, 13, .7);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.proj-tag.client { color: #062a22; background: var(--mint); border-color: var(--mint); }
.proj-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 6px 0; }
.proj-body h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.proj-body p { margin: 2px 0 0; font-size: .88rem; color: var(--muted); }
.proj-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: background-color .35s, color .35s, rotate .5s var(--ease);
}
.proj:hover .proj-go { background: #fff; color: #120d2b; rotate: -45deg; }

/* études de cas clients */
.cases { display: grid; gap: 26px; }
.case {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
}
.case.flip { grid-template-columns: 1.1fr .9fr; }
.case.flip .case-media { order: 2; }
.case-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(109, 74, 255, .5), transparent 65%),
    radial-gradient(circle at 80% 90%, rgba(62, 230, 196, .18), transparent 50%),
    var(--bg-3);
  border: 1px solid var(--line);
  overflow: hidden;
}
.case-media .phone {
  left: 50%;
  top: 10%;
  width: 48%;
  transform: translateX(-50%);
  transition: transform .8s var(--ease);
}
.case:hover .case-media .phone { transform: translateX(-50%) translateY(-12px); }
.case-body { display: flex; flex-direction: column; }
.case-sector { margin: 22px 0 10px; font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.case-body .h2 { margin-bottom: 18px; }

/* univers (catégories) */
.universe {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.universe .h3 { margin-top: auto; }
.universe p { margin-top: 10px; font-size: .95rem; }
.universe .link-arrow { margin-top: 22px; align-self: flex-start; }

/* ---------- Tarifs ---------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden;
}
.plan h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.plan .price-line { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 6px; }
.plan .price { font-size: 3.1rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan .per { color: var(--muted); font-size: .92rem; font-weight: 600; }
.plan .delay { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--mint); font-weight: 700; }
.plan > p.desc { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.plan .checks { margin: 24px 0 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan .actions { margin-top: auto; display: grid; gap: 12px; }
.plan .actions .btn { width: 100%; }
.plan .more { text-align: center; font-size: .9rem; font-weight: 700; color: var(--muted); }
.plan .more:hover { color: #fff; }
.plan.featured {
  border-color: rgba(159, 124, 255, .55);
  background: linear-gradient(170deg, rgba(109, 74, 255, .34), rgba(20, 15, 44, .8) 55%);
  box-shadow: 0 40px 90px -30px rgba(109, 74, 255, .7);
}
.plan .badge {
  align-self: flex-start;
  margin: -8px 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #120d2b;
  background: var(--grad);
}
.plans-note { margin-top: 30px; text-align: center; color: var(--muted); }

/* ---------- Étapes ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 34px;
  right: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--mint), transparent);
  opacity: .5;
}
.step { position: relative; }
.step .n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 28px;
  border-radius: 50%;
  border: 1px solid rgba(159, 124, 255, .5);
  background: var(--bg-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: #d8cfff;
  box-shadow: 0 0 0 8px var(--bg);
}
.step h3 { margin-bottom: 12px; font-size: 1.25rem; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: .97rem; }

/* timeline verticale (page process) */
.timeline { display: grid; gap: 22px; }
.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.tl-item .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.4rem, 6vw, 5.2rem);
  line-height: .9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tl-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.tl-item p { color: var(--muted); }
.tl-tag { padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid var(--line-2); color: #d8cfff; }
.tl-validate { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: rgba(62, 230, 196, .08); border: 1px solid rgba(62, 230, 196, .25); color: #bff5e8; font-size: .92rem; font-weight: 600; }

/* ---------- Split / média --------------------------------------------- */
.media-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-3);
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.city-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.city-row a:hover { color: #fff; border-color: rgba(255, 255, 255, .35); background: var(--surface); }
.foot-cities { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 0 28px; font-size: .85rem; }
.foot-cities span { color: var(--dim); }
.foot-cities a { color: var(--muted); }
.foot-cities a:hover { color: #fff; }
.city-row button, .city-row span, .city-row a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .3s;
}
.city-row span { cursor: default; }
.city-row button:hover { color: #fff; }
.city-row button.is-active { background: #fff; color: #120d2b; border-color: #fff; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.stat-row > div { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.stat-row strong { display: block; font-size: 1rem; }
.stat-row small { color: var(--muted); }

/* ---------- Bande CTA ------------------------------------------------- */
.cta-band {
  position: relative;
  padding: clamp(50px, 8vw, 110px) clamp(26px, 6vw, 90px);
  border-radius: clamp(26px, 3vw, 40px);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 120%, rgba(62, 230, 196, .3), transparent 60%),
    radial-gradient(900px 500px at 50% -20%, rgba(159, 124, 255, .55), transparent 60%),
    linear-gradient(180deg, #1d1546, #0f0b24);
  border: 1px solid rgba(159, 124, 255, .45);
}
.cta-band .h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 900px; margin: 0 auto; }
.cta-band .lead { margin: 24px auto 38px; color: #cfc8ee; }
.cta-band .btn-row { justify-content: center; }
.cta-band .hero-note { justify-content: center; }

/* ---------- FAQ ------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .3s, background-color .3s;
}
.faq details[open] { border-color: rgba(159, 124, 255, .4); background: rgba(109, 74, 255, .08); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: rotate .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { rotate: 135deg; background-color: var(--accent-2); border-color: var(--accent-2); }
.faq details > p, .faq details > div { padding: 0 26px 24px; color: var(--muted); max-width: 820px; }
.faq a { color: #d8cfff; text-decoration: underline; text-underline-offset: 3px; }
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq-nav { position: sticky; top: 120px; display: grid; gap: 6px; }
.faq-nav a {
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .3s;
}
.faq-nav a:hover, .faq-nav a.is-active { color: #fff; background: var(--surface); border-color: var(--line); }
.faq-group + .faq-group { margin-top: 70px; }
.faq-group .h3 { margin-bottom: 22px; font-size: 1.6rem; }

/* ---------- Contact --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: start; }
.form-card { padding: clamp(28px, 4vw, 48px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.form label { display: grid; gap: 8px; font-size: .88rem; font-weight: 700; color: #d9d5ee; }
.form label.full, .form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(7, 6, 13, .55);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.form textarea { min-height: 150px; resize: vertical; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7a3c2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 46px; }
.form select option { background: #120f24; }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); background: rgba(7, 6, 13, .8); }
.form .btn { justify-self: start; min-width: 240px; }
.form-note { font-size: .85rem; color: var(--dim); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form label.consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: .88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form label.consent input { flex: 0 0 auto; width: 20px; min-height: 0; height: 20px; padding: 0; margin-top: 1px; accent-color: var(--accent); }
.form label.consent a { color: #d8cfff; text-decoration: underline; text-underline-offset: 3px; }
.form-feedback { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; font-weight: 600; }
.form-feedback.success { background: rgba(62, 230, 196, .12); border: 1px solid rgba(62, 230, 196, .4); color: #bff5e8; }
.form-feedback.error { background: rgba(255, 99, 132, .12); border: 1px solid rgba(255, 99, 132, .4); color: #ffc4d0; }
.side-stack { display: grid; gap: 20px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-line:first-of-type { border-top: 0; }
.contact-line .tile-icon { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.contact-line small { display: block; color: var(--muted); font-size: .82rem; }
.contact-line strong { font-size: 1rem; word-break: break-all; }
.mini-steps { display: grid; gap: 14px; margin-top: 20px; }
.mini-steps li { display: flex; gap: 14px; align-items: center; color: #d9d5ee; }
.mini-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- Pages légales -------------------------------------------- */
.prose-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.prose { display: grid; gap: 18px; }
.prose .tile h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 16px; }
.prose .tile p, .prose .tile li { color: var(--muted); }
.prose .tile strong { color: var(--text); }
.prose .tile a { color: #d8cfff; text-decoration: underline; text-underline-offset: 3px; }
.prose .tile ul { display: grid; gap: 8px; margin: 10px 0 16px; }
.prose .tile ul li { position: relative; padding-left: 20px; }
.prose .tile ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: var(--accent); }

mark.todo { padding: 1px 8px; border-radius: 6px; background: rgba(255, 181, 71, .18); color: var(--amber); font-weight: 700; }
.prose code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: #e4dcff; }

/* ---------- Effets (réalisations) ------------------------------------- */
.fx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fx-grid .tile { padding: 28px; }
.fx-grid .tile small { display: inline-block; margin-top: 16px; font-size: .8rem; font-weight: 700; color: var(--mint); letter-spacing: .04em; }
.fx-vis { height: 90px; margin-bottom: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-3); position: relative; overflow: hidden; }
.fx-vis i { position: absolute; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.fx-vis i:nth-child(1) { left: 14px; top: 16px; width: 46%; height: 12px; background: var(--grad); }
.fx-vis i:nth-child(2) { left: 14px; top: 38px; width: 70%; height: 8px; }
.fx-vis i:nth-child(3) { left: 14px; bottom: 14px; width: 30%; height: 18px; border-radius: 99px; background: rgba(159, 124, 255, .55); }

/* ---------- Footer ---------------------------------------------------- */
.site-footer { position: relative; padding: clamp(70px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(109, 74, 255, .07)); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(50px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.foot-top .h2 { max-width: 760px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0; }
.foot-grid p { color: var(--muted); font-size: .95rem; max-width: 320px; margin-top: 18px; }
.foot-grid h4 { margin-bottom: 18px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 800; }
.foot-grid ul { display: grid; gap: 10px; }
.foot-grid ul a { color: #d9d5ee; font-weight: 500; transition: color .3s, padding-left .3s var(--ease); }
.foot-grid ul a:hover { color: #fff; padding-left: 6px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: .85rem; }

/* Bandeau cookies */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 620px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: rgba(14, 11, 28, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  font-size: .9rem;
  color: var(--muted);
  animation: cookieIn .6s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { display: block; margin-bottom: 4px; color: var(--text); font-size: .98rem; }
.cookie-banner a { color: #d8cfff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } }
.link-btn { padding: 0; border: 0; background: none; cursor: pointer; color: #d9d5ee; font-weight: 500; font-size: inherit; }
.link-btn:hover { color: #fff; }

/* CTA mobile fixe */
.sticky-cta { display: none; }

/* ---------- Responsive ------------------------------------------------ */
@media (max-width: 1100px) {
  .plans, .projects, .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust > div:nth-child(4) { border-left: 0; }
  .trust > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .steps::before { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .split, .page-hero-grid, .contact-grid, .faq-layout, .prose-layout, .case, .case.flip { grid-template-columns: 1fr; }
  .case.flip .case-media { order: 0; }
  .case-media { aspect-ratio: 4 / 3; }
  .case-media .phone { width: 40%; top: 8%; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 6 !important; }
  .faq-nav, .prose-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; }
  .stack { height: clamp(320px, 78vw, 520px); max-width: 560px; margin-inline: auto; width: 100%; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-header { padding: 10px 0; }
  .site-header .wrap { min-height: 58px; padding: 0 8px 0 18px; }
  .nav-toggle {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: var(--surface-2);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
  }
  .nav-toggle .bars { position: relative; width: 16px; height: 10px; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
  .nav-toggle .bars::before { top: 0; }
  .nav-toggle .bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 4px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 4px; transform: rotate(-45deg); }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
    padding: 100px 24px 40px;
    background: rgba(7, 6, 13, .97);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: #fff; background: none !important; }
  .nav .btn { margin: 26px 0 0; min-height: 58px; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .cookie-banner, body.nav-open .sticky-cta { display: none; }
  .nav .nav-call {
    display: block;
    margin-top: 12px;
    padding: 14px 6px !important;
    border: 0 !important;
    text-align: center;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: var(--mint) !important;
  }
  .site-header .wrap { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 10, 23, .92); }

  .grid-2, .grid-3, .grid-4, .plans, .projects, .fx-grid, .form, .stat-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 34px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust > div { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px; }
  .trust > div:nth-child(-n+2) { border-top: 0; }
  .trust > div:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .trust > div:last-child { grid-column: 1 / -1; border-left: 0 !important; }
  .trust strong { font-size: 1.2rem; }
  .projects { grid-template-columns: 1fr 1fr; gap: 14px; }
  .proj-body { padding-top: 12px; }
  .proj-body h3 { font-size: .98rem; }
  .proj-body p { display: none; }
  .proj-go { width: 34px; height: 34px; }
  .proj-tag { top: 10px; left: 10px; font-size: .62rem; padding: 4px 9px; }
  .proj-media { border-radius: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .float-chip { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
  .form .btn { width: 100%; }
  .sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 900;
    display: flex;
  }
  .sticky-cta .btn { width: 100%; }
  .has-sticky .site-footer { padding-bottom: 100px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; gap: 14px; z-index: 2000; }
  .cookie-actions .btn { flex: 1; }
}

/* =====================================================================
   MOBILE — passe complète (téléphones ≤ 760px)
   ===================================================================== */
@media (max-width: 760px) {
  /* Rien ne doit dépasser sur les côtés (la page ne doit jamais glisser latéralement) */
  html { overflow-x: hidden; }
  .hero, .page-hero, .sec, .sec-tight, .site-footer { overflow-x: clip; }
  .mx-marquee { rotate: none !important; }

  /* Rythme vertical plus serré */
  .sec { padding: 64px 0; }
  .sec-tight { padding: 40px 0; }
  .hero { padding: 28px 0 44px; }
  .page-hero { padding: 28px 0 36px; }
  .sec-head { margin-bottom: 30px; }
  .sec-head .lead { margin-top: 14px; }
  .sec-head-row { margin-bottom: 26px; gap: 16px; }
  .eyebrow { margin-bottom: 16px; font-size: .72rem; }
  .crumbs { margin-bottom: 16px; }
  .lead { font-size: 1.04rem; }
  .display { font-size: clamp(2.35rem, 10.6vw, 3rem); letter-spacing: -.045em; }
  .h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .hero .lead { margin: 18px 0 26px; }
  .hero-note { margin-top: 22px; gap: 8px 16px; font-size: .86rem; }
  .chips { margin-top: 22px; gap: 8px; }
  .chip { padding: 7px 13px; font-size: .82rem; }
  .page-hero-grid { gap: 28px; }
  .page-hero-visual { max-width: 420px; }

  /* Hero accueil : téléphones contenus dans l’écran */
  .stack { height: 330px; max-width: 360px; margin-top: 8px; }
  .stack .phone { width: 42%; border-radius: 28px; padding: 6px; }
  .stack .phone img { border-radius: 23px; }
  .stack .phone:nth-child(2) { left: 4%; top: 12%; rotate: -7deg; }
  .stack .phone:nth-child(3) { left: 29%; top: 0; }
  .stack .phone:nth-child(4) { left: auto; right: 4%; top: 12%; rotate: 7deg; }

  /* Cartes plus compactes */
  .tile { padding: 24px 22px; border-radius: 22px; }
  .tile-icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 13px; }
  .tile h3 { margin-bottom: 10px; }
  .checks { gap: 9px; margin-top: 16px; }
  .checks li { font-size: .93rem; }
  .plan { padding: 26px 22px 22px; }
  .plan .price { font-size: 2.6rem; }
  .plan .checks { margin: 18px 0 22px; padding-top: 18px; }
  .tl-item { padding: 24px 22px; }
  .tl-item .big { font-size: 2.8rem; }
  .case { padding: 16px; gap: 20px; }
  .case-body { padding: 0 6px 8px; }
  .media-card { border-radius: 20px; }

  /* ---- Carrousels horizontaux (à faire glisser) ---- */
  .m-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    margin-inline: -16px;
    padding: 4px 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .wrap.m-carousel { width: 100%; margin-inline: 0; }
  .m-carousel > * {
    flex: 0 0 84%;
    max-width: 340px;
    scroll-snap-align: start;
    grid-column: auto !important;
  }
  .m-carousel.steps > * { flex-basis: 76%; }
  .m-carousel.steps::before { display: none; }
  .m-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
  .m-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    cursor: pointer;
    transition: width .35s var(--ease), background-color .3s;
  }
  .m-dots button.is-active { width: 22px; background: var(--accent); }
  .m-hint { display: flex; align-items: center; gap: 8px; margin: -14px 0 16px; font-size: .8rem; font-weight: 600; color: var(--dim); }
  .m-hint::after { content: "→"; animation: hintNudge 1.6s ease-in-out infinite; }
  @keyframes hintNudge { 50% { transform: translateX(5px); } }

  /* Réalisations : grille 2 colonnes plus aérée */
  .projects { gap: 18px 12px; }
  .filters { gap: 6px; }
  .filters button { padding: 8px 14px; font-size: .86rem; }

  /* FAQ / légales : navigation en pastilles défilantes */
  .faq-nav, .prose-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }
  .faq-nav::-webkit-scrollbar { display: none; }
  .faq-nav a { flex: 0 0 auto; white-space: nowrap; }
  .faq summary { padding: 18px 20px; font-size: 1rem; }
  .faq details > p, .faq details > div { padding: 0 20px 20px; }
  .faq-group + .faq-group { margin-top: 48px; }

  /* Formulaire */
  .form-card { padding: 24px 20px; }
  .form { gap: 14px; margin-top: 22px; }

  /* Bande CTA et pied de page */
  .cta-band { padding: 44px 22px; border-radius: 26px; }
  .cta-band .lead { margin: 16px auto 26px; }
  .foot-top { padding-bottom: 40px; }
  .foot-top .btn-row { width: 100%; }
  .foot-grid { padding: 40px 0; gap: 28px; grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child, .foot-grid > :last-child { grid-column: 1 / -1; }
  .foot-cities { gap: 6px 14px; }
  .foot-bottom { flex-direction: column; gap: 6px; }

  /* Le bandeau cookies passe au-dessus du bouton fixe sans le masquer durablement */
  .cookie-banner { bottom: 12px; padding: 16px 16px 14px; border-radius: 18px; }
  .cookie-banner p { font-size: .85rem; }
}

@media (max-width: 380px) {
  .projects { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .display { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
