*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Harmonisation directe avec l'image image_a5c181.png */
  --red: #f35f5f;         /* Le rouge corail/saumoné du bouton principal */
  --red-light: #ff7676;   /* Une nuance plus claire pour le survol (hover) */
  --red-soft: #fff3f3;    /* Fond léger pour les zones d'alerte */
  --red-border: #ffe3e3;
  --dark: #1e2530;        /* Un bleu-gris très sombre pour le texte principal */
  --text: #4a5568;        /* Gris pour le texte de lecture */
  --muted: #718096;       /* Gris secondaire pour les sous-titres et labels */
  --border: #edf2f7;      /* Bordure très discrète */
  --bg: #f4f7f6;          /* Le fond de page très légèrement teinté de la popup */
  --white: #ffffff;
  --radius: 20px;         /* Grands arrondis fidèles aux blocs de la popup */
  --radius-sm: 12px;      /* Arrondis secondaires pour les petits éléments */
  
  /* L'ombre portée diffuse caractéristique de la popup */
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .nav-logo span, .pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark);
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-badge {
  width: 36px; height: 36px; background: var(--white); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--red); 
  border: 2px solid var(--red); box-shadow: var(--shadow);
}
.nav-logo span { font-weight: 700; font-size: 20px; color: var(--dark); letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  box-shadow: var(--shadow);
}
.lang-btn {
  background: transparent;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 28px;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}
.lang-btn .fi {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  display: block;
  background-size: cover;
}
.lang-btn:hover { opacity: 0.75; background: var(--bg); }
.lang-btn.active { opacity: 1; background: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,0.12); }


.nav-login-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    padding: 0;
    transition: color 0.2s;
}

.nav-login-btn:hover {
    color: var(--red);
}

.nav-cta {
  background: var(--red); color: white; border: none; padding: 10px 20px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: inherit; box-shadow: 0 4px 12px rgba(243, 95, 95, 0.2);
}
.nav-cta:hover { background: var(--red-light); transform: translateY(-1px); }

/* ─── HERO ─── */
.hero { padding: 80px 40px 20px; text-align: center; max-width: 840px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: white; color: var(--dark); padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 500; margin-bottom: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-badge span { color: var(--red); font-weight: 700; }
.hero h1 { font-size: clamp(38px, 5.5vw, 54px); line-height: 1.15; color: var(--dark); margin-bottom: 24px; font-weight: 700; letter-spacing: -1px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; margin: 0 auto 40px; }
/* .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; } */
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-store-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Adaptation directe du bouton "Site Web" de la popup pour le Webstore */
.btn-webstore { 
  background: var(--red); color: white; border: none; padding: 14px 28px; 
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; 
  text-decoration: none; display: inline-flex; align-items: center; gap: 12px; 
  transition: all 0.2s; box-shadow: 0 6px 20px rgba(243, 95, 95, 0.3); 
}
.btn-webstore:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(243, 95, 95, 0.4); }
.btn-webstore svg { width: 22px; height: 22px; }
.btn-webstore-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.btn-webstore-text .top { font-size: 10px; font-weight: 500; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-webstore-text .bottom { font-size: 15px; font-weight: 700; }

.btn-secondary { background: white; color: var(--dark); border: 1px solid var(--border); padding: 14px 28px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: var(--muted); transform: translateY(-2px); }

/* ─── HERO VISUAL (Style Épuré type Mockup) ─── */
.hero-visual { max-width: 720px; margin: 40px auto 0; }
.mockup-browser { background: white; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border); overflow: hidden; }
.mockup-bar { background: #fafafa; padding: 14px 20px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-bar .url { margin-left: 14px; background: var(--bg); border-radius: 8px; padding: 4px 14px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); flex: 1; max-width: 320px; font-family: monospace; }
.mockup-content { padding: 0; position: relative; }
.mockup-page { background: #ffffff; height: 260px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.mockup-page-lines { position: absolute; inset: 0; opacity: 0.2; padding-top: 60px;}
.mockup-page-lines div { height: 12px; background: #cbd5e1; border-radius: 4px; margin: 16px 20px; }
.mockup-page-lines div:nth-child(1) { width: 40%; }
.mockup-page-lines div:nth-child(2) { width: 25%; }
.mockup-page-lines div:nth-child(3) { width: 55%; }
.banner-preview { position: absolute; top: 0; left: 0; right: 0; background: var(--red-soft); border-bottom: 1px solid var(--red-border); padding: 14px 20px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.banner-logo-mini { width: 28px; height: 28px; background: var(--white); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--red); border: 1.5px solid var(--red); }
.banner-text strong { display: block; font-size: 13px; color: var(--dark); font-family: 'Space Grotesk', sans-serif; }
.banner-text span { font-size: 12px; color: var(--red); }
.panel-preview { position: absolute; right: 20px; bottom: 20px; width: 200px; background: white; border-radius: var(--radius-sm); border: 1px solid var(--border); padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow-md); }
.panel-score { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--red) 260deg, #edf2f7 0deg); display: flex; align-items: center; justify-content: center; position: relative; }
.panel-score::after { content: ''; position: absolute; width: 44px; height: 44px; background: white; border-radius: 50%; }
.panel-score-txt { position: relative; z-index: 1; font-size: 14px; font-weight: 700; color: var(--red); font-family: 'Space Grotesk', sans-serif; }
.panel-verdict { font-size: 12px; text-align: center; color: var(--text); font-weight: 500; }

/* ─── SECTIONS ─── */
section { padding: 40px 40px; }
.container { max-width: 1040px; margin: 0 auto; }
.section-label { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; color: var(--dark); margin-bottom: 20px; font-weight: 700; letter-spacing: -0.5px; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 580px; }

/* ─── HOW IT WORKS ─── */
.how { background: white; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 50px; }
.step { background: var(--bg); padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); transition: transform 0.2s; }
.step:hover { transform: translateY(-2px); }
.step-num { width: 36px; height: 36px; background: white; color: var(--red); border: 1.5px solid var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 20px; font-family: 'Space Grotesk', sans-serif; box-shadow: var(--shadow); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.step p { font-size: 14px; color: var(--text); }

/* ─── DO / DON'T ─── */
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.limits-card { background: white; border-radius: var(--radius); padding: 36px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* ─── FAQ (ACCORDÉON) ─── */
.faq-list { max-width: 760px; margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  font-family: inherit;
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 4px 22px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  max-width: 680px;
}
.limits-card.dos { border-top: 4px solid #48bb78; }
.limits-card.donts { border-top: 4px solid var(--red); }
.limits-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.limits-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); }
.limits-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.limits-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text); }

/* ─── PRICING ─── */
.pricing { background: white; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.pricing-card { background: white; border-radius: var(--radius); padding: 40px 32px; border: 1px solid var(--border); position: relative; display: flex; flex-direction: column; transition: all 0.2s; box-shadow: var(--shadow); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card.popular { border: 2px solid var(--red); }
.popular-badge { position: absolute; top: -14px; left: 32px; background: var(--red); color: white; padding: 4px 14px; border-radius: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.pricing-name { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.pricing-analyses { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 20px; }
.pricing-price { font-size: 52px; color: var(--red); font-weight: 700; line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 22px; font-weight: 500; color: var(--muted); }
.pricing-perunit { font-size: 13px; color: #48bb78; font-weight: 600; margin-bottom: 24px; }
.pricing-detail { font-size: 14px; color: var(--text); margin-bottom: 32px; flex: 1; }
.btn-pricing { width: 100%; padding: 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; text-align: center; text-decoration: none; }
.btn-pricing.outline { background: var(--bg); color: var(--dark); border: 1px solid var(--border); }
.btn-pricing.outline:hover { background: white; border-color: var(--muted); }
.btn-pricing.filled { background: var(--red); color: white; border: none; box-shadow: 0 4px 12px rgba(243, 95, 95, 0.2); }
.btn-pricing.filled:hover { background: var(--red-light); }

.btn-pricing-soon {
    display: block; width: 100%; padding: 12px;
    border-radius: var(--radius-sm); border: 1px solid #e2e8f0;
    background: #f8fafc; color: #94a3b8;
    font-size: 14px; font-weight: 600; text-align: center;
    cursor: default;
}

/* ─── AUTH (Imitation fidèle des cartes de la popup) ─── */
.auth-section { background: white; }
.auth-tabs { display: flex; background: #e2e8f0; border-radius: var(--radius-sm); padding: 4px; width: fit-content; margin-bottom: 32px; }
.auth-tab { padding: 8px 24px; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 700; border: none; background: none; font-family: inherit; color: var(--muted); transition: all 0.2s; }
.auth-tab.active { background: white; color: var(--dark); box-shadow: var(--shadow); }
.auth-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.auth-form-wrap { background: white; border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); box-shadow: var(--shadow); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #f4f7f6 inset;
    box-shadow: 0 0 0px 1000px #f4f7f6 inset;
    -webkit-text-fill-color: var(--text);
    transition: background-color 5000s ease-in-out 0s;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.form-group input { width: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg); outline: none; transition: all 0.2s; }
.form-group input:focus { border-color: var(--red); background: white; box-shadow: 0 0 0 3px rgba(243, 95, 95, 0.1); }
/* ─── INPUT OTP ─── */
.form-group input.input-otp { text-align: center; font-size: 24px; letter-spacing: 8px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.form-submit { width: 100%; padding: 14px; background: var(--red); color: white; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; box-shadow: 0 4px 12px rgba(243, 95, 95, 0.2); }
.form-submit:hover { background: var(--red-light); }
.auth-info h3 { font-size: 32px; margin-bottom: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
.auth-perks { display: flex; flex-direction: column; gap: 16px; }
.auth-perk { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text); font-weight: 500; }
.auth-perk-icon { width: 36px; height: 36px; background: white; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; box-shadow: var(--shadow); }

/* ─── DASHBOARD (Inspiré des boîtes statistiques de la popup) ─── */
.dashboard-section { background: white; }
.dashboard-preview { background: var(--bg); border-radius: var(--radius); padding: 40px; border: 1px solid var(--border); margin-top: 40px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-avatar { width: 44px; height: 44px; background: var(--white); border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); font-weight: 700; font-size: 16px; font-family: 'Space Grotesk', sans-serif; box-shadow: var(--shadow); } 
.dash-user-info strong { display: block; font-size: 16px; color: var(--dark); }
.dash-user-info span { font-size: 13px; color: var(--muted); }

/* Recréation parfaite des blocs de statistiques blancs à grands arrondis */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 12px; }
.dash-stat { background: white; border-radius: var(--radius); padding: 28px; border: none; text-align: center; box-shadow: var(--shadow); }
.dash-stat-val { font-size: 38px; color: var(--red); line-height: 1; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.dash-stat-label { font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 500; }

.dash-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } 
.btn-export-csv { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 6px 14px; border: 1px solid var(--red); color: var(--red); background: transparent; border-radius: 6px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-export-csv:hover { background: var(--red); color: white; } 

.charte-section { background: white; border-top: 1px solid var(--border); }

/* Sections source pour les modales Charte/CGV : gardées dans le DOM (le JS lit
   leur innerHTML pour remplir les <dialog>), mais retirées du flux visuel et
   de la navigation clavier/lecteur d'écran, qui passent désormais par les modales. */
.legal-source-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.charte-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; margin-top: 40px; }
.charte-title { font-size: 16px; margin-bottom: 8px; }
.charte-text { font-size: 14px; color: var(--text); margin: 0 0 14px 0; text-align: justify; }
.charte-version { font-size: 11px; color: var(--text); text-align: justify; }

/* ─── DISCLAIMER & FOOTER ─── */
.disclaimer { background: #edf2f7; border-top: 1px solid var(--border); padding: 32px 40px; text-align: center; }
.disclaimer p { font-size: 13px; color: var(--muted); max-width: 740px; margin: 0 auto; line-height: 1.6; }

.disclaimer-discret { text-align: center; padding: 10px 40px 10px 40px; background: #edf2f7; }
.disclaimer-txt {font-size: 12px; color: var(--text); max-width: 900px; margin: 0 auto; line-height: 1.6; font-weight: 400; }

footer { background: var(--dark); color: #a0aec0; padding: 20px 40px; }
.footer-inner { max-width: 1040px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-badge { width: 32px; height: 32px; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--red); border: 2px solid var(--red); }
.footer-logo span { color: white; font-size: 18px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.footer-copy { font-size: 13px; margin-top: 10px; padding-top: 15px; border-top: 1px solid #2d3748; }

/* ─── AJUSTEMENT DES LIENS DU FOOTER ─── */
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links a {
  color: #a0aec0; /* Aligné sur la couleur par défaut de ton footer */
  text-decoration: none;
  font-size: 13px; /* Aligné sur la taille de ton .footer-copy */
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red); /* Rappel subtil de ta couleur d'action au survol */
}

.footer-separator {
  color: var(--text); /* Reprend ton gris intermédiaire pour rester discret */
  font-size: 13px;
  user-select: none;
}

/* Ajustement responsive pour mobile (ton breakpoint à 768px) */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
  .hero { padding: 130px 20px 40px; }
  .steps, .limits-grid, .pricing-grid, .auth-layout, .dash-stats { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── NAV LOGO IMAGE ─── */
.nav-logo-img { height: 32px; width: auto; object-fit: contain; }

/* ─── HERO VISUAL ─── */
.hero-visual { padding: 0 40px; }

/* ─── MOCKUP DOTS ─── */
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

/* ─── MOCKUP PANEL TITLE ─── */
.mockup-panel-title { font-size: 10px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }

/* ─── PRICING ─── */
.pricing-grid-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pricing-card-free { border: 1px dashed var(--red); }
.pricing-perunit-red { color: var(--red); }
.btn-pricing--free { background: var(--bg);  color: var(--red); border: 1px solid var(--red); font-size: 12px; }


/* ─── FORMS ─── */
.form-error { color: var(--red); margin-top: 10px; font-size: 14px; font-weight: 500; }
.form-forgot-wrap { text-align: right; margin-top: -10px; margin-bottom: 15px; }
.form-section-title { font-family: 'Space Grotesk', sans-serif; color: var(--dark); margin-bottom: 15px; font-size: 20px; }
.form-section-desc { font-size: 14px; color: var(--text); margin-bottom: 20px; }
.form-label-bold { font-weight: 600; }
.form-resend-wrap { margin-top: 15px; font-size: 13px; }

/* ─── BUTTONS LINK STYLE ─── */
.btn-link { background: none; border: none; color: var(--text); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 0; font-family: inherit; }
.btn-link-red { color: var(--red); font-weight: 600; }
.btn-link-sm { font-size: 13px; margin-top: 15px; display: block; }

/* ─── TEXT UTILITIES ─── */
.text-dark { color: var(--dark); }
.text-muted { color: var(--text); }

/* ─── AUTH LOGGED BOX ─── */

/* ─── DASHBOARD ─── */
.dash-header { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 25px; }
.dash-user-info { display: flex; flex-direction: column; text-align: left; }
.dash-user-info strong { font-size: 18px; color: var(--dark); }
.dash-user-info span { font-size: 14px; color: #10b981; font-weight: 500; }
.dash-stats-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 35px; }
.dash-stat-cta { display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(255, 95, 87, 0.03); }
.btn-logout { background: none; border: 1px solid #cbd5e1; color: var(--text); padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s; font-family: inherit; }
.btn-logout:hover { border-color: var(--red); color: var(--red); }
.btn-stripe { margin: 0; width: auto; padding: 12px 24px; font-size: 14px; }
.dash-history-section { text-align: left; }
.dash-history-title { font-family: 'Space Grotesk', sans-serif; font-size: 18px; color: var(--dark); margin: 0; }
.table-scroll { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.history-thead-row { border-bottom: 2px solid var(--border); color: var(--text); font-weight: 600; }
.th-cell { padding: 10px 5px; }
.th-cell-right { text-align: right; }

/* ─── FOOTER ─── */
.footer-logo-img { height: 28px; width: auto; object-fit: contain; }

.toast {
  position: fixed; 
  top: 80px; 
  left: 30px;
  background: white; 
  color: var(--dark);
  border-left: 4px solid var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  padding: 14px 20px; 
  border-radius: 10px;
  font-size: 14px; 
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0; 
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99999; /* Sécurité pour passer au-dessus du tdb */
  max-width: 320px;
  pointer-events: none;
}

.extension-demo-container {
  max-width: 1000px;
  margin: 20px auto 40px;
  padding: 40px 40px 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.carousel-view {
  position: relative;
  min-height: 380px; 
  display: flex;
  align-items: center;
}

.carousel-slide {
  display: none;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.carousel-slide.active {
  display: grid;
  opacity: 1;
}

/* Texte explicatif à gauche */
.slide-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slide-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-safe { background: #e6fffa; color: #047487; }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-info { background: #ebf8ff; color: #2b6cb0; }

.slide-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  color: var(--dark);
}

.slide-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center; 
  padding: 20px 0;
}

/* Fenêtre de l'extension à droite */
.mockup-window {
  justify-self: center;
  width: 330px; /* Fidèle à la largeur d'une popup d'extension Chrome */
  height: 400px;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Cas particulier pour la capture du bandeau horizontal */
.mockup-window.window-horizontal {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 16/9;
  padding: 10px;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-horizontal {
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* Boutons et indicateurs en bas */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
}

.carousel-arrow {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.carousel-dots {
  display: flex;
  gap: 10px;
}

.carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-dots .dot.active {
  background: var(--red);
  width: 28px;
  border-radius: 10px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .carousel-slide.active {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .slide-badge { align-self: center; }
  .carousel-view { min-height: auto; }
  .extension-demo-container { padding: 28px 20px 24px; margin: 24px auto 32px; }
}

/* ─── ENFIN UN ALIGNEMENT PARFAIT POUR LA CASE À COCHER ─── */
.auth-form-wrap .form-group-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start; /* Aligne le haut de la case avec le haut du texte */
  justify-content: flex-start;
  gap: 10px;
  margin: 20px 0 30px 0;
  padding: 0 2px;
}

/* On force l'annulation du style générique du label */
.auth-form-wrap .form-group-checkbox label {
  display: inline !important; /* Force le texte à rester à côté de la case */
  font-size: 13px !important;
  font-weight: 400 !important; /* Supprime le gras indésirable visible sur image_192435.png */
  color: var(--text) !important;
  line-height: 1.4 !important;
  cursor: pointer;
  margin: 0 !important;
}

.auth-form-wrap .form-group-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px; /* Aligne parfaitement la case avec la première ligne de texte */
  cursor: pointer;
  flex-shrink: 0; /* Empêche la case de se déformer */
}

/* ─── MODALE DIALOG NATIVE (CHARTE) ─── */
#charte-modal,
#cgv-modal {
  border: none;
  border-radius: var(--radius);
  padding: 30px;
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  box-shadow: var(--shadow-md);
  font-family: 'Inter', sans-serif;
  background: var(--white);

  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
}

/* Effet d'arrière-plan quand la modale est ouverte */
#charte-modal::backdrop,
#cgv-modal::backdrop {
  background: rgba(30, 37, 48, 0.4);
  backdrop-filter: blur(4px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--dark);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  overflow-y: auto;
  max-height: 60vh;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  padding-right: 10px;
}

/* Style des titres internes à la charte dans la modale */
.modal-body h3 {
  font-size: 16px;
  color: var(--dark);
  margin: 20px 0 8px 0;
}
.modal-body h3:first-child {
  margin-top: 0;
}