@font-face {
  font-family: 'Starborn';
  src: url('../fonts/Super%20Kidpop.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: ABC Favorit, Avenir, Montserrat, Corbel, URW Gothic, source-sans-pro, sans-serif;
  background: #f4f4f0;
  color: #111;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
  padding: 0 1rem 0 2rem;
  background: #f4f4f0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.brand {
  font-family: 'Starborn', sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-decoration: underline;
}
.brand-pink { color: #fe8ce3; }
.header-right { display: flex; align-items: center; height: 100%; }
.btn-toggle {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1rem; background: transparent; border: none;
  cursor: pointer; color: inherit; transition: all 0.2s;
}
.btn-toggle:hover { background: #ff90e8; color: #000; }
.btn-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-link {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1rem; font-size: 1.05rem; font-weight: 600;
  color: inherit; text-decoration: none; transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.btn-commencer {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 1.5rem; background: #fe8ce3; color: #000 !important;
  font-size: 1.05rem; font-weight: 600; transition: opacity 0.2s;
}
.btn-commencer:hover { opacity: 0.8; }

.tarifs-hero {
  text-align: center;
  padding: 5rem 1.5rem 2.5rem;
  position: relative;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  background: rgba(254,140,227,0.12);
  color: #c0369e;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.tarifs-hero h1 {
  font-family: 'Starborn', sans-serif;
  font-size: 4.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #111 30%, #fe8ce3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tarifs-hero p {
  font-size: 1.1rem;
  color: rgba(0,0,0,0.5);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
}
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.dot-manuel { background: #23a094; }
.dot-insider { background: #fe8ce3; }

.carriers {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
  gap: 1.25rem;
}

.carrier-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.carrier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fe8ce3, #90a8ed, #23a094);
  opacity: 0;
  transition: opacity 0.3s;
}
.carrier-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.carrier-card:hover::before {
  opacity: 1;
}

.carrier-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.carrier-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #f8f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.35rem;
  border: 1px solid rgba(0,0,0,0.06);
}
.carrier-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.carrier-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.carrier-name {
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.carrier-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(0,0,0,0.35);
  font-weight: 600;
}

.scan-section {
  padding: 1rem 1.5rem 1.25rem;
}
.scan-section + .scan-section {
  border-top: 1px dashed rgba(0,0,0,0.06);
}
.scan-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: rgba(0,0,0,0.35);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.scan-label .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.method-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(0,0,0,0.025);
}
.method-row:last-child { border-bottom: none; }
.method-name {
  color: rgba(0,0,0,0.6);
  font-weight: 500;
}
.method-price {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  color: #111;
}
.method-note {
  font-size: 0.65rem;
  color: rgba(0,0,0,0.35);
  margin-left: 0.25rem;
  font-weight: 500;
}

.tarifs-footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  text-align: center;
}
.footer-legend {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.35);
  margin-bottom: 2.5rem;
}
.legend-hs {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}
.legend-sep { margin: 0 0.5rem; }
.footer-cta p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: rgba(0,0,0,0.5);
}
.footer-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: #111;
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.footer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

body.dark-mode {
  background: #0a0a0a !important;
  color: #e8e8e8 !important;
}
body.dark-mode .header {
  background: rgba(10,10,10,0.85);
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .brand { color: #fff; }
body.dark-mode .hero-badge {
  background: rgba(254,140,227,0.1);
  color: #f0a0d8;
}
body.dark-mode .tarifs-hero h1 {
  background: linear-gradient(135deg, #fff 30%, #fe8ce3 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
body.dark-mode .tarifs-hero p { color: rgba(255,255,255,0.4); }
body.dark-mode .pill {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #ccc;
}
body.dark-mode .carrier-card {
  background: #151515;
  border-color: rgba(255,255,255,0.06);
}
body.dark-mode .carrier-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(254,140,227,0.1);
}
body.dark-mode .carrier-header { border-color: rgba(255,255,255,0.06); }
body.dark-mode .carrier-logo {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
body.dark-mode .carrier-logo img { filter: brightness(0.95); }
body.dark-mode .carrier-tag { color: rgba(255,255,255,0.3); }
body.dark-mode .scan-section + .scan-section { border-color: rgba(255,255,255,0.06); }
body.dark-mode .scan-label { color: rgba(255,255,255,0.3); }
body.dark-mode .method-row { border-color: rgba(255,255,255,0.03); }
body.dark-mode .method-name { color: rgba(255,255,255,0.55); }
body.dark-mode .method-price { color: #e8e8e8; }
body.dark-mode .method-note { color: rgba(255,255,255,0.25); }
body.dark-mode .footer-legend { color: rgba(255,255,255,0.25); }
body.dark-mode .legend-hs { background: rgba(255,255,255,0.08); }
body.dark-mode .footer-cta p { color: rgba(255,255,255,0.4); }
body.dark-mode .footer-btn {
  background: #fff;
  color: #000;
}
body.dark-mode .btn-toggle:hover { background: #ff90e8; color: #000; }

@media (max-width: 768px) {
  .tarifs-hero h1 { font-size: 3rem; }
  .carriers {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .header { padding: 0 0.75rem 0 1rem; }
}
@media (max-width: 480px) {
  .tarifs-hero h1 { font-size: 2.3rem; }
  .tarifs-hero { padding: 3.5rem 1rem 2rem; }
}
