/* Bandeau de consentement aux cookies (couche d'hébergement, 11/10/2026).
   Habillage repris de la charte du site (variables de styles.css, avec des valeurs de repli si elles manquent).
   En bas à gauche : la bulle du chat occupe le coin bas droit. Au-dessus de tout, sauf la barre de progression. */
.epc { position: fixed; left: 18px; bottom: 18px; z-index: 90; width: min(440px, calc(100vw - 36px));
  background: var(--surface, #fff); color: var(--ink, #12151C); border: 1px solid var(--outline, rgba(18,21,28,.12));
  border-radius: var(--r-card, 16px); box-shadow: var(--shadow-lg, 0 30px 80px -30px rgba(18,21,28,.35));
  font-family: var(--font-body, system-ui, sans-serif); font-size: 15px; line-height: 1.5; padding: 22px 22px 20px;
  opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease, ease), transform .35s var(--ease, ease); }
.epc.is-visible { opacity: 1; transform: none; }
.epc[hidden] { display: none !important; }
.epc::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--grad, linear-gradient(100deg, #2E67FF 0%, #9810FA 45%, #FF6C35 100%)); }
.epc-titre { font-family: var(--font-display, system-ui, sans-serif); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 0 0 8px; }
.epc-texte { margin: 0 0 16px; color: var(--ink-2, #5C6068); }
.epc-texte a, .epc-lien { color: var(--ink, #12151C); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.epc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Refuser et accepter : exactement le même poids visuel (exigence CNIL) */
.epc-btn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 12px 16px; border-radius: var(--r-btn, 8px); border: 1px solid var(--ink, #12151C); background: var(--ink, #12151C); color: #fff;
  font: 600 15px/1 var(--font-body, system-ui, sans-serif); transition: transform .25s var(--ease, ease), background-color .25s, color .25s; }
.epc-btn:hover { transform: translateY(-1px); background: #fff; color: var(--ink, #12151C); }
.epc-btn:focus-visible, .epc-perso:focus-visible, .epc-bascule input:focus-visible + span { outline: 2px solid var(--blue, #2E67FF); outline-offset: 2px; }
.epc-pied { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; }
.epc-perso { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2, #5C6068); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.epc-choix { display: grid; gap: 10px; margin: 0 0 16px; }
.epc-choix[hidden] { display: none; }
.epc-ligne { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: var(--r-input, 10px);
  background: var(--bg, #F4F3F0); }
.epc-ligne strong { display: block; font-weight: 600; }
.epc-ligne small { display: block; color: var(--ink-2, #5C6068); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.epc-bascule { position: relative; flex: none; width: 42px; height: 24px; margin-top: 2px; }
.epc-bascule input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.epc-bascule span { position: absolute; inset: 0; border-radius: 999px; background: rgba(18,21,28,.2); transition: background-color .25s; pointer-events: none; }
.epc-bascule span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease, ease); }
.epc-bascule input:checked + span { background: var(--blue, #2E67FF); }
.epc-bascule input:checked + span::after { transform: translateX(18px); }
.epc-bascule input:disabled + span { background: var(--ink-2, #5C6068); opacity: .55; }
.epc-gerer { appearance: none; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: inherit; }
.epc-gerer:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .epc { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 18px 16px 16px; font-size: 14px; }
  .epc-titre { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .epc, .epc-btn, .epc-bascule span, .epc-bascule span::after { transition: none; } }
