 /* ========================================
   Bandeau Cookies — version discrète & thème
   ======================================== */

/* Barre flottante, compacte, bord doux */
.ig-cookie-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99999;

  /* visuels */
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);

  /* typo/espaces */
  font-size: .92rem;
  line-height: 1.45;
}

/* Contenu interne en grille: texte à gauche, actions à droite */
.ig-cookie-inner{
  max-width: min(var(--container, 1200px), 820px);
  margin: 0 auto;
  padding: .75rem .9rem;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  align-items: center;
}

/* Titre + texte, plus légers */
.ig-cookie-title{
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .1px;
}
.ig-cookie-text{
  margin: 0;
  color: var(--text-soft, #475569);
  font-size: .92rem;
}

/* Zone actions à droite */
.ig-cookie-actions{
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Boutons — pills compacts, cohérents thème */
.ig-btn{
  appearance: none;
  cursor: pointer;

  min-height: 38px;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm, 10px);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;

  border: 1px solid var(--border);
  background: var(--bg-soft, #f7f8fb);
  color: var(--text, #0b1220);

  transition: transform .15s ease,
              background .15s ease,
              color .15s ease,
              border-color .15s ease,
              box-shadow .15s ease;
}
.ig-btn:hover{
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* CTA principal (Accepter) */
.ig-btn.primary{
  background: var(--primary, #2563eb);
  color: #fff;
  border-color: var(--primary-600, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37,99,235,.18);
}
.ig-btn.primary:hover{
  background: var(--primary-600, #1d4ed8);
  transform: translateY(-1px);
}

/* Secondaire (Refuser/Paramètres) — sobre */
.ig-btn.ghost{
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.ig-btn.ghost:hover{
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

/* Lien d’infos */
.ig-link{
  color: var(--primary);
  text-decoration: underline;
}
.ig-link:hover{ text-decoration: none; }

/* ========================================
   Bouton flottant Cookies — discret
   ======================================== */
.ig-cookie-floating {
  position: fixed;
  right: 0px;                     /* collé au bord droit */
  bottom: 80px;
  z-index: 99998;
  padding: 4px;                 /* petit coussin */
}

.ig-cookie-floating .ig-btn {
  border-radius: 90px 0px 0px 90px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  
  /* transparence et discrétion */
  background: rgba(255,255,255,0.2);   /* blanc translucide */
  color: var(--primary);               /* ton bleu */
  box-shadow: none;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.ig-cookie-floating .ig-btn:hover {
  background: rgba(255,255,255,0.35);  /* un peu plus visible au hover */
  border-color: var(--primary-600);
  transform: translateY(-2px);
}

.ig-cookie-floating .ig-btn svg {
  width: 20px;
  height: 20px;
}




/* Icône (si utilisée) */
.cookie-ico{ color: var(--text, #0b1220); display: inline-flex; }
.cookie-ico svg{ width: 18px; height: 18px; }

/* ===== Responsif ===== */
@media (max-width: 860px){
  .ig-cookie-inner{
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .ig-cookie-actions{ justify-content: flex-start; }
  .ig-btn{ min-height: 36px; }
}

/* Mode "plein écran" si tu veux le coller bord à bord sur mobile
   (ajoute la classe .is-full-mobile à .ig-cookie-banner si besoin) */
@media (max-width: 520px){
  .ig-cookie-banner.is-full-mobile{
    left: 0; right: 0; bottom: 0;
    border-radius: 0;
    border-left: 0; border-right: 0;
  }
}



