/* ============================================================
   MENTIONS-LEGALES.CSS — Page mentions légales Atryvia
   ============================================================ */

/* ===== HERO ===== */
.hero {
  padding: 72px 0 34px;
  position: relative;
}

.hero-wrap {
  max-width: 920px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--navy);
}

.hero-subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-note {
  margin-top: 22px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--text-light);
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(47, 55, 50, 0.04);
}

/* ===== LAYOUT LÉGAL ===== */
.section {
  padding: 42px 0 84px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

/* ===== SIDEBAR ===== */
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(47, 55, 50, 0.1);
}

.legal-sidebar h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.legal-sidebar nav {
  display: grid;
  gap: 10px;
}

.legal-sidebar a {
  color: var(--text-light);
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.2s ease, color 0.2s ease;
  display: block;
  text-decoration: none;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  background: rgba(45, 90, 61, 0.08);
  color: var(--navy);
}

.legal-sidebar a.active {
  font-weight: 600;
  border-left: 3px solid var(--green);
  padding-left: 9px;
}

/* ===== CONTENU ===== */
.legal-content {
  display: grid;
  gap: 22px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  scroll-margin-top: 110px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.legal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(47, 55, 50, 0.09);
}

/* --- NOUVEAU : En-tête de section avec bouton PDF --- */
.legal-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(109, 125, 115, 0.15);
}

.legal-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.legal-card h3 {
  margin: 28px 0 10px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.legal-intro {
  margin: 0 0 16px;
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--text-light);
  list-style: disc;
}

.legal-card li {
  margin-bottom: 8px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.legal-card a {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--navy);
}

/* --- NOUVEAU : Bouton de téléchargement PDF --- */
.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(109, 125, 115, 0.15);
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-pdf-download:hover,
.btn-pdf-download:focus {
  background: var(--green);
  color: white;
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 90, 61, 0.15);
}

.btn-pdf-download svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== GRILLE INFOS ===== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.legal-info {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(109, 125, 115, 0.08);
  border-radius: 20px;
  padding: 18px;
}

.legal-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--navy);
}

.legal-info span {
  color: var(--text-light);
  font-size: 0.95rem;
}

.legal-info a {
  color: var(--green-dark);
  text-decoration: underline;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* Ajustement pour l'icône SVG à l'intérieur du bouton */
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===== FOOTER SIMPLIFIÉ ===== */
.footer-legal {
  padding: 28px 0 40px;
  color: var(--text-light);
  font-size: 0.93rem;
  border-top: 1px solid rgba(109, 125, 115, 0.08);
  margin-top: 24px;
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--navy);
}

.legal-separator {
  opacity: 0.4;
}

/* ===== ANIMATIONS REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .legal-layout { 
    grid-template-columns: 1fr; 
  }
  .legal-sidebar { 
    position: static; 
  }
}

@media (max-width: 760px) {
  .hero { padding: 46px 0 24px; }
  .hero-title { font-size: 2.4rem; }
  
  .legal-card { 
    padding: 24px 20px; 
    border-radius: 20px; 
  }
  
  /* Le header s'empile sur mobile pour que le bouton PDF soit bien visible */
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-pdf-download {
    width: 100%;
    justify-content: center;
  }

  .legal-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-legal-inner { 
    flex-direction: column; 
    align-items: flex-start; 
  }
}
/* ===== SOUS-TITRES H4 DANS LES SECTIONS LÉGALES ===== */
.legal-card h4 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ===== NOTES LÉGALES (encadrés discrets) ===== */
.legal-note {
  background: rgba(45, 90, 61, 0.04);
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== TABLEAUX LÉGAUX ===== */
.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 16px;
  border: 1px solid rgba(109, 125, 115, 0.12);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.5);
}

.legal-table thead {
  background: rgba(45, 90, 61, 0.06);
}

.legal-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(109, 125, 115, 0.12);
}

.legal-table td {
  padding: 14px 16px;
  color: var(--text-light);
  line-height: 1.6;
  border-bottom: 1px solid rgba(109, 125, 115, 0.08);
  vertical-align: top;
}

.legal-table tbody tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: rgba(45, 90, 61, 0.03);
}

/* Responsive : sur mobile, les tableaux scrollent horizontalement */
@media (max-width: 640px) {
  .legal-table th,
  .legal-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}