/* --- GLOBAL BASE (S'applique partout) --- */
body {
    font-family: 'Poppins', sans-serif;
    color: #334155; /* Couleur par défaut (Slate 700) */
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Sécurité mobile globale */
    -webkit-font-smoothing: antialiased; /* Rendu du texte plus net */
}

/* --- CSS HEADER --- */

/* Protection CSS pour isoler le header */
.op-header-wrapper * {
    box-sizing: border-box;
}

/* ESPACEUR ANTI-CHEVAUCHEMENT */
/* Donne une hauteur physique pour pousser le contenu sous le header fixe */
.op-header-wrapper {
    height: 86px; /* Correspond à la hauteur du header au repos */
    width: 100%;
    display: block;
}

/* --- BASE --- */
.op-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e2e8f0;
    padding: 18px 0;
    position: fixed; /* Le header flotte */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    /* Font héritée du body */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

/* --- ETAT STICKY (Au scroll) --- */
.op-header.is-sticky {
    padding: 10px 0; /* Rétrécissement */
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: transparent;
}

.op-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.op-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.op-header.is-sticky .op-logo img {
    height: 38px; /* Logo rétrécit */
}

.op-logo:hover img {
    transform: scale(1.02);
}

/* Navigation Desktop */
.op-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.op-nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.op-nav-link:hover {
    color: #00e785;
}

/* Classe Active */
.op-nav-link.active-link {
    color: #00e785;
    font-weight: 600;
}

/* Soulignement au survol */
.op-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #00e785;
    transition: width 0.3s;
}

.op-nav-link:hover::after {
    width: 100%;
}

/* Bouton d'action */
.op-btn-header {
    background: #282B2E;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.op-header.is-sticky .op-btn-header {
    padding: 10px 22px;
}

.op-btn-header:hover {
    background: #00e785;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 231, 133, 0.3);
}

/* --- MOBILE BURGER --- */
.op-burger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    z-index: 10002;
    border-radius: 50%;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.op-burger:active {
    background: rgba(0, 0, 0, 0.05);
}

.op-burger span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 24px;
    background: #282B2E;
    border-radius: 4px;
    left: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.op-burger span:nth-child(1) { top: 14px; }
.op-burger span:nth-child(2) { top: 21px; width: 16px; left: 14px; }
.op-burger span:nth-child(3) { top: 28px; }

/* Animation "Ouvert" */
.op-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.op-burger.open span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.op-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; left: 10px; }

/* --- MOBILE MENU OVERLAY --- */
.op-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Sécurité pour petits écrans/paysage */
    overflow-y: auto; 
    padding: 20px 0;
}

.op-mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.op-mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: 0.3s;
    opacity: 0;
    transform: translateY(15px);
}

/* Animation cascade des liens */
.op-mobile-menu.active .op-mobile-link { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.op-mobile-menu.active .op-mobile-link:nth-child(2) { transition-delay: 0.15s; }
.op-mobile-menu.active .op-mobile-link:nth-child(3) { transition-delay: 0.2s; }
.op-mobile-menu.active .op-mobile-link:nth-child(4) { transition-delay: 0.25s; }

.op-mobile-link:hover, .op-mobile-link.active-link {
    color: #00e785;
    transform: scale(1.05);
}

.op-mobile-btn {
    margin-top: 10px;
    font-size: 1.1rem;
    padding: 16px 36px;
    opacity: 0;
    transform: translateY(15px);
}

.op-mobile-menu.active .op-mobile-btn {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .op-nav { display: none; }
    .op-burger { display: flex; }
}

/* --- CSS FOOTER --- */
/* Inclusion des styles Footer ici ou via import */
.op-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding-top: 60px;
    padding-bottom: 25px;
    /* Font héritée du body */
    color: #334155;
    margin-top: auto;
}

.op-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 25px;
}

.op-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.op-footer-col h4 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.op-footer-logo {
    display: inline-block;
    margin-bottom: 5px;
    text-decoration: none;
}

.op-footer-logo img {
    height: 45px;
    width: auto;
    display: block;
}

.op-footer-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    max-width: 300px;
    margin-top: 5px;
}

.op-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.op-footer-links li {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
}

.op-footer-links a {
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.op-footer-links a:hover {
    color: #00e785;
    transform: translateX(3px);
}

.op-footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.op-credit-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.op-credit-link:hover { color: #00e785; }

/* Responsive Footer */
@media (max-width: 900px) {
    .op-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 600px) {
    .op-footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 20px;
    }

    .op-footer-desc {
        margin: 5px 0 30px 0;
        max-width: 100%;
    }

    .op-footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
        padding-bottom: 20px;
    }

    .op-footer-links a { justify-content: flex-start; }

    .op-footer-col {
        border-bottom: 1px dashed #e2e8f0;
        padding-bottom: 10px;
    }
    .op-footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}