/*
Theme Name: Sandwich Method
Theme URI: https://example.com/sandwich-method
Description: Un thème WordPress minimaliste utilisant la "Méthode Sandwich" (Header/Footer Bootstrap + Contenu brut pour WPBakery).
Author: Roo Engineer
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandwich-method
*/

/* --- 1. Structure Globale --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    /* Police plus propre */
    color: #333;
}

main {
    flex: 1;
}

/* Ajustement pour l'admin bar de WordPress */
#wpadminbar {
    z-index: 9999;
}

/* --- 2. Header & Navigation (Esthétique) --- */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Ombre douce */
    padding: 10px 0;
    /* Plus d'espace */
    position: sticky;
    /* Le menu reste en haut */
    top: 0;
    z-index: 1000;
}

/* Logo */
.navbar-brand img {
    max-height: 70px;
    /* Taille contrôlée */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.02);
    /* Petit effet au survol */
}

/* Liens du Menu */
.navbar-nav .nav-link {
    text-transform: uppercase;
    /* Majuscules pour un look pro */
    font-size: 14px;
    letter-spacing: 1px;
    /* Espacement des lettres */
    font-weight: 600;
    color: #444;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #000;
    /* Plus foncé au survol */
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* Dropdown Menu (Sous-menus) */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Carré pour un look moderne */
    margin-top: 0;
}

.dropdown-item {
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px 20px;
    letter-spacing: 0.5px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000;
}

/* --- 3. Responsive (Mobile) --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 10px;
        border-top: 1px solid #eee;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        border-bottom: 1px solid #f5f5f5;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 15px;
        background: #fafafa;
    }
}

/* Bouton Hamburger */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --- 4. Images & Contenu --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- 5. Optimisations Performance --- */

/* Stabilisation du Hero WPBakery pour réduire le CLS */
.hero-section,
.vc_row.vc_row-o-full-height {
    min-height: 100vh;
    /* Réserve l'espace avant que JS ne se charge */
    contain: layout paint;
}

/* Optimisation des polices */
@font-face {
    font-family: 'Helvetica Neue';
    font-display: swap;
}