/* ============================================================
   La Riposte - Thème Global
   ============================================================ */

:root {
  /* ═══════════════════════════════════════════════════════
     GRILLE DE BASE MÜLLER-BROCKMANN (8px)
     ═══════════════════════════════════════════════════════ */
  --baseline-8:    8px;
  --baseline-16:   16px;
  --baseline-24:   24px;
  --baseline-32:   32px;
  --baseline-40:   40px;
  --baseline-48:   48px;
  --baseline-56:   56px;
  --baseline-64:   64px;

  /* Palette principale */
  --bg-app:        #F8F0F6;
  --bg-card:       #FFFFFF;
  --bg-header:     #2563EB;
  --bg-sidebar:    #1E40AF;
  --bg-tab-bar:    #EFF6FF;
  --bg-input:      #FFFFFF;
  --bg-row-even:   #F8FAFC;
  --bg-row-odd:    #FFFFFF;
  --bg-expanded:   #DBEAFE;

  /* Textes */
  --fg-primary:    #1E293B;
  --fg-secondary:  #64748B;
  --fg-header:     #FFFFFF;
  --fg-label:      #374151;
  --fg-disabled:   #94A3B8;

  /* Accents */
  --accent-blue:   #2563EB;
  --accent-blue-h: #1D4ED8;
  --accent-orange: #F97316;
  --accent-orange-h: #EA6317;
  --accent-green:  #16A34A;
  --accent-green-h: #15803D;
  --accent-red:    #DC2626;
  --accent-red-h:  #B91C1C;
  --accent-yellow: #D97706;
  --accent-purple: #9333EA;

  /* Bordures */
  --border:        #CBD5E1;
  --border-focus:  #2563EB;

  /* Ombre et rayon */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.10);
  --shadow-lg:     0 10px 25px rgba(0,0,0,0.15);
  --shadow-xl:     0 20px 40px rgba(0,0,0,0.20);
  --radius:        8px;
  --radius-lg:     12px;

  /* Typographie (échelle modulaire) */
  --font-main:     'Segoe UI', Arial, sans-serif;
  --font-mono:     'Monaco', 'Courier New', monospace;

  /* Typographie - Tailles harmonieuses */
  --text-xs:       12px;
  --text-sm:       14px;
  --text-base:     16px;
  --text-lg:       18px;
  --text-xl:       20px;
  --text-2xl:      24px;
  --text-3xl:      32px;
  --text-4xl:      48px;

  /* Line-heights */
  --lh-tight:      1.25;
  --lh-normal:     1.5;
  --lh-relaxed:    1.75;
  --lh-loose:      2;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--fg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 72px;
  /* Space for fixed header (16px + 40px logo + 16px padding) */
}

/* ─────────────────────────────────────────────
   Système de Logos Réutilisables
   ───────────────────────────────────────────── */

.logo-brand {
  display: inline-block;
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-brand--small {
  height: 32px;
}

.logo-brand--medium {
  height: 48px;
}

.logo-brand--large {
  height: 64px;
}

.logo-brand--xl {
  height: 96px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--baseline-12);
  font-weight: 700;
  font-size: var(--text-xl);
}

.logo-container--header {
  gap: var(--baseline-8);
  color: var(--fg-header);
  text-decoration: none;
}

.logo-container--header a {
  color: var(--fg-header);
  text-decoration: none;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

/* ─────────────────────────────────────────────
   Navigation Header
   ───────────────────────────────────────────── */

header {
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-sidebar) 100%);
  color: var(--fg-header);
  padding: var(--baseline-16) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  width: 100%;
}

header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--baseline-24);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: var(--baseline-12);
}

/* Support du logo-container dans le header */
header .logo-container {
  display: flex;
  align-items: center;
  gap: var(--baseline-8);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--fg-header);
}

header .logo-container a {
  color: var(--fg-header);
  text-decoration: none;
  display: flex;
  align-items: center;
}

header .logo-container .logo-brand {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

header .logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Logo Link - Clickable logo + text */
.logo-link {
  display: flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-link:active {
  opacity: 0.9;
}

/* Ensure logo container inside logo link works properly */
.logo-link .logo-container {
  margin: 0;
}

.logo-link .logo-brand {
  height: 40px;
  width: auto;
  object-fit: contain;

  width: auto;
  object-fit: contain;
}

header .logo a {
  display: flex;
  align-items: center;
  gap: var(--baseline-8);
  color: inherit;
  text-decoration: none;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: var(--baseline-32);
  align-items: center;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  position: relative;
}

header nav a {
  color: var(--fg-header);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
  font-size: var(--text-base);
}

header nav a:hover {
  opacity: 0.8;
}

header .cta-button {
  background-color: var(--accent-orange);
  color: white;
  padding: var(--baseline-14) var(--baseline-28);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: var(--text-base);
  min-width: 130px;
  text-align: center;
}

header .cta-button.cta-button-loading {
  visibility: hidden;
}

header .cta-button:hover {
  background-color: var(--accent-orange-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg-header);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin-right: var(--baseline-16);
}

/* ─────────────────────────────────────────────
   Hero Section
   ───────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--accent-blue) 50%, var(--bg-sidebar) 100%);
  color: var(--fg-header);
  padding: var(--baseline-64) var(--baseline-24);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="40" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero .container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--baseline-24);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  line-height: var(--lh-tight);
  color: white;
  letter-spacing: -1px;
}

.hero p {
  font-size: var(--text-xl);
  margin-bottom: var(--baseline-40);
  opacity: 1;
  line-height: var(--lh-relaxed);
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero .buttons {
  display: flex;
  gap: var(--baseline-16);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: var(--baseline-16) var(--baseline-32);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: var(--text-base);
  display: inline-block;
  line-height: var(--lh-tight);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: #2563EB;
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: #2563EB;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(37,99,235,0.5);
}

.btn-secondary {
  background-color: #90EE90;
  color: #1F2937;
  border: 2px solid #90EE90;
  box-shadow: 0 4px 12px rgba(144,238,144,0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background-color: #90EE90;
  border-color: #90EE90;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(144,238,144,0.5);
}

.btn-orange {
  background-color: #FF8C00;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-orange:hover {
  background-color: #FF7F00;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 140, 0, 0.5);
}

/* ─────────────────────────────────────────────
   Container & Spacing
   ───────────────────────────────────────────── */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--baseline-24);
}

section {
  padding: var(--baseline-64) 0;
}

section.alt-bg {
  background-color: var(--bg-tab-bar);
}

h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--baseline-32);
  color: var(--fg-primary);
  line-height: var(--lh-tight);
  font-weight: 800;
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--baseline-24);
  color: var(--fg-primary);
  text-align: center;
  line-height: var(--lh-tight);
  font-weight: 700;
}

h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--baseline-16);
  color: var(--fg-primary);
  line-height: var(--lh-normal);
  font-weight: 700;
}

h4 {
  font-size: var(--text-base);
  margin-bottom: var(--baseline-12);
  color: var(--fg-primary);
  font-weight: 700;
}

p {
  color: var(--fg-secondary);
  margin-bottom: var(--baseline-16);
  line-height: var(--lh-relaxed);
  font-size: var(--text-base);
}

/* ─────────────────────────────────────────────
   Grille de Features
   ───────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--baseline-32);
  margin-top: var(--baseline-48);
}

.feature-card {
  background: var(--bg-card);
  padding: var(--baseline-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 5px solid var(--accent-blue);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card.accent-orange {
  border-left-color: var(--accent-orange);
}

.feature-card.accent-green {
  border-left-color: var(--accent-green);
}

.feature-card.accent-purple {
  border-left-color: var(--accent-purple);
}

.feature-card .icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--baseline-24);
  display: block;
}

.feature-card h3 {
  margin-bottom: var(--baseline-12);
}

.feature-card p {
  font-size: var(--text-sm);
}

/* ─────────────────────────────────────────────
   Galerie / Screenshots
   ───────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.gallery-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item .overlay p {
  text-align: center;
  margin: 0;
  color: white;
}

/* ─────────────────────────────────────────────
   Competitive Features Section
   ───────────────────────────────────────────── */

.competitive-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.competitive-features img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.competitive-features .content h3 {
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.competitive-features ul {
  list-style: none;
  margin: 1.5rem 0;
}

.competitive-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--fg-secondary);
}

.competitive-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ─────────────────────────────────────────────
   Testimonials
   ───────────────────────────────────────────── */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent-blue);
}

.testimonial-card .stars {
  color: var(--accent-yellow);
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--fg-primary);
}

.testimonial-card .author {
  font-weight: bold;
  color: var(--accent-blue);
}

/* ─────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────── */

footer {
  background-color: var(--bg-header);
  color: var(--fg-header);
  padding: var(--baseline-64) 0 var(--baseline-32);
  margin-top: var(--baseline-64);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--baseline-48);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--baseline-24);
  margin-bottom: var(--baseline-48);
}

footer h4 {
  margin-bottom: var(--baseline-16);
  font-size: var(--text-lg);
  color: white;
}

footer p {
  color: white;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: var(--baseline-12);
}

footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
}

footer a:hover {
  color: var(--accent-orange);
}

footer .footer-bottom {
  text-align: center;
  margin-top: var(--baseline-32);
  padding-top: var(--baseline-32);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
  font-size: var(--text-sm);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--baseline-24);
  padding-right: var(--baseline-24);
}

/* ─────────────────────────────────────────────
   Animations
   ───────────────────────────────────────────── */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

/* ─────────────────────────────────────────────
   Modal / Popup
   ───────────────────────────────────────────── */

.modal {
  display: none !important;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal[style*="display: flex"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 85%;
  box-shadow: var(--shadow-xl);
  position: relative;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--fg-secondary);
}

/* ─────────────────────────────────────────────
   Pricing Section
   ───────────────────────────────────────────── */

.pricing-section {
  padding: 4rem 0;
}

.pricing-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-intro p {
  font-size: 1.1rem;
  color: var(--fg-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.pricing-card-featured {
  border-color: var(--accent-orange);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent-orange), #F97316);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}

.pricing-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-blue);
}

.pricing-duration {
  color: var(--fg-secondary);
  font-size: 0.9rem;
}

.pricing-price {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.pricing-price .currency {
  font-size: 1.2rem;
  vertical-align: super;
  color: var(--accent-blue);
}

.pricing-price .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg-primary);
  display: inline;
}

.pricing-price .period {
  display: block;
  color: var(--fg-secondary);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.pricing-description {
  text-align: center;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 2rem;
}

.btn-pricing {
  background: linear-gradient(135deg, var(--accent-blue), #1E40AF);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 2rem;
}

.btn-pricing:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-featured {
  background: linear-gradient(135deg, var(--accent-orange), #EA6317) !important;
  font-size: 1.05rem;
}

.btn-featured:hover {
  background: linear-gradient(135deg, #EA6317, #D45307) !important;
}

.pricing-features {
  flex-grow: 1;
}

.pricing-features h4 {
  font-size: 0.95rem;
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-features ul {
  list-style: none;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--fg-secondary);
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  margin-right: 0.75rem;
}

/* ─────────────────────────────────────────────
   Comparison Table
   ───────────────────────────────────────────── */

.comparison-table-wrapper {
  overflow-x: auto;
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--bg-header), var(--bg-sidebar));
  color: var(--fg-header);
}

.comparison-table thead th {
  padding: 1.5rem;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
}

.comparison-table tbody td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-secondary);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--bg-row-even);
}

.comparison-table .check {
  color: var(--accent-green);
  font-weight: bold;
}

.comparison-table .cross {
  color: var(--accent-red);
  font-weight: bold;
}

/* ─────────────────────────────────────────────
   FAQ Grid
   ───────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent-blue);
}

.faq-item h4 {
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.faq-item p {
  color: var(--fg-secondary);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   CTA Section
   ───────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-sidebar) 100%);
  color: var(--fg-header);
  padding: 5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 4rem 0;
}

.cta-section h2 {
  color: var(--fg-header);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background-color: var(--accent-orange);
  color: white;
}

.cta-section .btn-primary:hover {
  background-color: #EA6317;
}

.cta-section .btn-secondary {
  background-color: #90EE90;
  color: #1F2937;
  border: 2px solid #90EE90;
  box-shadow: 0 4px 12px rgba(144,238,144,0.3);
}

.cta-section .btn-secondary:hover {
  background-color: #90EE90;
  border-color: #90EE90;
  box-shadow: 0 12px 24px rgba(144,238,144,0.5);
}

/* ─────────────────────────────────────────────
   Active Navigation
   ───────────────────────────────────────────── */

header nav a.active-nav {
  color: var(--accent-orange);
  font-weight: bold;
}

header .cta-button.active-nav {
  color: white;
}

/* ─────────────────────────────────────────────
   Authentication Section
   ───────────────────────────────────────────── */

.auth-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-app) 0%, #F0E6FF 100%);
  padding: 3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 600px;
  width: 100%;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.auth-header h1 {
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.auth-header p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
}

.auth-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--fg-label);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: all 0.3s ease;
  background-color: var(--bg-input);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
  color: var(--fg-disabled);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-group.checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
  cursor: pointer;
}

.form-group.checkbox label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-group.checkbox a {
  color: var(--accent-blue);
  text-decoration: none;
}

.form-group.checkbox a:hover {
  text-decoration: underline;
}

.error-message {
  display: block;
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  display: none;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background-color: #DCFCE7;
  color: var(--accent-green);
  border: 2px solid var(--accent-green);
}

.form-message.error {
  display: block;
  background-color: #FEE2E2;
  color: var(--accent-red);
  border: 2px solid var(--accent-red);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #1E40AF);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.password-strength {
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-red);
  transition: all 0.3s ease;
}

.password-hint {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-secondary);
  margin-top: 0.25rem;
}

.auth-footer {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.auth-footer p {
  color: var(--fg-secondary);
  margin-bottom: 0.5rem;
}

.auth-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.forgot-password {
  font-size: 0.9rem;
}

.auth-divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border);
  z-index: 1;
}

.auth-divider span {
  background: var(--bg-card);
  padding: 0 1rem;
  position: relative;
  z-index: 2;
  color: var(--fg-secondary);
  font-weight: 600;
}

.software-access {
  text-align: center;
  margin-top: 1.5rem;
}

.software-access h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-green);
  font-size: 1.1rem;
}

.software-access p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.auth-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.info-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent-blue);
}

.info-card:nth-child(2) {
  border-top-color: var(--accent-orange);
}

.info-card:nth-child(3) {
  border-top-color: var(--accent-green);
}

.info-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.info-card h3 {
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
}

.info-card p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────
   Dashboard Section
   ───────────────────────────────────────────── */

.dashboard-section {
  min-height: 100vh;
  background-color: var(--bg-app);
  padding: 2rem 0;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 0 1.5rem;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: 80px;
}

.user-profile {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.user-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-md);
}

.user-profile h3 {
  margin-bottom: 0.25rem;
  color: var(--fg-primary);
}

.user-email {
  color: var(--fg-secondary);
  font-size: 0.9rem;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard-nav .nav-item {
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--fg-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.dashboard-nav .nav-item:hover {
  background-color: var(--bg-tab-bar);
  color: var(--accent-blue);
}

.dashboard-nav .nav-item.active {
  background: linear-gradient(135deg, var(--accent-blue), #1E40AF);
  color: white;
}

.dashboard-nav .nav-item .icon {
  font-size: 1.3rem;
}

.dashboard-nav .logout-btn {
  padding: 1rem;
  border-radius: var(--radius);
  color: var(--accent-red);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  font-size: var(--text-base);
}

.dashboard-nav .logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--accent-red-h);
}

.dashboard-nav .logout-btn .icon {
  font-size: 1.3rem;
}

.dashboard-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem 3rem 3rem 3rem;
  box-shadow: var(--shadow-md);
}

.dashboard-content h2 {
  margin-bottom: 2rem;
  color: var(--fg-primary);
}

.section-description {
  color: var(--fg-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.dashboard-section-content {
  display: none;
}

.dashboard-section-content.active {
  display: block;
}

/* Account Summary */
.account-summary {
  margin-bottom: 2rem;
}

.summary-card {
  background: linear-gradient(135deg, #E0F2FE, #F0F4FF);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.summary-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-blue);
}

.summary-card h3 {
  color: var(--fg-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .label {
  font-weight: 600;
  color: var(--fg-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-row .value {
  color: var(--fg-primary);
  font-weight: 500;
  word-break: break-word;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.dashboard-card {
  background: linear-gradient(135deg, var(--bg-tab-bar), #F0E6FF);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-blue);
}

.dashboard-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dashboard-card h3 {
  color: var(--fg-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-blue);
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
}

.status-badge.active {
  background-color: #DCFCE7;
  color: var(--accent-green);
}

.status-badge.inactive {
  background-color: #FEE2E2;
  color: var(--accent-red);
}

.status-badge.cancelled {
  background-color: #FEF3C7;
  color: #D97706;
}

.quick-actions {
  margin-top: 3rem;
}

.quick-actions h3 {
  margin-bottom: 1.5rem;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--fg-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  background: white;
}

.action-btn:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.action-btn .icon {
  font-size: 2rem;
}

.action-btn span:last-child {
  font-weight: 600;
  text-align: center;
}

.licenses-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.license-item {
  background: var(--bg-tab-bar);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.license-info h4 {
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
}

.license-key {
  font-family: var(--font-mono);
  background: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  word-break: break-all;
  color: var(--accent-blue);
  font-weight: 600;
  margin: 0.75rem 0;
}

.license-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  color: var(--fg-secondary);
  margin-top: 0.75rem;
}

.license-actions {
  display: flex;
  gap: 0.5rem;
}

.license-actions button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy {
  background-color: var(--accent-blue);
  color: white;
}

.btn-copy:hover {
  background-color: #1E40AF;
}

.btn-revoke {
  background-color: var(--accent-red);
  color: white;
}

.btn-revoke:hover {
  background-color: #B91C1C;
}

.generate-key-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  text-align: center;
}

.generate-key-section h3 {
  margin-bottom: 0.5rem;
}

.generate-key-section p {
  margin-bottom: 1.5rem;
}

.subscription-card {
  background: linear-gradient(135deg, var(--bg-tab-bar), #F0E6FF);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  margin-bottom: 3rem;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.subscription-header h3 {
  color: var(--accent-blue);
}

.subscription-status {
  display: inline-block;
}

.subscription-details {
  margin-bottom: 2rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--fg-primary);
}

.detail-row .value {
  color: var(--fg-secondary);
}

.subscription-actions {
  display: flex;
  gap: 1rem;
}

.subscription-actions .btn {
  flex: 1;
}

.billing-history {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.billing-history h3 {
  margin-bottom: 1.5rem;
}

.table-container {
  overflow-x: auto;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--fg-secondary);
}

.profile-form {
  max-width: 600px;
}

.form-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.form-section h3 {
  margin-bottom: 1.5rem;
  color: var(--fg-primary);
}

.form-section:last-child {
  border-bottom: none;
}

.security-section {
  background: var(--bg-tab-bar);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.security-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.security-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.security-item h4 {
  margin-bottom: 0.5rem;
  color: var(--fg-primary);
}

.security-item p {
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

.security-item button {
  margin-top: auto;
}

.security-item.danger {
  background-color: #FEE2E2;
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-red);
  display: block;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.security-item.disconnect {
  display: block;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Styles pour les security-items dans une grille (2 colonnes) */
div[style*="grid"] > .security-item {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.btn-danger {
  background-color: var(--accent-red);
  color: white;
}

.btn-danger:hover {
  background-color: #B91C1C;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   Responsive Design
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Authentication */
  .auth-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .auth-info {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Dashboard */
  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .dashboard-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dashboard-nav .nav-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    font-size: 0.9rem;
  }

  .license-item {
    grid-template-columns: 1fr;
  }

  .license-actions {
    justify-content: flex-start;
  }

  /* General */
  header .container {
    padding: 0 1rem;
  }

  header nav {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    position: relative;
  }

  header nav ul {
    display: none;
    gap: 0;
    flex-direction: column;
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-header) 0%, var(--bg-sidebar) 100%);
    z-index: 999;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: var(--baseline-16) var(--baseline-24);
  }

  header nav.show ul {
    display: flex !important;
    max-height: calc(100vh - 72px);
  }

  header nav ul li {
    width: 100%;
    border-bottom: none;
    margin: 4px 0;
  }

  header nav ul li:last-child {
    border-bottom: none;
  }

  header nav ul li a {
    display: block;
    padding: 12px var(--baseline-16);
    color: var(--fg-header);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border-radius: 6px;
  }

  header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: block;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 8px 12px;
  }

  .menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  header nav.show .menu-toggle {
    transform: rotate(90deg);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .competitive-features {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  /* Authentication */
  .auth-section {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .auth-info {
    gap: 1rem;
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-icon {
    font-size: 2rem;
  }

  /* Dashboard */
  .dashboard-section {
    padding: 1rem 0;
  }

  .dashboard-container {
    padding: 0 0.75rem;
  }

  .dashboard-content {
    padding: 1.5rem;
  }

  .dashboard-cards {
    gap: 1rem;
  }

  .dashboard-card {
    padding: 1.5rem;
  }

  .card-value {
    font-size: 1.5rem;
  }

  .dashboard-nav {
    flex-direction: column;
  }

  .dashboard-nav .nav-item {
    min-width: auto;
  }

  .actions-grid {
    grid-template-columns: 1fr;
  }

  .action-btn {
    padding: 1rem;
  }

  /* General */
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  header .cta-button {
    display: none;
  }

  .hero .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   STYLES POUR LA GESTION D'ABONNEMENT
   ═══════════════════════════════════════════════════════ */

.subscription-current {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0F4FF 100%);
  border: 2px solid var(--accent-blue);
  margin-bottom: var(--baseline-48);
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--baseline-32);
  gap: var(--baseline-16);
}

.subscription-header h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--baseline-8);
  color: var(--fg-primary);
}

.subscription-header .pricing-duration {
  color: var(--fg-secondary);
  font-size: var(--text-sm);
  margin: 0;
}

.subscription-status {
  padding: var(--baseline-8) var(--baseline-16);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.subscription-status.active {
  background: var(--accent-green);
  color: white;
}

.subscription-status.inactive {
  background: #E2E8F0;
  color: #64748B;
}

.subscription-details {
  display: flex;
  flex-direction: column;
  gap: var(--baseline-16);
  margin-bottom: var(--baseline-32);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--baseline-12) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 600;
  color: var(--fg-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row .value {
  color: var(--fg-primary);
  font-weight: 500;
  word-break: break-word;
}

.detail-row .status-badge {
  display: inline-block;
  padding: var(--baseline-4) var(--baseline-12);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.detail-row .status-badge.active {
  background: #DBEAFE;
  color: var(--accent-blue);
}

.detail-row .status-badge.inactive {
  background: #FECACA;
  color: var(--accent-red);
}

.detail-row .status-badge.cancelled {
  background: #FEF3C7;
  color: #D97706;
}

.detail-row .status-badge.planned_change {
  background: #DBEAFE;
  color: #0284c7;
}

/* Section Actions d'Abonnement */
.subscription-actions-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--baseline-32);
  margin-bottom: var(--baseline-48);
}

.subscription-actions-section h3 {
  margin-bottom: var(--baseline-24);
  font-size: var(--text-xl);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--baseline-16);
}

.btn-danger {
  background: var(--accent-red);
  border: none;
  color: white;
}

.btn-danger:hover {
  background: var(--accent-red-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.3);
}

/* Section Plans Disponibles */
.available-plans-section {
  margin-bottom: var(--baseline-48);
}

.available-plans-section h3 {
  margin-bottom: var(--baseline-24);
  font-size: var(--text-xl);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--baseline-32);
}

.plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--baseline-32);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.plan-card.plan-featured {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1D4ED8 100%);
  color: white;
  border-color: transparent;
}

.plan-card.plan-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.plan-badge {
  position: absolute;
  top: var(--baseline-16);
  right: var(--baseline-16);
  background: var(--accent-orange);
  color: white;
  padding: var(--baseline-8) var(--baseline-16);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  margin-bottom: var(--baseline-24);
}

.plan-header h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--baseline-8);
}

.plan-header p {
  font-size: var(--text-sm);
  opacity: 0.9;
}

.plan-card.plan-featured .plan-header p {
  color: rgba(255, 255, 255, 0.9);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--baseline-8);
  margin-bottom: var(--baseline-16);
}

.plan-price .currency {
  font-size: var(--text-lg);
  font-weight: 600;
}

.plan-price .amount {
  font-size: var(--text-4xl);
  font-weight: 800;
}

.plan-price .period {
  font-size: var(--text-sm);
  opacity: 0.8;
}

.plan-card.plan-featured .plan-price .amount {
  color: white;
}

.plan-card.plan-featured .plan-price .period {
  color: rgba(255, 255, 255, 0.9);
}

.plan-description {
  margin-bottom: var(--baseline-24);
  font-size: var(--text-sm);
  opacity: 0.9;
}

.btn-plan {
  background: var(--accent-blue);
  color: white;
  padding: var(--baseline-12) var(--baseline-24);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--baseline-24);
  width: 100%;
}

.btn-plan:hover {
  background: var(--accent-blue-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.plan-card.plan-featured .btn-plan {
  background: white;
  color: var(--accent-blue);
}

.plan-card.plan-featured .btn-plan:hover {
  background: #F0F5FF;
}

.plan-features {
  flex-grow: 1;
}

.plan-features h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--baseline-12);
  letter-spacing: 0.5px;
  color: var(--fg-secondary);
}

.plan-card.plan-featured .plan-features h5 {
  color: rgba(255, 255, 255, 0.9);
}

.plan-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--baseline-8);
}

.plan-features li {
  font-size: var(--text-sm);
  opacity: 0.85;
}

/* Section Facturation */
.billing-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--baseline-32);
  margin-bottom: var(--baseline-48);
}

.billing-section h3 {
  margin-bottom: var(--baseline-24);
  font-size: var(--text-xl);
}

.billing-history {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.billing-table thead {
  background: var(--bg-tab-bar);
  border-bottom: 2px solid var(--border);
}

.billing-table th {
  padding: var(--baseline-16);
  text-align: left;
  font-weight: 700;
  color: var(--fg-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: var(--text-xs);
}

.billing-table td {
  padding: var(--baseline-16);
  border-bottom: 1px solid var(--border);
  color: var(--fg-primary);
}

.billing-table tbody tr:hover {
  background: var(--bg-tab-bar);
}

/* Section Paiement */
.payment-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--baseline-32);
}

.payment-info-section h3 {
  margin-bottom: var(--baseline-24);
  font-size: var(--text-xl);
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--baseline-32);
}

.payment-details {
  flex-grow: 1;
}

.payment-details p {
  margin: var(--baseline-8) 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content.modal-sm {
  max-width: 750px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--baseline-24) var(--baseline-32);
  border-bottom: 1px solid var(--bg-tertiary);
}

#confirmationModal .modal-header {
  padding: 1.25rem 2rem;
}

.modal-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  color: var(--fg-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--fg-secondary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--fg-primary);
}

.modal-body {
  padding: var(--baseline-32);
  overflow-y: auto;
  flex: 1;
}

#confirmationModal .modal-body {
  padding: 1.5rem 2rem;
}

.modal-body p {
  margin: var(--baseline-16) 0;
  color: var(--fg-secondary);
  line-height: var(--lh-relaxed);
  white-space: pre-line;
}

#confirmationModal .modal-body p {
  margin: 0.25rem 0;
}

.modal-footer {
  display: flex;
  gap: var(--baseline-16);
  justify-content: flex-end;
  padding: var(--baseline-24) var(--baseline-32);
  border-top: 1px solid var(--bg-tertiary);
}

#confirmationModal .modal-footer {
  padding: 1rem 2rem;
  justify-content: center;
}

.modal-footer .btn {
  min-width: 100px;
}

/* Plan Selection Modal */
.plan-selection-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--baseline-24);
}

.plan-option {
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--baseline-24);
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-option:hover {
  border-color: var(--accent-blue);
  background: var(--bg-tertiary);
}

.plan-option.featured {
  border-color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.05);
}

.plan-badge-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent-blue);
  color: white;
  padding: 6px 12px;
  border-radius: 0 var(--radius-lg) 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.plan-option.owned {
  opacity: 0.6;
  border: 2px dashed var(--fg-secondary);
}

.plan-option.owned .btn {
  background: var(--fg-secondary);
  cursor: default;
}

.plan-option.owned .btn:hover {
  background: var(--fg-secondary);
}

.plan-owned-badge {
  display: inline-block;
  background: var(--accent-green);
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: var(--baseline-12);
}

.plan-option-header {
  margin-bottom: var(--baseline-16);
}

.plan-option-header h4 {
  margin: 0 0 var(--baseline-8) 0;
  color: var(--fg-primary);
  font-size: var(--text-base);
}

.plan-price-large {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--fg-primary);
  margin: var(--baseline-8) 0;
}

.plan-price-large.accent {
  color: var(--accent-blue);
}

.plan-period {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--fg-secondary);
}

.plan-option-desc {
  margin: 0 0 var(--baseline-16) 0;
  font-size: var(--text-sm);
  color: var(--fg-secondary);
  line-height: var(--lh-snug);
}

.plan-option .btn {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 600px) {
  .plan-selection-container {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    max-width: 100%;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: var(--baseline-16);
    padding-right: var(--baseline-16);
  }
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: var(--baseline-16);
  justify-content: flex-end;
}

.modal-actions .btn {
  flex: 1;
  max-width: 200px;
}

/* Upgrade Suggestion Card */
.upgrade-suggestion {
  margin-top: var(--baseline-48);
}

.suggestion-card {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--baseline-32);
  text-align: center;
}

.suggestion-card h3 {
  margin: 0 0 var(--baseline-16) 0;
  font-size: var(--text-lg);
  color: white;
}

.suggestion-card p {
  margin: 0 0 var(--baseline-24) 0;
  opacity: 0.95;
  line-height: var(--lh-relaxed);
}

.suggestion-card .btn {
  background: white;
  color: var(--accent-blue);
  border: none;
}

.suggestion-card .btn:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   Carousel Styles
   ───────────────────────────────────────────── */

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-slide {
  display: none;
  animation: fadeIn 0.6s ease-in-out;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.competitive-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.competitive-features .content {
  padding: 2rem;
}

.competitive-features h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--fg-primary);
}

.competitive-features p {
  color: var(--fg-secondary);
  margin-bottom: 1rem;
  line-height: var(--lh-relaxed);
}

.competitive-features ul {
  list-style: none;
  padding: 0;
}

/* Tableau Gestion Compétitions */
.competitions-management {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.competitions-list {
  width: 100%;
}

.competitions-list.loading {
  text-align: center;
  padding: 2rem;
  color: var(--fg-secondary);
}

.competitions-table {
  width: 100%;
  border-collapse: collapse;
}

.competitions-table thead {
  background: var(--bg-tab-bar);
  border-bottom: 2px solid var(--border);
}

.competitions-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--fg-primary);
  font-size: var(--text-sm);
}

.competitions-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.competitions-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.02);
}

.competitions-table td {
  padding: 1rem;
  color: var(--fg-primary);
  font-size: var(--text-sm);
  vertical-align: middle;
}

.comp-title {
  font-weight: 600;
  color: var(--accent-blue);
}

.comp-statut {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.comp-statut.en_preparation {
  background: #FEF3C7;
  color: #92400E;
}

.comp-statut.en_cours {
  background: #D1FAE5;
  color: #065F46;
}

.comp-statut.termine {
  background: #DBEAFE;
  color: #0C4A6E;
}

.comp-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comp-action-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.comp-action-btn.edit {
  background: var(--accent-blue);
  color: white;
}

.comp-action-btn.edit:hover {
  background: var(--bg-sidebar);
}

.comp-action-btn.delete {
  background: var(--accent-red);
  color: white;
}

.comp-action-btn.delete:hover {
  background: #B91C1C;
}

.comp-action-btn.toggle-visibility {
  background: var(--accent-orange);
  color: white;
}

.comp-action-btn.toggle-visibility:hover {
  background: #EA6317;
}

.comp-action-btn.view {
  background: var(--fg-secondary);
  color: white;
}

.comp-action-btn.view:hover {
  background: var(--fg-primary);
}

.empty-competitions {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--fg-secondary);
}

.empty-competitions p {
  margin: 0.5rem 0;
  font-size: var(--text-sm);
}
}

.competitive-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg-secondary);
}

.competitive-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem;
}

.carousel-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--accent-blue-h);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-blue);
  transform: scale(1.2);
}

.carousel-dot:hover {
  border-color: var(--accent-blue-h);
}

/* Responsive Design */
@media (max-width: 768px) {
  .competitive-features {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .competitive-features .content {
    padding: 1.5rem;
  }

  .carousel-controls {
    gap: 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }
}
