:root {
    /* --- Palette de Couleurs (Basée sur le Flyer) --- */
    --royal-red: #960018;      /* Rouge Carmin/Bordeaux profond du flyer */
    --royal-red-light: #C41E3A; /* Rouge plus vif pour les CTAs */
    --royal-cream: #FDF6E3;    /* Beige papier/pâte */
    --royal-wood: #2C1810;     /* Marron très foncé pour le texte principal */
    
    --bg-body: var(--royal-cream);
    --bg-surface: #FFFFFF;
    --bg-dark: #1A0F0A;        /* Pour le footer ou sections contrastées */

    --text-main: #2C1810;
    --text-light: #FDF6E3;
    --text-muted: #6D5446;

    /* --- Typographie --- */
    /* Oswald pour les titres "Sérieux" (Pizza Royal) */
    --font-heading: 'Oswald', sans-serif; 
    /* Une font manuscrite pour les titres de sections comme sur le flyer */
    --font-brush: 'Permanent Marker', cursive; 
    --font-body: 'Poppins', sans-serif;

    /* --- Spacing & Layout --- */
    --container-width: 1200px;
    --header-height: 90px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;

    /* --- Effets --- */
    --shadow-card: 0 10px 25px rgba(44, 24, 16, 0.08);
    --shadow-hover: 0 15px 35px rgba(150, 0, 24, 0.15);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4c5a9' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-main);
}

.title-brush {
    font-family: var(--font-brush);
    color: var(--royal-red);
    transform: rotate(-2deg);
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-red { color: var(--royal-red); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--royal-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--royal-red-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(150, 0, 24, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--royal-red);
    color: var(--royal-red);
}

.btn-outline:hover {
    background: var(--royal-red);
    color: white;
}

/* --- Header / Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    background: var(--royal-cream);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(253, 246, 227, 0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: black; /* Comme sur le flyer */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.brand-logo .crown {
    fill: #555; /* Couronne grise comme sur le flyer */
    width: 30px;
    height: 30px;
    transform: translateY(-8px) rotate(-10deg);
}

.brand-logo span {
    color: black; /* "Royal" aussi en noir sur le flyer */
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 3px;
    background-color: var(--royal-red);
    transition: width 0.3s;
}

.nav-link:hover { color: var(--royal-red); }
.nav-link:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    position: relative;
    background: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: var(--royal-red);
    border: 2px solid transparent;
    transition: 0.3s;
}

.cart-btn:hover {
    border-color: var(--royal-red);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -2px; right: -2px;
    background: var(--royal-red);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.mobile-toggle {
    display: none;
    background: none; border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 90vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background-color: var(--bg-dark); /* Fallback */
    overflow: hidden;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Gradient rouge sombre en bas comme sur le flyer */
    background: linear-gradient(to right, rgba(150, 0, 24, 0.9) 0%, rgba(20, 10, 5, 0.6) 100%);
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-badge {
    display: inline-block;
    background: white;
    color: var(--royal-red);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px black;
}

.hero-title .brush {
    font-family: var(--font-brush);
    color: var(--royal-cream);
    font-size: 4rem;
    display: block;
    transform: rotate(-2deg) translateY(10px);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* --- Marquee Promo (Style Flyer) --- */
.promo-bar {
    background: var(--royal-red);
    color: white;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 4px solid white;
    border-bottom: 4px solid white;
}

.promo-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.promo-item {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 60px;
    display: flex;
    align-items: center;
}

.promo-item span {
    background: white;
    color: var(--royal-red);
    padding: 2px 10px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1.2rem;
    transform: rotate(-3deg);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Menu Section --- */
.section { padding: 100px 0; }

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title-wrapper::after {
    content: '';
    display: block;
    width: 80px; height: 4px;
    background: var(--royal-red);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title { font-size: 3.5rem; color: var(--text-main); }

/* --- Pizza Grid --- */
.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.pizza-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.pizza-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Sticker rond rouge pour le prix (comme sur le flyer) */
.price-sticker {
    position: absolute;
    top: 20px; right: 20px;
    width: 70px; height: 70px;
    background-color: var(--royal-red);
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-brush);
    transform: rotate(10deg);
    z-index: 10;
    box-shadow: 0 5px 15px rgba(150, 0, 24, 0.4);
    border: 2px solid white;
}

.price-sticker .amount { font-size: 1.4rem; line-height: 1; }
.price-sticker .currency { font-size: 0.8rem; }

.pizza-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.pizza-img-wrapper img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.pizza-card:hover .pizza-img-wrapper img {
    transform: scale(1.1) rotate(2deg);
}

.pizza-info {
    padding: 25px;
    text-align: center;
}

.pizza-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.pizza-ingredients {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-style: italic;
}

.add-btn {
    width: 100%;
    padding: 12px;
    background: var(--royal-wood);
    color: white;
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border-radius: var(--radius-sm);
}

.add-btn:hover { background: var(--royal-red); }

/* --- Features (Livraison etc) --- */
.features-section {
    background-color: var(--royal-wood);
    color: var(--royal-cream);
    position: relative;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 30px;
    border: 2px dashed rgba(253, 246, 227, 0.2);
    border-radius: var(--radius-md);
    transition: 0.3s;
}

.feature-item:hover {
    border-color: var(--royal-red);
    background: rgba(255,255,255,0.05);
}

.feature-number {
    font-family: var(--font-brush);
    font-size: 3rem;
    color: var(--royal-red);
    margin-bottom: 10px;
    display: block;
}

/* --- Footer --- */
.footer {
    background: #111;
    color: #888;
    padding-top: 80px;
    padding-bottom: 30px;
    border-top: 5px solid var(--royal-red);
}

.footer h3 { color: white; margin-bottom: 20px; }

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Responsive --- */

/* Tablette (max 992px) */
@media (max-width: 992px) {
    .container { padding: 0 30px; }
    
    .hero-title { font-size: 4.5rem; }
    .hero-title .brush { font-size: 3rem; }
    
    .nav-menu { display: none; }
    .mobile-toggle { display: block; margin-left: 15px; }
    
    /* On cache le texte "Commander" mais on garde l'icone panier et le burger */
    .nav-actions .btn-primary { display: none; } 
    
    .promo-item { font-size: 1.4rem; margin-right: 40px; }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section { padding: 60px 0; }
    .section-title { font-size: 2.5rem; }
    
    .hero { 
        height: auto; 
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }
    
    .hero-content { 
        align-items: center; 
    }
    
    .hero-title { font-size: 3.5rem; }
    .hero-title .brush { font-size: 2.2rem; }
    
    .hero-bg::after {
        background: linear-gradient(to bottom, rgba(150, 0, 24, 0.7), rgba(0,0,0,0.9));
    }

    /* Grilles */
    .features-grid { grid-template-columns: 1fr; gap: 30px; }
    .pizza-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    
    /* Footer Stack */
    .footer .container > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }
    
    /* Section A Côté */
    .section[style*="background-color: white"] div[style*="flex"] {
        flex-direction: column;
        align-items: center;
    }
}

/* Petits Mobiles (max 480px) */
@media (max-width: 480px) {
    .hero-title { font-size: 2.8rem; }
    .btn { width: 100%; justify-content: center; }
    .hero-content div[style*="flex"] { flex-direction: column; width: 100%; gap: 15px; }
    
    .brand-logo { font-size: 1.6rem; }
    
    .promo-bar { padding: 15px 0; }
    .promo-item { font-size: 1.1rem; }
}
