/* Bandeau de consentement aux cookies (Eric, 19/11) : voile bloquant, barre en bas sur ordinateur, panneau sur mobile */
.cc[hidden], .cc [hidden] { display: none !important; }
html.cc-ouvert, html.cc-ouvert body { overflow: hidden; }
.cc { position: fixed; inset: 0; z-index: 100000; font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: #1c2b3a; }
.cc-voile { position: absolute; inset: 0; background: rgba(28, 43, 58, .55); }
.cc-bandeau, .cc-prefs { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -12px 40px rgba(15, 34, 56, .25); }
/* Eric, 23/11 : « Tout refuser » devient un bouton à contour, aussi visible que « Tout accepter » (recommandation CNIL) */
/* Eric, 19/11 (21 h) : textes et boutons plus petits ; « Tout accepter » en bleu, « Personnaliser » et « Tout refuser »
   en simples liens soulignés ; les trois sur une ligne sur ordinateur, « Tout accepter » en premier sur mobile */
.cc-bandeau { display: flex; align-items: center; gap: 28px; padding: 20px max(24px, calc((100vw - 1240px) / 2)); }
.cc-corps { flex: 1; min-width: 0; }
.cc h2 { margin: 0 0 6px; font: 800 17px/1.25 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.01em; color: #1c2b3a; }
.cc p { margin: 0; font-size: 13px; line-height: 1.55; color: #3c4a59; }
.cc p a { color: #2e5e8c; font-weight: 700; }
.cc-actions { display: flex; flex-direction: row; align-items: center; gap: 22px; flex: none; }
.cc-btn { min-height: 42px; padding: 0 22px; border-radius: 6px; border: 2px solid #2e5e8c; background: #2e5e8c; color: #fff; font: 700 14px/1 inherit; cursor: pointer; white-space: nowrap; }
.cc-btn:hover { background: #1b3a5a; border-color: #1b3a5a; }
.cc-btn-sec { background: #fff; color: #1b3a5a; border-color: #1b3a5a; }
.cc-btn-sec:hover { background: #f4f7fb; color: #1b3a5a; }
.cc-lien { min-height: 42px; padding: 0 2px; border: 0; background: none; color: #1c2b3a; font: 600 14px/1 inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }
.cc-lien:hover { color: #2e5e8c; }
.cc-lien:focus-visible { outline: 3px solid #e6c891; outline-offset: 2px; border-radius: 4px; }
.cc-btn:focus-visible, .cc-fermer:focus-visible, .cc-cat input:focus-visible + i { outline: 3px solid #e6c891; outline-offset: 2px; }
.cc-fermer { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #1c2b3a; cursor: pointer; border-radius: 8px; }
.cc-prefs { max-height: 92vh; overflow: auto; padding: 28px max(24px, calc((100vw - 760px) / 2)) 24px; }
.cc-prefs-intro { margin-bottom: 18px !important; }
.cc-cats { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.cc-cat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; }
.cc-cat b { display: block; font-size: 15.5px; }
.cc-cat small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: #4a5b70; }
.cc-cat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-cat i { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #cfd8e3; transition: background .15s; }
.cc-cat i::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, .2); transition: transform .15s; }
.cc-cat input:checked + i { background: #0b7d5c; }
.cc-cat input:checked + i::after { transform: translateX(20px); }
.cc-cat input:disabled + i { opacity: .6; }
.cc-prefs .cc-actions { justify-content: flex-end; }

@media (max-width: 900px) {
  .cc-bandeau { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 18px calc(16px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; }
  .cc-corps { padding-right: 32px; }
  .cc h2 { font-size: 17px; }
  .cc p { font-size: 13px; }
  /* « Tout accepter » en haut, sur toute la largeur ; les deux liens côte à côte en dessous */
  .cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .cc-actions .cc-btn:not(.cc-btn-sec) { grid-column: 1 / -1; order: -1; min-height: 46px; }
  .cc-actions .cc-btn-sec { padding: 0 12px; }
  .cc-prefs { padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); }
  .cc-prefs .cc-actions .cc-btn-sec { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .cc-cat i, .cc-cat i::after { transition: none; } }
.cc-bandeau:focus, .cc-prefs:focus { outline: none; }
