/* ============================================
   APPSM - PAGE INFORMATIONS LÉGALES
   Fichier: css/informations-legales.css
============================================ */

.legal-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--white) 0%, #f8f5fa 100%);
  position: relative;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  position: relative;
}

/* ============================================
   MENU LATÉRAL STICKY
============================================ */
.legal-sidebar {
  position: relative;
}

.legal-sidebar-inner {
  position: sticky;
  top: 120px;
  background: var(--white);
  padding: 30px 25px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.1);
  border: 1px solid rgba(91, 45, 142, 0.08);
  border-top: 4px solid var(--orange);
}

.legal-sidebar-title {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 2px dashed rgba(91, 45, 142, 0.15);
}

.legal-sidebar-title i {
  color: var(--orange);
  font-size: 15px;
}

.legal-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-nav li {
  margin-bottom: 8px;
}

.legal-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray-600);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.legal-nav a .num {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: var(--orange);
  background: rgba(232, 103, 42, 0.1);
  padding: 4px 8px;
  border-radius: 5px;
  min-width: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: linear-gradient(
    90deg,
    rgba(91, 45, 142, 0.05) 0%,
    transparent 100%
  );
  color: var(--purple);
  border-left-color: var(--orange);
}

.legal-nav a:hover .num,
.legal-nav a.active .num {
  background: var(--orange);
  color: var(--white);
}

.legal-sidebar-footer {
  margin-top: 25px;
  padding: 15px;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.05) 0%,
    rgba(232, 103, 42, 0.05) 100%
  );
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.legal-sidebar-footer i {
  color: var(--orange);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}

.legal-sidebar-footer p {
  font-size: 12px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   CONTENU PRINCIPAL
============================================ */
.legal-content {
  min-width: 0;
}

/* Introduction */
.legal-intro {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.08);
  margin-bottom: 40px;
  border-top: 5px solid var(--orange);
}

.legal-intro .section-label {
  color: var(--orange);
  justify-content: flex-start;
}

.legal-intro .section-label::before {
  display: none;
}

.legal-intro .section-title {
  text-align: left;
  font-size: 30px;
  margin-bottom: 15px;
}

.legal-intro-text {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}

.legal-intro-text strong {
  color: var(--purple);
  font-weight: 700;
}

.legal-update {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(232, 103, 42, 0.1);
  color: var(--orange);
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-update i {
  font-size: 13px;
}

/* ============================================
   ARTICLES LÉGAUX
============================================ */
.legal-article {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.08);
  scroll-margin-top: 120px;
  border: 1px solid rgba(91, 45, 142, 0.05);
  transition: all 0.3s ease;
}

.legal-article:hover {
  box-shadow: 0 15px 40px rgba(74, 30, 92, 0.12);
}

.legal-article-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 3px dashed rgba(91, 45, 142, 0.15);
}

.legal-article-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 10px 25px rgba(91, 45, 142, 0.3);
}

.legal-article-title-wrap {
  flex: 1;
}

.legal-article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(232, 103, 42, 0.1);
  color: var(--orange);
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 8px;
}

.legal-article-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

.legal-article-title span {
  color: var(--purple);
}

/* Body de l'article */
.legal-article-body {
  color: var(--gray-600);
  line-height: 1.8;
}

.legal-intro-paragraph {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.9;
  padding: 20px;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.03) 0%,
    rgba(232, 103, 42, 0.03) 100%
  );
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
}

/* Blocs de contenu */
.legal-block {
  margin-bottom: 35px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-block h3 {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-block h3 i {
  color: var(--orange);
  font-size: 20px;
}

.legal-block p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-block p strong {
  color: var(--purple);
  font-weight: 700;
}

/* Grille infos */
.legal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.legal-info-item {
  background: var(--off-white);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s ease;
}

.legal-info-item:hover {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(74, 30, 92, 0.1);
  border-left-color: var(--purple);
}

.legal-info-label {
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-info-value {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.5;
}

.legal-info-value small {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 12px;
}

/* Liste contact */
.legal-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.legal-contact-item:hover {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(74, 30, 92, 0.08);
  border-left-color: var(--orange);
  transform: translateX(5px);
}

.legal-contact-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.legal-contact-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-contact-item strong {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-contact-item span {
  font-size: 14px;
  color: var(--navy);
}

/* Listes */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.legal-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--gray-600);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.legal-list li strong {
  color: var(--purple);
  font-weight: 700;
}

/* Alertes */
.legal-alert {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  border-left: 4px solid;
}

.legal-alert i {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-alert p {
  margin: 0 !important;
  font-size: 14px;
}

.legal-alert-info {
  background: rgba(52, 152, 219, 0.08);
  border-left-color: #3498db;
}

.legal-alert-info i {
  color: #3498db;
}

.legal-alert-warning {
  background: rgba(243, 156, 18, 0.08);
  border-left-color: #f39c12;
}

.legal-alert-warning i {
  color: #f39c12;
}

/* Grille droits */
.legal-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.legal-right-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.legal-right-item:hover {
  background: var(--white);
  box-shadow: 0 5px 15px rgba(74, 30, 92, 0.1);
  transform: translateY(-3px);
}

.legal-right-item i {
  width: 40px;
  height: 40px;
  background: rgba(232, 103, 42, 0.1);
  color: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.legal-right-item:hover i {
  background: var(--orange);
  color: var(--white);
  transform: rotate(360deg);
}

.legal-right-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.legal-right-item strong {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}

.legal-right-item span {
  font-size: 12.5px;
  color: var(--gray-500);
}

/* Contact highlight */
.legal-contact-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  color: var(--white);
  border-radius: 50px;
  margin: 15px 0 10px;
  box-shadow: 0 10px 25px rgba(91, 45, 142, 0.3);
}

.legal-contact-highlight i {
  font-size: 18px;
}

.legal-contact-highlight a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}

/* Tableau cookies */
.legal-cookies-table {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.legal-cookie-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(91, 45, 142, 0.08);
  transition: all 0.3s ease;
}

.legal-cookie-item:hover {
  background: var(--white);
  box-shadow: 0 10px 25px rgba(74, 30, 92, 0.1);
  transform: translateX(5px);
}

.legal-cookie-icon {
  width: 55px;
  height: 55px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(232, 103, 42, 0.3);
}

.legal-cookie-info {
  flex: 1;
}

.legal-cookie-info h4 {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px 0;
}

.legal-cookie-info p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 10px 0;
}

.legal-cookie-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-tag-required {
  background: rgba(231, 76, 60, 0.15);
  color: #c0392b;
}

.legal-tag-optional {
  background: rgba(39, 174, 96, 0.15);
  color: #27ae60;
}

/* Bouton reset cookies */
.legal-cookie-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(232, 103, 42, 0.4);
}

.legal-cookie-reset-btn:hover {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(91, 45, 142, 0.4);
}

/* Contact final */
.legal-contact-final {
  background: linear-gradient(135deg, var(--purple) 0%, #4a1e5c 100%);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--white);
  box-shadow: 0 15px 40px rgba(74, 30, 92, 0.3);
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.legal-contact-final::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.2) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.legal-contact-final-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 32px;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.legal-contact-final h3 {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.legal-contact-final p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.legal-contact-final .btn {
  position: relative;
  z-index: 2;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar-inner {
    position: relative;
    top: auto;
  }

  .legal-info-grid,
  .legal-rights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .legal-section {
    padding: 60px 0;
  }

  .legal-article,
  .legal-intro {
    padding: 25px 20px;
  }

  .legal-article-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .legal-article-title {
    font-size: 22px;
  }

  .legal-article-number {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .legal-cookie-item {
    flex-direction: column;
    text-align: center;
  }

  .legal-cookie-icon {
    margin: 0 auto;
  }

  .legal-contact-final {
    padding: 35px 25px;
  }

  .legal-contact-final h3 {
    font-size: 20px;
  }
}
