/* --- Variables CSS (Couleurs) --- */
:root {
    --color-primary: #8B7D6B; /* Taupe principal */
    --color-secondary: #F5F1EB; /* Beige clair pour fond/boutons secondaires */
    --color-dark: #1f2937; /* Gris foncé pour le footer */
    --color-text: #374151; /* Gris pour le texte principal */
    --color-background: #f9fafb; /* Gris très clair */
}

/* --- Base et Réinitialisation --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

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

.text-center {
    text-align: center;
}

.mt-big {
    margin-top: 40px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-primary);
}

/* --- Navigation Fixe (Header) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 130px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    transition: height 0.3s ease;
}

.main-header.scrolled .nav-container {
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: auto;
    max-width: 200px;
    transition: height 0.3s ease;
}

.logo-scrolled .logo-img {
    height: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.burger-btn {
    display: none; /* Caché sur desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.icon-burger {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 700;
    border: none;
    border-radius: 9999px; /* Rond */
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(139, 125, 107, 0.4);
}

.btn-primary:hover {
    background-color: #6B5D4F;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #E8E3D9;
}

.btn-cta {
    font-size: 18px;
    padding: 16px 40px;
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 8px 15px rgba(139, 125, 107, 0.6);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    background-color: #6B5D4F;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(139, 125, 107, 0.8);
}

.link-secondary {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    font-size: 18px;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding-top: 130px; /* Espace pour le header fixe (logo grand) */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(31, 41, 55, 0.7)); /* Dégradé noir-gris */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-title {
    font-size: 72px;
    font-weight: 500;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8B7D6B 0%, #A08D7F 25%, #F5F1EB 50%, #A08D7F 75%, #8B7D6B 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.15s ease-out;
    will-change: background-position;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
}

.hero-location {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.9;
}

/* --- PRESENTATION --- */
.section-presentation {
    background-color: var(--color-background);
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.feature-item {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    text-align: center;
}

.feature-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
}

.feature-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* --- SOINS (Services) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 5 cartes côte à côte sur grand écran */
    gap: 32px;
}

.service-card {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #7A6B5A; /* Taupe moyen-foncé */
    margin-bottom: 8px;
}

.card-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 40px;
}

.card-keywords {
    font-size: 12px;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- MARQUES (Carrousel) --- */
.section-gray {
    background-color: var(--color-background);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-carousel {
    display: flex;
    white-space: nowrap;
    animation: scroll-logos 25s linear infinite;
    width: fit-content;
    will-change: transform;
    min-width: 100%;
}

.logo-item {
    height: 80px;
    width: 150px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 80px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.logo-item:hover {
    opacity: 1;
}

/* Keyframe pour l'animation du défilement infini */
@keyframes scroll-logos {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-33.333%); /* Défilement de 1/3 (une série sur trois) pour effet infini fluide */
    }
}

/* --- AVIS CLIENTS --- */
.section-reviews {
    background-color: var(--color-secondary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.review-card {
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.review-text {
    font-style: italic;
    font-size: 17px;
    color: #4b5563;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: var(--color-primary);
}


/* --- FOOTER --- */
.main-footer {
    background-color: var(--color-dark);
    color: white;
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-secondary);
}

.footer-link, .social-icon {
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-link:hover, .social-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-note {
    font-weight: 700;
    margin-top: 15px;
    background-color: #5A4E42; /* Taupe très foncé */
    display: inline-block;
    padding: 8px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.footer-note:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

.map-embed {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ======================================================= */
/* --- RESPONSIVITÉ (Media Queries) --- */
/* ======================================================= */

/* Tablettes (breakpoint ~768px) */
@media (min-width: 768px) {
    .hero-title {
        font-size: 90px;
    }
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ordinateurs de bureau (breakpoint ~1024px) */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 40px;
    }
    .hero-title {
        font-size: 110px;
    }
    .services-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-title {
        font-size: 50px;
    }
    .hero-subtitle {
        font-size: 24px;
    }
    .nav-menu {
        position: absolute;
        top: 130px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 20px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(0); /* Le JS gère l'affichage/masquage */
        transition: top 0.3s ease;
    }
    
    .main-header.scrolled .nav-menu {
        top: 80px;
    }

    .hidden-mobile {
        display: none; /* État initial masqué géré par JS */
    }
    
    .nav-menu a {
        padding: 10px 0;
        width: 80%;
        text-align: center;
        border-bottom: 1px solid var(--color-background);
    }

    .burger-btn {
        display: block; /* Affiché sur mobile */
    }

    .btn-secondary, .btn-primary {
        margin-top: 10px;
        width: 80%;
        text-align: center;
    }
}