/* =========================================
   HEADER (Fond Opaque et Typographie)
========================================= */

.rst-site-header {
    background-color: var(--rst-brun-fonce);
    color: var(--rst-beige);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    padding-top: 80px;
}



.rst-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Typographie Logo */
.rst-logo a {
    font-family: var(--rst-font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--rst-beige);
    text-decoration: none;
}

/* Navigation principale */
.rst-main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.rst-main-navigation a, .rst-mobile-navigation a {
    font-family: var(--rst-font-body);
    color: var(--rst-beige);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rst-main-navigation a:hover {
    color: var(--rst-gris-clair);
}

/* Bouton Réserver */
.rst-btn-reserver {
    display: inline-block;
    background-color: var(--rst-beige);
    color: var(--rst-brun-fonce) !important;
    font-family: var(--rst-font-body);
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.rst-btn-reserver:hover {
    background-color: var(--rst-gris-clair);
}

/* =========================================
   MENU MOBILE
========================================= */
.rst-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.rst-mobile-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--rst-beige);
    transition: 0.3s;
}

.rst-mobile-wrapper {
    display: none;
    background-color: var(--rst-brun);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.rst-mobile-wrapper.active {
    display: block;
}

.rst-mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rst-mobile-only {
    display: none;
}

/* ============ CORRECTIF BARRE ADMIN WORDPRESS ============ */
/* Pour les écrans d'ordinateur (la barre fait 32px de haut) */
body.admin-bar .rst-site-header {
  top: 32px;
}

/* Pour les petits écrans en dessous de 782px (la barre passe à 46px) */
@media (max-width: 782px) {
  body.admin-bar .rst-site-header {
    top: 46px;
  }
}

/* =========================================
   FOOTER
========================================= */
.rst-site-footer {
    background-color: var(--rst-brun-fonce);
    color: var(--rst-beige);
    padding: 50px 0 20px;
    font-family: var(--rst-font-body);
}

.rst-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px;
}

.rst-footer-widget h3 {
    font-family: var(--rst-font-title);
    color: var(--rst-beige);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.rst-footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rst-brun);
    font-size: 0.9rem;
    color: var(--rst-gris-clair);
}

/* =========================================
   MEDIA QUERIES (Gestion de l'affichage du bouton)
========================================= */
@media (max-width: 992px) {
    .hide-on-mobile {
        display: none !important; /* Cache le menu desktop et le bouton PC */
    }
    
    .rst-mobile-toggle {
        display: flex; /* Affiche le burger */
    }
    
    .rst-mobile-only {
        display: inline-block; /* Affiche le bouton DANS le menu mobile */
        text-align: center;
        width: 100%;
    }
}

/* =========================================
   STYLE DU LOGO SVG (Header & Footer)
========================================= */
/* Alignement horizontal avec Flexbox */
.rst-logo a,
.rst-site-footer__logo-link {
    display: flex;
    align-items: center;
    gap: 12px; /* Espace entre l'icône et le texte */
    text-decoration: none;
    color: var(--rst-beige);
    transition: opacity 0.3s ease;
}

.rst-logo a:hover,
.rst-site-footer__logo-link:hover {
    opacity: 0.8; /* Léger effet au survol */
}

/* Taille de l'icône SVG */
.rst-svg-logo {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

/* On s'assure que le texte du footer a les mêmes marges */
.rst-site-footer__logo-link {
    margin-bottom: 15px;
}
.rst-site-footer__logo-text {
    margin-bottom: 0; /* Écrase le margin-bottom précédent */
}


/* =========================================
   FOOTER (Classes BEM)
========================================= */
.rst-site-footer {
    background-color: var(--rst-brun-fonce);
    color: var(--rst-beige);
    font-family: var(--rst-font-body);
    padding: 60px 0 20px;
}

.rst-site-footer__main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Force 4 colonnes sur les grands écrans */
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.rst-site-footer__logo-text {
    font-family: var(--rst-font-title);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rst-beige);
    display: block;
    margin-bottom: 0; /* Géré par le parent (.rst-site-footer__logo-link) */
}

.rst-site-footer__desc,
.rst-site-footer__text {
    color: var(--rst-gris-clair);
    line-height: 1.6;
    margin-bottom: 10px;
}

.rst-site-footer__text a,
.rst-site-footer__list a,
.rst-site-footer__social a,
.rst-site-footer__legal a {
    color: var(--rst-beige);
    text-decoration: none;
    transition: color 0.3s ease;
}

.rst-site-footer__text a:hover,
.rst-site-footer__list a:hover,
.rst-site-footer__social a:hover,
.rst-site-footer__legal a:hover {
    color: var(--rst-gris-clair);
}

.rst-site-footer__title {
    font-family: var(--rst-font-title);
    color: var(--rst-beige);
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.rst-site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rst-site-footer__social {
    display: flex;
    gap: 15px;
}

.rst-site-footer__bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid var(--rst-brun);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--rst-gris-clair);
}

.rst-site-footer__legal {
    display: flex;
    gap: 20px;
}

/* =========================================
   RESPONSIVITÉ TABLETTE ET MOBILE
========================================= */

/* 1. TABLETTE (Écrans de taille moyenne, ex: iPad) */
@media (max-width: 992px) {
    .rst-site-footer__main {
        /* Passe à 2 colonnes régulières */
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* 2. MOBILE (Smartphones) */
@media (max-width: 768px) {
    .rst-site-footer {
        /* Réduit l'espace vide excessif en haut sur mobile */
        padding: 40px 0 20px; 
    }
    
    .rst-site-footer__main {
        /* Passe à 1 seule colonne */
        grid-template-columns: 1fr;
        gap: 35px; /* Crée un espace vertical parfait entre chaque bloc */
    }
    
    .rst-site-footer__title {
        /* Rapproche un peu le titre de sa liste sur mobile */
        margin-bottom: 15px; 
    }

    /* Gestion de la barre du bas (Copyright + Mentions légales) */
    .rst-site-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-top: 30px;
    }

    .rst-site-footer__legal {
        justify-content: center; /* Centre les liens légaux */
        width: 100%;
        flex-wrap: wrap; /* Évite que les liens sortent de l'écran s'ils sont longs */
    }
}
