@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-sable: #faedd9;                 
    --bg-terracotta: #7A3215;            
    --text-terracotta: #7A3215;          
    --text-on-terracotta: #F7F4EF;     
    --emerald-light: #1E6B51;            
    --emerald-glow: #248261;             
    --border-riad: rgba(42, 38, 34, 0.12);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-sable);
    color: var(--text-terracotta);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin: 0; padding: 0;
    -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3, .serif { color: var(--emerald-light); }

/* =========================================
   LE LOGO (FLOTTANT À GAUCHE SUR PC)
   ========================================= */
.logo-riad-site {
    position: fixed; 
    top: 24px;
    left: 30px;
    z-index: 1000;
    text-decoration: none;
}

.logo-riad-site img {
    height: 120px !important; 
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* =========================================
   LA NAVIGATION (PILULE CENTRÉE SUR PC)
   ========================================= */
.riad-header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none; 
}

.riad-nav-container {
    pointer-events: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px; 
    background: rgba(247, 244, 239, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-riad);
    padding: 12px 28px;
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.riad-menu { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }

.riad-menu a {
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-terracotta); text-decoration: none; opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.riad-menu a:hover, .riad-menu a.active { opacity: 1; color: var(--emerald-glow); font-weight: 400; }

.riad-cta {
    font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: #FFFFFF; background-color: var(--emerald-light);
    padding: 10px 22px; border-radius: 9999px; text-decoration: none;
    display: inline-block; transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 107, 81, 0.25);
}

.riad-cta:hover { background-color: var(--emerald-glow); transform: translateY(-1px); }

/* =========================================
   STYLES GÉNERAUX
   ========================================= */
.section-terracotta { background-color: var(--bg-terracotta); padding: 80px 40px; border-radius: 8px; }
.section-terracotta p, .section-terracotta span, .section-terracotta h1, .section-terracotta h2, .section-terracotta h3, .section-terracotta .serif { color: var(--text-on-terracotta); }
.img-zoom { overflow: hidden; background-color: #EAE3D9; }
.img-zoom img { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); width: 100%; height: 100%; object-fit: cover; }
.img-zoom:hover img { transform: scale(1.04); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
main { animation: fadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.link-line { position: relative; text-decoration: none; color: var(--text-terracotta); }
.link-line::after { content: ''; position: absolute; width: 100%; height: 1px; bottom: -3px; left: 0; background-color: var(--emerald-light); opacity: 0.6; transition: opacity 0.3s ease; }
.link-line:hover::after { opacity: 1; }

/* =========================================
   CORRECTIONS MOBILE ET PETITS ÉCRANS (TÉLÉPHONE / MACBOOK)
   ========================================= */
@media (max-width: 1250px) {
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }
    * { box-sizing: border-box !important; }

    .logo-riad-site {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: flex !important;
        justify-content: center !important;
        margin: 40px auto 15px auto !important; /* Les 40px descendent le logo */
        width: 100% !important;
    }
    
    .logo-riad-site img {
        height: 70px !important; 
        width: auto !important;
        object-fit: contain !important;
    }

    .riad-header { 
        position: relative !important; 
        top: 0 !important; 
        padding: 0 10px !important; 
        pointer-events: auto !important;
    }
    
    .riad-nav-container {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 15px !important;
        padding: 15px !important;
        border-radius: 25px !important;
        width: 100% !important;
    }

    .riad-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important; 
        justify-content: center !important;
        gap: 10px 15px !important; 
    }
    
    .riad-menu a { font-size: 0.75rem !important; }

    main { 
        width: 95% !important; 
        padding: 40px 15px 40px !important; 
        margin: 0 auto !important; 
        max-width: none !important; 
    }
    
    main > div[style*="grid"], .res-container, .grille-chambres {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
}