/* Cookie Consent BY FLYDEV v2 */
:root {
  --fcc-primary: #1c63ad; --fcc-primary-text: #fff; --fcc-bg: #fff; --fcc-text: #1d2327;
  --fcc-link: #1c63ad; --fcc-radius: 12px; --fcc-font: inherit;
  --fcc-float-bg: #1c63ad; --fcc-float-color: #fff;
  --fcc-muted: color-mix(in srgb, var(--fcc-text) 65%, transparent);
  --fcc-line: color-mix(in srgb, var(--fcc-text) 14%, transparent);
  --fcc-soft: color-mix(in srgb, var(--fcc-text) 5%, var(--fcc-bg));
  --fcc-shadow: 0 12px 40px rgba(15, 23, 42, .18), 0 2px 8px rgba(15, 23, 42, .08);
}

.fcc-banner[hidden], .fcc-overlay[hidden], .fcc-float[hidden] { display: none !important; }

.fcc-banner, .fcc-modal, .fcc-float, .fcc-list {
  font-family: var(--fcc-font); font-size: 15px; line-height: 1.55; color: var(--fcc-text);
  -webkit-font-smoothing: antialiased; box-sizing: border-box;
}
.fcc-banner *, .fcc-modal *, .fcc-banner *::before, .fcc-modal *::after { box-sizing: border-box; }
.fcc-banner p, .fcc-modal p { margin: 0 0 .6em; }
.fcc-banner p:last-child, .fcc-modal p:last-child { margin-bottom: 0; }

.fcc-title { margin: 0 0 6px !important; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--fcc-text); }
.fcc-text { font-size: 14px; color: var(--fcc-muted); }
.fcc-a, .fcc-text a, .fcc-sec__text a { color: var(--fcc-link); text-decoration: underline; text-underline-offset: 2px; }
.fcc-logo { display: block; max-height: 40px; max-width: 140px; width: auto; height: auto; flex: none; }
.fcc-powered { margin: 8px 0 0 !important; font-size: 11px; color: var(--fcc-muted); text-align: right; width: 100%; }

/* ---------- Boutons (même poids visuel par défaut) ---------- */
.fcc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fcc-btn {
  flex: 1 1 140px; min-height: 44px; padding: 10px 18px; margin: 0;
  border: 2px solid var(--fcc-primary); border-radius: calc(var(--fcc-radius) * .66);
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: filter .15s, background-color .15s, color .15s, transform .1s;
  display: inline-flex; align-items: center; justify-content: center;
}
.fcc-btn:active { transform: translateY(1px); }
.fcc-btn--same, .fcc-btn--mixed.fcc-btn--accept { background: var(--fcc-primary); color: var(--fcc-primary-text); }
.fcc-btn--same:hover, .fcc-btn--mixed.fcc-btn--accept:hover { filter: brightness(1.1); }
.fcc-btn--outline, .fcc-btn--mixed { background: transparent; color: var(--fcc-primary); }
.fcc-btn--outline:hover, .fcc-btn--mixed:not(.fcc-btn--accept):hover { background: var(--fcc-primary); color: var(--fcc-primary-text); }

.fcc-banner :focus-visible, .fcc-modal :focus-visible, .fcc-float:focus-visible {
  outline: 3px solid #f0b849; outline-offset: 2px;
}
.fcc-modal:focus { outline: none; }

.fcc-skip {
  background: none; border: 0; padding: 4px 0; margin: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--fcc-muted); text-decoration: underline; text-underline-offset: 2px;
}
.fcc-skip:hover { color: var(--fcc-text); }

/* ---------- Bannière ---------- */
.fcc-banner { position: fixed; z-index: 2147483000; left: 0; right: 0; pointer-events: none; }
.fcc-banner.fcc-pos-bottom { bottom: 0; }
.fcc-banner.fcc-pos-top { top: 0; }
.fcc-banner__box {
  position: relative; pointer-events: auto; background: var(--fcc-bg);
  box-shadow: var(--fcc-shadow); padding: 22px 24px;
  opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease;
}
.fcc-pos-top .fcc-banner__box { transform: translateY(-16px); }
.fcc-banner.is-visible .fcc-banner__box { opacity: 1; transform: none; }
.fcc-banner__main { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.fcc-banner__content { flex: 1; min-width: 0; padding-right: 8px; }
.fcc-skip { position: absolute; top: 12px; right: 18px; }
.fcc-banner .fcc-title { padding-right: 160px; }

/* Barre pleine largeur */
.fcc-banner--bar .fcc-banner__box {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: none; border-radius: 0; padding: 18px max(24px, calc((100% - 1200px) / 2));
}
.fcc-banner--bar .fcc-banner__main { flex: 1 1 520px; margin: 0; }
.fcc-banner--bar .fcc-actions { flex: 0 1 auto; }
.fcc-banner--bar .fcc-btn { flex: 0 0 auto; }
.fcc-banner--bar .fcc-skip { position: static; order: 3; }
.fcc-banner--bar .fcc-title { padding-right: 0; }

/* Encadrés */
.fcc-banner--box .fcc-banner__box,
.fcc-banner--box_left .fcc-banner__box,
.fcc-banner--box_right .fcc-banner__box { margin: 16px; border-radius: var(--fcc-radius); }
.fcc-banner--box .fcc-banner__box { max-width: 760px; margin-left: auto; margin-right: auto; }
.fcc-banner--box_left .fcc-banner__box,
.fcc-banner--box_right .fcc-banner__box { max-width: 420px; }
.fcc-banner--box_right .fcc-banner__box { margin-left: auto; }
.fcc-banner--box_left .fcc-btn, .fcc-banner--box_right .fcc-btn { flex-basis: 100%; }
.fcc-banner--box_left .fcc-title, .fcc-banner--box_right .fcc-title { padding-right: 0; margin-top: 18px !important; }

/* Fenêtre centrée */
.fcc-banner--modal {
  inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15, 23, 42, 0); transition: background .25s; pointer-events: auto;
}
.fcc-banner--modal.is-visible { background: rgba(15, 23, 42, .55); }
.fcc-banner--modal .fcc-banner__box { max-width: 560px; width: 100%; border-radius: var(--fcc-radius); padding: 28px; }
.fcc-banner--modal .fcc-banner__main { flex-direction: column; }
.fcc-banner--modal .fcc-title { padding-right: 0; margin-top: 14px !important; font-size: 19px; }

/* ---------- Écran de réglages ---------- */
.fcc-overlay {
  position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 23, 42, 0); transition: background .2s;
}
.fcc-overlay.is-visible { background: rgba(15, 23, 42, .55); }
.fcc-modal {
  position: relative; width: 100%; max-width: 860px; max-height: min(90vh, 720px);
  display: flex; flex-direction: column; background: var(--fcc-bg);
  border-radius: var(--fcc-radius); box-shadow: var(--fcc-shadow); overflow: hidden;
  opacity: 0; transform: scale(.97); transition: opacity .2s, transform .2s;
}
.fcc-overlay.is-visible .fcc-modal { opacity: 1; transform: none; }
.fcc-modal__head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--fcc-line); }
.fcc-modal__head .fcc-title { flex: 1; margin: 0 !important; font-size: 18px; }
.fcc-x {
  width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent;
  font-size: 26px; line-height: 1; color: var(--fcc-muted); cursor: pointer;
}
.fcc-x:hover { background: var(--fcc-soft); color: var(--fcc-text); }

.fcc-modal__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px 1fr; }
.fcc-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: var(--fcc-soft); border-right: 1px solid var(--fcc-line); overflow-y: auto; }
.fcc-nav button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 8px; background: transparent; text-align: left;
  font: inherit; font-size: 14px; color: var(--fcc-text); cursor: pointer;
}
.fcc-nav button:hover { background: color-mix(in srgb, var(--fcc-text) 7%, transparent); }
.fcc-nav button[aria-selected="true"] { background: var(--fcc-bg); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.fcc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: #c3c4c7; }
.fcc-dot.is-on { background: #00a32a; }

.fcc-sections { overflow-y: auto; padding: 24px 28px; }
.fcc-modal--tabs .fcc-sec { display: none; }
.fcc-modal--tabs .fcc-sec.is-active { display: block; animation: fcc-fade .2s ease; }
.fcc-modal--onepage .fcc-modal__body { grid-template-columns: 1fr; }
.fcc-modal--onepage .fcc-nav { display: none; }
.fcc-modal--onepage .fcc-sec { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--fcc-line); }
.fcc-modal--onepage .fcc-sec:last-child { border-bottom: 0; margin-bottom: 0; }
@keyframes fcc-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.fcc-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.fcc-sec__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--fcc-text); }
.fcc-sec__text { font-size: 14px; color: var(--fcc-muted); }
.fcc-always { flex: none; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, #00a32a 12%, transparent); color: #00752a; font-size: 12px; font-weight: 700; }

.fcc-switch { display: inline-flex; align-items: center; gap: 10px; position: relative; flex: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.fcc-switch input { position: absolute; left: 0; top: 0; width: 46px; height: 26px; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.fcc-switch__track { position: relative; width: 46px; height: 26px; border-radius: 26px; background: #a7aaad; transition: background .2s; }
.fcc-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.fcc-switch input:checked + .fcc-switch__track { background: var(--fcc-link); }
.fcc-switch input:checked + .fcc-switch__track::after { transform: translateX(20px); }
.fcc-switch input:focus-visible + .fcc-switch__track { outline: 3px solid #f0b849; outline-offset: 2px; }

.fcc-details { margin-top: 14px; font-size: 13px; }
.fcc-details summary { cursor: pointer; color: var(--fcc-link); font-weight: 600; }
.fcc-table-wrap { overflow-x: auto; margin-top: 8px; }
.fcc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fcc-table th, .fcc-table td { padding: 8px 10px; border: 1px solid var(--fcc-line); text-align: left; vertical-align: top; }
.fcc-table th { background: var(--fcc-soft); font-weight: 600; }
.fcc-table code { font-size: 12px; white-space: nowrap; }

.fcc-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--fcc-line); background: var(--fcc-bg); }

/* ---------- Bouton flottant ---------- */
.fcc-float {
  position: fixed; bottom: 18px; z-index: 2147482999; width: 48px; height: 48px; border-radius: 50%;
  border: 0; padding: 0; background: var(--fcc-float-bg); color: var(--fcc-float-color); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.fcc-float:hover { transform: scale(1.08); }
.fcc-float--left { left: 18px; }
.fcc-float--right { right: 18px; }

/* ---------- Shortcodes ---------- */
.fcc-list h3 { margin-top: 1.4em; }
.fcc-list .fcc-btn { flex: none; display: inline-flex; }

html.fcc-lock { overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .fcc-modal__body { grid-template-columns: 1fr; }
  .fcc-nav { display: none; }
  .fcc-modal .fcc-sec { display: block !important; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--fcc-line); }
  .fcc-modal .fcc-sec:last-child { border-bottom: 0; }
  .fcc-sections { padding: 18px; }
  .fcc-modal__foot { padding: 12px 16px; }
  .fcc-modal__foot .fcc-btn { flex-basis: 100%; }
  .fcc-overlay { padding: 0; align-items: flex-end; }
  .fcc-modal { max-height: 92vh; border-radius: var(--fcc-radius) var(--fcc-radius) 0 0; }
  .fcc-banner__box { margin: 8px !important; padding: 40px 16px 16px !important; }
  .fcc-banner--bar .fcc-banner__box { border-radius: var(--fcc-radius); }
  .fcc-banner .fcc-title { padding-right: 0; }
  .fcc-banner--bar .fcc-skip { position: absolute; top: 12px; right: 16px; }
  .fcc-btn { flex-basis: 100% !important; }
  .fcc-float--desktop { display: none !important; }
  .fcc-float { width: 42px; height: 42px; bottom: 12px; }
  .fcc-float--left { left: 12px; }
  .fcc-float--right { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fcc-banner__box, .fcc-modal, .fcc-overlay, .fcc-banner--modal, .fcc-sec { transition: none !important; animation: none !important; }
}
