@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0057FF;
  --blue-dark: #003FCC;
  --blue-light: #EEF3FF;
  --blue-mid: #C8D9FF;
  --green: #00C58E;
  --green-light: #E6FAF5;
  --orange: #FF6B35;
  --orange-light: #FFF0EB;
  --text: #0D1117;
  --text-2: #4A5568;
  --text-3: #8A95A3;
  --border: #E4E9F0;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,87,255,0.08);
  --shadow-md: 0 8px 32px rgba(0,87,255,0.12);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  color: var(--blue); text-decoration: none; letter-spacing: -0.03em;
}
.nav-logo span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover { background: var(--blue-light); color: var(--blue); }
.nav-links a.active { color: var(--blue); background: var(--blue-light); }
.nav-cta {
  background: var(--blue); color: white !important;
  border-radius: var(--radius-sm); padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: white !important; }
.nav-mobile-toggle { display: none; cursor: pointer; padding: 8px; border: none; background: none; }
.hamburger { display: block; width: 22px; height: 2px; background: var(--text); position: relative; }
.hamburger::before, .hamburger::after {
  content: ''; position: absolute; width: 22px; height: 2px; background: var(--text); left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { bottom: -7px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 0.25rem;
  }
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #EEF3FF 0%, #F7F9FC 50%, #E6FAF5 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--blue);
  margin-bottom: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--text); max-width: 780px; margin: 0 auto 1.25rem;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin: 0 auto 2rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.18s; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--blue); border: 1.5px solid var(--blue-mid); }
.btn-secondary:hover { background: var(--blue-light); border-color: var(--blue); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #00A876; }

/* STATS */
.stats-row {
  display: flex; justify-content: center; gap: 3rem;
  padding: 2.5rem 1.5rem; background: white; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--blue); line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }

/* SECTIONS */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.section-header p { color: var(--text-2); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* OFFER CARDS */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.offer-card {
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: all 0.2s; position: relative;
}
.offer-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-card.top-pick { border-color: var(--blue); }
.offer-badge {
  position: absolute; top: -12px; left: 1.25rem;
  background: var(--blue); color: white;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.offer-badge.green { background: var(--green); }
.offer-badge.orange { background: var(--orange); }
.offer-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.operator-logo {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; color: var(--blue);
  background: var(--blue-light); flex-shrink: 0;
}
.offer-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.offer-sub { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.offer-price { margin-bottom: 1rem; }
.price-main {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--text); line-height: 1;
}
.price-main span { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.price-after { font-size: 0.8rem; color: var(--text-3); margin-top: 4px; }
.offer-features { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.25rem; }
.offer-features li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-2); }
.offer-features li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-light); flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='%2300C58E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* TABLE */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare-table thead th {
  background: var(--bg); padding: 0.85rem 1rem;
  text-align: left; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.compare-table tbody td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:hover { background: var(--blue-light); }
.compare-table .best { font-weight: 700; color: var(--green); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: var(--green-light); color: #007A59; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-orange { background: var(--orange-light); color: #CC4400; }

/* FILTERS */
.filters-bar {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.filter-label { font-size: 0.85rem; font-weight: 600; color: var(--text-2); margin-right: 0.25rem; }
.filter-btn {
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--border);
  background: white; font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; color: var(--text-2); font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.filter-select {
  padding: 6px 32px 6px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 0.85rem; cursor: pointer; appearance: none; color: var(--text); font-family: var(--font-body);
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 1.1rem 1.25rem;
  background: white; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { background: var(--blue-light); }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; font-weight: 300; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* TRUST BLOCK */
.trust-block {
  background: var(--blue-light); border: 1px solid var(--blue-mid);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  display: flex; align-items: flex-start; gap: 1rem; max-width: 800px; margin: 0 auto 2rem;
}
.trust-icon { font-size: 1.5rem; flex-shrink: 0; }
.trust-block h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--blue-dark); }
.trust-block p { font-size: 0.875rem; color: var(--text-2); }

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px; background: var(--blue-light); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.6; }

/* OPERATOR CARDS */
.operators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.operator-card {
  background: white; border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.operator-card:hover { border-color: var(--blue-mid); box-shadow: var(--shadow); transform: translateY(-2px); }
.operator-logo-lg {
  width: 64px; height: 64px; border-radius: var(--radius); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: white;
}
.op-orange { background: #FF7900; }
.op-free { background: #CD0079; }
.op-bouygues { background: #005CB9; }
.op-sfr { background: #DA1B1B; }
.operator-card h3 { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.25rem; }
.operator-card p { font-size: 0.8rem; color: var(--text-3); }

/* BREADCRUMB */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--text-3); padding: 1.25rem 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* PAGE HEADER */
.page-header {
  background: linear-gradient(135deg, #EEF3FF 0%, #F7F9FC 100%);
  padding: 3rem 1.5rem 2.5rem; border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.page-header p { color: var(--text-2); font-size: 1rem; max-width: 600px; }
.update-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); border: 1px solid #B8F0E0;
  border-radius: 999px; padding: 4px 12px;
  font-size: 0.75rem; font-weight: 600; color: #007A59; margin-bottom: 1rem;
}

/* FOOTER */
footer {
  background: var(--text); color: #A0ADB8;
  padding: 3rem 1.5rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid #2A3540;
  margin-bottom: 1.5rem;
}
.footer-brand .logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: white; text-decoration: none; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #5A6878; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.875rem; color: #A0ADB8; text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
.footer-disclaimer { font-size: 0.75rem; color: #5A6878; margin-top: 1rem; line-height: 1.6; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-row { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* TABLE SCROLL */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* STICKY CTA MOBILE */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: white; border-top: 1px solid var(--border); padding: 1rem 1.5rem;
}
@media (max-width: 640px) { .sticky-cta { display: block; } }

/* EMAIL CAPTURE */
.email-capture {
  background: linear-gradient(135deg, var(--blue) 0%, #0040CC 100%);
  border-radius: var(--radius); padding: 2.5rem; color: white; text-align: center;
}
.email-capture h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.email-capture p { opacity: 0.85; margin-bottom: 1.5rem; }
.email-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.email-input {
  flex: 1; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  border: none; font-size: 0.95rem; font-family: var(--font-body);
}
.email-input:focus { outline: 2px solid rgba(255,255,255,0.5); }

/* TOP3 RIBBON */
.top3-ribbon {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.top3-ribbon::before, .top3-ribbon::after {
  content: ''; flex: 1; height: 1px; background: var(--blue-mid);
}

/* RANK BADGE */
.rank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.rank-1 { background: #FFD700; color: #7A5800; }
.rank-2 { background: #C0C9D6; color: #3A4A5A; }
.rank-3 { background: #D4A574; color: #6B3A1A; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(90deg, var(--orange-light) 0%, #FFF8F5 100%);
  border: 1px solid #FFD4BE; border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.promo-pill {
  background: var(--orange); color: white;
  padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0; white-space: nowrap;
}

/* SCORE BAR */
.score-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.score-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 0.6s ease; }
