/* =====================================================================
   CHEZ BISO — Thème « Vert Nature » moderne & haut de gamme
   Palette : vert foncé élégant → vert menthe, fonds très pâles
   ===================================================================== */

:root {
    /* Palette principale */
    --vert-fonce:  #1B4332;   /* principal — nav, footer, titres sur clair */
    --vert-moyen:  #40916C;   /* secondaire — boutons, accents */
    --vert-clair:  #74C69D;   /* accent — icônes, détails */
    --vert-menthe: #52B788;   /* hover */
    --fond-clair:  #D8F3DC;   /* sections pâles */
    --texte:       #1C1C1C;   /* texte principal */
    --fond:        #F8FFF9;   /* fond général */
    --gris:        #5f7068;

    /* Alias de compatibilité (anciennes classes .text-or, --creme, etc.) */
    --or:        var(--vert-moyen);
    --or-clair:  var(--vert-menthe);
    --noir:      var(--vert-fonce);
    --creme:     var(--fond-clair);
    --rouge:     var(--vert-moyen);

    /* Ombres douces */
    --ombre-douce:  0 8px 30px rgba(27, 67, 50, .08);
    --ombre-hover:  0 18px 44px rgba(27, 67, 50, .16);
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--texte);
    background-color: var(--fond);
}

h1, h2, h3, h4, h5, h6, .brand-text, .display-title, .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -.2px;
}

a { text-decoration: none; }

/* ---------- Navbar ---------- */
#mainNav {
    background-color: rgba(27, 67, 50, .85);
    backdrop-filter: blur(8px);
    transition: background-color .35s ease, padding .35s ease, box-shadow .35s ease;
    padding-top: .45rem;
    padding-bottom: .45rem;
}
#mainNav.scrolled,
#mainNav.solid {
    background-color: var(--vert-fonce);
    box-shadow: 0 6px 24px rgba(27, 67, 50, .25);
    padding-top: .5rem;
    padding-bottom: .5rem;
}
.navbar-brand { display: flex; align-items: center; gap: .55rem; }
.navbar-logo { height: 60px; width: auto; display: block; border-radius: 6px; }
.brand-logo {
    color: #fff; font-size: 1.55rem;
    background: var(--vert-moyen);
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(82, 183, 136, .4);
}
.brand-text { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: .3px; }
#mainNav .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 500; margin: 0 .35rem; position: relative;
    transition: color .25s;
}
#mainNav .nav-link:hover, #mainNav .nav-link.active { color: var(--vert-clair); }
#mainNav .nav-link.active::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px; background: var(--vert-clair); border-radius: 2px;
}
.nav-phone { color: var(--vert-clair); font-weight: 500; }
.btn-reserver {
    background: var(--vert-moyen); color: #fff; font-weight: 600;
    border-radius: 50px; padding: .45rem 1.3rem; border: 2px solid var(--vert-moyen);
    transition: all .25s; box-shadow: 0 4px 16px rgba(64, 145, 108, .35);
}
.btn-reserver:hover, .btn-reserver.active {
    background: var(--vert-menthe); border-color: var(--vert-menthe); color: #fff;
    transform: translateY(-1px);
}

/* ---------- Boutons génériques ---------- */
.btn-or {
    background: var(--vert-moyen); color: #fff; font-weight: 600;
    border-radius: 50px; padding: .7rem 2rem; border: 2px solid var(--vert-moyen);
    transition: all .25s; box-shadow: 0 6px 20px rgba(64, 145, 108, .3);
}
.btn-or:hover {
    background: var(--vert-menthe); border-color: var(--vert-menthe); color: #fff;
    transform: translateY(-2px); box-shadow: 0 10px 26px rgba(82, 183, 136, .4);
}
.btn-outline-or {
    background: transparent; color: var(--vert-moyen); font-weight: 600;
    border-radius: 50px; padding: .7rem 2rem; border: 2px solid var(--vert-moyen);
    transition: all .25s;
}
.btn-outline-or:hover { background: var(--vert-moyen); color: #fff; transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    color: #fff; text-align: center;
    background: linear-gradient(135deg, rgba(27, 67, 50, .92), rgba(45, 106, 79, .78), rgba(82, 183, 136, .55)),
                url('../images/hero-bg.jpg') center/cover fixed;
}
.hero .hero-content { width: 100%; }
.hero-logo { height: 120px; width: auto; margin-bottom: 1.4rem; border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.hero .eyebrow { color: var(--vert-clair); letter-spacing: 4px; text-transform: uppercase; font-size: .9rem; font-weight: 600; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; margin: 1rem 0; text-shadow: 0 4px 30px rgba(0, 0, 0, .3); }
.hero .slogan { font-size: 1.25rem; font-weight: 300; max-width: 640px; margin: 0 auto 2rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-creme { background: linear-gradient(180deg, var(--fond) 0%, var(--fond-clair) 100%); }
.section-dark {
    background: linear-gradient(135deg, var(--vert-fonce) 0%, #2D6A4F 100%);
    color: #fff;
}
.section-dark .text-white-50 { color: rgba(255, 255, 255, .7) !important; }
.section-title { position: relative; display: inline-block; font-weight: 700; margin-bottom: .5rem; color: var(--vert-fonce); }
.section-dark .section-title { color: #fff; }
.section-eyebrow { color: var(--vert-moyen); letter-spacing: 3px; text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.section-dark .section-eyebrow { color: var(--vert-clair); }
.section-sep {
    width: 70px; height: 3px; background: var(--vert-menthe); border: none; opacity: 1; border-radius: 3px;
    margin: 1rem auto 2.5rem;
}
.text-or { color: var(--vert-clair) !important; }

/* ---------- Cartes plats / spécialités ---------- */
.dish-card {
    background: #fff; border: 1px solid rgba(64, 145, 108, .18); border-radius: 18px; overflow: hidden;
    box-shadow: var(--ombre-douce); transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
}
.dish-card:hover {
    transform: translateY(-8px); box-shadow: var(--ombre-hover); border-color: var(--vert-menthe);
}
.dish-card .dish-img { height: 210px; background-size: cover; background-position: center; position: relative; }
.dish-card .dish-img .no-img, .no-img {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--vert-fonce), var(--vert-moyen)); color: var(--vert-clair); font-size: 3rem;
}
.dish-body { padding: 1.4rem; }
.dish-title { font-size: 1.2rem; font-weight: 600; margin-bottom: .3rem; color: var(--vert-fonce); }
.dish-desc { color: var(--gris); font-size: .92rem; min-height: 42px; }
.dish-price { color: var(--vert-moyen); font-weight: 700; font-size: 1.15rem; }
.badge-plat { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    background: var(--vert-menthe); color: #fff; }

/* ---------- Menu : onglets ---------- */
.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.menu-tab {
    border: 2px solid rgba(64, 145, 108, .3); background: #fff; color: var(--vert-fonce);
    border-radius: 50px; padding: .5rem 1.5rem; font-weight: 500; cursor: pointer; transition: all .25s;
}
.menu-tab:hover { border-color: var(--vert-moyen); color: var(--vert-moyen); }
.menu-tab.active { background: var(--vert-moyen); border-color: var(--vert-moyen); color: #fff; box-shadow: 0 6px 18px rgba(64, 145, 108, .3); }
.plat-item.is-hidden { display: none; }

/* ---------- Galerie ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.5rem; }
.gallery-item { overflow: hidden; border-radius: 16px; position: relative; cursor: pointer; box-shadow: var(--ombre-douce); }
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(rgba(27, 67, 50, .25), rgba(27, 67, 50, .55));
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .gallery-overlay i { color: #fff; font-size: 2rem; }
.gallery-caption { position: absolute; left: 0; bottom: 0; width: 100%; padding: .5rem .8rem;
    background: linear-gradient(transparent, rgba(27, 67, 50, .8)); color: #fff; font-size: .85rem; }

/* ---------- Événements ---------- */
.event-card {
    background: #fff; border: 1px solid rgba(64, 145, 108, .18); border-radius: 18px; overflow: hidden;
    box-shadow: var(--ombre-douce); height: 100%; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--ombre-hover); border-color: var(--vert-menthe); }
.event-img { height: 220px; background-size: cover; background-position: center; }
.event-date-badge {
    background: var(--vert-fonce); color: var(--vert-clair); display: inline-flex; flex-direction: column;
    align-items: center; padding: .4rem .85rem; border-radius: 12px; line-height: 1.1;
}
.event-date-badge .jour { font-size: 1.5rem; font-weight: 700; }
.event-date-badge .mois { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; }
.badge-avenir { background: var(--vert-menthe) !important; color: #fff; }

/* ---------- Formulaires ---------- */
.form-card { background: #fff; border-radius: 20px; box-shadow: var(--ombre-douce); padding: 2.5rem; border: 1px solid rgba(64, 145, 108, .12); }
.form-control, .form-select { border-radius: 12px; padding: .7rem .9rem; border: 1px solid #d5e6db; }
.form-control:focus, .form-select:focus { border-color: var(--vert-moyen); box-shadow: 0 0 0 .2rem rgba(82, 183, 136, .2); }
.form-label { font-weight: 500; color: var(--vert-fonce); }

/* ---------- Infos contact ---------- */
.info-box { background: #fff; border-radius: 18px; padding: 1.7rem; box-shadow: var(--ombre-douce); height: 100%; border: 1px solid rgba(64, 145, 108, .12); transition: transform .3s, box-shadow .3s; }
.info-box:hover { transform: translateY(-5px); box-shadow: var(--ombre-hover); }
.info-box .icon { width: 58px; height: 58px; border-radius: 50%; background: var(--fond-clair);
    color: var(--vert-moyen); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.hours-table td { padding: .55rem .25rem; border-color: #e6f2ea; }

/* ---------- Pied de page ---------- */
.site-footer { background: linear-gradient(135deg, var(--vert-fonce) 0%, #143728 100%); color: #c4d8cd; padding: 3.8rem 0 1.5rem; }
.footer-logo { height: 80px; width: auto; border-radius: 8px; }
.footer-title { color: #fff; font-family: 'Poppins', sans-serif; margin-bottom: 1.1rem; }
.footer-title i { color: var(--vert-clair); }
.footer-text { font-size: .92rem; }
.footer-social a {
    display: inline-flex; width: 40px; height: 40px; border-radius: 50%; margin-right: .5rem;
    align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); color: #fff; transition: all .25s;
}
.footer-social a:hover { background: var(--vert-menthe); color: #fff; transform: translateY(-3px); }
.footer-contact, .footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-contact li { margin-bottom: .6rem; }
.footer-contact i { color: var(--vert-clair); margin-right: .5rem; }
.footer-contact a { color: #c4d8cd; }
.footer-contact a:hover { color: var(--vert-clair); }
.footer-hours li { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.footer-divider { border-color: rgba(255, 255, 255, .12); margin: 2.5rem 0 1.2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-credit { color: var(--vert-clair); }

/* ---------- Retour en haut ---------- */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
    background: var(--vert-moyen); color: #fff; border: none; font-size: 1.2rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all .3s; z-index: 1030; box-shadow: 0 8px 22px rgba(64, 145, 108, .45);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--vert-menthe); transform: translateY(-3px); }

/* ---------- Bandeau interne ---------- */
.page-header {
    background: linear-gradient(135deg, rgba(27, 67, 50, .92), rgba(45, 106, 79, .82)),
                url('../images/page-header-bg.jpg') center/cover;
    color: #fff; padding: 8rem 0 4rem; text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
.page-header .breadcrumb { justify-content: center; }
.page-header .breadcrumb a { color: var(--vert-clair); }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .6); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; background: rgba(20, 55, 40, .94); z-index: 2000;
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 12px; box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
    position: absolute; color: #fff; background: rgba(255, 255, 255, .12); border: none;
    width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: background .2s;
}
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: var(--vert-menthe); color: #fff; }
.lightbox .lb-close { top: 20px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    #mainNav { background-color: var(--vert-fonce); }
    #mainNav .navbar-nav { padding-top: 1rem; }
    .btn-reserver { margin-top: .6rem; display: inline-block; }
    .hero { background-attachment: scroll; }
}
