/* ============================================================
   CORE — chargé sur TOUTES les pages (topbar, footer, boutons,
   modale de connexion, icônes...). Issu du split de style.css le
   30 août 2026, cf. Journal des modifications.
   ============================================================ */

/* =====================================================
   VARIABLES
   ===================================================== */
:root {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-text: #1c2b3a;
  --color-muted: #6b7280;
  --color-primary: #c8973f;
  /* Variante foncée du doré, réservée au TEXTE (badges, étiquettes, liens) :
     le doré clair (#c8973f) descend à ~2.6:1 de contraste sur fond blanc/crème,
     bien sous le seuil WCAG AA (4.5:1). Cette teinte passe ~5-6:1 partout où
     elle est utilisée. Le doré clair reste inchangé pour fonds/bordures/icônes. */
  --color-primary-text: #7d5c1a;
  --color-primary-dark: #a67a2e;
  --color-navy: #1f3b53;
  --color-border: #e2e0da;
  --topbar-height: 60px;
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 0px;
  --transition: 0.25s ease;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}


/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.topbar__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}
.topbar__logo-icon {
  height: 26px;
  width: auto;
  display: block;
}

/* Barre du haut simplifiée, affichée sur les pages de la formation
   (formation.html et les pages de module) : fond noir, logo centré,
   qui ramène au sommaire de la formation. */
.topbar--formation {
  justify-content: center;
  background: #000;
  border-bottom: none;
}
.topbar--formation .topbar__logo {
  font-size: 1.2rem;
  color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.topbar--formation .topbar__logo-icon {
  height: 30px;
}

/* essai-gratuit.html est accessible sans connexion et affiche des CTA
   marketing (topbar__auth) en permanence, contrairement aux autres
   pages formation où ce bloc reste masqué (id="topbarAuth" hidden)
   jusqu'à connexion. Le logo centré en position absolute entrait donc
   en collision avec ces CTA : cette variante annule le centrage pour
   revenir à une disposition logo-gauche / CTA-droite classique. */
.topbar--formation-preview {
  justify-content: space-between;
}
.topbar--formation-preview .topbar__logo {
  position: static;
  left: auto;
  transform: none;
}

/* Zone connexion / déconnexion, à droite de la barre noire de la formation */
.topbar__auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__auth-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn--sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}
.btn--ghost-dark {
  background: transparent;
  border: 1px solid #45433f;
  color: #fff;
}
.btn--ghost-dark:hover {
  background: #1a1a19;
}

.topbar__nav {
  display: flex;
  gap: 24px;
}
.topbar__nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}
.topbar__nav a:hover.topbar__nav a.active-page {
  color: var(--color-primary-text);
}

/* Bouton hamburger, masqué par défaut : n'apparaît qu'en dessous de
   900px, et seulement sur les pages qui l'ont dans leur markup
   (voir règle :has() dans la section RESPONSIVE plus bas). */
.topbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin-left: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.topbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.topbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =====================================================
   TAGS DE MODULE
   ===================================================== */
.module__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
  background: #f5e9cc;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.module__tag--bonus {
  color: #b4670a;
  background: #fff1de;
}
.module__intro {
  color: var(--color-muted);
  font-size: 1.02rem;
  margin-bottom: 20px;
}


/* =====================================================
   LISTES DE CONTENU
   ===================================================== */
.content__list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #3a3c40;
  line-height: 1.8;
}
.content__list li { margin-bottom: 4px; }

.content__list--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px 24px;
  list-style: disc;
}

.content__list--numbered {
  padding-left: 24px;
}

.content__list--pins {
  list-style: none;
  padding-left: 0;
}
.content__list--pins li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content__list--pins .part-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* =====================================================
   FICHE PRATIQUE (modèle)
   ===================================================== */
.fiche {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.fiche__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.fiche__row:last-child { border-bottom: none; }
.fiche__icon {
  font-size: 1.3rem;
  line-height: 1.3;
}
.fiche__row strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.fiche__row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}


/* =====================================================
   BOUTONS (partagés landing / blog / influenceurs)
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-dark);
}
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-bg);
}
.btn--login {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  color: var(--color-primary-text);
  border: 1px solid color-mix(in srgb, var(--color-primary) 45%, transparent);
}
.btn--login:hover {
  background: color-mix(in srgb, var(--color-primary) 16%, transparent);
  border-color: var(--color-primary);
}
.btn--login .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn--lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}
.btn--full {
  width: 100%;
}
.btn--nav {
  padding: 9px 16px;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Le bouton "Rejoindre" dans la barre du haut : la topbar passe en 3 zones */
.topbar {
  gap: 24px;
}
.topbar__nav {
  flex: 1;
  justify-content: center;
}


/* =====================================================
   LANDING, HERO
   ===================================================== */
.lp-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 56px;
  max-width: 1280px;
  margin: 0 auto;
}
.lp-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-text);
  margin: 0 0 12px;
}
.lp-hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.lp-hero__subtitle {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin: 0 0 28px;
  max-width: 540px;
}
.lp-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lp-hero__sample {
  margin: 0 0 10px;
}
.lp-hero__sample a {
  font-size: 0.92rem;
  color: var(--color-primary-text);
  text-decoration: none;
  font-weight: 600;
}
.lp-hero__sample a:hover {
  color: var(--color-primary-text);
}
.lp-hero__guarantee {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}
.lp-hero__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  max-height: 460px;
}


/* =====================================================
   LANDING, PROGRAMME (modules)
   ===================================================== */
.lp-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.lp-module {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
}
.lp-module:hover {
  border-color: var(--color-primary);
  background: #fbf6e8;
}
.lp-module span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-primary-text);
  background: #f5e9cc;
  border-radius: 8px;
  padding: 4px 8px;
}
.lp-bonus-highlight {
  background: #fff1de;
  border: 1px solid #f3d8ab;
  border-radius: 14px;
  padding: 24px 28px;
}
.lp-bonus-highlight__tag {
  font-weight: 700;
  color: #b4670a;
  margin: 0 0 6px;
}
.lp-bonus-highlight h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.lp-bonus-highlight p {
  margin: 0;
  color: #7a5210;
}


/* =====================================================
   LANDING, OFFRE / PRIX
   ===================================================== */
.lp-offer {
  padding: 72px 24px;
  background: linear-gradient(180deg, #faf3e2 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.lp-offer--compact {
  padding: 48px 24px;
}
.lp-offer__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px -20px rgba(31, 59, 83, 0.25);
  padding: 44px 40px;
  max-width: 620px;
  width: 100%;
  text-align: center;
}
.lp-offer__tag {
  display: inline-block;
  background: #f5e9cc;
  color: var(--color-primary-text);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.lp-offer__card h2 {
  font-size: 1.7rem;
  margin: 0 0 12px;
}
.lp-offer__desc {
  color: var(--color-muted);
  margin: 0 0 24px;
}
.lp-offer__price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.lp-offer__book {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
}
.lp-offer__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.lp-offer__price-old {
  font-size: 1.4rem;
  color: var(--color-muted);
  text-decoration: line-through;
}
.lp-offer__price-new {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-primary-text);
}
.lp-offer__price-note {
  font-size: 0.85rem;
  color: var(--color-muted);
}


/* =====================================================
   PAGE HEADER (blog, influenceurs...)
   ===================================================== */
.page-header {
  text-align: center;
  padding: 56px 24px 32px;
  max-width: 720px;
  margin: 0 auto;
}
.page-header h1 {
  font-size: 2.1rem;
  margin: 8px 0 14px;
}
.page-header__lead {
  color: var(--color-muted);
  font-size: 1.02rem;
  margin: 0 0 10px;
}
.page-header__sample {
  margin: 6px 0 0;
}
.page-header__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 22px;
}
.page-header__stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-text);
  background: #f5e9cc;
  padding: 8px 16px;
  border-radius: 999px;
  margin: 0;
}
.page-header__stat .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.page-header__quote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 auto 18px;
  padding: 18px 8px;
  max-width: 600px;
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}


/* =====================================================
   ARTICLE DE BLOG
   ===================================================== */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.article__back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.article__back:hover {
  color: var(--color-primary-text);
}
.article__cover {
  margin: 0 0 28px;
}
.article__cover img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.article__header h1 {
  font-size: 2rem;
  margin: 10px 0 10px;
}
.article__body h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}
.article__body p {
  color: #3a3c40;
  line-height: 1.75;
  margin-bottom: 16px;
}
.article__cta {
  background: #fbf6e8;
  border: 1px solid #e4defe;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}
.article__cta p {
  margin-bottom: 16px;
}


/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 56px 56px 40px;
  background: var(--color-text);
  color: #c8c8ce;
}
.site-footer .topbar__logo {
  color: #fff;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__title {
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  font-size: 0.9rem;
}
.site-footer__col a {
  color: #c8c8ce;
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__col a:hover {
  color: #fff;
}
.site-footer__col p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}


/* =====================================================
   RESPONSIVE, LANDING / BLOG / INFLUENCEURS
   ===================================================== */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding: 40px 24px; }
  .lp-hero__media { order: -1; }
  .lp-section { padding: 48px 24px; }
  .lp-leadmagnet { grid-template-columns: 1fr; }
  .lp-leadmagnet__success { grid-column: 1; }
  .blog-grid { padding: 24px 24px 56px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .topbar__nav { order: 3; width: 100%; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
  /* Variante avec menu hamburger (pages qui incluent #topbarBurger) :
     remplace le repli en 3 lignes ci-dessus par un vrai menu mobile,
     nav cachée par défaut et ouverte au clic. */
  .topbar:has(.topbar__burger) {
    flex-wrap: nowrap;
    height: var(--topbar-height);
    padding: 0 16px;
    gap: 8px;
  }
  .topbar:has(.topbar__burger) .topbar__burger { display: flex; }
  .topbar:has(.topbar__burger) .topbar__nav {
    order: initial;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 4px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition), opacity var(--transition);
    z-index: 99;
  }
  .topbar:has(.topbar__burger) .topbar__nav.is-open {
    max-height: 320px;
    opacity: 1;
    overflow: auto;
    box-shadow: 0 16px 36px rgba(20, 20, 20, 0.14);
  }
  .topbar:has(.topbar__burger) .topbar__nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .topbar:has(.topbar__burger) .topbar__nav a:last-child { border-bottom: none; }
  .topbar:has(.topbar__burger) .account-widget__name { max-width: 90px; }
  /* Le CTA persistant "Aller à la formation" (hors #topbarAccount, à
     côté du burger) et le nom textuel du logo prenaient toute la
     largeur disponible et écrasaient le burger/le reste du header.
     Sur mobile : on ne garde que l'icône du logo, et ce CTA redondant
     avec celui du hero + celui du menu déroulant disparaît. */
  .topbar:has(.topbar__burger) .topbar__logo-text { display: none; }
  .topbar:has(.topbar__burger) > .btn--primary.btn--nav { display: none; }
  .lp-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; padding: 0 16px 16px; }
  .lp-gallery__item { grid-column: span 1; }
  .lp-gallery__item--tall { grid-row: span 1; }
  .lp-gallery--strip { grid-template-columns: 1fr; }
  .lp-founder { grid-template-columns: 1fr; text-align: center; }
  .lp-founder__media img { max-width: 160px; margin: 0 auto; }
}


/* =====================================================
   ICÔNES (remplacent les emojis par des illustrations SVG minimalistes)
   ===================================================== */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}
.icon--danger { color: #d64545; }

/* Icônes utilisées comme "gros" pictogrammes de carte (module__intro etc.) */
.lp-card__icon .icon,
.methode__icon .icon,
.fiche__icon .icon {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}
.callout--danger .fiche__icon .icon,
.callout--danger .methode__icon .icon {
  color: #d64545;
}
.lp-card__icon {
  color: var(--color-primary);
}

/* Titres d'encart avec icône : alignement propre */
.callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.callout__title .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lp-hero__guarantee,
.lp-offer__test-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lp-hero__guarantee .icon,
.lp-offer__test-note .icon {
  color: var(--color-primary);
  margin-top: 2px;
}
.lp-offer__test-note .icon { color: #b4670a; }

.lp-offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.lp-offer__list .icon {
  color: #2f9e5c;
  margin-top: 3px;
}

.lp-leadmagnet__success-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.icon--circle {
  padding: 3px;
  border-radius: 50%;
  background: #2f9e5c;
  color: #fff;
}

/* Bouton fermer / bouton sommaire : icônes remplaçant ☰ et ✕ */
.sidebar-toggle__icon .icon,
.callout__close .icon {
  width: 16px;
  height: 16px;
}

/* Badge numéroté (remplace les emojis 1️⃣2️⃣3️⃣4️⃣) */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Petit feu tricolore (remplace l'emoji 🚦, pour "JE DÉCIDE" / "NIVEAU") */
.icon-traffic {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px;
  border-radius: 6px;
  background: #1f2023;
}
.icon-traffic span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}
.icon-traffic span:nth-child(1) { background: #e05252; }
.icon-traffic span:nth-child(2) { background: #e0a020; }
.icon-traffic span:nth-child(3) { background: #3fb56a; }


/* =====================================================
   COMPTE (lending), bouton connexion + carte profil
   ===================================================== */
.topbar__account {
  display: flex;
  align-items: center;
  margin-left: 4px;
}
.account-widget {
  position: relative;
}
.account-widget__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 14px 4px 4px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background var(--transition);
}
.account-widget__trigger:hover {
  background: var(--color-bg);
}
.account-widget__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.account-widget__avatar .icon {
  width: 16px;
  height: 16px;
}
.account-widget__name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-widget__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20, 20, 20, 0.14);
  padding: 14px;
  min-width: 240px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-widget__cta {
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.account-widget__cta:hover {
  background: var(--color-primary-dark);
}
.account-widget__pending {
  display: block;
  width: 100%;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-text);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  border-radius: 10px;
  text-align: center;
  margin: 0;
  padding: 10px 12px;
  line-height: 1.4;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), border-color var(--transition);
}
.account-widget__pending:hover {
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-color: var(--color-primary);
}
.account-widget__logout {
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
}
.account-widget__logout:hover {
  color: var(--color-text);
}


/* =====================================================
   MODALE DE CONNEXION (lending)
   ===================================================== */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, 0.55);
}
.login-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
  display: flex;
}
.login-modal__close:hover {
  color: var(--color-text);
}
.login-modal__close .icon {
  width: 20px;
  height: 20px;
}
.login-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-text);
  margin: 0 0 8px;
}
.login-modal__title {
  font-size: 1.4rem;
  margin: 0 0 10px;
}
.login-modal__lead {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 20px;
}
.login-modal__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.login-modal__tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.login-modal__tab.is-active {
  color: var(--color-primary-text);
  border-bottom-color: var(--color-primary);
}
.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-modal__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}
.login-modal__form input {
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: inherit;
}
.login-modal__note {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin: -4px 0 0;
}
.login-modal__error {
  font-size: 0.85rem;
  color: #b3261e;
  background: #fbeae8;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
}
.login-modal__success {
  font-size: 0.85rem;
  color: #1f7a44;
  background: #e4f7ea;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
}

/* Variante plus large de la modale, pour le carnet Excel (texte + liste + formulaire) */
.login-modal__card--lead {
  max-width: 560px;
}
.login-modal__list {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}


/* =====================================================
   BOUTON SUPPORT (flottant, injecté sur toutes les pages via script.js)
   ===================================================== */
.support-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(20, 20, 18, 0.25);
  transition: background var(--transition), transform var(--transition);
}
.support-fab:hover,
.support-fab:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.support-fab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .support-fab {
    right: 14px;
    bottom: 14px;
    padding: 12px;
  }
  .support-fab span {
    display: none;
  }
}

/* =====================================================
   RESET DE BASE (universel)
   ===================================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3 { line-height: 1.2; }

/* Règle globale : tout élément avec l'attribut HTML [hidden] doit
   rester masqué même si un composant (ex: .login-modal) force son
   propre display en dehors du flux normal. */
[hidden] {
  display: none !important;
}


