/* ==========================================================================
   1. VARIABLES & CONFIGURATION INITIALE
   ========================================================================== */
:root {
    --bg-main: #faf8f5;        /* Fond crème doux */
    --bg-dark: #111111;        /* Noir profond pour éléments forts */
    --text-main: #1e1e1e;      /* Texte principal lisible */
    --text-muted: #626262;     /* Texte secondaire adouci */
    --accent-color: #2ed573;    /* Vert signature ParcoTrip */
    --accent-hover: #26b962;    /* Vert plus sombre pour le hover */
    --card-bg: #ffffff;        /* Fond des cartes et conteneurs */
    --border-subtle: rgba(0, 0, 0, 0.06);
    
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    
    --transition-subtle: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   2. BARRE DE NAVIGATION (HEADER)
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 4%;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 22px;
    font-weight: var(--font-weight-black);
    letter-spacing: -1px;
    color: var(--bg-dark);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--bg-dark);
}

/* --- Boutons d'Espace Dynamiques --- */
.btn-espace {
    padding: 10px 22px;
    border: 2px solid var(--bg-dark);
    border-radius: 8px;
    color: var(--bg-dark) !important;
    background-color: transparent;
}

.btn-espace:hover {
    background-color: var(--bg-dark);
    color: var(--bg-main) !important;
}

/* --- Menu Déroulant Informations --- */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.arrow-icon {
    font-size: 10px;
    transition: var(--transition-subtle);
}

.dropdown:hover .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--card-bg);
    min-width: 220px;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-subtle);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
}

.dropdown-menu ul li a {
    display: block;
    padding: 12px 20px;
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
}

.dropdown-menu ul li a:hover {
    background-color: rgba(0, 0, 0, 0.02);
    color: var(--bg-dark);
}

/* ==========================================================================
   3. SECTION HERO (ACCUEIL) - ADAPTATION IMAGE EN ARRIÈRE-PLAN
   ========================================================================== */
.hero-vitrine {
    position: relative;
    width: 100%;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    
    /* LIEN DE L'IMAGE GENERALE */
    background-image: url('../img/hero-bg.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Cache translucide pour détacher les textes blancs */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.6) 100__);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUpEffect 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    margin-bottom: 16px;
    background: rgba(46, 213, 115, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
}

.hero-content h1 {
    font-size: 54px;
    font-weight: var(--font-weight-black);
    letter-spacing: -2px;
    line-height: 1.1;
    color: #ffffff; /* Ajusté en blanc pour contrer le fond */
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: #e2e8f0; /* Ajusté en gris clair pour lisibilité */
    margin-bottom: 35px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-hero {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(46, 213, 115, 0.25);
    transition: var(--transition-subtle);
}

.btn-primary-hero:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 16px 30px;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-subtle);
}

.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   4. SECTION DES FONCTIONNALITÉS / GRILLE CONCEPT
   ========================================================================== */
.features-section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 36px;
    font-weight: var(--font-weight-black);
    letter-spacing: -1.5px;
    color: var(--bg-dark);
    margin-bottom: 16px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-muted);
}

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

.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-subtle);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.feature-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
}

.text-gradient {
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--bg-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
}

/* ==========================================================================
   5. FOOTER GLOBAL UNIQUE
   ========================================================================== */
.main-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.footer-brand-col {
    grid-column: span 2;
}

@media screen and (max-width: 768px) {
    .footer-brand-col { grid-column: span 1; }
}

.footer-logo {
    font-size: 20px;
    font-weight: var(--font-weight-black);
    color: var(--bg-dark);
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-brand-col p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 16px 0 24px 0;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background-color: var(--bg-main);
    color: var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-socials a:hover {
    background-color: var(--bg-dark);
    color: var(--bg-main);
}

.footer-links-col h5 {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links-col ul li a:hover {
    color: var(--bg-dark);
}

/* --- Statut du service --- */
.status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-muted);
    background-color: var(--bg-main);
    padding: 8px 14px;
    border-radius: 20px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 24px 24px 0 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   6. RESPONSIVE MENU HAMBURGER & AJUSTEMENTS
   ========================================================================== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.burger-menu .bar {
    height: 3px;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* --- Mode Mobile (Écrans de moins de 768px) --- */
@media screen and (max-width: 768px) {
    .navbar {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 999;
    }

    .burger-menu {
        display: flex;
    }

    nav, .navbar nav, #navMenu {
        display: none !important; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    }

    nav.open, .navbar nav.open, #navMenu.open {
        display: block !important;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 15px !important; 
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-top: 10px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .burger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }
    .burger-menu.active .bar:nth-child(2) {
        opacity: 0 !important;
    }
    .burger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    .hero-vitrine {
        min-height: 60vh;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary-hero, .btn-secondary-hero {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   7. MODIFICATEUR CHIRURGICAL POUR LE BOUTON VERT D'ACCÈS AU PANEL
   ========================================================================== */
.navbar .nav-links .btn-panel-actif {
    background-color: #2ed573 !important;
    color: #ffffff !important;
    border-color: #2ed573 !important;
}

.navbar .nav-links .btn-panel-actif:hover {
    background-color: #26b962 !important;
    box-shadow: 0 8px 20px rgba(46, 213, 115, 0.3) !important;
}