/*
 * 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;

    /* Parallax cards (Identify/Partner) theming */
    --card-radius: 32px;
    --card-radius-mobile: 20px;
    --card-shadow: var(--shadow-xl);
    --card-pink-start: #FFE6EF;
    --card-pink-end: #FFD9E8;
    --card-green-start: #E6F7F2;
    --card-green-end: #D9F0EA;
    /* Vertical overlap amount between stacked cards */
    --stack-overlap: 80px;
    /* Width and side gutter for the parallax cards */
    --stack-max-width: var(--container-max-width);
    --stack-gutter: 40px;

    /* 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;
}

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;
    width: 100%;
    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);
}

/* ===== 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);
}

/* ===== HERO SECTION ===== */
.hero {
    /* Top padding accounts for fixed navbar */
    padding-top: 100px;
    text-align: center;
    background-image: url('../images/background-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-background);
    animation: fadeIn 1s ease-in-out;
    position: relative;
    overflow: hidden;
    /* Fill the viewport height */
    min-height: 100vh;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay pour lisibilité */
    z-index: 1;
}

/* Specific tweaks for LL landing hero */
.ll-landing-hero .cta-container {
    /* Stack the CTA and the scroll arrow vertically and center them */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    /* Remonte légèrement le bouton pour laisser la place à la flèche sans agrandir le hero */
    margin-top: var(--spacing-sm);
}

/* Cancel default top margin on the indicator inside the LL hero since we use gap above */
.ll-landing-hero .cta-container .scroll-down-indicator {
    margin-top: 0;
}

/* Scroll down indicator under the primary CTA in hero */
.scroll-down-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: var(--spacing-sm);
    color: var(--color-background);
    border-radius: 50%;
    transition: color var(--transition-fast), transform var(--transition-normal), opacity var(--transition-fast);
    animation: scroll-bounce 1.8s ease-in-out infinite;
    opacity: 0.9;
}

.scroll-down-indicator:hover,
.scroll-down-indicator:focus {
    transform: translateY(2px);
    outline: none;
}

.scroll-down-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Hero background animation elements */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color-accent-light) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    /* Transform is now handled by JavaScript */
    will-change: transform;
}

/* Ensure hero content is above the background */
.hero .container {
    position: relative;
    z-index: 3;
    display: grid;
    /* Let rows size to their content naturally */
    grid-auto-rows: max-content;
    /* Center the overall block vertically within the   hero */
    align-content: space-evenly;
    justify-items: center;
    gap: clamp(1rem, 3vh, 2.5rem);
    padding-block: clamp(1.5rem, 6vh, 4rem);
    /* Ensure generous vertical space inside the hero */
    min-height: calc(100vh - 100px);
}

.hero-title {
    color: #FFFFFF;
    font-size: 2.75rem;
    margin: 0;
}

.hero-subtitle {
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 auto; /* rely on grid gap for spacing */
    max-width: 800px;
}

.hero-quote {
    font-style: italic;
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
}

/* ===== LL LANDING (5 love languages) ===== */
.ll-landing-hero .metrics {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-sm) 0 var(--spacing-md);
    padding: .5rem .9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.ll-landing-hero .metrics li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--color-text-medium);
    font-weight: 500;
}
.ll-landing-hero .metrics img { display: inline-block; opacity: .9; }

.picto-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,122,0,.08);
    color: var(--accent-start);
    font-size: 30px;
    box-shadow: var(--shadow-sm);
}

.ll-cta {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(1200px 400px at 50% -10%, rgba(255,122,0,.12), transparent 60%),
                radial-gradient(1000px 300px at 80% 110%, rgba(255,63,125,.12), transparent 60%),
                var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.bg-accent-radials {
    /* Utility class to reuse the elegant CTA gradient background on other sections */
    background: radial-gradient(1200px 400px at 50% -10%, rgba(255,122,0,.12), transparent 60%),
                radial-gradient(1000px 300px at 80% 110%, rgba(255,63,125,.12), transparent 60%),
                var(--color-surface);
}
.ll-cta .cta-sub {
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-md);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-background);
}

.features .container {
    max-width: var(--container-max-width);
}

.feature-grid {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.feature-cards-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 300px));
    gap: var(--spacing-sm);
}

.feature-cards-wrapper .feature-card:last-child {
    grid-column: 1 / 2;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(249, 249, 249, 0.6);
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.feature-pill:hover {
    background: rgba(249, 249, 249, 0.9);
    border-color: rgba(200, 200, 200, 0.9);
}

.feature-card h3 {
    font-size: 0.60rem;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-medium);
    margin: 0;
}

.feature-icon {
    width: 16px;
    height: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.feature-pill:hover .feature-icon {
    opacity: 1;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-phone {
    flex: 0 0 auto;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-phone img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.features-quote {
    text-align: center;
    font-style: italic;
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--spacing-lg) auto var(--spacing-xl);
}

.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-lg);
    background-color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    padding: var(--spacing-lg);
}

/* Classe utilitaire pour les sections de landing */
.section-padding {
    padding: var(--spacing-xl) 0;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

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

.feature-content {
    flex: 1;
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(90deg, var(--color-text-dark), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-medium);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--spacing-md);
}

.feature-image::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent-light) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    opacity: 0.7;
}

.feature-image img {
    max-width: 100%;
    max-height: 280px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform var(--transition-normal);
}

.feature-block:hover .feature-image img {
    transform: scale(1.05) translateY(-5px);
}

.image-right {
    flex-direction: row;
}

.image-left {
    flex-direction: row-reverse;
}

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


/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.cta-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Impact block: quote + steps in one card */
.how-it-works.impact { padding: 0; background: transparent; margin: var(--spacing-lg) 0 var(--spacing-xl); }
.how-it-works.impact > .container { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); padding: var(--spacing-xl); }

.impact-quote { position: relative; text-align: center; max-width: var(--container-max-width); margin: 0 auto var(--spacing-lg); font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 600; line-height: 1.35; color: var(--color-text-dark); }
.impact-quote .impact-quote-mark { display: block; font-size: 2.2rem; line-height: 1; margin-bottom: var(--spacing-sm); background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.how-it-works.impact .steps { margin-bottom: 0; padding-top: var(--spacing-lg); border-top: 1px solid var(--color-border); }

/* Impact section in features (full-width gradient) */
.features .impact {
    padding: var(--spacing-xl) 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: radial-gradient(1200px 400px at 50% -10%, rgba(255,122,0,.12), transparent 60%),
                radial-gradient(1000px 300px at 80% 110%, rgba(255,63,125,.12), transparent 60%),
                var(--color-surface);
}

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

/* ===== BLOG SECTION ===== */
.blog {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.blog-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 110px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 0.75rem;
}

.blog-content h3 {
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.blog-content p {
    color: var(--color-text-medium);
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.blog-link {
    font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
}

.accordion {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.accordion-header {
    width: 100%;
    padding: var(--spacing-md);
    background-color: white;
    border: none;
    text-align: left;
    font-family: 'Satoshi', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-accent);
    transition: all var(--transition-fast);
}

.accordion-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.accordion-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.accordion-item.active .accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: all var(--transition-normal);
}

.accordion-item.active .accordion-content {
    padding: 0 var(--spacing-md) var(--spacing-md);
    max-height: 1000px;
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: #111111;
    color: #E5E5E5;
}

.footer .container {max-width: var(--container-max-width);}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 40px;
    margin-right: var(--spacing-xs);
}

.footer-logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

/* ===== RESULT PAGE (LL) ===== */
/* Ajout d'un offset supérieur suffisant pour ne pas être masqué par la navbar fixe */
.ll-result { padding: calc(var(--navbar-height) + 48px) 0 var(--spacing-xl); }
.ll-result .ll-result-header { max-width: 880px; margin: 0 auto; }
.ll-result .lead { color: var(--color-text-medium); margin-top: .25rem; }
.ll-result .muted { color: var(--color-text-medium); }
.ll-result .result-top { margin: var(--spacing-sm) 0 var(--spacing-md); }
.ll-result .result-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.ll-result .badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: var(--radius-full); font-family: 'Poppins', sans-serif; font-size: .9rem; border: 1px solid var(--color-border); }
.ll-result .badge-dominant { background: rgba(255,122,0,.10); border-color: rgba(255,122,0,.35); color: var(--color-text-dark); }
.ll-result .badge-secondary { background: #F5F5F5; }
.ll-result .badge-confidence { background: #F0F7FF; border-color: #CAE1FF; color: #0B4697; }

.ll-result .result-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--spacing-md); align-items: start; }
.ll-result .result-card h2, .ll-result .email-card h2 { margin-bottom: var(--spacing-sm); }

/* Score list */
.score-list { display: grid; gap: .75rem; }
.score-item { display: grid; gap: .4rem; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.score-label { font-weight: 600; }
.score-value { color: var(--color-text-medium); font-family: 'Poppins', sans-serif; font-size: .95rem; }
.score-bar { position: relative; height: 10px; background: #EFEFEF; border-radius: var(--radius-full); overflow: hidden; }
.score-bar .score-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--gradient-accent); border-radius: var(--radius-full); width: 0%; transition: width var(--transition-normal); }

/* Email form */
/* Bloc email: alléger la densité visuelle (tailles, paddings) */
.email-card { position: sticky; top: calc(var(--navbar-height) + 12px); padding: 1rem 1.25rem; }
.ll-result .email-card h2 { font-size: 1.25rem; font-weight: 600; }
.ll-result .email-card p { font-size: .95rem; }
.email-form { display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: center; }
.email-form input[type="email"] { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: .6rem .85rem; background: #FFFFFF; font-size: .95rem; min-height: 44px; }
.email-form .btn, .email-form button[type="submit"] { padding: .55rem 1rem; font-size: .95rem; border-radius: 10px; }
.email-form input[type="email"]:focus { outline: none; border-color: var(--accent-start); box-shadow: 0 0 0 3px rgba(255,122,0,.2); }
.email-form .email-msg { min-height: 1.1em; font-size: .9rem; grid-column: 1 / -1; }
.email-form .email-msg[data-state="error"] { color: #c62828; }
.email-form .email-msg[data-state="success"] { color: #1b5e20; }

.back-link { margin-top: var(--spacing-md); }

@media (max-width: 900px) {
  .ll-result .result-grid { grid-template-columns: 1fr; }
  .email-card { position: static; }
  .email-form { grid-template-columns: 1fr; }
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    margin-bottom: var(--spacing-md);
    color: white;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== MODAL ===== */
@keyframes modalFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes modalContentSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 2000;
    overflow-y: hidden; /* prevent backdrop scroll */
    padding: var(--spacing-md);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(0);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    opacity: 1;
    animation: modalFadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.modal-content {
    background: #FFFFFF;
    border-radius: var(--radius-xxl);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 760px;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal.active .modal-content {
    animation: modalContentSlideIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.1s forwards;
}

.modal-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.03);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all var(--transition-fast);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    color: var(--color-text-dark);
    background-color: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-xs);
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-md);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text-dark);
    letter-spacing: -0.3px;
}

.modal-body {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    background: white;
    flex: 1 1 auto;
    overflow-y: auto;
}

.modal-body p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.waitlist-form {
    margin-top: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background: #FFFFFF;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--color-text-light);
    font-weight: 400;
    opacity: 0.7;
}

.form-group input:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-start);
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.2);
}

.required {
    color: #e53935;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.btn-full {
    width: 100%;
    margin-top: var(--spacing-md);
    display: inline-block;
}

/* Conserver les styles de .btn / .btn-primary (gradient, couleurs, radius).
   Pas de hover/active spécifiques ici: ils viennent des classes btn-* existantes. */

.btn-full::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-full:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.success-message {
    text-align: center;
    padding: var(--spacing-md) 0;
    animation: fadeIn 0.8s var(--transition-bounce);
    position: relative;
}

.success-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-accent-light);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-success 2s infinite ease-in-out;
}

@keyframes pulse-success {
    0% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.6;
    }
}

.success-message h4 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.success-message h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}


/* ===== 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: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        font-weight: 500;
        width: 100%;
    }

    .navbar-links .dropdown-trigger::after {
        content: '';
        display: inline-block;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--color-text-medium);
        border-bottom: 2px solid var(--color-text-medium);
        transform: rotate(45deg);
        transition: transform var(--transition-normal);
        margin-left: 10px;
    }

    .navbar.mobile-menu-open .dropdown.active .dropdown-trigger::after {
        transform: rotate(-135deg);
    }

    .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: none; /* Hidden by default on mobile, toggled with .active */
        flex-direction: column;
        gap: var(--spacing-md);
        background: transparent;
        margin-top: var(--spacing-sm);
    }

    .navbar-links .dropdown.active .dropdown-menu.mega-menu {
        display: flex;
    }

    .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);
    }

    .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;
    }
}

/* ==============================
   Love Languages – nouvelles cartes (3 + 2)
   Ajustements compacts pour voir les 5 en même temps sur desktop
   ============================== */
#languages.love-languages { padding: var(--spacing-xl) 0; }
#languages.love-languages h2 { text-align: center; margin-bottom: var(--spacing-md); }

.love-grid { display: grid; gap: 1rem; max-width: 980px; margin: 0 auto; }
.love-row { display: grid; gap: 1rem; }

/* Desktop: 3 cartes en haut; 2 cartes en bas centrées avec la même largeur qu'une colonne */
@media (min-width: 1025px) {
  .love-row--top { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Astuce: on calcule la largeur d'une colonne (3 colonnes avec 2 gaps de 1rem) et on centre les 2 cartes */
  .love-row--bottom {
    grid-template-columns: none; /* annule le repeat(3, ...) pour cette rangée */
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    justify-content: center;
  }
  .love-row--bottom > .love-card { grid-column: auto; }
}

/* Tablette: 2 colonnes */
@media (max-width: 1024px) {
  .love-row--top,
  .love-row--bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: 1 colonne */
@media (max-width: 640px) {
  .love-row--top,
  .love-row--bottom { grid-template-columns: 1fr; }
}

.love-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.love-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.love-card__media {
  height: 100px;
  background: #F2F3F5; /* fallback if image fails */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Images de fond pour chaque carte (1 → 5) */
#languages .love-row--top .love-card:nth-child(1) .love-card__media {
  background-image: url('../images/couple-words.jpg');
}
#languages .love-row--top .love-card:nth-child(2) .love-card__media {
  background-image: url('../images/quality-time.jpg');
}
#languages .love-row--top .love-card:nth-child(3) .love-card__media {
  background-image: url('../images/gifts.jpg');
}
#languages .love-row--bottom .love-card:nth-child(1) .love-card__media {
  background-image: url('../images/couple-service.jpg');
}
#languages .love-row--bottom .love-card:nth-child(2) .love-card__media {
  background-image: url('../images/couple-hug.jpg');
}

.love-card__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.love-card__icon img,
.love-card__icon .emoji {
  width: 36px;
  height: 36px;
}

.love-card__body {
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.love-card__title { font-size: 0.95rem; font-weight: 600; margin: 0; }
.love-card__text { font-size: 0.9rem; color: var(--color-text-medium); }

.love-card__cta {
  margin-left: auto;
  margin-top: auto;
  color: #5C3DF3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #F2F0FF;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.love-card:hover .love-card__cta { transform: translateX(2px); background: #E9E5FF; }

@media (max-width: 576px) {
    :root {
        --container-padding: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    /* Additional modal adjustments for very small screens */
    .modal-content {
        margin: 1rem 0;
    }

    .modal-header {
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-xs);
    }

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

    .form-group {
        margin-bottom: var(--spacing-sm);
    }
}

/* Navbar active link state */
.navbar-links a.active,
.navbar-links a[aria-current="page"] {
    border-bottom-color: var(--accent-start);
}

/* Typography scale per CDC */
h1 { font-size: 2.4rem; font-weight: 600; }
h2 { font-size: 1.8rem; font-weight: 500; }
h3 { font-size: 1.4rem; font-weight: 500; }
p { font-size: 1rem; }

/* Generic card/section utility matching CDC */
.card, .section-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: #FFFFFF;
    padding: 1.5rem 2rem;
}


/* ===== HEADER TESTER ===== */
.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-panel {
  position: fixed;
  top: var(--navbar-height); /* hauteur navbar */
  left: 0; right: 0;
  z-index: 1001; /* sous .modal (2000) */
  padding: 0.75rem 0; /* petite respiration */
  display: none; /* masqué par défaut */
}
.tester-panel.open { display: block; }

.tester-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 20px; /* CDC: angles doux */
  padding: 0.75rem; /* l’input occupe visuellement la carte */
  box-shadow: var(--shadow-md);
}

.tester-input {
  width: 100%;
  resize: none; /* auto-grow via JS */
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  background: #F5F5F5; /* comme la capture */
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--color-text-dark);
}
.tester-input::placeholder { color: var(--color-text-medium); opacity: .9; }
.tester-input:focus { outline: none; }

.tester-actions { display: flex; align-items: center; justify-content: right; gap: var(--spacing-sm); margin-top: .6rem; }
.tester-left { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* "Pills" */
.chip-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border);
  background: #FFFFFF; color: var(--color-text-dark);
  padding: .55rem 2.2rem .55rem .9rem;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif; font-weight: 500; font-size: .95rem;
  position: relative;
  transition: all var(--transition-fast);
}
.chip-select:hover {
  border-color: var(--color-text-light);
  background: var(--color-surface);
}
.chip-select:focus {
  outline: none;
  border-color: var(--color-text-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.chip-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23555555'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 16px; }

.chip-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: #F5F5F5; font-family: 'Poppins', sans-serif; font-weight: 500; color: var(--color-text-dark); cursor: pointer; position: relative; }
.chip-toggle input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.chip-check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--color-border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent-start); background: #fff; }
.chip-toggle input:checked + span + .chip-check { border-color: var(--accent-start); background: rgba(255,122,0,.08); }

.tester-submit { display: inline-flex; align-items: center; gap: .6rem; }
.tester-submit .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; display: none; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tester-submit.loading .spinner { display: inline-block; }
.tester-submit.loading .label { opacity: .8; }

.tester-result { margin-top: .6rem; border: 1px solid var(--color-border); border-radius: 12px; padding: .9rem; background: var(--color-surface); color: var(--color-text-medium); white-space: pre-wrap; }

/* Responsive */
@media (max-width: 768px) {
  .tester-panel { top: var(--navbar-height); padding: .5rem 0; }
  .tester-actions { flex-direction: column; align-items: stretch; }
  .tester-submit { width: 100%; justify-content: center; }
}


/* ===== HERO-INTEGRATED TESTER ===== */
.hero .hero-tester { margin-top: 0; grid-row: 3; padding: 20px 0; width: 75%; max-width: 750px; }
.hero .hero-tester .tester-card { border-radius: 40px; padding: 0.4rem 0.75rem; min-height: 56px; box-shadow: 0 0 0 2px rgba(255,122,0,0.06), var(--shadow-md); }
.hero .hero-tester .tester-input { min-height: auto; height: 100%; border: none; background: transparent; padding: 0 0.5rem; }
.hero .hero-tester #tester-form { display: flex; align-items: center; gap: 0.5rem; height: 100%; }
.hero .hero-tester .tester-input { flex: 1; }
.hero .hero-tester .tester-actions { margin-top: 0; }
@media (max-width: 768px) {
  .hero .hero-tester { margin-top: 0; grid-row: 3; width: 95%; }
  .hero .hero-tester .tester-card { height: auto; padding: 0.5rem 0.75rem; }
  .hero .hero-tester #tester-form { flex-direction: column; align-items: stretch; gap: 0.6rem; height: auto; }
  .hero .hero-tester .tester-input { height: auto; min-height: 44px; padding: 0.5rem; }
  .hero .hero-tester .tester-actions { margin-top: 0.6rem; justify-content: center; }
}

/* ===== 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; }
}


/* === Feature Cards – DA refresh (2025-10-23) === */
.features .feature-grid { /* keep existing grid but ensure consistent gap */ gap: var(--spacing-lg); }

/* Card container refinements */
.feature-card {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: calc(var(--spacing-lg) * 0.6) var(--spacing-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.feature-card p { margin: 0; color: var(--color-text-medium); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:focus-within { box-shadow: 0 0 0 3px rgba(255,122,0,.15), var(--shadow-md); }

/* ===== FEATURE FLOW (Accordion + Image) ===== */
.feature-flow {
  background: transparent;
  padding: var(--spacing-xl) 0;
  margin: 0;
}

/* Grille 2 colonnes : accordéon à gauche | image à droite */
.feature-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

/* ===== ACCORDÉON ===== */
.feature-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Item d'accordéon */
.feature-accordion .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.feature-accordion .accordion-item:last-child {
  border-bottom: none;
}

.feature-accordion .accordion-item:hover {
  box-shadow: none;
}

/* Header de l'accordéon (bouton cliquable) */
.feature-accordion .accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  transition: background-color var(--transition-fast);
}

.feature-accordion .accordion-header:hover {
  background: transparent;
}

/* Forcer la neutralisation de tout fond au survol sur les entêtes/titres d'accordéon
   (certains scripts/feuilles génériques peuvent injecter un background au :hover sur la home) */
.feature-accordion .accordion-header,
.feature-accordion .accordion-title {
  background: transparent !important;
}
.feature-accordion .accordion-header:hover,
.feature-accordion .accordion-header:focus,
.feature-accordion .accordion-title:hover,
.feature-accordion .accordion-title:focus {
  background: transparent !important;
}

.feature-accordion .accordion-header:focus {
  outline: none;
}

/* Titre de l'accordéon */
.feature-accordion .accordion-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

/* Icône de l'accordéon (flèche) */
.feature-accordion .accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

/* Flèche vers le bas (accordéon fermé) */
.feature-accordion .accordion-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: transparent;
  border-right: 2px solid var(--color-text-medium);
  border-bottom: 2px solid var(--color-text-medium);
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform var(--transition-normal);
}

/* Supprimer le ::after qui n'est plus nécessaire */
.feature-accordion .accordion-icon::after {
  content: none;
}

/* Flèche vers le bas (accordéon fermé - état explicite) */
.feature-accordion .accordion-header[aria-expanded="false"] .accordion-icon::before {
  transform: translate(-50%, -65%) rotate(45deg);
}

/* Flèche vers le haut (accordéon ouvert) */
.feature-accordion .accordion-header[aria-expanded="true"] .accordion-icon::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}

/* Contenu de l'accordéon */
.feature-accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, 
              opacity 0.3s ease-in-out, 
              padding 0.4s ease-in-out;
  padding: 0;
}

.feature-accordion .accordion-content[aria-hidden="true"] {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
}

.feature-accordion .accordion-content[aria-hidden="false"] {
  max-height: 600px;
  opacity: 1;
  padding: var(--spacing-xs) 0 var(--spacing-md);
}

.feature-accordion .accordion-content p {
  margin: 0;
  color: var(--color-text-medium);
  padding: 20px 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== IMAGE À DROITE ===== */
.feature-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 350px; /* Réduire la taille de l'image */
  margin: 0 auto; /* Centrer le wrapper dans sa cellule de grille */
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===== 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)); }
}


/* ===== HERO RESPONSIVE OVERRIDES ===== */
@media (max-width: 768px) {
  .hero {
    /* Let content grow naturally on small screens */
    min-height: auto;
    padding-top: 1rem; /* body already accounts for navbar height */
  }
  .hero .container {
    /* Avoid forcing viewport height when textarea auto-grows */
    min-height: auto;
  }
}

/* =====================
   LL Landing – Section styles & refinements
   ===================== */

/* Introduction & Definition: centered titles, readable width, subtle background rhythm */
#introduction, #definition {
  padding: var(--spacing-xl) 0;
}
#introduction { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
#introduction h2, #definition h2 { text-align: center; margin-bottom: var(--spacing-md); }
#introduction p, #definition p, #introduction ul, #definition ul {
  max-width: var(--container-max-width);
  margin: 0 auto var(--spacing-md);
}
#introduction p, #definition p { color: var(--color-text-medium); }
#introduction ul, #definition ul { list-style: none; display: grid; gap: .5rem; padding-left: 0; }
#introduction ul li, #definition ul li { position: relative; padding-left: 22px; }
#introduction ul li::before, #definition ul li::before {
  content: '';
  position: absolute; left: 0; top: .55rem;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--gradient-accent);
}

/* Languages: centered title, compact cards, and a true 3/2 staggered layout */
#languages h2 { text-align: center; margin-bottom: var(--spacing-lg); }

/* Default desktop layout: 3 columns. We'll switch to 6 cols only on very large screens */
#languages .feature-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin-inline: auto;
}

/* Compact the cards specifically in this section */
#languages .feature-card {
  grid-column: auto; /* default: let grid auto-place (3 cols on desktop) */
  padding: calc(var(--spacing-sm) + 0.25rem) var(--spacing-md);
}
#languages .feature-card h3 { font-size: 1.15rem; }
#languages .feature-icon { width: 56px; height: 56px; margin-bottom: var(--spacing-sm); }
#languages .feature-icon img { width: 24px; height: 24px; }
#languages .feature-card ul { margin-top: .35rem; margin-bottom: 0; }
#languages .feature-card li { margin: .25rem 0; }

/* On very large screens, use 6 columns (each card spans 2) to create a 3/2 staggered layout */
@media (min-width: 1200px) {
  #languages .feature-grid { grid-template-columns: repeat(6, 1fr); }
  /* At ≥1200px, each card spans 2 columns to enable the 3/2 layout */
  #languages .feature-card { grid-column: span 2; }
  /* Place the last two cards centered below (staggered) */
  #languages .feature-grid > .feature-card:nth-child(4) { grid-column: 2 / span 2; }
  #languages .feature-grid > .feature-card:nth-child(5) { grid-column: 4 / span 2; }
}

/* Ensure 3 columns on medium/large laptops where there isn't enough width for 3/2 without cramping */
@media (min-width: 992px) and (max-width: 1199px) {
  #languages .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  /* Back to a classic 2-column grid on tablets */
  #languages .feature-grid { grid-template-columns: repeat(2, 1fr); }
  #languages .feature-card { grid-column: auto; }
}
@media (max-width: 768px) {
  /* 1 column on mobile */
  #languages .feature-grid { grid-template-columns: 1fr; }
}

/* Reduce gaps for feature grids on small screens to avoid excessive whitespace */
@media (max-width: 768px) {
  .features .feature-grid { gap: var(--spacing-md); }
}

/* Tighten hero layout on mobile to prevent awkward spacing */
@media (max-width: 768px) {
  .hero .container { align-content: start; gap: var(--spacing-md); padding-block: var(--spacing-lg); }
}

/* Identify: numbered steps with accent pills */
#identify h2 { text-align: center; margin-bottom: var(--spacing-md); }
#identify p { text-align: center; color: var(--color-text-medium); max-width: 1000px; margin: 0 auto var(--spacing-md); }
#identify ol { list-style: none; counter-reset: step; display: grid; gap: .75rem; max-width: var(--container-max-width); margin: 0 auto; }
#identify ol li { counter-increment: step; position: relative; padding-left: 56px; line-height: 36px;}
#identify ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 600;
}

/* Partner: section spacing and background */
#partner { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
#partner h2 { text-align: center; margin-bottom: var(--spacing-md); }

/* Shared two‑column layout for Identify/Partner */
.split-row { display: flex; align-items: center; gap: var(--spacing-xl); margin-top: var(--spacing-md); }
.split-text { flex: 1 1 0; }
.split-media { flex: 1 1 0; display: flex; justify-content: flex-end; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); height: auto; max-width: 520px; }

/* Ensure left-aligned body text in split layout (override centered paragraph styles) */
#identify .split-text p,
#partner .split-text p { text-align: left; color: var(--color-text-medium); max-width: 720px; }

@media (max-width: 992px) {
  .split-row { gap: var(--spacing-lg); }
}

@media (max-width: 768px) {
  .split-row { flex-direction: column; }
  .split-media { justify-content: center; }
  .split-text, .split-media { width: 100%; }
}

/* ===== Parallax stack: Identify <-> Partner (sticky overlap) ===== */
.ll-parallax-stack { position: relative; }

.ll-parallax-stack #identify,
.ll-parallax-stack #partner {
  position: sticky;
  top: calc(var(--navbar-height, 56px) + 16px);
  border-radius: var(--card-radius, 32px);
  box-shadow: var(--card-shadow, var(--shadow-xl));
  background: #fff; /* ensure clean overlap */
  /* Constrain card width and center within the viewport to reveal page background */
  width: min(100% - (var(--stack-gutter) * 2), var(--stack-max-width));
  margin-left: auto;
  margin-right: auto;
}

/* Order and overlap: partner above identify */
.ll-parallax-stack #identify { z-index: 1; }
.ll-parallax-stack #partner  { z-index: 2; margin-top: calc(var(--stack-overlap) * -1); }

/* DA-aligned backgrounds (blocs différenciés, sans shadow) */
.ll-parallax-stack #identify {
  /* dégradé identique au bandeau CTA, pour s’aligner avec la DA */
  background: radial-gradient(1200px 400px at 50% -10%, rgba(255,122,0,.12), transparent 60%),
              radial-gradient(1000px 300px at 80% 110%, rgba(255,63,125,.12), transparent 60%),
              var(--color-surface);
  border: 1px solid var(--color-border);
}
.ll-parallax-stack #partner {
  /* couleur fournie par le client */
  background: #FFECDA;
  border: 1px solid var(--color-border);
}

/* Suppression des ombres sur les deux cartes (demande client) */
.ll-parallax-stack #identify,
.ll-parallax-stack #partner {
    box-shadow: none;
    max-width: var(--container-max-width);
}

/* Inner spacing while stacked as cards */
.ll-parallax-stack #identify .container,
.ll-parallax-stack #partner .container { padding-block: var(--spacing-lg); }

/* Slightly reduce media size in parallax sections */
.ll-parallax-stack .split-media img { max-width: 380px; }

/* Mobile: disable sticky and overlap for linear reading */
@media (max-width: 768px) {
  .ll-parallax-stack #identify,
  .ll-parallax-stack #partner {
    position: static;
    top: auto;
    margin-top: var(--spacing-lg);
    border-radius: var(--card-radius-mobile, 20px);
    box-shadow: var(--shadow-md);
    /* Comfortable side gutters on mobile */
    width: calc(100% - (16px * 2));
  }
}

/* Optional: scroll-driven animations could be added here when broadly supported */

/* Why: compact the vertical footprint */
#why.feature-flow { padding: var(--spacing-lg) var(--spacing-md); }
#why .feature-block { padding: var(--spacing-md) 0; gap: var(--spacing-md); opacity: 1}
#why .feature-image { width: 72px; height: 72px; padding: 10px; }
#why .feature-content h3 { margin-bottom: .35rem; }
#why .feature-content ul { margin-top: .35rem; }
#why .feature-content p { margin: 0; line-height: 1.6; }

/* FAQ: center title and ensure spacing */
#faq h2 { text-align: center; margin-bottom: var(--spacing-lg); }

/* ITM callout */
#itm { padding: var(--spacing-xl) 0; }
#itm .container {
  max-width: var(--container-max-width);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  text-align: center;
}
#itm p { color: var(--color-text-medium); margin: 0; }

/* Internal links as pills */
#internal-links { padding: var(--spacing-xl) 0; background: var(--color-surface); border-top: 1px solid var(--color-border); }
#internal-links h2 { text-align: center; margin-bottom: var(--spacing-md); }
#internal-links ul { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
#internal-links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .95rem;
  background: #fff; color: var(--color-text-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
#internal-links a::after {
  content: '\2192'; /* → */
  font-size: .95rem;
  color: var(--color-text-light);
}
#internal-links a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }

/* ===== WAITLIST WIZARD (multi-step) ===== */
.wizard-header { margin-bottom: var(--spacing-md); }
.wizard-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: .5rem; }
.wizard-step { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: #F7F7F7; color: var(--color-text-medium); font-family: 'Poppins', sans-serif; font-size: .9rem; user-select: none; min-width: 0; }
.wizard-step .dot { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--color-border); font-weight: 600; font-size: .85rem; flex-shrink: 0; }
.wizard-step.active { border-color: rgba(255,122,0,.35); color: var(--color-text-dark); background: #fff; }
.wizard-step.active .dot { border-color: transparent; background: #F7F7F7; }
.wizard-track { position: relative; height: 6px; background: #EFEFEF; border-radius: var(--radius-full); overflow: hidden; }
.wizard-fill { position: absolute; top:0; left:0; height: 100%; width: 0%; background: var(--gradient-accent); transition: width var(--transition-normal); }

.step-panels { position: relative; overflow: hidden; }
.step-panel { display: none; opacity: 0; transform: translateY(8px); transition: opacity var(--transition-normal), transform var(--transition-normal); width: 100%; }
.step-panel.active { display: block; opacity: 1; transform: translateY(0); }

/* chips (reusing CDC styles, ensure radios/checkboxes are hidden) */
.chip-group { display: flex; flex-wrap: wrap; gap: .6rem; width: 100%; }
.chip-option { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: .5rem; 
  padding: 0.6rem 1.1rem; 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius-full); 
  background: #FFFFFF; 
  font-family: 'Poppins', sans-serif; 
  font-weight: 500; 
  font-size: 0.9rem;
  color: var(--color-text-medium); 
  cursor: pointer; 
  transition: all var(--transition-fast);
  user-select: none;
  text-align: center;
  position: relative;
}
.chip-option input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.chip-option:hover {
  border-color: var(--color-text-light);
  background: var(--color-surface);
}
.chip-option:active {
  transform: scale(0.97);
}
.chip-option:has(input:checked) { 
  border-color: var(--color-text-dark); 
  background: var(--color-text-dark); 
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.chip-option:focus-within { 
  outline: none; 
  border-color: var(--color-text-dark); 
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); 
}

/* collapsible partner email */
.collapsible[aria-hidden="true"] { max-height: 0; opacity: 0; overflow: hidden; transform: translateY(-6px); 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: .6rem; align-items: center; justify-content: flex-end; margin-top: var(--spacing-sm); }
.wizard-actions .btn { min-width: 120px; }

/* Error text */
.error-text { color: #e53935; font-size: .85rem; margin-top: .35rem; min-height: 1.1em; }

/* Layout helpers */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-sm); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .wizard-fill { transition: none; }
  .step-panel { transition: none; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wizard-steps { grid-template-columns: repeat(4, minmax(0,1fr)); gap: .4rem; }
  .wizard-step label { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .wizard-actions { flex-direction: column; align-items: stretch; }
  .wizard-actions .btn { width: 100%; }
}

/* ===== Waitlist modal – compact visual pass ===== */
#waitlist-modal .modal-body p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

#waitlist-modal .wizard-header { margin-bottom: var(--spacing-sm); }
#waitlist-modal .wizard-steps { gap: .4rem; margin-bottom: .4rem; }
#waitlist-modal .wizard-step {
  gap: .4rem;
  padding: .35rem .5rem;
  font-size: .8rem;
}
#waitlist-modal .wizard-step .dot {
  width: 18px;
  height: 18px;
  font-size: .75rem;
}
#waitlist-modal .wizard-track { height: 4px; }

/* Form sizing inside waitlist modal */
#waitlist-modal .form-group { margin-bottom: var(--spacing-sm); }
#waitlist-modal .form-group label {
  font-size: 0.85rem;
  margin-bottom: .35rem;
}
#waitlist-modal .form-group input {
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
}

/* Action buttons a bit slimmer but still comfortable */
#waitlist-modal .btn { padding: 0.55rem 1rem; min-height: 40px; font-size: 0.95rem; }
#waitlist-modal .wizard-actions .btn { min-width: 112px; }

@media (max-width: 768px) {
  #waitlist-modal .wizard-step .dot { width: 16px; height: 16px; font-size: .7rem; }
  #waitlist-modal .btn { min-height: 42px; }
}


/* ===== Waitlist modal – neutralize accent vars in modal ===== */
/* Inputs focus: remove accent color usage inside modal */
#waitlist-modal .form-group input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Chips states: clean and marked selection */
#waitlist-modal .chip-option:has(input:checked) {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#waitlist-modal .chip-option:focus-within {
  outline: none;
  border-color: var(--color-text-dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}


/* ===== 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;
  }
}


/* ===== HORIZONTAL SCROLL SECTION (How it works) ===== */
.horizontal-scroll-section {
    position: relative;
    /* Hauteur pour créer l'espace de scroll : réduite pour éviter trop d'espace vide */
    min-height: 150vh;
}

.horizontal-scroll-wrapper {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    padding-top: 4rem;
    gap: 2rem;
}

/* Titre de la section */
.horizontal-scroll-wrapper .section-title {
    margin: 0;
    text-align: center;
}

/* Container des étapes en horizontal */
.horizontal-steps {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 0 1rem;
    justify-content: center;
    align-items: flex-start;
}

/* Chaque étape */
.horizontal-steps .step {
    flex: 0 0 auto;
    width: 260px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

/* Étape visible */
.horizontal-steps .step.visible {
    opacity: 1;
}

/* Image de l'étape */
.step-image {
    width: 100%;
    height: 150px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(-50px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

/* Étape visible : image glisse du haut */
.horizontal-steps .step.visible .step-image {
    opacity: 1;
    transform: translateY(0);
}

/* Barre de progression avec numéro */
.step-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 1.2s ease-out 0.3s;
}

.horizontal-steps .step.visible .step-progress {
    opacity: 1;
}

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

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

/* Barre de progression apparaît de gauche à droite */
.horizontal-steps .step.visible .progress-fill {
    width: 100%;
}

/* Numéro de l'étape */
.step-progress .step-number {
    width: 20px;
    height: 20px;
    background: var(--gradient-accent);
    color: #FFFFFF;
    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 de l'étape (texte) */
.step-content {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease-out 0.6s, transform 1.2s ease-out 0.6s;
}

/* Étape visible : texte glisse du bas */
.horizontal-steps .step.visible .step-content {
    opacity: 1;
    transform: translateY(0);
}

.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;
}

/* Étape active (au centre) */
.horizontal-steps .step.active .step-image {
    transform: scale(1.02);
}

.horizontal-steps .step.active .step-progress .step-number {
    transform: scale(1.1);
}

/* Responsive : retour au scroll vertical sur mobile */
@media (max-width: 768px) {
  .horizontal-scroll-section {
      min-height: auto;
      padding: var(--spacing-xl) 0;
  }
    
    .horizontal-scroll-wrapper {
        position: static;
        height: auto;
        overflow: visible;
        padding-top: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .horizontal-steps {
        flex-direction: column;
        gap: var(--spacing-xl);
        padding: 0;
    }
    
    .horizontal-steps .step {
        width: 100%;
        opacity: 1;
        transform: none;
    }
    
    .step-image {
        height: 200px;
        opacity: 1;
        transform: none;
    }
    
    .step-progress {
        opacity: 1;
    }
    
    .progress-fill {
        width: 100%;
    }
    
    .step-content {
        opacity: 1;
        transform: none;
    }
}

/* (Parallax stacked sections removed: identify/partner restored as classic sections) */
