/* --- Variables de couleurs exactes --- */
:root {
    --bg-color: #FAF9F6;      
    --primary-color: #647952; 
    --secondary-color: #BDC3B7; 
    --accent-color: #C59D6C;  
    --text-color: #273120; 
    --card-bg: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Évite le débordement horizontal sur mobile */
    overflow-x: hidden; 
}

body {
    font-family: 'Quattrocento', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px; /* Légèrement réduit pour mobile */
    overflow-x: hidden;
}

/* --- Titres (Tailles Mobile par défaut) --- */
h1, h2, h3, h4, .logo-text {
    font-family: 'Quattrocento', serif;
    font-weight: 700;
    color: var(--text-color);
}

h1 { font-size: 1.9rem; line-height: 1.3; color: var(--primary-color); margin-bottom: 1rem; }
h2 { font-size: 1.2rem; font-weight: 400; color: #4b5e3c; margin-bottom: 2rem; }
h3 { font-size: 1.7rem; text-align: center; margin-bottom: 1rem; }

/* --- En-tête / Menu (Version Mobile) --- */
.site-header {
    display: flex;
    flex-direction: column; /* Sur mobile, on empile le logo et le menu */
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background-color: var(--card-bg);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}

.logo-link {
    display: flex;
    flex-direction: column; /* Logo au-dessus du texte sur mobile */
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.logo-title {
    display: block; /* Passage à la ligne pour le long titre sur mobile */
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--accent-color);
    line-height: 1.3;
    margin-top: 4px;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem; /* Espace entre les liens sur mobile */
}

.site-header nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    position: relative; 
    transition: color 0.3s ease;
}

.site-header nav a:hover {
    color: var(--accent-color);
}

.site-header nav a::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 2px; 
    bottom: -4px; 
    left: 0;
    background-color: var(--accent-color); 
    transition: width 0.3s ease; 
}

.site-header nav a:hover::after {
    width: 100%;
}

/* --- Section Hero --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1.5rem 3rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-content {
    text-align: center; /* Centré sur mobile */
    flex: 1;
}

.hero-image-wrapper {
    flex-shrink: 0;
}

.portrait-img {
    width: 100%;
    max-width: 250px;
    height: auto; 
    border-radius: 12px; 
    border: 4px solid var(--secondary-color);
    box-shadow: 0 10px 25px rgba(100, 121, 82, 0.15); 
}

.bio-text {
    margin-bottom: 2rem;
    font-size: 1rem;
    text-align: justify;
}

.bio-text p {
    margin-bottom: 1rem;
}

.bio-text a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-color);
    transition: color 0.3s ease;
}

.hero-buttons {
    display: flex;
    flex-direction: column; /* Boutons empilés sur mobile */
    gap: 1rem;
    width: 100%;
}

.btn-primary, .btn-secondary {
    display: block;
    width: 100%; /* Prennent toute la largeur sur mobile */
    text-align: center;
    padding: 1rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.4s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: 2px solid var(--primary-color);
}

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

/* --- Section Services --- */
.services {
    padding: 4rem 1.5rem;
    background-color: var(--card-bg);
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 2rem auto 0 auto;
}

.card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border-top: 5px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.card h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- Section Cabinet (Galerie) --- */
.cabinet-section {
    padding: 4rem 0; 
    background-color: var(--bg-color);
    overflow: hidden; 
}

.cabinet-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem; 
}

.gallery-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gallery-track {
    display: flex;
    width: max-content;
    animation: scrollGallery 35s linear infinite; 
    will-change: transform; 
    transform: translateZ(0);
    -webkit-transform-style: preserve-3d;
}

.gallery-group {
    display: flex;
    gap: 1rem; /* Un peu moins d'espace sur mobile */
    padding-right: 1rem; 
}

.gallery-group img {
    width: 240px; /* Plus petites sur mobile */
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-shrink: 0; 
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Section Avis --- */
.reviews-section {
    padding: 4rem 1.5rem;
    background-color: var(--card-bg);
}

.reviews-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.review-widget-container {
    max-width: 1100px;
    margin: 0 auto;
}

.reviews-action {
    text-align: center;
    margin-top: 3rem;
}

.reviews-action .btn-secondary {
    width: 100%; /* Bouton pleine largeur sur mobile */
}

/* --- Footer / Contact --- */
.site-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

.footer-logo {
    height: 60px;
    opacity: 0.3;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.site-footer h3 {
    color: var(--bg-color);
    font-size: 1.5rem;
}

.footer-note {
    max-width: 650px;
    margin: 0 auto 2rem auto;
    font-size: 1rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem; /* Ajusté pour éviter de déborder sur mobile */
    font-weight: bold;
    padding: 0.8rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background-color: rgba(0,0,0,0.1);
    word-break: break-word; /* Évite que l'email coupe l'écran */
}

.legal {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

.legal a {
    color: var(--secondary-color);
    text-decoration: none;
}


/* ========================================================= */
/* --- ADAPTATION ORDINATEURS & TABLETTES (Media Query) ---  */
/* ========================================================= */
@media (min-width: 900px) {
    body {
        font-size: 17px;
    }

    h1 { font-size: 2.4rem; margin-bottom: 1rem; }
    h2 { font-size: 1.3rem; margin-bottom: 2rem; }
    h3 { font-size: 2rem; }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 2rem;
        text-align: left;
    }

    .logo-link {
        flex-direction: row;
        gap: 12px;
    }

    .logo-img { height: 55px; }
    
    .logo-text { font-size: 1.5rem; }
    
    .logo-title {
        display: inline; /* Retour sur la même ligne sur ordinateur */
        font-size: 1.1rem;
        margin-top: 0;
    }

    .site-header nav {
        gap: 0;
    }

    .site-header nav a {
        margin-left: 1.5rem;
        font-size: 1rem;
    }

    .hero {
        flex-direction: row;
        align-items: flex-start;
        padding: 4rem 2rem;
    }
    
    .hero-content {
        text-align: left;
    }

    .hero-image-wrapper {
        flex: 0 0 300px;
    }

    .portrait-img {
        max-width: 280px;
    }
    
    .bio-text {
        text-align: left;
        font-size: 1.05rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
    }
    
    .btn-primary, .btn-secondary {
        display: inline-block;
        width: auto;
        padding: 1rem 2.5rem;
    }

    .service-cards {
        flex-direction: row;
    }
    
    .card {
        flex: 1;
        padding: 2.5rem;
    }

    .gallery-group {
        gap: 1.5rem;
        padding-right: 1.5rem; 
    }

    .gallery-group img {
        width: 400px; 
        height: 400px;
    }
    
    .reviews-action .btn-secondary {
        width: auto; 
    }

    .contact-info {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    .contact-link {
        font-size: 1.1rem;
    }
}