/* Import police personnalisée */
@font-face {
    font-family: 'Fleur de Leah';
    src: 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;
}

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

body {
    overflow-x: hidden;
}

/* Navigation styles */
#nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(26, 54, 93, 0.05);
}

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

/* Responsive Navigation Adjustments */
/* Les liens nav ne s'affichent qu'à partir de 1024px */

.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;
}

.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);
}

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

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

.mobile-nav-link:hover {
    color: #2d5282;
    transform: translateX(10px);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    color: #1a365d;
    border: 1px solid #2d5282;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #1a365d;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary:hover {
    color: #fafafa;
    border-color: #1a365d;
}

.btn-primary:hover::before {
    width: 100%;
}

/* White Button for Hero */
.btn-primary-white {
    display: inline-block;
    padding: 1rem 3rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ffffff;
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-primary-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-primary-white:hover {
    color: #1a365d;
    border-color: #ffffff;
}

.btn-primary-white:hover::before {
    width: 100%;
}

/* Collection Cards */
.collection-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.collection-card:hover {
    transform: translateY(-8px);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0%);
    will-change: transform;
}

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

/* Gallery Overlay with Description */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

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

.gallery-text {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Parallax Images */
.parallax-image {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Hero Image specific */
.hero-image {
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Title */
#accueil h1 {
    letter-spacing: -0.02em;
}

/* Ensure full width */
body, html {
    width: 100%;
    overflow-x: hidden;
}

section {
    width: 100%;
}

/* Carousel Large Visuals */
.carousel-container {
    width: 90%;
    position: relative;
    margin: 0 auto;
}

.carousel-slide {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.carousel-slide > div {
    flex-shrink: 0;
    border-radius: 0.5rem;
}

@media (min-width: 1024px) {
    .carousel-slide {
        gap: 1.5rem;
    }
}

.hover-zoom {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.carousel-arrow {
    background: none;
    border: 1px solid #2d5282;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.carousel-arrow:hover {
    background: #1a365d;
    border-color: #1a365d;
}

.carousel-arrow:hover svg {
    color: #ffffff;
}

/* Animations */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 3s ease-in-out infinite;
}

/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Selection */
::selection {
    background: #bee3f8;
    color: #1a365d;
}

::-moz-selection {
    background: #bee3f8;
    color: #1a365d;
}

/* Smooth transitions */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid #bee3f8;
    outline-offset: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #bee3f8;
    outline-offset: 4px;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: rgba(26, 54, 93, 0.15);
}

.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.faq-question {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question:hover {
    padding-left: 0.5rem;
    color: #1a365d;
}

.faq-answer {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.faq-answer:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
    animation: fadeInDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    font-weight: 300;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.05em;
    }
    
    /* Smaller sections padding on mobile */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Tablet breakpoints */
@media (min-width: 768px) and (max-width: 1024px) {
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Large screens */
@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

/* Loading state for images */
img {
    background: #f5f5f5;
}

/* Smooth scroll offset for fixed nav */
section {
    scroll-margin-top: 6rem;
}

/* Custom scrollbar (webkit only) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fafafa;
}

::-webkit-scrollbar-thumb {
    background: #bee3f8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d5282;
}

/* Print styles */
@media print {
    nav, footer {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link,
    .btn-primary {
        border-width: 2px;
    }
}

/* Elegant hover effects for text */
h1, h2, h3 {
    transition: color 0.3s ease;
}

/* Parallax subtle effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(20px)) {
    #nav.scrolled {
        backdrop-filter: blur(20px);
    }
}

/* Grid gap optimization for mobile */
@media (max-width: 640px) {
    .grid {
        gap: 1rem;
    }
}

/* Aspect ratio fallback for older browsers */
@supports not (aspect-ratio: 1 / 1) {
    .aspect-square {
        position: relative;
        padding-bottom: 100%;
    }
    
    .aspect-square img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Elegant divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #bee3f8, transparent);
}

/* Subtle animation on page load */
body {
    animation: fadeIn 0.5s ease-in;
}

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

/* Hover state optimization */
@media (hover: hover) {
    .collection-card,
    .gallery-item,
    .nav-link,
    .btn-primary {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired
    body {
        background: #1a1a1a;
        color: #fafafa;
    }
    */
}

/* Text rendering optimization */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Letter spacing refinement */
.tracking-widest {
    letter-spacing: 0.15em;
}

/* Elegant underline effect */
.underline-elegant {
    position: relative;
}

.underline-elegant::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    opacity: 0.3;
}
