/* ==========================================================================
   Le Pizzaiole — refonte 2026
   Design tokens choisis pour coller à l'identité réelle du resto (logo
   rouge/vert/noir, four à bois, comptoir bois/rouge — voir img/logo.png,
   img/bg.jpeg, img/bg2.jpg) plutôt qu'une palette générique.
   ========================================================================== */

:root {
    /* Couleurs */
    --color-primary: #8f2a22;       /* rouge brique, four à bois */
    --color-primary-dark: #6b1f19;
    --color-accent: #b9852c;        /* doré, croûte/fromage */
    --color-accent-dark: #96691f;
    --color-leaf: #3f6b47;          /* vert basilic, touche discrète */
    --color-bg: #faf3e8;            /* crème chaude */
    --color-surface: #fffdf9;
    --color-fg: #241a14;            /* quasi-noir chaud */
    --color-fg-muted: #6b5d51;
    --color-border: #e7dac2;

    /* Typo */
    --font-display: 'Playfair Display SC', Georgia, serif;
    --font-body: 'Karla', system-ui, -apple-system, sans-serif;

    /* Échelle d'espacement (spacieux — site vitrine, pas un dashboard) */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6rem;

    --radius: 10px;
    --shadow-soft: 0 8px 24px rgba(36, 26, 20, 0.12);
    --max-width: 1180px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #1c1512;
        --color-surface: #241b16;
        --color-fg: #f5ece0;
        --color-fg-muted: #c9b8a6;
        --color-border: #3a2c22;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html,
body {
    /* Filet de sécurité : le panneau de menu mobile (.main-nav) est caché hors-écran
       via translateX(100%) — certains navigateurs mobiles comptent quand même cet
       espace dans la largeur scrollable, ce qui permettait de glisser latéralement.
       Même pattern déjà utilisé ailleurs sur les dashboards Alezy pour ce cas précis. */
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-fg);
    background: var(--color-bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-1) var(--space-2);
    z-index: 200;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 var(--space-2);
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--color-primary);
}

p {
    max-width: 62ch;
}

.section {
    padding: var(--space-6) 0;
}

.section-intro {
    max-width: 640px;
    margin: 0 auto var(--space-4);
    text-align: center;
}

.section-intro p {
    margin: 0 auto;
    color: var(--color-fg-muted);
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 243, 232, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(28, 21, 18, 0.92);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-display);
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--color-fg);
}

.site-logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.main-nav a:not(.btn) {
    color: var(--color-fg);
    text-decoration: none;
    font-weight: 600;
    padding: var(--space-1) 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:not(.btn):hover {
    border-bottom-color: var(--color-accent);
}

.nav-toggle {
    display: none;
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 150ms ease, background-color 200ms ease, box-shadow 200ms ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: inherit;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 88dvh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(20, 12, 9, 0.35) 0%, rgba(20, 12, 9, 0.55) 55%, rgba(15, 9, 7, 0.85) 100%),
        url('../img/bg2.jpg');
    background-size: cover;
    background-position: center 30%;
}

.hero-content {
    padding-bottom: var(--space-6);
    max-width: 720px;
}

.hero-eyebrow {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #f4d9a8;
    margin-bottom: var(--space-2);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: var(--space-2);
}

.hero p {
    color: #f1e8db;
    font-size: 1.1rem;
    max-width: 52ch;
    margin-bottom: var(--space-3);
}

/* ---------- Valeurs / intro ---------- */

.values-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-2);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.values-list li {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-2);
    text-align: center;
    font-weight: 600;
}

/* ---------- Adresses ---------- */

.locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
}

.location-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.location-card h3 {
    color: var(--color-fg);
    margin-bottom: 0;
    font-size: 1.4rem;
}

.location-address {
    color: var(--color-fg-muted);
    margin: 0;
}

.location-phone {
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.hours-table td {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.hours-table td:first-child {
    font-weight: 700;
    width: 35%;
}

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

.location-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- Carte / desserts ---------- */

.menu-section {
    background: var(--color-primary);
    color: #fff;
}

.menu-section h2 {
    color: #fff;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-4);
    align-items: center;
}

.menu-grid p {
    color: #f1e2c9;
}

.dessert-list {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 var(--space-3);
}

.dessert-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.menu-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* ---------- Bande photo ambiance ---------- */

.ambiance {
    position: relative;
    min-height: 420px;
    background-image: linear-gradient(180deg, rgba(20, 12, 9, 0.05), rgba(20, 12, 9, 0.35)), url('../img/bg.jpeg');
    background-size: cover;
    background-position: center;
}

/* ---------- Footer ---------- */

.site-footer {
    background: #1c1310;
    color: #d8c8b6;
    padding: var(--space-5) 0 var(--space-4);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    align-items: flex-start;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-social:hover {
    background: var(--color-primary);
}

.legal {
    margin-top: var(--space-3);
    font-size: 0.85rem;
    line-height: 1.7;
    color: #b5a494;
}

.legal a {
    color: #e6c88f;
}

.back-to-top {
    color: #e6c88f;
    text-decoration: none;
    font-weight: 600;
}

/* ---------- Responsive nav (mobile) ---------- */

@media (max-width: 760px) {
    .main-nav {
        position: fixed;
        inset: 64px 0 0 0;
        background: var(--color-bg);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-3);
        gap: var(--space-2);
        transform: translateX(100%);
        transition: transform 250ms ease;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-fg);
    }

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

    .menu-grid .menu-image {
        order: -1;
    }
}
