/* ========================================
   BOUTONS FLOTTANTS
   ======================================== */
.info-button,
.share-button {
  position: fixed;
  top: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.info-button {
  right: 20px;
}

.share-button {
  right: 80px;
}

.info-button:hover,
.share-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.info-button svg,
.share-button svg {
  width: 24px;
  height: 24px;
  color: #333;
}

/* ========================================
   POPUPS COMMUNES
   ======================================== */
.info-popup,
.share-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.info-popup-content, .share-popup-content {
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    max-width: 480px;
    margin: 0 auto;
    padding: 0;
    background: none;
    font-size: clamp(0.8em, 2vw, 1em);
    color: #fff;
    position: relative;
    padding-top: 35px;
    pointer-events: none;
}

@keyframes slideUp {
  from { 
    transform: translateY(50px);
    opacity: 0;
  }
  to { 
    transform: translateY(0);
    opacity: 1;
  }
}

.info-popup-close, .share-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border: none;
    background: #000;
    color: #fff;
    font-size: 3em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s 
ease;
    border-radius: 50%;
    z-index: 999;
    rotate: 0deg;
        pointer-events: auto;
}

.info-popup-close:hover,
.share-popup-close:hover {
    color: #000;
    background: #fff;
}

/* ========================================
   POPUP INFO - ACCORDÉON
   ======================================== */
.info-sections {
  margin-top: 20px;
  pointer-events: auto;
}

.info-section {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}


.info-section-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    /*font-size: 0.9em;*/
    font-weight: 900;
    text-align: left;
    transition: background 0.2s;
    font-family: "Merienda", cursive;
}

.info-section-header:hover {
  background: #e9ecef;
}

.info-section-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.info-section.open .info-section-icon {
  transform: rotate(180deg);
}

.info-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  backdrop-filter: blur(20px);

}

.info-section.open .info-section-content {
  max-height: 1000px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

.info-section-content h3 {
  margin-top: 0;
  color: #333;
}

.info-section-content p {
  line-height: 1.6;
  margin-bottom:1em;
}

.info-section-content ul,
.info-section-content ol {
  line-height: 1.8;
}

/* ========================================
   POPUP PARTAGE
   ======================================== */
.share-popup-content h3 {
  margin: 0 0 25px 0;
  font-size: 1.4em;
  text-align: center;
}

.share-networks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  pointer-events:auto;
}

.share-network-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.share-network-btn:hover {
  border-color: var(--network-color);
  background: var(--network-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-network-btn svg {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.share-network-btn:hover svg {
  color: white;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .info-button,
  .share-button {
    width: 45px;
    height: 45px;
    top: 10px;
  }
  
  .info-button {
    right: 10px;
  }
  
  .share-button {
    right: 65px;
  }
  
  .info-popup-content,
  .share-popup-content {
    width: 95%;
    max-height: 90vh;
  }
  
  .share-networks {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .share-network-btn {
    padding: 15px 10px;
    font-size: 13px;
  }
}