/* ========================================
   La Mariée Bleu — Site Vitrine
   Design moderne et dynamique
   ======================================== */

:root {
    --color-ivory: #faf8f5;
    --color-cream: #f5f0e8;
    --color-champagne: #e8dfd4;
    --color-gold: #c4a574;
    --color-bleu: #5b7c8a;
    --color-bleu-fonce: #3d5a66;
    --color-charcoal: #1a1a1a;
    --color-text: #4a4a4a;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-ivory);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ----- Header & Hero ----- */
.header {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, var(--color-cream) 0%, var(--color-ivory) 40%, var(--color-champagne) 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(184, 160, 120, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(91, 124, 138, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 8s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* Nav dynamique */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all var(--transition);
}

.nav-scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-charcoal);
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: transform var(--transition), color var(--transition);
}

.logo:hover {
    color: var(--color-bleu-fonce);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-bleu-fonce);
    transition: width var(--transition) var(--ease-out);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-charcoal);
}

/* Hero */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.hero-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin-bottom: 2rem;
    animation: fadeInUp 1s var(--ease-out) 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.hero-title-line {
    display: block;
    animation: fadeInUp 1s var(--ease-out) both;
}

.hero-title-line:first-child {
    animation-delay: 0.4s;
}

.hero-title-accent {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--color-bleu-fonce) 0%, var(--color-bleu) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.9;
    animation: fadeInUp 1s var(--ease-out) 0.7s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    text-decoration: none;
    border: 1px solid var(--color-charcoal);
    transition: all var(--transition);
    animation: fadeInUp 1s var(--ease-out) 0.9s both;
}

.hero-cta:hover {
    background: var(--color-charcoal);
    color: white;
    transform: translateY(-2px);
}

.hero-cta svg {
    transition: transform var(--transition);
}

.hero-cta:hover svg {
    transform: translateY(2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Scroll Reveal ----- */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--delay, 0s);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item[data-reveal] {
    transition-delay: calc(var(--delay, 0s) + 0.1s);
}

/* ----- Intro Section ----- */
.intro {
    max-width: 720px;
    margin: 0 auto;
    padding: 6rem 2rem 5rem;
    text-align: center;
}

.intro-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.9;
}

.intro-text strong {
    color: var(--color-charcoal);
}

/* ----- Gallery ----- */
.gallery {
    padding: 5rem 2rem 6rem;
    background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-cream) 50%, var(--color-ivory) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--color-charcoal);
    text-align: center;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3.5rem;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 26, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ----- Expertise ----- */
.expertise {
    padding: 5rem 2rem 6rem;
}

.expertise-content {
    max-width: 640px;
    margin: 0 auto;
}

.expertise-content p {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text);
    text-align: center;
}

/* ----- Footer ----- */
.footer {
    background: var(--color-charcoal);
    color: var(--color-cream);
    padding: 4rem 2rem 2.5rem;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.15);
}

.footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.footer-address {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

.footer-phone {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-cream);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition), transform var(--transition);
}

.footer-phone:hover {
    color: var(--color-gold);
    transform: translateY(-1px);
}

.footer-divider {
    display: none;
    width: 1px;
    height: 50px;
    background: rgba(245, 240, 232, 0.25);
}

@media (min-width: 600px) {
    .footer-divider {
        display: block;
    }
}

.footer-legal {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-align: center;
    margin-top: 2rem;
    opacity: 0.6;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .hero-line {
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        margin-top: 2rem;
    }

    .intro {
        padding: 4rem 1.5rem;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gallery {
        padding: 4rem 1.5rem 5rem;
    }
}
