:root {
    /* Colors - Behavior Ops Palette */
    --bg-absolute: #050505;
    /* Noir Profond */
    --bg-panel: #1A1A1A;
    /* Gris Anthracite */
    --action-green: #10B981;
    /* Vert Franc - Signal de sécurité et rentabilité */
    --authority-blue: #2563EB;
    /* Bleu Acier - Stabilité technique et intellect */
    --text-sharp: #F3F4F6;
    /* Blanc Cassé - Réduction de la charge cognitive */
    --text-soft: #9CA3AF;
    /* Gris Poussière - Sobriété */
    --bg-card: rgba(26, 26, 26, 0.8);
    --bg-card-hover: rgba(26, 26, 26, 1);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Legacy compatibility (to be phased out) */
    --bg-dark: var(--bg-absolute);
    --primary: var(--text-sharp);
    --text-main: var(--text-sharp);
    --text-muted: var(--text-soft);
    --accent-blue: var(--authority-blue);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;

    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    /* Fix White Flash */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Fix Glitch: Smooth page entry (Opacity only) */
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 1. Cinematic Grain Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    /* Subtle texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(2, 4, 10, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    animation: float 20s ease-in-out infinite alternate;
}

.glow-1 {
    top: -20%;
    right: -10%;
}

.glow-2 {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, rgba(2, 4, 10, 0) 70%);
    animation-delay: -10s;
    /* Offset animation */
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #FFFFFF 30%, #94A3B8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.text-accent-blue {
    position: relative;
    background: linear-gradient(135deg, #60A5FA 0%, var(--authority-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.text-accent-blue::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--authority-blue);
    opacity: 0.3;
    z-index: -1;
    filter: blur(4px);
    border-radius: 4px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.problem-frame {
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 4rem 3rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.frame-header {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: #0A0A0A;
    padding: 0 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.text-accent-blue-soft {
    color: #93C5FD;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 8rem 0;
    background: var(--bg-absolute);
}

.section-alt {
    padding: 8rem 0;
    background: var(--bg-panel);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--action-green);
    color: #000000;
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    /* Sharp engineering feel */
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-sharp);
    border: 1px solid var(--text-soft);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-sharp);
    box-shadow: none;
}

.micro-text {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Header */
.header {
    background: transparent;
    padding: 2rem 0;
    position: relative;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: center;
    /* Reverted to Center */
    /* padding-left removed */
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.logo a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Removed Pill Styles (Border, BG, Padding) */
    transition: transform 0.3s ease;
}

.logo a:hover {
    /* Simple scale on hover, no box effects */
    transform: scale(1.05);
}

.logo img {
    height: 80px;
    width: auto;
    opacity: 0.95;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0 8rem;
    position: relative;
    background: var(--bg-absolute);
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;

    /* 4. High-End Glassmorphism & Flex Alignment */
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);

    /* Alignment Fix */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    /* Fill grid cell */
}

/* Push feature list to bottom */
.project-card p {
    flex-grow: 1;
    margin-bottom: 2rem;
    /* Consistent spacer */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: var(--bg-card-hover);
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-features li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-features li::before {
    content: '•';
    color: var(--accent-blue);
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

/* Timeline/Process Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 49px;
    /* Centered under 100px wide box */
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--authority-blue);
    opacity: 0.2;
}

.timeline-item {
    display: flex;
    gap: 3rem;
    margin-bottom: 5rem;
    position: relative;
    opacity: 1;
    /* Match with is-visible class or simpler display */
    transform: none;
    transition: var(--transition-smooth);
}

.timeline-number {
    flex-shrink: 0;
    width: 100px;
    height: 40px;
    background: var(--bg-panel);
    border: 1px solid var(--authority-blue);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--authority-blue);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Who is it for Section - Operational Screening */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem 0;
}

.screening-zone {
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 3.5rem 2.5rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.screening-zone.clearance {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.03);
}

.screening-zone.mismatch {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.01);
}

.mismatch .screening-list li span {
    color: #D1D5DB !important;
}

.zone-badge {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: #0A0A0A;
    padding: 2px 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.screening-zone h3 {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    line-height: 1.4;
}

.technical-marker {
    font-family: monospace;
    font-weight: 700;
    font-size: 1.1rem;
}

.screening-list {
    list-style: none;
    padding: 0;
}

.screening-list li {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.25rem;
    line-height: 1.7;
}

.screening-list li::before {
    content: "[[ ]]";
    font-family: monospace;
    font-weight: 700;
    color: var(--authority-blue);
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.6;
}

.mismatch .screening-list li::before {
    content: "[--]";
    color: var(--text-muted);
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #fff;
}

.faq-answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.faq-item.active .faq-answer {
    height: auto;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

.icon-plus {
    transition: transform 0.3s;
}

.faq-item.active .icon-plus {
    transform: rotate(45deg);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 10rem 0;
    background: var(--bg-absolute);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-soft);
    font-size: 0.8rem;
    opacity: 0.4;
}

/* Responsive */
@media (max-width: 768px) {

    /* Logo Adjustment - Mobile */
    .logo img {
        height: 100px;
        /* Larger for better visibility on mobile */
    }

    .logo a {
        padding: 1rem 0;
        /* Remove pill padding for cleaner look */
    }

    /* Layout Spacing */
    .section {
        padding: 4rem 0;
    }

    /* FORCE VISIBILITY ON MOBILE */
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .header {
        padding: 2rem 0;
        /* More spacing around header */
    }

    /* Grids */
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .projects-grid {
        gap: 1.5rem;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        gap: 1.5rem;
        flex-direction: column;
        /* Stack on mobile for better space */
    }

    .timeline-number {
        margin-bottom: 0.5rem;
    }

    /* Typography */
    h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        /* Better scaling */
    }

    h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Cards */
    .project-card,
    .check-list li {
        padding: 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
        /* Force 1 line */
        width: auto;
        max-width: 100%;
    }
}


/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* will-change removed to save memory */
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* CGV/Privacy Content Styles */
.cgv-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    padding: 14rem 2rem 8rem;
    position: relative;
    z-index: 10;
}

.cgv-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 6rem;
    text-align: left;
    color: #FFFFFF;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cgv-content article {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    margin-bottom: 4rem;
}

.cgv-content h3 {
    color: #FFFFFF;
    font-size: 1.75rem;
    margin-top: 5rem;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
}

.cgv-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    margin-right: 1.5rem;
    border-radius: 50%;
    opacity: 0.3;
}

.cgv-content p,
.cgv-content li {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cgv-content ul {
    padding-left: 0;
    list-style: none;
}

.cgv-content li {
    position: relative;
    padding-left: 2rem;
}

.cgv-content li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Excellence V2 - Zero Overflow Policy */
@media (max-width: 900px) {

    html,
    body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .bg-glow {
        display: none !important;
        /* Glows cause massive overflow on mobile */
    }

    .container {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 2.5rem;
    }

    .btn {
        width: 100%;
        padding: 1.25rem 1rem;
        font-size: 0.85rem;
        box-sizing: border-box;
    }

    .btn span {
        white-space: normal !important;
        /* Allow text to wrap on small screens */
        text-align: center;
        line-height: 1.4;
    }

    .projects-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .problem-frame {
        padding: 2rem 1rem !important;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .frame-header,
    .zone-badge {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: max-content;
        font-size: 0.7rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .timeline::before {
        display: none;
        /* Hide vertical line on mobile to avoid alignment issues */
    }

    .timeline-content {
        padding-left: 0;
        text-align: center;
    }
}

/* Responsive Excellence */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .projects-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .problem-frame,
    .screening-zone {
        padding: 2.5rem 1.5rem;
    }

    .section-alt {
        padding: 6rem 0 !important;
    }

    h2 {
        font-size: 1.85rem !important;
        line-height: 1.3;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 100%;
    }

    .frame-header,
    .zone-badge {
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        width: max-content;
    }

    .problem-frame {
        overflow-x: hidden;
        /* Prevent overflow from nested elements */
    }
}

@media (max-width: 768px) {
    .cgv-content {
        padding: 8rem 1.5rem 4rem;
    }

    .cgv-content h1 {
        margin-bottom: 3rem;
        font-size: 2.5rem;
    }

    .cgv-content article {
        padding-left: 1rem;
        margin-bottom: 2rem;
    }

    .cgv-content h3 {
        margin-top: 3rem;
        font-size: 1.5rem;
    }
}