:root {
    /* Nouvelle Palette de Couleurs */
    --vert-hooker: #5c6d61;
    --bleu-azure: #557388;
    --noir-olive: #2D322C;
    /*
    --blanc-albatre: #F1EDE3;
    */
    --blanc-albatre: #F7F5F0;
    --marron-terre: #93613F;
    /* Teinte crème / fond adoucie */
    --creme-douce: #f3efe6; /* Remplace l'ancien #e8e2d5 trop soutenu */

    /* Variables de mapping pour le site */
    --bg-color: var(--blanc-albatre);
    --text-main: var(--noir-olive);
    --text-muted: #626961;
    --border-color: #d6cfc2;
    --accent-color: var(--bleu-azure);
    --texte-secondaire: #4A4F48; /* Un gris-olive subtil, chic et bien plus contrasté */
    
    --navbar-bg: rgba(243, 239, 230, 0.85);

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    letter-spacing: 0.015em;
}

h1, h2, h3, h4, .serif-font {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--noir-olive);
}

/* Classe utilitaire pour la couleur Vert Hooker */
.text-vert-hooker {
    color: var(--vert-hooker) !important;
}

/* Surcharge de la couleur secondaire pour un meilleur contraste */
.text-secondary {
    color: var(--texte-secondaire) !important;
}


/* Navigation */
.navbar {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
    height: 38px;
    width: auto;
    filter: none; /* Le nouveau logo a déjà ses propres couleurs harmonieuses */
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--bleu-azure) !important;
}

/* Boutons principaux */
.btn-dark {
    background-color: var(--noir-olive) !important;
    border-color: var(--noir-olive) !important;
    color: var(--blanc-albatre) !important;
    transition: background-color 0.3s ease;
}

.btn-dark:hover {
    background-color: var(--bleu-azure) !important;
    border-color: var(--bleu-azure) !important;
}

.btn-outline-dark {
    color: var(--noir-olive) !important;
    border-color: var(--noir-olive) !important;
}

.btn-outline-dark:hover {
    background-color: var(--noir-olive) !important;
    color: var(--blanc-albatre) !important;
}

/* Sections spéciales (ex: Biographie) */
.bg-biography {
    background-color: var(--creme-douce) !important;
}

/* Logo Profil Showroom (Format Rectangulaire) */
.profile-logo {
    height: auto;
    object-fit: contain;
}

/* Header Profil Instagram / Showroom */
.profile-header {
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--bleu-azure);
}

/* Grille Instagram Showroom */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
}

.insta-post {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    background-color: #e5e2dc;
    border: 1px solid var(--border-color);
}

.insta-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.insta-post:hover img {
    transform: scale(1.04);
}

.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 50, 44, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 1rem;
}

.insta-post:hover .insta-overlay {
    opacity: 1;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--creme-douce);
}

/* Bouton Back to Top */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--noir-olive);
    border: 1px solid var(--border-color);
    color: var(--blanc-albatre);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#backToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    background-color: var(--bleu-azure);
    border-color: var(--bleu-azure);
    color: white;
}

/* Justification propre des textes */
.text-justify {
    text-align: justify;
    text-justify: inter-word; /* Améliore l'espacement des mots */
}

/* Décalage des ancres pour compenser la hauteur de la navbar fixe */
html {
    scroll-padding-top: 100px;
}