/* ══════════════════════════════════════
   GLOBAL — Thème Traiteur
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=DM+Sans:wght@400;500;600&display=swap');

.navbar-logo {
    height: 4rem;
    width: auto;
}

:root {
    --rouge-nappe:    #c0392b;
    --rouge-hover:    #a93226;
    --creme:          #fdf6ee;
    --creme-fond:     #faf5ef;
    --brun-doux:      #5d4037;
    --brun-clair:     #8d6e63;
    --vert-olive:     #6b8e23;
    --vert-badge:     #e8f0d8;
    --jaune-badge:    #fef3d0;
    --bleu-badge:     #dbeafe;
    --gris-texte:     #6b5b50;
    --gris-clair:     #e8e0d8;
    --blanc:          #fff;
    --ombre-douce:    0 2px 12px rgba(93, 64, 55, .08);
    --ombre-elevee:   0 8px 32px rgba(93, 64, 55, .14);
    --radius:         12px;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--brun-doux);
    background: var(--creme-fond) !important;
    margin: 0;
}

/* ── Titres ── */
h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--brun-doux);
}

/* ── Liens ── */
a {
    color: var(--rouge-nappe);
    text-decoration: none;
    transition: color .2s;
}
a:hover {
    color: var(--rouge-hover);
}

.navbar .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--creme) !important;
}
.navbar .nav-link {
    font-weight: 500;
    color: rgba(253,246,238,.85) !important;
    transition: color .2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--creme) !important;
}

/* ── Cards globales ── */
.card {
    border: 1px solid var(--gris-clair);
    border-radius: var(--radius);
    background: var(--blanc);
}

/* ── Formulaires ── */
.form-control,
.form-select {
    border: 1px solid var(--gris-clair);
    border-radius: 8px;
    background: var(--creme);
    color: var(--brun-doux);
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--rouge-nappe);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
    outline: none;
}
.form-label {
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brun-clair);
}

/* ── Badges ── */
.badge-pill {
    font-size: .72rem;
    font-weight: 600;
    padding: .28rem .75rem;
    border-radius: 20px;
    letter-spacing: .02em;
    white-space: nowrap;
}
.badge-pill.regime-vegetarien   { background: #e8f5e9; color: #2e7d32; }
.badge-pill.regime-vegan        { background: #fdf1e6; color: #9f4500; }
.badge-pill.regime-poisson      { background: #e0f7fa; color: #00838f; }
.badge-pill.regime-aucun        { background: #fbe9e7; color: #c82f1e; }
.badge-pill.pill-theme          { background: var(--jaune-badge); color: #b7791f; }

/* ── Page header réutilisable ── */
.page-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}
.page-header h1 {
    font-weight: 700;
    font-size: 2.4rem;
    margin-bottom: .35rem;
}
.page-header .subtitle {
    font-size: .95rem;
    color: var(--brun-clair);
    font-style: italic;
}
.page-header .divider {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--rouge-nappe);
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ── Flash messages ── */
.alert-success {
    background: var(--vert-badge);
    border-color: var(--vert-olive);
    color: #2e5a10;
}

/* ── Bordure nappe vichy ── */
.nappe-border {
    --sq: 10px;
    --c: rgba(192, 57, 43, .38);
    --bg: var(--creme);
    padding: 6px;
    border-radius: calc(var(--radius) + 6px);
    background:
        repeating-linear-gradient(0deg, var(--c) 0 var(--sq), transparent var(--sq) calc(var(--sq) * 2)),
        repeating-linear-gradient(90deg, var(--c) 0 var(--sq), transparent var(--sq) calc(var(--sq) * 2)),
        var(--bg);
    box-shadow: var(--ombre-douce);
    transition: box-shadow .3s, transform .3s, background .3s;
    position: relative;
}

/* Variantes de nappe par régime */
.nappe-border.regime-vegetarien { --c: rgba(46, 125, 50, .32); }
.nappe-border.regime-vegan      { --c: rgba(159, 69, 0, .32); }
.nappe-border.regime-poisson    { --c: rgba(0, 131, 143, .32); }
.nappe-border.regime-aucun      { --c: rgba(192, 57, 43, .32); }


.nappe-border:hover {
    box-shadow: var(--ombre-elevee);
    transform: translateY(-4px);
}

/* ── Card menu intérieur ── */
.menu-inner {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

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

/* ── Responsive ── */
@media (max-width: 991px) {
    .page-header h1 { font-size: 1.8rem; }
}

.presentation-section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 420px;
}

.presentation-content {
    backdrop-filter: blur(3px);
}

.footer-horaires {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem 1rem;
    font-size: .78rem;
    color: var(--gris-texte);
    margin: .5rem 0;
}
.footer-horaire-item strong {
    color: var(--brun-doux);
}