/* ==========================================================================
   CONFIGURATION & VARIABLES
   ========================================================================== */
:root {
    --divana-green: #2D8B94;
    --primary-dark: #1f636a;
    --white: #FFFFFF;
    --bg-light: #F4F7F7;
    --gold: #C5A059;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--divana-green);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    background: var(--white);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(45, 139, 148, 0.08);
}

.nav-container {
    max-width: 100%;
    padding: 0 5%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img { height: 65px; width: auto; transition: var(--transition); }

/* Menu Desktop */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--divana-green);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

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

.nav-link:hover::after { width: 100%; }

/* Boutons Contact */
.nav-contact-btn {
    text-decoration: none;
    background: var(--divana-green);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
}

.nav-contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 139, 148, 0.3);
}

.mobile-only { display: none; }

/* ==========================================================================
   MENU BURGER (ANIMATION)
   ========================================================================== */
.menu-toggle {
    display: none; /* Caché sur Desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1100;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--divana-green);
    transition: var(--transition);
    border-radius: 3px;
}

/* Animation X quand actif */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   RESPONSIVE NAVIGATION (MOBILE)
   ========================================================================== */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .desktop-only { display: none; }
    .mobile-only { display: block; width: 100%; text-align: center; margin-top: 20px; }

    .nav-menu {
        position: fixed;
        top: 0; right: -100%; /* Caché à droite */
        width: 80%;
        max-width: 300px;
        height: screen;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .nav-menu.is-active { right: 0; }

    .nav-link { font-size: 1.1rem; display: block; padding: 10px 0; }

}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background: var(--divana-green);
    color: var(--white);
    padding: 80px 5% 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo { height: 80px; margin-bottom: 25px;  }

.brand-col p { line-height: 1.8; font-size: 0.95rem; opacity: 0.9; }

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
    font-size: 1.4rem;
    position: relative;
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { color: white; text-decoration: none; opacity: 0.8; transition: var(--transition); }
.footer-list a:hover { opacity: 1; padding-left: 8px; color: var(--gold); }

.contact-info { list-style: none; }
.contact-info li { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; opacity: 0.9; }
.contact-info a { color: white; text-decoration: none; }

.icons { display: flex; gap: 12px; margin-top: 20px; }
.icons a {
    background: var(--white);
    color: var(--divana-green);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.icons a:hover { background: var(--gold); color: white; transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   ASSISTANT VIRTUEL & ANIMATIONS
   ========================================================================== */
.ai-assistant-wrapper {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 2000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

.ai-bubble {
    background: var(--white);
    color: var(--divana-green);
    padding: 10px 18px;
    border-radius: 18px 18px 0 18px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: floatBubble 3s infinite ease-in-out;
}

.ai-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--white);
    color: var(--divana-green);
    border: 2px solid var(--divana-green);
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.ai-btn:hover { transform: rotate(15deg) scale(1.1); background: var(--divana-green); color: white; }

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Correction Footer Mobile */
@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .contact-info li, .icons { justify-content: center; }
}
/* --- SCROLL TOP BUTTON --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0; /* Caché par défaut */
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateY(20px); /* Petit effet de montée à l'apparition */
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: var(--gold);
    color: var(--dark);
    transform: scale(1.1);
}

.scroll-top-btn i {
    font-size: 1.2rem;
}

/* Ajustement mobile pour ne pas gêner le bouton AI */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 90px; /* On le monte un peu pour ne pas chevaucher l'assistant AI */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}