/* ============================================================
   privacy-policy.css — Politique de confidentialité · ZEENEO
   Styles spécifiques à la page (hors header, footer, reset, variables)
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.policy-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.policy-hero {
  background: linear-gradient(135deg, #0a3d1a 0%, #0f5c28 50%, #147a36 100%);
  padding: 40px 0 48px;
  position: relative;
  overflow: hidden;
}
.policy-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(30, 215, 96, 0.14) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}
.policy-hero::after {
  content: '';
  position: absolute;
  bottom: -35%;
  left: -8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.policy-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.policy-hero h1 {
  color: var(--white);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin: 0 auto 12px;
}
.policy-hero .policy-hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.policy-main {
  padding: 36px 0 56px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.policy-layout {
  max-width: 820px;
  margin: 0 auto;
}

.policy-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .policy-container {
    padding: 36px 40px 40px;
  }
}

/* ============================================================
   ACCORDÉON
   ============================================================ */
.policy-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.policy-item:hover {
  border-color: rgba(30, 215, 96, 0.28);
  box-shadow: var(--shadow);
}

.policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: var(--bg);
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.4;
  transition: background var(--transition), color var(--transition);
}
.policy-header:hover {
  background: rgba(248, 249, 250, 0.95);
}
.policy-header.active {
  color: var(--green-deeper);
  background: var(--green-bg);
  border-bottom: 1px solid rgba(200, 237, 207, 0.8);
}
.policy-header-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.policy-chevron {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background var(--transition), color var(--transition), border-color var(--transition);
}
.policy-header.active .policy-chevron {
  transform: rotate(180deg);
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.policy-content {
  display: none;
  padding: 20px 18px 22px;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.25s ease;
}
.policy-content.show {
  display: block;
}
.policy-content p {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
}
.policy-content p:last-child {
  margin-bottom: 0;
}
.policy-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin: 20px 0 10px;
  letter-spacing: -0.01em;
}
.policy-content h4:first-child {
  margin-top: 0;
}
.policy-content ul {
  margin: 0 0 14px 0;
  padding: 0;
  list-style: none;
}
.policy-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--grey);
  line-height: 1.65;
}
.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.85;
}
.policy-content ul li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RETOUR ACCUEIL
   ============================================================ */
.back-to-home {
  text-align: center;
  margin-top: 32px;
  padding-bottom: 8px;
}
.back-to-home a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  transition: background var(--transition), color var(--transition), gap var(--transition), box-shadow var(--transition);
}
.back-to-home a:hover {
  background: var(--green);
  color: var(--white);
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(30, 215, 96, 0.25);
}
.back-to-home a svg {
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .policy-main { padding: 28px 0 44px; margin-top: -20px; }
  .policy-container {
    padding: 22px 16px 26px;
    border-radius: var(--radius);
  }
  .policy-header {
    padding: 14px 14px;
    font-size: 14px;
  }
  .policy-content {
    padding: 16px 14px 18px;
  }
  .policy-content p,
  .policy-content ul li {
    font-size: 15px;
  }
  .policy-chevron {
    width: 30px;
    height: 30px;
  }
  .back-to-home { margin-top: 24px; }
}

@media (max-width: 480px) {
  .policy-hero { padding: 32px 0 40px; }
  .policy-hero .policy-hero-sub { font-size: 14px; }
}
