/* Import police personnalisée */
@font-face {
    font-family: 'Fleur de Leah';
    src: url('FleurDeLeah-Regular.woff2') format('woff2'),
         url('FleurDeLeah-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only - Accessibilité SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    background-color: #fafafa; /* Cream background */
    color: #1a365d; /* Primary color text */
}

/* Utility Classes pour le style Bento / Néo-Brutalisme */
.bento-grid {
    display: grid;
    width: 100%;
    border-collapse: collapse;
}

.bento-cell {
    border: 1px solid #1a365d;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Définition des bordures BLEUES */
.border-primary {
    border-color: #1a365d !important;
    border-width: 1px !important;
}

.divide-primary > :not([hidden]) ~ :not([hidden]) {
    border-color: #1a365d !important;
    border-width: 1px !important;
}

/* =========================================
   Navigation Styles
   ========================================= */
#nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
}

#nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 54, 93, 0.1);
}

/* Nav Links */
.nav-link {
    color: #2d5282;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    padding: 0;
    height: auto;
    border: none;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #1a365d;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #1a365d;
    transform: translateY(-2px);
    background-color: transparent;
}

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

/* Mobile Menu */
.mobile-nav-link {
    font-family: 'Fleur de Leah', Georgia, serif;
    font-size: 3rem;
    color: #1a365d;
    transition: all 0.3s ease;
}

/* Buttons - Néo-Brutalisme */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    color: #1a365d;
    border: 1px solid #1a365d;
    background-color: transparent;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border-radius: 0 !important;
}

.btn-primary:hover {
    background-color: #1a365d;
    color: #fff;
}

/* Collection Cards */
.collection-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.collection-card:hover img {
    transform: scale(1.05);
}

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

.hover-zoom {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Typography Refinements */
h1, h2, h3, h4 {
    color: #1a365d;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Réseaux Sociaux - Animations */
.social-icon {
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: inherit;
}

.social-icon:hover::before {
    transform: scale(1);
    opacity: 0.1;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon svg {
    position: relative;
    z-index: 1;
}

/* Gallery Overlay */
.gallery-overlay {
    background: rgba(26, 54, 93, 0.9);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff;
    border-left: 1px solid #1a365d;
}
::-webkit-scrollbar-thumb {
    background: #1a365d;
    border-radius: 0;
}

/* Specific Bento Layout Helpers */
.bento-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Espacement global des sections */
section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* Espacements spécifiques préservés */
#collections {
    margin-bottom: 0;
}

#evenementiel {
    margin-top: 0;
    margin-bottom: 0;
}

section[id="abonnement"] {
    margin-top: 0;
    margin-bottom: 0;
}

section:has(.auto-rows-\[200px\]) {
    margin-bottom: 0;
}

/* ========================================
   Bandeau bleu (marquee) - Mobile friendly
   ======================================== */
.top-marquee {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.7rem;
}

@media (max-width: 640px) {
    .top-marquee {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.75rem;
        letter-spacing: 0.18em;
    }

    .top-marquee > div {
        display: flex;
        animation: carousel 15s linear infinite;
        gap: 3rem;
    }

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

    .top-marquee-item {
        white-space: nowrap;
        flex-shrink: 0;
        min-width: max-content;
    }

    .top-marquee-item.separator {
        display: none;
    }
}

@media (min-width: 641px) {
    .top-marquee > div {
        display: flex;
        justify-content: space-around;
        align-items: center;
        width: 100%;
    }

    .top-marquee-item {
        flex: 1;
        text-align: center;
    }

    .top-marquee-item.separator {
        display: inline;
    }
}

/* ========================================
   FAQ Accordéon - Responsive
   ======================================== */

.faq-header {
    flex-shrink: 0;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
    cursor: pointer;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    min-height: 60px;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(250, 250, 240, 0.5);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #1a365d;
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: rgba(26, 54, 93, 0.4);
    transition: transform 0.4s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #1a365d;
}

.faq-item.active {
    background-color: rgba(250, 250, 250, 0.5);
}

.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    opacity: 1;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0;
}

@media (min-width: 1024px) {
    .faq-accordion-container {
        flex-grow: 1;
        min-height: 400px;
    }

    .faq-item {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        min-height: 0;
        transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-item.active {
        flex: 2 1 0;
    }

    .faq-question {
        flex-shrink: 0;
    }

    .faq-answer {
        flex-grow: 1;
        max-height: none;
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        max-height: none;
        padding-bottom: 1rem;
    }
}

/* Espacement interne des sections */
#collections > div:first-child {
    padding-top: 4rem;
}

#collections > div:last-child {
    padding-bottom: 4rem;
}

#evenementiel > div {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#abonnement > div {
    padding-top: 0;
    padding-bottom: 0;
}

#collections p,
#collections h2,
#collections h3 {
    margin-bottom: 1.5rem;
}

#evenementiel p,
#evenementiel h3 {
    margin-bottom: 1.5rem;
}

#abonnement p,
#abonnement h2 {
    margin-bottom: 1.5rem;
}

#abonnement ul {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

#abonnement li {
    margin-bottom: 1rem;
}

/* --- MOTION DESIGN & ANIMATIONS --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeInScale 0.8s ease-out forwards;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    will-change: background-position;
}

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease-out;
}

.link-underline:hover::after {
    width: 100%;
}

.blur-load {
    filter: blur(20px);
    transition: filter 0.5s ease-out;
}

.blur-load.loaded {
    filter: blur(0);
}

/* Animations florales */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.floral-decoration svg {
    animation: float 6s ease-in-out infinite;
}

.floral-decoration svg:nth-child(2) {
    animation-delay: 1s;
}

.floral-decoration svg:nth-child(3) {
    animation-delay: 2s;
}

.card-3d {
    perspective: 1000px;
}

.card-3d-inner {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: translateZ(20px);
}

.decorative-element {
    animation: float 8s ease-in-out infinite;
}

.decorative-element:nth-child(even) {
    animation-direction: reverse;
    animation-duration: 10s;
}

.floral-pattern svg {
    transition: transform 0.5s ease;
}

.floral-pattern:hover svg {
    transform: rotate(15deg) scale(1.1);
}
