/* Bandeau cookies : même construction que celui de Mes Formations Business, aux couleurs du site */
#rdd-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; padding: 0 16px 16px; color: #fff; pointer-events: none; }
#rdd-cookies[hidden] { display: none !important; }
.rddck {
  position: relative;
  box-sizing: border-box;
  max-width: 1180px;
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  margin: 0 auto;
  padding: 22px 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1F1F27 0%, #2b2b36 100%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: auto;
  animation: rddck-in .45s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rddck-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.rddck__in { display: flex; align-items: center; gap: 28px; }
.rddck__tx { flex: 1; min-width: 0; }
.rddck__t { margin: 0 0 6px; color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.rddck__p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .85rem; line-height: 1.5; }
#rdd-cookies .rddck__p a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rddck__b { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
#rdd-cookies .rddck__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 46px;
  margin: 0;
  padding: 0 22px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #1F1F27;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s;
}
#rdd-cookies .rddck__btn:hover { transform: translateY(-1px); background: #f1f1f4; }
#rdd-cookies .rddck__btn:active { transform: scale(.98); }
#rdd-cookies .rddck__btn:focus-visible, #rdd-cookies .rddck__lien:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* « Tout accepter » au rouge du site ; « Tout refuser » garde la même taille : refuser reste aussi simple qu'accepter */
#rdd-cookies .rddck__btn--oui { border-color: var(--primary, #9E0B0F); background: var(--primary, #9E0B0F); color: #fff; }
#rdd-cookies .rddck__btn--oui:hover { border-color: #b5121b; background: #b5121b; }
#rdd-cookies .rddck__lien {
  margin: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  cursor: pointer;
}
.rddck__pan[hidden] { display: none !important; }
.rddck__pan { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.rddck__fin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rddck__f { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; }
.rddck__f b { display: block; margin-bottom: 3px; color: #fff; font-size: .85rem; font-weight: 700; }
.rddck__f span span { display: block; color: rgba(255, 255, 255, .72); font-size: .78rem; line-height: 1.45; }
.rddck__sw { position: relative; flex: 0 0 44px; width: 44px; height: 26px; margin-top: 1px; }
.rddck__sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rddck__sw i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: background .2s; }
.rddck__sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.rddck__sw input:checked + i { background: var(--primary, #9E0B0F); }
.rddck__sw input:checked + i::after { transform: translateX(18px); }
.rddck__sw input:disabled + i { opacity: .55; }
.rddck__sw input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.rddck__pb { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.rdd-gerer-cookies { cursor: pointer; }
@media (max-width: 900px) { .rddck__fin { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  #rdd-cookies { padding: 0; }
  .rddck { padding: 20px 16px 18px; border-radius: 16px 16px 0 0; }
  .rddck__in { flex-direction: column; align-items: stretch; gap: 16px; }
  .rddck__b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #rdd-cookies .rddck__btn { width: 100%; min-width: 0; height: 48px; padding: 0 10px; }
  #rdd-cookies .rddck__lien { grid-column: 1 / -1; padding: 4px; text-align: center; }
  .rddck__pb { flex-direction: column; }
}
/* Téléphone : bandeau bas (texte replié sur trois lignes, déplié au toucher ou avec « Personnaliser »), les trois choix sur une ligne */
@media (max-width: 575px) {
  .rddck { padding: 12px 14px; }
  .rddck__in { gap: 8px; }
  .rddck__t { margin-bottom: 4px; font-size: 15px; }
  .rddck__p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 12px; line-height: 1.35; }
  .rddck__p.is-deplie, .rddck__p:focus-within, .rddck:has(.rddck__pan:not([hidden])) .rddck__p { display: block; }
  .rddck__b { grid-template-columns: 1fr 1fr auto; gap: 8px; }
  #rdd-cookies .rddck__btn { height: 44px; padding: 0 6px; font-size: 13px; }
  #rdd-cookies .rddck__lien { grid-column: auto; padding: 13px 4px; font-size: 12px; }
}
@media (max-width: 359px) {
  .rddck__b { grid-template-columns: 1fr 1fr; }
  #rdd-cookies .rddck__lien { grid-column: 1 / -1; padding: 6px 4px; }
}
/* La barre d'achat collante passe au-dessus du bandeau tant qu'il est affiché (hauteur posée par rddmesure.js) */
body:has(#rdd-cookies:not([hidden])) .rdd-collant { bottom: var(--rdd-cookies-h, 0px); }
@media (prefers-reduced-motion: reduce) { .rddck { animation: none; } }
@media print { #rdd-cookies { display: none !important; } }
