/* ==========================================================================
   STYLE SHEET - RIAD ÉMOTION ESSAOUIRA V20 (VERSION COMPLETE EXACTE)
   Charte Officielle : Fond Aubergine / Prune Profond & Accents Turquoise
   ========================================================================== */

:root {
    --color-plum-dark: #0E0937;      /* Header sombre */
    /*--color-plum-dark: #1a0f28;      /* Header sombre */
    --color-plum: #4A2247;           /* Fond principal aubergine / prune */
    /*--color-plum: #381435;           /* Fond principal aubergine / prune */
    --color-plum-light: #4a1d47;     /* Cartes & blocs */
    --color-turquoise: #00bcd4;      /* Boutons & liens turquoise */
    --color-turquoise-hover: #0097a7;/* Turquoise survol */
    --color-cyan-divider: #2cd5c4;   /* Dividers cyan */
    --color-mint-footer: #95ece1;    /* Fond menthe pastel du footer officiel */
    --color-coral-btn: #731e48;      /* Bouton burgundy du slideout */
    --color-white: #ffffff;
    --color-text-light: #f5edf5;     /* Texte clair sur fond prune */
    --color-text-muted: #cbb9c9;     /* Texte secondaire */
    --color-dark: #111111;           /* Texte foncé sur fond menthe */
    
    --font-heading: 'Montserrat', 'Cormorant Garamond', -apple-system, sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.45);
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --transition: all 0.3s ease;

    --slider-size: calc(100vh - 75px)
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--color-text-light);
    background-color: var(--color-plum);
    line-height: 1.8;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

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

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

a:hover {
    color: var(--color-turquoise);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1.3rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-turquoise { color: var(--color-turquoise) !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.d-none-mobile { display: inline-block; }
.rounded { border-radius: var(--radius-md); }
.shadow { box-shadow: var(--shadow-card); }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }
.max-w-1000 { max-width: 1000px; margin-left: auto; margin-right: auto; }

/* Dividers Orientaux Cyan */
.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 45px auto;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.cyan-divider-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 12px;
}

.divider-line-sub {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #2cd5c4 40%, #2cd5c4);
}

.cyan-divider-line .divider-line-sub:last-child {
    background: linear-gradient(90deg, #2cd5c4, #2cd5c4 60%, transparent);
}

.divider-ornament-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Séparateur / Divider décoratif 
.custom-divider {
    text-align: center;
    margin: 45px auto;
    width: 100%;
    max-width: 450px; /* Ajustez la largeur selon vos préférences 


.custom-divider img {
    display: flex;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)); /* Optionnel : légère ombre */

/* ===================================================
   HARMONISATION UNIVERSELLE DES DIVIDERS
   Espacement strictement symétrique dessus / dessous
=================================================== */

/* 1. Marge fixe et identique au-dessus et en-dessous de tous les dividers */
.section-divider {
    margin: 50px auto !important;
    padding: 0 !important;
    clear: both;
}

/* 2. Neutralise la marge basse du dernier élément situé AVANT un divider */
*:has(+ .section-divider),
.section-divider-prev,
.contact-form-section,
.contact-3cols-grid,
.team-card-section p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Neutralise la marge haute du premier élément situé APRÈS un divider */
.section-divider + *,
.section-divider + .section,
.section-divider + section,
.section-divider + .team-card-section,
.section-divider + .tripadvisor-center-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Supprime spécifiquement la marge haute automatique de l'avatar et des titres sous divider */
.section-divider + .team-card-section .team-avatar-img,
.section-divider + .team-card-section,
.team-card-section {
    margin-top: 0 !important;
}

.tripadvisor-center-wrapper {
    margin-top: 0 !important;
}

/* 4. Adaptation mobile : 35px symétriques partout */
@media (max-width: 767px) {
    .section-divider {
        margin: 35px auto !important;
    }
}


.section-title {
    font-size: 2.8rem;
    font-weight: 350;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    letter-spacing: 1px;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--color-text-light);
}

.section {
    padding: 70px 0;
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 32px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-transform: none;
}

.btn-turquoise {
    background-color: var(--color-turquoise);
    color: #ffffff !important;
    border-color: var(--color-turquoise);
}

.btn-turquoise:hover {
    background-color: var(--color-turquoise-hover);
    border-color: var(--color-turquoise-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff !important;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-plum) !important;
    border-color: var(--color-white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 0.95rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header */
.main-header {
    background-color: color-mix(in srgb, var(--color-plum-dark) 85%, transparent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    transition: var(--transition);
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 28px;
}

.brand-logo {
    display: flex;
    align-items: center;
    background: transparent;
}

.header-logo-img {
    height: 62px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.header-right-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--color-white);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-turquoise);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: color-mix(in srgb, var(--color-plum-dark) 85%, transparent);
    min-width: 250px;
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-sm);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 2px solid var(--color-turquoise);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 22px;
    font-size: 0.85rem;
    color: var(--color-white);
}

.dropdown-menu li a:hover {
    /*background-color: var(--color-plum);*/
    color: var(--color-turquoise);
    padding-left: 26px;
}

.header-book-cal-btn {
    background-color: #581d40;
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.header-book-cal-btn:hover {
    background-color: var(--color-turquoise);
    transform: scale(1.05);
}

.sidebar-menu-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.sidebar-menu-btn:hover {
    color: var(--color-turquoise);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.lang-switch a {
    color: var(--color-text-muted);
    padding: 2px 4px;
    border-radius: 2px;
}

.lang-switch a.active {
    color: #ffffff !important;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* Slideout Menu */
.slideout-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background-color: #0A0937;
    z-index: 2000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    transition: right 0.35s ease;
    padding: 35px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--color-turquoise);
}

.slideout-sidebar.active { right: 0; }

/* ===================================================
   VOLET LATÉRAL SLIDEOUT (AU PREMIER PLAN TOTAL)
=================================================== */

/* 1. L'ombre d'arrière-plan passe devant le header */
.slideout-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 100000 !important; /* Supérieur au z-index 9999 du header */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.slideout-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

/* 2. Le menu coulissant passe au-dessus de tout et s'aère */
.slideout-sidebar {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    max-width: 85vw; /* Sécurité pour ne pas déborder sur petits écrans */
    height: 100vh;
    background-color: #0A0937;
    z-index: 100001 !important; /* Priorité absolue sur tout le site */
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.6);
    transition: right 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 30px 28px 40px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--color-turquoise);
    box-sizing: border-box;
}

.slideout-sidebar.active { 
    right: 0; 
}

/* 3. Bouton de fermeture (croix) parfaitement calé et visible */
.sidebar-close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 6px;
    line-height: 1;
    transition: var(--transition);
}

.sidebar-close-btn:hover {
    color: var(--color-turquoise);
    transform: rotate(90deg);
}

/* 4. Bouton RÉSERVER : marge haute harmonieuse */
.sidebar-book-btn {
    background-color: var(--color-coral-btn);
    color: #ffffff !important;
    text-align: center;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: block;
    font-size: 0.92rem;
    transition: var(--transition);
}

.sidebar-links-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 25px;
}

.sidebar-links-list a {
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-white);
}

.sidebar-links-list a:hover {
    color: var(--color-turquoise);
    padding-left: 5px;
}

.sidebar-contact-block {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.sidebar-contact-block a { color: var(--color-text-muted); }
.sidebar-contact-block a:hover { color: var(--color-turquoise); }
.sidebar-contact-block i { color: var(--color-turquoise); margin-right: 8px; }

/* Hero Slider Accueil (Titre sur 2 lignes centré) */
/* Hero Slider Accueil */
.hero-slider-section {
    position: relative;
    /* Remonte le slider tout en haut derrière le header sans toucher au header */
    margin-top: -85px; /* Ajustez selon la hauteur de votre header (ex: -80px, -85px ou -90px) */
    
    /* On ajoute la même hauteur au slider pour qu'il garde sa taille complète */
    min-height: calc(var(--slider-size) + 85px);
    
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-slides-wrapper { 
    position: absolute; 
    inset: 0; 
}

/* Animation fluide de zoom lent (Ken Burns effect) */
@keyframes kenBurnsZoom {
    0% {
        transform: scale(1.08);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===================================================
   ANIMATION D'APPARITION PROGRESSIVE (TITRE SLIDER)
=================================================== */

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle,
.hero-title-2lines,
.hero-tagline {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

/* 1. Sous-titre ("Boutique Hôtel") */
.animate-hero .hero-subtitle {
    opacity: 0;
    animation: heroFadeUp 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

/* 2. Grand titre ("riad émotion") */
.animate-hero .hero-title-2lines {
    opacity: 0;
    animation: heroFadeUp 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.25s forwards;
}

/* 3. Slogan ("VOTRE MAISON LOIN DE CHEZ VOUS") */
.animate-hero .hero-tagline {
    opacity: 0;
    animation: heroFadeUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1.45s forwards;
}

/* ===================================================
   ANIMATION FONDU RETARDÉ (MOTS DES AUTRES SLIDERS)
=================================================== */

/* 1. État par défaut : invisible tant que la slide n'est pas active */
.riad-slide-word,
.contact-slide-word,
.essaouira-slide-word {
    opacity: 0;
    transform: translateY(18px);
    will-change: opacity, transform;
}

/* 2. Dès que la slide devient .active : attend 1 seconde puis apparaît en fondu */
.active .riad-slide-word,
.active .contact-slide-word,
.active .essaouira-slide-word {
    animation: heroFadeUp 2s cubic-bezier(0.2, 0.8, 0.2, 1) 1s forwards;
}

/* Base commune pour toutes les slides */
.hero-slide,
.riad-hero-slide,
.rooms-hero-slide,
.contact-hero-slide,
.essaouira-slide,
.room-single-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transform: scale(1.08);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

/* Déclenchement du zoom fluide dès l'activation */
.hero-slide.active,
.riad-hero-slide.active,
.rooms-hero-slide.active,
.contact-hero-slide.active,
.essaouira-slide.active,
.room-single-slide.active {
    opacity: 1;
    animation: kenBurnsZoom 6s ease-out forwards;
}

/*.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top; /* Calé tout en haut pour occuper l'espace sous le header
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
    transform: scale(1.04);
}*/

/* Le voile directement lié à chaque slide pour suivre le zoom */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 12, 38, 0.35) 0%, rgba(27, 12, 38, 0.6) 100%);
    pointer-events: none;
}

/*.hero-slide.active { 
    opacity: 1; 
    transform: scale(1); 
}*/

/* Désactivation de l'overlay externe statique */
.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    /* Le padding-top de 85px compense la remontée pour que le titre reste parfaitement équilibré */
    padding: calc(40px + 85px) 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.hero-title-2lines {
    font-size: 5.5rem;
    font-weight: 200;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 22px;
    letter-spacing: 2px;
    text-transform: lowercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-title-word {
    display: block;
    width: 100%;
    text-align: center;
}

.hero-tagline {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--color-cyan-divider);
    margin-bottom: 10px;
    font-weight: 400;
    text-align: center;
}

.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow-btn:hover {
    background: var(--color-turquoise);
    border-color: var(--color-turquoise);
}

.slider-arrow-btn img { max-height: 22px; width: auto; object-fit: contain; }
.slider-arrow-prev { left: 25px; }
.slider-arrow-next { right: 25px; }

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--color-turquoise);
    transform: scale(1.3);
}

.quote-section { padding: 60px 0 20px; }
.quote-box { max-width: 900px; margin: 0 auto; }
.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-white);
    line-height: 1.6;
    font-weight: 300;
}

.book-today-section { padding: 40px 0; }
.book-today-section h2 { font-size: 2.8rem; margin-bottom: 0.5rem; }
.book-today-section p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 1.8rem; }

/* Carousel Chambres Accueil */
.rooms-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 10px 0 20px;
    max-width: 1150px;
    margin: 0 auto;
}

.rooms-carousel-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.room-card-slide {
    flex: 0 0 calc(33.333% - 17px);
    width: calc(33.333% - 17px);
    background-color: var(--color-plum-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 480px;
}

.room-card-slide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-turquoise);
}

.room-card-slide .room-img-box {
    height: 240px;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.room-card-slide .room-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card-slide:hover .room-img-box img {
    transform: scale(1.06);
}

.room-card-slide .room-body-box {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-card-slide .room-title { font-size: 1.45rem; margin-bottom: 6px; }
.room-card-slide .room-tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.rooms-nav-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.rooms-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.rooms-nav-btn:hover {
    background: var(--color-turquoise);
    border-color: var(--color-turquoise);
}

.rooms-nav-btn img { max-height: 18px; width: auto; }

/* ==========================================================================
   SLIDERS DÉDIÉS : LE RIAD, CHAMBRES, CONTACT, ESSAOUIRA
   Glissement sous le header semi-transparent
   ========================================================================== */
.riad-hero-slider-section,
.rooms-hero-slider-section,
.contact-hero-slider-section,
.essaouira-slider-section {
    position: relative;
    margin-top: -85px !important; /* Fait remonter le slider tout en haut sous le header */
    min-height: calc(var(--slider-size) + 85px) !important; /* Compense la hauteur */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.riad-slide-word,
.contact-slide-word,
.essaouira-slide-word {
    position: relative;
    z-index: 3;
    font-size: 5.5rem;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    padding-top: 85px; /* Évite que le mot ne soit masqué ou trop proche du logo/menu */
}

/* Page Chambres en Quinconce */
.rooms-quinconce-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1100px;
    margin: 40px auto;
}

.room-quinconce-card {
    background-color: var(--color-plum-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 380px;
}

.room-quinconce-card.reverse {
    grid-template-columns: 1fr 1fr;
}

.room-quinconce-img {
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

.room-quinconce-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-quinconce-card:hover .room-quinconce-img img {
    transform: scale(1.04);
}

.room-quinconce-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.room-quinconce-title {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.room-quinconce-tagline {
    font-size: 0.95rem;
    color: var(--color-cyan-divider);
    font-style: italic;
    margin-bottom: 16px;
}

.room-quinconce-desc {
    font-size: 0.92rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

.room-quinconce-actions {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   SLIDER INDIVIDUEL ET LIGNE DE PHOTOS DANS CHAQUE FICHE CHAMBRE
   ========================================================================== */
.room-single-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 480px;
    margin: 0 auto 25px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

/*.room-single-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 4s ease-out;
    transform: scale(1.02);
}

.room-single-slide.active {
    opacity: 1;
    transform: scale(1);
}*/

.room-descriptif-photos-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto 35px;
}

.room-thumb-item {
    height: 200px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.room-thumb-item:hover img {
    transform: scale(1.08);
}

/* Page Essaouira Stack */
.essaouira-sections-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1050px;
    margin: 50px auto 0;
}

.essaouira-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.essaouira-row-img {
    height: 360px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.essaouira-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.essaouira-row-content {
    text-align: left;
}

.essaouira-sub-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-cyan-divider);
    margin-bottom: 8px;
    display: block;
}

.essaouira-row-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.essaouira-row-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* Contact Details & WhatsApp */
.contact-phone-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.phone-link i {
    font-size: 1rem;
    color: var(--color-turquoise);
}

.whatsapp-link i {
    color: #25d366 !important;
    font-size: 1.15rem;
}

.tripadvisor-center-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 35px auto 15px !important;
    clear: both !important;
}

.tripadvisor-custom-card {
    background-color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 28px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
    margin: 0 auto !important;
    transition: var(--transition);
}

.tripadvisor-custom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

.ta-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ta-rating-dots {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.ta-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #00aa6c;
    display: inline-block;
}

.ta-reviews-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111111;
    margin-top: 2px;
}

.ta-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ta-logo-img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

/* ===================================================
   DESKTOP & TABLETTE (Taille d'origine 450px)
=================================================== */
/* 1. Neutralise l'écart sous la dernière section de chaque page */
main > section:last-of-type,
body > section:last-of-type,
section:has(+ footer.official-footer-split),
.section:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 2. Footer Desktop & Tablette calé à l'identique de l'accueil */
.official-footer-split {
    width: 100%;
    margin-top: 0 !important;
    position: relative;
}

.footer-top-plum {
    background-color: var(--color-plum);
    min-height: 250px !important;
    width: 100%;
}

.footer-bottom-mint {
    background-color: var(--color-mint-footer);
    color: var(--color-dark);
    padding: 0 0 35px;
    text-align: center;
    position: relative;
}

.footer-center-logo-wrap {
    position: relative;
    z-index: 10;
    margin-top: -225px !important;
    margin-bottom: 25px !important;
    text-align: center;
    display: inline-block;
}

.footer-center-logo-img {
    max-height: 450px !important;
    width: auto !important;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

/*.footer-center-logo-wrap {
    position: relative;
    margin-top: -100px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: transparent;
}

.footer-center-logo-img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}*/

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: #111111;
    margin-bottom: 25px;
}

.footer-contact-details a {
    color: #111111;
    font-weight: 500;
}

.footer-contact-details a:hover {
    color: var(--color-plum);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--color-mint-footer);
    border: 1px solid #111111;
    color: #111111 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social-btn:hover {
    background-color: #111111;
    color: var(--color-mint-footer) !important;
    transform: translateY(-2px);
}

.footer-privacy-link {
    font-size: 0.85rem;
    color: #333333;
    display: block;
    margin-bottom: 10px;
}

.footer-privacy-link:hover {
    color: #000000;
    text-decoration: underline;
}

.footer-sub-bar {
    background-color: var(--color-plum) ;
    color: #888888;
    font-size: 0.78rem;
    padding: 14px 0;
    text-align: center;
}

/* Blog & Navigation Articles */
.blog-vertical-stack { display: flex; flex-direction: column; gap: 45px; max-width: 900px; margin: 30px auto 0; }
.blog-vertical-card { background-color: var(--color-plum-light); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; }
.blog-vertical-img { height: 380px; width: 100%; overflow: hidden; }
.blog-vertical-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-vertical-card:hover .blog-vertical-img img { transform: scale(1.04); }
.blog-vertical-body { padding: 35px 40px; }
.blog-vertical-title { font-size: 1.85rem; margin-bottom: 14px; }
.blog-vertical-snippet { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.8; margin-bottom: 24px; }

.blog-single-container { max-width: 900px; margin: 0 auto; padding: 40px 0; }
.blog-single-title { font-size: 2.8rem; margin-bottom: 25px; text-align: center; }
.blog-single-hero-img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 35px; }
.blog-single-description-img {
    width: 100%;
    max-width: 66%;
    height: auto !important;       /* Conserve les proportions réelles */
    max-height: none !important;   /* Annule toute limite de hauteur imposée */
    object-fit: contain !important;/* Garantit que l'image ne soit jamais rognée */
    display: block;
    margin: 25px auto;             /* Centre l'image avec un espace au-dessus et en dessous */
    margin-top: 60px;
    border-radius: 6px;            /* Optionnel : coins légèrement arrondis */
}
.blog-single-content { font-size: 1.05rem; line-height: 1.9; color: var(--color-text-light); }
.blog-single-content h2, .blog-single-content h3 { margin: 30px 0 15px; color: var(--color-white); }
.blog-single-content ul { margin-left: 20px; margin-bottom: 25px; }
.blog-single-content li { list-style: disc; margin-bottom: 8px; }

.blog-nav-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 45px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 30px;
}

.legal-page-container { max-width: 900px; margin: 0 auto; padding: 40px 0 60px; }
.faq-item { background-color: var(--color-plum-light); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); margin-bottom: 20px; padding: 24px 30px; }
.faq-question { font-size: 1.25rem; font-weight: 500; color: var(--color-white); margin-bottom: 12px; }
.faq-answer { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.8; }

.legal-article-block { background-color: var(--color-plum-light); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); margin-bottom: 24px; padding: 28px 32px; }
.legal-article-block h3 { font-size: 1.3rem; margin-bottom: 14px; color: var(--color-turquoise); }
.legal-article-block p, .legal-article-block li { font-size: 0.92rem; line-height: 1.8; color: var(--color-text-light); }
.legal-article-block ul { margin-left: 20px; margin-top: 10px; }
.legal-article-block li { list-style: disc; margin-bottom: 6px; }

.gallery-grid-55 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 30px; }
.gallery-item-55 { position: relative; border-radius: var(--radius-sm); overflow: hidden; height: 200px; box-shadow: var(--shadow-soft); border: 1px solid rgba(255, 255, 255, 0.08); }
.gallery-item-55 img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item-55:hover img { transform: scale(1.08); }

.amenities-container { margin: 50px auto; max-width: 1050px; }
.amenities-grid-official { display: grid; grid-template-columns: repeat(4, 1fr); gap: 45px 30px; text-align: center; }
.amenity-official-item { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.amenity-official-label { font-size: 1.1rem; font-weight: 300; color: var(--color-white); margin-bottom: 16px; }
.amenity-official-icon { font-size: 2.2rem; color: #ffffff; line-height: 1; }

.contact-hero-banner { padding: 40px 0 20px; text-align: center; }
.contact-hero-banner h1 { font-size: 3.5rem; font-weight: 300; text-transform: lowercase; }
.contact-map-wrapper { width: 100%; margin: 25px 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); }
.contact-3cols-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin: 50px 0 30px; }
.contact-col-item i { font-size: 2rem; color: var(--color-white); margin-bottom: 16px; }
.contact-col-item h3 { font-size: 1.3rem; margin-bottom: 12px; }
.contact-col-item p { font-size: 0.92rem; color: var(--color-text-muted); }
.contact-col-item a { color: var(--color-turquoise); }

.team-card-section { max-width: 800px; margin: 50px auto 30px; text-align: center; }
.team-avatar-img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; border: 3px solid var(--color-turquoise); }
.team-card-section h3 { font-size: 1.6rem; margin-bottom: 16px; }
.team-card-section p { font-style: italic; color: var(--color-text-muted); line-height: 1.8; }

/* Responsive */
@media (max-width: 1024px) {
    .room-card-slide { flex: 0 0 calc(50% - 13px); width: calc(50% - 13px); }
    .room-quinconce-card { grid-template-columns: 1fr !important; }
    .room-quinconce-img { min-height: 280px; height: 280px; }
    .essaouira-row { grid-template-columns: 1fr; gap: 30px; }
    .gallery-grid-55 { grid-template-columns: repeat(3, 1fr); }
    .grid-2-col, .grid-3-col { grid-template-columns: 1fr; }
    .amenities-grid-official { grid-template-columns: repeat(2, 1fr); }
    .contact-3cols-grid { grid-template-columns: 1fr; gap: 25px; }

    /* ===================================================
       PAGE CHAMBRES (TABLETTE & MOBILE < 1024px)
       Photos TOUJOURS au-dessus du texte
    =================================================== */

    /* 1. Force la carte en colonne unique */
    .room-quinconce-card,
    .room-quinconce-card.reverse {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    /* 2. La photo passe SYSTÉMATIQUEMENT en premier (en haut) */
    .room-quinconce-card .room-quinconce-img,
    .room-quinconce-card.reverse .room-quinconce-img {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 3. Le texte passe SYSTÉMATIQUEMENT en dessous */
    .room-quinconce-card .room-quinconce-body,
    .room-quinconce-card.reverse .room-quinconce-body {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px 30px 15px!important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    /* 4. Réglage propre de l'image sur écran mobile/tablette */
    .room-quinconce-img img {
        width: 100% !important;
        height: 260px !important;
        object-fit: cover !important;
        display: block !important;
        border-radius: 8px !important;
    }

    /* 5. Typographie et espacements du descriptif */
    .room-quinconce-title {
        font-size: 1.5rem !important;
        margin-top: 0px !important;
        margin-bottom: 8px !important;
    }

    .room-quinconce-tagline {
        font-size: 0.95rem !important;
        font-style: italic;
        margin-bottom: 14px !important;
        line-height: 1.5 !important;
    }

    .room-quinconce-desc {
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
        margin-bottom: 25px !important;
    }

    /* 6. Boutons Découvrir / Réserver bien dimensionnés et centrés */
    .room-quinconce-actions {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 25px !important;
    }

    .room-quinconce-actions .btn {
        flex: 1 1 0 !important;
        max-width: 170px !important;
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
        text-align: center !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    .hero-title-2lines { font-size: 3.8rem; }
    .riad-slide-word, .contact-slide-word, .essaouira-slide-word { font-size: 3.6rem; }
    .room-card-slide { flex: 0 0 100%; width: 100%; }
    .gallery-grid-55 { grid-template-columns: repeat(2, 1fr); }
    .slider-arrow-btn { display: none; }
    .amenities-grid-official { grid-template-columns: repeat(2, 1fr); gap: 30px 15px; }
    .mobile-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--color-plum-dark);
        box-shadow: var(--shadow-hover);
        transition: left 0.35s ease;
        padding: 30px;
        overflow-y: auto;
    }
    .main-nav.active { left: 0; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border-top: none; opacity: 1; visibility: visible; transform: none; padding-left: 15px; display: none; }
    .dropdown.active .dropdown-menu { display: flex; }
}

@media (max-width: 480px) {
    .gallery-grid-55 { grid-template-columns: 1fr; }
    .blog-vertical-img { height: 240px; }
    .blog-vertical-body { padding: 25px 20px; }
    .room-quinconce-body { padding: 25px 20px; }
    .room-descriptif-photos-row { grid-template-columns: repeat(2, 1fr); }
}


/* Slider Hero des fiches chambres (Full Width au-dessus du nom) */
.room-single-hero-slider-section {
    position: relative;
    min-height: var(--slider-size);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    width: 100%;
}

.room-single-hero-slider-section .room-single-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 6s ease-out;
    transform: scale(1.04);
}

.room-single-hero-slider-section .room-single-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* --- GESTION RESPONSIVE DU MENU --- */

/* Par défaut (Mobile & Tablette < 992px) */
@media (max-width: 991px) {
    /* Cache complètement la barre de menu horizontal du header sur mobile */
    .main-nav {
        display: none !important; 
    }
    
    .mobile-toggle {
        display: none !important;
    }

    /* Affiche bien le bouton hamburger */
    .sidebar-menu-btn {
        display: inline-flex !important;
    }
}

/* Sur grand écran (Desktop >= 992px) */
@media (min-width: 992px) {
    .main-nav {
        display: block !important;
    }
    /* Liens du panneau latéral masqués sur desktop si souhaité */
    .sidebar-main-nav {
        display: none;
    }
}

/* --- Style des liens dans le volet latéral --- */
.sidebar-main-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.sidebar-main-nav ul li a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-submenu {
    padding-left: 20px !important;
    display: none; /* Masqué par défaut, s'ouvre au clic */
}

.sidebar-submenu li a {
    font-size: 0.95rem !important;
    color: #2cd5c4 !important; /* Couleur turquoise */
}

/* ===================================================
   MENU MOBILE : DÉROULANT CHAMBRES & CHEVRON
=================================================== */

/* 1. Aligne le mot "Chambres" et le chevron côte à côte à gauche */
.sidebar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2. Le mot "Chambres" : blanc pur sans survol coloré */
.sidebar-dropdown-header .sidebar-nav-link {
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
}

/* 3. Bouton flèche : blanc pur fixe, sans aucun hover */
.sidebar-dropdown-toggle {
    background: transparent;
    border: none;
    color: #ffffff !important;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    outline: none;
}

/* Rotation du chevron à l'ouverture */
.sidebar-dropdown-toggle i {
    font-size: 0.8rem;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.open .sidebar-dropdown-toggle i {
    transform: rotate(180deg);
}

/* 4. Déploiement du sous-menu */
.sidebar-submenu {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin: 8px 0;
}

.sidebar-dropdown.open .sidebar-submenu {
    display: block;
}

.sidebar-submenu li {
    list-style: none;
}

/* 5. Les 5 sous-chambres en turquoise fixe, sans animation ni effet hover */
.sidebar-submenu li a {
    display: block;
    color: var(--color-turquoise, #2cd5c4) !important;
    font-size: 0.9rem;
    padding: 6px 0;
    text-decoration: none;
    cursor: pointer;
}

/* --- PAGE LE RIAD : SECTIONS LOUNGE, TERRASSE & ESPACES COMMUNS --- */
.riad-split-section {
    padding: 40px 0 60px 0;
    overflow: hidden;
}

.riad-overlap-row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 480px;
    margin-bottom: 70px;
    width: 100%;
}

/* 1. L'IMAGE À GAUCHE (Prend 60% et colle au bord gauche de l'écran) */
.riad-overlap-row:not(.reverse) .riad-overlap-image {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 2. L'IMAGE À DROITE (Pour la Terrasse / reverse) */
.riad-overlap-row.reverse .riad-overlap-image {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* 3. LE CONTENEUR DU BLOC TEXTE */
.riad-overlap-content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Positionne la boîte à droite par défaut */
.riad-overlap-row:not(.reverse) .riad-overlap-content-wrap {
    justify-content: flex-end;
}

/* Positionne la boîte à gauche pour la Terrasse */
.riad-overlap-row.reverse .riad-overlap-content-wrap {
    justify-content: flex-start;
}

/* 4. LA BOÎTE PRUNE À CHEVAL SUR L'IMAGE */
.riad-overlap-card {
    background-color: #2b1137; /* Couleur prune foncée exacte de la vidéo */
    color: #ffffff;
    width: 48%; /* Crée le chevauchement avec l'image qui fait 60% */
    padding: 50px 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.riad-overlap-kicker {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-weight: 600;
}

.riad-overlap-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 18px 0;
}

.riad-overlap-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* RESPONSIVE MOBILE & TABLETTE */
@media (max-width: 900px) {
    .riad-overlap-row,
    .riad-overlap-row.reverse {
        flex-direction: column;
        min-height: auto;
        margin-bottom: 40px;
    }

    .riad-overlap-row:not(.reverse) .riad-overlap-image,
    .riad-overlap-row.reverse .riad-overlap-image {
        position: relative;
        width: 100%;
        height: 280px;
    }

    .riad-overlap-card {
        width: 100%;
        margin-top: -30px; /* Petit chevauchement vertical sur mobile */
        padding: 30px 20px;
    }
}

/* ==========================================================================
   SHOWCASE CHAMBRES (MANDALA + GIFS ANIMÉS) - CADRE ÉQUILIBRÉ
   ========================================================================== */

/* On cible la section avec une priorité maximale pour annuler la règle du divider */
section.rooms-showcase-section,
.rooms-showcase-section {
    background-color: #df1651 !important;
    background-image: url('../images/accueil/room-background.jpg') !important;
    background-size: cover !important;
    background-position: left center !important;
    background-repeat: no-repeat !important;
    
    /* 1. On augmente considérablement le padding-top (80px) pour compenser 
          l'ombre haute et faire descendre le titre dans la zone rose */
    padding-top: 80px !important;
    
    /* 2. On ajuste le padding-bottom à 55px sous les dots */
    padding-bottom: 55px !important;
    
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* 3. On donne un padding supérieur propre au titre pour l'éloigner du bord haut */
.rooms-showcase-section .rooms-showcase-heading,
.rooms-showcase-section .section-title,
.rooms-showcase-section h2 {
    font-size: 2.8rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 auto 35px auto !important;
    padding-top: 15px !important; /* Force le titre à respirer vers le bas */
    line-height: 1.2;
    text-align: center;
}

/* 2. Conteneur slider centré sans débordement */
.rooms-showcase-slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto !important;
    min-height: auto;
}

.room-showcase-slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    animation: fadeInRoom 0.5s ease-in-out forwards;
}

.room-showcase-slide.active {
    display: flex;
}

@keyframes fadeInRoom {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Colonne de gauche (Texte) */
.room-showcase-text {
    flex: 1.1;
    padding-left: 20px;
}

.room-showcase-text h3 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.2;
}

.room-showcase-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 22px;
    max-width: 480px;
}

.room-readmore-btn {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
}

.room-readmore-btn:hover {
    color: #2cd5c4;
    border-bottom-color: #2cd5c4;
}

/* Colonne de droite (Affichage du GIF) */
.room-showcase-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-showcase-visual img {
    max-width: 100%;
    width: 680px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
    display: block;
}

/* 4. Les 5 points blancs */
.rooms-showcase-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 35px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative;
    z-index: 5;
}

.r-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.r-dot.active,
.r-dot:hover {
    background-color: #ffffff;
    transform: scale(1.25);
}

/* Mobile (< 850px) */
@media (max-width: 850px) {
    .rooms-showcase-section {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    .rooms-showcase-section .rooms-showcase-heading,
    .rooms-showcase-section .section-title,
    .rooms-showcase-section h2 {
        font-size: 2rem;
        margin-bottom: 20px !important;
    }

    .room-showcase-slide {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
    }
    .room-showcase-text {
        padding-left: 0;
    }
    .room-showcase-text h3 {
        font-size: 1.8rem;
    }
    .room-showcase-text p {
        margin: 0 auto 16px auto;
        font-size: 1rem;
    }
    .room-showcase-visual img {
        width: 300px;
    }
    .rooms-showcase-dots {
        margin-top: 20px !important;
    }
}

/* ==========================================================================
   FORMULAIRE DE CONTACT
   ========================================================================== */

.contact-form-section {
    padding: 20px 20px;
    background-color: var(--color-plum);
}

.max-w-700 {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 10px;
    text-align: center;
}

.contact-form-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    text-align: center;
}

.contact-custom-form {
    background: #2b1137;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    background: #fdfdfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2cd5c4;
    box-shadow: 0 0 0 3px rgba(44, 213, 196, 0.15);
}

.form-status {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 15px;
    text-align: center;
}

.form-status.success {
    background: #e8f8f5;
    color: #0e6251;
    border: 1px solid #a3e4d7;
}

.form-status.error {
    background: #fdebd0;
    color: #7e5109;
    border: 1px solid #fad7a0;
}

@media (max-width: 650px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contact-custom-form {
        padding: 25px 20px;
    }
}

/* Espacement et centrage du widget Instagram 
.insta-feed-container {
    margin-top: 55px;       /* Éloigne le widget du badge TripAdvisor 
    margin-bottom: 125px !important;    /* Espace avant le bas de page 
    max-width: 920px;       /* Empêche la grille de devenir trop géante sur grand écran 
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    box-sizing: border-box;
}*/

/* ===================================================
   HARMONISATION INSTAGRAM (DESKTOP)
=================================================== */
.insta-feed-container {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
    margin-bottom: 40px;      /* Marge normale et propre, plus besoin d'un chiffre géant */
    padding: 0 20px;
    box-sizing: border-box;
}

/* Optionnel : adoucir les angles des photos injectées par Behold */
.insta-feed-container figure img {
    border-radius: 6px;
}

/* ==========================================================================
   TITRE DU FLUX INSTAGRAM HARMONISÉ
   ========================================================================== */

.insta-feed-header {
    text-align: center;
    margin-bottom: 15px !important;
}

.insta-feed-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light, #f5edf5);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm, 4px);
    transition: var(--transition);
}

.insta-feed-link i {
    font-size: 1.3rem;
    color: var(--color-turquoise, #00bcd4);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Effet au survol : turquoise éclatant et léger déplacement */
.insta-feed-link:hover {
    color: var(--color-turquoise, #00bcd4);
}

.insta-feed-link:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--color-cyan-divider, #2cd5c4);
}

/* ===================================================
   VERROUILLAGE DU HEADER (ÉVITE LA REMONTÉE AU SCROLL)
=================================================== */
.main-header {
    position: sticky !important; /* ou fixed selon votre choix */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

/* ===================================================
   OPTIMISATION TABLETTE BLOG & ARTICLES (768px à 1024px)
=================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    /* 1. Décolle le texte et l'image des bords sur tablette (30px de marge) */
    .section {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .container,
    .blog-single-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* 2. Équilibre les titres sur tablette */
    .blog-single-title,
    h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }

    .blog-single-content h2,
    h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }

    /* 3. Aération du texte */
    .blog-single-content p,
    .lead-text {
        font-size: 1.05rem !important;
        line-height: 1.8 !important;
    }

    /* ===================================================
    TITRE DU SLIDER SUR TABLETTE (768px à 1024px)
    Même aspect et prestance que sur Desktop
    =================================================== */  
    /* Conteneur global du titre au centre du slider */
    .hero-content {
        max-width: 750px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }

    /* 1. Sous-titre ("BOUTIQUE HÔTEL") */
    .hero-subtitle {
        font-size: 1.15rem !important;
        letter-spacing: 6px !important;
        text-transform: uppercase !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* 2. Titre principal ("riad émotion") */
    .hero-title-2lines {
        font-size: 4.2rem !important;    /* Grande taille équilibrée type desktop */
        line-height: 1.05 !important;
        font-weight: 300 !important;
        margin: 10px 0 16px 0 !important;
        letter-spacing: 2px !important;
    }

    .hero-title-2lines .hero-title-word {
        display: block !important;       /* Maintient chaque mot sur sa propre ligne */
    }

    /* 3. Slogan ("VOTRE MAISON LOIN DE CHEZ VOUS") */
    .hero-tagline {
        font-size: 0.95rem !important;
        letter-spacing: 4px !important;
        text-transform: uppercase !important;
        margin-top: 14px !important;
    }

    /* ===================================================
       CENTRAGE DU BOUTON RÉSERVATION SUR TABLETTE
    =================================================== */

    /* 1. Si le widget utilise Flexbox (passage à la ligne et centrage) */
    .vb-booking-widget,
    .booking-widget-form,
    .booking-form {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* 2. Force le conteneur du bouton à prendre toute la largeur pour se centrer */
    .vb-submit-container,
    .booking-submit-wrap,
    .vb-field:has(.vb-submit-btn),
    .vb-field:has(button[type="submit"]),
    .vb-field:has(input[type="submit"]) {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-top: 18px !important;
        text-align: center !important;
    }

    /* 3. Ajuste la taille du bouton pour qu'il reste harmonieux au milieu */
    .vb-submit-btn,
    .booking-btn,
    .vb-submit-container .btn,
    .vb-booking-widget button[type="submit"] {
        margin: 0 auto !important;
        min-width: 220px !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* ===================================================
       GRILLE DE 3 PHOTOS "LE RIAD" SUR TABLETTE
    =================================================== */

    /* 1. Force l'alignement en 3 colonnes égales */
    .grid-3-col {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        width: 100% !important;
        margin-top: 25px !important;
        margin-bottom: 35px !important;
    }

    /* 2. Donne un gabarit identique et net à chaque photo */
    .grid-3-col > div {
        width: 100% !important;
        height: 220px !important;
        overflow: hidden !important;
        border-radius: 8px !important;
    }

    .grid-3-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* ===================================================
       SERVICES CHAMBRES (TABLETTE : 4 COLONNES x 2 LIGNES)
    =================================================== */

    /* 1. Grille sur 4 colonnes égales */
    .amenities-grid-official,
    .room-amenities-grid,
    .amenities-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important; /* 4 colonnes pile */
        gap: 30px 15px !important;                       /* 30px entre les 2 lignes, 15px latéral */
        max-width: 860px !important;
        margin: 35px auto !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* 2. Suppression de tout voile/fond, texte au-dessus et icône dessous */
    .amenities-grid-official > div,
    .room-amenity-item,
    .amenity-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0 !important;
        background: transparent !important; /* Supprime le voile */
        border: none !important;            /* Supprime la bordure */
        box-shadow: none !important;
    }

    /* 3. Libellé du service (en haut) */
    .amenities-grid-official span,
    .amenities-grid-official p,
    .amenity-item span {
        font-size: 0.85rem !important;
        letter-spacing: 0.5px !important;
        margin: 0 0 10px 0 !important;      /* Espace sous le texte avant l'icône */
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }

    /* 4. Icône bien centrée (en bas) */
    .amenities-grid-official img,
    .amenities-grid-official svg,
    .amenities-grid-official i {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.8rem !important;
        margin: 0 !important;
        display: block !important;
        opacity: 0.95 !important;
    }
}

/* ===================================================
   OPTIMISATION MOBILE (> 769px)
=================================================== */
/* 1. Sur Desktop et Tablette : on cache les doublons pour garder 3 photos fixes */
@media (min-width: 769px) {
    .grid-3-col .duplicate-mobile {
        display: none !important;
    }
}

/* ===================================================
   OPTIMISATION MOBILE BLOG & ARTICLES (< 768px)
=================================================== */
@media (max-width: 767px) {
    /* 1. Décolle tout le contenu des bords de l'écran (20px de marge de sécurité) */
    .section {
        padding: 40px 20px !important;
    }

    .container,
    .blog-single-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box;
    }

    /* 2. Réduit le grand titre principal (H1) */
    .blog-single-title,
    h1 {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        margin-bottom: 20px !important;
        word-break: break-word;
    }

    /* 3. Réduit les sous-titres d'articles (H2, H3) */
    .blog-single-content h2,
    .blog-single-content h3,
    h2 {
        font-size: 1.3rem !important;
        line-height: 1.35 !important;
        margin-top: 28px !important;
        margin-bottom: 12px !important;
    }

    /* 4. Aère et équilibre les paragraphes de texte */
    .blog-single-content p,
    p {
        font-size: 0.98rem !important;
        line-height: 1.7 !important;
        margin-bottom: 18px !important;
    }

    /* 5. Garde uniquement les images du contenu de l'article bien cadrées (sans toucher au logo) */
    .blog-single-content img,
    .blog-single-description-img,
    .blog-description-img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 6. Force l'alignement strict en ligne du conteneur réel */
    .blog-nav-pagination,
    .blog-nav-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* Interdit catégoriquement le retour à la ligne */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        margin-top: 30px !important;
        box-sizing: border-box !important;
    }

    /* 7. Écrase les styles globaux des boutons (.btn) pour les faire tenir à 3 */
    .blog-nav-pagination a,
    .blog-nav-pagination .btn,
    .blog-nav-buttons a,
    .blog-nav-buttons .btn {
        flex: 1 1 0 !important;          /* 1/3 de la largeur chacun */
        width: auto !important;
        max-width: 33.33% !important;
        min-width: 0 !important;
        margin: 0 !important;            /* Supprime les marges parasites qui cassent la ligne */
        padding: 10px 2px !important;    /* Padding horizontal très fin pour les petits écrans */
        font-size: 0.72rem !important;   /* Police compacte */
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;  /* Pas de texte coupé en deux lignes */
        overflow: hidden !important;
        text-overflow: ellipsis !important; /* Ajoute "..." si un mot dépasse au lieu d'empiler */
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* Masque le mot 'Article' sur écran mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* ===================================================
       WIDGET RÉSERVATION VERTICAL BOOKING MOBILE (< 768px)
    =================================================== */

    /* 1. Force le formulaire à empiler tous les éléments en colonne */
    .vb-booking-widget {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
    }

    /* 2. Tous les champs (Arrivée, Départ, Adultes, Chambres) prennent 100% de la largeur */
    .vb-booking-widget .vb-field {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Donne la même hauteur et le même style aux inputs et aux menus déroulants (select) */
    .vb-booking-widget .vb-field input,
    .vb-booking-widget .vb-field select {
        width: 100% !important;
        height: 48px !important;
        box-sizing: border-box !important;
        display: block !important;
        font-size: 0.95rem !important;
    }

    /* 4. Le conteneur du bouton passe en dessous et s'étale sur 100% */
    .vb-submit-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 8px !important;
        display: block !important;
    }

    /* 5. Le bouton Rechercher / Search : pleine largeur, même hauteur et centré */
    .vb-submit-btn {
        width: 100% !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        border-radius: var(--radius-sm, 4px) !important;
        box-sizing: border-box !important;
    }

    /* ===================================================
       ESPACEMENT ET MARGES WIDGET INSTAGRAM (< 768px)
    =================================================== */

    .insta-feed-header {
        margin-bottom: 25px !important;
        padding: 0 15px !important;
        text-align: center !important;
    }

    /* Décolle directement les publications des bords de l'écran */
    behold-widget {
        display: block !important;
        width: 100% !important;
        padding: 0 20px !important; /* 20px de marge à gauche et à droite */
        box-sizing: border-box !important;
    }

    /* ===================================================
        ADAPTATION MOBILE & TABLETTE (< 768px)
    =================================================== */
    /* 130px (remontée) + 20px (marge identique au bas) = 150px */
    .footer-top-plum {
        min-height: 150px !important;
    }

    .footer-center-logo-wrap {
        margin-top: -130px !important;   /* Votre valeur d'origine */
        margin-bottom: 20px !important;  /* Votre marge inférieure d'origine */
    }

    .footer-center-logo-img {
        height: 240px !important;        /* Votre taille d'origine conservée */
        max-height: 240px !important;
        width: auto !important;
        max-width: 85% !important;
    }

    /* ===================================================
       COORDONNÉES DU FOOTER SUR MOBILE (< 768px)
    =================================================== */
    .footer-contact-details {
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Réduit la police globale des coordonnées sur mobile */
    .footer-contact-details p {
        font-size: 0.8rem !important; /* Taille fine pour tout faire tenir */
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }

    /* Cible spécifiquement la première ligne (Téléphone + WhatsApp) */
    .footer-contact-details p:first-child {
        white-space: nowrap !important; /* Interdit le retour à la ligne */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;            /* Espacement propre entre les éléments */
        font-size: 0.77rem !important;   /* Ajustement parfait pour écrans 375px/390px/400px */
    }

    /* Ajuste la taille des icônes téléphone et whatsapp */
    .footer-contact-details p:first-child i {
        font-size: 0.82rem !important;
    }

    .footer-contact-details p a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* ===================================================
       ESPACEMENT ET MARGES WIDGET INSTAGRAM (< 768px)
    =================================================== */
    .insta-feed-container {
        /* Haut: 50px | Droite: 0 | Bas: 80px (dégage le haut du footer et du logo) | Gauche: 0 */
        padding: 0px 0 0px 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ===================================================
       RÉDUCTION TAILLE POLICE DESCRIPTION CHAMBRES (< 768px)
    =================================================== */

    /* Sous-titre cyan/bleu en italique */
    p.room-quinconce-tagline {
        font-size: 0.85rem !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
    }

    /* Paragraphe descriptif principal */
    p.room-quinconce-desc {
        font-size: 0.82rem !important;
        line-height: 1.55 !important;
        margin-bottom: 20px !important;
    }

   /* ===================================================
       CARROUSEL HORIZONTAL : MARGES LATÉRALES RÉDUITES
    =================================================== */
    .grid-3-col {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;            /* Écart entre deux photos */
        overflow-x: hidden !important;
        padding: 0 !important;
        
        /* Réduit les marges gauche/droite à 10px au lieu de 35px */
        margin-left: -25px !important;
        margin-right: -25px !important;
        width: calc(100% + 50px) !important;
    }

    .grid-3-col::-webkit-scrollbar {
        display: none;
    }

    /* La photo occupe toute la nouvelle largeur élargie */
    .grid-3-col > div {
        flex: 0 0 calc(100% - 20px) !important; /* Laisse 10px de marge de sécurité */
        width: calc(100% - 20px) !important;
        min-width: calc(100% - 20px) !important;
        margin: 0 10px !important;              /* 10px nets à gauche et à droite */
        animation: scrollAutoLeft 34s linear infinite !important;
    }

    .grid-3-col > div img {
        width: 100% !important;
        height: 250px !important;              /* Légèrement plus haut pour un rendu plus généreux */
        object-fit: cover !important;
        border-radius: 8px !important;
        display: block !important;
    }

    /* Pause si le visiteur pose le doigt dessus */
    .grid-3-col:active > div {
        animation-play-state: paused !important;
    }
    
}

/* ===================================================
   ANIMATION CARROUSEL MOBILE (AVEC ACCOLADE BIEN FERMÉE)
=================================================== */
@keyframes scrollAutoLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300% - 60px));
    }
} /* <--- L'accolade manquante était ici ! */

/* ===================================================
   CORRECTIF SPÉCIFIQUE PAGE LE RIAD (MOBILE & TABLETTE)
=================================================== */

/* 1. Corrige la syntaxe invalide du slider */
.riad-hero-slider-section,
.rooms-hero-slider-section,
.contact-hero-slider-section,
.essaouira-slider-section {
    position: relative !important; /* Répare "position: top" qui était invalide */
}

/* 2. Élimine les 40px de débordement créés par les sections Salon/Terrasse */
.riad-split-section {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.riad-overlap-content-wrap {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 3. Verrouillage strict anti-débordement pour mobile (< 768px) */
@media (max-width: 767px) {
    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative !important;
    }

    /* Empêche les images absolues du Salon/Terrasse de dépasser de l'écran */
    .riad-overlap-row,
    .riad-overlap-row.reverse {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .riad-overlap-row .riad-overlap-image,
    .riad-overlap-row.reverse .riad-overlap-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    .riad-overlap-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ===================================================
       FORMULAIRE DE CONTACT HARMONISÉ (MOBILE < 768px)
    =================================================== */

    /* 1. Réduit l'espace vide autour de la section contact */
    .contact-form-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 2. Permet au conteneur de s'étendre sur tout l'écran */
    .contact-form-section .max-w-700,
    .contact-form-section .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 3. Élargit la carte et optimise son espace intérieur */
    .contact-custom-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 24px 16px !important; /* Maximise l'espace pour les champs de saisie */
        box-sizing: border-box !important;
    }

    /* 2. Rapprochement vertical des champs */
    .contact-custom-form .form-group {
        margin-bottom: 14px !important;
        width: 100% !important;
    }

    /* 3. Labels plus fins et bien calés */
    .contact-custom-form .form-group label {
        font-size: 0.82rem !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 6px !important;
        color: var(--color-text-light) !important;
    }

    /* 4. Champs de saisie : hauteur tactile confortable et fond blanc cassé adouci */
    .contact-custom-form input,
    .contact-custom-form select {
        height: 46px !important;
        padding: 10px 14px !important;
        font-size: 0.88rem !important;
        border-radius: 4px !important;
        background: #ffffff !important;
        color: #222222 !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    /* 5. Zone message (textarea) */
    .contact-custom-form textarea {
        min-height: 100px !important;
        max-height: 140px !important;
        padding: 12px 14px !important;
        font-size: 0.88rem !important;
        border-radius: 4px !important;
    }

    /* 6. Bouton d'envoi : centré, pleine largeur et aligné avec le style du site */
    .contact-custom-form button[type="submit"],
    .contact-custom-form .btn {
        width: 100% !important;
        height: 48px !important;
        margin-top: 8px !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        letter-spacing: 1px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 4px !important;
    }

    /* ===================================================
       HARMONISATION DU TITRE SLIDER HERO (MOBILE < 768px)
    =================================================== */

    /* 1. Réduction et espacement fin de "BOUTIQUE HÔTEL" */
    .hero-subtitle {
        font-size: 0.83rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 6px !important;
        opacity: 0.9;
    }

    /* 2. Agrandissement majeur de "riad émotion" sur 2 lignes */
    .hero-title-2lines {
        font-size: 4.4rem !important;   /* Augmenté pour lui donner toute la prestance */
        line-height: 0.95 !important;   /* Rapproche les deux mots verticalement */
        font-weight: 200 !important;
        margin: 8px 0 14px 0 !important;
        letter-spacing: 1px !important;
    }

    .hero-title-2lines .hero-title-word {
        display: block !important;
    }

    /* 3. Réduction discrète du slogan ("VOTRE MAISON LOIN DE CHEZ VOUS") */
    .hero-tagline {
        font-size: 0.83rem !important;  /* Plus fin et subtil */
        letter-spacing: 2.5px !important;
        line-height: 1.4 !important;
        margin-top: 4px !important;
        max-width: 290px !important;     /* Évite qu'il ne s'étale trop près des bords */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ===================================================
    CORRECTION BOUTON GOOGLE MAPS SUR MOBILE (< 768px)
    =================================================== */
    .contact-map-wrapper + div {
        padding: 0 15px !important;
    }

    .contact-map-wrapper + div a.btn,
    .contact-map-wrapper + div a.text-turquoise {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        max-width: 100% !important;
        width: auto !important;
        padding: 10px 16px !important;
        font-size: 0.76rem !important;        /* Taille de police réduite pour mobile */
        letter-spacing: 0.8px !important;      /* Réduction de l'espacement des lettres */
        white-space: normal !important;        /* Autorise le retour à la ligne si besoin */
        text-align: center !important;
        box-sizing: border-box !important;
        line-height: 1.3 !important;
    }
}