/* ============================================
   FLEURISTE 3D - Design epure & accessible
   Tous les contrastes valides WCAG AA (4.5:1 min)
   ============================================ */

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

:root {
    --color-dark: #1a1014;
    --color-dark-soft: #2a1e22;
    --color-primary: #c2506a;
    --color-primary-dark: #943d52;
    --color-accent: #d4a06a;
    --color-text: #1a1014;          /* sur bg clair : 16:1 */
    --color-text-mid: #4a3038;      /* sur bg clair : 10:1 */
    --color-cream: #faf6f3;
    --color-bg: #ffffff;
    --color-bg-alt: #f6f0ec;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --container: 1200px;
    --header-height: 80px;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Focus ---- */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-dark);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    font-weight: 700;
}

.skip-link:focus { top: 0; color: #fff; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .anim-fade-up, .anim-fade-right, .anim-fade-left {
        opacity: 1; transform: none;
    }
    #petals-canvas, #hero-3d-canvas { display: none; }
}

/* ---- Canvas ---- */
#petals-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

#hero-3d-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ---- Layout ---- */
.container {
    width: 88%;
    max-width: var(--container);
    margin: 0 auto;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover { color: var(--color-primary-dark); }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 15px 36px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(194, 80, 106, 0.3);
}

/* Sur fond sombre */
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background: #fff;
    color: var(--color-dark);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Sur fond clair */
.btn-outline-dark {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}
.btn-outline-dark:hover, .btn-outline-dark:focus-visible {
    background: var(--color-text);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: calc(var(--header-height) + 24px);
    padding-top: 24px;
    z-index: 1000;
    transition: all 0.4s ease;
}
.site-header.scrolled { padding-top: 12px; height: calc(var(--header-height) + 12px); }

/* Sur le hero sombre : texte clair */
.site-header:not(.scrolled) {
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 1001;
}

.site-title-link {
    color: #fff;
    transition: color 0.4s;
}
.scrolled .site-title-link {
    color: var(--color-text);
}

/* Nav */
.nav-list {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-list li a {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}
.scrolled .nav-list li a { color: var(--color-text-mid); }
.scrolled .nav-list li a:hover { color: var(--color-text); }

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
}
.nav-list li a:hover::after,
.nav-list li a:focus-visible::after { width: 100%; }

/* Menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}
.scrolled .menu-toggle span { background: var(--color-text); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   HERO - Fond sombre, texte blanc garanti
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(160deg, #1a1014 0%, #2a1520 40%, #1e1218 100%);
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 24px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-accent);  /* dore sur fond sombre : >7:1 */
    margin-bottom: 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85); /* sur #1a1014 : >12:1 */
    margin-bottom: 36px;
    line-height: 1.85;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-band {
    position: relative;
    z-index: 1;
    background: var(--color-primary-dark);
    padding: 14px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track span {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.8);
    padding-right: 16px;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   SECTIONS - fond blanc opaque, texte sombre
   ============================================ */
.section {
    position: relative;
    z-index: 1;
    padding: 110px 0;
    background: var(--color-bg);
}

/* Plus de ::before semi-transparent, on utilise un vrai fond opaque */

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);   /* #c2506a sur blanc : 4.6:1 */
    margin-bottom: 12px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2,
.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    color: var(--color-text);   /* #1a1014 sur blanc : 16:1 */
    line-height: 1.25;
    font-weight: 600;
}

/* ---- About ---- */
.about {
    background: var(--color-cream);
}

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

.about-image img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.about-text p {
    font-size: 1.02rem;
    color: var(--color-text-mid);  /* #4a3038 sur cream : 9.2:1 */
    margin-top: 18px;
    line-height: 1.9;
}

.about-signature {
    margin-top: 28px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-primary-dark);  /* 6.8:1 sur cream */
}

/* ---- Fullwidth image ---- */
.section-fullimage {
    position: relative;
    z-index: 1;
    height: 45vh;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-img {
    position: absolute;
    inset: -20%;
    width: 140%;
    height: 140%;
    object-fit: cover;
}

.fullimage-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 16, 20, 0.6); /* overlay fort */
    z-index: 1;
}

.fullimage-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.fullimage-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
    color: #fff;
    font-weight: 600;
    font-style: italic;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* ---- Services ---- */
.services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ece5e0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.service-card-image { overflow: hidden; }

.service-card-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.06);
}

.service-card-body {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--color-text-mid);
    line-height: 1.8;
}

/* ---- Stats ---- */
.stats-band {
    background: var(--color-dark);
    padding: 90px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 3.8vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255,255,255,0.75); /* sur dark : >9:1 */
}

/* ---- Gallery ---- */
.gallery {
    background: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* ---- Testimonials ---- */
.testimonials {
    background: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--color-cream);
    padding: 40px 32px 32px;
    border-radius: var(--radius);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: 12px;
    left: 28px;
}

.testimonial-card blockquote p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.98rem;
    line-height: 1.85;
    color: var(--color-text);   /* 16:1 sur cream */
    margin-bottom: 20px;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary-dark); /* 6.8:1 sur cream */
}

/* ---- CTA Final ---- */
.cta-final {
    background: var(--color-cream);
    text-align: center;
    padding: 100px 0;
}

.cta-final-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    color: var(--color-text);
    margin-bottom: 14px;
    font-weight: 600;
}

.cta-final-content p {
    color: var(--color-text-mid);
    font-size: 1.08rem;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-final-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 70% at 20% 0%, rgba(184, 80, 110, 0.18), transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 100%, rgba(120, 60, 140, 0.12), transparent 60%),
        var(--color-dark);
    color: rgba(255,255,255,0.75);
    padding: 80px 0 28px;
    overflow: hidden;
}
.site-footer .container { position: relative; z-index: 2; }

/* Petales flottants dans le footer */
.footer-petals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.footer-petal {
    position: absolute;
    top: -30px;
    width: 14px;
    height: 17px;
    background: radial-gradient(ellipse at 35% 30%, #f4bcc8 0%, #c06880 60%, #6a2a3e 100%);
    border-radius: 150% 0 150% 0 / 100% 0 100% 0;
    opacity: 0;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
    animation: footer-fall 22s linear infinite;
    will-change: transform, opacity;
}
@keyframes footer-fall {
    0%   { transform: translate3d(0, -40px, 0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.7; }
    50%  { transform: translate3d(var(--drift, 30px), 50%, 0) rotate(200deg); opacity: 0.55; }
    100% { transform: translate3d(calc(var(--drift, 30px) * 1.4), 120%, 0) rotate(480deg); opacity: 0; }
}

/* Reveal des colonnes au scroll */
.footer-col {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(.2,.8,.3,1), transform 0.9s cubic-bezier(.2,.8,.3,1);
}
.site-footer.in-view .footer-col {
    opacity: 1;
    transform: translateY(0);
}
.site-footer.in-view .footer-col:nth-child(1) { transition-delay: 0s; }
.site-footer.in-view .footer-col:nth-child(2) { transition-delay: 0.12s; }
.site-footer.in-view .footer-col:nth-child(3) { transition-delay: 0.24s; }
.site-footer.in-view .footer-col:nth-child(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .footer-petal { display: none; }
    .footer-col { opacity: 1; transform: none; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #fff;
    margin-bottom: 12px;
}

.footer-col p { line-height: 1.8; }

.footer-col a {
    color: rgba(255,255,255,0.75);
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.25);
    text-underline-offset: 3px;
}
.footer-col a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

.social-links { display: flex; gap: 10px; }

.social-links a {
    padding: 8px 16px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.social-links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(212,160,106,0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 22px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(40px);
}
.anim-fade-right {
    opacity: 0;
    transform: translateX(-50px);
}
.anim-fade-left {
    opacity: 0;
    transform: translateX(50px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

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

    .main-nav {
        position: fixed;
        top: 0; right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: var(--color-bg);
        padding: 100px 36px 36px;
        transition: right 0.4s ease;
        box-shadow: -8px 0 40px rgba(0,0,0,0.12);
        z-index: 1000;
    }
    .main-nav.open { right: 0; }
    .main-nav .nav-list li a { color: var(--color-text); }

    .nav-list { flex-direction: column; gap: 20px; }
    .nav-list li a { font-size: 1.1rem; }

    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .service-card { grid-template-columns: 1fr; }
    .service-card-image img { min-height: 180px; max-height: 220px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .section { padding: 72px 0; }
    .hero-scroll-indicator { display: none; }

    #hero-3d-canvas { display: none; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .hero-buttons, .cta-final-buttons { flex-direction: column; align-items: center; }
}

/* ---- Bouquet signature 3D ---- */
.signature {
    padding: clamp(90px, 14vh, 150px) 0;
    background: linear-gradient(180deg, #faf6f2 0%, #f4ebe5 100%);
}
.signature-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}
.signature-text .section-label {
    display: inline-block;
    color: #b05a6e;
    font-size: 0.78rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}
.signature-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin: 0 0 24px;
    color: #2a141c;
}
.signature-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #5a3f4a;
    margin-bottom: 32px;
    max-width: 42ch;
}
.signature-stage {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 620px;
    border-radius: 14px;
    background: radial-gradient(ellipse at 50% 35%, #fffcfa 0%, #f4e7df 55%, #ead4ca 100%);
    box-shadow:
        0 60px 120px -40px rgba(80, 30, 45, 0.28),
        inset 0 0 0 1px rgba(120, 60, 80, 0.06);
    overflow: hidden;
}
#signature-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
}
#signature-canvas:active { cursor: grabbing; }
.signature-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(80, 40, 55, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.signature.loaded .signature-hint { opacity: 1; }
.signature-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(120, 60, 80, 0.15);
    border-top-color: #b05a6e;
    border-radius: 50%;
    animation: signature-spin 0.9s linear infinite;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.signature.loaded .signature-loader,
.signature.load-failed .signature-loader { opacity: 0; pointer-events: none; }
@keyframes signature-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.signature.load-failed .signature-stage::after {
    content: 'Deposez votre modele dans assets/models/bouquet.glb';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: rgba(100, 50, 70, 0.55);
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    font-family: var(--font-heading);
}

@media (max-width: 900px) {
    .signature-grid { grid-template-columns: 1fr; gap: 40px; }
    .signature-stage { max-width: 100%; aspect-ratio: 1 / 1; }
}

/* ---- Manifesto editorial ---- */
.manifesto {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0c0509;
    color: #fff;
    padding: clamp(80px, 12vh, 140px) 24px;
}
.manifesto-bg {
    position: absolute;
    inset: -8% 0;
    z-index: 0;
    will-change: transform;
}
.manifesto-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    filter: saturate(0.85) contrast(1.05);
}
.manifesto-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(12, 5, 9, 0.25) 0%, rgba(12, 5, 9, 0.75) 75%),
        linear-gradient(180deg,
            #faf6f2 0%,
            #faf6f2 4%,
            rgba(12, 5, 9, 0.55) 14%,
            rgba(12, 5, 9, 0.35) 45%,
            rgba(12, 5, 9, 0.75) 88%,
            rgba(12, 5, 9, 0.95) 100%);
    pointer-events: none;
}

/* Petales flottants dans le manifesto */
.manifesto-petals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.manifesto-petal {
    position: absolute;
    top: -40px;
    width: 18px;
    height: 22px;
    background: radial-gradient(ellipse at 35% 30%, #f5c4d0 0%, #d27a8e 55%, #a14a60 100%);
    border-radius: 150% 0 150% 0 / 100% 0 100% 0;
    opacity: 0;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    animation: manifesto-fall 16s linear infinite;
    will-change: transform, opacity;
}
@keyframes manifesto-fall {
    0%   { transform: translate3d(0, -60px, 0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    50%  { transform: translate3d(var(--drift, 40px), 55vh, 0) rotate(220deg); opacity: 0.8; }
    92%  { opacity: 0.6; }
    100% { transform: translate3d(calc(var(--drift, 40px) * 1.5), 110vh, 0) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .manifesto-petal { display: none; }
}
.manifesto-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    text-align: center;
}
.manifesto-label {
    display: inline-block;
    color: #e8b4c0;
    font-size: 0.78rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: clamp(32px, 5vh, 56px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
.manifesto.in-view .manifesto-label {
    opacity: 1;
    transform: translateY(0);
}
.manifesto-phrase {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 clamp(40px, 7vh, 72px);
}
.manifesto-line {
    display: block;
    overflow: hidden;
}
.manifesto-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.9em) rotate(2deg);
    filter: blur(10px);
    transition:
        opacity 1.1s cubic-bezier(.2, .7, .2, 1),
        transform 1.2s cubic-bezier(.2, .7, .2, 1),
        filter 1.1s cubic-bezier(.2, .7, .2, 1);
    margin-right: 0.25em;
}
.manifesto-line:last-child .manifesto-word { margin-right: 0; }
.manifesto.in-view .manifesto-word {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
}
.manifesto-em {
    font-style: italic;
    color: #e8b4c0;
}
.manifesto-sub {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
    transition-delay: 0.8s;
}
.manifesto.in-view .manifesto-sub {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .manifesto-label,
    .manifesto-word,
    .manifesto-sub {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ---- Galerie bento + reveals ---- */
.gallery-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(140px, 18vw, 220px);
    gap: clamp(10px, 1.2vw, 18px);
    perspective: 1400px;
}
.gallery-bento .gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    cursor: zoom-in;
    grid-column: span 2;
    grid-row: span 2;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-shadow: 0 25px 50px -25px rgba(40, 15, 25, 0.35);
    opacity: 0;
    transform: translateY(50px) rotateX(-12deg);
}
.gallery-bento .gallery-item.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition: opacity 1s cubic-bezier(.2,.8,.3,1), transform 1.1s cubic-bezier(.2,.8,.3,1);
}
.gallery-bento .gallery-item:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery-bento .gallery-item:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.gallery-bento .gallery-item:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.gallery-bento .gallery-item:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.gallery-bento .gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 2; }
.gallery-bento .gallery-item:nth-child(6) { grid-column: span 2; grid-row: span 2; }

.gallery-bento .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.04);
    transition: transform 0.9s cubic-bezier(.2,.8,.3,1);
}
.gallery-bento .gallery-item:hover img { transform: scale(1.12); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 10, 18, 0.78) 0%, rgba(30, 10, 18, 0.25) 45%, transparent 70%);
    opacity: 0;
    transition: opacity 0.45s ease;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 22px 24px;
    margin: 0;
}
.gallery-bento .gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-label {
    color: #fff;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    transform: translateY(10px);
    transition: transform 0.45s ease;
}
.gallery-item-icon {
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 300;
    transform: translateY(10px) rotate(0);
    transition: transform 0.45s ease;
}
.gallery-bento .gallery-item:hover .gallery-item-label { transform: translateY(0); }
.gallery-bento .gallery-item:hover .gallery-item-icon { transform: translateY(0) rotate(90deg); }

@media (max-width: 900px) {
    .gallery-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: clamp(150px, 40vw, 220px);
    }
    .gallery-bento .gallery-item,
    .gallery-bento .gallery-item:nth-child(1),
    .gallery-bento .gallery-item:nth-child(2),
    .gallery-bento .gallery-item:nth-child(3),
    .gallery-bento .gallery-item:nth-child(4),
    .gallery-bento .gallery-item:nth-child(5),
    .gallery-bento .gallery-item:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-bento .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 6, 10, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease, background 0.45s ease, backdrop-filter 0.45s ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: auto;
    background: rgba(12, 6, 10, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.lightbox-img {
    max-width: 86vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7);
    transform: scale(0.88);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(.2,.8,.3,1), opacity 0.35s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); opacity: 1; }
.lightbox-caption {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0 16px;
    text-align: center;
}
.lightbox button {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.7rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.lightbox button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-close:hover { transform: scale(1.08); }

@media (max-width: 600px) {
    .lightbox button { width: 44px; height: 44px; font-size: 1.4rem; }
    .lightbox-close { top: 12px; right: 12px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* ---- Tilt 3D subtil sur les cartes ---- */
.services-grid, .gallery-grid, .testimonials-grid, .about-grid {
    perspective: 1200px;
}
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(.2,.9,.3,1), box-shadow 0.4s ease;
    will-change: transform;
}
.tilt-3d:hover {
    transition: transform 0.12s ease-out, box-shadow 0.3s ease;
    box-shadow: 0 22px 55px -18px rgba(40, 10, 25, 0.35);
}
.about-image img {
    transform-style: preserve-3d;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .tilt-3d, .about-image img { transform: none !important; transition: none !important; }
}
@media (hover: none) {
    .tilt-3d { transform: none !important; }
}
