/* ==========================================================================
   CGV — styles spécifiques à la page, complètent css/style.css et
   css/mentions-legales.css (réutilisé tel quel pour le hero .legal-hero*
   et la card .legal-docs* "Nos documents juridiques" — non dupliqués ici).

   Réutilise les variables globales déjà utilisées ailleurs sur le site
   (--cyan, --cyan-soft, --card-bg, --panel-border, --muted, --muted-2,
   --white, .wrap, polices Orbitron/Rajdhani/Inter).

   Page volontairement sobre (document juridique) : pas d'animation
   pulseGlow sur les items, pas de CTA marketing.
   ========================================================================== */

/* ---------- LISTE DES SECTIONS (accordéons) ---------- */
.cgv-content{
  max-width: 900px;
  margin: 0 auto 6vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cgv-item{
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cgv-item:hover{ border-color: var(--cyan-soft); }
.cgv-item.is-open{
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(46,230,224,0.18);
}

.cgv-question{
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
}
.cgv-question:hover .cgv-question-title{ color: var(--cyan); }

.cgv-num{
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(46,230,224,0.4);
  line-height: 1.2;
  min-width: 44px;
}

.cgv-question-body{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cgv-question-title{
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: var(--white);
  transition: color .2s ease;
}
.cgv-question-desc{
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 68ch;
}

.cgv-chevron{
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-top: 2px;
  transition: border-color .2s ease, transform .3s ease, box-shadow .2s ease;
}
.cgv-chevron svg{ width: 15px; height: 15px; }
.cgv-item.is-open .cgv-chevron{
  transform: rotate(180deg);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(46,230,224,0.4);
}

/* Animation d'ouverture fluide via grid-template-rows (0fr -> 1fr),
   même technique que css/faq.css — fiable quelle que soit la hauteur
   du contenu, sans mesure JS. */
.cgv-answer{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.cgv-item.is-open .cgv-answer{ grid-template-rows: 1fr; }
.cgv-answer-inner{ overflow: hidden; }
.cgv-answer-text{
  margin: 0;
  padding: 0 26px 16px 88px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.cgv-answer-text:first-child{
  padding-top: 4px;
  border-top: 1px solid var(--panel-border);
  padding-top: 16px;
}

/* ---------- Aperçu liste (section 06 "Abonnements et engagement")
   visible même à l'état fermé, comme sur la maquette : 3 colonnes
   sur desktop, réduites en responsive. ---------- */
.cgv-preview-list{
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
}
.cgv-preview-list li{
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.cgv-preview-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(46,230,224,0.6);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px){
  .cgv-question{ padding: 18px 18px; gap: 12px; }
  .cgv-num{ font-size: 1.2rem; min-width: 32px; }
  .cgv-question-title{ font-size: 0.92rem; }
  .cgv-question-desc{ font-size: 0.82rem; }
  .cgv-answer-text{ padding-left: 18px; padding-right: 18px; }
  .cgv-preview-list{ grid-template-columns: 1fr; gap: 4px; margin-top: 8px; }
  .cgv-chevron{ width: 26px; height: 26px; }
  .cgv-chevron svg{ width: 13px; height: 13px; }
}

/* ---------- Texte des clauses : numéros en gras, liens ---------- */
.cgv-answer-text strong{ color: var(--white); font-weight: 700; }
.cgv-answer-text a{ color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
