/*
  STYLES.CSS - NICOLAU COMPERE - REFONTE PROFESSIONNELLE
  Approche : Moderne, Élégant, Commerçant, Différenciant
*/

/* --- VARIABLES & RESET --- */
:root {
    --font-body: 'Montserrat', sans-serif;
    --font-title: 'Playfair Display', serif;

    --color-background: #ffffff;
    --color-surface: #f9f9f9;
    --color-primary: #a87e4f; /* Un brun doré, élégant */
    --color-primary-dark: #8c6840;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e5e5e5;
    --color-dark-bg: #222222; /* Un noir plus doux */

    --header-height: 80px;
    --container-width: 1200px;
    --border-radius: 8px;
    --transition-fast: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

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

/* --- HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    transition: box-shadow var(--transition-fast);
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.logo-link {
    align-items: center;
    display: flex;
    height: var(--header-height);
    padding: 0;
    margin: 0;
}
.logo {
    display: block;
    height: 52px;
    width: 175px;
    object-fit: cover;
    object-position: center;
    max-height: 100%;
    margin: 0;
    align-self: center;
}
@media (max-width: 1200px) {
    .logo {
        height: 70px;
        width: auto;
    }
}
@media (max-width: 992px) {
    .logo {
        height: 60px;
        width: auto;
    }
    .logo-link {
        height: var(--header-height);
    }
}
@media (max-width: 600px) {
    .logo {
        height: 52px;
        width: auto;
    }
    .logo-link {
        height: var(--header-height);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height));
    color: var(--color-white);
    overflow: hidden;
}

.hero-carousel .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
    transform: scale(1.05);
    background-color: #f5f5f5; /* Couleur de fond pendant le chargement */
}

/* Animation de chargement */
.carousel-slide:not(.loaded) {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { background-color: #f5f5f5; }
    50% { background-color: #e0e0e0; }
    100% { background-color: #f5f5f5; }
}

/* Transition pour l'image chargée */
.carousel-slide.loaded {
    transition: opacity 1.5s ease-in-out, transform 8s ease-in-out;
}

.hero-carousel .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
    transition-delay: 0.2s;
}

.hero-carousel .carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2.5rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: var(--border-radius);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BUTTONS --- */
.cta, .btn-outline {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-weight: 500;
    border-radius: 50px;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 2px solid var(--color-primary);
    font-size: 1rem;
}

.cta {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.cta:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

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

/* Style spécifique pour le bouton de la hero */
.hero .cta {
    color: var(--color-white);
    border-color: var(--color-white);
}

.hero .cta:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- GENERAL SECTION STYLING --- */
.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.section-gray {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-dark {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}
.section-dark .section-title, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: #ccc; }
.section-dark a { color: var(--color-primary); }
.section-dark a:hover { color: var(--color-white); }

/* --- SPECIFIC SECTIONS --- */

/* A Propos */
#a-propos .section-content-about {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 5rem;
    align-items: center;
}

#a-propos .about-image-container img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

#a-propos .about-text-container .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

#a-propos .about-text-container p {
    margin-bottom: 1.5rem;
}

#a-propos .about-text-container p strong {
    color: var(--color-primary-dark);
    font-weight: 600;
}

/* Menus */
.menu-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Spécialités */
.specialites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

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

.specialite-item img {
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.specialite-item:hover img {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.specialite-item h3 {
    font-family: var(--font-title);
    font-size: 1.5rem;
}

/* Livraison */
.livraison-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

/* Galerie */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact & Horaires */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 350px;
}

.contact-info h3, .horaires-info h3 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--color-text);
    font-size: 28px;
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    opacity: 1;
    color: var(--color-primary);
    transform: scale(1.1);
}

.horaires-info ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
}
.horaires-info ul li:last-child {
    border-bottom: none;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-dark-bg);
    color: #aab;
    padding: 5rem 0 0;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h4 {
    font-family: var(--font-title);
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col p, .footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #aab;
}
.footer-col a:hover {
    color: var(--color-white);
}

.footer-logo {
    height: 50px;
    width: 160px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1rem;
    margin-left: 0;
    margin-right: 0;
    display: block;
}

.footer-bottom {
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid #444;
    text-align: center;
}

/* --- LIGHTBOX STYLES --- */
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

#lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
}

#lightbox.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(30,30,30,0.6);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    font-family: 'Arial', sans-serif;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-close {
    top: 20px; right: 20px;
    width: 45px; height: 45px;
    font-size: 2rem;
    line-height: 45px;
}

.lightbox-prev, .lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 50px;
    font-size: 1.5rem;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- FORMULAIRE DE CONTACT MODAL --- */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal .modal-content {
    background-color: var(--color-background);
    padding: 3rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-smooth);
}

.contact-modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--color-primary);
}

.modal-content h2 {
    font-family: var(--font-title);
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.modal-content p {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(212, 165, 120, 0.3);
}

/* --- IMAGES ET TAILLES RESPONSIVES --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.about-image-container {
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Ajuste le cadrage vertical */
    aspect-ratio: 3/4; /* Format portrait plus adapté */
}

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

.specialite-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.2rem;
    transition: transform 0.3s ease;
}

.specialite-item:hover img {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Ajustements typographiques */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 20px));
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero p {
    animation: fadeIn 1s ease-out 1s both;
}

.hero .cta {
    animation: fadeIn 1s ease-out 1.2s both;
}

.anim-fade-in-left, .anim-fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.anim-fade-in-left { transform: translateX(-30px); }
.anim-fade-in-right { transform: translateX(30px); }
.anim-fade-in-left.is-visible, .anim-fade-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 992px) {
    /* Ajustements pour tablettes */
    .about-image-container {
        max-width: 400px;
        margin-bottom: 2rem;
    }
    
    .specialite-item img {
        height: 200px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .section {
        padding: 5rem 0;
    }
    #a-propos .section-content-about {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    #a-propos .about-text-container .section-title,
    .section-title {
        text-align: center;
    }
    
    .contact-wrapper, 
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .specialites-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Ajustements pour mobiles */
    .section {
        padding: 4rem 0;
    }
    
    .about-image-container {
        max-width: 350px;
        height: 450px; /* Hauteur augmentée */
    }
    
    .specialite-item img {
        height: 180px;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.2rem;
    }
    
    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }
    :root { 
        --header-height: 70px;
        --container-padding: 1.5rem;
    }
    
    .container {
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    
    /* Navigation mobile */
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 3rem;
        align-items: center;
        transition: left var(--transition-smooth);
        gap: 1.5rem;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 36px;
        height: 36px;
        padding: 6px 4px;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transition: none;
    }
    .nav-toggle span {
        width: 24px;
        height: 3px;
        background-color: #333 !important;
        border-radius: 2px;
        margin: 3px 0;
    }
    .nav-toggle:hover, .nav-toggle:focus {
        background: transparent;
        box-shadow: none;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }

    /* Sections */
    .section {
        padding: 4rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta, .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Grilles */
    #a-propos .section-content-about,
    .specialites-grid,
    .galerie-grid,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .galerie-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    /* Formulaire de contact */
    .contact-modal .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
        margin: 1rem;
    }
    
    .close-modal {
        font-size: 2rem;
        top: 0.5rem;
        right: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .lightbox-prev, 
    .lightbox-next { 
        display: block;
        width: 40px;
        height: 40px;
        font-size: 14px;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    .lightbox-prev { 
        left: 10px; 
    }
    
    .lightbox-next { 
        right: 10px; 
    }
}

@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 1.2rem;
        align-items: flex-start;
    }
    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        background: #fff;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        display: none;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-toggle {
        /* display: block; supprimé pour éviter le conflit */
    }
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .specialites-grid, .galerie-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .menu-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.cta, .btn-outline {
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 8px rgba(168,126,79,0.08);
}
.cta:hover, .btn-outline:hover, .cta:focus, .btn-outline:focus {
    background: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 16px rgba(168,126,79,0.15);
}

/* Très petits écrans */
@media (max-width: 480px) {
    /* Ajustements pour petits écrans */
    .about-image-container {
        width: 100%;
        max-width: 300px;
        height: 400px; /* Hauteur augmentée */
        margin: 0 auto 2rem;
    }
    
    .specialite-item img,
    .gallery-item img {
        height: 160px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section {
        padding: 3.5rem 0;
    }
    :root {
        --header-height: 60px;
        --container-padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta, .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .menu-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .menu-links .btn-outline {
        width: 100%;
    }
}

/* --- BOUTON RETOUR EN HAUT DE PAGE --- */
.back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    display: block;
}
.back-to-top, .back-to-top.visible {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.5rem;
}

/* --- ACCESSIBILITÉ : focus visible --- */
.user-is-tabbing a:focus, .user-is-tabbing button:focus, .user-is-tabbing .btn-outline:focus, .user-is-tabbing .cta:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(168,126,79,0.15);
}

@media (max-width: 600px) {
    .back-to-top, .back-to-top.visible {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
        font-size: 1.2rem;
    }
}

.mobile-slider {
    display: flex !important;
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
}
.mobile-slider .gallery-item {
    flex: 0 0 80vw;
    max-width: 80vw;
    min-width: 220px;
    scroll-snap-align: center;
}
.mobile-slider::-webkit-scrollbar {
    display: none;
}
.galerie-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    opacity: 0.85;
    cursor: pointer;
}
.galerie-arrow.left { left: 8px; }
.galerie-arrow.right { right: 8px; }
@media (min-width: 768px) {
    .galerie-arrow { display: none !important; }
    .mobile-slider { display: grid !important; overflow-x: unset; }
}

