/* NATURO EMOTION - STYLE GUIDE 
    Palette : Ocre (#E3BC79), Olive (#656832), Terracotta (#A55137), Crème (#FFF8F0)
*/

/* =========================================
   1. IMPORT DES POLICES (Google Fonts)
========================================= */
@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito';
    src: url('fonts/Nunito-Italic-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic-VariableFont_wght.woff2') format('woff2'),
         url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'BuenaPark';
    src: url('fonts/BuenaParkJF Regular.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

:root {
    --ocre: #E3BC79;
	--olive: #656832; /* ASSOMBRI : Passe de #767941 à #656832 pour le contraste */
    --terracotta: #A55137;
    --creme: #FFF8F0;
    --transition: all 0.3s ease;
}

/* =========================================
   2. RESET & BASE
========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
	background-color: var(--creme);
    color: var(--olive);
    line-height: 1.6;
}

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

/* =========================================
   3. TYPOGRAPHIE
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--olive);
    margin-bottom: 1.5rem;
}

/* Style spécifique pour la marque "Naturo Emotion" */
.brand-font {
    font-family: 'BuenaPark', serif; /* Fallback si la police n'est pas chargée */
    font-size: 2.5rem;
    color: var(--terracotta);
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-top: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--ocre);
}

/* =========================================
   4. COMPOSANTS (BOUTONS)
========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--ocre);
    color: #333333; /* CORRECTION : Le blanc sur ocre est illisible, on passe en foncé */
}

.btn-primary:hover {
    background-color: var(--terracotta);
	color: var(--creme);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--olive);
    color: var(--olive);
}

.btn-secondary:hover {
    background-color: var(--olive);
    color: var(--creme);
}

/* =========================================
   5. CARTES DE PRESTATIONS (GRID)
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

/* On ajoute une bordure subtile aux cartes pour qu'elles existent sur le fond Crème */
.card-prestation, .card-testimonial, .content-box {
    background-color: var(--creme);
    border: 1px solid var(--ocre); /* L'Ocre sert de délimiteur doux */
    border-radius: 15px;
    transition: var(--transition);
}

.card-prestation:hover, .card-testimonial:hover {
    border-color: var(--terracotta); /* La bordure change au survol */
    transform: translateY(-5px);
}

.card-prestation {
    background: var(--creme);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card-prestation:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-price {
    font-weight: 700;
    color: var(--terracotta); /* CORRECTION : L'ocre sur blanc ne passe pas, on utilise Terracotta */
    margin-bottom: 15px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   6. FORMULAIRES (Contact, Back-office)
========================================= */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--olive);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    background-color: var(--creme);
}

.form-control:focus {
    outline: none;
    border-color: var(--ocre);
    box-shadow: 0 0 5px rgba(227, 188, 121, 0.3);
}

/* =========================================
   7. UTILITAIRES & STRUCTURES
========================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Boîtes de contenu (Formulaire contact, etc.) */
.content-box {
    padding: 25px; /* Sur mobile : même espace que les cartes */
}
@media (min-width: 768px) {
    .content-box {
        padding: 40px; /* Sur PC : on aère le design */
    }
}

/* Gestion du recadrage des images responsives (object-position) */
.dynamic-pos {
    object-fit: cover; 
    object-position: var(--pos-mob, center center);
}
@media (min-width: 768px) {
    .dynamic-pos {
        object-position: var(--pos-pc, center center);
    }
}

/* ========================================= */
/* ASCENSEUR PERSONNALISÉ (SCROLLBAR)        */
/* ========================================= */
::-webkit-scrollbar { 
    width: 14px; 
}

/* Le fond de l'ascenseur (Couleur Crème) */
::-webkit-scrollbar-track { 
    background: var(--creme); 
}

/* La barre qui bouge (Couleur Ocre avec bordure Crème pour l'effet "pilule") */
::-webkit-scrollbar-thumb {
    background-color: var(--ocre);
    border-radius: 10px;
    border: 3px solid var(--creme);
}

/* Au survol de la souris (Couleur Terracotta) */
::-webkit-scrollbar-thumb:hover { 
    background-color: var(--terracotta); 
}

/* Lors du clic (Couleur Olive) */
::-webkit-scrollbar-thumb:active { 
    background-color: var(--olive); 
}

/* Compatibilité pour le navigateur Firefox */
@supports (-moz-appearance:none) {
    html { 
        scrollbar-width: auto; 
        scrollbar-color: var(--ocre) var(--creme); 
    }
}

/* =========================================
   8. HEADER & MENU BURGER (SIDEBAR)
========================================= */
.main-header {
    background-color: var(--creme); /* Le fond devient Crème */
    border-bottom: 1px solid var(--ocre); /* Ligne élégante de séparation */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 900;
    /* Ombre subtile teintée en Olive pour un effet de flottaison */
    box-shadow: 0 4px 15px rgba(101, 104, 50, 0.1); 
    transition: transform 0.3s ease-in-out;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    font-size: 1.8rem;
    color: var(--terracotta);
    text-decoration: none;
}

/* Le bouton Burger (Les 3 petites barres) */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 5px;
    transition: transform 0.3s ease;
    /* On fige le rendu pour éviter le tremblement du texte */
    transform: perspective(1px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.burger-btn span {
    display: block;
    width: 35px;
    height: 4px;
    background-color: var(--olive);
    border-radius: 4px;
    transition: var(--transition);
}

.burger-btn:hover {
    transform: perspective(1px) scale(1.05) translateZ(0);
}

/* Changement de couleur des barres ET du texte au survol */
.burger-btn:hover span {
    background-color: var(--ocre);
}

.burger-btn:hover .burger-text {
    color: var(--ocre) !important;
}

/* On prépare la transition de couleur pour le texte */
.burger-text {
    transition: color 0.3s ease;
}

/* Animation au survol du logo et du nom de la marque */
.logo-link {
    transition: transform 0.3s ease;
    /* On force le calcul en 3D pour figer le rendu du texte */
    transform: perspective(1px) translateZ(0); 
    backface-visibility: hidden;
    will-change: transform;
}

.logo-link:hover {
    /* Le scale est appliqué avec la perspective 3D maintenue */
    transform: perspective(1px) scale(1.05) translateZ(0);
}

.burger-btn:hover span {
    background-color: var(--ocre);
}

/* La Sidebar (Panneau latéral menu) */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px; 
    width: 320px;
    height: 100vh;
    background-color: var(--creme);
    box-shadow: -5px 0 20px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0; 
}

/* Sidebar plein écran sur mobile uniquement */
@media (max-width: 767px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--ocre);
}

/* Bouton de fermeture du menu (La croix) */
.close-btn {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--terracotta);
    cursor: pointer;
    line-height: 1;
    /* Ajout des transitions fluides pour la couleur et la taille */
    transition: transform 0.3s ease, color 0.3s ease;
    /* Sécurité anti-tremblement */
    transform: perspective(1px) translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

.close-btn:hover {
    color: var(--ocre); /* La croix passe en Ocre */
    transform: perspective(1px) scale(1.1) translateZ(0); /* Grossissement doux */
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--olive);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #efe8e1;
    transition: var(--transition);
}

.sidebar-menu li a:hover {
    color: var(--terracotta);
    background-color: var(--creme);
    padding-left: 35px;
}

/* Overlay sombre */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 990; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   9. FOOTER
========================================= */
.main-footer {
    background-color: var(--olive);
    color: var(--creme);
    margin-top: 80px;
}

/* Grille principale (Logo + Contact) */
.footer-main-grid {
    text-align: center; /* Centré par défaut sur mobile */
}

/* Textes du footer */
.footer-brand .brand-font {
    font-size: 2.2rem;
    color: var(--creme);
    margin-bottom: 5px;
}

.footer-contact h3 {
    color: var(--ocre);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 5px;
    opacity: 0.9;
}

/* Liens Légaux (Tout en bas) */
.footer-legal {
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--creme);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--ocre);
    text-decoration: underline;
}

/* =========================================
   10. BOUTON REMONTER (BACK TO TOP)
========================================= */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--terracotta);
    color: var(--creme);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--ocre);
    transform: translateY(-5px); 
}

/* =========================================
   11. BANNIÈRE COOKIES (RGPD) & RECAPTCHA
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0; /* LA LIGNE MAGIQUE EST ICI ! */
    left: 0;
    width: 100%;
    background-color: var(--olive);
    color: var(--creme);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
	transform: translateY(0);
}

.cookie-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 20px 40px;
    }
}

/* CORRECTION : Bouton secondaire (Refuser) sur le fond Olive de la bannière */
.cookie-banner .btn-secondary {
    border-color: var(--creme);
    color: var(--creme);
}

.cookie-banner .btn-secondary:hover {
    background-color: var(--creme);
    color: var(--olive);
}

/* Masquer le badge reCAPTCHA flottant */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Cartes de témoignages avec effet de survol */
.card-testimonial {
    background: var(--creme);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition); /* Utilise la transition de 0.3s définie en haut du CSS */
}

.card-testimonial:hover {
    transform: translateY(-5px); /* Même décalage que pour les prestations */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* On accentue légèrement l'ombre au survol */
}

/* =========================================
   12. ADAPTATION MOBILE (TYPOGRAPHIE)
========================================= */
@media (max-width: 768px) {
    
    h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .brand-font {
        font-size: 2.4rem !important;
    }

    /* NOUVEAU : On force le texte du logo de la bannière à rester petit */
    .logo-header.brand-font {
        font-size: 1.5rem !important;
    }
    
    h2, .section-title {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    body {
        font-size: 0.95rem !important;
    }
    
    p {
        line-height: 1.6 !important;
    }

    /* Optionnel : On peut aussi décaler légèrement le bouton sur mobile pour qu'il soit moins imposant */
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

		.legal-container {
			background-color: var(--creme);
			border: 1px solid var(--ocre);
			padding: 40px;
			border-radius: 15px;
			box-shadow: 0 10px 30px rgba(101, 104, 50, 0.1);
			margin-top: 40px; /* Valeur augmentée pour passer sous le menu sticky */
			margin-bottom: 60px;
		}
        .legal-container h2 {
            color: var(--terracotta);
            border-bottom: 2px solid var(--ocre);
            padding-bottom: 10px;
            margin-top: 40px;
            margin-bottom: 20px;
            font-size: 1.8rem;
        }
        .legal-container h3 {
            color: var(--olive);
            margin-top: 25px;
            margin-bottom: 10px;
            font-size: 1.2rem;
        }
        .legal-container p, .legal-container ul {
            color: var(--olive); /* Remplace le gris #555 */
            opacity: 0.9; /* Légère transparence pour adoucir la lecture */
            line-height: 1.8;
            margin-bottom: 15px;
        }
        .legal-container ul {
            padding-left: 20px;
        }
        .legal-container a {
            color: var(--terracotta);
            text-decoration: none;
            font-weight: bold;
        }
        .legal-container a:hover {
            text-decoration: underline;
        }
		
/* =========================================
   13. SURCHARGE DESIGN SWEETALERT (NATURO EMOTION)
========================================= */
.swal-modal {
    background-color: var(--creme);
    border: 1px solid var(--ocre);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(101, 104, 50, 0.2);
}
.swal-title {
    color: var(--olive);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
}
.swal-text {
    color: var(--olive);
    font-family: 'Nunito', sans-serif;
    opacity: 0.9;
    font-size: 1rem;
}
.swal-button {
    background-color: var(--ocre);
    color: #333333;
    font-family: 'Montserrat', sans-serif;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.swal-button:hover {
    background-color: var(--terracotta) !important;
    color: var(--creme) !important;
}

/* Couleurs des icônes d'animation (Succès = Olive / Erreur = Terracotta) */
.swal-icon--success {
    border-color: var(--olive);
}
/* On masque le fond blanc par défaut de l'animation pour mettre le Crème */
.swal-icon--success::before, 
.swal-icon--success::after, 
.swal-icon--success .swal-icon--success__hide-corners {
    background-color: var(--creme) !important;
}
.swal-icon--success .swal-icon--success__line {
    background-color: var(--olive);
}
.swal-icon--success .swal-icon--success__ring {
    border-color: rgba(101, 104, 50, 0.2);
}
.swal-icon--error {
    border-color: var(--terracotta);
}
.swal-icon--error .swal-icon--error__line {
    background-color: var(--terracotta);
}