/*
 * InTheMiddle.ai Landing Page Styles
 * A minimalist design inspired by HeyMia.ai with white and almost black colors
 */

/* ===== VARIABLES ===== */
:root {
    /* Color Palette - New DA */
    --color-background: #FFFFFF;
    --color-surface: #F9F9F9;
    --color-text-dark: #111111;
    --color-text-medium: #555555;
    --color-text-light: #888888;
    --color-border: #E5E5E5;
    --color-dark-surface: #1C1C1C;
    --accent-start: #FF7A00;
    --accent-end: #FF3F7D;
    --gradient-accent: linear-gradient(150deg,rgba(69, 6, 147, 1) 0%, rgba(140, 0, 255, 1) 25%, rgba(255, 63, 127, 1) 66%, rgba(255, 196, 0, 1) 90%);
    /* Legacy aliases for backward compatibility */
    --color-accent: #FF7A00;
    --color-accent-light: rgba(255, 122, 0, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px; /* inputs */
    --radius-lg: 12px; /* cards */
    --radius-xl: 16px; /* modals */
    --radius-xxl: 20px;
    --radius-full: 9999px;


    /* Shadows */
    --shadow-sm: 0 1px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-bounce: 0.5s cubic-bezier(0.19, 1, 0.22, 1);

    /* Container Width */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;

    /* Layout */
    --navbar-height: 56px;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Force scrollbar to always be visible to prevent layout shifts */
    overflow-y: scroll;
}

html.modal-open {
    overflow-y: hidden; /* Bloque le scroll html sur Android quand la modale est ouverte */
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    overflow-x: hidden;
    /* Layout for sticky footer and avoidance of fixed navbar overlap */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

p {
    margin-bottom: var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
}

a {color: inherit; text-decoration: none;}
a:visited {text-decoration: none;}

ul {
    list-style: none;
}

/* === Layout root: push footer to bottom while leaving room for fixed navbar === */
.site-main { flex: 1 0 auto; min-height: 0; }

/* Ensure generic sections have breathing room from footer */
section { scroll-margin-top: calc(var(--navbar-height) + 32px); }

/* Extra padding on test pages for spacing under navbar and above footer */
.ll-wizard { padding-top: 100px; padding-bottom: var(--spacing-xl); }
.ll-wizard .tester-card { margin-bottom: var(--spacing-lg); }

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #FFFFFF;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.btn-primary:hover {
    filter: brightness(0.9);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: #F5F5F5;
    color: #111111;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.btn-secondary:hover {
    background-color: #EAEAEA;
    color: #111111;
    transform: translateY(-2px);
}

.btn-lg { /* alias for larger CTA buttons */
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: var(--container-max-width);
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-md);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: none;
    padding: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.25rem;
}
.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-dark);
}
.navbar-logo img {
    height: 35px;
    margin-right: var(--spacing-xs);
}
.navbar-logo span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.navbar-links ul {
    align-items: center;
    display: flex;
    gap: 1.25rem;
}

.navbar-links a {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: color var(--transition-fast);
}
/* Style spécifique pour le bouton dans la navbar (desktop) */
.navbar-links .btn-primary {
    padding: 0.4rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 20px;
    box-shadow: none;
    border: 2px solid transparent;
    background-image: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    vertical-align: middle;
    position: relative;
}

.navbar-links .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; /* Épaisseur de la bordure */
    background: linear-gradient(
            150deg,
            rgba(69, 6, 147, 1) 0%,
            rgba(140, 0, 255, 1) 25%,
            rgba(255, 63, 127, 1) 66%,
            rgba(255, 196, 0, 1) 90%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.navbar-links .btn-primary:hover {
    transform: translate(0);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}

.lang-switcher__trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 5px 10px 5px 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.lang-switcher__trigger:hover {
    border-color: rgba(255, 63, 127, 0.5);
    background: rgba(255, 63, 127, 0.08);
    color: #fff;
}

.lang-switcher__trigger[aria-expanded="true"] {
    border-color: rgba(255, 63, 127, 0.6);
    background: rgba(255, 63, 127, 0.1);
    color: #fff;
}

.lang-switcher__flag {
    font-size: 1.1rem;
    line-height: 1;
    display: block;
}

.lang-switcher__chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 130px;
    background: rgba(14, 14, 24, 0.92);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 2000;
}

.lang-switcher__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.lang-switcher__option:hover {
    background: rgba(255, 63, 127, 0.12);
    color: #fff;
}

.lang-switcher__option .lang-switcher__flag {
    font-size: 1.2rem;
}

.lang-switcher__label {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .lang-switcher__dropdown {
        right: auto;
        left: 0;
    }
}

/* ===== DROPDOWN MENU (MEGA MENU) ===== */
.navbar-links .dropdown {
    /* On laisse l'élément en flux normal pour que le mega‑menu
       puisse s'aligner sur la navbar (qui est le conteneur positionné) */
    position: static;
}

.navbar-links .dropdown-trigger {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: color var(--transition-fast);
}

/* Mega Menu Container */
.navbar-links .dropdown-menu.mega-menu {
    position: absolute;
    top: calc(100% + 15px); /* sous la navbar */
    left: 50%; /* centré par rapport à la navbar (conteneur positionné) */
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-md);
    width: var(--container-max-width); /* même largeur visuelle que la navbar */
    max-width: calc(100vw - 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    transform: translate(-50%, -10px);
    z-index: 1000;
    display: flex;
    gap: var(--spacing-md);
}

.navbar-links .dropdown:hover .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Afficher le mega‑menu lorsque n'importe quel lien de la navbar est survolé,
   sauf le CTA ".btn-primary" ("S'inscrire gratuitement").
   Utilise :has() — supporté par les navigateurs modernes. */
.navbar-links:has(ul li:hover):not(:has(.btn-primary:hover)) .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Accessibilité clavier: ouverture quand un élément du menu (hors CTA) reçoit le focus */
.navbar-links:has(ul li:focus-within):not(:has(.btn-primary:focus-within)) .dropdown-menu.mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Image à gauche */
.mega-menu-image {
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mega-menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenu avec colonnes à droite */
.mega-menu-content {
    flex: 1;
    display: flex;
    gap: var(--spacing-sm);
}

/* Colonnes */
.mega-menu-column {
    flex: 1;
}

.mega-menu-column h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-sm);
}

.mega-menu-column ul {
    align-items: initial;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.75rem;
}

.mega-menu-column ul li a {
    display: block;
    color: var(--color-text-dark);
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
/* Réseaux sociaux */
.mega-menu-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mega-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.mega-menu-social a:hover {
    background-color: rgba(255, 122, 0, 0.1);
    transform: translateY(-2px);
}

.mega-menu-social a img {
    width: 20px;
    height: 20px;
}


.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--color-text-dark);
    margin: 4px 0;
    transition: all var(--transition-fast);
}

/* ===== FOOTER ===== */

/* ===== FOOTER ===== */
/* .footer .container hérite de la classe .container de base */

.footer {
  position: relative;
  background: #0A0F1E;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.5rem;
  overflow: hidden;
}

/* Liseré dégradé en haut du footer */
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, #450693, #8C00FF, #FF3F7F, #FFC400);
  opacity: .5;
  pointer-events: none;
}

.footer .container { position: relative; z-index: 1; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.footer-logo span {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -.2px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2.25rem;
  padding-top: .5rem;
  padding-bottom: 1.25rem;
}

.footer-column h4 {
  margin: 0 0 .6rem 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #FFFFFF;
}

.footer-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }

.footer-column a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
  transition: color .2s ease, transform .2s ease, background-size .25s ease;
  background-image: linear-gradient(90deg, #8C00FF, #FF3F7F, #FFC400);
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #FFFFFF;
  background-size: 100% 2px;
  outline: none;
}

.footer .social-links {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
}

.footer .social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
  background: linear-gradient(135deg, #8C00FF, #FF3F7F);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(140,0,255,0.25);
  outline: none;
}

.footer .social-links img {
  width: 16px; height: 16px;
  filter: invert(1) brightness(2);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: .9rem;
}

@media (max-width: 900px) {
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .footer { padding: 2.25rem 0 1.25rem; }
  .footer-logo { justify-content: center; }
  .footer-links { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-bottom { text-align: center; }
}

/* ===== MODAL ===== */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Backdrop ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 4, 16, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
    overscroll-behavior: none;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
    animation: modalFadeIn 0.28s ease forwards;
}

/* ── Boîte centrale ── */
.modal-content {
    width: 100%;
    max-width: 960px;
    max-height: 88vh;
    display: grid;
    grid-template-columns: 268px 1fr;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 48px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Bouton fermer ── */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.18s;
    z-index: 30;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}
.modal-close:hover {
    background: rgba(0, 0, 0, 0.13);
    color: rgba(0, 0, 0, 0.75);
    transform: scale(1.08);
}

/* ═══════════════════════════════════════
   PANNEAU GAUCHE DÉCORATIF
═══════════════════════════════════════ */
.modal-deco {
    background: linear-gradient(155deg, #0C0920 0%, #160830 55%, #1A0A26 100%);
    padding: 2.25rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.modal-deco__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.modal-deco__glow--1 {
    width: 260px;
    height: 260px;
    background: rgba(140, 0, 255, 0.22);
    top: -80px;
    right: -80px;
}
.modal-deco__glow--2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 63, 127, 0.15);
    bottom: 10px;
    left: -60px;
}

.modal-deco__logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.25rem;
    position: relative;
    z-index: 1;
}
.modal-deco__logo img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.modal-deco__logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    letter-spacing: -0.2px;
}

.modal-deco__body {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-deco__headline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.42;
    color: #fff;
    margin: 0;
}
.modal-deco__headline strong {
    background: linear-gradient(135deg, #FF3F7F, #FFC400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-deco__quote {
    margin: 0;
    padding: 1rem 1.1rem;
    border-left: 2px solid rgba(255, 63, 127, 0.4);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 12px 12px 0;
}
.modal-deco__quote p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
    margin: 0 0 0.35rem;
}
.modal-deco__quote cite {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.36);
    font-style: normal;
}

.modal-deco__perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.modal-deco__perks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
}
.modal-deco__perks li svg {
    flex-shrink: 0;
    color: #FF3F7F;
    margin-top: 2px;
}

.modal-deco__social {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}
.modal-deco__avatars { display: flex; }
.modal-deco__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8C00FF, #FF3F7F);
    border: 2px solid #0C0920;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-left: -7px;
}
.modal-deco__avatar:first-child { margin-left: 0; }
.modal-deco__social-label {
    font-size: 0.77rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.35;
}

/* ═══════════════════════════════════════
   PANNEAU DROIT : FORMULAIRE
═══════════════════════════════════════ */
.modal-form-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-form-panel__inner {
    padding: 2rem 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Wizard header ── */
.wizard-header {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}
.wizard-progress-meta {
    display: flex;
    align-items: center;
    margin-bottom: 0.55rem;
}
.wizard-step-pill {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(13, 13, 26, 0.38);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.wizard-track {
    position: relative;
    height: 3px;
    background: #ECEDF2;
    border-radius: var(--radius-full);
    overflow: hidden;
}
.wizard-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8C00FF, #FF3F7F, #FFC400);
    border-radius: var(--radius-full);
    transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Question titre par étape ── */
.step-question {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0D0D1A;
    line-height: 1.4;
    margin: 0 0 1.25rem;
    letter-spacing: -0.2px;
}

/* ── Form ── */
.waitlist-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.step-panels {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* ── Step panels ── */
.step-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.25rem 0 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.28s ease;
    will-change: transform, opacity;
}
.step-panel.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
.step-panel.is-exiting-forward {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}
.step-panel.is-exiting-backward {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* ── Form groups ── */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0D0D1A;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.11);
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background: #F8F8FC;
    color: #1A1A2E;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input::placeholder { color: rgba(26, 26, 46, 0.32); }
.form-group input:hover { border-color: rgba(0, 0, 0, 0.2); }
.form-group input:focus {
    outline: none;
    border-color: #8C00FF;
    box-shadow: 0 0 0 3px rgba(140, 0, 255, 0.1);
    background: #fff;
}
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.11);
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    background: #F8F8FC;
    color: #1A1A2E;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    line-height: 1.6;
    -webkit-appearance: none;
    appearance: none;
}
.form-group textarea::placeholder { color: rgba(26, 26, 46, 0.32); }
.form-group textarea:hover { border-color: rgba(0, 0, 0, 0.2); }
.form-group textarea:focus {
    outline: none;
    border-color: #8C00FF;
    box-shadow: 0 0 0 3px rgba(140, 0, 255, 0.1);
    background: #fff;
}

.required { color: #e53935; font-size: 0.78rem; margin-left: 0.15rem; }
.error-text { color: #e53935; font-size: 0.83rem; margin-top: 0.4rem; min-height: 1.1em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* ── Chips ── */
.chip-group { display: flex; flex-wrap: wrap; gap: 0.45rem; width: 100%; }
.chip-group--col { flex-direction: column; }
.chip-group--col .chip-option { width: 100%; }
.chip-group--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.chip-group--2col .chip-option { width: 100%; }

.chip-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    background: #F5F5FA;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    color: #1A1A2E;
    cursor: pointer;
    transition: border-color 0.16s, background 0.16s, box-shadow 0.16s, transform 0.13s;
    user-select: none;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}
.chip-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}
.chip-option:hover {
    border-color: rgba(140, 0, 255, 0.25);
    background: #EEE8F8;
}
.chip-option:active { transform: scale(0.97); }
.chip-option:has(input:checked) {
    background: linear-gradient(135deg, #8C00FF, #FF3F7F);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(140, 0, 255, 0.3);
}
.chip-option:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 0, 255, 0.15);
}
.chip-group--2col .chip-option {
    justify-content: center;
    text-align: center;
    min-height: 50px;
    padding: 0.65rem 0.75rem;
    font-size: 0.845rem;
}

/* ── Collapsible email partenaire ── */
.collapsible[aria-hidden="true"] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-normal);
}
.collapsible[aria-hidden="false"] {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-normal);
}

/* ── Wizard actions ── */
.wizard-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding-top: 0.875rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
}
.wizard-actions .btn { min-width: 120px; }

/* ── Message succès ── */
.success-message {
    text-align: center;
    padding: 2.5rem 1rem;
    animation: fadeIn 0.5s ease both;
}
.success-message h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 0.5rem;
}
.success-message p { color: rgba(26, 26, 46, 0.6); font-size: 0.95rem; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .wizard-fill { transition: none; }
    .step-panel,
    .step-panel.is-exiting-forward,
    .step-panel.is-exiting-backward {
        transition: opacity 0.15s ease;
        transform: none !important;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    :root {
        --container-padding: 1.5rem;
    }

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

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .steps {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop-only elements on mobile */
    .desktop-only {
        display: none !important;
    }

    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-md);
    }

    /* Adjust floating navbar for mobile */
    .navbar {
        top: 8px;
        width: calc(100% - 16px);
        border-radius: 40px;
        padding: 0 12px;
        height: 60px;
    }

    .navbar-logo img {
        height: 32px;
    }

    .navbar-logo span {
        font-size: 1rem;
    }

    .navbar-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Show mobile-only elements on mobile */
    .mobile-only {
        display: block;
    }

    /* Style the button in the mobile menu */
    .navbar-links .btn-primary {
        margin-top: var(--spacing-sm);
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        box-shadow: var(--shadow-md);
        -webkit-tap-highlight-color: rgba(255, 122, 0, 0.2);
        touch-action: manipulation;
    }

    .navbar-links .btn-primary:active {
        transform: scale(0.95);
    }

    .navbar.mobile-menu-open .navbar-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: var(--spacing-lg) var(--spacing-md);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 28px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar.mobile-menu-open .navbar-links ul {
        flex-direction: column;
        gap: var(--spacing-md);
        width: 100%;
    }

    /* Mega menu mobile adjustments */
    .navbar-links .dropdown {
        width: 100%;
    }

    .navbar-links .dropdown-trigger {
        display: block;
        padding: 0.5rem 0;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--color-text-medium);
        cursor: default;
        pointer-events: none;
    }

    .navbar-links .dropdown-menu.mega-menu {
        position: static;
        width: 100%;
        max-width: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        display: flex; /* Toujours visible à l'ouverture du menu mobile */
        flex-direction: column;
        gap: var(--spacing-md);
        background: transparent;
        margin-top: var(--spacing-sm);
    }

    /* Neutralise le transform: translate(-50%, 0) appliqué par les règles hover/focus desktop */
    .navbar-links .dropdown:hover .dropdown-menu.mega-menu,
    .navbar-links:has(ul li:hover):not(:has(.btn-primary:hover)) .dropdown-menu.mega-menu,
    .navbar-links:has(ul li:focus-within):not(:has(.btn-primary:focus-within)) .dropdown-menu.mega-menu {
        transform: none;
    }

    .mega-menu-image {
        display: none;
    }

    .mega-menu-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .mega-menu-column h4 {
        font-size: 0.8rem;
        margin-bottom: var(--spacing-xs);
        padding-bottom: 5px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Le dropdown-trigger affiche déjà "Vie de couple" — masquer le h4 redondant dans la 1re colonne */
    .mega-menu-column:first-child h4 {
        display: none;
    }

    .mega-menu-column ul {
        gap: 0.5rem !important;
    }

    .mega-menu-column ul li a {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .mega-menu-social {
        justify-content: flex-start;
        margin-top: var(--spacing-xs);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-logo {
        justify-content: center;
        margin-bottom: var(--spacing-md);
    }

    .footer-column {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
    }

    .hero .container {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .impact-quote {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
        padding: 0 10px;
    }

    /* Adjust hero particles for smaller screens */
    .hero-particle {
        width: 300px;
        height: 300px;
    }

    .feature-grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .feature-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .feature-phone {
        max-width: 280px;
        margin: 0 auto;
    }

    .feature-phone img {
        max-height: 400px;
    }

    .stats-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .feature-block {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }

    .feature-block::before {
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        background: linear-gradient(to right, var(--accent-start), var(--accent-end));
        border-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }

    .image-left::before {
        right: auto;
        left: 0;
        border-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }

    .feature-content {
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-image {
        order: -1;
        margin-bottom: var(--spacing-md);
        padding: var(--spacing-xs);
    }

    .feature-image::after {
        width: 200px;
        height: 200px;
    }

    .feature-image img {
        max-height: 200px;
    }

    /* Modal responsive styles */
    .modal {
        padding: 0;
        align-items: stretch;
        overflow-y: hidden;
    }

    .modal.active {
        align-items: stretch;
    }

    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        height: 100dvh; /* better mobile viewport units */
        margin: 0;
        border-radius: 0;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: #FFFFFF;
        z-index: 2;
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
    }

    .modal-close {
        top: .5rem;
        right: .5rem;
    }

    /* Landing pages specific optimizations */
    .eyebrow {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        display: block;
        text-align: center;
    }

    .ll-landing-hero .metrics {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: var(--radius-lg);
        width: fit-content;
        margin: var(--spacing-sm) auto var(--spacing-md);
    }

    .ll-landing-hero .metrics li {
        font-size: 0.85rem;
    }

    .ll-cta h2, #itm h2 {
        font-size: 1.6rem;
    }

    .ll-cta p, #itm p {
        font-size: 1rem;
    }

    /* Resources links on mobile */
    #internal-links-list ul {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    #internal-links-list li {
        list-style: none;
    }

    #internal-links-list a {
        display: block;
        padding: 1rem;
        background: var(--color-surface);
        border-radius: var(--radius-lg);
        border: 1px solid var(--color-border);
        text-align: center;
        font-weight: 500;
        transition: background var(--transition-fast);
    }

    #internal-links-list a:active {
        background: #f0f0f0;
    }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ===== Tester Conversation (Chat-like) ===== */
.tester-conversation {
  margin-top: 0;
  margin-bottom: .75rem;
  border: none;
  border-radius: 16px;
  padding: .75rem;
  height: 150px;
  overflow: auto;
}
.tester-conversation .msg {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .5rem 0;
}
.tester-conversation .avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.tester-conversation .avatar.user {
  background: #111111;
}
.tester-conversation .bubble {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: .4rem .5rem;
  box-shadow: var(--shadow-sm);
  color: var(--color-text-dark);
  white-space: pre-wrap;
  font-size: 14px;
  text-align: left;
}
.tester-conversation .msg.user .bubble { background: #F5F5F5; }

/* Align messages: assistant left, user right */
.tester-conversation .msg.user { flex-direction: row-reverse; }
.tester-conversation .msg.user .bubble { border-top-right-radius: 6px; }
.tester-conversation .msg.assistant .bubble {
    background: #FFFFFF;
    border-top-left-radius: 6px;
}

/* Typing indicator */
.typing {
  display: inline-flex; gap: .25rem;
}
.typing .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-medium);
  opacity: .6; animation: blink 1.2s infinite ease-in-out;
}
.typing .dot:nth-child(2) { animation-delay: .15s; }
.typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

@media (max-width: 768px) {
  .tester-conversation { height: 220px; }
}

/* === Icon-only send button for tester-submit === */
.tester-actions .tester-submit {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  justify-content: center;
  position: relative;
}
.tester-actions .tester-submit .icon-send {
  width: 18px;
  height: 18px;
  display: inline-block;
  color: #FFFFFF; /* uses currentColor fill in SVG */
}
/* Center spinner on top of the icon */
.tester-actions .tester-submit .spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.tester-actions .tester-submit.loading .icon-send { opacity: 0.25; }

@media (max-width: 768px) {
  .tester-actions .tester-submit { width: 52px; height: 52px; }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .feature-flow-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .feature-image-wrapper {
    order: -1; /* Image en premier sur mobile */
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .feature-flow {
    padding: var(--spacing-lg) 0;
  }
  
  .feature-accordion .accordion-header {
    padding: var(--spacing-sm) 0;
  }
  
  .feature-accordion .accordion-title {
    font-size: 0.95rem;
  }
  
  .feature-accordion .accordion-content[aria-hidden="false"] {
    max-height: 250px;
    padding: var(--spacing-xs) 0 var(--spacing-sm);
  }
  
  .feature-accordion .accordion-content p {
    font-size: 0.875rem;
  }
}


/* Use dynamic viewport height on supported browsers to avoid mobile URL bar issues */
@supports (height: 100dvh) {
  .hero { min-height: calc(100dvh - var(--navbar-height)); }
}


@keyframes modalSlideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* ═══════════════════════════════════════
   RESPONSIVE MOBILE ≤ 680px
═══════════════════════════════════════ */
@media (max-width: 680px) {

    /* Verrouillage scroll iOS */
    html.modal-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Backdrop : ancrage en bas pour l'effet bottom-sheet */
    .modal {
        padding: 0;
        overflow: hidden;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background: rgba(6, 4, 16, 0.72);
        align-items: flex-end;
        justify-content: center;
    }

    /* Boîte centrale : bottom-sheet 96dvh avec coins arrondis en haut */
    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 96dvh;
        max-height: none;
        border-radius: 24px 24px 0 0;
        display: flex;
        flex-direction: column;
        grid-template-columns: unset;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
        animation: modalSlideUpMobile 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* Panneau décoratif : masqué sur mobile */
    .modal-deco { display: none; }

    /* Bouton fermer : repositionné */
    .modal-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.06);
    }

    /* Panneau formulaire : toute la hauteur */
    .modal-form-panel {
        flex: 1;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .modal-form-panel__inner {
        padding: 1.5rem 1.25rem 0;
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Wizard header */
    .wizard-header { margin-bottom: 1.25rem; }

    /* Formulaire */
    .waitlist-form { flex: 1; min-height: 0; display: flex; flex-direction: column; }
    .step-panels {
        flex: 1;
        min-height: 0;
        position: relative;        /* ré-affirmé explicitement sur mobile */
        overflow: hidden;          /* clipping obligatoire pour les panels en transition */
        transform: translateZ(0);  /* force un layer GPU dédié sur iOS Safari
                                      → corrige le bug WebKit : overflow:hidden ignoré
                                      sur position:absolute + transform sans compositing layer */
    }

    /* Step panels */
    .step-panel { padding: 0.25rem 0 0.5rem; }

    /* Question titre */
    .step-question { font-size: 1.2rem; margin-bottom: 1.25rem; }

    /* Form row → 1 colonne */
    .form-row { grid-template-columns: 1fr; gap: 0.75rem; }

    /* Inputs */
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="number"] {
        font-size: 1rem;
        padding: 0.9rem 1rem;
    }

    /* Wizard actions collées en bas */
    .wizard-actions {
        flex-shrink: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.875rem 1.25rem;
        padding-bottom: max(0.875rem, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        margin: 0 -1.25rem;
    }
    .wizard-actions .btn {
        width: 100%;
        min-width: 0;
        min-height: 56px;
        font-size: 1rem;
        justify-content: center;
    }

    /* Chips touch-friendly */
    .chip-option {
        min-height: 58px;
        font-size: 0.925rem;
        padding: 0.875rem 1.1rem;
        border-radius: 16px;
    }
    .chip-group--col { gap: 0.5rem; }
    .chip-group--2col { gap: 0.5rem; }
    .chip-group--2col .chip-option {
        min-height: 54px;
        padding: 0.75rem 0.65rem;
        font-size: 0.875rem;
    }
}


/* ===== Love Languages Wizard (LL) ===== */
.ll-wizard .ll-header { text-align: center; max-width: 760px; margin: 0 auto var(--spacing-md); }
.ll-wizard .ll-header h1 { margin-bottom: .25rem; }
.ll-wizard .ll-subtitle { color: var(--color-text-medium); margin: 0 0 .25rem 0; }
.ll-wizard .ll-progress { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.ll-wizard .ll-progress-bar { flex: 1; height: 8px; background: #EFEFEF; border-radius: var(--radius-full); overflow: hidden; }
.ll-wizard .ll-progress-bar > span { display: block; height: 100%; width: 0%; background: var(--gradient-accent); transition: width var(--transition-normal); }
.ll-wizard .ll-progress-text { font-family: 'Poppins', sans-serif; font-size: .9rem; color: var(--color-text-medium); min-width: 48px; text-align: right; }

.ll-wizard .tester-card { border-radius: 20px; padding: 1rem; box-shadow: var(--shadow-md); background: var(--color-surface); }
.ll-wizard .tester-conversation { height: 320px; padding: 1rem; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 16px; }
.ll-wizard .tester-conversation .bubble { font-size: 1rem; line-height: 1.6; }

.choice-actions { display: flex; gap: .6rem; margin-top: .75rem; }
.choice-actions .btn { flex: 1 1 0; padding: .9rem 1rem; font-size: 1rem; }
.choice-actions .btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,122,0,.25); }

@media (max-width: 768px) {
  .ll-wizard .tester-conversation { height: 50vh; }
  .choice-actions { position: sticky; bottom: 0; left: 0; right: 0; padding: .75rem .5rem; background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,.92)); border-top: 1px solid var(--color-border); }
  .choice-actions .btn { width: 100%; }
}


/* Utility: gradient text for accent titles */
.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Utility: eyebrow/overline for headings */
.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-medium);
  margin-right: 0.5rem;
}


/* ===== In-chat clickable choices for LL wizard ===== */
.tester-conversation .choice-bubbles {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-start;
  justify-content: flex-end; /* align to user side */
}
.tester-conversation .choice-bubbles .bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: #F5F5F5;
  color: var(--color-text-dark);
  border-radius: 18px;
  padding: .55rem .9rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.tester-conversation .choice-bubbles .bubble:hover {
  background: #EAEAEA;
  transform: translateY(-1px);
}
.tester-conversation .choice-bubbles .bubble:active {
  transform: translateY(0);
}
.tester-conversation .choice-bubbles .bubble:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,122,0,.25);
}
@media (max-width: 768px) {
  .tester-conversation .choice-bubbles .bubble {
    flex: 1 1 calc(50% - .25rem);
    text-align: center;
  }
}


/* ===== HOW IT WORKS STEPS ANIMATION ===== */
.horizontal-scroll-section {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.horizontal-scroll-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
}

.horizontal-scroll-wrapper .section-title {
    margin: 0;
    text-align: center;
}

/* Container des étapes */
.horizontal-steps {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Chaque étape : état initial (invisible) */
.horizontal-steps .step {
    flex: 0 0 auto;
    width: 260px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* État visible (ajouté par JS) */
.horizontal-steps .step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image */
.step-image {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Barre de progression + numéro */
.step-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

/* La barre se remplit quand le step est visible */
.horizontal-steps .step.visible .progress-fill {
    width: 100%;
}

/* Numéro */
.step-progress .step-number {
    width: 22px;
    height: 22px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

/* Contenu texte */
.step-content {
    text-align: center;
}

.step-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--color-text-medium);
    line-height: 1.5;
    margin: 0;
}

/* Mobile : tout visible, en colonne */
@media (max-width: 768px) {
    .horizontal-steps {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .horizontal-steps .step {
        width: 100%;
        max-width: 400px;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .step-image {
        height: 200px;
    }

    .progress-fill {
        width: 100% !important;
        transition: none;
    }
}
