/* Cart line controls base alignment: vertical layout with price on top */
.cart-line-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Responsive: adjust cart line controls on small screens */
@media (max-width: 420px) {
  .cart-line-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .cart-line-controls .qty-btn {
    width: 32px;
    height: 32px;
  }
  .cart-line-controls .qty-display {
    min-width: 28px;
    text-align: center;
  }
  .cart-line-controls .cart-line-price {
    text-align: center;
    width: 100%;
  }

  /* Élargir le cart-summary sur mobile */
  .commande-layout {
    gap: 1rem !important;
  }

  .commande-summary {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .commande-form {
    min-width: 100% !important;
    flex: 1 1 100% !important;
  }
}

/* Désactiver toutes les animations sur les boutons d'édition du panier */
.cancel-edit-btn,
.save-edit-btn {
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

.cancel-edit-btn:hover,
.save-edit-btn:hover {
  transform: none !important;
  animation: none !important;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-color: #D2691E;
    --secondary-color: #8B4513;
    --accent-color: #FF6B35;
    --text-dark: #2C1810;
    --text-light: #fff;
    --bg-light: #FFF8F0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*background: rgba(255, 255, 255, 0.045);*/
    /*backdrop-filter: blur(10px);*/
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.95);
}

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

.logo {
    height: 140px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 45px;
}

.navbar.scrolled .nav-links {
    margin-top: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-top: -30px;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

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

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

.nav-links .btn-commande:hover::after,
.nav-links .btn-commande.active::after {
    width: 0;
}

.btn-commande {
    background: var(--accent-color);
    color: var(--text-light) !important;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    cursor: pointer;
}

.btn-commande:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text-light) !important;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    /*background: linear-gradient(rgba(0, 0, 0, 0.374), rgba(30, 27, 27, 0.327)), url('../images/pizzahero.png');*/
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('../images/heroleo-t.jpg');

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

/* HeroFix - Classe identique à .hero */
.herofix {
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 6px 30px #000, 0 2px 5px #111;     
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

/* Hide mobile line break by default */
.mobile-break {
    display: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 6px 30px #000, 0 2px 5px #111;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-btn {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

/* Histoire Section */
.histoire {
    background: var(--bg-light);
}

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

.histoire-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.histoire-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Modalities Section */
.modalities {
    background: var(--text-dark);
    color: var(--text-light);
}

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

.modality-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: var(--transition);
}

.modality-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.modality-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Pizzas Recommandées */
.pizzas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pizza-card {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pizza-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pizza-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.milkshake-image {
    object-fit: contain;
    background: white;
}

.pizza-info {
    padding: 1.5rem;
    padding-top: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pizza-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.pizza-description {
    color: #666;
   /* margin-bottom: 1rem;*/
}

.pizza-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Make pizza card action buttons show hand cursor */
.pizza-card .hero-btn {
    cursor: pointer;
}

/* Supplements Toggle Button */
.toggle-supplements {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    border: 2px solid var(--accent-color);
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.toggle-supplements:hover {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add to Cart Button Hover (lighter effect) */
.pizza-card .hero-btn:hover {
    background: #FF8C5A !important; /* Lighter orange */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Supplements Dropdown - Menu flottant au-dessus */
.supplements-dropdown {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    z-index: 1000;
    display: none;
}

.supplements-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.supplements-dropdown-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--accent-color);
}

/* Style des options de suppléments dans le dropdown */
.supplements-dropdown .supplement-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
}

.supplements-dropdown .supplement-option:hover {
    background: #fff5f0;
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.supplements-dropdown .supplement-option:last-child {
    margin-bottom: 0;
}

.supplements-dropdown .supplement-label {
    font-weight: 500;
    color: var(--text-dark);
}

.supplements-dropdown .supplement-price {
    font-weight: bold;
    color: var(--accent-color);
}

/* Animation du dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personnalisée pour le dropdown */
.supplements-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.supplements-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.supplements-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.supplements-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #e65100;
}

/* Pizzas page flexbox layout */
.pizzas-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pizzas-flex .pizza-card {
    flex: 0 0 360px;
    max-width: 400px;
    min-width: 300px;
}

/* Pizzas page wider container */
.pizza-section .container {
    max-width: 1400px;
}

/* Carte page wider container */
.carte-section .container {
    max-width: 1400px;
}

/* Push size selection and below to bottom of card */
.pizza-card-actions {
    margin-top: auto;
}

/* Pizza Filter Styles */
.pizza-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover:not(.active) {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.filter-btn.active {
    background: var(--accent-color) !important;
    color: var(--text-light) !important;
}

.filter-btn:not(.active) {
    background: white;
    color: var(--text-dark);
}

/* Floating Cart Icon - Mobile Only */
.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--accent-color);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.floating-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.floating-cart-icon {
    width: 20px;
    height: 20px;
    position: relative;
    filter: brightness(0) invert(1);
}

.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
}

/* Show floating cart only on mobile */
/*@media (max-width: 768px) {*/
@media (max-width: 1045px) {
    .floating-cart {
        display: flex;
    }
    
    /* Hide floating cart when mobile menu is open */
    .nav-links.active ~ * .floating-cart,
    body.menu-open .floating-cart {
        display: none !important;
    }
    
    /* Hide floating cart on commande page */
    body.commande-page .floating-cart {
        display: none !important;
    }
}

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

/* Avis Clients */
.avis {
    background: var(--bg-light);
}

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

.avis-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.avis-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: #666;
}

.avis-author {
    font-weight: bold;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

/* Footer logo responsiveness */
.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 120px;
    width: auto;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

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

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

/* Responsive Design */
/*@media (max-width: 768px) {*/
@media (max-width: 1045px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #2C1810 0%, #1a0f08 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        margin-top: 0;
        padding-top: 4rem;
    }

    /* Logo in mobile menu */
    .nav-links::before {
        content: '';
        background-image: url('../images/pizzup.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 180px;
        height: 90px;
        margin-bottom: 0.5rem;
    }

    .nav-links.active {
        left: 0;
        padding-top: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .btn-commande {
        display: none;
    }

    /* Hide mobile menu logo in landscape orientation */
   /* @media (orientation: landscape) {*/
   @media (max-width: 1045px) and (orientation: landscape) and (max-height: 500px) {
        /* Reduce navbar logo size by half on mobile landscape */
        .logo {
            height: 70px;
        }
        .navbar.scrolled .logo {
            height: 40px;
        }
        .nav-links {
            padding-top: 2rem;
        }
        /* Hide logo on landscape */
        .nav-links::before {
            display: none;
        }
    }

    .nav-links.active .btn-commande {
        display: inline-block;
        padding: 6px 12px 6px 12px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .histoire-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .story-container, .modalite-container, .recom-container, .avisrec-container{
        max-width: 600px;
    }
}

/*@media (max-width: 480px) {*/
@media (max-width: 1045px) {
    .hero-content h1 {
        font-size: 1.6rem !important;
    }
    
    /* Show line break on mobile */
    .mobile-break {
        display: inline;
    }
    
    /* Extra padding for boissons page title on mobile */
    .hero-content-boissons {
        padding-bottom: 2rem !important;
    }
    
    /* Background position for accueil hero on mobile */
    .hero-accueil {
        min-height: 500px;
        background-position: 10% center !important;
        
    }
    
    /* Logo plus grand et centré sur page d'accueil en mobile */
    .accueil-page .nav-container {
        justify-content: center;
        position: relative;
    }
    
    .accueil-page .logo {
        height: 120px;
    }
    
    /* Positionner le hamburger à droite sur page d'accueil mobile */
    .accueil-page .hamburger {
        position: absolute;
        right: 1rem;
    }
    
    /* Décaler le hero-content vers le bas sur page d'accueil mobile */
    .accueil-page .hero-content {
        padding-top: 4rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero {
        height: 100vh;
        background-position: top center;
        align-items: start;
        padding-top: 130px;
    }




    .section {
        padding: 3rem 0;
    }

    .pizzas-grid,
    .avis-grid,
    .modalities-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        height: 50px;
    }

    .navbar.scrolled .logo {
        height: 40px;
    }

    /* Mobile checkout page improvements */
    .container > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }

    .container > div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 2rem;
    }
    
    /* Pizzas page mobile responsive */
    .pizzas-flex {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .pizzas-flex .pizza-card {
        flex: none;
        width: 100%;
        max-width: 400px;
        min-width: unset;
    }

    /* Size and supplements row - rester côte à côte même sur mobile */
    .size-supplements-row {
        gap: 0.5rem !important;
    }

    .size-supplements-row .size-selection,
    .size-supplements-row > div {
        flex: 1 !important;
    }

    .size-supplements-row label {
        font-size: 0.85rem !important;
    }

    .size-supplements-row select,
    .size-supplements-row .toggle-supplements {
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
    }
    
    /* Commande page specific responsive styles */
    .commande-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .commande-summary,
    .commande-form {
        min-width: unset !important;
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .herofix{
        max-height: 160px;
    }
}
