  :root {
    --orange: #e87684;
    --orange-light: #FFF3ED;
    --orange-dark: #e87684;
    --blue: #3A5FA0;
    --blue-light: #EEF3FB;
    --green: #2E7D32;
    --green-light: #EDF7ED;
    --purple: #6A1B9A;
    --purple-light: #F5EEF8;
    --gold: #B8860B;
    --gold-light: #FFFBEA;
    --red: #C0392B;
    --red-light: #FDEDEC;
    --gray-50: #F8F8F6;
    --gray-100: #EFEFED;
    --gray-200: #DDDDD9;
    --gray-400: #AEADA8;
    --gray-600: #707070;
    --gray-800: #3D3D3D;
    --gray-900: #1A1A1A;
    --white: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  }
 
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
  body {
    font-family: 'Nunito Sans', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    /*font-size: 15px;*/
    line-height: 1.5;
    margin-top: 20px;
  }
 
  /* ── TOP NAV ── */
  .topbar {
    background: var(--white);
    border-bottom: 2px solid var(--orange);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
  }
  .logo {
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: -0.3px;
  }
  .topbar-title {
    font-weight: 700;
    color: var(--gray-800);
    font-size: 14px;
    margin-left: 8px;
  }
  .topbar-sep { color: var(--gray-400); font-size: 18px; }
 
  /* ── HERO BAND ── */
  .hero {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    padding: 40px 32px 36px;
    text-align: center;
    color: var(--white);
  }
  .hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    color: var(--white);
  }
  .hero p {
    font-size: 15px;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto;
    color: var(--white);
  }
 
  /* ── LAYOUT ── */
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 64px;
  }
 
  /* ── SECTION HEADERS ── */
  .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 20px;
  }
  .section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .section-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    border-radius: 2px;
  }
 
  /* ── PLAN CARDS ── */
  .plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.18s;
  }
  .plan-card:hover { box-shadow: var(--shadow-md); }
 
  .plan-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 16px;
    border-bottom: 1.5px solid var(--gray-100);
  }
  .plan-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }
  .plan-title-wrap { flex: 1; }
  .plan-name {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
  }
  .plan-subtitle {
    font-size: 13px;
    color: var(--gray-600);
  }
  .plan-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
 
  .plan-body { padding: 20px 22px; }
 
  /* Avantages */
  .avantages-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 10px;
  }
  .avantages-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
  }
  .avantage-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--gray-800);
  }
  .avantage-chip .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }
 
  /* Pricing grid */
  .pricing-section { margin-top: 4px; }
  .freq-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gray-600);
    margin: 16px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .freq-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
  }

  html.theme-dark .freq-title {
    color: var(--color-text);
  }
  html.theme-dark .freq-title::after {
    background: rgba(255, 255, 255, 0.12);
  }
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .pricing-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .price-tile {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 14px 12px;
    text-align: center;
    background: var(--gray-50);
    transition: border-color 0.15s, background 0.15s;
    cursor: default;
  }
  .price-tile:hover { background: var(--white); }
  .price-tile .duration {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 600;
    margin-bottom: 4px;
  }
  .price-tile .price {
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
  }
  .price-tile .currency {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    margin-top: 2px;
  }
  .price-tile.featured {
    border-color: var(--orange);
    background: var(--orange-light);
  }
  .price-tile.featured .price { color: var(--orange-dark); }
 
  /* Info/warning notices */
  .notice_2 {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    margin-top: 18px;
    border: 1px solid;
  }
  .notice_2-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .notice_2.info { background: var(--blue-light); border-color: #BDD0F0; color: var(--blue); }
  .notice_2.warn { background: var(--gold-light); border-color: #F0D88A; color: var(--gold); }
 
  .floating-classement-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border-radius: 12px;
    padding: 12px 18px;
    border: 1px solid #77d4a6;
    background: rgba(119, 212, 166, 0.68);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(46, 125, 50, 0.18);
    transition: transform 0.18s ease, opacity 0.18s ease;
    z-index: 1200;
  }

  .floating-classement-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
  }

  html.theme-dark .floating-classement-button {
    background: rgba(119, 212, 166, 0.18);
    border-color: rgba(119, 212, 166, 0.5);
    color: var(--color-text);
  }

  @media (max-width: 768px) {
    .floating-classement-button {
      right: 16px;
      bottom: 16px;
      min-width: 140px;
      padding: 12px 16px;
      max-width: calc(100vw - 32px);
    }
  }
 
  /* ── COMPTE TABLE ── */
  .compte-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .compte-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 18px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s;
  }
  .compte-card:hover { box-shadow: var(--shadow); }
  .compte-medal { font-size: 28px; margin-bottom: 8px; }
  .compte-name { font-size: 13px; font-weight: 800; color: var(--gray-800); margin-bottom: 4px; }
  .compte-count { font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 2px; }
  .compte-unit { font-size: 11px; color: var(--gray-400); font-weight: 600; }
  .compte-price { font-size: 11px; color: black; margin-top: 8px; font-weight: 900; }
  html.theme-dark .compte-name,
  html.theme-dark .section-header h2 {
      color: var(--color-text);
  }
  html.theme-dark .compte-price { color: var(--color-text); }
  .compte-validity { font-size: 20px; font-weight: 800; line-height: 1; margin-bottom: 2px; }
 
  /* ── RULES TABLE ── */
  .rules-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .rules-table th {
    background: var(--gray-800);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    /*text-transform: uppercase;*/
    letter-spacing: 0.07em;
    padding: 12px 16px;
    text-align: left;
  }
  .rules-table td {
    padding: 13px 16px;
    font-size: 13px;
    border-top: 1px solid var(--gray-100);
    vertical-align: top;
  }
  .rules-table tr:nth-child(even) td { background: var(--gray-50); }
  .pill-yes {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
  }
  .pill-no {
    display: inline-block;
    background: var(--red-light);
    color: var(--red);
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
  }
 
  /* ── COLOR THEMES ── */
  /* Gratuit */
  .theme-free .plan-header { background: #cfcfcc; }
  .theme-free .plan-icon { background: var(--gray-100); }
  .theme-free .plan-name { color: var(--gray-700); }
 
  /* Urgent */
  .theme-urgent { border-color: var(--red) !important; }
  .theme-urgent .plan-header { background: var(--red-light); }
  .theme-urgent .plan-icon { background: #F9CACA; }
  .theme-urgent .plan-name { color: var(--red); }
  .theme-urgent .plan-badge { background: var(--red-light); color: var(--red); border: 1px solid #F0AEAE; }
  .theme-urgent .price-tile.featured { border-color: var(--red); background: var(--red-light); }
  .theme-urgent .price-tile.featured .price { color: var(--red); }
  .souscrire-urgent {display: flex;margin-top: 20px;align-items: center;padding: 10px;background-color: var(--red);
  color: rgb(255, 255, 255);border-radius: 8px;column-gap: 10px;font-weight: bold;width: 250px;justify-content: center;border: none;cursor: pointer;text-decoration:none;}

 
  /* Boost */
  .theme-boost { border-color: var(--green) !important; }
  .theme-boost .plan-header { background: var(--green-light); }
  .theme-boost .plan-icon { background: #B8E6C0; }
  .theme-boost .plan-name { color: var(--green); }
  /*.theme-boost .plan-badge { background: var(--orange-light); color: var(--orange-dark); border: 1px solid #FBCEAA; }*/
  .theme-boost .plan-badge { background: var(--red-light); color: var(--red); border: 1px solid #F0AEAE; }
  .theme-boost .price-tile.featured { border-color: var(--green); background: var(--green-light); }
  .theme-boost .price-tile.featured .price { color: var(--green); }
  .souscrire-boost {display: flex;margin-top: 20px;align-items: center;padding: 10px;background-color: var(--green);
  color: rgb(255, 255, 255);border-radius: 8px;column-gap: 10px;font-weight: bold;width: 250px;justify-content: center;border: none;cursor: pointer;text-decoration:none;}
 
  /* Premium */
  .theme-premium { border-color: var(--purple) !important; }
  .theme-premium .plan-header { background: var(--purple-light); }
  .theme-premium .plan-icon { background: #DDD0F0; }
  .theme-premium .plan-name { color: var(--purple); }
  /*.theme-premium .plan-badge { background: var(--purple-light); color: var(--purple); border: 1px solid #ba96f0; }*/
  .theme-premium .plan-badge { background: var(--red-light); color: var(--red); border: 1px solid #F0AEAE; }
  .theme-premium .price-tile.featured { border-color: var(--purple); background: var(--purple-light); }
  .theme-premium .price-tile.featured .price { color: var(--purple); }
  .souscrire-premium {display: flex;margin-top: 20px;align-items: center;padding: 10px;background-color: var(--purple);
  color: rgb(255, 255, 255);border-radius: 8px;column-gap: 10px;font-weight: bold;width: 250px;justify-content: center;border: none;cursor: pointer;text-decoration:none;}
 
  /* VIP */
  .theme-vip { border-color: var(--gold) !important; }
  .theme-vip .plan-header { background: var(--gold-light); }
  .theme-vip .plan-icon { background: #F0DDAA; }
  .theme-vip .plan-name { color: var(--gold); }
  /*.theme-vip .plan-badge { background: var(--gold-light); color: var(--gold); border: 1px solid #E8CC80; }*/
  .theme-vip .plan-badge { background: var(--red-light); color: var(--red); border: 1px solid #F0AEAE; }
  .theme-vip .price-tile.featured { border-color: var(--gold); background: var(--gold-light); }
  .theme-vip .price-tile.featured .price { color: var(--gold); }
  .souscrire-vip {display: flex;margin-top: 20px;align-items: center;padding: 10px;background-color: var(--gold);
  color: rgb(255, 255, 255);border-radius: 8px;column-gap: 10px;font-weight: bold;width: 250px;justify-content: center;border: none;cursor: pointer;text-decoration:none;}

  html.theme-dark .plan-card {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
  }

  html.theme-dark .plan-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  html.theme-dark .avantage-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--color-text);
  }

  html.theme-dark .theme-free .plan-header { background: rgba(207, 207, 204, 0.18); }
  html.theme-dark .theme-free .price-tile.featured { border-color: rgba(207, 207, 204, 0.28); background: rgba(207, 207, 204, 0.12); }
  html.theme-dark .theme-free .price-tile.featured .price { color: var(--gray-100); }

  html.theme-dark .theme-urgent .plan-header { background: rgba(192, 57, 43, 0.16); }
  html.theme-dark .theme-urgent .price-tile.featured { border-color: rgba(192, 57, 43, 0.28); background: rgba(192, 57, 43, 0.12); }
  html.theme-dark .theme-urgent .price-tile.featured .price { color: var(--red); }

  html.theme-dark .theme-boost .plan-header { background: rgba(46, 125, 50, 0.16); }
  html.theme-dark .theme-boost .price-tile.featured { border-color: rgba(46, 125, 50, 0.28); background: rgba(46, 125, 50, 0.12); }
  html.theme-dark .theme-boost .price-tile.featured .price { color: var(--green); }

  html.theme-dark .theme-premium .plan-header { background: rgba(106, 27, 154, 0.16); }
  html.theme-dark .theme-premium .price-tile.featured { border-color: rgba(106, 27, 154, 0.28); background: rgba(106, 27, 154, 0.12); }
  html.theme-dark .theme-premium .price-tile.featured .price { color: var(--purple); }

  html.theme-dark .theme-vip .plan-header { background: rgba(184, 134, 11, 0.16); }
  html.theme-dark .theme-vip .price-tile.featured { border-color: rgba(184, 134, 11, 0.28); background: rgba(184, 134, 11, 0.12); }
  html.theme-dark .theme-vip .price-tile.featured .price { color: var(--gold); }

  html.theme-dark .topbar {
    background: rgba(10, 12, 22, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  }

  html.theme-dark .topbar-title,
  html.theme-dark .topbar-sep,
  html.theme-dark .section-header h2,
  html.theme-dark .plan-name,
  html.theme-dark .plan-subtitle,
  html.theme-dark .avantages-label,
  html.theme-dark .plan-badge,
  html.theme-dark .compte-name,
  html.theme-dark .compte-count,
  html.theme-dark .compte-unit,
  html.theme-dark .compte-price,
  html.theme-dark .compte-validity,
  html.theme-dark .rules-table th,
  html.theme-dark .rules-table td {
    color: var(--color-text);
  }

  html.theme-dark .hero p {
    color: var(--white);
  }

  html.theme-dark .plan-card {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  }

  html.theme-dark .plan-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  html.theme-dark .plan-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  html.theme-dark .plan-icon {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text);
    filter: saturate(1.1);
  }

  html.theme-dark .avantage-chip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    color: var(--color-text);
  }

  html.theme-dark .avantage-chip .dot {
    background: var(--orange);
  }

  html.theme-dark .price-tile {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
  }

  html.theme-dark .price-tile:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  html.theme-dark .price-tile .duration,
  html.theme-dark .price-tile .currency {
    color: var(--color-muted);
  }

  html.theme-dark .price-tile .price {
    color: var(--color-text);
  }

  html.theme-dark .notice_2.info {
    background: rgba(58, 95, 160, 0.16);
    border-color: rgba(189, 208, 240, 0.30);
    color: var(--blue);
  }

  html.theme-dark .notice_2.warn {
    background: rgba(184, 134, 11, 0.16);
    border-color: rgba(240, 216, 138, 0.30);
    color: var(--gold);
  }

  html.theme-dark .rules-table {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  html.theme-dark .rules-table tbody {
    background-color: rgba(255, 255, 255, 0.02);
  }

  html.theme-dark .rules-table tr {
    background-color: transparent;
    color: var(--color-text);
  }

  html.theme-dark .rules-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  html.theme-dark .rules-table th,
  html.theme-dark .rules-table td {
    border-top-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
  }

  html.theme-dark .rules-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
  }

  html.theme-dark .compte-card {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  }

  html.theme-dark .compte-souscrire {
    background: var(--color-accent);
  }

  html.theme-dark .souscrire-urgent {
    background: var(--red);
  }

  html.theme-dark .souscrire-boost {
    background: var(--green);
  }

  html.theme-dark .souscrire-premium {
    background: var(--purple);
  }

  html.theme-dark .souscrire-vip {
    background: var(--gold);
    color: var(--color-text-inverse);
  }

  .compte-souscrire {
    display: flex;
    margin-top: 14px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    width: 100%;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .compte-souscrire:hover,
  .souscrire-urgent:hover,
  .souscrire-boost:hover,
  .souscrire-premium:hover,
  .souscrire-vip:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }

  /* ── FOOTER ── */
 
  @media (max-width: 768px) {
    .hero { padding: 28px 20px 24px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 14px; }
    .container { padding: 20px 14px 48px; }
    .plan-header { flex-wrap: wrap; gap: 10px; }
    .compte-grid { grid-template-columns: repeat(4, 1fr); }
  }
 
  @media (max-width: 540px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .compte-grid { grid-template-columns: repeat(2, 1fr); }
    .plan-body { padding: 16px 14px; }
    .plan-header { padding: 14px 14px 12px; }
    .avantages-list { gap: 6px; }
    .avantage-chip { font-size: 12px; padding: 4px 10px; }
 
    /* Tableau règles → format carte sur mobile */
    .rules-table thead { display: none; }
    .rules-table, .rules-table tbody, .rules-table tr, .rules-table td { display: block; width: 100%; }
    .rules-table tr {
      background: var(--white);
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius);
      margin-bottom: 10px;
      padding: 12px 14px;
    }

    .rules-table tbody {
      background: var(--white);
      border: 0px solid var(--gray-200);
      border-radius: var(--radius);
      margin-bottom: 10px;
      padding: 12px 14px;
    }
    .rules-table tr:nth-child(even) td { background: transparent; }
    .rules-table td { border: none; padding: 3px 0; font-size: 13px; }
    .rules-table td:first-child { font-weight: 700; margin-bottom: 4px; }
    .rules-table td:nth-child(2) { margin-bottom: 4px; }
  }
 
  @media (max-width: 380px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid-2 { grid-template-columns: 1fr 1fr; }
    .compte-grid { grid-template-columns: 1fr 1fr; }
    .price-tile .price { font-size: 15px; }
    .section-header h2 { font-size: 14px; }
  }
