/**
 * Doctiva Footer Styles
 */

.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand section */
.site-footer__brand {
  margin-bottom: 3rem;
  max-width: 300px;
}

.site-footer__logo {
  height: 28px;
  width: auto;
  aspect-ratio: 878 / 223;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.site-footer__tagline {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-meta);
  line-height: 1.5;
}

/* Links grid */
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Desktop: forcer l'affichage complet (pas d'accordéons) */
@media (min-width: 641px) {
  .site-footer__section details {
    border: none;
  }
  
  .site-footer__section details summary {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    list-style: none;
    cursor: default;
    padding: 0;
    pointer-events: none;
  }
  
  .site-footer__section details summary::-webkit-details-marker {
    display: none;
  }
  
  .site-footer__section details summary::before {
    display: none !important;
  }
  
  /* Forcer l'affichage du contenu sur desktop */
  .site-footer__section details[open] > ul,
  .site-footer__section details > ul {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Mobile: accordéons interactifs */
@media (max-width: 640px) {
  .site-footer__grid {
    display: block;
  }
  
  .site-footer__section {
    border-top: 1px solid #1B2330;
  }
  
  .site-footer__section details {
    border: none;
  }
  
  .site-footer__section details summary {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    position: relative;
  }
  
  .site-footer__section details summary::-webkit-details-marker {
    display: none;
  }
  
  .site-footer__section details summary::before {
    content: "+";
    display: inline-block;
    width: 20px;
    margin-right: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2563EB;
  }
  
  .site-footer__section details[open] summary::before {
    content: "−";
  }
  
  .site-footer__section details[open] summary {
    color: #ffffff;
  }
  
  .site-footer__section details ul {
    padding: 6px 0 12px;
  }
}

/* Legacy h3 support (if any section still uses it) */
.site-footer__section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.site-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__menu li {
  margin-bottom: 0.5rem;
}

.site-footer__menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--fs-meta);
  transition: var(--transition);
  display: inline-block;
}

.site-footer__menu a:hover {
  color: white;
  transform: translateX(2px);
}

/* Bottom bar */
.site-footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-meta);
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .site-footer__brand {
    max-width: 100%;
  }
}

