:root{
  --bg: #0b1020;
  --surface: #0f1731;
  --card: #101a38;
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.72);
  --muted2: rgba(234,240,255,.55);
  --line: rgba(234,240,255,.12);
  --brand: #3ddc97;       /* vert confiance */
  --brand2: #4aa3ff;      /* bleu */
  --warn: #ffd36a;
  --danger: #ff6b7a;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 24px;
  --max: 1120px;
  --gap: 18px;
  --gap2: 26px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji";
}

/* ========================= RESET & BASE ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 18% 10%,  rgba(74,163,255,.22),  transparent 55%),
    radial-gradient( 900px 500px at 75% 18%,  rgba(61,220,151,.20),  transparent 52%),
    radial-gradient(1000px 700px at 50% 100%, rgba(255,211,106,.10), transparent 60%),
    /* halos "milieu / bas" pour éviter les zones vides */
    radial-gradient( 900px 520px at 12% 55%,  rgba(74,163,255,.14),  transparent 60%),
    radial-gradient( 950px 560px at 82% 72%,  rgba(61,220,151,.12),  transparent 62%),
    var(--bg);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* empêche le scroll horizontal global */
}

body {
  overflow-x: hidden; /* sécurité supplémentaire */
}

a {
  color: inherit;
}

/* ========================= LAYOUT ========================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}


/* ========================= BRAND & LOGO ========================= */

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .6px;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  box-shadow: 0 12px 30px rgba(74,163,255,.18);
  position: relative;
}

.logo:after {
  content: "";
  position: absolute;
  inset: 9px 11px 9px 11px;
  border-radius: 10px;
  background: rgba(11,16,32,.8);
}

/* ========================= NAV ========================= */

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: rgba(234,240,255,.06);
  color: var(--text);
}

/* ========================= BUTTONS ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.06);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(234,240,255,.10);
  border-color: rgba(255,255,255,.18);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  border-color: transparent;
  color: #061223;
  box-shadow: 0 18px 40px rgba(61,220,151,.14);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

/* ========================= PILL ========================= */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(234,240,255,.06);
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(61,220,151,.18);
}

/* ========================= HERO ========================= */

.hero {
  padding: 52px 0 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: stretch;
}

.h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
  margin: 14px 0 12px;
  letter-spacing: -.8px;
}

.sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.05);
  color: var(--muted);
  font-size: 13px;
}

.trust b {
  color: var(--text);
  font-weight: 800;
}

/* ========================= HERO CARD ========================= */

.hero-card {
  background: linear-gradient(180deg, rgba(234,240,255,.06), rgba(234,240,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
  contain: paint;
}

/* tout contenu dans la carte reste dans ses limites */
.hero-card * {
  max-width: 100%;
}

.hero-card:before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(74,163,255,.25), transparent 60%);
  top: -180px;
  right: -160px;
}

/* ========================= PRICE BOX ========================= */

.price-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  font-size: 12px;
  color: #061223;
  background: rgba(61,220,151,.95);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 900;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price .now {
  font-size: 44px;
  font-weight: 950;
  letter-spacing: -1px;
}

.price .old {
  font-size: 16px;
  color: var(--muted2);
  text-decoration: line-through;
}

.small {
  color: var(--muted2);
  font-size: 13px;
}

/* ========================= FEATURES LIST ========================= */

.features {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.04);
  color: var(--muted);
  font-size: 14px;
}

.check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(61,220,151,.18);
  border: 1px solid rgba(61,220,151,.35);
  position: relative;
  margin-top: 1px;
}

.check:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
  left: 4px;
  top: 5px;
}

/* ========================= CTA STACK ========================= */

.cta-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.fine {
  font-size: 12px;
  color: var(--muted2);
  line-height: 1.35;
}

/* ========================= SECTIONS ========================= */

section {
  padding: 34px 0;
  scroll-margin-top: 90px; /* ajuste à 80 / 100 si besoin */
}

.section-title {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -.4px;
}

.section-sub {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 70ch;
}

/* ========================= GRIDS & CARDS ========================= */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

/* empêche les enfants de dépasser leur cellule */
.grid3 > * {
  min-width: 0;
}

.card {
  background: rgba(234,240,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -.2px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* empêche les enfants de dépasser leur cellule */
.split > * {
  min-width: 0;
}

/* ========================= STEPS ========================= */

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.04);
}

.num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(74,163,255,.35), rgba(61,220,151,.25));
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: var(--text);
  flex: 0 0 auto;
}

.step b {
  display: block;
  margin-bottom: 4px;
}

.step span {
  color: var(--muted);
  font-size: 14px;
  display: block;
}

/* ========================= PROOF / QUOTES ========================= */

.proof {
  display: grid;
  gap: 12px;
}

.quote {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.04);
}

.quote .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.10);
}

.stars {
  color: var(--warn);
  font-size: 14px;
  letter-spacing: 1px;
}

.quote p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.quote small {
  color: var(--muted2);
}

/* ========================= FAQ ========================= */

.faq {
  display: grid;
  gap: 12px;
}

details {
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(234,240,255,.04);
  padding: 14px 14px;
}

summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ========================= FOOTER ========================= */

.footer {
  padding: 26px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted2);
  font-size: 12px;
}

.footer .cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(234,240,255,.04);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
}

.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
}

/* ========================= KPI ========================= */

#chiffres {
  background: radial-gradient(900px 400px at 50% 0%, rgba(74,163,255,.12), transparent 70%);
  padding: 60px 0;
}

.kpi {
  background: rgba(234,240,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius2);
  padding: 28px;
}

.kpi-head h2 {
  margin: 0 0 8px;
}

.kpi-head p {
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.kpi-item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform .15s ease, background .2s ease;
}

.kpi-item:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-3px);
}

.kpi-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--brand2), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kpi-label {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 6px;
}

.kpi-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.kpi-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted2);
}

/* ========================= SCROLL REVEAL ========================= */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger > * {
  transition-delay: var(--d, 0ms);
}

/* Variante plus douce (optionnel) */
.reveal.fade-only {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================= ANCRES (TOPBAR STICKY) ========================= */

#acheter {
  scroll-margin-top: 90px;
}

/* ========================= CTA COVER ========================= */

.cta-cover {
  margin: 22px auto 0;
  max-width: 260px;
  width: 100%; /* évite le débordement si le parent est plus étroit */
}

.cta-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}

.cta-cover img:hover {
  transform: translateY(-4px);
}

/* ========================= RESPONSIVE ========================= */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: 1fr !important; /* écrase le style inline repeat(3,1fr) */
  }
  .nav {
    display: none;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding-top: 32px;
  }
  .split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .split > div:first-child {
    text-align: center;
  }
  /* les cartes imbriquées dans un split restent lisibles */
  .split .card p,
  .split .card span {
    text-align: left;
  }
  .grid3 {
    grid-template-columns: 1fr !important; /* écrase le style inline repeat(3,1fr) */
  }
  .cta-stack {
    justify-items: center;
  }
  .btn {
    width: 100%;
  }
  .kpi {
    padding: 20px;
  }
  .card {
    padding: 16px;
    max-width: 100%; /* évite le débordement */
  }
  .hero-card {
    padding: 20px;
    max-width: 100%;
  }
  /* centre la cover sous le texte sur mobile */
  .cta-cover {
    margin: 16px auto 0;
    max-width: 200px;
  }
  .section-sub {
    max-width: 100%;
  }
  body::before {
    background:
      radial-gradient(800px 500px at 50% 0%, rgba(74,163,255,.18), transparent 70%),
      var(--bg);
  }
  /* sécurité overflow */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  img, iframe{ max-width: 100%; }
}




/* ====== Zone PayPal 4x ====== */
.ot-paypal-4x {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;          /* évite le débordement si contenu large */

  margin-top: 10px;
  padding: 10px 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(234,240,255,.05);

  color: rgba(234,240,255,.75);
  font-size: 13px;
}

.ot-paypal-4x img {
  width: 42px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ============================
   BLOC PAIEMENT
   ============================ */

/* ====== Carte produit ====== */
.ot-card-long {
  max-width: 520px;
  width: 100%;
  margin: 40px auto;
  padding: 35px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;

  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(135deg, #2b313a, #1f242b);

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 25px 70px rgba(0,0,0,.50);
  color: rgba(234,240,255,.92);
}

.ot-card-long * {
  min-width: 0;
  max-width: 100%;
}


/* ====== Zone PayPal 4x ====== */
.ot-paypal-4x {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-top: 10px;
  padding: 10px 12px;

  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(234,240,255,.05);

  font-size: 13px;
  color: rgba(234,240,255,.75);
}

.ot-paypal-4x img {
  width: 42px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}


/* ====== Zone boutons PayPal (cadre blanc) ====== */
.ot-payzone {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);

  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Container SDK PayPal */
#paypal-button-container {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Clamp absolu des injections PayPal */
#paypal-button-container > div,
#paypal-button-container iframe,
#paypal-button-container [id^="zoid-"],
#paypal-button-container [class*="zoid"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}


/* ============================
   Dropdown "Autres moyens de paiement"
   ============================ */
.ot-altpay-details {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid #e3e6ea;
  background: #f5f7fa;
  overflow: hidden;
}

.ot-altpay-summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 700;
  list-style: none;
  color: #2b313a;
}

.ot-altpay-summary::-webkit-details-marker {
  display: none;
}

.ot-altpay-content {
  padding: 12px;
  border-top: 1px solid #e3e6ea;
  background: #fff;
}

.ot-altpay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: 100%;
  max-width: 330px;
  margin: 10px auto;
  padding: 12px 15px;

  border-radius: 12px;
  border: 1px solid #e3e6ea;
  background: #fff;
  text-decoration: none;

  font-weight: 800;
  font-size: 15px;
  color: #2b313a;

  transition: transform .15s ease, background .2s ease;
}

.ot-altpay-btn:hover {
  background: #f0f3f7;
  transform: translateY(-2px);
}

.ot-cheque   { border-left: 5px solid #1a73e8; }
.ot-virement { border-left: 5px solid #009688; }
.ot-ria      { border-left: 5px solid #e67e22; }


/* ============================
   Boutons alternatifs (chèque / virement / RIA)
   ============================ */
.ot-altpay-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;

  width: 100%;              /* pleine largeur plutôt que max-width fixe */
  max-width: 330px;
  box-sizing: border-box;
  margin: 10px auto;

  background: #ffffff;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 12px 15px;
  text-decoration: none;

  font-size: 15px;
  font-weight: 800;
  color: #2b313a;

  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

.ot-altpay-btn:hover {
  background: #f0f3f7;
  border-color: #d8dde3;
  transform: translateY(-2px);
}

.ot-altpay-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Couleurs accent gauche */
.ot-cheque   { border-left: 5px solid #1a73e8; }
.ot-virement { border-left: 5px solid #009688; }
.ot-ria      { border-left: 5px solid #e67e22; }

/* ============================
   Utilitaires prix
   ============================ */
.old-price {
  text-decoration: line-through;
  opacity: .65;
  margin-right: 6px;
  font-weight: 600;
}

.small {
  display: block;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* ============================
   RESPONSIVE MOBILE
   ============================ */

/* garde l’anti-débordement, mais sans casser le sticky */
section:has(.ot-card-long),
.ot-section{
  overflow: visible !important;
}

section:has(.ot-card-long){
  overflow: visible !important;
}

.ot-card-long,
.ot-payzone,
#paypal-button-container{
  overflow: hidden;
}

@media (max-width: 480px) {

  .ot-card-long {
    padding: 18px;
    margin: 20px auto;
    border-radius: 14px;
  }

  .ot-payzone {
    padding: 14px;
    border-radius: 14px;
  }

  .ot-altpay-btn {
    max-width: 100%;
    font-size: 14px;
  }

  .ot-paypal-4x {
    font-size: 12px;
  }
}


/* Fix overflow TOPBAR mobile */

.topbar .inner{
  min-width: 0;
}

.brand{ 
  min-width: 0;
}


/* Le bouton CTA ne doit pas forcer la largeur */
.topbar .btn{
  min-width: 0;
  max-width: 100%;
}

/* Mobile : on réduit + on autorise la coupure du texte */
@media (max-width: 480px){
  .topbar .inner{
    gap: 10px;
  }

  .topbar .btn{
    padding: 10px 12px;
    font-size: 14px;
    white-space: normal;     /* important si ton .btn global est nowrap */
    line-height: 1.15;
  }
}

/* ===== Fix overflow CTA stack ===== */

.cta-stack{
  width: 100%;
}

.cta-stack .btn{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;   /* casse le nowrap global */
  text-align: center;
  line-height: 1.2;
}

/* Fix: texte du CTA dans le bloc paiement (loadposition paypal) */
.ot-card-long .btn,
.ot-card-long .btn-primary{
  white-space: normal !important; /* override du nowrap global */
  text-align: center;
  line-height: 1.15;
}

/* Bonus: évite que le prix/éléments inline forcent la largeur */
.ot-card-long .btn .old-price{
  white-space: nowrap;
}

/* Mobile: on réduit un peu si besoin */
@media (max-width: 480px){
  .ot-card-long .btn,
  .ot-card-long .btn-primary{
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* ===== TOPBAR: layout sûr ===== */
.topbar .inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.brand{ display:flex; align-items:center; gap:10px; min-width:0; }
.brand-name{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}


/* ===== Burger (base) ===== */
.nav-burger{ position: relative; }
.nav-burger summary{ list-style:none; cursor:pointer; }
.nav-burger summary::-webkit-details-marker{ display:none; }

.burger-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(234,240,255,.06);
  display:flex;
  align-items:center;
  justify-content:center;
}

.burger-lines{
  width: 18px;
  height: 2px;
  background: rgba(234,240,255,.9);
  position: relative;
  display:block;
}
.burger-lines::before,
.burger-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: rgba(234,240,255,.9);
}
.burger-lines::before{ top: -6px; }
.burger-lines::after{ top: 6px; }

/* Panel */
.burger-panel{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,16,32,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
  display: grid;
  gap: 6px;
  z-index: 50;
}
.burger-panel a{
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(234,240,255,.9);
}
.burger-panel a:hover{
  background: rgba(234,240,255,.06);
}


/* ===== TOPBAR : nav desktop / burger mobile ===== */

/* Desktop */
.topbar .nav{
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-burger{
  display: none;
}

/* Mobile */
@media (max-width: 980px){
  .topbar .nav{
    display: none !important;
  }
  .nav-burger{
    display: block !important;
  }

  .topbar-cta{
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 14px;
  }

  .brand-name{
    max-width: 120px;
  }
}








@media (max-width: 480px){

  /* La marque doit garder de la place */
  .topbar .brand{
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Afficher AMATROT en entier */
  .topbar .brand-name{
    max-width: none !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap;
  }

  /* On empêche le bouton de devenir trop large */
  .topbar-cta{
    flex: 0 0 auto;
    padding: 10px 10px;
    font-size: 13px;
  }

  /* Burger compact */
  .burger-btn{
    width: 42px;
    height: 42px;
  }
}

/* ===== TOPBAR MOBILE FIX FINAL ===== */

@media (max-width: 480px){

  .topbar .inner{
    display:flex;
    align-items:center;
    justify-content: space-between;
  }

  /* IMPORTANT : empêcher le bouton d'être full width */
  .topbar .btn{
    width: auto !important;
  }

  .topbar-cta{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 13px;
  }

  .brand{
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-name{
    white-space: nowrap;
    max-width: none;
  }

  .nav-burger{
    display:block !important;
    flex: 0 0 auto;
  }

}


/* ✅ TOPBAR en 2 lignes sur mobile */
@media (max-width: 480px){

  .topbar .inner{
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand burger"
      "cta   cta";
    gap: 10px;
    align-items: center;
  }

  .topbar .brand{ grid-area: brand; min-width: 0; }
  .topbar .brand-name{
    display: inline !important;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: unset !important;
  }

  .nav-burger{ grid-area: burger; display: block !important; }

  /* CTA en 2e ligne, pleine largeur */
  .topbar-cta{
    grid-area: cta;
    width: 100% !important;
    justify-content: center;
    white-space: nowrap;
  }

}




/* LIMITE LARGEUR CONVERTFORM */
.convertforms,
.convertforms-form,
.cf-form-wrap {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* Masquer le label "Jeton Joomla" */
.com-users-profile__custom.users-profile-custom-joomlatoken{
  display: none !important;
}

/* Masquer complètement le fieldset "Jeton Joomla" (formulaire utilisateur) */
fieldset:has(
  input[name^="jform[joomlatoken]"]
){
  display: none !important;
}


/* =========================
   Logo
   ========================= */
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
}

@media (max-width: 768px){
  .brand-logo{
    height: 30px;
  }
}


/* =========================
   CGV / Mentions légales
   ========================= */

.cgv{
  width: min(980px, calc(100% - 28px));
  margin: 30px auto 60px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a;
}

.cgv__header{
  text-align: center;
  margin-bottom: 18px;
}

.cgv__logo img{
  display: block;
  margin: 0 auto 14px;
  width: min(420px, 90%);
  height: auto;
}

.cgv__title{
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #eaf0ff; /* blanc bleuté */
}

.cgv__lead{
  margin: 0 auto;
  max-width: 75ch;
  color: #475569;
  line-height: 1.65;
  font-size: 15px;
}

.cgv__card{
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,6,23,.08);
  padding: 22px;
}

/* Titres */
.cgv__h2{
  margin: 18px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.cgv__h3{
  margin: 16px 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: #111827;
}

/* Texte */
.cgv__card p{
  margin: 0 0 10px;
  line-height: 1.75;
  color: rgba(15,23,42,.88);
  font-size: 14.5px;
}

/* Liens */
.cgv__link{
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(37,99,235,.28);
}
.cgv__link:hover,
.cgv__link:focus{
  color: #1d4ed8;
  border-bottom-color: rgba(37,99,235,.55);
}

/* Listes */
.cgv__list{
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.cgv__list li{
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
  color: rgba(15,23,42,.85);
  font-size: 14px;
}
.cgv__list li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  opacity: .55;
}

/* Encadrés */
.cgv__notice{
  margin: 14px 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  padding: 14px;
}

.cgv__notice--accent{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.06);
}

.cgv__noticeTitle{
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.cgv__noticeText{
  margin: 0;
  color: rgba(15,23,42,.86);
}

/* Notes */
.cgv__small{
  margin-top: 6px !important;
  font-size: 12.5px !important;
  color: rgba(71,85,105,.95) !important;
}

/* Footer */
.cgv__foot{
  margin: 14px 0 0;
  text-align: center;
  color: rgba(71,85,105,.9);
  font-size: 13px;
}

/* Mobile */
@media (max-width: 520px){
  .cgv__card{ padding: 18px; }
  .cgv__h2{ font-size: 17px; }
}

/* ===== TOPBAR FINAL (sticky fiable) ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(11,16,32,.75);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible; /* important pour sticky + menus */
}

.topbar .inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

/* Force sticky même si un wrapper Joomla met un overflow */
body { overflow-y: visible !important; }
main, #component, #content, .container { overflow: visible !important; }

/* ===== FIX STICKY TOPBAR ===== */
html,
body,
#wrapper,
#all,
#page,
#outer-wrapper,
#wrap,
#main-outer,
#main-inner,
#component,
#content,
#system-message-container,
.container-fluid,
.site-grid,
.offcanvas-container {
  overflow-x: clip;   /* clip coupe l'horizontal sans casser sticky */
  overflow-y: visible !important;
}

/* =========== HCAPTCHA ========== */
/* Petits mobiles (480px et moins) */
@media (max-width: 480px) {
  .cf-captcha-fix {
    width: 304px;
    max-width: none;
    min-height: 74px;
    transform: scale(0.78);
    -webkit-transform: scale(0.78);
    transform-origin: left top;
    -webkit-transform-origin: left top;
    margin-left: -8px;
    margin-bottom: -14px;
  }
}

/* Très petits écrans (360px et moins) */
@media (max-width: 360px) {
  .cf-captcha-fix {
    transform: scale(0.65);
    -webkit-transform: scale(0.65);
    margin-left: -12px;
    margin-bottom: -26px;
  }
}

/* Très très petits écrans (320px et moins) */
@media (max-width: 320px) {
  .cf-captcha-fix {
    transform: scale(0.55);
    -webkit-transform: scale(0.55);
    margin-left: -16px;
    margin-bottom: -36px;
  }
}
