@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    overflow-x: hidden;
    background: #0a0a0a;
    padding-top: 70px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 1rem 0;
    margin: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    color: #fff;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10000;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.background-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: opacity;
    filter: blur(0);
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000;
    -webkit-transform: translate3d(0, 0, 0);
}

.bg-image.active {
    opacity: 1;
}

.bg-image[data-category="automobile"] {
    background-image: url('images/automobile-bg.jpeg');
}

.bg-image[data-category="moto"] {
    background-image: url('images/moto-bg.jpeg');
}

.bg-image[data-category="portraits"] {
    background-image: url('images/portraits-bg.jpeg');
}

.bg-image[data-category="evenements"] {
    background-image: url('images/evenements-bg.jpeg');
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: #fff;
    z-index: 1;
    padding: 2rem;
    position: relative;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.static-text {
    display: inline-block;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Slot Machine Effect */
.slot-machine {
    display: inline-block;
    position: relative;
    height: 6.5rem;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
    padding: 0 2rem;
    min-width: 550px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.slot-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    perspective: 1000px;
}

.slot-words {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.slot-words.spinning {
    animation: elegantSpin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes elegantSpin {
    0% {
        transform: rotateX(0deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotateX(90deg) translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg) translateY(0);
        opacity: 1;
    }
}

.word {
    font-size: 5.5rem;
    font-weight: 400;
    height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    letter-spacing: 2px;
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.word::before {
    content: attr(data-category);
    position: absolute;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.8s ease;
}

.word.active {
    opacity: 1;
    transform: translateY(0);
    animation: glow 2s ease-in-out infinite;
}

.word.active::before {
    opacity: 0.3;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 255, 255, 0.5);
    }
}

.word[data-category="automobile"] {
    color: #e8b86d;
}

.word[data-category="automobile"].active {
    text-shadow: 0 0 30px rgba(232, 184, 109, 0.6),
                 0 0 60px rgba(232, 184, 109, 0.4);
}

.word[data-category="moto"] {
    color: #e8b86d;
}

.word[data-category="moto"].active {
    text-shadow: 0 0 30px rgba(232, 184, 109, 0.6),
                 0 0 60px rgba(232, 184, 109, 0.4);
}

.word[data-category="portraits"] {
    color: #e8b86d;
}

.word[data-category="portraits"].active {
    text-shadow: 0 0 30px rgba(232, 184, 109, 0.6),
                 0 0 60px rgba(232, 184, 109, 0.4);
}

.word[data-category="evenements"] {
    color: #e8b86d;
}

.word[data-category="evenements"].active {
    text-shadow: 0 0 30px rgba(232, 184, 109, 0.6),
                 0 0 60px rgba(232, 184, 109, 0.4);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cta-button {
    padding: 1.2rem 3rem;
    font-size: 0.9rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Portfolio Section */
.portfolio-section {
    padding: 8rem 2rem 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
    z-index: 10;
}

.portfolio-section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
    color: #f5f5f5;
    position: relative;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center;
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 4rem;
}

.portfolio-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Instagram Feed Grid */
.instagram-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.instagram-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.instagram-icon {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.instagram-item:hover .instagram-icon {
    transform: scale(1);
}

/* Instagram CTA Button */
.instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: inline-flex;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.instagram-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(188, 24, 136, 0.5);
}

.instagram-cta svg {
    flex-shrink: 0;
}

/* Presentation Section */
.presentation-section {
    padding: 5rem 2rem;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.presentation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse at 10% 20%, rgba(40, 40, 40, 0.8) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 30%, rgba(60, 60, 60, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 25%, rgba(50, 50, 50, 0.7) 0%, transparent 45%),
        radial-gradient(ellipse at 30% 60%, rgba(45, 45, 45, 0.75) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 65%, rgba(55, 55, 55, 0.65) 0%, transparent 45%),
        radial-gradient(ellipse at 15% 80%, rgba(40, 40, 40, 0.7) 0%, transparent 40%),
        radial-gradient(ellipse at 85% 85%, rgba(50, 50, 50, 0.6) 0%, transparent 45%);
    background-size: 100% 100%;
    opacity: 0.6;
    pointer-events: none;
    animation: waveFlow 20s ease-in-out infinite;
}

.presentation-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.015) 2%,
            transparent 4%,
            rgba(0, 0, 0, 0.3) 5%,
            transparent 6%,
            rgba(255, 255, 255, 0.02) 8%,
            transparent 10%
        );
    background-size: 200px 100%;
    transform: rotate(-15deg) skewY(5deg);
    pointer-events: none;
    opacity: 0.7;
    animation: waveSlide 15s linear infinite;
}

@keyframes waveFlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes waveSlide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 0;
    }
}

.presentation-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.presentation-text {
    flex: 1;
    color: #fff;
}

.presentation-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
    color: #fff;
}

.presentation-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.presentation-video {
    flex: 1;
    max-width: 600px;
}

.presentation-video video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

/* Responsive for Presentation Section */
@media (max-width: 768px) {
    .presentation-content {
        flex-direction: column-reverse;
    }
    
    .presentation-text {
        text-align: center;
    }
    
    .presentation-text h2 {
        font-size: 2.5rem;
    }
    
    .presentation-video {
        max-width: 100%;
    }
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: #f5f5f5;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
}

.about-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.about-carousel-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    padding: 20px;
}

.about-carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.about-carousel-track {
    display: flex;
    animation: scrollCarousel 40s linear infinite;
    width: max-content;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.about-carousel-track img {
    height: 400px;
    width: auto;
    object-fit: contain;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    background: #f5f5f5;
}

@keyframes scrollCarousel {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Désactiver le hover pause sur mobile */
@media (hover: hover) and (pointer: fine) {
    .about-carousel:hover .about-carousel-track {
        animation-play-state: paused;
    }
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .about-layout {
        flex-direction: column;
        text-align: center;
    }
    
    .about-carousel-container {
        width: 100%;
        padding: 15px;
    }
    
    .about-carousel {
        height: 300px;
    }
    
    .about-carousel-track img {
        height: 300px;
        margin-right: 15px;
    }
    
    .bg-image[data-category="automobile"] {
        background-image: url('images/automobile-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="moto"] {
        background-image: url('images/moto-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="portraits"] {
        background-image: url('images/portrait-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="evenements"] {
        background-image: url('images/evenement-mobile-bg.jpeg');
    }
}

/* Tarifs Section */
.tarifs-section {
    padding: 5rem 2rem;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.tarifs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(30, 30, 30, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(25, 25, 25, 0.6) 0%, transparent 50%);
    background-size: 100% 100%;
    opacity: 0.8;
    pointer-events: none;
}

.tarifs-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tarifs-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #e0e0e0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
}

.tarifs-section h2::before,
.tarifs-section h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, #666, transparent);
}

.tarifs-section h2::before {
    left: 0;
    transform: translateX(-170px);
}

.tarifs-section h2::after {
    right: 0;
    transform: translateX(170px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.pricing-card {
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(100, 100, 100, 0.3);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #bc1888, #8a2be2);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(188, 24, 136, 0.3);
    border-color: rgba(188, 24, 136, 0.5);
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.3;
}

.pricing-card .photo-count {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(100, 100, 100, 0.2);
    padding-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.pricing-card .price-custom {
    font-size: 1rem;
    color: #e0e0e0;
    font-weight: 500;
    line-height: 1.5;
    padding-top: 0.5rem;
}

.displacement-title {
    margin-top: 3rem;
}

.displacement-table {
    max-width: 900px;
    margin: 0 auto;
}

.displacement-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.displacement-table thead {
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.9) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.displacement-table th {
    padding: 1.5rem 2rem;
    text-align: left;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(188, 24, 136, 0.5);
}

.displacement-table td {
    padding: 1.5rem 2rem;
    color: #e0e0e0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(100, 100, 100, 0.2);
}

.displacement-table tbody tr:last-child td {
    border-bottom: none;
}

.displacement-table tbody tr {
    transition: background 0.3s ease;
}

.displacement-table tbody tr:hover {
    background: rgba(188, 24, 136, 0.1);
}

/* Responsive Tarifs */
@media (max-width: 768px) {
    .tarifs-section h2::before,
    .tarifs-section h2::after {
        display: none;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .displacement-table th,
    .displacement-table td {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(188, 24, 136, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 10px 50px rgba(188, 24, 136, 0.4);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    z-index: 10001;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(188, 24, 136, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    gap: 2rem;
    padding: 3rem;
}

.modal-image {
    flex: 1;
    max-width: 300px;
    max-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-text {
    flex: 1;
    color: #fff;
}

.modal-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #bc1888, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-text #modalDescription {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.modal-text #modalDescription p {
    margin-bottom: 1rem;
}

.modal-text #modalDescription ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-text #modalDescription li {
    margin-bottom: 0.5rem;
}

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

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

/* Modal Responsive */
@media (max-width: 768px) {
    .modal.show {
        align-items: flex-start;
        padding-top: 2rem;
        overflow-y: auto;
    }
    
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 0 auto 2rem;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }
    
    .modal-body {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
    
    .modal-image {
        max-width: 100%;
        max-height: 300px;
    }
    
    .modal-text h2 {
        font-size: 2rem;
    }
    
    .modal-close {
        right: 10px;
        top: 10px;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.contact-section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 3px;
    color: #f5f5f5;
    position: relative;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.03);
    color: #f5f5f5;
    transition: all 0.3s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    padding: 1.2rem 3rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
}

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

.contact-form button:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Captcha anti-spam */
.captcha-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.captcha-container label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.captcha-container #captcha-question {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.captcha-container input[type="text"] {
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #fff;
}


/* Responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
        position: relative;
    }
    
    body {
        padding-top: 0 !important;
        margin: 0;
        position: relative;
    }
    
    header {
        padding: 0.75rem 0;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* Optimisation du carrousel pour mobile - stabiliser les images */
    .hero {
        margin-top: 60px;
        position: relative;
    }
    
    .background-images {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
    }
    
    .bg-image {
        position: absolute;
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        will-change: opacity;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
        padding: 2rem;
        backdrop-filter: blur(10px);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
    }
    
    nav {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .word {
        font-size: 2.5rem;
        height: 4rem;
    }
    
    .slot-machine {
        height: 4rem;
        min-width: 250px;
        padding: 0 1rem;
    }
    
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 36px;
        width: auto;
    }
    
    .portfolio-section h2,
    .about-content h2,
    .contact-section h2 {
        font-size: 2.5rem;
    }
    
    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .instagram-cta {
        font-size: 0.9rem;
        padding: 0.9rem 2rem;
    }
    
    .about-carousel-container {
        padding: 10px;
        margin-bottom: 2rem;
    }
    
    .about-carousel {
        height: 200px;
    }
    
    .about-carousel-track img {
        height: 200px;
        margin-right: 10px;
    }
    
    .bg-image[data-category="automobile"] {
        background-image: url('images/automobile-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="moto"] {
        background-image: url('images/moto-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="portraits"] {
        background-image: url('images/portrait-mobile-bg.jpeg');
    }
    
    .bg-image[data-category="evenements"] {
        background-image: url('images/evenement-mobile-bg.jpeg');
    }
    
    .reviews-section h2 {
        font-size: 2.5rem;
    }
    
    .reviews-grid {
        gap: 1.5rem;
    }
    
    .review-card {
        flex: 1 1 100%;
        max-width: 500px;
        min-width: unset;
    }
    
    .review-form-container {
        padding: 2rem 1.5rem;
    }
    
    .average-rating {
        padding: 1.5rem 2rem;
    }
    
    .rating-number {
        font-size: 3rem;
    }
    
    .stars-display {
        font-size: 1.5rem;
    }
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 2rem;
    background: #0a0a0a;
    color: #fff;
}

.reviews-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.reviews-section .section-subtitle {
    text-align: center;
    color: #999;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Reviews Stats */
.reviews-stats {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.average-rating {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #c9a55a;
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.stars-display {
    font-size: 2rem;
    color: #c9a55a;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: #999;
    font-size: 0.95rem;
}

/* Reviews Container */
.reviews-container {
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
}

.review-card {
    flex: 0 1 400px;
    max-width: 400px;
    min-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Limiter à 3 par ligne sur grand écran */
@media (min-width: 1200px) {
    .reviews-grid {
        max-width: calc((400px * 3) + (2rem * 2));
    }
}

/* Tablette : 2 avis maximum par ligne, centrés */
@media (min-width: 769px) and (max-width: 1199px) {
    .reviews-grid {
        max-width: calc((400px * 2) + 2rem);
    }
    
    .review-card {
        flex: 0 1 calc(50% - 1rem);
        max-width: 400px;
    }
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 165, 90, 0.2);
    border-color: rgba(201, 165, 90, 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

.review-rating {
    color: #c9a55a;
    font-size: 1.2rem;
}

.review-comment {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-date {
    color: #666;
    font-size: 0.85rem;
    text-align: right;
}

.loading-message, .no-reviews-message {
    text-align: center;
    color: #999;
    padding: 3rem;
    font-size: 1.1rem;
}

/* Review Form */
.review-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #fff;
}

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

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #c9a55a;
}

.review-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Star Rating */
.rating-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating .star {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star,
.star-rating input[type="radio"]:checked ~ .star {
    color: #c9a55a;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.rating-text {
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.char-counter {
    text-align: right;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.submit-review-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #c9a55a 0%, #a08247 100%);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-review-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(201, 165, 90, 0.4);
}

.submit-review-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}
