/* Styles propres à la page de comparaison. Le reste (topbar, header, boutons,
   footer, domain-box, scaleup, breadcrumb, page-hero...) est déjà couvert
   par site.css. */

section{ padding:72px 0; }
@media (max-width:720px){ section{ padding:52px 0; } }

.stat-strip{
  margin-top:32px;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:1px;
  background:rgba(255,255,255,0.14);
  border-radius:var(--radius-m);
  overflow:hidden;
}
.stat-strip div{
  background:rgba(255,255,255,0.06);
  padding:16px 14px;
  text-align:center;
}
.stat-strip .stat-val{ display:block; font-family:var(--font-display); font-weight:700; color:#fff; font-size:1.15rem; }
.stat-strip .stat-cap{ font-size:0.74rem; color:#aecdda; }
@media (max-width:820px){ .stat-strip{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:520px){ .stat-strip{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Comparison table ---------- */
.compare-scroll-wrap{ position:relative; }
.compare-scroll{
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  background:var(--surface);
}
.scroll-hint{
  display:none;
  text-align:center;
  font-size:0.78rem;
  color:var(--ink-soft);
  margin-top:10px;
}
@media (max-width:860px){
  /* Dégradé sur le bord droit + texte d'indice : le tableau (min-width:760px)
     déborde sous ce seuil, donc défile horizontalement. */
  .compare-scroll-wrap::after{
    content:'';
    position:absolute;
    top:0; right:0; bottom:0;
    width:32px;
    background:linear-gradient(to right, transparent, rgba(10,34,51,0.14));
    border-radius:0 var(--radius-m) var(--radius-m) 0;
    pointer-events:none;
  }
  .scroll-hint{ display:block; }
}
table.compare{
  border-collapse:collapse;
  width:100%;
  min-width:760px;
}
table.compare thead th{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:18px 16px 16px;
  text-align:center;
  vertical-align:top;
}
table.compare thead th:first-child{ text-align:left; position:sticky; left:0; z-index:4; }
table.compare thead th.featured{ background:#eef6fa; }
.th-plan-name{ font-family:var(--font-display); font-size:1.05rem; color:var(--brand-deeper); font-weight:700; }
.th-tag{ display:inline-block; background:var(--gold); color:var(--brand-deeper); font-size:0.68rem; font-weight:700; padding:2px 8px; border-radius:999px; margin-top:6px; }
.th-price{ font-family:var(--font-display); font-size:1.3rem; font-weight:700; color:var(--brand-deeper); margin-top:10px; }
.th-price-cur{ font-size:0.72rem; color:var(--ink-soft); font-weight:500; }
.th-price-per{ font-size:0.72rem; color:var(--ink-soft); margin-top:2px; }
.th-cta{ margin-top:10px; }
.th-cta a{ display:inline-block; font-size:0.82rem; font-weight:600; padding:8px 14px; border-radius:var(--radius-s); background:var(--brand-deeper); color:#fff; }
table.compare thead th.featured .th-cta a{ background:var(--gold); color:var(--brand-deeper); }

table.compare tbody td{
  padding:12px 16px;
  text-align:center;
  font-size:0.9rem;
  color:var(--ink);
  border-bottom:1px solid var(--line-soft);
  white-space:nowrap;
}
table.compare tbody td:first-child{
  text-align:left;
  position:sticky; left:0; z-index:1;
  background:var(--surface);
  white-space:normal;
  max-width:280px;
  font-weight:500;
}
table.compare tbody tr:nth-child(even) td{ background:#fafcfd; }
table.compare tbody tr:nth-child(even) td:first-child{ background:#fafcfd; }
table.compare tbody td.feat-col{ background:#f3f9fc; }
table.compare tbody tr:nth-child(even) td.feat-col{ background:#eef6fa; }

/* Ces règles doivent rester après le bloc nth-child ci-dessus : même
   spécificité, donc c'est l'ordre qui décide (sinon les lignes de titre
   paires se feraient écraser par le fond alterné). */
table.compare tbody tr.cat-spacer td,
table.compare tbody tr.cat-spacer td:first-child{
  padding:0;
  height:14px;
  border:none;
  background:transparent;
}
table.compare tbody tr.cat-row td,
table.compare tbody tr.cat-row td:first-child{
  background:var(--brand);
  color:#fff;
  font-weight:700;
  font-size:0.78rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  padding:13px 16px;
  border-bottom:1px solid var(--line);
}
.cat-row-label{
  position:sticky;
  left:16px;
}

svg.ck{ width:18px; height:18px; color:var(--brand); margin:0 auto; }
.upsell{ font-size:0.82rem; color:var(--ink-soft); }
.upsell a{ color:var(--brand); text-decoration:underline; }
.table-legend{ margin-top:14px; font-size:0.82rem; color:var(--ink-soft); display:flex; align-items:center; gap:8px; }
.table-legend svg{ width:15px; height:15px; color:var(--brand); }

/* ---------- Locations ---------- */
.loc-grid{ display:grid; grid-template-columns:1fr 2fr; gap:32px; align-items:start; }
.loc-primary{
  background:var(--brand-deeper);
  color:#fff;
  border-radius:var(--radius-m);
  padding:28px;
}
.loc-primary .tag{ font-size:0.75rem; color:var(--gold); font-weight:700; text-transform:none; }
.loc-primary h3{ color:#fff; font-size:1.5rem; margin-top:8px; }
.loc-primary p{ color:#cfe0ea; margin-top:10px; font-size:0.92rem; }
.loc-region + .loc-region{ margin-top:22px; }
.loc-region h4{ font-size:0.85rem; color:var(--ink-soft); font-weight:600; margin-bottom:10px; }
.loc-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.loc-chip{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-s);
  padding:9px 14px;
  font-size:0.88rem;
  color:var(--ink);
  display:flex; align-items:center; gap:6px;
}
.loc-chip svg{ width:14px; height:14px; color:var(--brand); }
.loc-note{ margin-top:16px; font-size:0.82rem; color:var(--ink-soft); }
@media (max-width:860px){ .loc-grid{ grid-template-columns:1fr; } }

/* ---------- Tiny storage upgrade ---------- */
.tiny-card{
  max-width:560px;
  margin:0 auto;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-m);
  padding:32px;
  text-align:center;
}
.tiny-card h3{ font-size:1.3rem; }
.tiny-card p.desc{ margin-top:8px; font-size:0.95rem; }
.tiny-card .storage-stepper{ display:flex; gap:6px; margin:22px 0 18px; }
.tiny-card .storage-stepper button{
  flex:1; border:1px solid var(--line); background:var(--paper); border-radius:var(--radius-s);
  padding:9px 4px; font-size:0.85rem; font-weight:600; color:var(--ink-soft);
}
.tiny-card .storage-stepper button.active{ background:var(--gold); border-color:var(--gold); color:var(--brand-deeper); }
.tiny-card .price-line{ display:flex; justify-content:center; align-items:baseline; gap:6px; margin:0; }
.tiny-card .price-num{ font-family:var(--font-display); font-size:2rem; font-weight:700; color:var(--brand-deeper); }
.tiny-card .price-cur{ font-size:0.85rem; color:var(--ink-soft); }
.tiny-card .price-per{ font-size:0.85rem; color:var(--ink-soft); margin:4px 0 22px; }

.tiny-card + .no-renewal-hike{
  max-width:560px; margin-left:auto; margin-right:auto;
}

/* ---------- Included recap ---------- */
.included-strip{ display:flex; flex-wrap:wrap; gap:12px 26px; }
.included-strip span{ display:flex; align-items:center; gap:8px; font-size:0.92rem; color:var(--ink); }
.included-strip svg{ width:17px; height:17px; color:var(--brand); flex:none; }

/* Cette page utilise un fond "surface" (blanc) pour le bloc scale-up,
   plutôt que le fond "paper" par défaut de la page d'accueil. */
.scaleup.on-surface{ background:var(--surface); }
