/* =============================================
   ChiFouMi – Location de jeux – Style principal
   Charte : VERT & JAUNE dominants, ROUGE en accent
   (inspirée du bar ChiFouMi)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noticia+Text:ital,wght@0,400;0,700;1,400&family=Overlock:wght@400;700;900&family=Patrick+Hand&display=swap');

:root {
    /* ===== PALETTE CHIFOUMI-BAR.FR ===== */
    /* Teal – couleur dominante (identique au site chifoumi-bar.fr) */
    --vert:        #4A8294;  /* teal moyen */
    --vert-dk:     #005570;  /* teal foncé – couleur principale de la marque */
    --vert-xdk:    #003648;  /* teal très foncé (hover, ombres) */
    --vert-lt:     #7AA9B8;  /* teal clair (highlights) */

    /* Or/jaune – accent secondaire */
    --jaune:       #EDBF00;  /* or chifoumi-bar */
    --jaune-dk:    #C9A200;  /* or foncé */
    --jaune-lt:    #F5D44A;  /* or lumineux */

    /* Rouge – accent minoritaire */
    --rouge:       #C0392B;
    --rouge-dk:    #922A1F;
    --rouge-lt:    #E57363;

    /* ===== NEUTRES ===== */
    --creme:       #F5F5F5;
    --blanc:       #FFFFFF;
    --gris:        #727272;
    --gris-lt:     #EBEBEB;
    --texte:       #0A1C26;  /* teal très foncé pour le texte */
    --ombre:       rgba(0,85,112,0.12);

    /* ===== ALIAS DE COMPATIBILITÉ ===== */
    --bordeaux:    var(--vert-dk);
    --bordeaux-dk: var(--vert-xdk);
    --teal:        var(--jaune-dk);
    --teal-dk:     #A07800;
    --teal-lt:     var(--jaune-lt);

    /* ===== DIVERS ===== */
    --radius:      12px;
    --trans:       0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noticia Text', serif;
    background: var(--creme);
    color: var(--texte);
    line-height: 1.6;
}

/* ============================================= */
/* HEADER                                        */
/* ============================================= */
.site-header {
    background: var(--blanc);
    border-bottom: 4px solid var(--vert-dk);
    position: sticky; top: var(--bandeau-h, 0px); z-index: 100;
    box-shadow: 0 2px 14px var(--ombre);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 10px 24px;
    display: flex; align-items: center; gap: 16px;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo { height: 50px; width: auto; }
.logo-title { font-family: 'Overlock', sans-serif; font-size: 1.6rem; color: var(--vert-dk); display: block; line-height: 1; letter-spacing: .02em; }
.logo-sub { font-size: 0.72rem; color: var(--gris); display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Nav poussée à droite, juste avant le bouton compte */
.header-nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.header-nav a { color: var(--texte); font-weight: 800; text-decoration: none; font-size: 0.92rem; text-transform: uppercase; letter-spacing: .04em; transition: color var(--trans); position: relative; white-space: nowrap; }
.header-nav a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 0; height: 3px; background: var(--jaune); transition: width var(--trans); }
.header-nav a:hover { color: var(--vert-dk); }
.header-nav a:hover::after { width: 100%; }

/* Hamburger (mobile uniquement) */
.btn-hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 1.5rem; color: var(--vert-dk); padding: 4px 8px;
    margin-left: auto;
    line-height: 1;
}

/* Drawer menu mobile */
.nav-drawer-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 500;
}
.nav-drawer-overlay.open { display: block; }
.nav-drawer {
    position: fixed; top: 0; left: -260px; width: 240px; height: 100vh;
    background: #fff; z-index: 501;
    box-shadow: 4px 0 20px rgba(0,0,0,0.18);
    transition: left 0.25s ease;
    display: flex; flex-direction: column;
    padding: 0;
}
.nav-drawer.open { left: 0; }
.nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 3px solid var(--jaune);
    background: var(--vert-dk);
    color: #fff;
}
.nav-drawer-header span { font-family: 'Overlock', sans-serif; font-size: 1.2rem; letter-spacing: .03em; }
.nav-drawer-close {
    background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 4px;
}
.nav-drawer nav { display: flex; flex-direction: column; padding: 12px 0; }
.nav-drawer nav a {
    padding: 14px 22px;
    font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
    color: var(--texte); text-decoration: none;
    border-bottom: 1px solid #ddeef4;
    transition: background 0.15s, color 0.15s;
}
.nav-drawer nav a:hover { background: #ddeef4; color: var(--vert-dk); }
.nav-drawer-compte {
    margin: 16px 18px;
}

/* ============================================= */
/* HERO                                          */
/* ============================================= */
.hero {
    background: var(--vert-dk);
    color: var(--blanc);
    padding: 70px 24px 60px;
    position: relative; overflow: hidden; text-align: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 40% at 20% 0%, rgba(237,191,0,0.28) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 80% 100%, rgba(122,169,184,0.30) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero-title { font-family: 'Overlock', sans-serif; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.1; margin-bottom: 14px; letter-spacing: .02em; text-shadow: 2px 3px 8px rgba(0,0,0,0.4); }
.hero-title .accent { color: var(--jaune-lt); }
.hero-sub { font-size: 1.05rem; opacity: 0.92; margin-bottom: 30px; font-weight: 600; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; opacity: 0.10; }
.c1 { width: 340px; height: 340px; background: var(--jaune); top: -80px; right: -70px; }
.c2 { width: 200px; height: 200px; background: var(--vert-lt); bottom: -60px; left: -40px; }
.c3 { width: 110px; height: 110px; background: var(--blanc); top: 40%; right: 12%; opacity: 0.07; }

/* ============================================= */
/* BOUTONS                                       */
/* ============================================= */
.btn-primary {
    display: inline-block;
    background: var(--jaune); color: var(--texte);
    font-family: 'Overlock', sans-serif; font-size: 1.05rem; letter-spacing: .04em;
    padding: 13px 32px; border-radius: 6px;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
    box-shadow: 0 4px 14px rgba(237,191,0,0.50);
}
.btn-primary:hover { background: var(--jaune-lt); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.42; cursor: not-allowed; transform: none; }

.btn-secondary {
    display: inline-block;
    background: transparent; color: var(--vert-dk);
    font-family: 'Overlock', sans-serif; font-size: 1rem; letter-spacing: .03em;
    padding: 12px 26px; border-radius: 6px;
    border: 2.5px solid var(--vert-dk); cursor: pointer;
    transition: all var(--trans);
}
.btn-secondary:hover { background: var(--vert-dk); color: var(--blanc); }

.btn-add-cart { background: var(--vert) !important; color: var(--blanc) !important; box-shadow: 0 4px 14px rgba(0,85,112,0.45) !important; }
.btn-add-cart:hover { background: var(--vert-dk) !important; }

/* ============================================= */
/* LAYOUT                                        */
/* ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.section-jeux { padding: 64px 0; }
.section-title-wrap { margin-bottom: 36px; }
.section-title {
    font-family: 'Overlock', sans-serif;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    color: var(--vert-dk); letter-spacing: .03em;
    display: inline-block; position: relative;
}
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--jaune); border-radius: 2px; margin-top: 6px; }
.section-title.light { color: var(--blanc); }
.section-title.light::after { background: var(--jaune-lt); }
.section-sub { color: var(--gris); margin-top: 10px; font-size: 0.97rem; font-weight: 600; }

/* ============================================= */
/* GRILLE JEUX                                   */
/* ============================================= */
.jeux-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(278px, 1fr)); gap: 26px; }
.loading-spinner { grid-column: 1/-1; text-align: center; color: var(--gris); padding: 60px; font-size: 1.1rem; }

/* CARTE JEU */
.jeu-card {
    background: var(--blanc); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 2px 14px var(--ombre);
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    cursor: pointer; display: flex; flex-direction: column;
    border: 2px solid transparent;
}
.jeu-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,85,112,0.22); border-color: var(--vert); }
.jeu-card-img {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #ddeef4, #9fc9d9);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; flex-shrink: 0; overflow: hidden;
}
.jeu-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.jeu-card-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.jeu-card-nom { font-family: 'Overlock', sans-serif; font-size: 1.18rem; color: var(--vert-dk); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.jeu-card-emoji { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.jeu-card-desc { font-size: 0.87rem; color: var(--gris); flex: 1; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jeu-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e6ecd8; }
.jeu-prix { font-family: 'Overlock', sans-serif; font-size: 1.4rem; color: var(--jaune-dk); letter-spacing: .02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; }
.jeu-prix span { font-size: 0.78rem; font-family: 'Noticia Text', serif; color: var(--gris); font-weight: 700; }
.jeu-prix-sep { font-size: 0.9rem; color: var(--gris); font-weight: 400; margin: 0 2px; }

/* ============================================= */
/* DIAPORAMA                                     */
/* ============================================= */
.modal-diaporama {
    width: 100%; height: 250px; border-radius: var(--radius); margin-bottom: 18px;
    background: linear-gradient(135deg, #ddeef4, #9fc9d9);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.diapo-img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.diapo-emoji { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; }
.diaporama-loading { font-size: 2rem; }
.diapo-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,85,112,0.70); color: #fff; border: none;
    width: 38px; height: 38px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.diapo-arrow:hover { background: rgba(0,85,112,0.95); }
.diapo-prev { left: 10px; }
.diapo-next { right: 10px; }
.diapo-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.diapo-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.55); border: none; cursor: pointer; padding: 0; transition: background 0.2s, transform 0.2s; }
.diapo-dot.active { background: #fff; transform: scale(1.25); }

/* ============================================= */
/* SECTION TARIFS                                */
/* ============================================= */
.section-tarifs { background: var(--vert-xdk); padding: 70px 24px; color: var(--blanc); position: relative; overflow: hidden; }
.section-tarifs::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 90% 10%, rgba(237,191,0,0.20) 0%, transparent 60%); pointer-events: none; }
.section-tarifs .section-title { color: var(--blanc); }
.tarifs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: 36px; }
.tarif-card { background: rgba(255,255,255,0.10); border-radius: var(--radius); padding: 26px 22px; border: 1px solid rgba(255,255,255,0.18); transition: background var(--trans); position: relative; z-index: 1; }
.tarif-card:hover { background: rgba(255,255,255,0.16); }
.tarif-icon { font-size: 2.4rem; margin-bottom: 12px; }
.tarif-card h3 { font-family: 'Overlock', sans-serif; font-size: 1.15rem; margin-bottom: 10px; color: var(--jaune-lt); letter-spacing: .03em; }
.tarif-card p, .tarif-card ul { font-size: 0.91rem; opacity: 0.92; }
.tarif-card ul { padding-left: 18px; }
.tarif-card li { margin-bottom: 5px; }
.tarif-card em { font-style: normal; opacity: 0.70; font-size: 0.84em; }

/* ============================================= */
/* CONTACT                                       */
/* ============================================= */
.section-contact { padding: 70px 24px; text-align: center; }
.contact-info { margin: 28px 0 16px; }
.contact-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--vert); color: var(--blanc);
    font-family: 'Overlock', sans-serif; font-size: 1.1rem; letter-spacing: .04em;
    padding: 15px 36px; border-radius: 6px; text-decoration: none;
    transition: background var(--trans), transform var(--trans);
    box-shadow: 0 4px 14px rgba(0,85,112,0.35);
}
.contact-btn:hover { background: var(--vert-dk); transform: translateY(-2px); }
.contact-address { color: var(--gris); font-size: 0.9rem; margin-top: 16px; font-weight: 600; }

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.site-footer { background: var(--vert-xdk); color: rgba(255,255,255,0.65); text-align: center; padding: 20px; font-size: 0.83rem; font-weight: 700; border-top: 3px solid var(--jaune); }
.site-footer a { color: var(--jaune-lt); text-decoration: none; }

/* ============================================= */
/* MODAL                                         */
/* ============================================= */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--blanc); border-radius: 16px; max-width: 620px; width: 100%; max-height: 90vh; overflow: hidden; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.35); animation: modalIn 0.28s ease; border-top: 5px solid var(--vert); display: flex; flex-direction: column; }
.modal-scroll { overflow-y: auto; flex: 1; min-height: 0; border-radius: 0 0 16px 16px; }
.modal-resa { max-width: 740px; }
@keyframes modalIn { from { opacity:0; transform: translateY(22px) scale(0.97); } to { opacity:1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 14px; background: var(--gris-lt); border: none; font-size: 1.1rem; cursor: pointer; color: var(--gris); line-height: 1; width: 32px; height: 32px; border-radius: 50%; transition: background var(--trans), color var(--trans); display: flex; align-items: center; justify-content: center; z-index: 10; }.modal-close:hover { background: var(--vert); color: var(--blanc); }
.modal-body { padding: 32px 30px; }
.modal-body h2 { font-family: 'Overlock', sans-serif; font-size: 1.9rem; color: var(--vert-dk); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; letter-spacing: .02em; }
.jeu-nom-emoji { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.modal-section { margin-top: 16px; }
.modal-section h4 { font-family: 'Overlock', sans-serif; color: var(--jaune-dk); margin-bottom: 6px; font-size: 0.88rem; letter-spacing: .06em; text-transform: uppercase; }
.modal-section p, .modal-section ul { font-size: 0.94rem; color: var(--texte); }
.modal-section ul { padding-left: 18px; }
.modal-prix-row { display: flex; gap: 16px; margin-top: 20px; }
.modal-prix-box { flex: 1; background: var(--gris-lt); border-radius: var(--radius); padding: 14px 16px; text-align: center; border-left: 4px solid var(--vert); }
.modal-prix-box .val { font-family: 'Overlock', sans-serif; font-size: 1.9rem; color: var(--vert-dk); letter-spacing: .02em; }
.modal-prix-box .lbl { font-size: 0.76rem; color: var(--gris); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.modal-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.badge-dispo-lg { font-size: 0.93rem; font-weight: 800; padding: 10px 20px; border-radius: 6px; }

/* ============================================= */
/* CALENDRIER                                    */
/* ============================================= */
.modal-dispo-zone { margin-top: 20px; }
.modal-body.has-periode-btn { padding-bottom: 16px; }
#modal-btn-bar {
    position: sticky;
    bottom: 0;
    background: var(--blanc);
    padding: 12px 30px 16px;
    border-top: 1px solid #ddeef4;
    box-shadow: 0 -6px 16px rgba(255,255,255,0.97);
    margin-top: 8px;
}
.dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.date-field label { display: block; font-size: 0.82rem; font-weight: 800; color: var(--texte); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.date-field input { width: 100%; border: 2px solid #9fc5d0; border-radius: 8px; padding: 10px 12px; font-family: 'Noticia Text', serif; font-size: 0.93rem; color: var(--texte); cursor: pointer; transition: border-color var(--trans); background: var(--blanc); }
.date-field input:focus { border-color: var(--vert); outline: none; }
#dispo-result { margin: 10px 0; font-size: 0.87rem; padding: 9px 14px; border-radius: 8px; font-weight: 700; }
.periode-warning { margin-top: 6px; font-size: 0.83rem; color: var(--rouge); font-weight: 700; }

/* ============================================= */
/* FAB PANIER                                    */
/* ============================================= */
#cart-fab {
    position: fixed; bottom: 28px; right: 28px; z-index: 500;
    background: var(--vert-dk); color: var(--blanc);
    font-family: 'Overlock', sans-serif; font-size: 0.92rem; letter-spacing: .04em;
    border: none; border-radius: 50px; padding: 14px 22px;
    display: none; align-items: center; gap: 10px; cursor: pointer;
    box-shadow: 0 6px 22px rgba(0,85,112,0.45);
    transition: background var(--trans), transform var(--trans);
    animation: fabIn 0.3s ease;
}
#cart-fab:hover { background: var(--vert-xdk); transform: translateY(-3px); }
#cart-fab-reset {
    position: absolute; top: calc(50% - 18px); right: 12px; transform: translateY(-50%);
    background: #fde8e6; color: #e74c3c; border: none;
    border-radius: 50%; width: 26px; height: 26px;
    font-size: 0.85rem; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25); transition: background 0.15s;
    z-index: 501; flex-shrink: 0;
}
#cart-fab-reset:hover { background: #f5b7b1; }
@keyframes fabIn { from { opacity:0; transform: scale(0.7) translateY(20px); } to { opacity:1; transform: scale(1); } }
#cart-count { background: var(--jaune); color: var(--texte); border-radius: 50%; width: 22px; height: 22px; font-size: 0.78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'Noticia Text', serif; }

/* ============================================= */
/* MODAL PANIER                                  */
/* ============================================= */
#modal-panier-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1100; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(5px); }
#modal-panier-overlay.active { display: flex; }
#modal-panier { background: var(--blanc); border-radius: 16px; max-width: 680px; width: 100%; max-height: 90vh; overflow-y: auto; overflow-x: hidden; position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.35); animation: modalIn 0.28s ease; border-top: 5px solid var(--jaune); }
#modal-panier::-webkit-scrollbar { width: 6px; }
#modal-panier::-webkit-scrollbar-track { background: transparent; border-radius: 0 16px 16px 0; }
#modal-panier::-webkit-scrollbar-thumb { background: rgba(0,85,112,0.25); border-radius: 10px; }

/* ============================================= */
/* FORMULAIRE                                    */
/* ============================================= */
.resa-subtitle { color: var(--gris); margin-bottom: 22px; font-size: 0.94rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row > .form-group { margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; margin-bottom: 14px; }
.form-group label { font-weight: 800; font-size: 0.83rem; margin-bottom: 5px; color: var(--texte); text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group textarea, .form-group select { border: 2px solid #9fc5d0; border-radius: 8px; padding: 10px 13px; font-family: 'Noticia Text', serif; font-size: 0.93rem; color: var(--texte); transition: border-color var(--trans); background: var(--blanc); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--vert); outline: none; }
.form-group textarea { resize: vertical; min-height: 90px; overflow-y: hidden; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; justify-content: center; }
#resa-dispo-msg { margin: 10px 0; font-weight: 700; font-size: 0.93rem; padding: 10px 14px; border-radius: 8px; display: none; }
#resa-dispo-msg.ok  { background: #e4f2f7; color: var(--vert-dk); display: block; }
#resa-dispo-msg.ko  { background: #fdecea; color: var(--rouge); display: block; }
#resa-result { margin-top: 14px; font-weight: 700; font-size: 0.93rem; padding: 12px 16px; border-radius: 8px; display: none; }
#resa-result.success { background: #e4f2f7; color: var(--vert-dk); display: block; }
#resa-result.error   { background: #fdecea; color: var(--rouge); display: block; }

/* ============================================= */
/* LIVRAISON                                     */
/* ============================================= */
.lbl-mobile { display: none; }
@media (max-width: 700px) {
    .lbl-desktop { display: none; }
    .lbl-mobile  { display: inline; }
}
.livraison-toggle-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.livraison-toggle-row label { font-weight: 800; font-size: 0.88rem; color: var(--texte); cursor: pointer; }
#livraison-zone { margin-top: 10px; }
.autocomplete-list { border: 2px solid var(--vert); border-radius: 8px; background: var(--blanc); max-height: 200px; overflow-y: auto; list-style: none; margin-top: 4px; box-shadow: 0 4px 14px var(--ombre); }
.autocomplete-list li { padding: 9px 13px; cursor: pointer; font-size: 0.9rem; transition: background var(--trans); }
.autocomplete-list li:hover { background: var(--gris-lt); }
#livraison-info { margin-top: 10px; font-size: 0.88rem; font-weight: 700; padding: 9px 14px; border-radius: 8px; }
#livraison-info.ok   { background: #e4f2f7; color: var(--vert-dk); }
#livraison-info.ko   { background: #fdecea; color: var(--rouge); }
#livraison-info.warn { background: #fff8e6; color: var(--jaune-dk); }

/* ============================================= */
/* PANIER                                        */
/* ============================================= */
.panier-liste { list-style: none; margin: 14px 0; }
.panier-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; background: var(--gris-lt); margin-bottom: 8px; font-size: 0.9rem; gap: 10px; }
.panier-item-nom { font-weight: 800; flex: 1; color: var(--vert-dk); }
.panier-item-prix { font-family: 'Overlock', sans-serif; font-size: 1.05rem; color: var(--texte); white-space: nowrap; }
.panier-item-retirer { background: none; border: none; cursor: pointer; color: var(--rouge); font-size: 1.2rem; line-height: 1; flex-shrink: 0; transition: transform var(--trans); }
.panier-item-retirer:hover { transform: scale(1.3); }
.panier-recap { background: var(--gris-lt); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0; border-left: 4px solid var(--vert); }
.panier-total { font-family: 'Overlock', sans-serif; font-size: 1.5rem; color: var(--vert-dk); }
.panier-caution { font-size: 0.82rem; color: var(--gris); font-weight: 700; margin-top: 4px; }
.prix-acompte-notice { margin-top: 10px; padding: 9px 13px; background: #fff8e1; border-left: 3px solid #f5a623; border-radius: 6px; font-size: 0.85rem; color: #7a5500; line-height: 1.4; }

/* ============================================= */
/* MAP                                           */
/* ============================================= */
#map-livraison { height: 200px; border-radius: 10px; margin-top: 12px; border: 2px solid #9fc5d0; }

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .btn-hamburger { display: block; }
    .btn-compte-label { display: none; }
    .btn-compte { padding: 6px 10px; }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .modal-body { padding: 24px 18px; }
    .modal-prix-row { flex-direction: column; }
    .jeu-card-img { height: 170px; }
    .dates-row { grid-template-columns: 1fr; }
    #cart-fab { bottom: 18px; right: 18px; padding: 12px 18px; font-size: 0.85rem; }
}

/* ================================================================
   BOUTON MON COMPTE (header)
   ================================================================ */
.btn-compte {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--vert);
    border: 1.5px solid var(--vert-dk);
    color: #fff;
    border-radius: 20px;
    padding: 6px 14px 6px 10px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-compte:hover { background: var(--vert-dk); border-color: var(--vert-xdk); }
.btn-compte.connecte { background: var(--jaune); border-color: var(--jaune-dk); color: var(--texte); }
.btn-compte.connecte:hover { background: var(--jaune-lt); }
.btn-compte-icon { font-size: 1rem; }

/* Dans le drawer (fond blanc), le bouton garde le vert */
.nav-drawer-compte .btn-compte {
    background: var(--vert-dk);
    border-color: var(--vert-dk);
    color: #fff;
}
.nav-drawer-compte .btn-compte:hover { background: var(--vert-xdk); border-color: var(--vert-xdk); }
.nav-drawer-compte .btn-compte.connecte { background: var(--jaune-dk); border-color: var(--jaune-dk); color: var(--texte); }
@media (max-width: 600px) { .btn-compte-label { display: none; } .btn-compte { padding: 6px 10px; } }

/* ================================================================
   BLOC CRÉER COMPTE (dans modal panier)
   ================================================================ */
.bloc-creer-compte {
    margin: 10px 0 4px;
    padding: 12px 14px;
    background: #eef6f9;
    border: 1.5px solid #9fc5d0;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
#zone-creer-compte { margin-top: 12px; }
.compte-info { font-size: 0.83rem; color: var(--vert-dk); margin: 0 0 10px; }

/* ================================================================
   MODAL COMPTE
   ================================================================ */
.modal-compte {
    max-width: 480px;
    width: 94%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    border-radius: 16px;
}
.compte-tabs {
    display: flex;
    gap: 0;
    margin: 0 0 20px;
    background: #ddeef4;
    border-radius: 8px;
    padding: 3px;
}
.compte-tab {
    flex: 1;
    padding: 8px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--vert-dk);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.compte-tab.active { background: #fff; color: var(--vert-dk); box-shadow: 0 1px 4px rgba(0,0,0,0.10); }
.compte-result {
    font-size: 0.88rem;
    font-weight: 600;
    margin: 6px 0 10px;
    padding: 6px 10px;
    border-radius: 6px;
    display: none;
}
.compte-result.ok    { background: #eafaf1; color: var(--vert-dk); display: block; }
.compte-result.error { background: #fdecea; color: var(--rouge); display: block; }
.w100 { width: 100%; text-align: center; }
.compte-header-connecte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}
.compte-header-connecte .modal-titre { margin: 0; }
.btn-deconnexion {
    background: none;
    border: 1.5px solid var(--rouge);
    color: var(--rouge);
    border-radius: 20px;
    padding: 5px 14px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.btn-deconnexion:hover { background: var(--rouge); color: #fff; }
.compte-sections {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}
.compte-section-btn {
    flex: 1;
    padding: 8px 6px;
    border: 1.5px solid #9fc5d0;
    background: #fff;
    border-radius: 8px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--vert-dk);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.compte-section-btn.active { background: var(--vert); border-color: var(--vert-dk); color: #fff; }

/* Carte réservation dans espace compte */
.resa-card {
    background: #fff;
    border: 1.5px solid #9fc5d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.resa-card.passe { opacity: 0.6; }
.resa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
    flex-wrap: wrap;
}
.resa-statut { font-size: 0.82rem; font-weight: 700; }
.resa-statut-en_attente { color: #E07B00; }
.resa-statut-confirmee  { color: var(--vert-dk); }
.resa-statut-annulee    { color: var(--rouge); }
.resa-date-created { font-size: 0.78rem; color: #aaa; }
.resa-jeux    { font-weight: 700; color: var(--vert-dk); margin-bottom: 4px; }
.resa-periode { font-size: 0.88rem; color: var(--texte); margin-bottom: 4px; }
.resa-livraison { font-size: 0.83rem; color: #888; }
.compte-chargement { color: #aaa; font-style: italic; text-align: center; padding: 20px 0; }
.compte-vide { color: #aaa; text-align: center; padding: 20px 0; }

/* Adresses sauvegardées */
#adresses-sauvegardees {
    margin-bottom: 10px;
}
#adresses-sauvegardees label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--vert-dk);
    margin-bottom: 5px;
}
#select-adresse-sauvegardee {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #9fc5d0;
    border-radius: 8px;
    font-family: 'Noticia Text', serif;
    font-size: 0.9rem;
    color: var(--texte);
    background: #eef6f9;
    cursor: pointer;
}

/* ================================================================
   MODE MODIFICATION DE LOCATION
   ================================================================ */
.bandeau-modif {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--vert-dk);
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.bandeau-modif span { flex: 1; }
.btn-annuler-modif {
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 20px;
    padding: 5px 14px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.btn-annuler-modif:hover { background: rgba(255,255,255,0.35); }

/* Carte jeu sélectionnée en mode modif */
.jeu-card.modif-selected .jeu-card-img { opacity: 0.88; }

/* Bouton toggle retrait dans le footer de la card */
.btn-toggle-modif {
    display: none;
    background: var(--vert);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-toggle-modif:hover { background: var(--vert-dk); }
.jeu-card.modif-selected { border-color: var(--vert) !important; background: #e4f0f4 !important; }

/* Bouton modifier dans la resa-card */
.btn-modifier-location {
    background: none;
    border: 1.5px solid var(--jaune-dk);
    color: var(--jaune-dk);
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Noticia Text', serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.btn-modifier-location:hover { background: var(--jaune-dk); color: #fff; }

.resa-info-modif {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--jaune-dk);
    font-style: italic;
}

/* ================================================================
   BARRE DE RECHERCHE PÉRIODE (HERO)
   ================================================================ */
.hero-search {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}
.hero-search-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 60px;
    padding: 10px 16px 10px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    min-width: 320px;
    max-width: 480px;
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.hero-search-inner:focus-within { box-shadow: 0 8px 36px rgba(0,0,0,0.35); }
.hero-search-icon { font-size: 1.3rem; flex-shrink: 0; }
.hero-search-field { flex: 1; text-align: left; }
.hero-search-label { font-size: 0.72rem; font-weight: 800; color: var(--vert-dk); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; cursor: pointer; }
.hero-search-field input {
    width: 100%; border: none; outline: none; font-family: 'Noticia Text', serif;
    font-size: 0.98rem; font-weight: 700; color: var(--texte); background: transparent;
    cursor: pointer; caret-color: transparent;
}
.hero-search-field input::placeholder { color: #aaa; font-weight: 600; }
.hero-search-clear {
    background: #fde8e6; border: none; border-radius: 50%;
    width: 28px; height: 28px; font-size: 0.82rem; cursor: pointer;
    color: #e74c3c; flex-shrink: 0; transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.hero-search-clear:hover { background: #f5b7b1; }

/* ================================================================
   ÉTAT DES CARDS EN MODE FILTRE DISPO
   ================================================================ */
.jeu-card.indispo {
    opacity: 0.42;
    filter: grayscale(60%);
}
.jeu-card.indispo:hover { transform: none; box-shadow: 0 2px 14px var(--ombre); border-color: transparent; }
.jeu-card.dispo-ok { border-color: var(--vert); }
.jeu-card.dispo-ok .jeu-card-img { background: linear-gradient(135deg, #c5ebe7, #37AC9F); }

@media (max-width: 600px) {
    .hero-search-inner { min-width: 0; padding: 10px 14px; }
}
