/* ======== 1. CONFIGURATION GÉNÉRALE ET VARIABLES ======== */
:root {
    --orange: #FFA500;
    --black: #121212;
    --dark-grey: #1E1E1E;
    --light-grey: #E0E0E0;
    --white: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--black);
    color: var(--light-grey);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

/* ======== 2. NAVBAR ======== */
.navbar {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.logo:hover {
    color: var(--orange);
}

.logo-icon {
    height: 40px;
    width: auto;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-grey);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--orange);
}

.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--black);
    color: var(--orange);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* ======== 3. SECTION HÉROS ======== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle, var(--dark-grey), var(--black) 70%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--orange);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons a {
    background-color: var(--orange);
    color: var(--black);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    min-width: 260px;
    text-align: center;
}

.hero-buttons a:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

.hero-buttons a strong {
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 20px;
    filter: drop-shadow(0 10px 30px rgba(255, 165, 0, 0.1));
}


/* ======== 4. SECTIONS GÉNÉRIQUES ET FONCTIONNALITÉS ======== */
section {
    padding: 80px 0;
}

.section-title, .section-title-left {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title span, .section-title-left span {
    color: var(--orange);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title h2, .section-title-left h2 {
    font-size: 2.8rem;
    color: var(--white);
}

.section-title p {
    max-width: 500px;
    margin: 1rem auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--dark-grey);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--orange);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ======== 5. SECTION SÉCURITÉ ======== */
.security {
    background-color: var(--dark-grey);
}

.security-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.security-image {
    flex: 1;
}

.security-image img {
    border-radius: 15px;
}

.security-text {
    flex: 1;
}

.section-title-left {
    text-align: left;
    margin-bottom: 2rem;
}

.section-title-left p {
    margin: 0;
}

.security-list {
    list-style: none;
    margin-top: 1.5rem;
}

.security-list li {
    margin-bottom: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.security-list i {
    color: var(--orange);
    font-size: 1.2rem;
    margin-top: 0.15em;
}


/* ======== 6. SECTION FONDATEURS ======== */
.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.founder-card {
    background-color: var(--dark-grey);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.founder-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--orange);
    overflow: hidden;
    position: relative;
}

.founder-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* CORRECTION APPLIQUÉE ICI */
}

.founder-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    word-spacing: 0.5em; /* LIGNE AJOUTÉE ICI */
}

.founder-role {
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ======== 7. PIED DE PAGE (FOOTER) ======== */
.footer {
    background-color: var(--dark-grey);
    padding-top: 4rem;
    padding-bottom: 2rem;
    color: var(--light-grey);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer h3, .footer h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer .footer-about p {
    color: var(--orange);
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom i {
    color: var(--orange);
}

/* ======== 8. BOÎTE DE DIALOGUE (MODAL) ======== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    background-color: var(--dark-grey);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--orange);
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--light-grey);
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light-grey);
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--orange);
}

.modal-hidden {
    display: none;
}


/* ======== 9. RESPONSIVITÉ (ADAPTATION MOBILE) ======== */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--dark-grey);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: 0.3s;
        gap: 2rem;
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .btn {
        background-color: transparent;
        color: var(--orange);
        border: 2px solid var(--orange);
        width: 80%;
    }

    .logo-icon {
        height: 35px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .navbar {
        padding: 0.5rem 0;
    }

    .hero-container, .security-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-image { margin-top: 3rem; }
    
    .section-title h2, .section-title-left h2 { font-size: 2.2rem; }
    .section-title-left { text-align: center; }

    .security-container { gap: 2rem; }
    
    .founders-grid { grid-template-columns: 1fr; }

    .founder-image-wrapper {
        width: 120px;
        height: 120px;
    }
}

