/* --- VARIABLES & RESET --- */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: #27272a;
    --accent-color: #e5e5e5;
    --accent-hover: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 50px auto;
    border-radius: 2px;
}

p {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 1.05rem;
}

strong {
    color: var(--text-color);
    font-weight: 600;
}

/* --- HEADER / NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

header.scrolled {
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo img {
    height: 45px;
    object-fit: contain;
    transition: var(--transition);
}

.nav-logo:hover img {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-hover);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--accent-hover);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    width: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(10,10,10,0.9)), url('./bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-logo-large {
    width: 500px;
    max-width: 80%;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin-bottom: 50px;
    font-weight: 400;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BUTTONS --- */
.btn {
    padding: 15px 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-hover);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-filled {
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn-filled:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.15);
}

/* --- SECTIONS GÉNÉRALES --- */
section {
    padding: 120px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-text-center {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-text-center p {
    margin-bottom: 20px;
}

.section-text-center p:last-child {
    margin-bottom: 0;
}

/* --- GRID CARDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px 40px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    transition: var(--transition);
}

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

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    background: var(--accent-hover);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent-hover);
    color: var(--bg-color);
    border-color: var(--accent-hover);
}

.social-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.card:hover .social-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--accent-hover);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-small-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 80px;
    background-color: #050505;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-hover);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 5%;
    }

    .menu-toggle {
        display: block;
        z-index: 110;
    }

    .hero {
        /* Corrige le bug de pixellisation iOS/Mobile lié au background-attachment: fixed */
        background-attachment: scroll;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 105;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-logo-large {
        width: 250px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    section {
        padding: 80px 5%;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        padding: 50px 5%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
}
