/* =============================================================
   pj-custom.css — Pizza Johns v6
   ============================================================= */


/* ─── 1. LAYOUT ──────────────────────────────────────────── */
html { min-height: 100%; }

/* ── Footer : toujours fixed en bas ────────────────────────
   Inclus dans navbar.php → toujours dans le DOM, jamais
   transporté par djax → position stable sur toutes les pages.
   Splash  : navbar poussée vers le haut pour dégager le footer.
   Interne : navbar en haut, footer en bas du viewport.         */

#pj-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important; right: 0 !important;
    z-index: 99 !important;
    background: #fff !important;
}
/* Splash : navbar au-dessus du footer (footer height ~54px) */
.splash .navbar.hidden-xs { bottom: 54px !important; }

/* Pages internes : padding-bottom pour que le contenu
   ne passe pas derrière le footer fixe */
#content-wrapper { padding-bottom: 64px; }

/* Mobile splash : footer masqué (navbar en haut sur mobile) */
@media (max-width: 767px) {
    .splash #pj-footer { display: none !important; }
}


/* ─── 2. COINS ARRONDIS GLOBAUX ─────────────────────────── */
input[type="text"],input[type="email"],input[type="search"],input[type="tel"],
input[type="password"],textarea,select,.contact-form { border-radius: 8px !important; }
button,input[type="submit"],input[type="button"],.buttonform,.btn { border-radius: 8px !important; }


/* ─── 3. PAGE MENUS — arrondis ───────────────────────────── */
#restaurant .square, #restaurant .square-big { border-radius: 14px; }
#restaurant .square-bg { border-radius: 14px; }


/* ─── 4. BANDEAU RGPD ────────────────────────────────────── */
#pj-banner {
    position: fixed; bottom: 24px; left: 50%; z-index: 999999;
    width: 480px; max-width: calc(100vw - 32px);
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    gap: 14px; padding: 22px 24px; background: #fff; border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.06);
    font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; color: #555;
    -webkit-transform: translateX(-50%) translateY(calc(100% + 36px));
    transform: translateX(-50%) translateY(calc(100% + 36px));
    visibility: hidden;
    -webkit-transition: transform .4s cubic-bezier(.34,1.12,.64,1), visibility .4s;
    transition: transform .4s cubic-bezier(.34,1.12,.64,1), visibility .4s;
}
#pj-banner.pj-visible {
    -webkit-transform: translateX(-50%) translateY(0);
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}
#pj-banner p { margin: 0; font-size: 12px; color: #777; line-height: 1.6; }
#pj-banner p a { color: #111; text-decoration: underline; }
.pj-btns { display: -webkit-flex; display: flex; gap: 8px; -webkit-justify-content: flex-end; justify-content: flex-end; }
.pj-btn { display: inline-block; padding: 9px 18px; border: none; border-radius: 8px; cursor: pointer; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; line-height: 1; white-space: nowrap; -webkit-transition: opacity .18s; transition: opacity .18s; }
.pj-btn:hover { opacity: .8; }
.pj-btn-primary   { background: #111; color: #fff; }
.pj-btn-secondary { background: #555; color: #fff; }
.pj-btn-ghost     { background: transparent; color: #666; border: 1px solid #ddd; }


/* ─── 5. MODALE RGPD ─────────────────────────────────────── */
#pj-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000000; display: -webkit-flex; display: flex; -webkit-justify-content: center; justify-content: center; -webkit-align-items: center; align-items: center; padding: 16px; background: rgba(0,0,0,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); visibility: hidden; opacity: 0; -webkit-transition: opacity .22s, visibility .22s; transition: opacity .22s, visibility .22s; }
#pj-modal.pj-visible { visibility: visible; opacity: 1; }
#pj-modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.18); -webkit-transform: scale(.95) translateY(10px); transform: scale(.95) translateY(10px); -webkit-transition: transform .25s; transition: transform .25s; }
#pj-modal.pj-visible #pj-modal-box { -webkit-transform: scale(1) translateY(0); transform: scale(1) translateY(0); }
#pj-modal-box header { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; padding: 20px 22px 16px; border-bottom: 1px solid #f0f0f0; }
#pj-modal-box header h2 { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #111; }
#pj-modal-close { background: none; border: none; color: #bbb; font-size: 18px; cursor: pointer; padding: 0; line-height: 1; border-radius: 50%; width: 28px; height: 28px; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; -webkit-transition: color .18s, background .18s; transition: color .18s, background .18s; }
#pj-modal-close:hover { color: #333; background: #f5f5f5; }
.pj-prefs { padding: 6px 22px 18px; }
.pj-pref-item { display: -webkit-flex; display: flex; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: flex-start; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f4f4f4; }
.pj-pref-item:last-child { border-bottom: none; }
.pj-pref-info { flex: 1; }
.pj-pref-info h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .5px; }
.pj-pref-info p  { margin: 0; font-size: 12px; color: #888; line-height: 1.55; }
.pj-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; margin-top: 2px; display: block; }
.pj-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pj-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #e0e0e0; border-radius: 24px; cursor: pointer; -webkit-transition: background .22s; transition: background .22s; }
.pj-slider:before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,.2); -webkit-transition: -webkit-transform .22s; transition: transform .22s; }
.pj-toggle input:checked + .pj-slider { background: #111; }
.pj-toggle input:checked + .pj-slider:before { -webkit-transform: translateX(20px); transform: translateX(20px); }
.pj-toggle input:disabled + .pj-slider { opacity: .35; cursor: not-allowed; }
#pj-modal-box footer { padding: 14px 22px; display: -webkit-flex; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid #f0f0f0; -webkit-justify-content: flex-end; justify-content: flex-end; }


/* ─── 6. FOOTER ──────────────────────────────────────────── */
#pj-footer { background: #fff; border-top: 1px solid #e8e8e8; padding: 18px 28px; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 12px; color: #777; }
.pj-footer-inner { max-width: 960px; margin: 0 auto; display: -webkit-flex; display: flex; flex-wrap: wrap; -webkit-justify-content: space-between; justify-content: space-between; -webkit-align-items: center; align-items: center; gap: 10px; }
.pj-footer-links { display: -webkit-flex; display: flex; flex-wrap: wrap; -webkit-align-items: center; align-items: center; gap: 8px; }
.pj-footer-links a, .pj-cookie-btn { color: #555; text-decoration: none; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 12px; -webkit-transition: color .18s; transition: color .18s; }
.pj-footer-links a:hover, .pj-cookie-btn:hover { color: #111; }
.pj-cookie-btn { background: none; border: none; padding: 0; cursor: pointer; }
.pj-sep { color: #ddd; }
.pj-footer-credit { color: #aaa; font-size: 11px; }
.pj-footer-credit a { color: #888; text-decoration: none; }
.pj-footer-credit a:hover { color: #111; }


/* ─── 7. BOUTON UBER EATS FIXE DROITE ───────────────────── */
#pj-uber-fixed { position: fixed; top: 120px; right: 0; z-index: 190; display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; -webkit-align-items: center; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; background: #000; color: #fff; text-decoration: none; border-radius: 10px 0 0 10px; box-shadow: -3px 3px 16px rgba(0,0,0,.25); -webkit-transition: padding-right .2s, opacity .2s; transition: padding-right .2s, opacity .2s; white-space: nowrap; }
#pj-uber-fixed:hover { opacity: .85; padding-right: 22px; color: #fff; text-decoration: none; }
#pj-uber-fixed img { display: block; height: 50px; width: auto; mix-blend-mode: screen; }
#pj-uber-fixed .pj-uber-label { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; line-height: 1.25; }
#pj-uber-fixed .pj-uber-label strong { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
#pj-uber-fixed .pj-uber-label span { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 9px; color: rgba(255,255,255,.65); }
@media (max-width: 767px) { #pj-uber-fixed { display: none; } }


/* ─── 8. PAGE CONTACT ────────────────────────────────────── */
#contact { padding-top: 100px; }
#pj-map-wrap { position: relative; width: 100%; }
#map { width: 100%; height: 420px; display: none; }
#pj-map-placeholder { width: 100%; height: 260px; background: #efefef; display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; border-bottom: 1px solid #ddd; }
.pj-map-placeholder-inner { text-align: center; font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #777; padding: 20px; }
.pj-map-placeholder-inner .fa-map-marker { font-size: 38px; color: #333; display: block; margin-bottom: 10px; }
.pj-map-placeholder-inner p { margin: 0 0 12px; font-size: 13px; }
.pj-map-placeholder-inner button { background: #111; color: #fff; border: none; padding: 9px 18px; border-radius: 8px; cursor: pointer; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-right: 8px; }
.pj-map-placeholder-inner button:hover { opacity: .8; }
.pj-map-external { color: #555; font-size: 12px; text-decoration: none; }
.pj-map-external:hover { color: #111; text-decoration: underline; }
.pj-contact-info { padding: 36px 15px; border-bottom: 1px solid #ebebeb; background: #fff; }
.pj-info-block { margin-bottom: 24px; }
.pj-info-block h2 { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #111; margin-bottom: 12px; }
.pj-info-block h2 .fa { margin-right: 5px; color: #c0392b; }
.pj-info-block address { font-style: normal; color: #444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.8; }
.pj-info-block address strong { color: #111; }
.pj-map-link { display: inline-block; margin-top: 8px; color: #555; font-size: 12px; text-decoration: none; }
.pj-map-link:hover { color: #111; text-decoration: underline; }
.pj-contact-link { display: block; color: #444; text-decoration: none; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; margin-bottom: 6px; }
.pj-contact-link:hover { color: #111; }
.pj-contact-link .fa { width: 16px; text-align: center; color: #c0392b; margin-right: 4px; }
.pj-hours { border-collapse: collapse; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; color: #555; width: 100%; }
.pj-hours td { padding: 3px 12px 3px 0; }
.pj-hours td:first-child { color: #111; font-weight: 600; min-width: 90px; }
.pj-closed { color: #bbb; font-style: italic; }
.pj-form-section { background: #f8f8f8; padding: 48px 0 56px; border-top: 1px solid #ebebeb; }
.pj-form-title { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: #111; text-align: center; margin-bottom: 34px; }
.pj-form-title::after { content: ''; display: block; width: 36px; height: 2px; background: #111; margin: 10px auto 0; }
.pj-input-wrap { margin-bottom: 14px; }
.pj-form-section .contact-form, .pj-form-section textarea.contact-form { background: #fff; border: 1px solid #ddd; color: #333; padding: 11px 14px; width: 100%; box-sizing: border-box; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 13px; border-radius: 8px !important; -webkit-transition: border-color .18s; transition: border-color .18s; }
.pj-form-section .contact-form:focus, .pj-form-section textarea.contact-form:focus { border-color: #111; outline: none; }
.pj-form-section textarea.contact-form { resize: vertical; min-height: 140px; }
.pj-math-captcha { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; flex-wrap: wrap; gap: 12px; }
.pj-captcha-question { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; color: #444; background: #f0f0f0; border: 1px solid #ddd; border-radius: 8px; padding: 10px 16px; white-space: nowrap; flex-shrink: 0; }
.pj-captcha-question strong { color: #111; font-size: 16px; }
.pj-captcha-input { flex: 1; min-width: 140px; max-width: 200px; }
#form-msg-ok  { padding: 10px 14px; background: #f0faf0; color: #3a7a3a; border: 1px solid #c3e6cb; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
#form-msg-err { padding: 10px 14px; background: #fff5f5; color: #c0392b; border: 1px solid #f5c6cb; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.pj-form-submit { text-align: center; margin-top: 22px; }
.pj-form-section .buttonform { background: #111; color: #fff; border: none; padding: 13px 48px; border-radius: 8px !important; cursor: pointer; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; -webkit-transition: opacity .18s; transition: opacity .18s; }
.pj-form-section .buttonform:hover { opacity: .82; }
.pj-delivery-section { background: #fff; border-top: 1px solid #ebebeb; padding: 28px 28px 32px; text-align: center; }
.pj-delivery-title { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #999; margin-bottom: 18px; }
.pj-delivery-logos { display: -webkit-inline-flex; display: inline-flex; -webkit-align-items: center; align-items: center; gap: 16px; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }
.pj-delivery-btn { display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; padding: 12px 20px; border: 1px solid #e8e8e8; border-radius: 12px; text-decoration: none; background: #fff; -webkit-transition: border-color .18s, box-shadow .18s; transition: border-color .18s, box-shadow .18s; min-width: 140px; }
.pj-delivery-btn:hover { border-color: #bbb; box-shadow: 0 3px 12px rgba(0,0,0,.08); text-decoration: none; }
.pj-delivery-logo { max-width: 120px; max-height: 44px; width: auto; height: auto; display: block; object-fit: contain; }


/* ─── 9. PAGE MENTIONS LÉGALES ───────────────────────────── */
.mentions-wrapper { background: #fff; min-height: 80vh; }
.mentions-content { font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; color: #444; line-height: 1.9; }
.mentions-section { margin-bottom: 30px; }
.mentions-section h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #111; border-bottom: 1px solid #eee; padding-bottom: 7px; margin-bottom: 10px; }
.mentions-content p  { margin-bottom: 10px; }
.mentions-content a  { color: #111; text-decoration: underline; }
.mentions-content strong { color: #111; }
.mentions-list { list-style: none; padding: 0; margin: 0 0 10px; }
.mentions-list li { padding: 5px 0 5px 16px; position: relative; border-bottom: 1px solid #f4f4f4; }
.mentions-list li:last-child { border-bottom: none; }
.mentions-list li::before { content: '›'; position: absolute; left: 0; color: #555; font-weight: 700; }
.mentions-cookie-btn { background: #111; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-top: 8px; }
.mentions-cookie-btn:hover { opacity: .8; }
.mentions-date { color: #bbb; font-size: 11px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #eee; }


/* ─── 10. RESPONSIVE & FIXES MOBILE ─────────────────────────

   BURGER MENU :
   fa-bars n'existe pas dans FA 4.0.1 → fa-reorder (corrigé dans index.php).
   Couleur forcée pour être visible sur fond clair.                         */

.sm-navbar .reorder i { color: #222 !important; opacity: 1 !important; }

/* ── Masquer l'ancien .arrow-nav — remplacé par #pj-mobile-fab ───────── */
@media (max-width: 767px) {
    .arrow-nav { display: none !important; }
}

/* ── FAB buttons mobiles : téléphone + livraison ─────────────────────── */
#pj-mobile-fab {
    position: fixed;
    right: 16px;
    bottom: 80px;         /* au-dessus de la barre navigateur iOS */
    z-index: 900;
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    gap: 12px;
}
/* Boutons communs */
#pj-fab-phone,
#pj-fab-uber {
    width: 56px; height: 56px;
    border-radius: 50%;
    display: -webkit-flex; display: flex;
    -webkit-flex-direction: column; flex-direction: column;
    -webkit-align-items: center; align-items: center;
    -webkit-justify-content: center; justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,.22), 0 1px 4px rgba(0,0,0,.12);
    -webkit-transition: -webkit-transform .15s, box-shadow .15s;
    transition: transform .15s, box-shadow .15s;
    gap: 2px;
}
#pj-fab-phone:active,
#pj-fab-uber:active {
    -webkit-transform: scale(.93); transform: scale(.93);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
/* Téléphone : fond blanc, icône noire */
#pj-fab-phone {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
}
#pj-fab-phone .fa {
    font-size: 22px;
    color: #111;
    line-height: 1;
}
/* Livraison : fond Uber Eats noir, icône + texte blancs */
#pj-fab-uber {
    background: #000;
    width: 60px; height: 60px;   /* légèrement plus grand = CTA principal */
}
#pj-fab-uber .fa {
    font-size: 18px;
    color: #fff;
    line-height: 1;
}
#pj-fab-uber span {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: rgba(255,255,255,.8);
    line-height: 1;
}
/* Visible xs only (custome.css gère .visible-xs) */

/* ── RGPD banner mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    #pj-banner {
        left: 12px !important; right: 12px !important;
        width: auto !important; bottom: 12px !important;
        padding: 16px 14px !important;
        -webkit-transform: translateY(calc(100% + 28px)) !important;
        transform: translateY(calc(100% + 28px)) !important;
    }
    #pj-banner.pj-visible {
        -webkit-transform: translateY(0) !important;
        transform: translateY(0) !important;
    }
    .pj-btns { -webkit-flex-wrap: wrap; flex-wrap: wrap; gap: 6px; }
    /* Layout : [Tout refuser] [Tout accepter] sur une ligne, [Personnaliser] dessous */
    #pj-customize  { order: 3; width: 100%; text-align: center; }
    #pj-reject-all { order: 1; flex: 1; }
    #pj-accept-all { order: 2; flex: 1; }
    .pj-btn { padding: 10px 8px; font-size: 10px; letter-spacing: .4px; }
}
/* Footer */
@media (max-width: 600px) {
    .pj-footer-inner { -webkit-flex-direction: column; flex-direction: column; text-align: center; }
    .pj-footer-links { -webkit-justify-content: center; justify-content: center; }
}
@media (max-width: 767px) {
    #map { height: 240px; }
    #pj-map-placeholder { height: 180px; }
    .pj-contact-info { padding: 24px 15px; }
    .pj-form-section { padding: 32px 0 40px; }
    .pj-form-section .buttonform { width: 100%; padding: 13px; }
    .pj-delivery-logos { -webkit-flex-direction: column; flex-direction: column; }
    .pj-delivery-btn { width: 100%; max-width: 220px; }
    .pj-math-captcha { -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: stretch; align-items: stretch; }
    .pj-captcha-input { max-width: 100%; }
}
