/**
 * Floorz™ Cookies RGPD — floorzcookies.css
 * Version 1.7.1 — Oswald pour titre panel préférences
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&display=swap');

/* ══════════════════════════════════════════
   OVERLAY — BANDEAU PRINCIPAL
   ══════════════════════════════════════════ */

.fcb-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
}

/* ── Positions bandeau principal ── */

/* center : déjà défini ci-dessus (défaut) */
.fcb-overlay.fcb-banner-center {
  align-items: center;
  justify-content: center;
}

/* Bas gauche */
.fcb-overlay.fcb-banner-bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.fcb-overlay.fcb-banner-bottom-left .fcb-popup {
  pointer-events: all;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

/* Bas droite */
.fcb-overlay.fcb-banner-bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.fcb-overlay.fcb-banner-bottom-right .fcb-popup {
  pointer-events: all;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}

/* Barre bas pleine largeur */
.fcb-overlay.fcb-banner-bottom-full {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}
.fcb-overlay.fcb-banner-bottom-full .fcb-popup {
  width: 100%;
  max-width: 100%;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
}
.fcb-overlay.fcb-banner-bottom-full .fcb-illo { display: none; }
.fcb-overlay.fcb-banner-bottom-full .fcb-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  width: 100%;
  text-align: left;
}
.fcb-overlay.fcb-banner-bottom-full .fcb-title  { margin: 0; font-size: 16px !important; }
.fcb-overlay.fcb-banner-bottom-full .fcb-desc   { margin: 0; flex: 1; min-width: 200px; }
.fcb-overlay.fcb-banner-bottom-full .fcb-btn    { width: auto; display: inline-flex; margin: 0; }
.fcb-overlay.fcb-banner-bottom-full .fcb-footer { display: none; }

/* Barre haut pleine largeur */
.fcb-overlay.fcb-banner-top-full {
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
}
.fcb-overlay.fcb-banner-top-full .fcb-popup {
  width: 100%;
  max-width: 100%;
  border-radius: 0 0 16px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
}
.fcb-overlay.fcb-banner-top-full .fcb-illo { display: none; }
.fcb-overlay.fcb-banner-top-full .fcb-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  width: 100%;
  text-align: left;
}
.fcb-overlay.fcb-banner-top-full .fcb-title  { margin: 0; font-size: 16px !important; }
.fcb-overlay.fcb-banner-top-full .fcb-desc   { margin: 0; flex: 1; min-width: 200px; }
.fcb-overlay.fcb-banner-top-full .fcb-btn    { width: auto; display: inline-flex; margin: 0; }
.fcb-overlay.fcb-banner-top-full .fcb-footer { display: none; }

/* ── POPUP ── */
.fcb-popup {
  background: #3a1a08;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 380px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  animation: fcb-pop 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
@keyframes fcb-pop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

/* ── ILLUSTRATION ── */
.fcb-illo { display: block; width: 100%; line-height: 0; }
.fcb-illo svg { display: block; width: 100%; }

/* ── BODY ── */
.fcb-body { padding: 20px 24px 24px; text-align: center; }

/* ── TITRE ── */
.fcb-title {
  font-family: Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #e07b00 !important;
  line-height: 1.2 !important;
  margin: 0 0 10px !important;
}
.fcb-title span {
  font-family: Georgia, serif !important;
  font-weight: 700 !important;
  color: #e07b00 !important;
  display: block !important;
  font-size: 28px !important;
}

/* ── DESC ── */
.fcb-desc {
  font-size: 12px;
  color: #fff !important;
  line-height: 1.6;
  margin: 0 0 18px;
}

/* ── BOUTONS BASE ── */
.fcb-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
  transition: background .25s, border-color .25s, transform .12s, box-shadow .25s;
}
.fcb-btn:active { transform: scale(0.97); }

.fcb-btn-big {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  transition: color .25s;
}
.fcb-btn-small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 3px;
  transition: color .25s;
}

/* ── MIAM ! ── */
.fcb-btn--miam {
  padding: 14px 20px 16px !important;
  background: #e07b00 !important;
  border: none !important;
  color: #fff !important;
  animation: fcb-pulse 2.4s ease-in-out infinite;
}
.fcb-btn--miam .fcb-btn-big   { color: #fff !important; animation: fcb-pulse-text 2.4s ease-in-out infinite; }
.fcb-btn--miam .fcb-btn-small { color: rgba(255,255,255,.75) !important; font-size: 13px !important; }
.fcb-btn--miam:hover { background: #c86e00 !important; animation: none; }
.fcb-btn--miam:hover .fcb-btn-big { animation: none; }
@keyframes fcb-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(224,123,0,0.55); }
  50%      { box-shadow: 0 0 0 10px rgba(224,123,0,0); }
}
@keyframes fcb-pulse-text {
  0%,100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.04); }
}

/* ── BOF ! ── */
.fcb-btn--beurk {
  padding: 11px 20px 12px !important;
  background: rgba(224,123,0,.12) !important;
  border: 1px solid rgba(224,123,0,.35) !important;
}
.fcb-btn--beurk .fcb-btn-big  { font-size: 15px !important; color: #e07b00 !important; letter-spacing: 2px; }
.fcb-btn--beurk .fcb-btn-small { color: rgba(224,123,0,.65) !important; }
.fcb-btn--beurk:hover { background: rgba(224,123,0,.25) !important; border-color: #e07b00 !important; }
.fcb-btn--beurk:hover .fcb-btn-big  { color: #fff !important; }
.fcb-btn--beurk:hover .fcb-btn-small { color: rgba(255,255,255,.75) !important; }

/* ── MA RECETTE ! ── */
.fcb-btn--carte {
  padding: 11px 20px 12px !important;
  background: rgba(224,123,0,.12) !important;
  border: 1px solid rgba(224,123,0,.35) !important;
}
.fcb-btn--carte .fcb-btn-big  { font-size: 15px !important; color: #e07b00 !important; letter-spacing: 2px; }
.fcb-btn--carte .fcb-btn-small { color: rgba(224,123,0,.65) !important; }
.fcb-btn--carte:hover { background: #e07b00 !important; border-color: #e07b00 !important; }
.fcb-btn--carte:hover .fcb-btn-big  { color: #fff !important; }
.fcb-btn--carte:hover .fcb-btn-small { color: rgba(255,255,255,.75) !important; }

/* ── FOOTER POPUP ── */
.fcb-footer { margin-top: 6px; text-align: center; }
.fcb-pol-link {
  font-size: 11px;
  color: rgba(224,123,0,.45);
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
}
.fcb-pol-link:hover { color: #e07b00; }

/* ══════════════════════════════════════════
   BOUTON FLOTTANT — BASE
   ══════════════════════════════════════════ */

.fcb-floating {
  position: fixed;
  z-index: 999998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3a1a08;
  border: 2px solid #e07b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(224,123,0,0.25);
  transition: transform .2s, background .2s;
}
.fcb-floating:hover { transform: scale(1.1); background: #e07b00; }

/* ── Positions bouton flottant ── */

/* Bas gauche (défaut) */
.fcb-floating.fcb-float-bottom-left {
  bottom: 20px;
  left: 20px;
}

/* Bas droite */
.fcb-floating.fcb-float-bottom-right {
  bottom: 20px;
  right: 20px;
}

/* Bas centre */
.fcb-floating.fcb-float-bottom-center {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.fcb-floating.fcb-float-bottom-center:hover {
  transform: translateX(-50%) scale(1.1);
}

/* Milieu gauche — sticky vertical */
.fcb-floating.fcb-float-middle-left {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border-radius: 0 8px 8px 0;
  width: 36px;
  height: 44px;
  border-left: none;
  box-shadow: 3px 0 12px rgba(224,123,0,0.25);
}
.fcb-floating.fcb-float-middle-left:hover {
  transform: translateY(-50%) scale(1.05);
  border-radius: 0 10px 10px 0;
}

/* Milieu droite — sticky vertical */
.fcb-floating.fcb-float-middle-right {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  border-radius: 8px 0 0 8px;
  width: 36px;
  height: 44px;
  border-right: none;
  box-shadow: -3px 0 12px rgba(224,123,0,0.25);
}
.fcb-floating.fcb-float-middle-right:hover {
  transform: translateY(-50%) scale(1.05);
  border-radius: 10px 0 0 10px;
}

/* ══════════════════════════════════════════
   MODALE MA RECETTE !
   ══════════════════════════════════════════ */

.fcb-prefs-popup {
  background: #3a1a08;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  animation: fcb-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* Header */
.fcb-prefs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(224,123,0,.2);
  flex-shrink: 0;
}
.fcb-prefs-title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #e07b00 !important;
  margin: 0 !important;
  flex: 1;
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.3 !important;
}
.fcb-prefs-close {
  background: transparent;
  border: none;
  color: rgba(224,123,0,.5);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color .15s;
  line-height: 1;
}
.fcb-prefs-close:hover { color: #e07b00; }

/* Body */
.fcb-prefs-body {
  overflow-y: auto;
  padding: 16px 20px;
  flex: 1;
}

/* Intro */
.fcb-prefs-intro-wrap { margin-bottom: 16px; text-align: center; }
.fcb-prefs-intro {
  font-size: 11px;
  color: #c9a07a;
  line-height: 2;
  margin-bottom: 8px;
}
.fcb-prefs-policy-link {
  font-size: 11px;
  color: #e07b00;
  text-decoration: underline;
  cursor: pointer;
  transition: color .2s;
  display: block;
  text-align: center;
}
.fcb-prefs-policy-link:hover { color: #c86e00; }

/* Catégorie */
.fcb-cat {
  background: rgba(224,123,0,.06);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(224,123,0,.15);
}
.fcb-cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.fcb-cat-info { display: flex; align-items: flex-start; gap: 10px; flex: 1; }
.fcb-cat-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.fcb-cat-name { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.fcb-cat-desc { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.5; }
.fcb-always-on {
  font-size: 11px; font-weight: 600; color: #e07b00;
  white-space: nowrap; padding: 4px 10px;
  background: rgba(224,123,0,0.15); border-radius: 999px;
}

/* Toggle */
.fcb-toggle-wrap { flex-shrink: 0; padding-top: 2px; }
.fcb-toggle { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.fcb-toggle input { opacity: 0; width: 0; height: 0; }
.fcb-slider { position: absolute; inset: 0; background: rgba(224,123,0,.2); border-radius: 12px; transition: background .2s; }
.fcb-slider:before {
  content: ''; position: absolute; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform .2s;
}
.fcb-toggle input:checked + .fcb-slider { background: #e07b00; }
.fcb-toggle input:checked + .fcb-slider:before { transform: translateX(18px); }

/* Pills */
.fcb-cat-cookies { display: flex; flex-wrap: wrap; gap: 5px; }
.fcb-cookie-pill {
  font-size: 10px; color: rgba(224,123,0,.6);
  background: rgba(224,123,0,.1); border-radius: 999px; padding: 2px 8px;
}

/* Footer modale */
.fcb-prefs-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(224,123,0,.2);
  flex-shrink: 0;
}
.fcb-prefs-btns { display: flex; gap: 8px; width: 100%; }
.fcb-prefs-btn {
  flex: 1;
  padding: 11px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background .2s, color .2s, transform .1s;
}
.fcb-prefs-btn:active { transform: scale(0.97); }

.fcb-prefs-btn--reject {
  background: rgba(224,123,0,.12);
  color: #e07b00;
  border: 1px solid rgba(224,123,0,.35);
}
.fcb-prefs-btn--reject:hover { background: rgba(224,123,0,.25); color: #fff; border-color: #e07b00; }

.fcb-prefs-btn--save {
  background: rgba(224,123,0,.35);
  color: #fff;
  border: 1px solid rgba(224,123,0,.5);
}
.fcb-prefs-btn--save:hover { background: rgba(224,123,0,.55); }

.fcb-prefs-btn--accept { background: #e07b00; color: #fff; }
.fcb-prefs-btn--accept:hover { background: #c86e00; }

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 420px) {
  .fcb-illo svg { max-height: 200px; }
  .fcb-popup    { border-radius: 18px; }
  .fcb-body     { padding: 14px 18px 18px; }
  .fcb-title    { font-size: 20px; }
  .fcb-title span { font-size: 24px; }
  .fcb-btn--miam { padding: 12px 16px 14px; }
  .fcb-btn-big   { font-size: 16px; }
  /* Bas gauche/droite → toute largeur sur mobile */
  .fcb-overlay.fcb-banner-bottom-left,
  .fcb-overlay.fcb-banner-bottom-right {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0,0,0,0.5);
  }
  .fcb-overlay.fcb-banner-bottom-left .fcb-popup,
  .fcb-overlay.fcb-banner-bottom-right .fcb-popup {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
}
@media (max-width: 560px) {
  .fcb-prefs-popup { border-radius: 16px 16px 0 0; max-height: 95vh; align-self: flex-end; }
}
