/* ==========================================================================
   CSS Variables & Reset (JISTNA Design System)
   ========================================================================== */
:root {
    /* Palette Chromatique Officielle */
    --color-terre: #512F27; /* La terre cuite */
    --color-or: #EEB43F;    /* L'Or du Retour */
    --color-laterite: #AD4723; /* La Latérite / La Terre Mère */
    --color-accent: #FF7200;   /* Accent Vif */
    --color-sable: #FFF7E6;    /* Le Sable de la Plage */
    
    /* Layout */
    --nav-height: 80px;
    --container-max-width: 1300px;
    --container-padding: 2rem;
    
    /* Typography */
    --font-heading: 'Minute', 'Patrick_Hand', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Font Definitions (if Minute is not available locally, it will fallback to Patrick_Hand, then Inter) */
@font-face {
    font-family: 'Minute';
    src: local('Minute'), local('Minute-Regular');
    font-display: swap;
}

@font-face {
    font-family: 'Patrick_Hand';
    src: url('../fonts/Patrick_Hand/PatrickHand-Regular.ttf') format('truetype-variations');
    font-weight: 400 700;
    font-display: swap;
}

/* Inter, auto-hébergée (remplace la dépendance à fonts.googleapis.com) */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-Variable-latin.woff2') format('woff2-variations');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px; /* Slight reduction for a more refined, less 'zoomed' feel */
    overflow-x: hidden; /* body alone isn't enough on mobile Safari — elastic scroll can still reveal horizontal overflow and shift the fixed header */
}

body {
    font-family: var(--font-body);
    background-color: var(--color-sable);
    color: var(--color-terre);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-terre);
}

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

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

/* Skip link: visually hidden until keyboard-focused, then pinned top-left
   above everything else (z-index above .navbar's) — WCAG 2.4.1 Bypass Blocks. */
.skip-link.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    background-color: var(--color-sable);
    color: var(--color-terre);
    clip: auto !important;
    clip-path: none;
    display: block;
    position: fixed !important;
    top: 0.75rem;
    left: 0.75rem;
    width: auto;
    height: auto;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2000;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 5rem 0; /* Reduced padding */
    position: relative;
}

.bg-dark {
    background-color: var(--color-terre);
    color: var(--color-sable);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-sable);
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-laterite);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.section-tag::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.bg-dark .section-tag {
    color: var(--color-or);
}

.section-title {
    font-size: 2.75rem; /* Reduced from 3rem */
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.text-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-or);
    color: var(--color-terre);
    border: none;
    box-shadow: 0 4px 15px rgba(238, 180, 63, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 114, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-sable);
    border: 2px solid var(--color-sable);
}

.btn-secondary:hover {
    background-color: var(--color-sable);
    color: var(--color-terre);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    border-radius: 15px; /* match .contact-form-wrapper's rounding */
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    border-bottom: 1px solid transparent; /* pre-declared so the border-color transition has something to interpolate from — without this, the browser's default 3px "none" border snaps to 1px solid on scroll, flashing a thick brown line */
    transition: all var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 247, 230, 0.95); /* var(--color-sable) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(81, 47, 39, 0.1);
    box-shadow: 0 4px 20px rgba(81, 47, 39, 0.05);
}

.nav-container {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    flex: 1; /* Assign equal flex width to sides to perfectly center the menu */
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo {
    max-height: 45px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

/* Transparent header (over the hero) needs the white monochrome logo for
   contrast, same idea as .nav-link switching to var(--color-sable); once
   .scrolled adds the solid background, the full-colour logo takes over. */
.logo-scrolled {
    display: none;
}

.navbar.scrolled .logo-transparent {
    display: none;
}

.navbar.scrolled .logo-scrolled {
    display: block;
}

.nav-menu {
    flex: auto; /* Let it size to content */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    white-space: nowrap; /* Prevent items from wrapping to 2 lines */
}

.nav-right {
    flex: 1; /* Assign equal flex width */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-link {
    color: var(--color-sable);
    transition: color var(--transition-fast);
    opacity: 0.6;
}

.navbar.scrolled .lang-link {
    color: var(--color-terre);
}

.lang-link.active, .lang-link:hover {
    opacity: 1;
    color: var(--color-or) !important;
}

.lang-separator {
    color: var(--color-sable);
    opacity: 0.3;
}

.navbar.scrolled .lang-separator {
    color: var(--color-terre);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-sable); /* Initially white because of hero */
    position: relative;
    transition: color var(--transition-fast);
    white-space: nowrap; /* Prevent text wrapping inside link */
}

.navbar.scrolled .nav-link {
    color: var(--color-terre);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-or);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-sable);
    transition: all var(--transition-fast);
    border-radius: 3px;
}

.navbar.scrolled .hamburger span {
    background-color: var(--color-terre);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    color: var(--color-sable);
}

.hero h1, .hero h2 {
    color: var(--color-sable);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(81, 47, 39, 0.7) 0%,
        rgba(81, 47, 39, 0.4) 50%,
        var(--color-terre) 100%
    );
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.date-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--color-or);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-or);
    margin-bottom: 2rem;
    background: rgba(81, 47, 39, 0.5);
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem); /* Reduced title size */
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 30px rgba(81, 47, 39, 0.5);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.8vw, 1.4rem); /* Reduced */
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0.95;
}

.hero-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.hero-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 0.75rem 0.5rem;
    border: 1px solid rgba(238, 180, 63, 0.4);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.06);
}

.countdown-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-or);
    line-height: 1;
}

.countdown-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-sable);
    opacity: 0.8;
}

.countdown-sep {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-or);
    opacity: 0.5;
    padding-bottom: 1.4rem; /* aligns with the numbers, above the labels */
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-or);
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--color-or);
    background: rgba(81, 47, 39, 0.3);
    backdrop-filter: blur(5px);
    transition: all var(--transition-fast);
}

.scroll-down:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* ==========================================================================
   À Propos Section
   ========================================================================== */
.about {
    background-color: var(--color-sable);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: var(--color-terre);
}

.quote {
    margin-top: 3rem;
    padding-left: 2.5rem;
    border-left: 4px solid var(--color-laterite);
    position: relative;
    background: rgba(173, 71, 35, 0.05);
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    border-radius: 0 8px 8px 0;
}

.quote p {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-terre);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.quote cite {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-laterite);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    position: relative;
}

.about-img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(81, 47, 39, 0.2);
    transition: transform var(--transition-slow);
}

.main-img {
    width: 85%;
    margin-left: auto;
}

.sub-img {
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 55%;
    border: 10px solid var(--color-sable);
}

.about-visual:hover .main-img {
    transform: scale(1.02);
}
.about-visual:hover .sub-img {
    transform: scale(1.05) translate(10px, -10px);
}

/* ==========================================================================
   Programme Section (Elegant Vertical Timeline)
   ========================================================================== */
.programme {
    background-color: var(--color-terre);
    color: var(--color-sable);
}

.timeline-day {
    max-width: 900px;
    margin: 3rem auto 0;
    padding-left: 175px; /* aligns with the cards, past the time column */
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-or);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 1.5rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 175px; /* Position of the vertical line */
    height: 100%;
    width: 1px;
    background-color: rgba(238, 180, 63, 0.3); /* Thin orange line */
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    align-items: stretch; /* Cards can stretch */
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Time */
.timeline-time {
    width: 175px;
    flex-shrink: 0;
    padding-right: 2rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--color-or); /* Orange for contrast on dark background */
    text-align: right;
    white-space: nowrap;
    padding-top: 2rem; /* Align with card text */
}

/* Standard Dot */
.timeline-dot {
    position: absolute;
    top: 2.3rem; /* Align with text */
    left: 175px;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: var(--color-or); /* Orange dot */
    border-radius: 50%;
    z-index: 2;
}

/* Ring that lights up around a dot once its item has scrolled into view */
.timeline-dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: rgba(238, 180, 63, 0.3); /* Light orange ring */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
    z-index: -1;
}

.timeline-item:hover .timeline-dot::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.timeline-dot-wrapper .timeline-dot {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background-color: var(--color-or); /* Orange center */
}

/* Card */
.timeline-card {
    flex-grow: 1;
    margin-left: 3rem;
    background-color: rgba(255, 247, 230, 0.95);
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Stronger shadow for dark background */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--color-or);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.timeline-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-terre);
    margin-bottom: 0;
}

.timeline-card .details {
    color: rgba(81, 47, 39, 0.8);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.timeline-link {
    display: inline-block;
    color: var(--color-laterite);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    margin-top: 0.5rem;
}

.timeline-link:hover {
    color: var(--color-terre);
}

/* Moment Fort Styling */
.moment-fort .timeline-card {
    border: 1px solid rgba(238, 180, 63, 0.6);
    background-color: rgba(255, 247, 230, 0.95); /* Slight cream background */
    padding-left: 3.5rem; /* Room for thick border */
}

.badge-moment {
    display: inline-block;
    align-self: flex-start;
    background-color: rgba(238, 180, 63, 0.15);
    color: var(--color-laterite);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.moment-fort h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--color-terre);
}

.separator {
    border: 0;
    border-top: 1px dashed rgba(81, 47, 39, 0.3);
    margin: 1.5rem 0;
}

.objectif {
    font-style: italic;
    color: var(--color-laterite);
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   Infos Pratiques (Ultra-Premium Minimalist Bento Box)
   ========================================================================== */
.infos {
    background-color: var(--color-sable);
    padding-bottom: 3rem;
}

.infos-header {
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 2rem;
}

.bento-item {
    background: #ffffff;
    border: 1px solid rgba(81, 47, 39, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 4px 24px rgba(81, 47, 39, 0.03);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(81, 47, 39, 0.08);
    border-color: rgba(238, 180, 63, 0.4); /* subtle golden border on hover */
}

.bento-icon {
    color: var(--color-or);
    margin-bottom: 1rem;
    width: fit-content; /* keep the wrapper hugging the 24x24 svg, so the float below moves a fixed distance instead of pivoting around a container-wide invisible box (bento-full, and Le Lieu where it sits in a block-level .bento-text) */
    position: relative;
    z-index: 3;
    transition: transform var(--transition-normal);
}

.bento-item:hover .bento-icon {
    transform: translate(-14px, -14px) scale(1.2) rotate(-6deg);
}

.bento-text {
    position: relative;
    z-index: 2;
}

.bento-item h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-terre);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.bento-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-laterite);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.bento-detail {
    font-size: 1rem;
    color: var(--color-terre);
    opacity: 0.7;
    line-height: 1.5;
}

/* Grid Spans */
.bento-item {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-full {
    grid-column: span 4;
    grid-row: span 1;
    justify-content: flex-start;
}

.bento-list {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bento-list li {
    position: relative;
    padding-left: 1.4rem;
    color: rgba(81, 47, 39, 0.75);
    font-size: 1.05rem;
}

.bento-list li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0.45em;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background-color: var(--color-laterite);
}

/* Image Card Variation */
.bento-img-card {
    background-size: cover;
    background-position: center;
    border: none;
    overflow: hidden; /* clips the background image to the rounded corners; kept off other cards so their animated icon doesn't glitch on hover */
    box-shadow: 0 10px 30px rgba(81, 47, 39, 0.1);
}

.bento-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(81, 47, 39, 0.9) 0%, rgba(81, 47, 39, 0.4) 100%);
    z-index: 1;
}

.bento-text-light h3 {
    color: var(--color-or);
    opacity: 1;
}

.bento-text-light .bento-value {
    color: var(--color-sable);
}

.bento-text-light .bento-detail {
    color: rgba(255, 247, 230, 0.9);
}

.bento-text-light .bento-icon {
    color: var(--color-or);
}

/* ==========================================================================
   Galerie Section
   ========================================================================== */
.galerie {
    background-color: #ffffff;
    padding-top: 5rem;
}

.galerie .section-header {
    position: relative;
}

.gallery-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-subtitle-row .section-subtitle {
    margin-bottom: 0;
}

.gallery-nav {
    display: flex;
    align-items: center; /* without this, some browsers baseline-align the prev/next buttons instead of centering them, since one is :disabled and the other isn't */
    gap: 0.75rem;
    flex-shrink: 0;
}

.gallery-arrow {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--color-terre);
    background: var(--color-terre);
    color: var(--color-sable);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.gallery-arrow:hover {
    background: #ffffff;
    color: var(--color-terre);
    border-color: rgba(81, 47, 39, 0.2);
}

.gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.gallery-load-more-wrap {
    display: none; /* shown only on mobile — see the max-width:768px media query */
    justify-content: center;
    margin-top: 3rem;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    display: block;
    margin: 0 0 1.5rem;
    break-inside: avoid;
    box-shadow: 0 10px 30px rgba(81, 47, 39, 0.1);
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-item::before,
.gallery-item::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid #fff;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    z-index: 2;
}

.gallery-item::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.gallery-item::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item--tall img {
    aspect-ratio: 3 / 4;
    height: 100%;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(81, 47, 39, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-overlay span {
    color: var(--color-sable);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Gallery Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000; /* must beat .navbar's z-index:1000 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #14100d;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    min-height: 0;
    flex: 1;
}

.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    max-height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 247, 230, 0.3);
    background: rgba(255, 247, 230, 0.08);
    color: var(--color-sable);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--color-or);
    color: var(--color-terre);
    border-color: var(--color-or);
}

.lightbox-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 247, 230, 0.3);
    background: rgba(255, 247, 230, 0.08);
    color: var(--color-sable);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.lightbox-arrow:hover {
    background: var(--color-or);
    color: var(--color-terre);
    border-color: var(--color-or);
}

.lightbox-thumbs {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* old Edge/IE */
}

.lightbox-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.lightbox-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
    padding: 0;
    background: none;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb:hover {
    opacity: 0.85;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--color-or);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--color-terre);
    color: var(--color-sable);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info p {
    color: rgba(255, 247, 230, 0.8);
    margin-bottom: 3rem;
    font-size: 1.15rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.method {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.method .icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(238, 180, 63, 0.1);
    border: 2px solid rgba(238, 180, 63, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-or);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.method:hover .icon {
    background: var(--color-or);
    color: var(--color-terre);
    transform: translateY(-3px);
}

.method h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--color-sable);
}

.method p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: rgba(255, 247, 230, 0.8);
}

.contact-form-wrapper {
    background: var(--color-sable);
    padding: 2.25rem;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    color: var(--color-terre);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-terre);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #fff;
    border: 2px solid rgba(81, 47, 39, 0.1);
    border-radius: 15px; /* match .contact-form-wrapper's rounding */
    color: var(--color-terre);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-laterite);
    box-shadow: 0 0 0 4px rgba(173, 71, 35, 0.1);
}

.form-status {
    display: none;
    margin-bottom: 1.1rem;
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    background: rgba(173, 71, 35, 0.1);
    color: var(--color-laterite);
}

.form-status.is-error {
    background: rgba(200, 40, 40, 0.1);
    color: #c82828;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #3B201A; /* Darker terre cuite */
    padding: 6rem 0 2rem;
    color: var(--color-sable);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 90px;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255, 247, 230, 0.7);
    max-width: 350px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-contact .social-links {
    margin-top: 2.5rem;
}

.footer-contact .social-links a {
    color: var(--color-or);
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 247, 230, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-or);
    transition: all var(--transition-fast);
}

.footer-contact .social-links a:hover,
.social-links a:hover {
    background: var(--color-or);
    color: var(--color-terre);
    transform: translateY(-5px);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--color-sable);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 247, 230, 0.7);
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-or);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 247, 230, 0.1);
    color: rgba(255, 247, 230, 0.5);
    font-size: 0.95rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    text-align: center;
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-legal-link a {
    color: rgba(255, 247, 230, 0.5);
    text-decoration: none;
}

.footer-legal-sep {
    color: rgba(255, 247, 230, 0.3);
    margin: 0 0.5rem;
}

.footer-legal-link a:hover {
    color: var(--color-sable);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .contact-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-visual {
        margin-top: 3rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-full {
        grid-column: span 2;
    }

    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .logo {
        max-height: 34px;
    }

    .gallery-nav {
        display: none;
    }

    .gallery-load-more-wrap {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--color-sable);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(81, 47, 39, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .navbar.scrolled .nav-menu {
        background: var(--color-sable);
    }
    
    .nav-menu .nav-link {
        color: var(--color-terre);
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-countdown {
        gap: 0.5rem;
    }

    .countdown-unit {
        min-width: 52px;
        padding: 0.6rem 0.4rem;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-sep {
        font-size: 1.4rem;
        padding-bottom: 1.2rem;
    }

    .timeline-day {
        padding-left: 32px;
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-time {
        width: auto;
        text-align: left;
        padding-right: 0;
        padding-top: 0;
        margin-bottom: 0.5rem;
    }

    .timeline-dot {
        left: 16px;
        top: 0.35rem;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 32px;
    }

    .timeline-card {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1.5rem;
    }

    .moment-fort .timeline-card {
        padding-left: 1.8rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-item, .bento-wide, .bento-full {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .bento-item {
        padding: 2rem;
        min-height: 200px;
    }
    
    .gallery-grid {
        column-count: 1;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lightbox {
        padding: 1rem;
        gap: 1rem;
    }

    .lightbox-main {
        position: relative;
        width: 100%;
    }

    .lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        z-index: 1;
    }

    .lightbox-arrow--prev {
        left: 0.25rem;
    }

    .lightbox-arrow--next {
        right: 0.25rem;
    }

    .lightbox-stage {
        width: 100%;
        max-width: 100%;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-thumb {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================================
   Legal pages (Mentions légales, Politique de confidentialité…)
   ========================================================================== */

.legal-hero {
    position: relative;
    height: 380px;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.legal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.legal-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.legal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(81, 47, 39, 0.55) 0%,
        rgba(81, 47, 39, 0.75) 100%
    );
}

.legal-hero .container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2.5rem;
    text-align: left;
}

.legal-hero-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-or);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-hero-tag::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
}

.legal-page {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

.legal-page-inner {
    max-width: 830px;
}

.legal-page .section-title {
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--color-laterite);
    font-size: 1.85rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-heading);
    color: var(--color-laterite);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content hr.legal-divider {
    border: none;
    border-top: 1px solid rgba(81, 47, 39, 0.15);
    margin: 2.5rem 0;
}

.legal-content p,
.legal-content li {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-terre);
    margin-bottom: 1rem;
}

.legal-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-content a {
    color: var(--color-laterite);
    text-decoration: underline;
}

.form-privacy-notice {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-terre);
    opacity: 0.75;
    margin: 0 0 1rem;
}

.form-privacy-notice a {
    color: var(--color-laterite);
    text-decoration: underline;
}
