/* RESET & BASE STYLES */
:root {
    --color-primary: #000000; /* Noir Exécutif */
    --color-secondary: #FFFFFF; /* Blanc Pur */
    --color-accent: #007bff; /* Bleu Sobriété */
    --color-light-bg: #f8f9fa; /* Gris très clair */
    --font-family-base: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --spacing-unit: 1.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-secondary);
    scroll-behavior: smooth;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

iframe {
  border: 2px solid #E8E4DB; /* Adjust color and width as needed */
}

/* UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.container-small {
    max-width: 800px;
}

.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.section-light {
    background-color: var(--color-light-bg);
}

.section-title {
    font-size: 2.2rem; /* Légèrement réduit pour la concision */
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

/* TYPOGRAPHY */
.h1-title {
    font-size: 3.2rem; /* Légèrement réduit */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #495057;
}

/* HEADER & NAVIGATION */
.header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-light-bg);
    position: sticky;
    top: 0;
    background-color: var(--color-secondary);
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav a {
    margin-left: var(--spacing-unit);
    font-weight: 500;
    color: var(--color-primary);
    transition: color 0.2s;
}

/* ===============================
   LANGUAGE SWITCH (FR / EN)
   =============================== */

.lang-switch {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e9ecef;
    border-radius: 999px;
}

.lang-link {
    color: #6c757d; /* Muted executive gray */
    transition: color 0.2s ease, opacity 0.2s ease;
}

.lang-link:hover {
    color: #000;
    opacity: 0.85;
}

.lang-link.active {
    color: #000;
    cursor: default;
}

.lang-separator {
    margin: 0 0.4rem;
    color: #adb5bd;
    pointer-events: none;
}

/* ============================================
   HAMBURGER MENU (Mobile Navigation)
   ============================================ */

/* Hamburger Button - Hidden by default (desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    z-index: 101;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Button - Visible on mobile */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    /* Navigation Links - Hidden by default on mobile */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #f8f9fa;
        border-bottom: 1px solid #E8E4DB;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Navigation Links - Visible when menu is open */
    .nav-links.active {
        max-height: 300px;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #E8E4DB;
        display: block;
    }

    .nav-link:last-child {
        margin-top: 0.5rem; 
        margin-bottom: 0.5rem;
    }

    /* Hamburger Animation - Transform to X when menu is open */
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* CTA BUTTONS */
.cta-button, .cta-button-nav {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: var(--color-secondary) !important;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s;
}

.cta-button:hover, .cta-button-nav:hover {
    background-color: #0056b3;
}

.cta-large {
    font-size: 1.25rem;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
}

/* HERO SECTION & TALLY CARD (CORE CONVERSION) */
.hero-section {
    padding: 4rem 0 6rem; /* Moins de padding pour garder le quiz above the fold */
    text-align: center;
}

.tally-card {
    max-width: 700px;
    margin: 2rem auto 0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tally-card iframe {
    display: block;
}

iframe[data-mode="diagnostic"] {
    min-height: min(500px, 75vh);
}

iframe[data-mode="roi"] {
    min-height: min(340px, 60vh);
}


/* GRID LAYOUTS */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* PROCESS SECTION (3 STEPS) */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.step {
    flex: 1;
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

/* QUALIFICATION SECTION */
.list-box {
    padding: 2rem;
    border-radius: 8px;
}

.list-box-green {
    background-color: #e6ffed;
    border: 1px solid #c6f6d5;
}

.list-box-red {
    background-color: #ffe6e6;
    border: 1px solid #f6c6c6;
}

.list-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.list-box li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.list-box-green li::before {
    content: '✓';
    color: #008000;
    font-weight: 700;
    position: absolute;
    left: 0;
}

.list-box-red li::before {
    content: '✗';
    color: #ff0000;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* CTA FINAL */
.cta-final {
    text-align: center;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 4rem 0;
}

.cta-final .section-title {
    color: var(--color-secondary);
}

/* FOOTER */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--color-light-bg);
}

.footer-links a {
    margin: 0 10px;
}

.footer-links span {
    color: #ccc;
}

.footer-copyright {
    margin-top: 10px;
}

/* RESPONSIVENESS */
@media (max-width: 992px) {
    .h1-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section {
        padding: 3rem 0;
    }
    .process-steps {
        flex-direction: column;
    }
    .nav:not(.active) {
        display: none;
    }
    .header .container {
        justify-content: space-between;
    }
    .lang-switch {
        margin-left: auto; 
        margin-right: 0.75rem;
    }
    .hamburger {
        margin-left: auto;
    }
    .tally-card {
        margin-top: 1rem;
    }
}