/* ==========================================================================
   Thaléo Concept — main.css (Charte A: Dark Premium Futuriste)
   Mobile-first | Responsive (mobile/tablet/desktop)
   Architecture: tokens → reset → base → layout → components → utilities
   ========================================================================== */

/* =========================
   1) Design tokens (final)
   ========================= */
:root {
  /* Core palette — Thaléo A (Dark Premium Futuriste) */
  --bg: #070A12;

  --surface: #0E1424;
  --surface-2: #121B31;
  --surface-3: #16233F;
  --surface-4: #1B2A4D;
  --surface-5: #22325C;

  --text: #EEF2FF;
  --text-b: #070A12;
  --muted: #AAB4D6;
  --muted-2: rgba(170, 180, 214, .75);

  --border: rgba(255, 255, 255, 0.5);
  --border-2: rgba(255, 255, 255, .14);

  /* Accents */
  --primary: #67E8F9;     /* cyan */
  --primary-2: #7C5CFF;   /* violet */
  --danger: #FF5C7A;
  --success: #34D399;
  --warning: #FBBF24;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Fluid type scale */
  --fs-hero: clamp(2rem, 3.5vw, 2.8rem);
  --fs-h2:   clamp(1.2rem, 2.2vw, 1.75rem);
  --fs-h3:   clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-h4: clamp(0.8rem, 1.2vw, 1.05rem);
  --fs-body: 1rem;
  --fs-sm:   .9375rem;
  --fs-xs:   .875rem;

  --lh: 1.6;

  /* Spacing */
  /*--s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 1.5rem;
  --s-8: 1rem; */

  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;


  /* Radius / shadow */
  --r-1: .55rem;
  --r-2: .85rem;
  --r-3: 1.1rem;

  --shadow-1: 0 12px 34px rgba(0,0,0,.38);
  --shadow-2: 0 24px 80px rgba(0,0,0,.55);

  /* Layout */
  --container: 1120px;
  --nav-h: 72px;

  /* Signature glow */
  --glow-a: radial-gradient(900px 420px at 18% 8%,
    color-mix(in srgb, var(--primary) 24%, transparent),
    transparent 60%);
  --glow-b: radial-gradient(800px 360px at 85% 20%,
    color-mix(in srgb, var(--primary-2) 20%, transparent),
    transparent 55%);

  /* Transitions */
  --t-fast: .12s ease;
  --t-med: .18s ease;
}

/* =========================
   2) Reset (light) + a11y
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  line-height: var(--lh);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: black; }

::selection { background: color-mix(in srgb, var(--primary) 35%, transparent); }

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 75%, white 25%);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =========================
   3) Base typography
   ========================= */
h1, h2, h3 {
  margin: 0 0 var(--s-4);
  line-height: 1.12;
  letter-spacing: -.03em;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
h4,
.card__title--sm {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

p { margin: .5rem 0 var(--s-4); color: var(--muted); }
small { font-size: var(--fs-xs); color: var(--muted-2); }
strong { color: var(--text); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }

code, pre {
  font-family: var(--font-mono);
  font-size: .92em;
}
pre {
  background: color-mix(in srgb, var(--surface-3) 72%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  padding: var(--s-4);
  overflow: auto;
}

/* =========================
   4) Layout helpers
   ========================= */
.container {
  width: min(var(--container), calc(100% - 2 * var(--s-5)));
  margin-inline: auto;
}

/* .section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-7) 0; } */

.section {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section--tight {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

.section + .section {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.grid { display: grid; gap: var(--s-6); }

@media (min-width: 900px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* .bg-glow { background: var(--glow-a), var(--glow-b); } */

.bg-glow {
  background:
    var(--glow-a),
    var(--glow-b),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 96%, transparent),
      color-mix(in srgb, var(--surface-2) 96%, transparent)
    );
}


/* Section header (kicker + title + lead) */
.section-head { display: grid; gap: .6rem; margin-bottom: 0; }
.kicker { color: var(--muted-2); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: var(--fs-xs); }
.lead { max-width: 100%; color: var(--muted); font-size: 16px; margin-top: 0;
}

/* =========================
   5) Components
   ========================= */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .88rem 1.1rem;
  border-radius: var(--r-2);
  border: 1.5px solid var(--border);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
  user-select: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 82%, var(--primary-2) 18%),
    var(--primary-2));
  border-color: transparent;
  color: #081019;
  font-weight: 900;
}

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }

.btn--sm { padding: .65rem .85rem; font-size: var(--fs-sm); }

/* Button group */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Links (subtle) ---------- */
.link {
  color: color-mix(in srgb, var(--primary) 70%, var(--text));
  border-bottom: 1px solid transparent;
}
.link:hover { border-bottom-color: color-mix(in srgb, var(--primary) 40%, transparent); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  gap: .4rem;
  align-items: center;
  padding: .25rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: var(--fs-xs);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 92%, transparent),
    color-mix(in srgb, var(--surface-2) 92%, transparent));
  border-radius: var(--r-3);
  box-shadow: var(--shadow-1);
  padding: var(--s-3) var(--s-6);
}

.card--soft { box-shadow: none; background: rgba(245, 197, 66, .20); border: none;}

.card__title { margin: .5rem 0 .35rem; }
.card__meta { color: var(--muted-2); font-size: var(--fs-xs); }
.card__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- Stats ---------- */
.stats { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  padding: var(--s-5);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.stat__num { font-size: 1.8rem; font-weight: 900; letter-spacing: -.02em; }
.stat__label { color: var(--muted); margin-top: .2rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  height: var(--nav-h);
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.navbar__cta{
    display:flex;
    align-items:center;
    gap:1rem;
}

.navbar__social{
    display:flex;
    align-items:center;
    gap:.9rem;
}

.navbar__social a{
    display:flex;
    align-items:center;
    justify-content:center;
    transition:transform .2s ease;
}

.navbar__social a:hover{
    transform:translateY(-2px);
}

.navbar__social img{
    width:30px;
    height:30px;
    display:block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand__mark {
  width: 50px;
  height: 50px;
  /* border-radius: 8px; */
  object-fit: contain;
  display: block;
}

.brand__name { font-size: 1rem; }
.brand__tag  { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

.nav {
  display: none; /* mobile: hidden → drawer */
  align-items: center;
  gap: .35rem;
}
.nav a {
  padding: .55rem .75rem;
  border-radius: .75rem;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  border-color: var(--border);
}
.nav a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: color-mix(in srgb, var(--primary) 20%, var(--border));
}

.navbar__cta { display: none; gap: .6rem; align-items: center; }

/* Burger (mobile/tablet) */
.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  cursor: pointer;
}

/* Desktop nav */
@media (min-width: 900px) {
  .nav { display: inline-flex; }
  .navbar__cta { display: inline-flex; }
  .burger { display: none; }
}

/* ---------- Drawer (mobile menu) ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  z-index: 80;
}

.drawer-backdrop.is-open {
  display: block;
}

.drawer {
  position: fixed;
  z-index: 90;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transition: transform var(--t-med), opacity var(--t-med);
  overflow-y: auto;
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.drawer__links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem .7rem;
  line-height: 1.2;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  color: var(--text);
}

.drawer__links a:hover,
.drawer__links a[aria-current="page"] {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.drawer__cta {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* Mobile/tablette : carte flottante */
@media (max-width: 899px) {
  .drawer {
    top: .75rem;
    right: .75rem;
    width: min(320px, calc(100vw - 1.5rem));
    height: auto;
    max-height: calc(100vh - 1.5rem);
    padding: 1rem;
    gap: 1rem;
    border-radius: 16px;

    display: grid;
    grid-template-rows: auto auto auto;
    align-content: start;

    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 1.5rem));
  }

  .drawer.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .drawer__cta .btn {
    padding: .72rem .85rem;
  }
}

/* Desktop : drawer masqué par principe */
@media (min-width: 900px) {
  .drawer,
  .drawer-backdrop {
    display: none !important;
  }
}

/* ---------- Hero (Home éditoriale + pages) ---------- */
/* .hero {
  padding: calc(var(--s-8) + var(--s-6)) 0 var(--s-8);
  background: var(--glow-a), var(--glow-b);
  border-bottom: 1px solid var(--border);
}*/

.hero {
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(3rem, 5vw, 4.5rem);
  background:
    var(--glow-a),
    var(--glow-b),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 96%, transparent),
      color-mix(in srgb, var(--surface-2) 96%, transparent)
    );
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.hero__kicker { color: var(--muted); font-weight: 800; }
.hero__title { margin-top: var(--s-3); margin-bottom: 0;}
.hero__content {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
}

.hero__left {
  max-width: 100%;
  text-align: justify;
}

.hero__right {
  max-width: 100%;
  justify-self: center;
}

.hero__right img {
  width: 100%;
  max-width: 384px;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.hero__image-link {
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.hero__image-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.hero__image-link img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__lead { max-width: 100%; color: var(--muted); font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s-5); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: var(--s-6); }

.territory-card{
    display:block;
    overflow:hidden;
    border-radius:18px;
    background: linear-gradient(180deg, 
    color-mix(in srgb, var(--surface) 92%, transparent), 
    color-mix(in srgb, var(--surface-2) 92%, transparent));
    border:1px solid var(--color-border);
    transition:.25s;
    text-decoration:none;
    color:inherit;
    box-shadow:0 8px 28px rgba(0,0,0,.05);
}

.territory-card:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.10);
}

.territory-card img{
    display:block;
    width:100%;
    height:auto;
}

.territory-card__body{
    padding:1.4rem;
}

.territory-card h3{
    margin-bottom:.5rem;
}

.territory-card p{
    margin-bottom:1rem;
}

.territory-card__link{
    color:var(--color-primary);
    font-weight:600;
}


/* Studio — Process: cartes en colonne (override local sans changer les classes globales) */
.section.bg-glow .grid.grid--2 {
  grid-template-columns: 1fr; /* empile tout */
}

.section-dark {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface) 96%, transparent),
    color-mix(in srgb, var(--surface-2) 96%, transparent)
  );
}

.section-soft {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-2) 96%, transparent),
    color-mix(in srgb, var(--surface-3) 96%, transparent)
  );
}

.section-glow {
  background:
    var(--glow-a),
    var(--glow-b),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 96%, transparent),
      color-mix(in srgb, var(--surface-2) 96%, transparent)
    );
}

/* ---------- Logo cloud (références) ---------- */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 600px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .logo-cloud { grid-template-columns: repeat(6, 1fr); } }

.logo-tile {
  border: 1px solid var(--border);
  border-radius: var(--r-2);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: var(--s-4);
  display: grid;
  place-items: center;
  min-height: 74px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.logo-tile:hover {
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
  transform: translateY(-1px);
}
.logo-tile img { max-height: 36px; opacity: .92; }

/* ---------- Editorial / Actus ---------- */
.article-grid { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .article-grid { grid-template-columns: 1.2fr .8fr; } }

.post-list { display: grid; gap: var(--s-5); }
.post {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--surface) 92%, transparent),
    color-mix(in srgb, var(--surface-2) 92%, transparent));
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.post__media { aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--surface-3) 70%, transparent); }
.post__body { padding: var(--s-6); }
.post__meta { color: var(--muted-2); font-size: var(--fs-xs); margin-bottom: .35rem; }
.post__title { margin: 0 0 .5rem; }
.post__excerpt { margin: 0; color: var(--muted); }
.post__footer { padding: 0 var(--s-6) var(--s-6); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }

/* Single article formatting (si tu fais une page article) */
.prose {
  max-width: 78ch;
}
.prose p { color: var(--muted); }
.prose h2 { margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin: .35rem 0; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: var(--s-4); }
.label { font-size: var(--fs-xs); color: var(--muted-2); }

.input, .textarea, .select {
  width: 100%;
  padding: .85rem .95rem;
  border-radius: var(--r-2);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-3) 70%, transparent);
  color: var(--text);
  outline: none;
}
.textarea { min-height: 140px; resize: vertical; }

.input:focus, .textarea:focus, .select:focus {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.helper { font-size: var(--fs-xs); color: var(--muted-2); }

/* Inline form row */
.form-row { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Pricing (packs) ---------- */
.pricing { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(2, 1fr); } }

.price-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-3) 96%, transparent),
    color-mix(in srgb, var(--surface-2) 92%, transparent)
  );
  border: 1px solid color-mix(in srgb, white 6%, transparent);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow:
    0 10px 28px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.price-card--featured {
  border: 1px solid color-mix(in srgb, var(--brand,#C9A86A) 35%, transparent);
  box-shadow:
    0 12px 30px rgba(0,0,0,.55),
    0 0 0 1px color-mix(in srgb, var(--brand,#C9A86A) 20%, transparent);
}

.price { font-size: 2rem; font-weight: 900; letter-spacing: -.02em; }
.price small { font-size: var(--fs-sm); color: var(--muted); font-weight: 800; }

.price-box {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-4) 92%, transparent);
  border: 1px solid color-mix(in srgb, white 5%, transparent);
}

.price-box strong {
  font-size: 1.1rem;
}

.features { display: grid; gap: .6rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.features li { color: var(--muted); }

/* ---------- Tabs (si tu veux “Studio / Labs / Process” sur une section) ---------- */
.tabs {
  display: inline-flex;
  gap: .4rem;
  padding: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.tab {
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
}
.tab[aria-selected="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}

/* Lead + badge à droite */
.lead-with-badge{
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px){
  .lead-with-badge{ grid-template-columns: 1fr; }
  .lead-with-badge__aside{ order: -1; } /* option : badge au-dessus sur mobile */
}

/* Parrainage (figé) */
.referral-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-3) 94%, transparent),
    color-mix(in srgb, var(--surface-2) 92%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--brand,#C9A86A) 30%, transparent);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  margin-bottom: 14px;
}

.referral-card__head{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.referral-card__icon{
  font-size: 1.35rem;
  line-height: 1;
}

.referral-card__title {
  font-weight: 600;
  color: var(--brand,#C9A86A);
}

.referral-card__subtitle {
  font-size: .9rem;
  opacity: .9;
}

.referral-card__body{
  border-top: 1px dashed rgba(245,197,66,.25);
  padding-top: 10px;
  font-size: 14px;
}

.referral-card__body strong{
  display: inline-block;
  margin-bottom: 6px;
}

.referral-card__body ul{
  margin: 0 0 0 18px;
  padding: 0;
  color: var(--muted);
}

.referral-link {
  color: var(--brand, #C9A86A);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted color-mix(in srgb, var(--brand,#C9A86A) 60%, transparent);
}

.referral-link:hover {
  border-bottom-color: var(--brand,#C9A86A);
}

/* Tooltip accessible via <details> */
.tooltip{
  display:inline-block;
  position:relative;
  margin:0 .15rem;
  vertical-align:baseline;
}

.tooltip__trigger{
  text-decoration: underline dotted;
  text-underline-offset: .18em;
  cursor: help;
}

.tooltip__panel{
  position:absolute;
  z-index:50;
  top:1.4em;
  left:0;
  /* width:min(520px, 78vw); */
  width:min(760px, 90vw);
  padding:.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  /* border:1px solid color-mix(in srgb, var(--border, #ffffff) 18%, transparent); */
  background: color-mix(in srgb, var(--surface-3) 94%, black);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  display: none;
  max-height: 60vh;
  overflow-y: auto;
}

/* Hover + clavier + mobile (tap => focus) */
.tooltip:hover .tooltip__panel,
.tooltip:focus .tooltip__panel,
.tooltip:focus-within .tooltip__panel{
  display:block;
}

/* Caret */
.tooltip:hover .tooltip__panel::before,
.tooltip:focus .tooltip__panel::before,
.tooltip:focus-within .tooltip__panel::before{
  content:"";
  position:absolute;
  top:-8px;
  left:14px;
  width:14px;
  height:14px;
  transform: rotate(45deg);
  background: inherit;
  border-left: 1px solid color-mix(in srgb, var(--border, #ffffff) 18%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--border, #ffffff) 18%, transparent);
}

.tooltip:focus{
  outline:2px solid color-mix(in srgb, var(--accent, #7aa2ff) 70%, transparent);
  outline-offset:2px;
}

/* Accessibilité : ouverture au focus (clavier) */
.tooltip__trigger:focus {
  outline: 2px solid color-mix(in srgb, var(--accent, #7aa2ff) 70%, transparent);
  outline-offset: 2px;
}

/* Mobile : éviter que ça sorte de l’écran */
@media (max-width:520px){
  .tooltip__panel{ left:50%; transform:translateX(-50%); }
  .tooltip__panel::before{ left:50%; transform:translateX(-50%) rotate(45deg); }
}

/* about.php - Approche*/
.approach-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:.5rem;
  margin-top:1rem;
  margin-bottom: 1rem;
}

.approach-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.approach-card{
  background: var(--surface-2);
  border:1px solid color-mix(in srgb, var(--border) 20%, transparent);
  border-radius:12px;
  padding: .75rem .75rem;
  text-align:left;
  transition: transform .2s ease, box-shadow .2s ease;
}

.approach-card:hover{
  transform: translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.25);
}

.approach-icon{
  font-size:2rem;
  font-weight:700;
  color: var(--primary);
  margin-bottom:.5rem;
}

.approach-card h3{
  margin:.25rem 0 .5rem;
  font-size:1rem;
}

.approach-card p{
  font-size:.9rem;
  line-height:1.4;
  opacity:.9;
}

.approach-head{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin-bottom:.5rem;
}

.approach-card h3{
  margin:0;
  font-size:1rem;
}

@media (max-width: 900px){
  .approach-grid{
    grid-template-columns: repeat(2,1fr);
  }

  .approach-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .approach-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 380px) {
  .approach-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-5);
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  cursor: pointer;
}
.faq-a {
  padding: 0 var(--s-5) var(--s-5);
  color: var(--muted);
  display: none;
}
.faq-item.is-open .faq-a { display: block; }

/* ---------- Table (responsive) ---------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  overflow: auto;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
th, td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--muted);
}
th { color: var(--text); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .02em; }
tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  color: var(--muted);
  font-size: var(--fs-xs);
}
.breadcrumbs a:hover { color: var(--text); }

/* ---------- Modals (offres / mentions) ---------- */
/* Structure attendue :
<section class="modal" hidden>
  <div class="modal__backdrop" data-modal-close></div>
  <div class="modal__panel" role="document">...</div>
</section>
*/

.modal[hidden] { display: none !important; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}

.modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop cliquable */
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

/* Panneau */
.modal__panel{
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;

  border-radius: var(--r-3);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-2);

  transform: translateY(10px);
  transition: transform var(--t-med);
}

.modal.is-open .modal__panel{
  transform: translateY(0);
}

.modal__head{
  padding: var(--s-5);
  border-bottom: 1px solid var(--border-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

.modal__body{
  padding: var(--s-5);
}

.modal__foot{
  padding: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

/* Mobile: quasi plein écran */
@media (max-width: 599px){
  .modal{ padding: 0; place-items: stretch; }
  .modal__panel{
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
}
/* ---------- Toasts (messages UI) ---------- */
.toasts {
  position: fixed;
  right: var(--s-5);
  bottom: var(--s-5);
  display: grid;
  gap: .6rem;
  z-index: 110;
}
@media (max-width: 599px) {
  .toasts { left: var(--s-5); right: var(--s-5); }
}
.toast {
  border: 1px solid var(--border);
  border-radius: var(--r-3);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: var(--shadow-1);
  padding: .85rem 1rem;
  color: var(--text);
}
.toast__title { font-weight: 900; margin-bottom: .2rem; }
.toast__msg { color: var(--muted); margin: 0; }
.toast--success { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
.toast--error   { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.toast--warn    { border-color: color-mix(in srgb, var(--warning) 30%, var(--border)); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s-7) 0;
  color: var(--muted);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-3) 65%, transparent));
}
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer a { color: var(--text); }
.footer a:hover { color: var(--muted); }

.footer__title { color: var(--text); font-weight: 900; margin-bottom: .6rem; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

.footer__social {
  margin-top: 1rem;

  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
}

.footer__social a {
  display: inline-flex;
  align-items: center;

  color: rgba(255,255,255,0.82);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer__social a:hover {
  color: #ffffff;
  opacity: 1;
}

.footer__social svg {
  display: block;
}

.footer__bottom{
  margin-top:0.88rem;
  padding-top:0.88rem;
  border-top:1px solid rgba(255,255,255,.08);
}

.footer__zones{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.55rem;
  font-size:.82rem;
  color:rgba(255,255,255,.62);
  line-height:1.6;
  text-align:center;
}

.footer__zones span{
  position:relative;
  padding-right:.75rem;
}

.footer__zones span:not(:last-child)::after{
  content:"•";
  position:absolute;
  right:0;
  color:rgba(255,255,255,.22);
}

.footer__partner {
    margin-top: 1.5rem;
}

.footer__partner span {
    display: block;
    margin-bottom: .5rem;
    font-size: .85rem;
    opacity: .8;
}

.footer__partner img {
    display: block;
    max-width: 200px;
    height: auto;
    opacity: .9;
    transition: opacity .2s ease;
}

.footer__partner a:hover img {
    opacity: 1;
}

/* =========================
   6) Utilities (small set)
   ========================= */
.hidden { display: none !important; }
.modal[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.stack > * + * { margin-top: var(--s-4); }

/* Spacing helpers (light) */
.mt-0 { margin-top: 0 !important; }
.mt-3 { margin-top: var(--s-3) !important; }
.mt-4 { margin-top: var(--s-4) !important; }
.mt-6 { margin-top: var(--s-6) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: var(--s-4) !important; }
.mb-6 { margin-bottom: var(--s-6) !important; }
.mb-8 { margin-bottom: 8px !important; }


/* Accordéons dans les modales d'offres */
.offer-accordion { margin-top: 12px; }

.offer-accordion details {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0;
  background: rgba(255,255,255,.02);
}

.offer-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 600;
  margin: 0;
}

.offer-accordion summary::-webkit-details-marker { display: none; }

.offer-accordion summary::after {
  content: "＋";
  font-weight: 700;
  opacity: .8;
}

.offer-accordion details[open] summary::after { content: "−"; }

.offer-accordion .acc-body {
  margin-top: 8px;
  color: var(--muted);
}

/* Resserre les listes */
.offer-accordion .acc-body ul {
  margin: 6px 0 4px 18px;
  padding: 0;
}
.offer-accordion .acc-body li { margin-bottom: 4px; }
.offer-accordion .acc-body p { margin: 6px 0 0; }

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--brand,#C9A86A) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand,#C9A86A) 35%, transparent);
}


.offer-badge__icon {
  font-size: 0.9rem;
}

/* Mise en avant incentive dans la modal */
.offer-incentive{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* Si tu veux un accent discret */
.offer-incentive strong { font-weight: 800; }
.offer-incentive a { text-decoration: underline; }

.offer-promo{
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245,197,66,.08);
  border: 1px solid rgba(245,197,66,.18);
  display: inline-block;
}

.offer-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.offer-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  color: inherit;
  cursor: pointer;

  background: color-mix(in srgb, var(--surface-3) 92%, transparent);
  border: 1px solid color-mix(in srgb, white 6%, transparent);

  transition: all .2s ease;
}

.offer-tab:hover {
  background: color-mix(in srgb, var(--surface-4) 92%, transparent);
  transform: translateY(-1px);
}

.offer-tab.is-active {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--surface-4) 94%, transparent),
    color-mix(in srgb, var(--surface-3) 94%, transparent)
  );

  border: 1px solid color-mix(in srgb, var(--brand,#C9A86A) 40%, transparent);

  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand,#C9A86A) 20%, transparent),
    0 6px 20px rgba(0,0,0,.35);
}

.offer-tab__icon {
  opacity: .85;
}

.offer-tab__icon svg {
  width: 20px;
  height: 20px;
}

.offer-tab__icon .ico{ fill: currentColor; opacity: .95; }

.offer-tab__text{ font-weight: 600; font-size: .95rem; }

.offer-selector-note {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 6px;
  margin-bottom: 18px;
}

/* Optionnel : un peu plus "aéré" puisque 1 seule carte */
.pricing--single{
  /* display: flex; */

  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  justify-content: start;

  margin-top: 30px;
}

.offer-panel{
  animation: offerFade .18s ease-out;
}

.options-shell {
  display: grid;
  gap: 8px;
}

.option-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}

.option-tab {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--surface-2) 60%, #000 40%);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  color: inherit;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.option-tab:hover,
.option-tab:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  transform: translateY(-1px);
  outline: none;
  color: var(--text);
}

.option-tab.is-active {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--accent) 30%);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--surface-2) 35%);
}

.option-panel[hidden] {
  display: none !important;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.option-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--surface) 94%, transparent),
      color-mix(in srgb, var(--surface-2) 94%, transparent)
    );
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

.option-card--featured {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  box-shadow: 0 18px 44px rgba(0,0,0,.20);
  position: relative;
  overflow: hidden;
}

.option-card--featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), transparent);
}

.option-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.option-card__title-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.option-card__title {
  margin: 0;
  font-size: .8rem;
}

.option-card__desc {
  margin: 6px 0 0;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}

.option-card__price {
  flex: 0 0 auto;
  font-size: .8rem;
  text-align: right;
  white-space: nowrap;
}

.option-card__price strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.1;
}

.option-card__price small {
  color: var(--muted);
}

.option-card__body {
  color: var(--muted);
  font-size: .8rem;
}

.option-card__body ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.option-card__body li + li {
  margin-top: 6px;
}

.option-card__footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.options-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 16px;
  align-items: start;
}

.options-highlight__aside {
  display: grid;
  gap: 16px;
}

.mini-note-card {
  background: color-mix(in srgb, var(--surface-3) 96%, transparent);
  border: 1px solid color-mix(in srgb, white 6%, transparent);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

.mini-note-card h3 {
  font-size: .95rem;
  color: var(--brand,#C9A86A);
  margin-bottom: 8px;
}

.mini-note-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.mini-note-card ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.offer-chip-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .92rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.section-anchor-offset {
  scroll-margin-top: 110px;
}

@media (max-width: 1100px) {
  .option-card {
    grid-column: span 6;
  }

  .options-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .option-card {
    grid-column: span 12;
  }

  .option-card__top {
    flex-direction: column;
  }

  .option-card__price {
    text-align: left;
  }
}

@keyframes offerFade{
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Accordéon Process - Page studio.php */
.process-stack .grid.grid--2 {
  grid-template-columns: 1fr;
}

.process-accordion details{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
}

.process-accordion details + details{ margin-top: 10px; }

.process-accordion summary{
  list-style: none;
  cursor: pointer;
}

.process-accordion summary::-webkit-details-marker{ display:none; }

.process-accordion .process-title{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.process-accordion .process-title h3{
  margin: 0;
}

.process-accordion .process-more{
  font-size: .85rem;
  font-weight: 700;
  opacity: .85;
  white-space: nowrap;
}

.process-accordion details[open] .process-more{ opacity: .65; }

.process-accordion .process-desc{
  margin: 6px 0 0;
  color: var(--muted);
}

.process-accordion .process-body{
  margin-top: 10px;
  color: var(--muted);
}

.process-accordion .process-body ul{
  margin: 6px 0 0 18px;
  padding: 0;
}
.process-accordion .process-body li{ margin-bottom: 6px; }

/* =========================
   7) Breakpoints (final)
   ========================= */
@media (min-width: 600px) {
  /* Large phones / small tablets */
}

@media (min-width: 900px) {
  :root { --container: 1120px; }
}

@media (min-width: 1200px) {
  :root { --container: 1160px; }
}


.contact-grid {
  align-items: start;
}

.contact-grid .card--soft {
  align-self: start;
}

@media (min-width: 900px) {
  .contact-grid .card--soft {
    position: sticky;
    top: 96px;
  }
}

/* formater la taille des logos Tech */
.tech-cloud {
  align-items: center;
}

.tech-logo {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;

  background: #f2f3f5; /* gris clair neutre */
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.tech-logo img {
  max-width: 130px;
  max-height: 42px;
  object-fit: contain;
}

/* ==========================================================================
   Responsive final overrides — mobile/tablet safety
   ========================================================================== */

/* Mobile: éviter les débordements horizontaux */
html,
body {
  overflow-x: hidden;
}

/* Mobile: hero en une seule colonne */
@media (max-width: 899px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__left {
    text-align: left;
  }

  .hero__right {
    width: 100%;
  }

  .hero__right img {
    max-width: 100%;
  }

  .hero__actions,
  .btn-row,
  .card__actions {
    width: 100%;
  }

  .hero__actions .btn,
  .btn-row .btn,
  .card__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
}

/* Mobile: cartes moins serrées */
@media (max-width: 599px) {
  :root {
    --nav-h: 64px;
  }

  .container {
    width: min(100% - 2rem, var(--container));
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: var(--s-4);
  }

  .hero__actions .btn {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
  }

  .hero__actions .btn--primary {
    font-size: 1.05rem;
    font-weight: 900;
  }

  .section {
    padding: 2.75rem 0;
  }

  .section--tight {
    padding: 2rem 0;
  }

  .card,
  .price-card,
  .option-card,
  .mini-note-card {
    padding: 1rem;
  }

  .lead,
  .hero__lead,
  p[style*="text-align: justify"] {
    text-align: left !important;
  }

  .hero__lead {
    font-size: .95rem;
    line-height: 1.5;
  }

  .section-head .lead {
    font-size: .95rem;
  }

  p {
    font-size: .95rem;
  }
}

/* Studio/Labs cards: éviter les layouts cassés sur tablette */
@media (max-width: 899px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .options-highlight,
  .pricing--single {
    grid-template-columns: 1fr;
  }
}

/* Onglets offres : scroll horizontal propre sur mobile */
@media (max-width: 899px) {
  .offer-tabs,
  .option-tabs {
    display: flex;
    overflow-x: auto;
    gap: .75rem;
    padding-top: .35rem;
    padding-bottom: .35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: flex-start;
  }

  .offer-tab,
  .option-tab {
    flex: 0 0 auto;
    min-width: max-content;
  }
}

/* Pricing / offres : une colonne sur mobile */
@media (max-width: 899px) {
  .pricing,
  .pricing--single {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-card {
    width: 100%;
  }
}

/* Options / Labs cards */
@media (max-width: 1100px) {
  .option-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .option-card {
    grid-column: span 12;
  }

  .option-card__top {
    flex-direction: column;
  }

  .option-card__price {
    text-align: left;
    white-space: normal;
  }
}

/* Footer mobile */
@media (max-width: 899px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Logos tech mobile */
@media (max-width: 599px) {
  .logo-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-logo {
    min-height: 78px;
    padding: 14px;
  }

  .tech-logo img {
    max-width: 110px;
    max-height: 36px;
  }
}

/* Modales : confort mobile */
@media (max-width: 599px) {
  .modal__head,
  .modal__body,
  .modal__foot {
    padding: 1rem;
  }

  .modal__head {
    align-items: flex-start;
  }

  .modal__head h3 {
    font-size: 1.15rem;
  }
}

/* Drawer mobile : éviter contenu coupé */
.drawer {
  overflow-y: auto;
}

/* Formulaires */
input,
textarea,
select {
  max-width: 100%;
}

@media (max-width: 599px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
  .hero__actions {
    justify-content: center;
  }

  .hero__meta {
    justify-content: center;
    text-align: center;
  }
}

/* Base (mobile + tablette) */
.burger {
  width: 46px;
  height: 46px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--surface-4) 90%, transparent),
    color-mix(in srgb, var(--surface-2) 92%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow:
    0 8px 24px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04);
}

/* Interactions */
.burger:hover,
.burger:focus-visible {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 18%, var(--surface-4)),
    color-mix(in srgb, var(--primary-2) 14%, var(--surface-2))
  );
  border-color: color-mix(in srgb, var(--primary) 65%, var(--border));
}

.burger[aria-expanded="true"] {
  color: #081019;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
}

.burger:active {
  transform: scale(0.96);
}

/* CTA mobile — version propre */
.mobile-cta {
  display: none;
}

@media (max-width: 899px) {
  body {
    padding-bottom: 82px;
  }

  .mobile-cta {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: block;
  }

  .mobile-cta__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    padding: .55rem;
    border-radius: 999px;
    background: rgba(7, 10, 18, .86);
    border: 1px solid var(--border-2);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 42px rgba(0,0,0,.45);
  }

  .mobile-cta .btn {
    width: 100%;
    padding: .78rem .85rem;
    border-radius: 999px;
  }
}

.mockup-card{
  margin-top: 14px;
}

.mockup-card__button{
  width: 100%;
  border: 1px solid rgba(204, 218, 215, 0.35);
  background: rgba(204, 218, 215, 0.08);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.mockup-card__button:hover{
  transform: translateY(-1px);
  border-color: #CCDAD7;
  background: rgba(204, 218, 215, 0.14);
}

.mockup-card__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(204, 218, 215, 0.16);
  flex: 0 0 auto;
}

.mockup-card__text{
  font-weight: 700;
  line-height: 1.25;
}

.modal__panel--mockup{
  max-width: 780px;
}

.mockup-preview-frame{
  border: 2px solid #CCDAD7;
  border-radius: 22px;
  padding: 10px;
  background: rgba(204, 218, 215, 0.06);
}

.mockup-preview-frame img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

html.modal-open,
body.modal-open{
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

.mockup-carousel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-carousel__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(204, 218, 215, 0.55);
  background: rgba(8, 18, 24, 0.82);
  color: #CCDAD7;

  cursor: pointer;
}

.mockup-carousel__nav svg{
  display: block; /* 🔥 évite les micro décalages */
}

.mockup-carousel__nav:hover{
  background: rgba(204, 218, 215, 0.14);
  border-color: #CCDAD7;
}

.mockup-carousel__nav--prev{
  left: -18px;
}

.mockup-carousel__nav--next{
  right: -18px;
}

.mockup-carousel__caption{
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.mockup-preview-frame img{
  transition: opacity .18s ease;
}

.referral-card--button{
  width:100%;
  text-align:left;
  cursor:pointer;
  appearance:none;
  border: 1px solid color-mix(in srgb, var(--brand, #C9A86A) 30%, transparent);
  background:var(--surface);
  color:inherit;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}

.referral-card--button:hover{
  transform:translateY(-2px);
  border-color:var(--primary);
  background:var(--surface-2);
}

/* Modal IA pragmatique */
.modal__panel--ia-pragmatique{
  max-width:860px;
}

.ia-pragmatique-intro{
  color:var(--muted);
}

.ia-pragmatique-intro p + p{
  margin-top:14px;
}

.ia-pillars{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
  margin-top:28px;
}

.ia-pillar-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.ia-pillar-card__icon{
  width:48px;
  height:48px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.06);
  font-size:1.2rem;
  flex-shrink:0;
}

.ia-pillar-card h4{
  margin:0 0 8px;
  font-size:1rem;
}

.ia-pillar-card p{
  margin:0;
  color:var(--muted);
}

.ia-avoid-card{
  margin-top:28px;
  padding:20px;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}

.ia-avoid-card ul{
  margin:16px 0 0;
  padding-left:18px;
}

.ia-avoid-card li + li{
  margin-top:10px;
}

@media (max-width: 760px){

  .ia-pillars{
    grid-template-columns:1fr;
  }

}

/* Examples concrtes IA */
.modal__panel--ai-cases{
  max-width:880px;
}

.ai-cases-carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
}

.ai-case-card{
  width:100%;
  display:grid;
  grid-template-columns:minmax(180px, 320px) 1fr;
  gap:24px;
  align-items:center;
}

.ai-case-card__media{
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--surface-2);
}

.ai-case-card__media img{
  display:block;
  width:100%;
  height:auto;
}

.ai-case-card__content h4{
  margin:8px 0 12px;
  font-size:1.35rem;
}

.ai-case-card__content p{
  color:var(--muted);
}

.ai-case-card__gain{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
}

.ai-cases-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:18px;
}

.ai-cases-dots button{
  width:9px;
  height:9px;
  border-radius:999px;
  border:0;
  padding:0;
  background:var(--line-strong);
  cursor:pointer;
}

.ai-cases-dots button.is-active{
  background:var(--primary);
}

@media (max-width: 760px){
  .ai-case-card{
    grid-template-columns:1fr;
    gap:16px;
  }

  .ai-cases-carousel{
    gap:10px;
  }
}