/* =============================================================
   ACS — Landing Page Schengen Comparative (Europax / Globe Traveller)
   Styles principaux
   ============================================================= */

:root{
  --bg:#f7f9fc;
  --white:#ffffff;
  --text:#14213d;
  --muted:#667085;
  --line:#e4eaf2;

  --primary:#EBBD30;
  --primary-hover:#d8aa1f;
  --primary-dark:#0a47aa;
  --soft:#eef4ff;
  --gold:#fff6df;

  --navy:#0d1b35;
  --navy-2:#11264d;
  --navy-3:#0b1730;

  --success:#12805c;
  --danger:#d14343;
  --highlight:#fffbea;

  --shadow:0 10px 30px rgba(20,33,61,.08);
  --shadow-sm:0 4px 12px rgba(20,33,61,.06);
  --container:1120px;
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  padding-bottom:0;
}

a{text-decoration:none;color:inherit}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  background:#fff;
  border-bottom:1px solid var(--line);
}

.topbar-inner{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.brand img{
  display:block;
  width:auto;
  max-width:170px;
  height:auto;
}

.intro{
  padding:54px 0 26px;
  text-align:center;
  background:var(--bg);
}

.intro h1{
  margin:0 0 14px;
  font-size:42px;
  line-height:1.12;
  letter-spacing:-0.02em;
  color:var(--text);
}

.intro p{
  max-width:820px;
  margin:0 auto;
  color:var(--muted);
  font-size:18px;
}

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:18px 26px;
  margin-top:20px;
  font-size:14px;
  color:var(--muted);
}

.hero-meta span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.hero-meta span::before{
  content:"✓";
  color:var(--success);
  font-weight:800;
}

.hero-trustpilot{
  margin:14px auto 0;
  max-width:520px;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:24px;
}

section{padding:28px 0 60px}

/* ====== CARTES PRODUITS — LAYOUT NEUTRE SYMÉTRIQUE ====== */
.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
  align-items:stretch;
  margin-top:10px;
}

.card{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:28px;
  display:flex;
  flex-direction:column;
}

.tag{
  display:inline-flex;
  width:max-content;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  margin-bottom:16px;
  background:var(--soft);
  color:var(--primary-dark);
}

.product-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:10px;
}

.product-head h2{
  margin:0;
  font-size:30px;
  color:var(--text);
}

.price{
  text-align:right;
  white-space:nowrap;
}

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

.price strong{
  font-size:30px;
  color:var(--primary-dark);
}

.price-note{
  display:block;
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  margin-top:2px;
}

.subtitle{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  min-height:72px;
}

.mini-box{
  background:#f8fbff;
  border:1px solid #e7eef8;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:18px;
  min-height:112px;
}

.mini-box strong{
  display:block;
  margin-bottom:6px;
  font-size:15px;
  color:var(--text);
}

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

.list li{
  position:relative;
  padding-left:24px;
  color:#243146;
}

.list li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--success);
  font-weight:800;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:auto;
  justify-content:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 20px;
  border-radius:999px;
  font-weight:700;
  transition:.2s ease;
  cursor:pointer;
  font-size:15px;
  text-align:center;
}

.btn-primary{
  background:var(--primary);
  color:#0B1F26;
  border:1px solid var(--primary);
  box-shadow:none;
}

.btn-primary:hover{
  background:var(--primary-hover);
  border-color:var(--primary-hover);
}

.btn-secondary{
  background:#fff;
  color:var(--text);
  border:1px solid var(--line);
}

.btn-secondary:hover{
  background:#f8fbff;
}

.btn-light{
  background:#fff;
  color:var(--text);
  border:1px solid #fff;
}

.btn-light:hover{
  background:#f3f7fd;
  border-color:#f3f7fd;
}

/* ====== RÉASSURANCE ====== */
.trust-section{padding:0 0 44px}

.trust{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.t{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.trust-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  object-fit:contain;
  margin-top:2px;
}

.t-content{
  font-size:15px;
  font-weight:700;
  color:var(--text);
  line-height:1.35;
}

.t-content span{
  display:block;
  margin-top:4px;
  font-size:14px;
  font-weight:400;
  color:var(--muted);
  line-height:1.45;
}

/* ====== SECTION HEADS ====== */
.section-head{
  text-align:center;
  margin-bottom:28px;
}

.section-head h2{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.15;
  color:var(--text);
}

.section-head p{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  font-size:17px;
}

/* ====== TABLEAU COMPARATIF — OPTIMISÉ ====== */
.compare-wrap{
  background:#fff;
  border-radius:24px;
  box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid var(--line);
  position:relative;
}

/* Indicateur scroll horizontal mobile : gradient fade à droite */
.compare-wrap::after{
  content:"";
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:40px;
  background:linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.95));
  pointer-events:none;
  border-radius:0 24px 24px 0;
  opacity:0;
  transition:opacity .2s ease;
}

/* Quand l'utilisateur a scrollé jusqu'à la fin du tableau
   (classe ajoutée par main.js), le gradient disparaît */
.compare-wrap.scrolled-end::after{
  opacity:0 !important;
}

.scroll-hint{
  display:none;
}

.table-scroll{overflow:auto}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th, td{
  padding:16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:middle;
}

thead th{
  background:#dce7f5;
  color:var(--text);
  font-size:16px;
  padding:18px 16px;
}

thead th:nth-child(2),
thead th:nth-child(3){
  text-align:center;
}

tbody td:nth-child(2),
tbody td:nth-child(3){
  text-align:center;
}

tbody tr:nth-child(even){
  background:#fcfdff;
}

/* Lignes pivot mises en avant */
tbody tr.pivot{
  background:var(--highlight) !important;
}

tbody tr.pivot td:first-child::before{
  content:"★";
  color:#b8860b;
  margin-right:6px;
  font-size:12px;
}

/* Ligne CTA en pied de tableau */
tfoot td{
  background:#dce7f5;
  padding:20px 16px;
  text-align:center;
  border-bottom:none;
}

tfoot td:first-child{
  background:#dce7f5;
}

tfoot .btn{
  min-height:44px;
  padding:0 18px;
  font-size:14px;
  width:100%;
  max-width:220px;
}

.icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  font-size:14px;
  font-weight:800;
  line-height:1;
  flex-shrink:0;
}

.icon.check{
  background:rgba(18,128,92,.12);
  color:var(--success);
}

.icon.cross{
  background:rgba(209,67,67,.12);
  color:var(--danger);
}

.icon-wrap{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  font-weight:600;
  color:#243146;
  font-size:14px;
  line-height:1.2;
}

.cell-value{
  font-weight:700;
  color:var(--text);
}

/* ====== AIDE AU CHOIX — REDESIGN AVEC CTA ====== */
.choices{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.choice{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:24px;
  display:flex;
  flex-direction:column;
}

.choice-number{
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--soft);
  color:var(--primary-dark);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  margin-bottom:12px;
}

.choice h3{
  margin:0 0 8px;
  font-size:20px;
  color:var(--text);
  line-height:1.3;
}

.choice p{
  margin:0 0 16px;
  color:var(--muted);
  flex:1;
}

/* Lien CTA discret dans les cartes "Quelle formule choisir"
   Volontairement léger pour ne pas saturer la page en CTA primaires */
.choice-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--primary-dark);
  font-weight:700;
  font-size:15px;
  padding:4px 0;
  border-bottom:2px solid transparent;
  transition:border-color .15s ease, gap .15s ease;
  width:max-content;
}

.choice-link:hover{
  border-bottom-color:var(--primary-dark);
  gap:10px;
}

.choice-link .arrow{
  display:inline-block;
  transition:transform .15s ease;
}

.choice-link:hover .arrow{
  transform:translateX(2px);
}

/* ====== FAQ ====== */
.faq{
  display:grid;
  gap:14px;
  max-width:900px;
  margin:0 auto;
}

.faq details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  box-shadow:var(--shadow);
}

.faq summary{
  cursor:pointer;
  font-weight:700;
  font-size:18px;
  list-style:none;
  color:var(--text);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.faq summary::-webkit-details-marker{display:none}

.faq summary::after{
  content:"+";
  font-size:24px;
  font-weight:400;
  color:var(--muted);
  transition:transform .2s ease;
}

.faq details[open] summary::after{
  content:"−";
}

.faq p{
  margin:12px 0 0;
  color:var(--muted);
}

/* ====== CTA FINAL ====== */
.bottom-cta{
  background:linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color:#fff;
  border-radius:24px;
  padding:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
  box-shadow:var(--shadow);
}

.bottom-cta-text{flex:1; min-width:280px}

.bottom-cta h2{
  margin:0 0 8px;
  font-size:30px;
  color:#fff;
}

.bottom-cta p{
  margin:0;
  color:rgba(255,255,255,.86);
  max-width:700px;
}

/* ====== FOOTER ====== */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:34px 0 26px;
  margin-top:10px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

.footer-brand{
  font-weight:700;
  color:var(--text);
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-links a{
  color:var(--muted);
  font-size:14px;
}

.footer-note{
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
}

/* ====== STICKY MOBILE CTA ====== */
.sticky-mobile{
  display:none;
}

/* ====== RESPONSIVE ====== */
@media (max-width:980px){
  .cards,
  .choices,
  .trust{
    grid-template-columns:1fr;
  }

  .intro h1{font-size:34px}
  .section-head h2{font-size:28px}

  .mini-box{min-height:0}
  .subtitle{min-height:0}
}

@media (max-width:640px){
  body{padding-bottom:80px}

  .product-head{
    flex-direction:row;
    align-items:flex-start;
  }

  .product-head h2{font-size:26px}

  .price strong{font-size:24px}

  .intro{padding:34px 0 20px}
  .intro h1{font-size:28px}
  .intro p{font-size:16px}

  .hero-meta{
    gap:10px 16px;
    font-size:13px;
  }

  section{padding:20px 0 40px}

  .card{padding:22px}

  .cta-row .btn{
    flex:1;
    min-width:140px;
  }

  /* Masquer les CTA des blocs "Quelle formule choisir" sur mobile
     → redondants avec le sticky mobile en bas d'écran */
  .choices .choice .choice-link{
    display:none;
  }

  .choices .choice p{
    margin-bottom:0;
  }

  .bottom-cta{
    padding:28px 22px;
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }

  .bottom-cta h2{font-size:24px}

  .bottom-cta .cta-row{justify-content:center}

  /* Masquer les CTA du bloc "Prêt à choisir" sur mobile
     → redondants avec le sticky mobile */
  .bottom-cta .cta-row{
    display:none;
  }

  /* Indicateur scroll horizontal sur le tableau comparatif */
  .scroll-hint{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    margin:0 0 12px;
    padding:10px 14px;
    background:#f3f7fd;
    border:1px solid var(--line);
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    color:var(--primary-dark);
  }

  .scroll-hint .arrow{
    display:inline-block;
    animation:scroll-nudge 1.6s ease-in-out infinite;
  }

  @keyframes scroll-nudge{
    0%, 100%{transform:translateX(0)}
    50%{transform:translateX(4px)}
  }

  .compare-wrap::after{
    opacity:1;
  }

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  /* Sticky mobile CTA bar */
  .sticky-mobile{
    display:flex;
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top:1px solid var(--line);
    padding:10px 12px;
    gap:8px;
    z-index:100;
    box-shadow:0 -4px 16px rgba(20,33,61,.1);
  }

  .sticky-mobile .btn{
    flex:1;
    min-height:44px;
    font-size:13px;
    padding:0 10px;
    white-space:nowrap;
  }
}
