/* Variables et configuration */
:root {
    --primary: #b30b0b;
    --secondary: #4ECDC4;
    --accent: #b30b0b;
    --dark: #F39D08;
    --light: #FFFFFF;
    --gray-medium: #95A5A6;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: rgb(123, 14, 14);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--accent);
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #F39D08;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: #000000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    top: 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* Logo et animations du food truck */
/* Styles du Food Truck Logo */
.food-truck-logo {
    width: 150px;
    height: 90px;
    position: relative;
    margin-left: 15px;
    transform-origin: center center;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Animation du camion */
@keyframes truckMoveAndTurn {
    0% {
        transform: translateX(0) scaleX(1) translateY(0);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    20% {
        transform: translateX(40px) scaleX(1) translateY(-2px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    40% {
        transform: translateX(100px) scaleX(1) translateY(0);
        animation-timing-function: ease-out;
    }
    45% {
        transform: translateX(100px) scaleX(0.2) translateY(0);
        animation-timing-function: ease-in-out;
    }
    50% {
        transform: translateX(100px) scaleX(-1) translateY(-1px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    70% {
        transform: translateX(40px) scaleX(-1) translateY(-2px);
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
    90% {
        transform: translateX(0) scaleX(-1) translateY(0);
        animation-timing-function: ease-out;
    }
    95% {
        transform: translateX(0) scaleX(0.2) translateY(0);
        animation-timing-function: ease-in-out;
    }
    100% {
        transform: translateX(0) scaleX(1) translateY(0);
    }
}

.food-truck-logo {
    animation: truckMoveAndTurn 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animation des roues - Version corrigée */
@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wheel {
    transform-origin: center;
    animation: wheelSpin 2s linear infinite;
}

/* Animation de la fumée */
@keyframes smokeWave {
    0% {
        transform: translateX(30px) translateY(0) scale(0.8);
        opacity: 0;
        stroke-dashoffset: 0;
    }
    20% {
        transform: translateX(20px) translateY(-5px) scale(1);
        opacity: 0.8;
        stroke-dashoffset: 10;
    }
    60% {
        transform: translateX(-10px) translateY(-15px) scale(1.2);
        opacity: 0.6;
        stroke-dashoffset: 20;
    }
    100% {
        transform: translateX(-30px) translateY(-25px) scale(1.4);
        opacity: 0;
        stroke-dashoffset: 30;
    }
}

.cloud {
    animation: smokeWave 2s ease-out infinite;
    stroke-dasharray: 30;
    stroke-dashoffset: 0;
}

.cloud1 { animation-delay: 0s; }
.cloud2 { animation-delay: 0.3s; }
.cloud3 { animation-delay: 0.6s; }

/* Animation des particules */
@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: translate(-10px, -2px) scale(1.2) rotate(5deg);
        opacity: 0.8;
    }
    60% {
        transform: translate(-25px, -5px) scale(0.8) rotate(-5deg);
        opacity: 0.6;
    }
    100% {
        transform: translate(-40px, -8px) scale(0.4) rotate(0deg);
        opacity: 0;
    }
}

.particle {
    animation: particleFly 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform-origin: center center;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.3s; }
.p3 { animation-delay: 0.6s; }
.p4 { animation-delay: 0.9s; }
.p5 { animation-delay: 1.2s; }

/* Animation de suspension */
@keyframes suspension {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.truck-body {
    animation: suspension 4s ease-in-out infinite;
}

/* Effets de survol sur le camion */
.food-truck-logo:hover .truck-body {
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
}

.food-truck-logo:hover .particle {
    animation-duration: 1s;
}

/* Optimisations pour les performances */
.wheels, .smoke-clouds, .speed-particles {
    will-change: transform;
}

/* Styles pour les reflets des roues */
.wheel circle {
    transition: fill 0.3s ease;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
    .food-truck-logo {
        width: 120px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .food-truck-logo {
        width: 100px;
        height: 60px;
    }
}

/* Amélioration des performances d'animation */
@media (prefers-reduced-motion: reduce) {
    .food-truck-logo,
    .wheel,
    .cloud,
    .particle,
    .truck-body {
        animation: none;
    }
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Alert Message */
.alert-message {
    background: rgba(255, 255, 255, 0.266);
    border: 1px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 850px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Story Section */
.story-section {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text {
    padding: 2rem;
}

.story-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Values Section */
.values-section {
    background: #F39D08;
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

.value-item {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.266);
    border-radius: 15px;
    transition: var(--transition);
    position: relative;
}

.value-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

/* Services Section */
.services-section {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.266);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.service-image {
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-content {
    padding: 2rem;
}

/* Menu Section */
.menu-section {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.menu-item {
    background: rgba(255, 255, 255, 0.266);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.menu-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-content {
    padding: 2rem;
    text-align: center;
}

.menu-content h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.menu-content .separator {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.menu-content .price {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.burgers-section {
    background: #F39D08;
    padding: 2rem 0;
}

.burgers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.burger-card {
    perspective: 1000px;
    height: 450px;
    margin-bottom: 2rem;
}

.burger-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.burger-card.flipped .burger-card-inner {
    transform: rotateY(180deg);
}

.burger-card-front,
.burger-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.burger-card-front {
    background: var(--dark);
}

.burger-card-back {
    transform: rotateY(180deg);
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.burger-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.burger-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.burger-info {
    padding: 1.5rem;
    text-align: center;
}

.burger-info h3 {
    color: #b30b0b;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.flip-button {
    background: #b30b0b;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.flip-button:hover {
    background: #FF8787;
    transform: translateY(-2px);
}

.ingredients-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 1200px) {
    .burger-card {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .burger-card {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .burger-card {
        height: 350px;
    }
}

/* Testimonials Section */
.testimonials-section {
    background: #F39D08;
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.tripadvisor-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.tripadvisor-cta {
    text-align: center;
    margin-top: 3rem;
}

.cta-tripadvisor {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(179, 11, 11, 0.3);
}

.cta-tripadvisor:hover {
    background: #FF8787;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(179, 11, 11, 0.4);
}

.cta-tripadvisor i {
    font-size: 1.2rem;
}

.cta-tripadvisor:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(179, 11, 11, 0.3);
}

/* Version mobile */
@media (max-width: 768px) {
    .cta-tripadvisor {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.testimonials-container {
    overflow: hidden;
    padding: 1rem 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.266);
    border-radius: 15px;
    margin: 0 1rem;
    transition: var(--transition);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.testimonial-nav.prev { left: -20px; }
.testimonial-nav.next { right: -20px; }

/* Carousel Section */
.carousel-section {
    padding: 6rem 0;
    background: #F39D08;
    position: relative;
    z-index: 1;
}

.carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: var(--light);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev { left: 1rem; }
.carousel-button.next { right: 1rem; }

.carousel-dots,
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-dot,
.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active,
.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Map Section */
.map-section {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 1;
}

.map-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: rgb(0, 0, 0);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--light);
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0.8;
}

h9 {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .story-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .services-grid,
    .menu-grid,
    .burgers-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .burger-card {
        height: 400px;
    }

    .carousel-slide img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .burger-card {
        height: 350px;
    }

    .testimonials-carousel {
        padding: 1rem;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-button.prev {
        left: 0.5rem;
    }

    .carousel-button.next {
        right: 0.5rem;
    }
}
