/* ============================================
   RESTAURANT SULTANA — Design System
   Mobile-first · Léger · Extensible
   ============================================ */

:root {
    /* Palette — Sultana : Bordeaux royal + Or + Sable de Djerba */
    --color-primary: #6E1423;          /* Bordeaux du logo */
    --color-primary-dark: #4A0E18;     /* Bordeaux profond */
    --color-primary-soft: #9B2233;
    --color-gold: #C9A961;             /* Or de la couronne */
    --color-gold-dark: #A8893F;
    --color-gold-soft: #E4CC8E;
    --color-accent: #2A9D8F;           /* Turquoise djerbien (accent secondaire) */
    --color-accent-dark: #21867A;
    --color-bg: #FBF7EC;               /* Sable clair */
    --color-bg-alt: #F5EFE0;
    --color-surface: #FFFFFF;
    --color-text: #2C1810;
    --color-text-soft: #6B5544;
    --color-border: #E4D9C3;

    /* Typo */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Radius & Shadow */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.06);
    --shadow-md: 0 8px 24px rgba(61, 40, 23, 0.10);
    --shadow-lg: 0 16px 40px rgba(61, 40, 23, 0.15);

    /* Layout */
    --container-max: 1200px;
    --header-h: 64px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 var(--space-sm); }
p { margin: 0 0 var(--space-sm); }
ul { list-style: none; padding: 0; margin: 0; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

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

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-lg);
}
.section-head h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--color-text);
}
.section-sub {
    color: var(--color-text-soft);
    font-size: 1rem;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-gold-dark);
    margin-bottom: var(--space-xs);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.eyebrow::before, .eyebrow::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--color-gold);
}
.section-head .eyebrow { justify-content: center; display: inline-flex; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(201, 169, 97, 0.4);
    border: 1px solid var(--color-gold);
}
.btn-primary:hover { background: var(--color-gold-dark); border-color: var(--color-gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5); }
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid var(--color-gold);
}
.btn-ghost:hover { background: rgba(201, 169, 97, 0.15); }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    background: rgba(245, 239, 224, 0.0);
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
    background: rgba(251, 247, 236, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    transition: color 0.3s var(--ease);
}
.scrolled .brand { color: var(--color-text); }
.brand-logo {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.3s var(--ease);
}
.scrolled .brand-logo { filter: none; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 110;
}
.menu-toggle span {
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.scrolled .menu-toggle span { background: var(--color-text); }
.menu-toggle.open span { background: var(--color-text); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
    position: fixed;
    inset: 0;
    background: var(--color-bg-alt);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav.open { transform: translateX(0); }
.nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}
.nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--color-primary); }
.nav-cta {
    display: inline-block;
    margin-top: var(--space-sm);
    padding: 0.7rem 2rem;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 1.1rem !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at top, #8B1A2D 0%, #6E1423 35%, #4A0E18 75%, #2E080F 100%);
    z-index: 0;
}
/* Motifs djerbiens : palmiers, soleil, croissant+étoile, étoile 8 branches, khomsa, poisson */
.hero-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 15%, rgba(201, 169, 97, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 85%, rgba(201, 169, 97, 0.10) 0%, transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'><g fill='none' stroke='%23C9A961' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round' opacity='0.22'><!-- Etoile 8 branches (Guellala) --><path d='M50 50 L58 68 L78 68 L62 80 L70 100 L50 88 L30 100 L38 80 L22 68 L42 68 Z'/><!-- Soleil rayonnant --><circle cx='230' cy='55' r='10'/><g stroke-width='1'><line x1='230' y1='35' x2='230' y2='42'/><line x1='230' y1='68' x2='230' y2='75'/><line x1='210' y1='55' x2='217' y2='55'/><line x1='243' y1='55' x2='250' y2='55'/><line x1='215' y1='40' x2='220' y2='45'/><line x1='240' y1='65' x2='245' y2='70'/><line x1='245' y1='40' x2='240' y2='45'/><line x1='220' y1='65' x2='215' y2='70'/></g><!-- Palmier --><g><line x1='150' y1='170' x2='150' y2='130'/><path d='M150 130 Q135 122 122 128 Q132 118 145 122'/><path d='M150 130 Q165 122 178 128 Q168 118 155 122'/><path d='M150 130 Q138 115 125 110 Q140 108 148 118'/><path d='M150 130 Q162 115 175 110 Q160 108 152 118'/><path d='M150 130 Q150 110 145 100 Q152 105 150 118'/><ellipse cx='148' cy='133' rx='1.5' ry='2' fill='%23C9A961'/><ellipse cx='152' cy='133' rx='1.5' ry='2' fill='%23C9A961'/></g><!-- Croissant + Etoile (symbole islamique) --><g><path d='M75 220 a14 14 0 1 0 8 -25 a10 10 0 1 1 -8 25 Z' fill='%23C9A961' opacity='0.4' stroke='none'/><path d='M75 220 a14 14 0 1 0 8 -25 a10 10 0 1 1 -8 25 Z'/><path d='M100 215 L103 222 L110 222 L104 226 L106 233 L100 229 L94 233 L96 226 L90 222 L97 222 Z' fill='%23C9A961' opacity='0.5' stroke='none'/></g><!-- Khomsa (main de Fatma) --><g transform='translate(225,210)'><path d='M0 0 Q-8 -2 -10 -10 Q-10 -16 -6 -16 Q-3 -16 -3 -10 L-3 -4 Q-3 -8 -3 -18 Q-3 -22 0 -22 Q3 -22 3 -18 L3 -8 Q3 -8 3 -20 Q3 -24 6 -24 Q9 -24 9 -20 L9 -8 Q9 -10 12 -16 Q15 -16 15 -12 Q15 -6 10 0 Q10 6 6 8 Q-2 10 -6 6 Q-10 4 -10 0 Z'/><circle cx='2' cy='-5' r='1.5' fill='%23C9A961' opacity='0.4' stroke='none'/></g><!-- Petite étoile 5 branches --><path d='M260 160 L263 167 L270 167 L264 171 L267 178 L260 174 L253 178 L256 171 L250 167 L257 167 Z'/><!-- Poisson stylisé --><g transform='translate(40,260)'><path d='M0 0 Q15 -10 30 0 Q15 10 0 0 M30 0 L40 -8 L40 8 Z'/><circle cx='8' cy='-1' r='1' fill='%23C9A961' opacity='0.5' stroke='none'/></g><!-- Losange + points (motif poterie) --><g><path d='M280 270 L290 280 L280 290 L270 280 Z'/><circle cx='280' cy='280' r='1.5' fill='%23C9A961' opacity='0.4' stroke='none'/></g><!-- Petite étoile 8 branches en haut à droite --><path d='M180 30 L184 38 L192 38 L186 44 L189 52 L180 47 L171 52 L174 44 L168 38 L176 38 Z' stroke-width='0.9'/></g></svg>");
    background-size: auto, auto, 320px 320px;
    background-repeat: no-repeat, no-repeat, repeat;
    z-index: 1;
    opacity: 0.95;
}
/* Ligne dorée horizontale en bas du hero */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-gold) 50%, transparent 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: var(--header-h);
}
.hero-logo {
    width: 140px;
    height: auto;
    margin: 0 auto var(--space-md);
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.72rem;
    margin-bottom: var(--space-sm);
    color: var(--color-gold-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--color-gold);
}
.hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
}
.hero-title span {
    display: block;
    font-style: italic;
    color: var(--color-gold-soft);
    font-weight: 500;
}
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-style: italic;
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    font-weight: 400;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}
.hero-scroll {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 40px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    display: grid; place-items: center;
}
.hero-scroll span {
    width: 3px; height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll-dot 1.6s infinite;
}
@keyframes scroll-dot {
    0% { transform: translateY(-6px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(6px); opacity: 0; }
}

/* ===== MENU ===== */
.menu-section {
    background: var(--color-bg-alt);
}
.menu-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0 var(--space-md);
    margin: 0 calc(-1 * var(--space-md)) var(--space-md);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.menu-tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--color-border);
}
.tab.active {
    background: var(--color-primary);
    color: var(--color-gold-soft);
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(110, 20, 35, 0.25);
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    min-height: 200px;
}

/* ===== MENU STATES (loading / error / empty) ===== */
.menu-status {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.menu-loading .spinner {
    width: 44px; height: 44px;
    margin: 0 auto var(--space-sm);
    border: 3px solid var(--color-bg-alt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.menu-loading p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.menu-error {
    border: 1px solid var(--color-border);
}
.menu-error-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}
.menu-error p {
    color: var(--color-text);
    font-size: 1rem;
    margin: 0 0 var(--space-md);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
.menu-error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.menu-error .btn { min-height: 44px; padding: 0.7rem 1.4rem; }
.btn-ghost-dark {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.btn-ghost-dark:hover { background: var(--color-bg-alt); border-color: var(--color-text-soft); }
.menu-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-soft);
    padding: var(--space-lg);
}
.menu-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 0.85rem;
    align-items: center;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
    border: 1px solid transparent;
    position: relative;
}
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-gold-soft); }
.menu-item.featured::after {
    content: "★";
    position: absolute;
    top: 8px; right: 10px;
    color: var(--color-gold);
    font-size: 0.9rem;
}
.menu-item-img {
    width: 86px; height: 86px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold));
    display: grid; place-items: center;
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    flex-shrink: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.menu-item-img.has-photo {
    background-image: var(--photo);
    font-size: 0;
}
.menu-item-body {
    min-width: 0;
}
.menu-item-body h3 {
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: var(--color-text);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.menu-item-body p {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-item-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    display: inline-block;
}

/* ===== SOLD OUT (épuisé) ===== */
.menu-item.sold-out {
    opacity: 0.55;
    filter: grayscale(0.85);
    position: relative;
    cursor: default;
    pointer-events: none;
}
.menu-item.sold-out:hover { transform: none; box-shadow: var(--shadow-sm); border-color: transparent; }
.menu-item.sold-out .menu-item-img { filter: grayscale(1) brightness(0.95); }
.menu-item.sold-out .menu-item-body h3 { text-decoration: line-through; text-decoration-color: rgba(110, 20, 35, 0.4); text-decoration-thickness: 1.5px; }
.menu-item.sold-out .menu-item-price { color: var(--color-text-soft); text-decoration: line-through; }

.soldout-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 3px 9px;
    background: linear-gradient(135deg, #C9A961, #A8893F);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 999px;
    vertical-align: middle;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    pointer-events: auto;
    white-space: nowrap;
}

/* Sur featured (carte verticale plus grande sur mobile) : badge plus visible en haut */
@media (max-width: 640px) {
    .menu-item.featured.sold-out .soldout-badge {
        display: block;
        width: fit-content;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

html[dir="rtl"] .soldout-badge { margin-left: 0; margin-right: 0.5rem; }

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
}
.about-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 240px;
    margin: 0 auto;
    padding: 0;
    margin-bottom: -1rem;
}
.about-icon svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 20px rgba(110, 20, 35, 0.15));
}
.about-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}
.about-text p {
    color: var(--color-text-soft);
    line-height: 1.7;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}
.about-stats li {
    text-align: center;
}
.about-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--color-gold-dark);
    line-height: 1;
}
.about-stats span {
    font-size: 0.75rem;
    color: var(--color-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--color-bg-alt); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}
.info-card {
    display: block;
    background: var(--color-surface);
    padding: var(--space-md) 0.85rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    color: inherit;
    min-height: 100px;
    border: 1px solid transparent;
}
a.info-card:active { transform: scale(0.98); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-gold-soft); }
.info-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.info-card h3 {
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.info-card p {
    font-size: 0.82rem;
    color: var(--color-text-soft);
    margin: 0;
    line-height: 1.4;
}
.whatsapp-card { background: #25D366; color: #fff; }
.whatsapp-card h3, .whatsapp-card p { color: #fff; }

.contact-form {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.contact-form label {
    display: block;
    margin-bottom: var(--space-sm);
}
.contact-form label span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--color-text-soft);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #fff;
}

/* ===== MAP / LOCATION ===== */
.map-section {
    background: var(--color-bg);
    padding-top: var(--space-lg);
}

/* ===== GOOGLE BADGE ===== */
.google-badge {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
    margin-bottom: var(--space-md);
    color: var(--color-text);
    text-decoration: none;
}
.google-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold);
}
.google-badge:active { transform: scale(0.99); }
.google-logo {
    width: 44px; height: 44px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 8px;
}
.google-logo svg { width: 100%; height: 100%; display: block; }
.google-rating {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.google-stars {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.stars {
    position: relative;
    display: inline-block;
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--color-border);
}
.stars-bg { color: var(--color-border); }
.stars-fill {
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #FBBC05;
}
.google-score {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}
.google-count {
    font-size: 0.85rem;
    color: var(--color-text-soft);
}
.google-count strong { color: var(--color-text); }
.google-cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.google-arrow { transition: transform 0.2s var(--ease); }
.google-badge:hover .google-arrow { transform: translateX(4px); }
html[dir="rtl"] .google-arrow { transform: scaleX(-1); }
html[dir="rtl"] .google-badge:hover .google-arrow { transform: scaleX(-1) translateX(4px); }

/* ===== REVIEW CTA ===== */
.review-cta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-sm);
    align-items: start;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-surface) 100%);
    border: 1px solid var(--color-gold-soft);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}
.review-cta-icon {
    width: 48px; height: 48px;
    background: #FFFBEB;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.review-cta-icon svg { display: block; }
.review-cta-body { min-width: 0; }
.review-cta-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.4rem;
    color: var(--color-primary);
}
.review-cta-body p {
    font-size: 0.9rem;
    color: var(--color-text-soft);
    line-height: 1.5;
    margin: 0;
}
.review-cta-btn {
    grid-column: 1 / -1;
    margin-top: var(--space-sm);
    width: 100%;
    justify-content: center;
    min-height: 48px;
}
.review-cta-btn span:first-child {
    color: #FBBC05;
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(110, 20, 35, 0.2);
}

@media (min-width: 640px) {
    .review-cta {
        grid-template-columns: auto 1fr auto;
        padding: var(--space-lg);
        gap: var(--space-md);
        align-items: center;
    }
    .review-cta-btn {
        grid-column: auto;
        margin-top: 0;
        width: auto;
        min-width: 220px;
    }
}

@media (min-width: 640px) {
    .google-badge {
        grid-template-columns: auto 1fr auto;
        padding: var(--space-md) var(--space-lg);
    }
    .google-cta {
        grid-column: auto;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        padding-left: var(--space-md);
        border-left: 1px solid var(--color-border);
    }
    html[dir="rtl"] .google-cta {
        padding-left: 0;
        padding-right: var(--space-md);
        border-left: 0;
        border-right: 1px solid var(--color-border);
    }
}
.map-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--color-bg-alt);
    border: 2px solid var(--color-gold);
}
.map-frame {
    width: 100%;
    height: 360px;
    border: 0;
    display: block;
    filter: saturate(0.9);
}
.map-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: var(--space-md);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}
.map-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
}

@media (min-width: 640px) {
    .map-frame { height: 420px; }
    .map-actions {
        flex-direction: row;
        justify-content: center;
    }
    .map-actions .btn { width: auto; min-width: 220px; }
}
@media (min-width: 960px) {
    .map-frame { height: 480px; }
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--color-primary-dark);
    color: var(--color-bg);
    padding: var(--space-lg) 0;
    border-top: 3px solid var(--color-gold);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.footer-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.footer-brand div { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-gold-soft); }
.footer-brand span { font-size: 0.8rem; opacity: 0.75; }
.footer-copy { font-size: 0.8rem; opacity: 0.65; margin: 0; }

/* ===== WHATSAPP FAB ===== */
.fab-whatsapp {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: transform 0.2s var(--ease);
    animation: pulse-wa 2.5s infinite;
}
.fab-whatsapp:hover { transform: scale(1.1); }
@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ===== TABLET ===== */
@media (min-width: 640px) {
    .container { padding: 0 var(--space-lg); }
    .hero-actions { flex-direction: row; max-width: none; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
}

/* ===== DESKTOP ===== */
@media (min-width: 960px) {
    :root { --header-h: 80px; }

    .menu-toggle { display: none; }
    .nav {
        position: static;
        background: transparent;
        transform: none;
        width: auto;
    }
    .nav ul {
        flex-direction: row;
        gap: var(--space-md);
    }
    .nav a { font-size: 0.95rem; font-family: var(--font-body); color: #fff; }
    .scrolled .nav a { color: var(--color-text); }
    .nav-cta { padding: 0.6rem 1.5rem !important; font-size: 0.95rem !important; }
    .scrolled .nav-cta { color: #fff !important; }

    .section { padding: 5rem 0; }

    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

    .about-grid { grid-template-columns: 1fr 1.2fr; gap: var(--space-xl); }
    .about-icon { margin-bottom: 0; max-width: 360px; padding: var(--space-md); }

    .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
    .contact-info { grid-template-columns: repeat(2, 1fr); }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-contact {
    display: flex; gap: 0.6rem; align-items: center;
    font-size: 0.9rem;
}
.footer-contact a { color: var(--color-gold-soft); font-weight: 500; }
.footer-contact a:hover { color: var(--color-gold); }
.footer-contact span { opacity: 0.4; }

/* ============================================
   MOBILE PERFECTION
   Safe-area iPhone · Touch targets · Perf
   ============================================ */

/* Safe area iPhone (notch + home indicator) */
@supports (padding: env(safe-area-inset-bottom)) {
    .site-header { padding-top: env(safe-area-inset-top); height: calc(var(--header-h) + env(safe-area-inset-top)); }
    .fab-whatsapp { bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); }
    .site-footer { padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom)); }
    .nav { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* Anti-zoom iOS sur inputs (font-size >= 16px) */
.contact-form input,
.contact-form textarea,
.contact-form select {
    font-size: 16px;
}

/* Touch targets : min 44x44px (Apple HIG) */
.tab { min-height: 44px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1rem; }
.btn { min-height: 48px; }
.menu-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Tap highlight discret */
a, button { -webkit-tap-highlight-color: rgba(110, 20, 35, 0.15); }
.btn, .menu-item, .info-card, .tab { -webkit-tap-highlight-color: transparent; }

/* Active state mobile (feedback tactile) */
@media (hover: none) {
    .btn:active { transform: scale(0.97); }
    .menu-item:active { transform: scale(0.99); background: var(--color-bg-alt); }
    .tab:active { transform: scale(0.95); }
    .info-card:active { transform: scale(0.98); }
    .menu-item:hover { transform: none; box-shadow: var(--shadow-sm); border-color: transparent; }
    .info-card:hover { transform: none; box-shadow: var(--shadow-sm); border-color: transparent; }
    .btn-primary:hover { transform: none; }
}

/* Fix overflow horizontal */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Smoothing du scroll iOS */
* { -webkit-overflow-scrolling: touch; }

/* Cacher le FAB WhatsApp quand on est sur la section contact (carte WhatsApp déjà visible) */
@media (max-width: 640px) {
    .hero-actions .btn { flex: 1; }
    .hero-actions { width: 100%; padding: 0 var(--space-sm); }

    /* Premier plat featured = plus grand sur mobile */
    .menu-item.featured {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .menu-item.featured .menu-item-img {
        width: 100%;
        height: 180px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .menu-item.featured .menu-item-body {
        padding: var(--space-md);
    }
    .menu-item.featured .menu-item-body h3 {
        font-size: 1.2rem;
    }
    .menu-item.featured .menu-item-body p {
        -webkit-line-clamp: 3;
    }

    /* About : ajuster taille image */
    .about-icon { max-width: 280px; }

    /* Contact info : 2 colonnes propres */
    .contact-info { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .info-card { padding: 0.85rem 0.5rem; }
    .info-card p { font-size: 0.75rem; }

    /* Form padding réduit */
    .contact-form { padding: var(--space-md); }

    /* Section padding optimisé */
    .section { padding: var(--space-lg) 0; }
}

/* Tiny phones (iPhone SE / Galaxy A05 etc.) */
@media (max-width: 360px) {
    :root { --space-md: 1.2rem; }
    .hero-title { font-size: 2.2rem; }
    .tab { padding: 0.55rem 1rem; font-size: 0.85rem; }
    .menu-item { grid-template-columns: 72px 1fr; }
    .menu-item-img { width: 72px; height: 72px; }
}

/* Mode paysage mobile (peu de hauteur) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 5rem 0 3rem; }
    .hero-logo { width: 80px; margin-bottom: 0.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-tagline { margin-bottom: var(--space-md); }
    .hero-scroll { display: none; }
}

/* High-DPI : logo plus net */
@media (-webkit-min-device-pixel-ratio: 2) {
    .brand-logo, .hero-logo, .footer-logo { image-rendering: -webkit-optimize-contrast; }
}

/* Performance : GPU acceleration sur éléments animés */
.btn, .menu-item, .info-card, .tab, .fab-whatsapp, .nav, .menu-toggle span {
    will-change: transform;
    backface-visibility: hidden;
}

/* ===== A11Y ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .fab-whatsapp { animation: none; }
}

/* Focus visible (clavier) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   I18N — SPLASH SCREEN + LANG BAR + RTL
   ============================================ */

/* Police arabe */
html[lang="ar"] body,
html[lang="ar"] .hero-title,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 {
    font-family: 'Cairo', 'Inter', sans-serif;
}
html[lang="ar"] .hero-title { font-weight: 700; letter-spacing: 0; }
html[lang="ar"] .eyebrow { letter-spacing: 0.05em; }
html[lang="ar"] .hero-eyebrow { letter-spacing: 0.1em; }

/* RTL ajustements */
html[dir="rtl"] .hero-actions { flex-direction: row-reverse; }
html[dir="rtl"] .menu-tabs { direction: rtl; padding-left: var(--space-md); padding-right: var(--space-md); }
html[dir="rtl"] .menu-item { grid-template-columns: 1fr 86px; }
html[dir="rtl"] .menu-item .menu-item-img { order: 2; }
html[dir="rtl"] .menu-item .menu-item-body { order: 1; text-align: right; }
html[dir="rtl"] .footer-brand div { text-align: right; }
html[dir="rtl"] .fab-whatsapp { right: auto; left: 20px; }
html[dir="rtl"] .lang-bar { direction: ltr; }
html[dir="rtl"] .form-row label, html[dir="rtl"] .contact-form label span { text-align: right; }
@supports (padding: env(safe-area-inset-left)) {
    html[dir="rtl"] .fab-whatsapp { left: calc(20px + env(safe-area-inset-left)); }
}

/* ===== SPLASH SCREEN ===== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: var(--space-md);
    color: #fff;
}
.splash[hidden] { display: none; }
.splash.fade-out { animation: splashOut 0.4s var(--ease) forwards; }
@keyframes splashOut {
    to { opacity: 0; visibility: hidden; }
}
.splash-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, #8B1A2D 0%, #6E1423 35%, #4A0E18 75%, #2E080F 100%);
    z-index: -2;
}
.splash-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 15%, rgba(201, 169, 97, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 85%, rgba(201, 169, 97, 0.10) 0%, transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%23C9A961' stroke-width='1' opacity='0.15'><path d='M50 30 L56 44 L70 44 L60 53 L65 67 L50 60 L35 67 L40 53 L30 44 L44 44 Z'/><circle cx='150' cy='40' r='8'/><g stroke-width='0.8'><line x1='150' y1='25' x2='150' y2='30'/><line x1='150' y1='50' x2='150' y2='55'/><line x1='135' y1='40' x2='140' y2='40'/><line x1='160' y1='40' x2='165' y2='40'/></g><path d='M100 130 L100 100 M100 100 Q88 95 80 100 M100 100 Q112 95 120 100 M100 100 Q90 88 82 87'/></g></svg>");
    background-size: auto, auto, 220px 220px;
    background-repeat: no-repeat, no-repeat, repeat;
    z-index: -1;
}
.splash-content {
    text-align: center;
    max-width: 480px;
    width: 100%;
    padding: var(--space-lg) var(--space-md);
}
.splash-logo {
    width: 120px;
    height: auto;
    margin: 0 auto var(--space-md);
    filter: brightness(0) invert(1);
    animation: splashIn 0.6s var(--ease);
}
@keyframes splashIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.splash-tagline {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 0 0 0.25rem;
    color: #fff;
    font-weight: 600;
}
.splash-sub {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-gold-soft);
    font-size: 1rem;
    margin: 0;
    opacity: 0.85;
}
.splash-divider {
    width: 80px; height: 1px;
    margin: var(--space-md) auto;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.splash-prompt {
    font-size: 0.85rem;
    margin: 0 0 var(--space-md);
    opacity: 0.8;
    line-height: 1.6;
}
.splash-langs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 320px;
    margin: 0 auto;
}
.splash-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    text-align: left;
    min-height: 52px;
}
.splash-lang-btn:hover {
    background: rgba(201, 169, 97, 0.15);
    border-color: var(--color-gold);
    transform: translateY(-1px);
}
.splash-lang-btn:active { transform: scale(0.98); }
.splash-lang-btn .flag-svg {
    width: 38px;
    height: 26px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    display: block;
}
.splash-lang-btn .flag-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.splash-lang-btn .name {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.splash-lang-btn .code {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-gold-soft);
    background: rgba(201, 169, 97, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* ===== LANG BAR (header) ===== */
.lang-bar {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.3s var(--ease);
}
.scrolled .lang-bar { background: rgba(0, 0, 0, 0.08); }
.lang-flag {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    background: transparent;
    line-height: 0;
    padding: 0;
    overflow: hidden;
}
.lang-flag .flag-svg {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.lang-flag .flag-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}
.lang-flag:hover { background: rgba(255, 255, 255, 0.15); }
.lang-flag.active {
    background: var(--color-gold);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
    transform: scale(1.12);
}
.lang-flag.active .flag-svg {
    box-shadow: 0 0 0 2px var(--color-gold);
}
.lang-flag:active { transform: scale(0.92); }

/* Mobile : lang-bar plus compact */
@media (max-width: 640px) {
    .lang-bar { padding: 3px; gap: 0; }
    .lang-flag { width: 28px; height: 28px; }
    .lang-flag .flag-svg { width: 20px; height: 20px; }
    .header-inner { gap: 0.5rem; }
}

/* Très petit mobile : montrer seulement langue active + dropdown */
@media (max-width: 360px) {
    .lang-flag:not(.active) { display: none; }
    .lang-bar.expanded .lang-flag { display: grid; }
    .lang-bar { cursor: pointer; }
}
