/* Masqué par défaut sur ordinateur */
.mobile-only-btn {
    display: none !important;
}
/* Style spécifique à la page À Propos */
.apropos-page { padding: 100px 0; }
.apropos-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }

.apropos-visuel { position: relative; border: 1px solid var(--gris-clair); padding: 15px; }
.apropos-visuel img { width: 100%; height: auto; display: block; filter: grayscale(1); }

.stats-premium { display: flex; gap: 40px; margin: 40px 0; border-top: 1px solid #333; padding-top: 20px; }
.stat .number { display: block; font-size: 2.5rem; font-family: 'Oswald', sans-serif; color: var(--gris-clair); }
.stat .label { font-size: 0.8rem; text-transform: uppercase; color: #888; }

@media (max-width: 992px) {
    .apropos-grid { grid-template-columns: 1fr; }
    .apropos-visuel { order: 2; }
    .apropos-texte { order: 1; text-align: center; }
    .stats-premium { justify-content: center; }
}

/* ==========================================================================
   1. VARIABLES ET RESET
   ========================================================================== */
:root {
    --noir-mat: #0a0a0a;
    --noir-fonce: #1a1a1a;
    --gris-clair: #d4d4d4; /* Remplacé doré */
    --blanc-creme: #f5f5f0;
    --doré: #d4d4d4; /* Redéfini pour compatibilité */
    --doré-clair: #eeeeee;
    --font-titre: 'Montserrat', sans-serif;
    --font-texte: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-texte);
    background: var(--noir-mat);
    color: var(--gris-clair);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-titre);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blanc-creme);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--gris-clair);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--blanc-creme);
}

.btn-cta {
    background: var(--gris-clair);
    color: var(--noir-mat);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 212, 212, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 212, 212, 0.4);
}

/* Hero */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10,10,10,0.7), rgba(10,10,10,0.7)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%230a0a0a" width="1200" height="800"/><path fill="%231a1a1a" d="M0 0h1200v400l-600 400L0 400z"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--gris-clair);
    font-family: var(--font-titre);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-titre);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--blanc-creme);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-secondary {
    color: var(--blanc-creme);
    border: 2px solid var(--blanc-creme);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--blanc-creme);
    color: var(--noir-mat);
}

.hero-info {
    position: absolute;
    bottom: 3rem;
    right: 5%;
    background: rgba(10,10,10,0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--gris-clair);
}

/* Sections */
.section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-titre);
    font-size: 3rem;
    color: var(--blanc-creme);
    text-align: center;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    opacity: 0.8;
}

/* Pourquoi nous */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.why-list {
    list-style: none;
}

.why-list li {
    font-size: 1.1rem;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.why-list li::before {
    content: "→";
    color: var(--gris-clair);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.placeholder-img {
    height: 500px;
    background: linear-gradient(45deg, var(--noir-fonce), var(--gris-clair));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.placeholder-img::after {
    content: "Image barbier";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanc-creme);
    font-size: 1.2rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--noir-fonce);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 212, 212, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gris-clair);
    box-shadow: 0 20px 40px rgba(212, 212, 212, 0.15);
}

.service-title {
    font-family: var(--font-titre);
    font-size: 1.5rem;
    color: var(--blanc-creme);
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.8rem;
    color: var(--gris-clair);
    font-weight: 700;
    margin: 1rem 0;
}

.service-duration {
    color: var(--gris-clair);
    margin-bottom: 2rem;
}

/* Avis */
.reviews {
    background: var(--noir-fonce);
    border-radius: 30px;
    padding: 4rem;
    margin: 4rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.review {
    padding: 2rem;
    border-left: 4px solid var(--gris-clair);
}

.stars {
    color: var(--gris-clair);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-author {
    color: var(--blanc-creme);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: var(--noir-fonce);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::after {
    content: "Voir";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanc-creme);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Localisation */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h3 {
    color: var(--blanc-creme);
    margin-bottom: 2rem;
}

.location-details {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.map-placeholder {
    height: 400px;
    background: var(--noir-fonce);
    border-radius: 20px;
    position: relative;
}

.map-placeholder::after {
    content: "Google Maps";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--blanc-creme);
}

/* CTA Final */
.cta-final {
    text-align: center;
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--noir-fonce), var(--noir-mat));
    border-radius: 30px;
    margin: 4rem 0;
}

.cta-final h2 {
    font-family: var(--font-titre);
    font-size: 2.5rem;
    color: var(--blanc-creme);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--noir-fonce);
    padding: 4rem 5% 2rem;
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: var(--gris-clair);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--noir-mat);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive de base */
@media (max-width: 768px) {
    .header { padding: 1rem 3%; }
    .hero { flex-direction: column; text-align: center; padding: 0 3%; }
    .hero-content { margin-bottom: 2rem; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .hero-info { position: static; margin-top: 2rem; text-align: center; }
    .why-grid, .location-grid { grid-template-columns: 1fr; gap: 2rem; }
    .section { padding: 4rem 3%; }
    .section-title { font-size: 2rem; }
    .reviews { padding: 2rem; }
}

/* ==========================================================================
   2. AJUSTEMENTS POUR LE SYSTÈME MVC (Formulaires)
   ========================================================================== */
.booking-form-premium {
    background: var(--noir-fonce);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 212, 212, 0.2);
}

.input-premium {
    width: 100%;
    padding: 12px;
    background: var(--noir-mat);
    border: 1px solid #333;
    color: var(--blanc-creme);
    border-radius: 8px;
    margin-top: 8px;
    font-family: var(--font-texte);
}

.input-premium:focus {
    border-color: var(--gris-clair);
    outline: none;
}

/* --- LE FIX HERO RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 5% 60px 5%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-ctas { justify-content: center; flex-direction: column; gap: 1rem; }
    .hero-info {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 40px auto 0 auto;
        width: 100%;
        max-width: 400px;
        background: var(--noir-fonce);
    }
}

/* --- ANIMATION MENU MOBILE ÉLÉGANTE --- */
.header-right { display: flex; align-items: center; gap: 20px; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.bar {
    display: block;
    height: 3px;
    background-color: var(--gris-clair);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.bar:nth-child(1) { width: 28px; }
.bar:nth-child(2) { width: 18px; margin-left: auto; }
.bar:nth-child(3) { width: 24px; }

@media (max-width: 768px) {
    /* 1. Afficher le bouton burger */
    .menu-toggle { 
        display: flex !important; 
    }
    
    /* 2. Cacher la navigation standard */
    .hide-mobile { 
        display: none !important; 
    }

    /* 3. Configuration du menu mobile (masqué par défaut) */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Sorti de l'écran */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    /* 4. ÉTAT ACTIF : Quand on clique sur le menu */
    .nav.active {
        right: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }

    /* 5. Afficher le CTA uniquement ici */
    .mobile-only-btn {
        display: block !important;
        background: var(--gris-clair);
        color: var(--noir-mat) !important;
        padding: 15px 40px !important;
        border-radius: 50px;
        margin-top: 20px;
    }

    /* Animation des liens internes */
    .nav a {
        font-size: 1.8rem;
        font-weight: 600;
        text-transform: uppercase;
        color: white !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav.active a {
        opacity: 1;
        transform: translateY(0);
    }
}