/* MÈFI — Bootstrap 5 custom (runtime variables) */
:root {
    --mf-primary: #f7d774;      /* Pastis doré */
    --mf-primary-ink: #1b1b1b;  /* Contraste */
    --mf-accent: #27c3a5;       /* Turquoise calanques */
    --bs-primary: var(--mf-primary);
    --bs-link-color: #ffffff;
  }
  
  html, body { scroll-behavior: smooth; }
  
  /* Typo & ambiance */
  body {
    font-feature-settings: "liga" 1, "kern" 1;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(39,195,165,.08), transparent 60%),
                radial-gradient(1400px 900px at 120% 10%, rgba(247,215,116,.10), transparent 60%),
                #0f0f0f;
    color: #e9ecef;
  }
  
  /* Boutons */
  .btn-primary {
    --bs-btn-bg: var(--mf-primary);
    --bs-btn-border-color: var(--mf-primary);
    --bs-btn-color: var(--mf-primary-ink);
    --bs-btn-hover-bg: #ffd556;
    --bs-btn-hover-border-color: #ffd556;
    --bs-btn-hover-color: #121212;
  }
  
  .btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    color: #fff; transition: .2s;
  }
  .btn-icon:hover { transform: translateY(-2px); border-color: #fff; }
  
  /* Nav */
  .glass-nav {
    background: rgba(18,18,18,.6);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .navbar .nav-link { opacity: .85; }
  .navbar .nav-link.active, .navbar .nav-link:hover { opacity: 1; }
  
  /* Hero */
  .hero { position: relative; overflow: hidden; }
  #top.hero { background: url('fond_accueil.jpg') center/cover no-repeat; }
  #top.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
    pointer-events: none;
  }
  .hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25;
    filter: saturate(1.05) contrast(1.05) blur(0px);
    z-index: 0;
  }
  .hero .container,
  .hero .scroll-down {
    position: relative;
    z-index: 2;
  }
  .hero-logo { filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
  .scroll-down {
    position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
    color: #fff; font-size: 1.6rem; opacity: .7;
  }
  .scroll-down:hover { opacity: 1; }

  /* Sections */
  .section-pad { padding: 90px 0; }
  .section-title { font-weight: 800; letter-spacing: .3px; }
  
  .bg-soft-gradient {
    background: linear-gradient(180deg, rgba(247,215,116,.07), rgba(39,195,165,.05));
  }
  .bg-soft-gradient-2 {
    background: linear-gradient(180deg, rgba(39,195,165,.09), rgba(247,215,116,.06));
  }
  
  /* Cartes membres */
  .member-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  }
  .member {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .member:hover,
  .member:focus-visible {
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    transform: translateY(-2px);
  }
  .member:focus {
    outline: none;
  }
  .member:focus-visible {
    outline: 2px solid rgba(255,255,255,.6);
    outline-offset: 3px;
  }
  .member .card-body { padding: 18px; }

  /* Layout spécifique de la grille des membres */
  .member-grid .member { display: block; }
  .member-grid .member .card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .member-grid .member .card-body > h3 { margin: 0; }
  .member-grid .member .card-body > p { flex: 0 0 100%; margin: 0; }

  /* Avatar membre (droite, rond) */
  .member-grid .member .member-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    margin-left: auto;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
    background: rgba(0,0,0,.2);
  }
  
  /* Icon-cards */
  .icon-card {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    border-radius: 16px; padding: 18px; height: 100%;
  }
  .icon-card i { font-size: 1.8rem; margin-bottom: 8px; color: var(--mf-primary); }
  
  /* Album carousel visuels (placeholders via gradient) */
  .bg-cover { background-size: cover; background-position: center; }
  .bg-1 { background-image: radial-gradient(circle at 30% 20%, rgba(247,215,116,.35), transparent 45%), url('../logo_2.jpg'); }
  .bg-2 { background-image: radial-gradient(circle at 70% 50%, rgba(39,195,165,.35), transparent 45%), url('../logo_2.jpg'); }
  .bg-3 { background-image: radial-gradient(circle at 50% 80%, rgba(255,255,255,.15), transparent 45%), url('../logo_2.jpg'); }
  
  /* Presse */
  .press-quote {
    border: 1px dashed rgba(255,255,255,.18);
    background: rgba(255,255,255,.03);
    border-radius: 18px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
  }

  .press-quote:hover,
  .press-quote:focus-visible {
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
  }
  
  /* Table dates */
  #datesTable tbody tr:hover { background: rgba(255,255,255,.03); }
  
  /* Footer */
  .back-to-top {
    position: fixed; right: 16px; bottom: 16px;
    width: 44px; height: 44px; border-radius: 999px;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08); color:#fff;
    border: 1px solid rgba(255,255,255,.16);
    opacity: .85; transition: .2s;
  }
  .back-to-top:hover { opacity: 1; transform: translateY(-2px); }
  
  /* Accessibilité focus */
  :focus-visible { outline: 3px solid var(--mf-accent); outline-offset: 2px; }
  
  /* Responsive */
  @media (max-width: 575.98px) {
    .member-grid { grid-template-columns: 1fr; }
    .section-pad { padding: 70px 0; }
  }
  /* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: rgba(18,18,18,0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -18px 40px rgba(0,0,0,0.45);
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0s linear 0.35s;
  z-index: 1080;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.cookie-consent__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-consent__text p {
  max-width: 52ch;
}

.cookie-consent__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-consent__actions .btn-link {
  color: #ffffff;
}

.cookie-consent__actions .btn-sm {
  font-weight: 600;
}

.cookie-preferences {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 1rem;
}

.cookie-option + .cookie-option {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.cookie-option__hint {
  color: rgba(255,255,255,0.7);
}

.cookie-consent .form-check-input:disabled {
  opacity: 0.6;
}

body.cookie-banner-active .back-to-top {
  bottom: 104px;
}

@media (min-width: 768px) {
  .cookie-consent {
    bottom: 24px;
    margin: 0 auto;
    max-width: 960px;
    border-radius: 16px 16px 0 0;
  }

  body.cookie-banner-active .back-to-top {
    bottom: 140px;
  }

  .cookie-consent__body {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-consent__form {
    flex: 1;
  }
}

/* Festival — bilan */
#festival .kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
#festival .kpi-nb {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
#festival .kpi-label {
  font-size: .9rem;
  opacity: .8;
}


