/* ════════════════════════════════════════════════════════════════
   global.css — Éléments présents sur toutes les pages (v2.6)
   • Bouton WhatsApp flottant + menu (écrire, partager, appeler)
   • Bandeau de consentement aux cookies
   Chargé par includes/header.php après main.css.
   ════════════════════════════════════════════════════════════════ */

/* ── WhatsApp flottant ────────────────────────────────────────── */
.fdp-wa { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    font-family: var(--font-body, system-ui, sans-serif); }
.fdp-wa__btn { display: inline-flex; align-items: center; gap: .55rem; border: 0; cursor: pointer; border-radius: 999px;
    padding: .8rem 1.15rem .8rem .95rem; background: #25d366; color: #fff; font-weight: 800; font-size: .95rem;
    box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.18); transition: transform .15s ease, box-shadow .15s ease; }
.fdp-wa__btn i { font-size: 1.55rem; line-height: 1; min-width: 1em; }
.fdp-wa__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(37,211,102,.55), 0 2px 6px rgba(0,0,0,.18); }
.fdp-wa__btn:focus-visible { outline: 3px solid #0a2e1a; outline-offset: 3px; }
.fdp-wa.is-nudge .fdp-wa__btn { animation: fdpWaPulse 1.6s ease-in-out 3; }
@keyframes fdpWaPulse { 0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.55); }
                        50% { box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); } }

.fdp-wa__menu { width: min(320px, calc(100vw - 36px)); background: #fff; border-radius: 1.1rem; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,.25); border: 1px solid #e2e8f0; animation: fdpWaIn .18s ease-out; }
.fdp-wa__menu[hidden] { display: none; }
@keyframes fdpWaIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.fdp-wa__hello { margin: 0; padding: .9rem 1rem; font-size: .84rem; line-height: 1.5; color: #f0fdf4; background: #075e54; }
.fdp-wa__hello strong { color: #fff; display: block; font-size: .95rem; }
.fdp-wa__item { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; text-decoration: none; color: #0f172a;
    border-top: 1px solid #f1f5f9; transition: background .12s; }
.fdp-wa__item:hover { background: #f0fdf4; }
.fdp-wa__item i { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #075e54; font-size: 1rem; }
.fdp-wa__item--main i { background: #25d366; color: #fff; font-size: 1.25rem; }
.fdp-wa__item span { display: flex; flex-direction: column; font-weight: 700; font-size: .9rem; }
.fdp-wa__item small { font-weight: 500; font-size: .76rem; color: #64748b; }

/* Le bouton remonte quand le bandeau cookies est affiché */
body.has-consent-banner .fdp-wa { bottom: calc(var(--fdp-consent-h, 120px) + 14px); }

/* Ne pas masquer le bouton « retour en haut » existant */
.back-to-top { bottom: 92px !important; }

@media (max-width: 575.98px) {
    .fdp-wa { right: 12px; bottom: 12px; }
    .fdp-wa__btn { padding: 0; width: 58px; height: 58px; justify-content: center; }
    .fdp-wa__btn i { font-size: 1.85rem; }
    .fdp-wa__label { display: none; }
    .back-to-top { bottom: 80px !important; right: 14px !important; }
}
@media print { .fdp-wa, .fdp-consent { display: none !important; } }

/* ── Bandeau de consentement ──────────────────────────────────── */
.fdp-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center;
    font-family: var(--font-body, system-ui, sans-serif); }
.fdp-consent[hidden] { display: none; }
.fdp-consent__inner { display: flex; gap: 1.2rem; align-items: flex-end; width: 100%; max-width: 1100px; padding: 1.1rem 1.3rem;
    background: #0f172a; color: #e2e8f0; border-radius: 1.1rem; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.fdp-consent__text { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.6; }
.fdp-consent__text p { margin: 0; }
.fdp-consent__title { font-weight: 800; color: #fff; font-size: .98rem; margin-bottom: .3rem !important; display: flex; gap: .45rem; align-items: center; }
.fdp-consent__title i { color: #fbbf24; }
.fdp-consent__text a { color: #90e0ef; font-weight: 600; }
.fdp-consent__prefs { margin-top: .75rem; display: grid; gap: .5rem; }
.fdp-consent__prefs[hidden] { display: none; }
.fdp-consent__opt { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: #cbd5e1; padding: .55rem .7rem;
    background: rgba(255,255,255,.05); border-radius: .7rem; }
.fdp-consent__opt input { margin-top: .2rem; accent-color: #25d366; width: 16px; height: 16px; flex-shrink: 0; }
.fdp-consent__opt strong { color: #fff; }
.fdp-consent__actions { display: flex; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.fdp-consent__btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; padding: .7rem 1.1rem; border-radius: 999px;
    transition: background .15s, transform .15s; }
.fdp-consent__btn:hover { transform: translateY(-1px); }
.fdp-consent__btn--primary { background: #25d366; color: #052e16; }
.fdp-consent__btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.fdp-consent__btn:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

@media (max-width: 767.98px) {
    .fdp-consent { left: 8px; right: 8px; bottom: 8px; }
    .fdp-consent__inner { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem; }
    .fdp-consent__actions { justify-content: stretch; }
    .fdp-consent__btn { flex: 1; }
    .fdp-consent__btn--primary { order: -1; flex-basis: 100%; }
}

/* ── Lien « Gérer les cookies » du pied de page ───────────────── */
.fdp-linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }
.fdp-linklike:hover { text-decoration: underline; }
