/*
  Bandeau cookies Clickanet (RGPD) - voir js/cookies.js
  Couleurs du thème : vert #84ba3f, fonds sombres #1a1a1a / #323232
*/

.ck-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; background: #1a1a1a; border-top: 4px solid #84ba3f; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35); color: #c8c8c8; font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; -webkit-animation: ck-up 0.45s ease-out; animation: ck-up 0.45s ease-out; }
.ck-banner[hidden] { display: none; }
.ck-banner *, .ck-banner *:before, .ck-banner *:after { box-sizing: border-box; }
.ck-inner { max-width: 1170px; margin: 0 auto; padding: 22px 15px; display: flex; align-items: center; }

.ck-icon { flex: 0 0 56px; width: 56px; height: 56px; margin-right: 22px; border-radius: 50%; background: rgba(132, 186, 63, 0.14); display: flex; align-items: center; justify-content: center; }
.ck-icon svg { width: 30px; height: 30px; }

.ck-text { flex: 1 1 auto; min-width: 0; }
.ck-banner .ck-title { margin: 0 0 4px; font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 600; line-height: 24px; color: #ffffff; letter-spacing: 0.3px; }
.ck-text p { margin: 0; color: #c8c8c8; }
.ck-banner a { color: #84ba3f; text-decoration: underline; }
.ck-banner a:hover, .ck-banner a:focus { color: #ffffff; }

.ck-actions { flex: 0 0 auto; margin-left: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.ck-btn { display: inline-block; padding: 11px 24px; border: 2px solid #84ba3f; border-radius: 30px; background: transparent; color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 500; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; text-align: center; white-space: nowrap; cursor: pointer; transition: all 0.3s ease-in-out; }
.ck-btn:hover { background: #84ba3f; color: #ffffff; }
.ck-btn-accept { background: #84ba3f; color: #ffffff; }
.ck-btn-accept:hover { background: #ffffff; border-color: #ffffff; color: #323232; }
.ck-btn-link { border-color: transparent; padding-left: 8px; padding-right: 8px; text-decoration: underline; }
.ck-btn-link:hover { background: transparent; color: #84ba3f; }
.ck-btn:focus, .ck-switch input:focus + .ck-slider { outline: 2px solid #ffffff; outline-offset: 2px; }
.ck-btn:focus:not(:focus-visible), .ck-switch input:focus:not(:focus-visible) + .ck-slider { outline: none; }

/* Vue "Personnaliser" */
.ck-details, .ck-details-only { display: none; }
.ck-banner.ck-show-details .ck-summary-only { display: none; }
.ck-banner.ck-show-details .ck-details { display: block; }
.ck-banner.ck-show-details .ck-details-only { display: inline-block; }
.ck-banner.ck-show-details .ck-inner { align-items: flex-start; flex-wrap: wrap; }
.ck-banner.ck-show-details .ck-text { flex-basis: calc(100% - 78px); }
.ck-banner.ck-show-details .ck-actions { width: calc(100% - 78px); margin: 18px 0 0 78px; justify-content: flex-end; }

.ck-cats { margin: 16px 0 0; padding: 0; list-style: none; max-height: 45vh; overflow-y: auto; }
.ck-cat { display: flex; align-items: center; padding: 14px 0; border-top: 1px solid #323232; }
.ck-cat:last-child { border-bottom: 1px solid #323232; }
.ck-cat-text { flex: 1 1 auto; padding-right: 20px; }
.ck-cat-text strong { display: block; color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; }
.ck-cat-text span { display: block; font-size: 13px; line-height: 20px; color: #a8a8a8; }
.ck-always { flex: 0 0 auto; color: #84ba3f; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Interrupteur */
.ck-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin: 0; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ck-slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 26px; background: #4a4a4a; transition: background 0.25s; pointer-events: none; }
.ck-slider:before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; transition: transform 0.25s; }
.ck-switch input:checked + .ck-slider { background: #84ba3f; }
.ck-switch input:checked + .ck-slider:before { transform: translateX(20px); }

/* Carte Google Maps en attente de consentement */
.ck-map-placeholder { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: #323232; color: #c8c8c8; font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 22px; text-align: center; }
.ck-map-placeholder .ck-map-pin { font-size: 30px; color: #84ba3f; margin-bottom: 10px; }
.ck-map-placeholder p { margin: 0 0 14px; max-width: 480px; color: #c8c8c8; }
.ck-map-placeholder strong { color: #ffffff; }
.ck-map-placeholder .ck-btn { margin: 0 6px 8px; color: #ffffff; text-decoration: none; }
.ck-map-placeholder .ck-btn-accept:hover { color: #323232; }
.g-map.ck-map-blocked { position: relative; }

/* Page RGPD (rgpd.php) et mention sous le formulaire de contact */
.rgpd-content h3 { margin: 40px 0 15px; font-size: 22px; line-height: 30px; }
.rgpd-summary { margin: 10px 0 20px; padding: 25px 30px; background: #f6f7f8; border-left: 4px solid #84ba3f; border-radius: 4px; }
.rgpd-summary h4 { margin-bottom: 12px; }
.rgpd-summary li { margin-bottom: 6px; }
.rgpd-table { margin: 10px 0 20px; font-size: 14px; }
.rgpd-table > thead > tr > th { background: #323232; border-color: #323232; color: #ffffff; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; vertical-align: middle; }
.rgpd-table > tbody > tr > td { vertical-align: top; }
.rgpd-table code { padding: 2px 5px; background: #eef4e5; color: #323232; white-space: nowrap; }
.rgpd-cookies-cta { margin: 15px 0 25px; }
.rgpd-form-notice { margin: 15px 0 0; font-size: 13px; line-height: 20px; color: #888888; }

@-webkit-keyframes ck-up { from { -webkit-transform: translateY(100%); } to { -webkit-transform: translateY(0); } }
@keyframes ck-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .ck-banner { -webkit-animation: none; animation: none; }
  .ck-btn, .ck-slider, .ck-slider:before { transition: none; }
}

@media (max-width: 991px) {
  .ck-inner, .ck-banner.ck-show-details .ck-inner { flex-wrap: wrap; }
  .ck-text { flex-basis: calc(100% - 78px); }
  .ck-actions, .ck-banner.ck-show-details .ck-actions { margin: 18px 0 0 78px; align-self: auto; }
}

@media (max-width: 767px) {
  .ck-inner { padding: 16px 16px 18px; }
  .ck-icon { flex-basis: 40px; width: 40px; height: 40px; margin-right: 14px; }
  .ck-icon svg { width: 22px; height: 22px; }
  .ck-text, .ck-banner.ck-show-details .ck-text { flex-basis: calc(100% - 54px); }
  .ck-banner .ck-title { font-size: 15px; }
  .ck-text p, .ck-cat-text span { font-size: 13px; line-height: 20px; }
  .ck-cats { max-height: 40vh; }
  .ck-cat-text { padding-right: 14px; }
  .ck-always { max-width: 72px; font-size: 11px; line-height: 15px; text-align: right; }
  .ck-actions, .ck-banner.ck-show-details .ck-actions { margin: 14px 0 0; width: 100%; flex-direction: column-reverse; gap: 10px; }
  .ck-actions .ck-btn { width: 100%; }
}
