/* =========================================================
   /css/ui.css (global UI) — refactor
   Composants partagés : wrap/section, boutons, hero, glass, cards,
   steps, FAQ, CTA. Dépend de /css/theme.css + /css/main.css.
   ========================================================= */

/* =========================================================
   Global button (compat) — garde .btn-sup-spe si tu l’utilises
   ========================================================= */
.btn-sup-spe {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 14px;

  background: var(--accent-mid);
  border: 1px solid rgba(var(--accent), 0.30);
  color: color-mix(in srgb, var(--text) 92%, transparent);

  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn-sup-spe:hover {
  transform: translateY(-1px);
  background: rgba(var(--accent), 0.30);
  border-color: rgba(var(--accent), 0.36);
}

.btn-sup-spe:active { transform: translateY(0); }

/* Utilities */
.no-bullets{
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* a11y */
:focus-visible{
  outline: 2px solid rgba(var(--accent),0.65);
  outline-offset: 3px;
  border-radius: 12px;
}

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


/* ===== Burger ===== */
.burger{
  display: none;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span{
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--text) 75%, transparent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.burger span:nth-child(1){ transform: translateY(8px); }
.burger span:nth-child(2){ transform: translateY(0); }
.burger span:nth-child(3){ transform: translateY(-8px); }

.burger.open span:nth-child(1){ transform: rotate(135deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: rotate(-135deg); }

/* ===== Mobile nav ===== */
@media (max-width: 767px){

  .burger{ display: block; }

  .navbar-links{
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    width: min(320px, 86vw);

    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;

    background: color-mix(in srgb, var(--ink-1) 92%, transparent);
    border-right: 1px solid var(--border-1);

    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 1000;
  }

  .navbar-links.open{
    transform: translateX(0);
  }

  .navbar-links a{
    padding: 10px 8px;
    border-radius: 10px;
  }

  .shadowingNav{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
  }

  .shadowingNav.active{
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Header layout ===== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--ink-1) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
}

.navbar-container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.navbar-logo{ display: inline-flex; align-items: center; }
.logo-img{ height: 40px; width: auto; }

/* Links (desktop) */
.navbar-links{
  display: flex;
  list-style: none;
  gap: 12px;
  align-items: center;
}

.navbar-link{
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 560;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.navbar-link:hover{
  background: var(--surface-2);
  color: var(--text);
}

/* CTA "Offres" */
.navbar-link--cta{
  color: color-mix(in srgb, var(--text) 92%, transparent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.navbar-link--cta:hover{
  background: rgba(var(--accent), 0.20);
  border-color: rgba(var(--accent), 0.28);
}

/* Active page */
.navbar-link.is-active{
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-3);
}

/* ===== Burger ===== */
.burger{
  display: none;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span{
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--text) 75%, transparent);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.burger span:nth-child(1){ transform: translateY(8px); }
.burger span:nth-child(2){ transform: translateY(0); }
.burger span:nth-child(3){ transform: translateY(-8px); }
.burger.open span:nth-child(1){ transform: rotate(135deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: rotate(-135deg); }

/* Overlay */
.shadowingNav{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 900;
}
.shadowingNav.active{
  opacity: 1;
  pointer-events: auto;
}

/* ===== Mobile drawer ===== */
@media (max-width: 767px){

  /* burger visible */
  .burger{ display: inline-flex; }

  /* keep logo smaller */
  .logo-img{ height: 28px; }

  /* drawer */
  .navbar-links{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(340px, 88vw);

    padding: 76px 14px 16px 14px; /* space for navbar height */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;

    /* LESS transparent + themed */
    background:
      radial-gradient(700px 340px at 20% 0%, rgba(var(--accent),0.18), transparent 60%),
      linear-gradient(180deg, var(--bg-0), var(--bg-1));
    border-right: 1px solid var(--border-1);

    transform: translateX(-105%);
    transition: transform 240ms ease;
    z-index: 950;
  }

  .navbar-links.open{
    transform: translateX(0);
  }

  .navbar-link{
    width: 100%;
    padding: 12px 10px;
    border-radius: 14px;
    background: var(--surface-1);
    border: 1px solid var(--border-2);
    color: color-mix(in srgb, var(--text) 90%, transparent);
  }
  .navbar-link:hover{
    background: var(--surface-2);
    border-color: var(--border-5);
  }

  .navbar-link--cta{
    background: var(--accent-soft);
    border-color: var(--accent-border);
  }

  /* active still visible */
  .navbar-link.is-active{
    background: var(--surface-2);
    border-color: var(--border-5);
  }
}

/* Navbar au-dessus du drawer */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1100; /* supérieur au drawer */
}

/* Le burger doit rester cliquable */
.burger{
  position: relative;
  z-index: 1200; /* au-dessus de tout */
}

/* Le logo aussi (optionnel) */
.navbar-logo{
  position: relative;
  z-index: 1200;
}

/* Drawer en dessous du burger */
@media (max-width: 767px){
  .navbar-links{
    z-index: 1150; /* < burger (1200), > overlay (900) */
    top: 0;
    padding-top: 76px; /* laisse la place sous la navbar/burger */
  }
}

@media (max-width: 767px){
  .navbar-links{
    top: 64px;                 /* sous la navbar */
    height: calc(100vh - 64px);
    padding-top: 14px;         /* plus besoin de 76px */
  }
}

/* =========================================================
   Shared layout primitives (site-wide)
   (Kept here to avoid duplication across index/offres/methode)
   Depends on theme.css for all colors.
   ========================================================= */

.wrap{
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section{ padding: 46px 0; }
.section--thin{ padding: 18px 0 46px; }

.section-head{
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.section-head h1,
.section-head h2{ letter-spacing: -0.02em; }

.muted{
  color: var(--muted);
  line-height: 1.55;
}

.inline-link{
  color: color-mix(in srgb, rgba(var(--accent), 0.95) 70%, var(--text));
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent), 0.35);
  text-underline-offset: 3px;
}

/* Soft full-width band used on index/methode/offres */
.section--soft{
  background: color-mix(in srgb, var(--surface-0) 60%, transparent);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}

/* Buttons */
/* Buttons (site-wide) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px; /* Légèrement plus haut pour un aspect plus premium */
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 650;
  border: 1px solid var(--border-3);
  background: var(--surface-2);
  text-decoration: none;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  transition: all 200ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--surface-3);
  /* Une très légère touche bleutée sur la bordure au survol des boutons classiques */
  border-color: color-mix(in srgb, #5AB0FF 30%, var(--border-5)); 
  color: var(--text);
}

.btn:active { 
  transform: translateY(0); 
}

/* Le bouton principal (calqué sur le style actif de la navbar) */
/* Le bouton principal (calqué sur le style actif de la navbar) */
.btn-primary {
  color: #ffffff;
  /* On utilise la variable --accent avec une légère opacité pour le fond */
  background: rgba(var(--accent), 0.15);
  border: 1px solid transparent; 
  
  /* L'effet néon : bordure intérieure très nette + halo extérieur diffus */
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent), 0.6),
    0 4px 20px rgba(var(--accent), 0.25);
    
  /* Petite astuce bonus : un léger éclat sur le texte lui-même */
  text-shadow: 0 0 8px rgba(var(--accent), 0.3);
}

.btn-primary:hover {
  background: rgba(var(--accent), 0.25);
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent), 0.9),
    0 6px 28px rgba(var(--accent), 0.45); /* Le halo s'intensifie fortement */
}

/* On ajuste aussi le bouton soft pour qu'il suive la même logique lumineuse */
.btn-soft {
  background: rgba(var(--accent), 0.08);
  border-color: rgba(var(--accent), 0.25);
  color: #ffffff;
}

.btn-soft:hover {
  background: rgba(var(--accent), 0.15);
  border-color: rgba(var(--accent), 0.45);
}


/* Full-width strip (optional band inside sections) */
.strip{
  padding: 14px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: transparent;
}
.strip-inner{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.strip-item{
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
}
.strip-k{ color: var(--muted2); font-size: 0.86rem; margin-bottom: 3px; }
.strip-v{ color: color-mix(in srgb, var(--text) 88%, transparent); font-size: 0.98rem; }

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

/* FAQ / accordion (shared) */
.faq{ display:grid; gap: 10px; }

details{
  border: 1px solid var(--border-2);
  background: var(--surface-0);
  border-radius: var(--radius);
  padding: 10px 12px;
}
summary{
  cursor:pointer;
  font-weight: 650;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
details p{
  margin-top: 10px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  line-height: 1.55;
}

/* “New section” FAQ break */
.section--faq{
  padding: 54px 0 64px;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background:
    radial-gradient(900px 420px at 82% 0%, rgba(var(--secondary),0.14), transparent 70%),
    radial-gradient(900px 420px at 18% 20%, rgba(var(--accent),0.12), transparent 72%),
    transparent;
  overflow: hidden;
  position: relative;
}
.section--faq::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent),0.35), transparent);
  pointer-events:none;
}

.faq-glass{
  border-radius: calc(var(--radius2) + 6px);
  border: 1px solid var(--border-3);
  background: color-mix(in srgb, var(--surface-1) 70%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.faq-glass .section-head{ margin-bottom: 14px; }
.faq-glass .section-head h2{ margin: 0; }

/* Shared final CTA panel */
.final-cta{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--border-3);
  background:
    radial-gradient(700px 320px at 18% 0%, rgba(var(--accent),0.16), transparent 62%),
    radial-gradient(680px 320px at 86% 18%, rgba(var(--secondary),0.12), transparent 65%),
    var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.final-title{
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.final-sub{
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}
.final-actions{ display:flex; gap: 10px; flex-wrap: wrap; }


/* Helpers */
.muted{ color: var(--muted); line-height:1.5; }
.micro{ color: var(--muted2); font-size: 0.92rem; line-height:1.5; }
.inline-link{
  color: color-mix(in srgb, rgba(var(--accent), 0.95) 70%, var(--text));
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent), 0.35);
  text-underline-offset: 3px;
}
.inline-link:hover{ text-decoration-color: rgba(var(--accent),0.55); }

/* Sections */
.section{ padding: 28px 0; }
.section--thin{ padding: 18px 0 46px; }
.section--soft{
  padding: 40px 0;
  background: color-mix(in srgb, var(--ink-0) 40%, transparent);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.section-head{ display:grid; gap:8px; margin-bottom:16px; }
.section-head h2{ font-size: 1.55rem; letter-spacing:-0.02em; }
.section-head p{ margin:0; }

/* Buttons (site-wide) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 750;
  border: 1px solid var(--border-3);
  background: var(--surface-2);
  text-decoration: none;
  color: color-mix(in srgb, var(--text) 92%, transparent);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: var(--surface-3);
  border-color: var(--border-5);
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: var(--accent-mid);
  border-color: var(--accent-border);
}
.btn-primary:hover{
  background: rgba(var(--accent), 0.30);
  border-color: rgba(var(--accent), 0.36);
}
.btn-ghost{ background: transparent; }
.btn-soft{
  background: var(--accent-soft);
  border-color: var(--accent-border);
}
.btn-soft:hover{
  background: rgba(var(--accent), 0.22);
  border-color: rgba(var(--accent), 0.30);
  box-shadow: 0 0 0 1px rgba(var(--accent),0.10);
}

/* Hero (grid) */
.hero{ padding: 58px 0 24px 0; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/*hero-notes (utilisé sur index) */
.hero-notes{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.note{
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.note-k{ color: var(--muted2); font-size: 0.86rem; margin-bottom: 4px; }
.note-v{ color: color-mix(in srgb, var(--text) 88%, transparent); font-size: 0.98rem; }



/* Hero (inner) — utilisé sur offres */
.hero-inner{
  display:grid;
  grid-template-columns: 0.55fr 0.45fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.hero h1{
  font-size: 2.65rem;
  line-height: 1.02;
  margin-bottom: 14px;
  letter-spacing:-0.03em;
}
@media (max-width: 520px){
  .hero h1{ font-size: 2.05rem; }
}

.accent{
  color: color-mix(in srgb, rgba(var(--accent), 0.95) 70%, var(--text));
}
.lead{
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
.hero-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center; /* ← pour que tout type de bouton soit bien aligné (secondaire, ou ghost (pas de btn)) */
}

}

.hero-card{
  border-radius: var(--radius2);
  border: 1px solid var(--border-3);
  background:
    radial-gradient(520px 260px at 20% 0%, rgba(var(--accent),0.18), transparent 60%),
    var(--surface-1);
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
}
.hero-card-inner{ padding: 22px 24px; display:grid; gap:14px; }
.hero-stat{
  padding: 12px;
  border-radius: 16px;
  background: var(--ink-0);
  border: 1px solid var(--border-2);
}
.hero-stat-k{ color: var(--muted2); font-size:0.88rem; margin-bottom:4px; }
.hero-stat-v{ font-size:1.02rem; }


/* Glass card */
.glass{
  border-radius: var(--radius2);
  border: 1px solid var(--border-3);
  background:
    radial-gradient(520px 280px at 20% 0%, rgba(var(--accent),0.18), transparent 60%),
    var(--surface-1);
  box-shadow: var(--shadow2);
  overflow: hidden;
  position: relative;
}
.glass::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(var(--accent),0.18), transparent 55%, var(--surface-0));
  opacity: 0.75;
  pointer-events: none;
}
.glass-head{
  position: relative;
  padding: 14px 14px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-2);
}
.glass-dot{
  width: 10px;
  height: 10px;
  border-radius: 6px;
  background: rgba(var(--accent),0.75);
  box-shadow: 0 0 0 4px rgba(var(--accent),0.12);
}
.glass-title{
  font-weight: 750;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.glass-list{
  position: relative;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
}
.glass-item{
  border: 1px solid var(--border-2);
  background: var(--ink-0);
  border-radius: 16px;
  padding: 10px 12px;
}
.glass-label{
  font-size: 0.88rem;
  color: var(--muted2);
  margin-bottom: 4px;
}
.glass-text{
  color: color-mix(in srgb, var(--text) 82%, transparent);
  line-height: 1.45;
}
.glass-footer{
  position: relative;
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pills{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.pill{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: color-mix(in srgb, var(--text) 82%, transparent);
    backdrop-filter: blur(8px);
}

/* Cards (generic) */
.card{
  border-radius: var(--radius2);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 16px 16px;
}
.card h3{ font-size: 1.12rem; line-height: 1.25; letter-spacing:-0.02em; }
.card p{ color: var(--muted); line-height: 1.6; }

/* Card block */
.card{
  border-radius: var(--radius2);
  border: 1px solid var(--border-3);
  background:
    radial-gradient(520px 280px at 20% 0%, rgba(var(--accent),0.18), transparent 60%),
    var(--surface-1);
  box-shadow: var(--shadow2);
  overflow: hidden;
  position: relative;
}
.card::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(var(--accent),0.18), transparent 55%, var(--surface-0));
  opacity: 0.75;
  pointer-events: none;
}
.card-top{
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 12px 16px;
  border-bottom: 1px solid var(--border-2);
}
.card-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border-4);
  background: var(--ink-0);
  position: relative;
  overflow: hidden;
}
.card-icon::before{
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(var(--accent),0.25), transparent 60%);
  opacity: 0.9;
}
.card-icon .glyph{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
}
.card-icon .glyph::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(231,238,248,0.65);
  box-shadow: 0 0 0 3px rgba(var(--accent),0.10);
}
.card-icon .glyph::after{
  content: "";
  position: absolute;
  right: -1px;
  bottom: 3px;
  width: 8px;
  height: 2px;
  background: rgba(231,238,248,0.65);
  transform: rotate(40deg);
  border-radius: 2px;
}

.card-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-sub{ color: var(--muted2); font-size: 0.92rem; margin-top: 2px; }

.card-body{
  position: relative;
  padding: 14px 16px 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}
.card-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mini{
  margin-top: 12px;
  color: var(--muted2);
  font-size: 0.92rem;
  line-height: 1.5;
}


/* Steps (generic) */
.steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}
.step{
  border-radius: var(--radius2);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 16px 16px;
}
.step-n{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--ink-0);
  color: color-mix(in srgb, var(--text) 86%, transparent);
  font-weight: 750;
  margin-bottom: 10px;
}
.step h3{ font-size: 1.12rem; margin-bottom: 8px; }
.step p{ color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq{ display:grid; gap:10px; }
.faq details{
  border-radius: var(--radius2);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 14px;
}
.faq summary{ cursor: pointer; font-weight: 750; }
.faq p{ margin-top: 10px; color: var(--muted); line-height: 1.55; }

/* Final CTA */
.final-cta{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  box-shadow: var(--shadow2);
  padding: 16px;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.final-title{ font-weight: 750; }
.final-sub{ color: var(--muted); margin-top: 4px; }
.final-actions{ display:flex; gap: 10px; flex-wrap: wrap; }


/* cta-line , cta-hint (utile pour index) */
.cta-line{
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-hint{
  color: var(--muted2);
  font-size: 0.92rem;
}

/* 2-col section */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.bullets{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.bullet{
  border: 1px solid var(--border-2);
  background: var(--surface-1);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: color-mix(in srgb, var(--text) 84%, transparent);
}


/* Pour faire ressortie boxSuccess */
body.booking-success .hero,
body.booking-success .section--faq {
  opacity: 0.35;
  pointer-events: none;
}


/* =========================================================
   SUCCESS CHECK — version finale stable
   ========================================================= */

.hero-success-title{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

/* Pastille */
.hero-success-icon{
  width: 40px;              /* ← plus grosse comme demandé */
  height: 40px;
  flex: 0 0 40px;

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

  border-radius: 999px;
  background: rgba(var(--accent), 0.18);
  border: 1px solid rgba(var(--accent), 0.28);

  line-height: 1;           /* empêche toute ovalisation */
}

/* CHECK — FORCÉ (plus de currentColor) */
.hero-success-icon svg{
  width: 20px;
  height: 20px;
  display: block;

  stroke: #ffffff !important;  /* ← 🔥 clé du problème */
  fill: none !important;
  stroke-width: 3;
}

/* CONFIRM : encore un poil plus discret si besoin */
.hero-left .hero-success-icon{
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.hero-left .hero-success-icon svg{
  width: 18px;
  height: 18px;
}

/************************************************/


/* On masque l'input natif moche tout en gardant le clic fonctionnel */
.file-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}


/* Texte "Aucun fichier sélectionné" */
.file-upload .cc-hint {
  font-size: 0.9rem;
  color: var(--cp-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* Style du bouton spécifique pour l'upload */
.btn-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important; /* Force le fond blanc */
  color: #1a1a1a !important;    /* Force un texte noir très lisible */
  border: 1px solid #d1d5db;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.0rem;
  font-weight: 750;             /* Texte plus gras pour la lisibilité */
  transition: all 0.15s ease;
  white-space: nowrap;
  opacity: 1 !important;        /* Supprime toute transparence */
}
.btn-upload:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

/* On s'assure que la coque grise est bien alignée */
.file-upload {
    display: flex;
    flex-wrap:wrap;
  align-items: center;
  gap: 12px;
  width:100%;
  box-sizing:border-box;
  padding: 8px 12px;
  background: color-mix(in srgb, var(--surface-1) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--border-2) 70%, transparent);
  border-radius: 12px;
  min-height: 48px;
}


/* =========================================================
   SUCCESS CARD FACTORISÉE (Réservation, Copies, Forfaits)
   ========================================================= */
.cc-success {
  max-width: 900px; /* Élargi pour accueillir les deux colonnes */
  margin: 60px auto; 
  padding: 48px 40px;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: successPop 0.4s ease-out;
}

.cc-success::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--accent), 0.8), rgba(var(--secondary), 0.8));
}

.cc-success .hero-success-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  background: #22c55e;
  border: none;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.cc-success .hero-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff !important; 
  stroke-width: 2.5;
}

/* Le Layout en 2 colonnes */
.success-layout {
  display: flex;
  gap: 64px;
  align-items: center;
  text-align: left;
}

.success-col-left {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.success-col-right {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--border-3);
  padding-left: 64px;
}

/* Adaptation mobile parfaite */
@media (max-width: 850px) {
  .cc-success { padding: 32px 20px; margin: 40px 16px; }
  .success-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }
  .success-col-left { width: 100%; }
  .success-col-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border-3);
    padding-top: 40px;
  }
}

@keyframes successPop {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Case à cocher personnalisée (CGV)
   ========================================================= */
.cp-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0 24px 0;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--cp-text);
  line-height: 1.5;
}

.cp-checkbox-text {
  opacity: 0.9;
}

/* On masque le style natif du navigateur */
.cp-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0px 0 0 0; /* Aligne visuellement la case avec la 1ère ligne du texte */
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--cp-surface) 96%, transparent);
  border: 1px solid color-mix(in srgb, var(--cp-border) 70%, transparent);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Survol de la zone */
.cp-checkbox-label:hover .cp-checkbox-input {
  border-color: var(--cp-accent-border);
  background: color-mix(in srgb, var(--cp-surface) 92%, transparent);
}

/* État COCHÉ */
.cp-checkbox-input:checked {
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  box-shadow: 0 4px 12px rgba(var(--accent), 0.25);
}

/* Dessin de la coche blanche en SVG (quand c'est coché) */
.cp-checkbox-input:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 65%;
  background-position: center;
  background-repeat: no-repeat;
  animation: checkPop 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Focus au clavier (Accessibilité) */
.cp-checkbox-input:focus-visible {
  outline: 2px solid var(--cp-accent-focus);
  outline-offset: 2px;
}

/* Petite animation de la coche pour le côté premium */
@keyframes checkPop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================================================== */
/* Adaptation du bouton de succès */
.success-actions {
  margin-top: 10px;
}

@media (max-width: 850px) {
  .success-actions .btn {
    width: 100%; /* Le bouton s'étire sur toute la largeur sur mobile */
    justify-content: center;
  }
}
