@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);
}

.riad-header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.riad-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    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;
    width: 100%;
    max-width: 1050px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.riad-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-light);
    text-decoration: none;
    font-weight: 400;
}

.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);
}

.section-terracotta {
    background-color: var(--bg-terracotta);
    color: var(--text-on-terracotta);
    padding: 80px 40px;
    border-radius: 8px;
}

.section-terracotta p,
.section-terracotta span {
    color: var(--text-on-terracotta);
}

.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;
}

/* --- GESTION DU LOGO ET DU RESPONSIVE --- */

/* Style du grand logo flottant (en haut à gauche) */
.logo-riad-site {
    position: absolute; 
    top: 24px; 
    left: 24px; 
    height: 150px; 
    z-index: 1000;
}

/* Disparition du logo lorsque l'écran se réduit (fenêtre Mac rétrécie ou tablette) */
@media (max-width: 1150px) {
    .logo-riad-site {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .riad-header {
        top: 15px;
        padding: 0 10px;
    }

    .riad-nav-container {
        padding: 8px 16px;
        max-width: 100%;
    }

    .riad-menu {
        display: none; 
    }

    main {
        padding: 120px 15px 40px !important;
        margin: 20px auto !important;
    }
}