/* --- VARIABLES ET RESET CSS --- */
:root {
    --primary: #0f2d5c; /* Bleu profond - Confiance, Tech */
    --primary-light: #1e56a0;
    --accent: #f59e0b; /* Ambre/Orange - Accueil, Chaleur, Aide */
    --accent-light: #fbbf24;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth; /* Défilement doux natif */
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- STYLES RÉUTILISABLES (BOUTONS, TITRES) --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title-left {
    text-align: left;
    left: 0;
    transform: none;
    display: block;
}

.section-title-left::after {
    margin: 10px 0 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle-left {
    text-align: left;
    margin: 0 0 2rem;
    padding: 0;
}

section {
    padding: 80px 0;
}

/* --- ANIMATIONS AU DÉFILEMENT (CSS) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- HEADER / NAVIGATION --- */
header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.logo-dot {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
}

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

nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary);
    position: relative;
}

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

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

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(15,45,92,0.95) 0%, rgba(30,86,160,0.9) 100%),
                url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIWMjB6TTAgMjBoMjB2MjBIMFYyMHoyMCAwaDIwdjIwSDIwVjB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    color: var(--white);
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Espace pour le header fixe */
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- VISION SECTION --- */
.vision .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.vision-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timeline-box {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.timeline-box::before {
    content: '2 ans';
    position: absolute;
    top: -20px;
    right: -20px;
    background-color: var(--accent);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
}

.timeline-box h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.timeline-highlight {
    margin-top: 15px;
    font-weight: 600;
}

/* --- PROJETS & RÉUSSITES SECTION --- */
.projects {
    background-color: var(--bg-light);
}

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

.project-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 4px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--accent);
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-status {
    font-weight: bold;
    color: var(--accent);
}

/* --- THANKS & ORIGIN SECTION --- */
.thanks {
    text-align: center;
}

.thanks-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-box {
    margin-bottom: 40px;
    text-align: center;
}

.btn-mail {
    font-size: 1.1rem;
    padding: 15px 35px;
}

.secure-mail-box {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 10px;
    border: 1px dashed var(--primary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.secure-mail-help {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.secure-mail-text {
    margin: 5px 0 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    user-select: all;
}

.origin-box {
    background-color: var(--white);
    border: 2px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 60px auto 0;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
}

.origin-icon {
    font-size: 3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.origin-box h3 {
    margin-bottom: 10px;
}

.origin-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 50px 0 20px;
    font-size: 0.9rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo-dot {
    background-color: var(--white);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .vision .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .origin-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Menu simple pour démo, un vrai burger menu est requis en prod */
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 60px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}