:root {
    --bg-dark: #0f0f11;
    --bg-darker: #080809;
    --bg-alt: #161619;
    
    /* Contrast improvements (softened by 0.3 opacity) */
    --text-primary: rgba(255, 255, 255, 0.7);
    --text-secondary: rgba(226, 226, 226, 0.6);
    --text-muted: rgba(160, 160, 160, 0.5);
    
    /* Gold/Copper accents */
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8c2c;
    --copper: #b87333;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 400;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

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

.text-block {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 600;
    color: var(--text-primary);
}

.text-small {
    font-size: 0.95rem;
}

/* --- TYPOGRAPHY --- */
.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--gold);
    text-align: center;
    font-style: italic;
}

.quote-style {
    font-size: 2.2rem;
    color: var(--text-primary);
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.gold-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, var(--gold), var(--copper));
    margin: 0 auto 40px;
}
.gold-divider.center {
    margin-left: auto;
    margin-right: auto;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--copper));
    color: var(--bg-darker);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    color: #000;
}

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

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(8, 8, 9, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-links a, .nav-actions a {
    color: var(--text-primary);
    margin-left: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links a:hover, .nav-actions a:hover {
    color: var(--gold);
}

.btn-nav {
    border: 1px solid var(--gold);
    padding: 8px 20px;
    border-radius: 2px;
}

.btn-nav:hover {
    background: var(--gold);
    color: var(--bg-darker) !important;
}

/* --- DROPDOWN --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-darker);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 100;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    top: 100%;
}
.nav-dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
}
.nav-dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.1);
}
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #000; /* Fallback dark background */
    z-index: 1;
    transition: transform 10s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 8, 9, 0.7), rgba(8, 8, 9, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

#hero_title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* --- GRIDS & CARDS --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.card {
    background: var(--bg-darker);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.card-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 115, 51, 0.05));
    border-color: rgba(212, 175, 55, 0.2);
}

/* --- STEPS LIST --- */
.steps-list p {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-list p:last-child {
    border-bottom: none;
}

/* --- FOUNDER --- */
.projects-box {
    background: var(--bg-darker);
    padding: 40px;
    border-left: 2px solid var(--gold);
    margin-top: 50px;
}

.projects-title {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.projects-box p {
    margin-bottom: 15px;
}
.projects-box strong {
    color: var(--text-primary);
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* --- FOOTER --- */
.footer-section {
    padding: 60px 0 30px;
    background: var(--bg-darker);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-quote {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--gold);
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- MOBILE MENU --- */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 2001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 100%; /* Slide from right */
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 5%;
    font-size: 40px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
}

.mobile-nav-links a:hover {
    color: var(--gold);
}

.mobile-login-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px !important; /* Reduce general text size on mobile */
    }
    #hero_title { font-size: 3rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .nav-links, .nav-actions { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    
    .nav-inner {
        position: relative;
        justify-content: flex-end !important;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transform: translateX(-50%);
        border: none !important;
        outline: none !important;
        background: transparent !important;
        transition: opacity 0.3s ease !important;
    }
    
    .navbar.scrolled .logo {
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .logo-img {
        content: url('./ico/Logo-Founders-Noir.png') !important; /* Replace with Noir logo on mobile */
        display: block !important; /* Force display since JS might not run on galerie */
        height: 40px !important;
        max-height: 40px !important; /* Override inline max-height */
        margin-right: 0 !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        clip-path: inset(2px) !important; /* Crops the baked-in border from the image file */
        border-radius: 2px !important; /* Soften the cropped edge slightly */
    }
    .logo-text {
        display: none !important; /* Hide text to keep just the centered logo */
    }
    
    .mobile-nav-links a {
        font-size: 1.5rem; /* Smaller text on mobile as requested */
    }
    
    .hero-section {
        height: auto !important;
        min-height: 100vh;
        padding: 120px 0 60px 0 !important;
    }
    
    .hero-bg video {
        display: none !important;
    }
    
    .hero-bg {
        background-image: none !important;
        background-color: var(--bg-dark) !important;
    }
    .hero-content {
        padding-top: 0;
    }

    .section:not(.hero-section) { padding: 60px 0; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1.4rem; }
    .quote-style { font-size: 1.5rem; }
    .card { padding: 30px; }

    /* Uniform Project Cards on Mobile */
    .founder-project-card {
        flex-direction: column !important;
        align-items: center !important;
        padding: 25px 0 !important;
        border: none !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(212,175,55,0.2) !important;
        border-radius: 0 !important;
        gap: 15px !important;
    }
    .founder-project-card .project-media {
        order: 2 !important;
        flex: none !important;
        min-width: 0 !important;
        width: 100% !important;
        height: 100px !important;
    }
    .founder-project-card .project-content {
        order: 1 !important;
        width: 100% !important;
        min-width: unset !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    .founder-project-card h3 {
        width: 100% !important;
        text-align: center !important;
        font-size: 1.2rem !important;
        margin-bottom: 0 !important;
    }
    .founder-project-card p {
        width: 100% !important;
        text-align: center !important;
        font-size: 0.95rem !important;
        margin-bottom: 0 !important;
    }
    .founder-entity-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 15px;
    }
}

/* Carousel Styles */
.media-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.media-carousel::-webkit-scrollbar {
    height: 6px;
}
.media-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.media-carousel::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

.carousel-slide {
    flex: 0 0 80%;
    max-width: 600px;
    height: 400px;
    scroll-snap-align: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CMS Auto-generated Lists */
.cms-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}
.cms-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}
.cms-list .list-bullet {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Founder Project Cards */
.founder-project-card {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 8px;
}
.founder-project-card.layout-right {
    flex-direction: row-reverse;
}
.founder-project-card .project-media {
    flex: 1;
    min-width: 300px;
    height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
}
.founder-project-card .project-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}
.founder-project-card h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

/* Dynamic Founder List */
.founder-list-container {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(212,175,55,0.2);
}
.founder-entity-row {
    display: grid;
    grid-template-columns: 1fr 2fr 100px;
    align-items: center;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    transition: background 0.3s;
}
.founder-entity-row:hover {
    background: rgba(255,255,255,0.02);
}
.founder-entity-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-heading);
}
.founder-entity-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}
.founder-entity-logo {
    width: 100%;
    height: 80px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- DIAPORAMA (Qui est-ce) --- */
.qui-header {
    padding-top: 160px;
    padding-bottom: 40px;
    text-align: center;
}

.slideshow-container {
    max-width: 900px;
    position: relative;
    margin: 40px auto 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    background: #000;
}
.slideshow-slide {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.slideshow-slide img {
    width: 100%;
    max-height: 700px;
    object-fit: contain; /* Affiche l'image complète sans la couper */
}
.slideshow-slide {
    animation-name: fade;
    animation-duration: 0.5s;
}
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
.slideshow-prev, .slideshow-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    text-decoration: none;
    background-color: rgba(0,0,0,0.3);
}
.slideshow-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.slideshow-prev:hover, .slideshow-next:hover {
    background-color: var(--gold);
    color: var(--bg-darker);
}
.slideshow-dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #555;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.slideshow-dot.active, .slideshow-dot:hover {
    background-color: var(--gold);
}

/* --- INTERVIEW GRID --- */
.interview-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}
.interview-grid.reverse {
    flex-direction: row-reverse;
}
.interview-video {
    flex: 1;
}
.interview-text {
    flex: 1;
}

@media (max-width: 768px) {
    .founder-entity-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    .founder-entity-logo {
        height: 100px;
    }
    .interview-grid, .interview-grid.reverse {
        flex-direction: column;
        text-align: center;
    }
    .interview-text h3 {
        font-size: 1.5rem !important;
    }
    .interview-text h4 {
        font-size: 1.2rem !important;
    }
    .interview-text p {
        font-size: 0.95rem !important;
    }
    .qui-header {
        padding-top: 120px !important;
    }
    .slideshow-slide img {
        max-height: 400px !important;
    }
}


/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--gold);
    padding: 40px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--gold);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
}

/* --- MEMBER JOIN SECTION TOGGLE --- */
.join-member { display: none; flex-direction: column; align-items: center; }
.member-logged-in .join-public { display: none !important; }
.member-logged-in .join-member { display: flex !important; }


/* --- HERO SECTION TOGGLE --- */
.hero-member { display: none; }
.member-logged-in .hero-public { display: none !important; }
.member-logged-in .hero-member { display: block !important; }

