/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    /* Couleurs italiennes */
    --green-italy: #009246;
    --white-italy: #FFFFFF;
    --red-italy: #CE2B37;
    
    /* Palette principale */
    --primary-color: #1a1a1a;
    --secondary-color: #d4af37;
    --accent-color: #CE2B37;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f5f0;
    --bg-dark: #1a1a1a;
    
    /* Typographie */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
    
    /* Ombres */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white-italy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========================================
   UTILITAIRES
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: var(--spacing-sm) 0;
}

.title-decoration span {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-italy), var(--red-italy));
    box-shadow: 0 2px 8px rgba(0, 146, 70, 0.2);
}

.title-decoration i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   BOUTONS FLOTTANTS ANIMÉS
   ======================================== */
.floating-actions {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.call-btn {
    background: linear-gradient(135deg, #06c167, #00a854);
    color: white;
    animation: pulse 2s infinite;
}

.call-btn:hover {
    animation: shake 0.5s;
}

.call-btn .btn-text {
    position: absolute;
    right: 70px;
    background: linear-gradient(135deg, #06c167, #00a854);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.875rem;
}

.call-btn:hover .btn-text {
    opacity: 1;
    right: 80px;
}

.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
}

.tiktok {
    background: #000000;
    color: white;
}

.floating-btn i {
    font-size: 1.5rem;
    z-index: 1;
}

/* Animation pulse pour le bouton d'appel */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(6, 193, 103, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(6, 193, 103, 0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0) translateY(-5px); }
    25% { transform: translateX(-5px) translateY(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) translateY(-5px) rotate(5deg); }
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 999;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--green-italy), var(--red-italy));
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: 0.5rem;
    z-index: 999;
    position: relative;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-toggle.active span {
    background: var(--accent-color);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--green-italy);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--red-italy);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(206, 43, 55, 0.3)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: var(--spacing-md);
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.flag-decoration {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--spacing-md);
    animation: slideInDown 0.8s ease;
}

.flag-stripe {
    width: 80px;
    height: 8px;
    animation: expandWidth 1s ease;
}

.flag-stripe.green {
    background: var(--green-italy);
    border-radius: 4px 0 0 4px;
}

.flag-stripe.white {
    background: var(--white-italy);
}

.flag-stripe.red {
    background: var(--red-italy);
    border-radius: 0 4px 4px 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.hero-stars i {
    color: var(--secondary-color);
}

.rating-text {
    font-weight: 600;
    margin-left: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #a52229);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(206, 43, 55, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    background: var(--secondary-color);
    color: white;
}

.hero-info {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    color: white;
    font-size: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.lead {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature i {
    font-size: 3rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.feature:hover i {
    transform: scale(1.2) rotate(10deg);
}

.feature span {
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu-section {
    padding: var(--spacing-xl) 0;
    background: white;
    position: relative;
    overflow: hidden;
}

/* Drapeau italien en arrière-plan subtil */
.menu-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 146, 70, 0.75) 0%,
        rgba(0, 146, 70, 0.75) 33%,
        rgba(255, 255, 255, 0.75) 33%,
        rgba(255, 255, 255, 0.75) 66%,
        rgba(206, 43, 55, 0.75) 66%,
        rgba(206, 43, 55, 0.75) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.menu-section > .container {
    position: relative;
    z-index: 1;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    position: relative;
}

/* Indicateur de scroll sur mobile */
@media (max-width: 768px) {
    .menu-section::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 60px;
        background: linear-gradient(to left, white, transparent);
        pointer-events: none;
        z-index: 1;
    }
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: white;
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color), #a52229);
    color: white;
    border-color: var(--accent-color);
}

.filter-btn i {
    font-size: 1.25rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.menu-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

/* Taille spéciale pour les images de boissons */
.menu-item.boissons .menu-item-image {
    height: 250px;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.menu-item.boissons .menu-item-image-container {
    background: #f0f0f0;
}

/* Taille spéciale pour les images de desserts */
.menu-item.desserts .menu-item-image {
    height: 250px;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.menu-item.desserts .menu-item-image-container {
    background: #f0f0f0;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.1);
}

.menu-item-image-container {
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.menu-item-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.menu-item-content {
    padding: var(--spacing-md);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--spacing-sm);
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
}

.menu-item-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.menu-item-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-sm);
}

.ingredient-tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 500;
}

.menu-item-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid #e0e0e0;
}

.order-btn {
    flex: 1;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--accent-color), #a52229);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item.hidden {
    display: none;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

/* Motif italien en arrière-plan */
.gallery-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 146, 70, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.gallery-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(206, 43, 55, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.gallery-section > .container {
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 146, 70, 0.8) 0%, rgba(206, 43, 55, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.contact-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.125rem;
    display: block;
    margin: var(--spacing-xs) 0;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-card p {
    color: var(--text-light);
    margin: 0.25rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-link.instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.social-link.tiktok {
    background: #000000;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

.scroll-top i {
    font-size: 1.25rem;
}