/* ======================== */
/*   Fonts & Variables      */
/* ======================== */
/* Import removed: fonts are now self-hosted via fonts.css */

:root {
    --bg: #f9f7f2;
    --bg-light: #fffdfa;
    --text: #181818;
    /*
     * Accent color adjusted for better contrast against the light background.
     * The previous value (#bfa278) produced a contrast ratio of ~2.27:1.  To
     * meet WCAG 2.1 level AA requirements (minimum 4.5:1), we choose a much
     * darker shade (#7a5c32).  Feel free to adjust this variable globally to
     * update all link and accent styles at once.
     */
    --accent: #7a5c32;
    --divider: #191919;
    --shadow: 0 4px 20px 0 rgba(32, 32, 32, 0.07);
    --radius: 17px;
    --header-height: 94px;
    --transition: 0.5s cubic-bezier(.6, .21, .36, 1);
    --side-padding: 30px;

}

/* ======================== */
/*   Theme Toggle Styles    */
/* ======================== */

/*
 * Define explicit palettes for dark and light themes.  These variables
 * mirror the values used for the OS-level dark mode in the original
 * stylesheet.  Assigning them to `.theme-dark`/`.theme-light` classes
 * lets us override `prefers-color-scheme` when the user chooses a
 * theme via the toggle button.  See assets/js/theme-toggle.js for
 * behaviour.
 */
:root.theme-dark {
    --bg: #111111;
    --bg-light: #1a1a1a;
    --text: #f5f5f5;
    --accent: #bfa278;
}

:root.theme-light {
    /* Reapply the default light palette to override any dark-mode
       variables set via `prefers-color-scheme`.  Without these
       assignments, selecting the light theme would fail to update
       variables when the OS preference is dark. */
    --bg: #f9f7f2;
    --bg-light: #fffdfa;
    --text: #181818;
    --accent: #7a5c32;
}

/*
 * Theme toggle button styling.  The button is intentionally kept
 * minimalistic to blend in with existing header controls.  It uses
 * CSS variables for colour so that it adapts automatically to the
 * current theme.  Hovering the button colours the icon with the
 * accent colour to provide visual feedback.
 */
.theme-toggle {
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle:hover .theme-toggle-icon,
.theme-toggle:focus .theme-toggle-icon {
    color: var(--accent);
}

.theme-toggle-icon {
    pointer-events: none;
    font-size: 1.1rem;
}

/*
 * Palette sombre pour les utilisateurs qui préfèrent un thème foncé.
 * Cette variante s’active automatiquement lorsque le navigateur indique
 * `prefers-color-scheme: dark`.  Elle utilise un fond quasi noir et un texte clair,
 * tandis que l’accent est légèrement doré.  Ces couleurs renforcent l’atmosphère
 * haut de gamme du site tout en assurant un contraste suffisant.  Vous pouvez
 * ajuster ces variables pour adapter l’ambiance à votre marque.
 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-light: #1a1a1a;
        --text: #f5f5f5;
        /* accent doré pour le thème sombre */
        --accent: #bfa278;
    }
}

@media (max-width: 600px) {
    :root {
        --side-padding: 12px;
    }
}

/* ======================== */
/*   Reset & Base           */
/* ======================== */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 19px;
    min-height: 100vh;
    box-sizing: border-box;
    scroll-behavior: smooth;
    transition: background var(--transition), color var(--transition);
}

/* ======================== */
/*   Overlay Fade-in        */
/* ======================== */
#transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.85s cubic-bezier(.5, .14, .24, .99);
}

body.loaded #transition-overlay {
    opacity: 0;
}

/* ======================== */
/*   Animations             */
/* ======================== */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 * The keyframe animation for fading content upward was defined twice in
 * the original stylesheet with slightly different translateY values.  To
 * avoid duplicate declarations and potential confusion, we keep a single
 * definition below (see the CTA section) and remove this earlier copy.
 * The unified version translates elements by 20px for a gentle effect.
 */
/* Duplicate fadeInUp definition removed. See unified version later */

/* ======================== */
/*   Header                 */
/* ======================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 2000;
    background: var(--bg-light);
    box-shadow: 0 2px 12px 0 rgba(20, 36, 65, 0.09);
}

main {
    padding-top: var(--header-height);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 var(--side-padding);
    box-sizing: border-box;
    position: relative;
    gap: 40px;
    flex-wrap: wrap;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text);
    letter-spacing: 0.01em;
    user-select: none;
    white-space: nowrap;
    margin: 0;
    line-height: var(--header-height);
    margin-right: auto;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.main-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    position: relative;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.17rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
    transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--accent);
}


.burger {
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    display: flex;
    /* visible par défaut — masqué en JS si nécessaire */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    z-index: 1101;
    position: relative;
    margin-left: auto;
}

.burger span {
    display: block;
    width: 28px;
    height: 3.5px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.35s cubic-bezier(.46, .03, .52, .96);
}

.burger.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-light);
    z-index: 1100;
    display: flex;
    /* visible par défaut — masqué en JS si nécessaire */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.44s cubic-bezier(.47, .18, .37, .92);
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 42px;
    align-items: center;
}

.nav-overlay a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: color 0.22s;
}

.nav-overlay a:hover,
.nav-overlay a:focus {
    color: var(--accent);
}

/* Responsive refinement */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .site-title {
        font-size: 1.6rem;
        flex-shrink: 1;
    }

    .lang-switcher {
        margin-left: 0;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .burger {
        margin-left: auto;
        transform: scale(0.88);
    }
}

/*
 * Ensure header elements stay on a single line and the site title truncates
 * gracefully on small screens.  Without these rules, the language
 * switcher and burger icon may wrap onto a new line when the available
 * width is limited (see screenshot 18-17-46).  By preventing wrapping
 * and allowing the title to shrink and ellipsize, the header remains
 * aligned horizontally in responsive view.
 */
@media (max-width: 1024px) {
    .header-container {
        flex-wrap: nowrap;
        /* keep elements on one line */
    }

    .site-title {
        flex: 1 1 auto;
        /* allow title to shrink/grow */
        overflow: hidden;
        /* hide overflow text */
        text-overflow: ellipsis;
        /* show ellipsis when text overflows */
    }

    /* Ensure the burger stays aligned to the right without taking extra space */
    .burger {
        margin-left: 0;
    }

    /* Prevent the language switcher from wrapping */
    .lang-switcher {
        white-space: nowrap;
    }
}

/*
 * Remove the default focus outline on menu and language switcher links.  The
 * interactive underline and color change provide sufficient visual feedback.
 */
.main-nav a:focus,
.nav-overlay a:focus,
.lang:focus,
.burger:focus {
    outline: none;
}

/* Remove focus outline from the site title (logo) to avoid a box around it when clicked */
.site-title:focus {
    outline: none;
}

/*
 * Show a discrete pause symbol on the testimonial carousel when hovered.  This visual cue
 * indicates that autoplay is paused while the user’s pointer is over the testimonials.
 */
#testimonial-slide {
    position: relative;
}

#testimonial-slide::after {
    content: '\23F8';
    /* Unicode pause symbol */
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 1.3rem;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#testimonial-slide:hover::after {
    opacity: 0.7;
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.4rem;
    }

    .lang-switcher {
        font-size: 0.85rem;
    }

    .burger {
        transform: scale(0.8);
    }
}

/* ======================== */
/*   Lang Switcher          */
/* ======================== */

.lang {
    position: relative;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 2px 7px;
    transition: color 0.2s;
}

.lang::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s;
}

.lang:hover,
.lang:focus,
.lang.active {
    color: var(--accent);
}

.lang:hover::after,
.lang:focus::after,
.lang.active::after {
    transform: scaleX(1);
}

/* ======================== */
/*   Hero Section           */
/* ======================== */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    max-height: 950px;
    display: flex;
    align-items: center;
    /* Centrage vertical du contenu */
    justify-content: center;
    overflow: hidden;
    background: #111;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /*filter: brightness(0.62) contrast(1.08) saturate(1.13);*/
    transition: filter 0.4s;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background: linear-gradient(180deg, rgba(14, 19, 34, 0.18) 30%, rgba(14, 19, 34, 0.77) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    transform: translateY(40vh);
    min-width: 0;
}


.hero-content h1,
.hero-content p {
    white-space: nowrap;
    overflow: hidden;
    margin: 0;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 68px;
    /* valeur initiale, sera réduite par JS */
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    text-shadow: 0 2px 16px rgba(14, 19, 34, 0.16), 0 8px 48px #000c;
    line-height: 1.13;
}

.hero-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    /* valeur initiale, sera réduite par JS */
    font-weight: 400;
    color: #f6eede;
    text-shadow: 0 1px 8px #111b;
    line-height: 1.36;
}

/* Responsive : adapte la position du texte */
@media (max-width: 900px) {
    .hero {
        min-height: 74vh;
        max-height: 540px;
    }

    .hero-content {
        transform: translateY(24vh);
    }
}

@media (max-width: 600px) {
    .hero {
        align-items: flex-start;
        min-height: 58vh;
    }

    .hero-content {
        transform: none;
        margin-top: 48vh;

    }
}

/* ======================== */
/*   Home                   */
/* ======================== */

.mini-gallery-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 100px 0 60px 0;
}

.mini-gallery-img {
    max-width: 440px;
    width: 88vw;
    border-radius: 17px;
    box-shadow: 0 4px 24px 0 rgba(32, 32, 32, 0.10);
    opacity: 0.97;
}

/* ======================== */
/*   CTA Homepage           */
/* ======================== */

.cta-home {
    display: flex;
    justify-content: center;
    padding: 80px var(--side-padding);
}

.cta-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.07rem;
    font-weight: 500;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--accent);
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transform: scale(1);
    transition: color 0.3s ease, transform 0.25s ease;
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Use a lighter shade of the accent colour for button background on hover/focus */
    background: #957d5b;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

.cta-button:hover,
.cta-button:focus {
    color: var(--text-invert);
    transform: scale(1.05);
    cursor: pointer;
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-button:hover::after,
.cta-button:focus::after {
    opacity: 1;
}

/* Animation d’apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease-out 0.3s both;
}


/* ======================== */
/*   Testimonials Intro     */
/* ======================== */

.testimonial-intro {
    text-align: center;
    /* Reduced bottom padding to bring carousel closer to the title */
    padding: 0px var(--side-padding) 40px;
    /*
     * Use CSS variables for the testimonial intro background so it
     * adapts seamlessly to dark mode.  Previously this gradient
     * hard‑coded light colours (#f9f7f2 → #f3f0e9), which resulted
     * in very low contrast on dark backgrounds.  By relying on
     * ``var(--bg)`` and ``var(--bg-light)`` the section inherits
     * the appropriate palette defined for each colour scheme.
     */
    background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-light) 100%);
}

.testimonial-intro p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    color: var(--text);
    margin: 0 auto;
    max-width: 720px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInIntro 1.2s ease-out forwards;
}

/* Style the testimonial section heading similarly to the paragraph text.
   Without this rule the <h2> inside .testimonial-intro defaults to Montserrat,
   giving an inconsistent look compared to other pages. */
.testimonial-intro h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    color: var(--text);
    margin: 0 auto;
    max-width: 720px;
}

.section-divider-ornament {
    position: relative;
    display: block;
    margin: 26px auto 0;
    width: 70px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a66b, transparent);
    border-radius: 1px;
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.6);
    animation: fadeInDivider 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

.section-divider-ornament::after {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 140%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 2.8s ease-out infinite;
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDivider {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes shimmer {
    0% {
        left: -70%;
    }

    100% {
        left: 100%;
    }
}

/*
 * The testimonial section was defined twice with two different gradient
 * backgrounds.  To simplify maintenance and ensure consistent styling,
 * the duplicate definition is removed here.  The definitive version
 * appears later in this file with a 180deg gradient.  The associated
 * helper classes (testimonial-background and cta-full-divider) remain
 * declared below.
 */
/* Duplicate testimonial-section removed; see later definition */

.testimonial-background {
    /*
     * Make the testimonial background responsive to the active colour
     * scheme.  Hard‑coded light colours (#f7f5f1 → #f5f3ee) caused
     * readability issues in dark mode, so we use the ``--bg`` and
     * ``--bg-light`` variables instead.  The initial ``transparent``
     * stop is preserved to blend smoothly with the preceding
     * sections.
     */
    background: linear-gradient(180deg, transparent 0%, var(--bg) 10%, var(--bg-light) 100%);
    padding-top: 60px;
    padding-bottom: 100px;
}

.cta-full-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}


/* ======================== */
/*   Testimonials Carousel  */
/* ======================== */
.testimonial-section {
    /* Reduce vertical padding so the carousel appears higher without excessive scrolling */
    padding: 60px var(--side-padding);
    /*
     * Similar to .testimonial-background, replace hard‑coded light
     * colours with CSS variables for dark‑mode support.
     */
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-wrapper {
    max-width: 820px;
    width: 100%;
    min-height: 500px;
    /* Conteneur invisible stabilisé */
    position: relative;
    text-align: center;
    transition: all 0.5s ease;
}

.testimonial-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-content.active {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-content::before,
.testimonial-content::after {
    content: '“';
    font-size: 3.4rem;
    display: block;
    color: var(--accent);
    line-height: 0;
}

.testimonial-content::after {
    content: '”';
    margin-top: 1.2rem;
}

.testimonial-author {
    margin-top: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.testimonial-dots {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-dot.active {
    background-color: var(--accent);
}

/* ======================== */
/*   Carousel Transitions   */
/* ======================== */

.fade-in {
    animation: fadeInTestimonial 0.6s ease forwards;
}

.fade-out {
    animation: fadeOutTestimonial 0.4s ease forwards;
}

@keyframes fadeInTestimonial {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutTestimonial {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px);
    }
}

/* ======================== */
/*   Hero Banner            */
/* ======================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 40vh;
    /* hauteur flexible (40% écran) */
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* couvre sans déformer */
    object-position: center;
    /* centre par défaut */
    display: block;
}

.hero-banner-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Mobile : un peu plus bas */
@media (max-width: 768px) {
    .hero-banner {
        height: 30vh;
    }

    .hero-banner-img {
        object-position: top center;
        /* recadre en haut sur mobile */
    }
}


/* ======================== */
/*   Contact Section        */
/* ======================== */
.contact-rana {
    /* Use the light background variable so this section adapts to dark mode. */
    background: var(--bg-light);
    padding: 140px var(--side-padding);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-rana-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 50px;
}

.contact-rana-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.contact-rana-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.contact-rana-form {
    width: 100%;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Use theme-aware background for inputs to support dark mode */
    background: var(--bg-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border-radius: 8px;
    color: var(--text);

}

.contact-form button {
    display: inline-block;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-rana-text h1 {
        font-size: 2.2rem;
    }
}

/* ======================== */
/*   About page             */
/* ======================== */

.about-rana {
    /* Background responsive to theme */
    background: var(--bg-light);
    padding: 160px var(--side-padding);
    max-width: 1400px;
    margin: 0 auto;
}

.about-rana-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 120px;
    /* large espace = luxe */
}

.about-rana-photo {
    flex: 1;
    max-width: 600px;
}

.about-rana-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.about-rana-text {
    flex: 0.8;
    max-width: 480px;
}

.about-rana-text h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.about-rana-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 26px;
}

/* Responsive : colonne unique sur mobile */
@media (max-width: 960px) {
    .about-rana-container {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .about-rana-text {
        max-width: 100%;
    }
}

/* État initial : décalé à gauche et transparent */
.slide-photo {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

/* État visible : revient à sa place et devient opaque */
.slide-photo.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide-in animation pour le texte */
.slide-text {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.slide-text.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ======================== */
/*  Fade-in sections (Pedagogie pages) */
/* These classes control the opacity and vertical translation of content that should appear
   smoothly when it comes into view.  We set initial opacity to 0 and apply a slight
   downward translation.  When the element receives the `.visible` class via
   JavaScript, the element fades in and slides up into place. */

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================== */
/*  Tarifs                  */
/* ======================== */

.pricing-rana {
    /* Use light background variable for pricing section */
    background: var(--bg-light);
    padding: 140px var(--side-padding);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-rana h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 30px;
}

.pricing-rana p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* ===== Rendu luxe pour la section Offre VIP ===== */
.pricing-rana {
    max-width: 740px;
    /* largeur contenue pour une lecture élégante */
    padding: 80px var(--side-padding);
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* contour léger */
    border-radius: 17px;
    /* arrondi doux cohérent avec le thème */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
    /* ombre subtile haut de gamme */
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.pricing-rana h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.pricing-rana ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.pricing-rana ul li {
    margin-bottom: 16px;
    font-size: 1.15rem;
}

/* ===========================
   SECTION GALERIE LUXE RESPONSIVE
   =========================== */

/* Container général */
.gallery-rana {
    /* Theme-aware background for the gallery */
    background: var(--bg-light);
    padding: 100px var(--side-padding);
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.gallery-rana h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    margin-bottom: 20px;
    /* Use text colour variable for proper contrast in dark mode */
    color: var(--text);
}

.gallery-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--text);
}

/* Sous-titre Photos / Vidéos */
.gallery-subtitle {
    margin: 80px 0 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--text);
}

/* Grille responsive luxe */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Élément individuel */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* PHOTOS : ratio 4/3 fluide */
.gallery-item[data-type="image"] img {
    width: 100%;
    aspect-ratio: 4/3;
    /* garde une belle proportion responsive */
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* VIDEOS : thumbnails auto ou bloc neutre, ratio 16/9 */
.gallery-item[data-type="youtube"] img,
.gallery-video {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: linear-gradient(135deg, #111 0%, #333 100%);
}

/* Hover luxe */
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Icône lecture sur les vidéos */
.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.gallery-item:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Curseurs différents selon le type */
.gallery-item[data-type="image"] {
    cursor: zoom-in;
}

.gallery-item[data-type="youtube"],
.gallery-item[data-type="video"] {
    cursor: pointer;
}

/* Animation pour galerie */
.gallery-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   LIGHTBOX FULLSCREEN
   =========================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images et vidéos dans la lightbox */
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
}

.lightbox-content iframe,
.lightbox-content video {
    width: 90vw;
    height: 80vh;
    max-width: 1400px;
    border-radius: 12px;
}

/* Bouton fermeture */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .gallery-rana h1 {
        font-size: 2.4rem;
    }

    .gallery-subtitle {
        font-size: 1.8rem;
        margin: 60px 0 20px;
    }

    .lightbox-content iframe,
    .lightbox-content video {
        width: 95vw;
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        gap: 20px;
    }
}

/* ======================== */
/*   Footer                 */
/* ======================== */
footer {
    width: 100%;
    background: var(--bg-light);
    border-top: 1px solid #ece6d6;
    margin-top: 70px;
    padding: 0;
}

.footer-container {
    width: 100%;
    margin: 0;
    padding-left: var(--side-padding);
    padding-right: var(--side-padding);
    padding-top: 26px;
    padding-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1.04rem;
    color: var(--text);
    gap: 10px;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.18em;
    color: var(--text);
}

.footer-dot {
    color: var(--accent);
    font-size: 1.2em;
    margin: 0 4px;
}

.footer-copyright {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1em;
    color: #77612b;
    letter-spacing: 0.04em;
}

.footer-link {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1em;
    color: var(--text);
    text-decoration: none;
    margin-left: 2px;
    border-bottom: 1px dotted var(--accent);
    transition: color 0.18s;
}

.footer-link:hover {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

@media (max-width: 600px) {
    .footer-container {
        padding-left: var(--side-padding);
        padding-right: var(--side-padding);
        padding-top: 20px;
        padding-bottom: 14px;
        flex-direction: column;
        gap: 2px;
        font-size: 0.97rem;
        align-items: center;
    }

    .footer-dot {
        display: none;
    }
}

/*
 * Explicit font sizes for headings nested inside sections.
 * Avoids reliance on deprecated user agent styles and satisfies Lighthouse.
 */
article h1,
aside h1,
nav h1,
section h1 {
    font-size: 2rem;
}

/*
 * Accessibility improvements
 * ------------------------------------------------------------------
 * The skip-link appears at the top of the document and allows
 * keyboard users to jump directly to the main content.  It is
 * visually hidden by default and becomes visible when focused.
 */
a.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

a.skip-link:focus {
    position: absolute;
    left: var(--side-padding);
    top: var(--side-padding);
    width: auto;
    height: auto;
    background: var(--bg-light);
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius);
    z-index: 10000;
    clip: auto;
    white-space: normal;
    text-decoration: none;
}

/*
 * Always display a visible focus outline on interactive elements.
 */
*:focus {
    /* Remove default outline on focus to prevent visible squares around links.
       Note: removing focus outlines can impact accessibility; ensure other
       visual cues are present for keyboard navigation. */
    outline: none;
    outline-offset: 0;
}

/*
 * Ensure that links are underlined by default so that color alone is
 * not used to convey clickability.  The accent color provides
 * contrast, and the underline emphasises interactive nature.
 */
a {
    color: var(--accent);
    text-decoration: underline;
    transition: color var(--transition);
}

a:hover,
a:focus {
    /* Slightly lighter shade on hover for better feedback; this must
     * be set explicitly because CSS variables cannot be manipulated
     * directly without a preprocessor.  The chosen value (#8a6f3a)
     * is approximately 10 % lighter than the accent color.
     */
    color: #8a6f3a;
}

/* ==== Gallery page: video layout (luxury & minimal) ==== */
.gallery-rana .visually-hidden {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
}

.video-block {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-block iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.video-block:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}

.media-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 0;
    flex-wrap: wrap;
}

.media-cta .cta-button {
    padding: .75rem 1.25rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
}

/* ==== End gallery page styles ==== */

/* ===== Fix: burger clipped on small screens ===== */

/* 1) Avoid the 100vw clipping bug on desktops with scrollbar */
header {
    width: 100%;
    /* instead of 100vw from earlier rule */
}

/* 2) Make header layout breathe + avoid wrapping conflicts */
.header-container {
    justify-content: space-between;
    /* clearer than center + auto margins */
    overflow: visible;
    /* ensure nothing gets cropped */
}

/* 3) Ensure the title can shrink instead of pushing the burger out */
.site-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 4) Guarantee a tappable burger area and keep it visible */
.burger {
    width: 44px;
    height: 44px;
    z-index: 1101;
}

/* 5) Reduce spacing + font size a bit on very small widths */
@media (max-width: 420px) {
    .header-container {
        gap: 12px;
    }

    .site-title {
        font-size: clamp(18px, 6vw, 24px);
    }
}

/* 6) Safe areas on iPhone with notch */
header {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
}

/* 7) Prevent any horizontal scroll from accidental overflow */
html,
body {
    overflow-x: hidden;
}

/* === FORCER L'AFFICHAGE CORRECT DU MENU SELON LE MODE === */

/* En mode desktop, le menu principal doit être visible */
.header--desktop .main-nav {
    display: flex !important;
}

/* En mode burger, on cache le menu principal */
.header--burger .main-nav {
    display: none !important;
}

/* On affiche le bouton burger uniquement si on est en mode burger */
.header--burger .burger {
    display: flex !important;
}

.header--desktop .burger {
    display: none !important;
}


/* ==== Cluster compact sans styles visuels ajoutés ==== */
/* Ordre : Titre | (menu centré) | Theme | Lang | Burger */
.site-title {
    order: 0;
    margin-right: auto;
}

.main-nav {
    order: 1;
}

/* Plaquer le cluster à droite, sans toucher au style interne des éléments */
.theme-toggle {
    order: 2;
    margin-left: auto;
}

.lang-switcher {
    order: 3;
    margin-left: 6px;
}

.burger {
    order: 4;
    margin-left: 10px !important;
}

/* Ajustements responsive (espacements seulement) */
@media (max-width: 900px) {
    .lang-switcher {
        margin-left: 4px;
    }

    .burger {
        margin-left: 8px !important;
    }
}

@media (max-width: 600px) {
    .lang-switcher {
        margin-left: 3px;
    }

    .burger {
        margin-left: 6px !important;
    }
}