/* ===== VARIABLES & RESET ===== */
:root {
    /* Thème: jaune doux + bleu foncé (confort visuel) */
    --burnt-orange: #143F6B;        /* Accent principal -> bleu */
    --warm-terracotta: #0B2A4A;     /* Accent foncé -> bleu nuit */
    --soft-peach: #FBF2C6;          /* Fond section -> jaune pâle */
    --cream: #FFF7D6;               /* Crème -> jaune très clair */
    --deep-teal: #1F5D8F;           /* Accent secondaire -> bleu */
    --ocean-blue: #2D78B5;          /* Survol/relief -> bleu */
    --sage-green: #547A9A;          /* Texte secondaire -> bleu grisé */
    --lemon-accent: #F3E7A7;        /* Jaune d'accent (très doux) */
    --golden-sand: #F1E08B;         /* Jaune sable */
    --rich-burgundy: #0B2A4A;       /* Recyclé en bleu nuit */
    --warm-white: #FFFBE8;          /* Fond général -> jaune cassé */
    --text-dark: #0B2A4A;           /* Texte -> bleu nuit */
    --text-medium: #2B4D6A;         /* Texte moyen */
    --text-light: #4F6B83;          /* Texte clair */

    /* Utilitaires */
    --navy-rgb: 11, 42, 74;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--warm-white);
    /* Fond jaune rayé subtil (désactivable via body.bg-solid) */
    background-image:
        repeating-linear-gradient(
            45deg,
            rgba(var(--navy-rgb), 0.035) 0,
            rgba(var(--navy-rgb), 0.035) 10px,
            rgba(255, 255, 255, 0) 10px,
            rgba(255, 255, 255, 0) 28px
        ),
        linear-gradient(180deg, var(--cream), var(--warm-white));
    overflow-x: hidden;
}

body.bg-solid {
    background-image: linear-gradient(180deg, var(--cream), var(--warm-white));
}

/* ===== SUBTLE DYNAMIC BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    inset: -10vh -10vw;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        radial-gradient(circle at 20% 25%, rgba(241, 224, 139, 0.35) 0%, transparent 58%),
        radial-gradient(circle at 80% 20%, rgba(255, 247, 214, 0.55) 0%, transparent 62%),
        radial-gradient(circle at 55% 85%, rgba(241, 224, 139, 0.25) 0%, transparent 65%);
    filter: none;
    transform: translate3d(0, 0, 0) scale(1);
    animation: none;
}

@keyframes ambientDrift {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    50% {
        transform: translate3d(1.2%, -0.6%, 0) scale(1.02);
    }
    100% {
        transform: translate3d(-0.8%, 1.4%, 0) scale(1.01);
    }
}

main {
    display: block;
}

/* ===== SUBTLE ANIMATIONS (SIMPLE & ON THEME) ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.collapsible {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
    will-change: opacity, transform, max-height;
}

.collapsible.is-open {
    opacity: 1;
    transform: translateY(0);
    max-height: 1200px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h2.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--burnt-orange);
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--deep-teal), var(--burnt-orange));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

/* Alternance simple (moins chargée)
   IMPORTANT: nth-child était cassé car un <div> (modal) est inséré entre sections.
   nth-of-type ignore les autres types d'éléments et garde une alternance fiable. */
main > section.section:nth-of-type(odd) {
    background-color: rgba(255, 251, 232, 0.70);
    background-image: none;
    position: relative;
}

main > section.section:nth-of-type(even) {
    background-color: rgba(241, 224, 139, 0.35);
    background-image: none;
    position: relative;
}

/* Citrons décoratifs dispersés sur quelques sections seulement */
main > section.section:nth-of-type(even)::before,
main > section.section:nth-of-type(even)::after,
main > section.section:nth-of-type(odd)::before,
main > section.section:nth-of-type(odd)::after {
    content: '';
    display: none;
}

/* Section Venue - un citron */
main > section.section:nth-of-type(4)::before {
    content: '🍋';
    position: absolute;
    top: 12%;
    left: 5%;
    font-size: 45px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    display: block;
    transform: rotate(20deg);
}

/* Section Accommodations - un citron */
main > section.section:nth-of-type(5)::after {
    content: '🍋';
    position: absolute;
    bottom: 15%;
    right: 6%;
    font-size: 45px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    display: block;
    transform: rotate(-15deg);
}

/* Les ::before et ::after des sections sont utilisés pour les citrons décoratifs */

/* Citrons avec feuilles pour certaines sections spéciales */
.lemon-decor {
    overflow: hidden;
}

.lemon-decor::before {
    content: '🍋🌿';
    position: absolute;
    top: 5%;
    right: 3%;
    font-size: 55px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
    letter-spacing: -8px;
}

.lemon-decor::after {
    content: '';
    display: none;
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 252, 247, 0.82);
    border-bottom: 1px solid rgba(61, 48, 41, 0.08);
    /* Perf: backdrop-filter peut provoquer de la latence */
    backdrop-filter: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 120px;
}

.brand-mark {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--warm-terracotta);
    line-height: 1;
    font-size: 1.35rem;
}

.brand-sub {
    font-size: 0.85rem;
    letter-spacing: 1.8px;
    color: var(--text-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* ===== MOBILE NAV (DRAWER) ===== */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(var(--navy-rgb), 0.12);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:active {
    transform: scale(0.98);
}

.nav-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--navy-rgb), 0.14);
}

.nav-toggle-icon {
    display: block;
    width: 18px;
    height: 12px;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
}

.nav-toggle-icon::before {
    top: 0;
    box-shadow: 0 5px 0 0 var(--text-dark);
}

.nav-toggle-icon::after {
    bottom: 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(var(--navy-rgb), 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 360px);
    z-index: 600;
    background: rgba(255, 251, 232, 0.98);
    backdrop-filter: none;
    border-left: 1px solid rgba(var(--navy-rgb), 0.10);
    box-shadow: -18px 0 55px rgba(var(--navy-rgb), 0.18);
    transform: translateX(102%);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
}

.mobile-nav.is-open {
    transform: translateX(0);
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(var(--navy-rgb), 0.08);
}

.mobile-nav-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(var(--navy-rgb), 0.12);
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-links {
    display: grid;
    gap: 0.25rem;
    padding: 0.75rem 1rem 1.25rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover {
    background-color: rgba(var(--navy-rgb), 0.06);
}

.mobile-nav-cta {
    margin-top: 0.6rem;
    color: white !important;
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    box-shadow: 0 10px 28px rgba(var(--navy-rgb), 0.20);
    text-align: center;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.98rem;
    padding: 0.35rem 0.15rem;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--warm-terracotta);
    background-color: rgba(var(--navy-rgb), 0.06);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    box-shadow: 0 8px 25px rgba(var(--navy-rgb), 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--navy-rgb), 0.26);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 40%, var(--golden-sand) 100%);
    position: relative;
    overflow: hidden;
}

/* Motif de mosaïque algérienne en arrière-plan avec citrons décoratifs */
.hero::before {
    content: '🍋';
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 45px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-25deg);
}

.hero::after {
    content: '';
    display: none;
}

.hero-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 6.25rem 0 3.75rem;
}

.hero-copy {
    text-align: left;
    animation: heroEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-kicker {
    font-size: 0.95rem;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(var(--navy-rgb), 0.85);
    margin-bottom: 1rem;
}

.amp {
    font-weight: 300;
    color: var(--burnt-orange);
}

.hero-meta {
    margin-top: 0.75rem;
    color: var(--text-medium);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    will-change: transform;
}

.btn:active {
    transform: translateY(0) scale(0.99);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--navy-rgb), 0.16);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    box-shadow: 0 10px 28px rgba(var(--navy-rgb), 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(var(--navy-rgb), 0.28);
}

.btn-secondary {
    color: white;
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-blue));
    box-shadow: 0 10px 28px rgba(var(--navy-rgb), 0.18);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(var(--navy-rgb), 0.24);
}

.btn-ghost {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(61, 48, 41, 0.12);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(61, 48, 41, 0.12);
}

.hero-card {
    animation: heroEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 120ms;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(61, 48, 41, 0.1);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(61, 48, 41, 0.16);
    overflow: hidden;
}

/* ===== COUPLE INVITATION SECTION ===== */
.couple-section {
    background: linear-gradient(135deg, var(--soft-peach) 0%, var(--cream) 50%, var(--golden-sand) 100%);
    padding: 4rem 0;
}

.couple-invitation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.couple-illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 15px 35px rgba(61, 48, 41, 0.18));
    animation: floatGentle 4s ease-in-out infinite;
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.couple-message {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--burnt-orange);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.hero-card-inner {
    padding: 2rem;
}

.hero-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--warm-terracotta);
    letter-spacing: 1px;
    margin-bottom: 1.1rem;
}

.hero-facts {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    padding: 0;
}

.hero-facts li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(61, 48, 41, 0.14);
}

.hero-facts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hero-facts span {
    color: var(--text-light);
    font-size: 0.95rem;
}

.hero-facts strong {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
    animation: heroEnter 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    position: relative;
}

/* Vignes italiennes décoratives à droite */
.hero-content::before {
    content: '';
    position: absolute;
    right: -120px;
    top: 20%;
    width: 120px;
    height: 250px;
    background-image:
        radial-gradient(circle at 30% 15%, var(--sage-green) 4px, transparent 4px),
        radial-gradient(circle at 60% 25%, var(--sage-green) 3px, transparent 3px),
        radial-gradient(circle at 45% 45%, var(--sage-green) 4px, transparent 4px),
        radial-gradient(circle at 25% 65%, var(--sage-green) 3px, transparent 3px),
        radial-gradient(circle at 70% 75%, var(--sage-green) 4px, transparent 4px),
        radial-gradient(circle at 50% 88%, var(--sage-green) 3px, transparent 3px),
        linear-gradient(to bottom, transparent 10%, rgba(139, 174, 104, 0.2) 10%, rgba(139, 174, 104, 0.2) 12%, transparent 12%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.4;
    z-index: 0;
}

/* Olivier méditerranéen à gauche */
.hero-content::after {
    content: '';
    position: absolute;
    left: -140px;
    bottom: 15%;
    width: 100px;
    height: 180px;
    background-image:
        radial-gradient(ellipse at 50% 20%, var(--sage-green) 35%, transparent 35%),
        radial-gradient(ellipse at 30% 50%, var(--sage-green) 25%, transparent 25%),
        radial-gradient(ellipse at 70% 60%, var(--sage-green) 28%, transparent 28%),
        radial-gradient(ellipse at 50% 85%, rgba(107, 91, 81, 0.3) 15%, transparent 15%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
}

/* Arche méditerranéenne triple comme élément décoratif principal */
.decorative-element {
    width: 180px;
    height: 60px;
    margin: 2rem auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.decorative-element::before,
.decorative-element::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--deep-teal);
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    bottom: 0;
}

.decorative-element::before {
    left: 0;
}

.decorative-element::after {
    right: 0;
    border-color: var(--burnt-orange);
}

/* Arche centrale via un pseudo-élément sur lemon-top (réutilisé) */
.lemon-top {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 50px;
    border: 3px solid var(--golden-sand);
    border-radius: 50% 50% 0 0;
    border-bottom: none;
}

.lemon-bottom {
    display: none;
}

.names {
    font-size: 4.5rem;
    color: var(--warm-terracotta);
    margin: 1rem 0;
    letter-spacing: 2px;
}

.date-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.decorative-line {
    width: 80px;
    height: 1px;
    background: var(--golden-sand);
}

.date {
    font-size: 1.5rem;
    color: var(--deep-teal);
    font-weight: 300;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: var(--warm-terracotta);
}

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

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

@keyframes floatA {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

@keyframes floatB {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(25px, -25px) scale(1.08);
    }
}

/* ===== PLANNING SECTION ===== */
.timeline {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.timeline::before {
    display: none;
}

.timeline-item {
    display: flex;
    margin-bottom: 0;
    position: relative;
}


.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    flex-direction: column;
}

.timeline-time {
    flex: none;
    text-align: left;
    padding: 0;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(61, 48, 41, 0.85);
    font-family: var(--font-body);
    letter-spacing: 1px;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem 1.5rem 1.4rem 4.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(61, 48, 41, 0.10);
    margin: 0;
    border-left: 4px solid rgba(var(--navy-rgb), 0.55);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-top-left-radius: 16px;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(var(--navy-rgb), 0.14);
}


.timeline-item:nth-child(even) .timeline-content {
    border-right: none;
    border-left: 4px solid rgba(var(--navy-rgb), 0.55);
}

.timeline-content::before {
    content: attr(data-icon);
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    transform: none;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-blue));
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--deep-teal), 0 4px 12px rgba(var(--navy-rgb), 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}


.timeline-item:nth-child(even) .timeline-content::before {
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    box-shadow: 0 0 0 3px var(--burnt-orange), 0 4px 12px rgba(var(--navy-rgb), 0.20);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--burnt-orange);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.timeline-content p {
    color: var(--text-light);
}

.day-title {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(var(--navy-rgb), 0.92);
    margin: 2.75rem 0 1.5rem;
    letter-spacing: 1px;
}

.section-lead {
    max-width: 820px;
    margin: -1.5rem auto 2.5rem;
    text-align: center;
    color: var(--text-medium);
    font-size: 1.08rem;
    line-height: 1.9;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.modal-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    color: var(--warm-terracotta);
}

/* ===== VENUE SECTION ===== */
.venue-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.venue-details {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow:
        0 4px 20px rgba(var(--navy-rgb), 0.10),
        inset 0 0 0 1px rgba(var(--navy-rgb), 0.08);
    border-left: 5px solid var(--burnt-orange);
    position: relative;
    overflow: hidden;
}

/* Motif méditerranéen en coin (désactivé: effet "pixels" visible) */
.venue-details::before {
    content: none;
}

.venue-details h3 {
    font-size: 2rem;
    color: var(--burnt-orange);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.address, .parking {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.map-container {
    position: relative;
}

#map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(var(--navy-rgb), 0.10);
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-blue));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.map-link:active {
    transform: translateY(0) scale(0.99);
}

.map-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(var(--navy-rgb), 0.16);
}

.map-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.map-link:hover::before {
    left: 100%;
}

.map-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(var(--navy-rgb), 0.18);
}

.map-link:active {
    transform: translateY(0);
}

/* ===== ACCOMMODATIONS SECTION ===== */
.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.accommodation-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow:
        0 4px 20px rgba(var(--navy-rgb), 0.10),
        inset 0 0 0 1px rgba(var(--navy-rgb), 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid var(--deep-teal);
    border-right: 6px solid var(--burnt-orange);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Motif terrazzo méditerranéen en arrière-plan */
.accommodation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 30%, var(--deep-teal) 3px, transparent 3px),
        radial-gradient(circle at 60% 70%, var(--burnt-orange) 4px, transparent 4px),
        radial-gradient(circle at 80% 20%, var(--golden-sand) 2px, transparent 2px),
        radial-gradient(circle at 30% 80%, var(--sage-green) 3px, transparent 3px),
        radial-gradient(circle at 90% 60%, var(--deep-teal) 2px, transparent 2px),
        radial-gradient(circle at 15% 50%, var(--burnt-orange) 3px, transparent 3px);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Bordure supérieure en mosaïque */
.accommodation-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background:
        linear-gradient(90deg,
            var(--deep-teal) 0%, var(--deep-teal) 25%,
            var(--burnt-orange) 25%, var(--burnt-orange) 50%,
            var(--golden-sand) 50%, var(--golden-sand) 75%,
            var(--sage-green) 75%, var(--sage-green) 100%
        );
    background-size: 40px 100%;
}

.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(var(--navy-rgb), 0.16);
}

.accommodation-card h3 {
    font-size: 1.5rem;
    color: var(--burnt-orange);
    margin-bottom: 1rem;
    min-height: 3.5rem;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
}

.distance {
    color: var(--sage-green);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.description {
    color: var(--text-light);
    margin: 1rem 0;
    min-height: 3rem;
}

.price {
    font-weight: 600;
    color: var(--deep-teal);
    font-size: 1.1rem;
    margin: 1rem 0;
}

.contact-btn {
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-blue));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--navy-rgb), 0.22);
}

.contact-btn:active {
    transform: translateY(0);
}

/* ===== GIFT REGISTRY SECTION ===== */
.gift-registry {
    background: var(--warm-white);
}

.gift-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow:
        0 8px 30px rgba(var(--navy-rgb), 0.12),
        inset 0 0 0 1px rgba(var(--navy-rgb), 0.08);
    position: relative;
    overflow: hidden;
    border-top: 6px solid transparent;
    border-image: linear-gradient(90deg, var(--golden-sand), var(--burnt-orange), var(--deep-teal)) 1;
    border-image-slice: 1 0 0 0;
}

/* Motif de pièces de monnaie méditerranéennes (désactivé: effet "pixels" visible) */
.gift-content::before {
    content: none;
}

.gift-intro {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--burnt-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.gift-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.gift-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    color: white;
    text-decoration: none;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.18);
    position: relative;
    overflow: hidden;
}

.gift-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.gift-btn:hover::before {
    left: 100%;
}

.gift-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(var(--navy-rgb), 0.24);
}

.gift-btn:active {
    transform: translateY(-1px);
}

/* ===== DRESS CODE SECTION ===== */
.dress-code {
    background: none;
}

.dress-code-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow:
        0 8px 30px rgba(var(--navy-rgb), 0.12),
        inset 0 0 0 1px rgba(var(--navy-rgb), 0.08);
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid transparent;
    border-image: linear-gradient(90deg, var(--deep-teal), var(--burnt-orange), var(--golden-sand)) 1;
    border-image-slice: 0 0 1 0;
}

/* Motif de tissus italiens (désactivé: créait un carré visible en bas à gauche) */
.dress-code-content::before {
    content: none;
}

.dress-code-intro {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--burnt-orange);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.dress-code-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.dress-code-btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--deep-teal), var(--ocean-blue));
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--navy-rgb), 0.18);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dress-code-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.dress-code-btn:hover::before {
    left: 100%;
}

.dress-code-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(var(--navy-rgb), 0.24);
}

.dress-code-btn:active {
    transform: translateY(-1px);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--burnt-orange);
}

/* ===== RSVP SECTION ===== */
.rsvp {
    background: var(--warm-white);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow:
        0 8px 30px rgba(var(--navy-rgb), 0.12),
        inset 0 0 0 1px rgba(var(--navy-rgb), 0.08);
    border-top: 8px solid transparent;
    border-image: linear-gradient(90deg,
        var(--deep-teal) 0%, var(--deep-teal) 33%,
        var(--burnt-orange) 33%, var(--burnt-orange) 66%,
        var(--golden-sand) 66%, var(--golden-sand) 100%
    ) 1;
    border-image-slice: 1 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Pattern zellige subtil en arrière-plan du formulaire */
.rsvp-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, var(--deep-teal) 20px, var(--deep-teal) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, var(--burnt-orange) 20px, var(--burnt-orange) 21px);
    pointer-events: none;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--cream);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 4px rgba(var(--navy-rgb), 0.15);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-section-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--burnt-orange);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-label-custom,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--soft-peach);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.checkbox-label span {
    flex: 1;
    word-wrap: break-word;
}

.radio-label-custom:hover,
.checkbox-label:hover {
    background: var(--cream);
    border-color: var(--deep-teal);
}

.radio-label-custom input[type="radio"],
.checkbox-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.8rem;
    cursor: pointer;
    accent-color: var(--golden-sand);
}

.radio-label-custom input[type="radio"]:checked ~ span,
.checkbox-label input[type="radio"]:checked ~ span,
.checkbox-label input[type="checkbox"]:checked ~ span {
    font-weight: 600;
    color: var(--burnt-orange);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--burnt-orange), var(--warm-terracotta));
    color: white;
    border: none;
    border-radius: 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(var(--navy-rgb), 0.26);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    max-width: 700px;
    margin: 2rem auto 0;
    background: linear-gradient(135deg, #D4EDDA, #C3E6CB);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.success-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    background: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #155724;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #155724;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--burnt-orange);
    color: var(--warm-white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-contact a {
    color: var(--cream);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .header-inner {
        gap: 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    /* On évite le header trop chargé sur mobile: le CTA est dans le menu */
    .header-cta {
        display: none;
    }
}

/* Tablet */
@media (max-width: 968px) {
    .container {
        padding: 0 1.5rem;
    }

    h2.section-title {
        font-size: 2rem;
    }

    .names {
        font-size: 3rem;
    }

    .venue-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .accommodation-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .names {
        font-size: 2.5rem;
    }

    .date {
        font-size: 1.2rem;
    }

    .date-container {
        gap: 1rem;
    }

    .decorative-line {
        width: 50px;
    }

    h2.section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }

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

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-label-custom,
    .checkbox-label {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .venue-details,
    .accommodation-card {
        padding: 1.5rem;
    }

    #map {
        height: 300px;
    }

    .map-link.center {
        display: table;
        margin: 1rem auto 0;
        text-align: center;
        max-width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 5.5rem 0 3rem;
        gap: 1.75rem;
    }

    .header-cta {
        padding: 0.75rem 1rem;
    }

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

    .hero-actions {
        justify-content: center;
    }

    .couple-illustration {
        max-width: 280px;
    }

    .couple-message {
        font-size: 1.4rem;
    }

    .couple-section {
        padding: 3rem 0;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline-content {
        padding-left: 4.15rem;
    }
}

@media (max-width: 400px) {
    .names {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 1.5rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body::before {
        animation: none !important;
    }

    .hero-content,
    .hero-copy,
    .hero-card,
    .scroll-indicator,
    .hero::before,
    .hero::after {
        animation: none !important;
    }

    .reveal,
    .collapsible,
    .success-message,
    .map-link,
    .contact-btn,
    .submit-btn,
    .timeline-content,
    .form-group input,
    .form-group select,
    .form-group textarea {
        transition: none !important;
    }
}
