/* ============================================================
   COOKIES & RGPD - Cap Sud Event
   Bandeau cookie convivial, design moderne
   ============================================================ */

#cookie-banner {
   position: fixed;
   left: 16px;
   right: 16px;
   bottom: 16px;
   max-width: 760px;
   margin: 0 auto;
   background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
   border-radius: 16px;
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 103, 237, 0.10);
   padding: 18px 22px;
   z-index: 99999;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
   color: #1a1a1a;
   display: none;
   border: 1px solid rgba(0, 103, 237, 0.10);
   animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-banner.visible { display: flex; align-items: center; gap: 16px; }

@keyframes cookieSlideUp {
   from { transform: translateY(40px) scale(0.96); opacity: 0; }
   to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===== Icône cookie animée ===== */
.cookie-icon {
   flex-shrink: 0;
   width: 52px;
   height: 52px;
   background: linear-gradient(135deg, #ffe7a8 0%, #f5c060 100%);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 3px 10px rgba(245, 192, 96, 0.35);
   animation: cookieWiggle 3s ease-in-out infinite;
}
.cookie-icon svg { width: 32px; height: 32px; }

@keyframes cookieWiggle {
   0%, 90%, 100% { transform: rotate(0); }
   92% { transform: rotate(-8deg); }
   94% { transform: rotate(8deg); }
   96% { transform: rotate(-4deg); }
   98% { transform: rotate(4deg); }
}

/* ===== Contenu central ===== */
.cookie-content {
   flex: 1;
   min-width: 0;
}
.cookie-content h3 {
   margin: 0 0 4px;
   font-size: 16px;
   font-weight: 700;
   color: #1a1a1a;
}
.cookie-content p {
   margin: 0;
   font-size: 13.5px;
   line-height: 1.5;
   color: #555;
}
.cookie-content a {
   color: #0067ed;
   text-decoration: underline;
   font-weight: 500;
}
.cookie-content a:hover { color: #0058c9; }

/* ===== Bouton action ===== */
.cookie-actions {
   flex-shrink: 0;
}
.cookie-btn {
   padding: 11px 22px;
   border-radius: 8px;
   border: 0;
   font-size: 14px;
   font-weight: 600;
   cursor: pointer;
   transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
   font-family: inherit;
}
.cookie-btn-accept {
   background: linear-gradient(135deg, #0078ff 0%, #0058c9 100%);
   color: #fff;
   box-shadow: 0 4px 12px rgba(0, 103, 237, 0.30);
}
.cookie-btn-accept:hover {
   transform: translateY(-1px);
   box-shadow: 0 6px 16px rgba(0, 103, 237, 0.40);
}
.cookie-btn-accept:active { transform: translateY(0); }

/* ===== Lien "Gérer mes cookies" footer ===== */
.cookie-manage-link {
   color: inherit;
   cursor: pointer;
   text-decoration: underline;
   background: none;
   border: 0;
   padding: 0;
   font: inherit;
}
.cookie-manage-link:hover { opacity: 0.85; }

/* ===== Responsive mobile ===== */
@media (max-width: 640px) {
   #cookie-banner {
      bottom: 10px;
      left: 10px;
      right: 10px;
      padding: 16px 18px;
   }
   #cookie-banner.visible {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
   }
   .cookie-icon { width: 44px; height: 44px; }
   .cookie-icon svg { width: 26px; height: 26px; }
   .cookie-content h3 { font-size: 15px; }
   .cookie-content p { font-size: 13px; }
   .cookie-actions { width: 100%; }
   .cookie-btn { width: 100%; padding: 12px 16px; }
}
