/* ===========================
   Variables globales
=========================== */
:root {
  --bg-body: #f5f6fa;
  --bg-header: #111827;
  --bg-card: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f97316;
  --text-main: #111827;
  --text-soft: #6b7280;
  --border-soft: #e5e7eb;
  --radius-card: 10px;
  --shadow-soft: 0 10px 25px rgba(15,23,42,0.08);
  --max-width: 980px;
}

/* Thème sombre : surcharge des variables */
:root[data-theme="dark"] {
  --bg-body: #020617;
  --bg-header: #020617;
  --bg-card: #020617;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-soft: #1f2937;
}

/* ===========================
   Reset simple
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Effets supplémentaires en thème sombre */
:root[data-theme="dark"] body {
  background: #020617;
}

:root[data-theme="dark"] 
/* ===========================
   Cartes comparatives VPN
=========================== */
.comparison-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 16px 0 8px;
}
.comparison-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}
.comparison-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.comparison-card h4 {
  margin: 8px 0 4px;
  font-size: 0.95rem;
}
.comparison-card p {
  margin-bottom: 6px;
  line-height: 1.5;
}
.comparison-card ul {
  margin: 0 0 6px;
  padding-left: 18px;
}
.comparison-card li {
  margin-bottom: 4px;
}
.badge-country {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: #eff6ff;
  color: #1d4ed8;
}

.card,
:root[data-theme="dark"] .legal-card,
:root[data-theme="dark"] .internal-links-block {
  background: #020617;
  border-color: #1f2937;
}

:root[data-theme="dark"] .card p,
:root[data-theme="dark"] .legal-card p,
:root[data-theme="dark"] .section-subtitle {
  color: var(--text-soft);
}

/* ===========================
   HEADER + NAV
=========================== */

header {
  background: linear-gradient(135deg, #020617, #111827);
  color: #fff;
  padding: 18px 0 26px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.35);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* Titre VPN + KODI & IPTV en bleu */
.logo span {
  margin-left: 4px;
}
.logo span a {
  color: #2563eb;
}

/* MENU */

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.nav-links a {
  color: #e5e7eb;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a.active {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* BURGER */

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(148,163,184,0.7);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 10px;
}

.nav-toggle:hover {
  background: rgba(15,23,42,0.7);
}

/* Bouton thème sombre / clair */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 16px;
  margin-left: 6px;
}

.theme-toggle:hover {
  background: rgba(15,23,42,0.7);
}

/* Desktop */
@media (min-width: 901px) {
  .nav-links {
    display: flex;
  }
}

/* Mobile : burger + menu déroulant */
@media (max-width: 900px) {
  .nav {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 50px;
    right: 14px;
    background: rgba(15,23,42,0.98);
    padding: 10px 12px;
    border-radius: 10px;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 180px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.45);
    z-index: 50;
  }

  .nav-toggle-checkbox:checked + .nav-toggle + .nav-links {
    display: flex;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

/* ===========================
   BARRE DE RECHERCHE
=========================== */

.search-wrapper {
  position: relative;
  width: 200px;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 40px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: #111827;
  color: #f5f6fa;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #f5f6fa;
  opacity: 0.55;
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #f5f6fa;
  font-size: 17px;
  cursor: pointer;
  opacity: 0.8;
}

.search-button:hover {
  opacity: 1;
}

/* Mobile : garder tout sur une seule ligne */
@media (max-width: 720px) {
  .nav {
    gap: 10px;
  }

  .search-wrapper {
    width: 150px;
  }

  .search-input {
    padding-right: 34px;
  }

  .search-button {
    right: 8px;
  }
}

/* ===========================
   HERO + LAYOUT
=========================== */


/* ===========================
   Layout article principal
=========================== */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 14px 40px;
}

.page-article {
  margin-top: 18px;
  display: block;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 14px 0;
}

.hero-inner {
  background: radial-gradient(circle at top left, rgba(37,99,235,0.25), transparent 55%),
              radial-gradient(circle at bottom right, rgba(248,250,252,0.08), transparent 55%);
  border-radius: var(--radius-card);
  padding: 24px 20px 26px;
  border: 1px solid rgba(148,163,184,0.35);
}

.hero h1 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 0.96rem;
  color: #1f2937;
  max-width: 650px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 14px 0 12px;
  font-size: 0.76rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(148,163,184,0.6);
  color: #cbd5f5;
}

.hero-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(37,99,235,0.45);
}

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  color: #1f2937;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-ghost:hover {
  background: rgba(15,23,42,0.06);
  text-decoration: none;
}

.hero-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #9ca3af;
}

/* MAIN & CARDS */

main {
  max-width: var(--max-width);
  margin: 18px auto 40px;
  padding: 0 14px;
}

section {
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 14px 13px 13px;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}

.card a.card-link {
  font-weight: 600;
  font-size: 0.86rem;
}

/* Pills */

.pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 4px;
}

.pill-orange {
  background: #fff7ed;
  color: #ea580c;
}

.pill-green {
  background: #ecfdf3;
  color: #166534;
}

.pill-red {
  background: #fef2f2;
  color: #b91c1c;
}

.pill-purple {
  background: #f5f3ff;
  color: #6d28d9;
}

/* Listes en colonnes */

.list-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 30px;
  font-size: 0.9rem;
}

.list-columns ul {
  list-style: none;
}

.list-columns li {
  margin-bottom: 4px;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 18px 14px 22px;
  font-size: 0.8rem;
  color: #6b7280;
}

footer p {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15,23,42,0.55);
  z-index: 60;
}

.back-to-top:hover {
  background: rgba(15,23,42,1);
  color: #fff;
}

@media (max-width: 720px) {
  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}

/* Sidebar layout */

.layout {
  display: flex;
  gap: 16px;
}

.sidebar-sticky {
  position: sticky;
  top: 80px;
  min-width: 220px;
  max-width: 260px;
  align-self: flex-start;
}

.sidebar-sticky .card {
  margin-bottom: 10px;
}

.content-with-sidebar {
  flex: 1;
  min-width: 0;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .sidebar-sticky {
    position: static;
    max-width: 100%;
  }
}

/* === Bloc VPN (maillage-auto) uniformisé === */
.internal-links-block {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 22px 0;
  box-shadow: var(--shadow-soft);
  text-align: left;
  font-size: 0.9rem;
}
.internal-links-block h3.section-title {
  text-align: left;
  margin-bottom: 10px;
}
.internal-links-block .section-subtitle {
  text-align: left;
  margin-bottom: 14px;
}
.internal-links-block ul.internal-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.internal-links-block ul.internal-links li {
  margin-bottom: 8px;
}

/* ===========================
   PRODUITS AFFILIÉS – STYLE COMME LES VPN
=========================== */

.aff-section {
  margin: 28px 0;
}

.aff-section .section-title {
  margin-bottom: 6px;
}

.aff-section .section-subtitle {
  margin-bottom: 14px;
}

/* === GRILLE PRODUITS (3 par ligne PC, 2 tablette, 1 mobile) === */
.product-grid-3pc {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Tablette */
@media (max-width: 900px) {
  .product-grid-3pc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .product-grid-3pc {
    grid-template-columns: 1fr;
  }
}

/* Carte produit comme les cartes VPN */
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 30px rgba(15,23,42,0.12);
  padding: 14px 13px 14px;
  width: 100%;
}

/* On supprime le bandeau noir en haut */
.product-card-header {
  background: transparent !important;
  padding: 0 0 4px 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.product-card-header h3 {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 4px 0;
  box-shadow: none !important;
  color: #111827;
  font-size: 0.98rem;
}

/* Badge */
.product-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Image */
.product-thumb {
  margin-top: 6px;
  background: #f9fafb;
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

/* Texte résumé produit */
.product-resume {
  font-size: 0.86rem;
  color: #4b5563;
}

/* Bullets */
.product-bullets {
  margin: 6px 0 6px 18px;
  padding: 0;
  font-size: 0.86rem;
  color: #374151;
}
.product-bullets li {
  margin-bottom: 4px;
}

/* Phrase de vente */
.product-selling {
  font-size: 0.87rem;
  font-weight: 500;
  color: #111827;
  margin-top: 2px;
}

/* Meta (prix + note) */
.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  margin-top: 6px;
}

.product-price {
  font-weight: 700;
  color: #b12704;
}

.product-rating .stars {
  color: #facc15;
  margin-right: 4px;
}

/* Boutons Amazon / AliExpress */
.product-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15,23,42,0.25);
}

.btn-product-amazon {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
}

.btn-product-aliexpress {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
}

.btn-product-amazon:hover,
.btn-product-aliexpress:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* ===========================
   MENTIONS LÉGALES & CARTES
=========================== */

.legal-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Cartes neutres (utilisées partout, y compris page recherche) */
.legal-card {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* on supprime l’ancienne barre dégradée */
.legal-card::before {
  display: none !important;
}

.legal-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.6rem;
  text-transform: none;
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.legal-card h3 {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.legal-card p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.legal-card ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.legal-card li {
  margin-bottom: 4px;
}

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

@media (max-width: 600px) {
  .legal-card {
    padding: 20px 16px 16px;
  }

  .legal-title {
    font-size: 1.4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .list-columns {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 18px 15px 20px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }
}
.sitemap-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.sitemap-col h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.sitemap-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-col ul li {
  margin-bottom: 6px;
}

.sitemap-col ul li a {
  color: #1e3a8a;
  text-decoration: none;
}

.sitemap-col ul li a:hover {
  text-decoration: underline;
}

/* Desktop : 2 colonnes */
@media (min-width: 600px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large : 4 colonnes */
@media (min-width: 1024px) {
  .sitemap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ===========================
   Optimisations mobile globales 2025
=========================== */
@media (max-width: 768px) {
  .page-article {
    padding: 0 10px;
  }
  .hero-inner h1 {
    font-size: 1.35rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .hero-badges .badge {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  .card {
    padding: 14px 12px;
  }
  .card h2,
  .card .section-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  .card ul {
    padding-left: 18px;
  }
  .card li {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }
  .sommaire-premium li a {
    font-size: 0.95rem;
  }
  .comparison-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .comparison-card {
    padding: 14px 12px;
  }
}
