/* =====================================================
   STYLE.CSS – Restaurant Full Responsive
   ===================================================== */

:root {
    --black: #0a0a0a;
    --gold: #c9a227;
    --gray-dark: #1f1f1f;
    --gray-mid: #2a2a2a;
    --text-light: #e5e5e5;
    --or: #c9a227; /* overridé par le :root du header si besoin */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    --shadow: 0 15px 35px rgba(0,0,0,0.5);
    --transition: 0.3s ease;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.25;
    font-weight: 700;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container { padding: 0 30px; }
}

/* ---------- Sections ---------- */
.section {
    padding: 60px 0;
}

@media (min-width: 768px) {
    .section { padding: 80px 0; }
}

@media (min-width: 1024px) {
    .section { padding: 100px 0; }
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: 12px;
}

.section-title + p,
.section-subtitle {
    text-align: center;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

.bg-dark {
    background: var(--gray-dark);
}

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.2;
}

.btn-gold,
.btn {
    background: linear-gradient(45deg, var(--or), #f0d47a);
    color: #111;
}

.btn-gold:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
}

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

.btn-outline:hover {
    background: var(--or);
    color: #111;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
    }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 85vh;
    min-height: 85dvh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 20px 60px;
}

.hero-content,
.hero > div {
    position: relative;
    z-index: 2;
    max-width: 820px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero .slogan,
.hero p:first-of-type {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--or);
    margin-bottom: 16px;
}

.hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 28px;
}

@media (max-width: 600px) {
    .hero {
        min-height: 75vh;
        padding-top: 90px;
    }
}

/* ---------- About / Présentation ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.about-text h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 18px;
    color: #fff;
}

.about-text p {
    opacity: 0.85;
    font-size: 1.05rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 420px;
}

/* ---------- Menu / Cards ---------- */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

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

.menu-card {
    background: var(--gray-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(201, 162, 39, 0.18);
}

.menu-card-image {
    position: relative;
    overflow: hidden;
}

.menu-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (min-width: 768px) {
    .menu-card-image img { height: 240px; }
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.05);
}

.menu-card-body,
.menu-card > div:last-child {
    padding: 18px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #fff;
}

.menu-card .price,
.price {
    color: var(--or);
    font-weight: 700;
    font-size: 1.15rem;
}

.badge-categorie,
.vedette-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--or), #f0d47a);
    color: #111;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ---------- Galerie ---------- */
.galerie-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .galerie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 768px) {
    .galerie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (min-width: 1100px) {
    .galerie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.galerie-item,
.galerie-grid > div {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gray-mid);
}

.galerie-item img,
.galerie-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galerie-item:hover img,
.galerie-grid > div:hover img {
    transform: scale(1.06);
}

/* Filtres galerie */
.filtre-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    background: var(--gray-dark);
    color: #fff;
}

.filtre-btn.active,
.filtre-btn:hover {
    background: linear-gradient(45deg, var(--or), #f0d47a);
    color: #111;
}

/* ---------- Formulaires (réservation / contact) ---------- */
.form-card,
.reservation-form,
.contact-form {
    background: var(--gray-dark);
    border-radius: var(--radius);
    padding: 28px 22px;
    border: 1px solid rgba(255,255,255,0.06);
}

@media (min-width: 600px) {
    .form-card,
    .reservation-form,
    .contact-form {
        padding: 36px 40px;
    }
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--or);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: #333;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 560px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---------- Contact layout ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
}

.contact-info-card {
    background: var(--gray-dark);
    border-radius: var(--radius);
    padding: 28px 24px;
}

.contact-info-card h3 {
    color: var(--or);
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* ---------- Footer ---------- */
.footer,
footer {
    background: #080808;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

.footer h4 {
    color: var(--or);
    margin-bottom: 14px;
    font-size: 1.1rem;
}

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

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ---------- WhatsApp flottant (déjà partiellement dans style.css) ---------- */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #c9a227, #a88620);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9990;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsapp-pulse-gold 2.5s infinite;
}

.whatsapp-btn i {
    font-size: 28px;
    color: #fff;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-3px);
    animation: none;
}

@keyframes whatsapp-pulse-gold {
    0%   { box-shadow: 0 4px 20px rgba(201,162,39,0.35), 0 0 0 0 rgba(201,162,39,0.4); }
    70%  { box-shadow: 0 4px 20px rgba(201,162,39,0.35), 0 0 0 14px rgba(201,162,39,0); }
    100% { box-shadow: 0 4px 20px rgba(201,162,39,0.35), 0 0 0 0 rgba(201,162,39,0); }
}

@media (max-width: 600px) {
    .whatsapp-btn {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-btn i { font-size: 24px; }
}

/* ---------- Utilitaires responsive ---------- */
.text-center { text-align: center; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Empêche le débordement horizontal des tableaux éventuels */
table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 700px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ajustements titres pages intérieures */
main h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

/* Cartes acompte / succès (pages inline) */
@media (max-width: 480px) {
    main [style*="max-width:640px"],
    main [style*="max-width:520px"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Fix grilles trop larges sur très petit écran */
@media (max-width: 380px) {
    .menu-grid,
    .galerie-grid {
        grid-template-columns: 1fr;
    }
}

/* Amélioration accessibilité focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--or);
    outline-offset: 3px;
}

/* Réduction des animations si préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Burger menu (filet de sécurité) ===== */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 980px) {
    .burger {
        display: flex !important;
    }
    .header nav,
    #mainNav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 25px 20px;
        gap: 5px;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s ease;
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
        z-index: 999;
    }
    .header nav.open,
    #mainNav.open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    .header nav a,
    #mainNav a {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1.05rem;
    }
}

/* =====================================================
   MOBILE FIRST – Renforcement téléphone
   ===================================================== */

/* Empêche le zoom auto iOS sur les champs de formulaire */
input,
select,
textarea {
    font-size: 16px !important;
    max-width: 100%;
}

/* Touch targets plus grands */
.btn,
button,
.header nav a,
.tel-link {
    min-height: 44px;
}

/* Formulaires (réservation, contact, acompte…) */
@media (max-width: 640px) {
    /* Toutes les grilles 2 ou 3 colonnes en 1 colonne */
    form [style*="grid-template-columns"],
    div[style*="grid-template-columns:1fr 1fr"],
    div[style*="grid-template-columns:1fr 1fr 1fr"],
    .form-row,
    .form-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }

    /* Padding des cartes / formulaires trop généreux */
    form[style*="padding:40px"],
    form[style*="padding: 40px"],
    div[style*="padding:40px"],
    div[style*="padding:28px"],
    div[style*="padding:24px"] {
        padding: 20px !important;
    }

    /* Titres un peu moins imposants */
    main h1 {
        font-size: 1.7rem !important;
        line-height: 1.3;
    }

    /* Boutons pleine largeur sur mobile */
    form .btn,
    form button[type="submit"],
    main a[style*="border-radius:50px"],
    main a[style*="border-radius:30px"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        text-align: center;
        display: block !important;
    }

    /* Espacement header → contenu */
    main {
        padding-top: 90px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Cartes acompte / succès */
    main [style*="max-width:640px"],
    main [style*="max-width:520px"],
    main [style*="max-width:700px"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Évite le débordement horizontal */
    body {
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* Galerie & menu : toujours 1 colonne sur très petit écran */
@media (max-width: 540px) {
    .menu-grid,
    .galerie-grid,
    .plats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Footer déjà en auto-fit, on sécurise */
@media (max-width: 600px) {
    footer > div {
        gap: 28px !important;
    }
}

/* WhatsApp : ne pas masquer le contenu en bas */
@media (max-width: 600px) {
    body {
        padding-bottom: 70px;
    }
}