/* =========================
   Chat / Results — hide Contact section
   (Contact is available via footer / inline links; it clutters the flow)
   ========================= */

body[data-page="chat"] #contact,
body[data-page="results"] #contact {
  display: none !important;
}

:root {
  --header-h: 72px;
  --bg-page: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f5f5f7;
  --accent: #d84232;
  --accent-soft: #fbeaea;
  --accent-blue-soft: #e3f2fd;
  --accent-blue-text: #1565c0;
  --accent-red-text: #b71c1c;
  --text-main: #222222;
  --text-muted: #6b6f76;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html{ scroll-padding-top: calc(var(--header-h) + 12px); }

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

/* Base links: keep navigation readable (black), accents only where needed */
a,
a:visited{
  color: var(--text-main);
}
a:hover{
  color: rgba(15,23,42,0.86);
}

/* Header navigation links */
.site-header a,
.site-header a:visited{
  color: var(--text-main);
}
.site-header a:hover{
  color: var(--accent);
}

/* Auth helper links under forms (Forgot password / Sign up / Log in) */
.auth-helper a,
.auth-helper a:visited{
  color: var(--accent) !important;
}

/* CTA buttons always white text even if they are <a> */
.btn-primary,
.btn-primary:visited,
.btn-primary a,
.btn-primary a:visited{
  color: #fff !important;
}

/* Auth cards: one canonical width */
body[data-page="auth"] .auth-card{
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
body[data-page="auth"] .oauth-btn{
  width: 100%;
}



/* Member header: tabs + language options should be neutral (black), not brand red */
body[data-page="dashboard"] .member-header a,
body[data-page="profile"] .member-header a{
  color: rgba(15,23,42,0.92);
}
body[data-page="dashboard"] .member-header a:visited,
body[data-page="profile"] .member-header a:visited{
  color: rgba(15,23,42,0.92);
}

/* Member header: tab default should be black; active stays black with soft accent background */
body[data-page="dashboard"] .member-tab,
body[data-page="profile"] .member-tab{
  color: rgba(15,23,42,0.92) !important;
}

/* Member header: dropdown options black */
body[data-page="dashboard"] .lang-menu a,
body[data-page="profile"] .lang-menu a{
  color: rgba(15,23,42,0.92) !important;
}

/* Profile card width should match auth card (Log in) */
body[data-page="profile"] .member-card{
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
body[data-page="profile"] .member-content{
  display: flex;
  justify-content: center;
}

/* Simple, consistent form spacing */
.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.actions{
  margin-top: 18px;
}

/* Layout helpers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-heading {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* Sur desktop, les intros s'étendent sur toute la largeur */
@media (min-width: 1024px) {
  .section-lead {
    max-width: 100%;
  }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.brand-tagline {
  font-size: 0.86rem;
  line-height: 1.15;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compacte le bloc logo + texte */
.brand-text {
  line-height: 1.1;
  gap: 0;              /* on annule le gap */
}

.brand-name {
  margin-bottom: 2px;  /* petit espace contrôlé */
}

.brand-tagline {
  margin-top: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-languages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  font-size: 0.92rem;
}

.nav-lang-current {
  font-weight: 600;
}

.nav-lang-sep {
  opacity: 0.6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border-radius: var(--radius-pill);
  padding: 9px 22px;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-ghost {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 184, 0.65);   /* gris doux */
  background: rgba(148, 163, 184, 0.06);     /* léger fond gris */
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(216, 66, 50, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(216, 66, 50, 0.45);
}

/* Bouton Log in spécifique au mobile dans le header */
.header-login-mobile {
  display: none;                 /* caché par défaut (desktop) */
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #111827;
  border-radius: 999px;
}

/* ==========
   Hero – Perplexity-style
   ========== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;        /* comme ChatGPT : contenu plein écran */
  color: #ffffff;
  overflow: hidden;
}

/* Fond photo + overlay sombre */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.78)),
    url("../img/ui/hero-desktop.webp") center center / cover no-repeat;
  transform: translateZ(0);
}

/* Bas de l’image : on coupe net, plus de dégradé blanc */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;                   /* dégradé désactivé */
}

/* Conteneur : titre en haut, bloc hero-bottom poussé vers le bas */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 72px 0 32px;        /* peu de padding bas => bloc plus bas */
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Titre au-dessus de la tête, avec air dessous */
.hero-title {
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}



/* Scope clarification line (positioned around the shopper's shoulders) */
.hero-scope{
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(920px, 92vw);
  margin: 0;
  padding: 0 8px;
  font-size: 1.22rem; /* ~18–19px */
  line-height: 1.35;
  color: rgba(255,255,255,0.92);
  text-align: center;
  pointer-events: auto;
}
.hero-scope strong{
  font-weight: 700;
}
.hero-scope-link{
  margin-left: 6px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.85);
  padding-bottom: 1px;
  color: rgba(255,255,255,0.95) !important;
}
.hero-scope-link:visited{
  color: rgba(255,255,255,0.95) !important;
}
.hero-scope-link:hover{
  border-bottom-color: rgba(255,255,255,0.95);
}

@media (max-width: 640px){
  .hero-scope{
    top: 46%;
    width: 92vw;
    font-size: 1.12rem;
  }
}

/* Bloc du bas (barre + note + lien) collé vers le bas de l’écran */
.hero-bottom {
  margin-top: auto;            /* pousse tout le bloc vers le bas */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;                    /* espacement régulier entre les 3 lignes */
}

/* Carte quasi invisible : juste le conteneur de la barre */
.hero-chat {
  width: 100%;
  max-width: 540px;
}

.hero-intent-bar {
  display: flex;
  align-items: center;
  gap: 0;

  width: 100%;
  max-width: 720px;
  margin: 0 auto;

  padding: 3px;
  border-radius: 999px;

  background: #ffffff; /* blanc assumé, net */
  border: 1px solid rgba(15, 23, 42, 0.16); /* liseré volontaire */
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);

  overflow: hidden; /* masque tout dépassement */
}

/* Champ d'intention */
.hero-intent-input {
  flex: 1;
  border: none;
  padding: 10px 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  outline: none;
  background: transparent;
  color: #111827;
}

.hero-intent-input::placeholder {
  color: #9ca3af;
}

/* CTA à droite dans la même barre */
.hero-intent-btn {
  flex: 0 1 auto;              /* allow shrink on small screens */
  min-width: 0;                /* required for flex shrink on iOS */
  border: none;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;         /* desktop/tablet: keep one line */
}


/* Optionnel : bouton micro, prêt pour plus tard */
.hero-intent-voice {
  border: none;
  padding: 0 14px;
  font-size: 1rem;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
}

/* Note "Electronics only…" – importante mais pas dominante */
.hero-note {
  margin: 2px 0 0;             /* pas de gros bloc de marge par défaut */
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Tous les liens hero-more-link (inline + Learn more) */
.hero-more-link {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;                   /* espacement géré par gap du parent */
}

/* Empêche le violet après clic */
.hero-more-link:visited {
  color: rgba(255, 255, 255, 0.95);
}

/* ==========
   Hero – responsive
   ========== */

/* Tablettes / petits laptops */
@media (max-width: 960px) {
  .hero {
    min-height: 92vh;
  }

  .hero-inner {
    padding: 64px 20px 28px;   /* un peu moins de marge en bas */
  }

  .hero-title {
    font-size: 2.6rem;
  }
}

/* =========================
   Hero – layout mobile
   ========================= */
@media (max-width: 640px) {
  /* Image de fond (mobile) */
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.78)),
      url("../img/ui/hero-mobile.webp") center 30% / cover no-repeat;
  }

/* Le hero remplit tout l'écran, avec peu de marge en bas
     pour que le champ + note restent visibles au-dessus
     de la barre du navigateur */
  .hero {
    min-height: 100vh;
  }

  .hero-inner {
    padding-top: 80px;
    padding-bottom: 18px;      /* très peu de padding bas */
    padding-inline: 20px;
  }

  /* Titre légèrement réduit mais encore fort */
  .hero-title {
    font-size: 2.1rem;
    line-height: 1.15;
  }

.hero-intent-input{
    padding: 9px 12px;
    font-size: 16px;          /* <-- clé : stop zoom iOS */
    line-height: 1.2;
  }

    .hero-intent-btn{
    padding: 9px 12px;
    font-size: 0.86rem;
    white-space: normal;      /* allow wrap on FR/ES */
    line-height: 1.1;
    text-align: center;
  }

  /* Texte “Electronics only…” + Learn more */
  .hero-note {
    font-size: 0.96rem;
  }

  .hero-more-link {
    font-size: 0.96rem;
  }

  /* Bloc du bas (champ + note + Learn more) bien collé en bas */
  .hero-bottom {
    margin-top: auto;
    gap: 6px;                  /* espace compact entre les trois lignes */
    padding-bottom: 8px;       /* petit coussin au-dessus de la barre d’URL */
  }
}

/* Benefits */

.section-benefits {
  background: var(--bg-page);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.benefit-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.benefit-title {
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.benefit-body {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* =====================
   How it works – steps + chat
   ===================== */

.section-how {
  background: #ffffff;
}

.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 32px;
  margin-top: 32px;
  align-items: flex-start;
}

.steps-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.steps-title {
  font-size: 1.3rem;
  margin: 0 0 14px;
}

.steps-list {
  padding-left: 20px;
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.steps-list li + li {
  margin-top: 6px;
}

.steps-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Bloc citation */
.testimonial-block {
  margin-top: 18px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: 0.9rem;
  color: var(--accent-red-text);
}

.testimonial-source {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Carte de chat à droite */
.chat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  font-size: 0.96rem;
}

.chat-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.chat-header-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
}

.chat-avatar-dimwa {
  background: var(--accent-soft);
  color: var(--accent-red-text);
}

.chat-avatar-you {
  background: var(--accent-blue-soft);
  color: var(--accent-blue-text);
}

.chat-bubble {
  flex: 1;
  border-radius: 16px;
  padding: 9px 12px;
  background: #f9fafb;
}

.chat-row-dimwa .chat-bubble {
  background: #fff0f0;
}

.chat-row-you .chat-bubble {
  background: #e9f3ff;
}

.chat-bubble-system {
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 0.88rem;
  border-radius: 12px;
  background: #f9fafb;
  color: var(--text-muted);
}

/* Stack sur mobile */
@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-card {
    order: -1;            /* chat au-dessus des explications si tu préfères */
  }
}

/* Comparison */

.section-comparison {
  background: #ffffff;
}

.comparison-table {
  margin-top: 32px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.comparison-table thead {
  background: #f9fafb;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  width: 40%;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comp-yes {
  color: #16a34a;
  font-weight: 600;
}

.comp-no {
  color: #dc2626;
  font-weight: 600;
}

/* Categories */

.section-categories {
  background: var(--bg-page);
}

/* Layout texte + visuel */
.categories-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.categories-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.9rem;
}

/* Image des appareils */
.categories-visual img {
  max-width: 520px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .categories-layout {
    flex-direction: row;
    align-items: center;
  }

  .categories-pill-row {
    flex: 1;
  }

  .categories-visual {
    flex: 1;
    text-align: right;
  }

  .categories-visual img {
    margin-right: 0;
  }
}

/* Footer */

.site-footer {
  padding: 40px 0 56px;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  margin-top: 40px;
}

/* Footer – version affinée */
.footer-title {
  font-size: 1.25rem;
  margin: 0 0 6px;
}

.footer-tagline,
.footer-motto {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-motto {
  margin-top: 6px;
}

.footer-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 14px;
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.footer-link {
  text-decoration: none;
  color: var(--accent);
}

/* Responsive */

@media (max-width: 960px) {
  :root{ --header-h: 64px; }

  .header-inner {
    gap: 16px;
    height: 64px;
  }

  .nav-links,
  .nav-languages {
    display: none;
  }

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

  /* Flyout menu */
  .main-nav {
    position: fixed;
    inset: var(--header-h) 16px auto 16px;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  /* Petit bouton Log in dans la barre du haut */
  .header-login-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: 8px;
  }

  /* Quand le menu est ouvert, on montre tous les liens */
  .main-nav.is-open .nav-links,
  .main-nav.is-open .nav-languages {
    display: flex;
  }

  .main-nav.is-open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
  }

  .main-nav.is-open .nav-languages {
    margin-bottom: 4px;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Hero & sections */
  .hero {
    min-height: 80vh;
  }

  .hero-inner {
    padding-inline: 20px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    font-size: 0.92rem;
  }

  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 60px 0;
  }
}

/* === Available categories – layout final === */

.section-categories {
  padding: 72px 0 80px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.section-categories .section-header {
  max-width: 760px;
  margin: 0 auto 32px;
}

.section-categories .section-lead {
  max-width: 760px;
}

/* Pills de catégories sur 2 lignes */

.categories-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 18px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.98rem;
  background: #ffffff;
}

/* Image en dessous, centrée */

.categories-visual {
  text-align: center;
}

.categories-visual img {
  max-width: 640px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Ajustements typographiques mobile */
@media (max-width: 420px) {
  .brand-tagline {
    font-size: 0.85rem;
  }

  .nav-auth .btn-outline,
  .nav-auth .btn-accent {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  h1, h2, h3 {
    font-size: 90%;
  }
}

/* =========================
   FINAL TUNING – HEADINGS & CATEGORIES
   ========================== */

/* Taille cohérente des titres de sections */
.section-title {
  font-size: 2.1rem;
  line-height: 1.18;
}

/* Sur mobile : réduire un peu pour éviter 4 lignes */
@media (max-width: 767px) {
  .section-title {
    font-size: 1.7rem;
  }
}

/* Section "Available categories" */

.section-categories .section-lead {
  max-width: 56rem;
}

/* Conteneur global : chips + image, image en dessous sur tous les écrans */
.categories-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

/* Ligne(s) de catégories : occupe toute la largeur, 2 lignes sur desktop si besoin */
.categories-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

/* Si tes pills ont déjà un style (.pill), on ne touche pas.
   Si besoin d'un petit équilibre, tu peux décommenter ci-dessous. */
/*
.pill {
  font-size: 0.98rem;
}
*/

/* Image des catégories : toujours visible, centrée, responsive */
.section-categories .categories-figure {
  margin: 0;
}

.section-categories .categories-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Harmonise la taille des titres de section sur mobile */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.9rem;
    line-height: 1.2;
  }
}

/* Pills de catégories – style neutre, non-CTA */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);  /* léger contour gris */
  background: #ffffff;                           /* fond blanc, comme Log in */
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  cursor: default;                               /* pas de curseur "main" */
  transition: none;                              /* pas d’animation hover */
}

/* Supprime l'effet "clicable" au survol */
.pill:hover {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text-main);
}

/* Petit texte d’aide au-dessus du champ */
.hero-input-label {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.88);
  margin-bottom: 8px;
}

.hero-input::placeholder {
  color: #9ca3af;
}

.hero-input-btn:hover {
  box-shadow: 0 18px 40px rgba(216, 66, 50, 0.6);
}

/* Position : carte un peu plus basse, espace minimal avec "Learn more" */
.hero-chat {
  width: 100%;
  max-width: 560px;
  margin-top: 48px;          /* on la garde bien basse malgré le texte supprimé */
}

.hero-more-link {
  margin-top: 14px;          /* espace minimal propre avec la carte */
}

/* =====================
   HERO – Finitions barre d'intention
   ===================== */

/* Le conteneur de la barre : pill très léger, sans "plaque" visible */
.hero-input-row {
  display: flex;
  align-items: stretch;      /* enfants à la même hauteur */
  gap: 0;                    /* plus d'espace entre input & bouton */
  padding: 4px;              /* mince marge interne */
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.02);  /* quasi invisible, mais soude l'ensemble */
  box-shadow: none;
}

/* Champ : arrondi uniquement côté gauche */
.hero-input {
  flex: 1;
  border-radius: 999px 0 0 999px;  /* gauche arrondi, droite droite */
  border: none;
  outline: none;
}

/* Bouton : arrondi uniquement côté droit, collé au champ */
.hero-input-btn {
  margin-left: 0;
  border-radius: 0 999px 999px 0;  /* droite arrondie */
  height: 100%;                    /* occupe toute la hauteur de la barre */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 24px;
}

/* =====================
   HERO – Finitions mise en page
   ===================== */

/* On supprime le dégradé du bas s'il existe encore */
.hero::after {
  content: none !important;
}

/* Desktop : hero un peu moins haut, bas légèrement remonté */
.hero {
  min-height: 95vh;              /* au lieu de 100vh */
}

.hero-inner {
  padding-bottom: 24px;          /* réduit l'espace sous le bloc */
}

.hero-bottom {
  margin-top: auto;              /* reste en bas du hero */
  margin-bottom: 24px;           /* mais pas collé au bord : Learn more reste visible */
  gap: 6px;                      /* espace serré entre barre, note & lien */
}

/* Mobile : tout descendre vers le bas de la photo, sans exagérer l'espace blanc */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;           /* plein écran sur mobile */
  }

  .hero-inner {
    padding-top: 80px;           /* titre un peu plus haut */
    padding-bottom: 16px;        /* réduit l'espace sous le bloc */
  }

  .hero-bottom {
    margin-bottom: 20px;         /* colle le tout plus près du bas de la photo */
    gap: 4px;
  }
}

/* Ajustement spécial petits écrans (Chrome & co) */
@media (max-width: 640px) {

  /* On réduit un peu la hauteur "obligatoire" du hero */
  .hero {
    min-height: 94vh; /* au lieu de 100vh si tu l’as encore quelque part */
  }

  /* On remonte légèrement le bloc du bas */
  .hero-inner {
    padding-bottom: 40px; /* au lieu de 56px / 64px si tu avais plus */
  }
}

/* On neutralise les bordures internes que certains browsers ajoutent */
.hero-intent-btn {
  border: none;
  outline: none;
}

/* Fix spécial pour certains moteurs (dont iOS) */
.hero-intent-btn::-moz-focus-inner {
  border: 0;
}

/* Focus accessible mais propre (remplace le halo blanc) */
.hero-intent-input:focus-visible,
.hero-intent-btn:focus-visible {
  outline: 2px solid rgba(216, 66, 50, 0.8); /* ring rouge Dimwa */
  outline-offset: 2px;
}

/* Forcer les couleurs des✔ / ✖ dans le tableau, sur tous les écrans */
.comparison-table .comp-yes {
  color: #16a34a !important;
}

.comparison-table .comp-no {
  color: #dc2626 !important;
}

/* =========================
   V6 FIX — CTA sans contour blanc
   ========================= */

/* La pill ne doit PLUS avoir de padding interne */
.hero-intent-bar{
  padding: 0 !important;
  gap: 0 !important;
  align-items: stretch !important;  /* enfants même hauteur */
}

/* Input collé à gauche, arrondi uniquement côté gauche */
.hero-intent-input{
  padding: 12px 18px !important;
  border-radius: 999px 0 0 999px !important;
  height: 100% !important;
  background: transparent;
}

/* Bouton collé à droite, pleine hauteur, arrondi uniquement côté droit */
.hero-intent-btn{
  margin: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  height: auto !important;          /* avec align-items:stretch -> full height */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background-clip: padding-box;     /* évite les artefacts */
}

/* Optionnel : enlève tout “liseré” interne sur certains navigateurs */
.hero-intent-btn:focus{
  outline: none !important;
}


/* =========================
   Modal (Categories)
   ========================= */
.modal[aria-hidden="true"] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.modal-overlay{
  position:absolute;
  inset:0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(6px);
}
.modal-dialog{
  position: relative;
  margin: 84px auto 24px;
  width: min(680px, calc(100% - 32px));
  background: var(--bg-surface, #fff);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: var(--radius-lg, 24px);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(15,23,42,0.18));
  padding: 18px 18px 16px;
}
.modal-close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border, #E6E6E6);
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.modal-title{ margin: 4px 44px 6px 2px; font-size: 1.15rem; }
.modal-lead{ margin: 0 44px 12px 2px; color: var(--text-muted, #5f6368); }
.modal-pills{ display:flex; flex-wrap:wrap; gap:10px; padding: 4px 2px 10px; }
.modal-actions{ display:flex; gap:12px; justify-content:flex-end; padding-top: 10px; border-top: 1px solid rgba(224,224,224,0.7); }

/* Language buttons */
.nav-languages .nav-lang{
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text-muted, #5f6368);
  cursor: pointer;
}
.nav-languages .nav-lang[aria-current="true"]{
  color: var(--text, #111827);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================
   Contact section
   ========================= */
.section-contact .contact-card{
  background: var(--bg-surface, #fff);
  border: 1px solid rgba(224,224,224,0.75);
  border-radius: var(--radius-lg, 24px);
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.section-contact .contact-line{
  margin: 0 0 8px;
}
.section-contact .contact-email{
  font-weight: 700;
}
.section-contact .contact-note{
  margin: 0;
  color: var(--text-muted, #5f6368);
}

/* =========================
   Chat page basics
   ========================= */
.chat-shell{
  padding-top: 96px;
  padding-bottom: 48px;
}
.chat-card{
  background: var(--bg-surface, #fff);
  border: 1px solid rgba(224,224,224,0.75);
  border-radius: var(--radius-lg, 24px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  overflow: hidden;
}
.chat-messages{
  padding: 18px;
  max-height: 60vh;
  overflow: auto;
}
.chat-row{ display:flex; margin: 10px 0; }
.chat-row.bot{ justify-content:flex-start; }
.chat-row.user{ justify-content:flex-end; }
.chat-bubble{
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(224,224,224,0.75);
  background: #fff;
}
.chat-row.user .chat-bubble{
  background: rgba(211,47,47,0.08);
  border-color: rgba(211,47,47,0.18);
}
.chat-actions{
  padding: 12px 14px;
  border-top: 1px solid rgba(224,224,224,0.75);
  background: rgba(250,250,250,0.7);
}
.chat-inputbar{
  display:flex;
  gap: 10px;
  align-items: center;
}
.chat-input{
  flex: 1;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(224,224,224,0.9);
  padding: 0 14px;
  outline: none;
  background: #fff;
}
.chat-send{
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
}
.chat-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 10px; }


/* =========================
   V2 CHAT POLISH — match landing chat look
   ========================= */

.chat-shell{
  padding: 32px 0 48px;
}

.chat-card{
  border-radius: 22px;
}

.chat-messages{
  padding: 22px;
}

.chat-row{
  display:flex;
  margin: 12px 0;
}

.chat-row.bot{ justify-content:flex-start; }
.chat-row.user{ justify-content:flex-end; }

.chat-bubble{
  max-width: 760px;
  border-radius: 18px;
  padding: 14px 16px;
  line-height: 1.4;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}

.chat-row.bot .chat-bubble{
  background: #FBE7E7; /* same family as landing preview */
  border-color: rgba(211,47,47,0.20);
  color: #212121;
}

.chat-row.user .chat-bubble{
  background: #EAF4FF;
  border-color: rgba(30,136,229,0.20);
  color: #212121;
}

.chat-bubble-system{
  background: transparent !important;
  border: none !important;
  padding: 8px 0 0 !important;
  font-size: 14px;
  opacity: 0.8;
}

/* Input bar uses hero styles */
.chat-actions{
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.chat-intent-bar{
  width: 100%;
}

.chat-intent-input{
  min-width: 0;
}

.chat-intent-btn{
  white-space: nowrap;
}

/* Chips: grouped */
.chat-chips{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.chip-group-title{
  font-size: 13px;
  opacity: .75;
  margin: 0 0 8px 2px;
}

.chip-group-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}

.pill.is-selected{
  background: rgba(211,47,47,0.10);
  border-color: rgba(211,47,47,0.35);
}

/* Recommendations */
.reco-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

.reco-card{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
}

.reco-name{
  font-weight: 700;
}

.reco-note{
  margin-top: 4px;
  font-size: 14px;
  opacity: .8;
}

.chat-cta-row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Mobile polish */
@media (max-width: 640px){
  .chat-messages{ padding: 18px; }
  .chat-actions{ padding: 14px 16px 18px; }
  .chat-bubble{ max-width: 92%; }
  .footer-links{ display:flex; justify-content: space-between; gap: 10px; }
}


/* =========================
   V3 — Contact form (anti-spam)
   ========================= */

.section-contact .contact-card{
  padding: 22px;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px){
  .contact-grid{ grid-template-columns: 1fr; }
}

.contact-field{
  display: block;
}

.contact-label{
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #212121;
}

.section-contact input,
.section-contact textarea{
  width: 100%;
  border: 1px solid rgba(33,33,33,0.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  color: #212121;
}

.section-contact textarea{
  resize: vertical;
  min-height: 120px;
}

.hp-field{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.contact-submit{
  min-width: 140px;
}

.contact-status{
  margin: 0;
  font-size: 0.95rem;
  color: rgba(33,33,33,0.72);
}

/* =========================
   Lang dropdown (LVMH-style)
   ========================= */
.lang-dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-toggle{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
}

.lang-caret{
  opacity: 0.8;
}

.lang-menu{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 90px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  padding: 8px;
  display: none;
  z-index: 60;
}

.lang-dropdown.is-open .lang-menu{
  display: grid;
  gap: 6px;
}

.lang-option{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
}

.lang-option[aria-current="true"]{
  background: rgba(239, 68, 68, 0.10);
}

.lang-option:hover{
  background: rgba(15, 23, 42, 0.06);
}

/* =========================
   Brand tagline — desktop FR/ES fit
   (Tagline has an explicit line break via JS; we just nudge size to avoid truncation.)
   ========================= */
@media (min-width: 1024px) {
  .brand-text{
    min-width: 240px; /* gives the 2-line tagline room before clamping */
  }
}

@media (min-width: 900px) {
  html[lang="fr"] .brand-tagline,
  html[lang="es"] .brand-tagline{
    font-size: 0.82rem;
  }
}

/* =========================
   Clickable pills hover (only where pills are actions)
   ========================= */
.section-categories .pill,
.modal-pills .pill,
.chip-group .pill{
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.section-categories .pill:hover,
.modal-pills .pill:hover,
.chip-group .pill:hover{
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(148, 163, 184, 0.70);
  transform: translateY(-1px);
}

/* Chat inline links inside bubbles */
.chat-inline-link{
  color: var(--brand-red, #e23b3b);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   Results page
   ========================= */
.results-shell{
  padding: 34px 0 70px;
}

.results-card{
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.30);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.results-title{
  font-size: 2rem;
  margin: 0 0 10px;
}

.results-lead{
  margin: 0 0 18px;
  color: rgba(15, 23, 42, 0.72);
}

.reco-link{
  display: inline-block;
  color: var(--text-main);
  text-decoration: none;
}

.reco-link:hover{
  text-decoration: underline;
  text-underline-offset: 4px;
}

.results-cta{
  margin-top: 22px;
}

.results-cta-lead{
  margin: 0 0 12px;
  color: rgba(15, 23, 42, 0.78);
}

.results-note{
  margin-top: 18px;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.62);
}

/* Mobile keyboard resilience (Firefox, etc.) */
.chat-shell{
  min-height: 100svh;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}


/* =========================
   Chat — Send disabled
   ========================= */
.hero-intent-btn.is-disabled,
.hero-intent-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
}

/* =========================
   Loading feedback — intent buttons (Landing / Results / Dashboard)
   ========================= */
.hero-intent-btn.is-loading{
  cursor: progress;
}

.hero-intent-btn.is-loading::after{
  content: "…";
  margin-left: 6px;
  animation: dimwaEllipsisBlink 1.2s infinite;
}

@keyframes dimwaEllipsisBlink{
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* =========================
   Firefox iOS (FxiOS) – CTA always visible with keyboard
   ========================= */

/* Base safety (helps viewport math on iOS) */
html, body { height: 100%; }

/* Only on Firefox iOS */
@media (max-width: 768px) {
  body.fxios .hero {
    /* iOS keyboard + 100vh issues => avoid hard full-height */
    min-height: auto !important;
  }

  /* Default on Firefox iOS: don't push CTA to the absolute bottom */
  body.fxios .hero-bottom {
    margin-top: 32px !important; /* instead of margin-top:auto behavior */
  }

  /* While typing: keep it comfortably visible */
  body.fxios.is-typing .hero-bottom {
    margin-top: 24px !important;
  }

  /* Prevent weird jumps from extra bottom spacing */
  body.fxios .hero-inner {
    padding-bottom: 24px !important;
  }
}

/* =========================
   Mobile viewport fix (Chrome address bar)
   ========================= */

/* Base fallback */
.hero { min-height: 100vh; }

/* Modern viewport units */
@supports (height: 100dvh) {
  .hero { min-height: 100dvh; }
}

/* “Small viewport” helps when the address bar is visible */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

/* Petit coussin en bas pour les liens sous le CTA */
@media (max-width: 768px) {
  .hero-bottom {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* Desktop: remonter légèrement le bloc CTA pour que la note soit visible */
@media (min-width: 900px) {
  .hero-bottom {
    margin-bottom: 48px; /* tu peux ajuster entre 40 et 64px */
  }
}

/* Landing: allow hero background to reach top behind fixed header */
body[data-page="landing"] .hero{
  margin-top: calc(-1 * var(--header-h));
}


/* =========================
   V2 — Intent validation helper text
   ========================= */
.hero-intent-error {
  margin: 10px 4px 0;
  font-size: 14px;
  line-height: 1.35;
  color: #b91c1c;
}

.results-new-search {
  margin-top: 14px;
}


/* =========================
   V3 — Landing intent errors: readable on hero image
   ========================= */
body[data-page="landing"] .hero-intent-error{
  background: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  display: inline-block;
  max-width: 720px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* V3 — Results new-search button: short label on mobile */
.btn-text-short{ display:none; }
@media (max-width: 520px){
  .btn-text-long{ display:none; }
  .btn-text-short{ display:inline; }
}

/* Mobile Safari & Chrome — positionner le texte au niveau des épaules */
@media (max-width: 640px) {
  .hero-scope {
    top: 58%;
    font-size: 1.14rem;
    line-height: 1.4;
  }
}

/* =========================
   Firefox mobile notice
   ========================= */

.fx-notice{
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Force le bandeau à être vraiment caché tant que JS ne l’active pas */
.fx-notice[hidden] {
  display: none !important;
}

.fx-notice span{
  text-align: center;
}

.fx-notice-close{
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}

/* iOS: prevent auto-zoom on form fields */
@media (max-width: 768px) {
  input, textarea, select {
    font-size: 16px;
  }
}

/* IMPORTANT: allow the input to shrink inside flex (prevents overflow on iOS) */
.hero-intent-input{
  min-width: 0;
}

/* =========================
   AUTH + PROFILE — rounded form fields (match Contact form)
   Targets: login*.html, signup*.html, reset*.html, profile*.html
   ========================= */

/* Auth pages (login/signup/reset) */
body[data-page="auth"] input[type="text"],
body[data-page="auth"] input[type="email"],
body[data-page="auth"] input[type="password"],
body[data-page="auth"] input[type="tel"],
body[data-page="auth"] input[type="url"],
body[data-page="auth"] input[type="search"],
body[data-page="auth"] select,
body[data-page="auth"] textarea {
  width: 100%;
  border: 1px solid rgba(33, 33, 33, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  background: #ffffff;
  color: #212121;
  outline: none;
}

body[data-page="auth"] textarea {
  resize: vertical;
  min-height: 120px;
}

body[data-page="auth"] input:focus,
body[data-page="auth"] select:focus,
body[data-page="auth"] textarea:focus {
  border-color: rgba(216, 66, 50, 0.55);
  box-shadow: 0 0 0 3px rgba(216, 66, 50, 0.12);
}

/* Member profile pages (profile*.html) */
.member-card .form-field input[type="text"],
.member-card .form-field input[type="email"],
.member-card .form-field input[type="password"],
.member-card .form-field input[type="tel"],
.member-card .form-field input[type="url"],
.member-card .form-field input[type="search"],
.member-card .form-field select,
.member-card .form-field textarea,
.member-card input[type="text"],
.member-card input[type="email"],
.member-card input[type="password"],
.member-card select,
.member-card textarea {
  width: 100%;
  border: 1px solid rgba(33, 33, 33, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
  background: #ffffff;
  color: #212121;
  outline: none;
}

.member-card textarea {
  resize: vertical;
  min-height: 120px;
}

.member-card input:focus,
.member-card select:focus,
.member-card textarea:focus {
  border-color: rgba(216, 66, 50, 0.55);
  box-shadow: 0 0 0 3px rgba(216, 66, 50, 0.12);
}

/* =========================
   LOGO SIZE FIX — all pages (safe)
   Some pages use <img> without .brand-mark class.
   This clamps the logo image everywhere.
   ========================= */
.site-header .brand img{
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
  display: block;
}


/* =========================
   MEMBER PAGES — Logo size fix
   Dashboard / Profile use .member-header instead of .site-header.
   Clamp the logo image there as well.
   ========================= */
.member-header .brand img{
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  display: block;
}

/* =========================
   AUTH PAGES — Logo size fix
   Targets pages with auth layouts (login/signup/reset/onboarding)
   Works even if body[data-page="auth"] is missing.
   ========================= */
.auth-wrap .site-header .brand img,
.auth-card .site-header .brand img,
body[data-page="auth"] .site-header .brand img{
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.auth-wrap .header-inner,
body[data-page="auth"] .header-inner{
  height: 64px;
  gap: 16px;
}


/* =========================
   AUTH — OAuth buttons with provider icons
   ========================= */
.oauth-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
}
.oauth-icon{
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
}


/* =========================
   Auth footer (minimal)
   ========================= */
.auth-footer{
  padding: 26px 0 18px;
  color: rgba(15,23,42,0.65);
}
.auth-copyright{
  text-align:center;
  font-size: 0.86rem;
  margin: 0;
}


/* =========================
   Member footer (minimal)
   ========================= */
.member-footer{
  padding: 22px 0 18px;
  border-top: 1px solid rgba(148,163,184,0.22);
  background: #fff;
}
.member-footer p{
  margin: 0;
  text-align:center;
  font-size: 0.86rem;
  color: rgba(15,23,42,0.65);
}


/* ===== Member: mobile subnav (Dashboard / Profile) ===== */
.member-subnav{
  display:none;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(148,163,184,.35);
}
.member-subnav .container{
  display:flex;
  gap:10px;
  padding: 10px 20px;
  justify-content:center;
}
.member-subnav a{
  text-decoration:none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.45);
  background: #fff;
  font-weight: 600;
}
.member-subnav a.is-active{
  background: rgba(211,47,47,.10);
  border-color: rgba(211,47,47,.28);
}
@media (max-width: 720px){
  .member-subnav{display:block;}
}

/* ===== Member: avatar dropdown ===== */
.user-dropdown{position:relative;display:flex;align-items:center;}
.user-avatar{
  width:42px;height:42px;border-radius:999px;
  border:1px solid rgba(148,163,184,.55);
  background:#fff;
  color: var(--ink); /* remove blue */
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.user-menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  width: 220px;
  background:#fff;
  border:1px solid rgba(148,163,184,.45);
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  padding:8px;
  display:none;
  z-index: 120;
}
.user-menu a{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 10px;
  border-radius:10px;
  text-decoration:none;
  color: var(--ink);
  font-weight:600;
}
.user-menu a:hover{background: rgba(15,23,42,.05);}
.user-dropdown.open .user-menu{display:block;}
.user-menu .sep{height:1px;background:rgba(148,163,184,.35);margin:6px 0;}

/* ===== Dashboard: section bands ===== */
.dash-block{
  border: 1px solid rgba(148,163,184,.30);
  border-radius: 18px;
  overflow:hidden;
  background:#fff;
  margin-top: 14px;
}
.dash-block-head{
  background: rgba(15,23,42,.03);
  border-bottom: 1px solid rgba(148,163,184,.25);
  padding: 12px 14px;
  font-weight: 800;
  color: rgba(15,23,42,.85);
}
.dash-block-body{padding: 14px;}
.dash-muted{color: rgba(15,23,42,.68);}

/* ============================= */
/* Signup success state (Dimwa)  */
/* ============================= */

.success-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  text-align: center;
  animation: fadeIn 0.35s ease;
}

.success-card h2 {
  margin: 6px 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: #D32F2F; /* rouge Dimwa */
}

.success-card p {
  margin: 0;
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

.success-card .tip {
  margin-top: 14px;
  font-size: 13px;
  color: #888;
}

/* Mobile breathing */
@media (max-width: 600px) {
  .success-card {
    padding: 28px 18px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================= */
/* Dimwa Plan Modal Fix         */
/* ============================= */

/* Forcer le conteneur au-dessus */
#planModal {
  z-index: 9999;
}

/* Overlay sous la carte */
#planModalOverlay {
  z-index: 1 !important;
}

/* Carte blanche au-dessus de l’overlay */
#planModal > div:nth-child(2) {
  z-index: 2 !important;
  position: relative;
}