/**
 * SAINT-ANDRÉ DES ARTS - STYLES PRINCIPAUX
 * Styles spécifiques pour le site de l'hôtel
 */

@import url('variables.css');

/* ========================================
   STYLES GLOBAUX
   ======================================== */

body.saint-andre {
    font-family: var(--sa-font-body);
    color: var(--sa-green-dark);
    background-color: var(--sa-background);
    line-height: var(--sa-line-height-normal);
    padding-top: var(--sa-header-height);
}

/* Titres - Cooper BT selon charte */
body.saint-andre h1,
body.saint-andre h2,
body.saint-andre h3,
body.saint-andre h4,
body.saint-andre h5,
body.saint-andre h6 {
    font-family: var(--sa-font-heading);
    font-weight: 700;
    line-height: var(--sa-line-height-tight);
    margin-bottom: var(--sa-spacing-md);
    color: var(--sa-green-dark);
}

body.saint-andre h1 {
    font-size: var(--sa-font-size-3xl);
    font-weight: 700;
}

body.saint-andre h2 {
    font-size: var(--sa-font-size-2xl);
    font-weight: 700;
}

body.saint-andre h3 {
    font-size: var(--sa-font-size-xl);
    font-weight: 700;
}

body.saint-andre p {
    font-family: var(--sa-font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: normal;
    color: rgb(0, 0, 1);
    margin-top: 0;
    margin-bottom: 0.5em;
}

body.saint-andre a {
    color: var(--sa-green-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    will-change: color;
    transform: translateZ(0);
    font-size: 17px;
}

body.saint-andre a:hover {
    color: var(--sa-orange);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.sa-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--sa-green-dark);
    box-shadow: none;
    border-bottom: 1px solid rgba(30, 142, 132, 0.1);
    z-index: var(--sa-z-fixed);
    height: var(--sa-header-height);
    font-family: 'Favorit', sans-serif;
}

.sa-logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.sa-logo-container img {
    width: auto;
    /* Cache l'image source — la couleur vient du background via mask */
    opacity: 0;
}
.sa-logo-container a {
    display: inline-block;
    width: 150px;
    height: 106px;
    background-color: #FEEFE7;
    -webkit-mask: url('/images/logo-saint-andre.png') no-repeat center / contain;
            mask: url('/images/logo-saint-andre.png') no-repeat center / contain;
}

.sa-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #FEEFE7;
    cursor: pointer;
    font-family: 'Favorit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    transition: color 0.2s ease;
}

.sa-menu-text {
    font-family: 'Favorit', sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 300;
    margin-left: 19px;
}

.burger-icon {
    font-size: 24px;
    cursor: pointer;
}

.sa-right-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sa-lang-switcher {
    font-family: 'Favorit', sans-serif;
    font-size: 16px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(30, 142, 132, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.sa-lang-switcher a,
.sa-lang-switcher .active-lang {
    color: #FEEFE7 !important;
    text-transform: uppercase;
    text-decoration: none;
}

.sa-lang-switcher .active-lang {
    font-weight: 700;
    cursor: default;
}

.sa-lang-switcher .separator {
    color: #FEEFE7;
}

body.sa-menu-open {
    overflow: hidden;
}

/* Le footer ne doit jamais être caché par le menu (ni par son fond assombri) :
   on le fait passer AU-DESSUS du menu (z-index supérieur à celui du menu, 9999)
   uniquement pendant que le menu est ouvert. Le menu garde sa pleine hauteur
   (rendu visuel standard) mais là où il chevauche le footer, c'est le footer
   qui reste visible au premier plan. */
body.sa-menu-open .sa-footer {
    position: relative;
    z-index: 10000;
}

/* Fond assombri derrière le menu latéral (couvre toute la page) */
.sa-menu-backdrop {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.sa-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Menu latéral */
.sa-side-menu {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 327px;
    height: 100vh;
    height: 100dvh;
    background: var(--sa-green-dark);
    padding: 1.25rem 1.5rem;
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    will-change: transform;
    font-family: 'Favorit', sans-serif;
}

.sa-side-menu.active {
    transform: translateX(0);
}

.sa-close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--sa-white);
    background: none;
    border: none;
    margin-bottom: 0.5rem;
}

.sa-menu-links {
    list-style: none;
    padding: 0;
    padding-left: 2rem;
    font-size: 17px;
}

.sa-menu-links li {
    margin: 15px 0;
}

.sa-menu-links a {
    color: #FEEFE7 !important;
    font-family: 'Favorit', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 17px;
    text-transform: uppercase;
    transition: color var(--sa-transition-fast);
}

.sa-menu-links a:hover {
    color: var(--sa-green-light) !important;
}

.sa-sub-menu {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.sa-sub-menu ul {
    list-style: none;
    padding: 0;
    padding-left: 2rem;
}

.sa-sub-menu li {
    margin-bottom: 15px;
}

.sa-sub-menu,
.sa-sub-menu ul,
.sa-sub-menu a,
.sub-menu a {
    font-size: 13px !important;
}
.sa-sub-menu a,
.sub-menu a {
    color: #FEEFE7 !important;
    font-weight: 300;
    text-decoration: none;
}

.social-follow {
    padding-left: 2rem;
    padding-top: 10px;
}

.sa-sub-menu a:hover {
    color: var(--sa-green-light) !important;
}

/* Override global orange hover dans le header et le menu latéral */
.sa-navbar a:hover,
.sa-side-menu a:hover {
    color: var(--sa-green-light) !important;
}

/* Bouton Réserver dans la navbar */
.sa-navbar .sa-btn,
.sa-navbar .sa-btn-primary {
    font-size: 16px !important;
    font-weight: 300 !important;
    font-family: 'Favorit', sans-serif !important;
}

/* ========================================
   HERO SECTION
   ======================================== */

.sa-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-white);
}

.sa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.sa-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.sa-hero-title {
    font-size: var(--sa-font-size-4xl);
    margin-bottom: var(--sa-spacing-lg);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sa-hero-subtitle {
    font-size: var(--sa-font-size-xl);
    font-weight: var(--sa-font-weight-light);
    margin-bottom: var(--sa-spacing-xl);
}

/* ========================================
   SECTIONS
   ======================================== */

.sa-section {
    padding: var(--sa-spacing-2xl) 0;
}

.sa-section-title {
    text-align: center;
    margin-bottom: var(--sa-spacing-2xl);
}

.sa-section-intro 
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--sa-spacing-3xl);
    font-size: var(--sa-font-size-md);
    color: var(--sa-gray-dark);
}

/* ========================================
   CHAMBRES / ROOMS
   ======================================== */

.sa-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sa-spacing-xl);
    margin-top: var(--sa-spacing-2xl);
}

.sa-room-card {
    background: var(--sa-white);
    border-radius: var(--sa-border-radius-md);
    overflow: hidden;
    transition: all var(--sa-transition-base);
    box-shadow: var(--sa-shadow-sm);
}

.sa-room-card:hover {
    box-shadow: var(--sa-shadow-lg);
    transform: translateY(-8px);
}

.sa-room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.sa-room-content {
    padding: var(--sa-spacing-lg);
}

.sa-room-title {
    font-size: var(--sa-font-size-xl);
    margin-bottom: var(--sa-spacing-sm);
}

.sa-room-meta {
    display: flex;
    gap: var(--sa-spacing-md);
    margin-bottom: var(--sa-spacing-md);
    font-size: var(--sa-font-size-sm);
    color: var(--sa-gray);
}

.sa-room-description {
    font-size: var(--sa-font-size-base);
    line-height: var(--sa-line-height-relaxed);
    margin-bottom: var(--sa-spacing-lg);
}

/* ========================================
   SERVICES
   ======================================== */

.sa-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sa-spacing-xl);
    margin-top: var(--sa-spacing-2xl);
}

.sa-service-item {
    text-align: center;
    padding: var(--sa-spacing-xl);
}

.sa-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--sa-spacing-md);
}

.sa-service-title {
    font-size: var(--sa-font-size-lg);
    margin-bottom: var(--sa-spacing-sm);
}

.sa-service-description {
    font-size: var(--sa-font-size-base);
    color: var(--sa-gray-dark);
}

/* ========================================
   GALERIE
   ======================================== */

.sa-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sa-spacing-md);
}

.sa-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.sa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--sa-transition-slow);
}

.sa-gallery-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   FOOTER
   ======================================== */

.sa-footer {
    position: relative;
    z-index: 1;
    background-color: var(--sa-green-dark);
    color: #FEEFE7 !important;
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 11px;
    line-height: 17px;
    font-weight: 300;
}

.sa-footer,
.sa-footer * {
    font-size: 11px !important;
    line-height: 17px !important;
}

.sa-footer * {
    font-weight: 300 !important;
}

.sa-footer * {
    color: #FEEFE7 !important;
}

.sa-footer a {
    color: #FEEFE7 !important;
}

.sa-footer a:hover {
    color: var(--sa-green-light) !important;
}

.sa-footer .row + .row {
    padding-top: 0.5rem !important;
}

.sa-footer-section {
    margin-bottom: 0.25rem;
}

.sa-footer-section p {
    color: #FEEFE7 !important;
    font-size: 0.68rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.35rem;
    font-weight: 300 !important;
}

.sa-footer-section > img {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 0.25rem !important;
}

/* Recolore tous les logos du footer en #FEEFE7 */
.sa-footer img {
    filter: brightness(0) saturate(100%) invert(94%) sepia(9%) saturate(478%) hue-rotate(311deg) brightness(105%) contrast(99%);
}

.sa-footer-title {
    font-size: 0.7rem !important;
    margin-bottom: 6px;
    color: #FEEFE7 !important;
    font-weight: 300 !important;
}

.sa-footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    font-weight: 300;
}

.sa-footer-links li {
    margin-bottom: 0.1rem;
    font-size: 0.68rem;
    line-height: 1.35;
    font-weight: 300;
}

.sa-social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.sa-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--sa-border-radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
    font-size: 0.85rem;
}

.sa-social-icons a:hover {
    background-color: var(--sa-green-light);
}

/* Icônes sociales dans le menu latéral en blanc */
.sa-side-menu .sa-social-icons a,
.sa-side-menu .sa-social-icons a i,
.sa-side-menu .sa-social-icons a:hover,
.sa-side-menu .sa-social-icons a:hover i {
    color: #ffffff !important;
}

/* ========================================
   SWIPER & EMAIL ICON - STYLES GLOBAUX
   ======================================== */

/* Boutons Swiper - Transparents sans background */
.swiper-button-next,
.swiper-button-prev {
    background-color: transparent !important;
    transition: transform 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: transparent !important;
    transform: scale(1.1);
}

/* Icône Email - Transparente sans background */
.email-icon {
    background-color: transparent !important;
    transition: transform 0.3s ease !important;
}

.email-icon:hover {
    background-color: transparent !important;
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .sa-hero-title {
        font-size: var(--sa-font-size-2xl);
    }
    
    .sa-hero-subtitle {
        font-size: var(--sa-font-size-lg);
    }
    
    .sa-menu-text {
        display: none;
    }

    .sa-navbar {
        padding: 0.75rem 1rem;
    }

    .sa-logo-container a {
        width: 120px;
        height: 85px;
    }

    .sa-right-section {
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        flex-wrap: nowrap;
    }

    .sa-lang-switcher {
        font-size: 10px;
        gap: 0.2rem;
        padding: 0.4rem 0.75rem !important;
    }

    .sa-lang-switcher .active-lang,
    .sa-lang-switcher a {
        font-size: 10px !important;
        font-weight: 400 !important;
        line-height: 1 !important;
        letter-spacing: 0 !important;
        vertical-align: middle !important;
    }

    .sa-navbar .sa-btn,
    .sa-navbar .sa-btn-primary {
        font-size: 12px !important;
        padding: 0.4rem 0.75rem !important;
        letter-spacing: 0;
    }

    .sa-side-menu {
        width: 280px;
    }

    .sa-room-grid,
    .sa-services-grid {
        grid-template-columns: 1fr;
    }
    
    body.saint-andre h1 {
        font-size: var(--sa-font-size-2xl);
    }
    
    body.saint-andre h2 {
        font-size: var(--sa-font-size-xl);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sa-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
