/* Pages secondaires de la vitrine V4 — tarifs et confidentialite.
   Reprend STRICTEMENT les jetons de v4.css (--v4-*). Aucun hexadecimal brut
   quand un jeton existe : c'est ce qui garantit qu'une page ouverte apres la
   page d'accueil se sente comme le meme produit.

   Ecrit en proprietes LOGIQUES (margin-inline, padding-inline, text-align:start)
   pour que le passage en arabe RTL ne demande pas de reecrire ces regles. */

/* ---------- en-tete de page ---------- */
.v4-page-hero {
  padding: 132px max(32px, calc((100vw - 1740px) / 2)) 54px;
  background: radial-gradient(circle at 22% 0%, rgba(67, 13, 36, .55), transparent 58%), var(--v4-bg);
}
.v4-page-hero > div { max-width: 820px; }
.v4-page-hero h1 {
  margin: 18px 0 20px;
  font-family: var(--v4-title-font);
  font-size: clamp(40px, 4.4vw, 66px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.v4-page-hero h1 em { color: var(--v4-gold); font-style: normal; }
.v4-page-hero p { max-width: 620px; color: var(--v4-muted); font-size: 18px; line-height: 1.62; }
.v4-page-meta { margin-top: 26px; color: #8d8286; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- corps legal ---------- */
.v4-legal { padding: 10px max(32px, calc((100vw - 1740px) / 2)) 96px; }
.v4-legal-grid { display: grid; grid-template-columns: 260px minmax(0, 860px); gap: 64px; }
.v4-toc { position: sticky; top: 104px; align-self: start; display: grid; gap: 9px; }
.v4-toc strong {
  margin-bottom: 6px; color: var(--v4-gold);
  font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
}
.v4-toc a {
  padding: 7px 0; color: var(--v4-muted);
  font-size: 13.5px; line-height: 1.4; border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: color .2s;
}
.v4-toc a:hover { color: var(--v4-gold); }

.v4-legal article + article { margin-top: 46px; }
.v4-legal h2 {
  margin: 0 0 14px; font-family: var(--v4-title-font);
  font-size: clamp(25px, 2.4vw, 33px); font-weight: 500; line-height: 1.16;
}
.v4-legal h3 { margin: 26px 0 9px; font-size: 15px; font-weight: 700; color: #efe6e8; }
.v4-legal p, .v4-legal li { color: var(--v4-muted); font-size: 15.5px; line-height: 1.72; }
.v4-legal ul { display: grid; gap: 9px; margin: 12px 0 0; padding-inline-start: 20px; }
.v4-legal li::marker { color: var(--v4-gold); }
.v4-legal a:not(.v4-btn) { color: var(--v4-gold); text-decoration: underline; text-underline-offset: 3px; }

/* Encadre : ce qui merite qu'on s'arrete dessus. */
.v4-note {
  margin-top: 18px; padding: 20px 22px;
  border: 1px solid var(--v4-line); border-inline-start: 3px solid var(--v4-gold);
  border-radius: 14px; background: rgba(239, 185, 31, .05);
}
.v4-note p { margin: 0; color: #e4d9db; font-size: 14.5px; }
.v4-note p + p { margin-top: 9px; }

/* Tableau des donnees : quoi, pourquoi, combien de temps. */
.v4-data-table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 14px; }
.v4-data-table th, .v4-data-table td {
  padding: 13px 14px; text-align: start; vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.v4-data-table th { color: var(--v4-gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.v4-data-table td { color: var(--v4-muted); line-height: 1.6; }
.v4-data-table td:first-child { color: #efe6e8; font-weight: 600; }
.v4-table-wrap { overflow-x: auto; }

/* ---------- tarifs ---------- */
.v4-billing {
  display: inline-flex; gap: 5px; margin-top: 30px; padding: 5px;
  border: 1px solid var(--v4-line); border-radius: 99px; background: rgba(255, 255, 255, .03);
}
.v4-billing button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border: 0; border-radius: 99px;
  background: transparent; color: var(--v4-muted); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
}
.v4-billing button.is-active {
  background: linear-gradient(135deg, var(--v4-gold-light), var(--v4-gold));
  color: #160d05;
}
.v4-billing small {
  padding: 3px 9px; border-radius: 99px;
  background: rgba(56, 198, 129, .16); color: var(--v4-green);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
}
.v4-billing button.is-active small { background: rgba(22, 13, 5, .16); color: #160d05; }

.v4-plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px;
  padding: 0 max(32px, calc((100vw - 1740px) / 2)) 24px;
  max-width: 1360px; margin-inline: auto;
}
.v4-plan {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 32px;
  border: 1px solid var(--v4-line); border-radius: 24px;
  background: var(--v4-card);
  /* visible, pas hidden : le bandeau « Recommande » depasse en haut */
  overflow: visible;
  transition: transform .2s, border-color .2s;
}
.v4-plan:hover { transform: translateY(-4px); }
.v4-plan.is-reco {
  border-color: var(--v4-gold);
  background: radial-gradient(circle at 50% -12%, rgba(67, 13, 36, .85), var(--v4-card) 62%);
}
.v4-plan-badge {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: 99px; white-space: nowrap;
  background: linear-gradient(135deg, var(--v4-gold-light), var(--v4-gold));
  color: #160d05; font-size: 11px; font-weight: 800; letter-spacing: .08em;
}
.v4-plan-name { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--v4-gold); }
.v4-plan-for { margin: 8px 0 22px; color: var(--v4-muted); font-size: 14px; line-height: 1.5; min-height: 42px; }
.v4-plan-price { display: flex; align-items: flex-end; gap: 8px; }
/* Le montant reste LTR meme en arabe, sinon « 249 DH » se reordonne en charabia. */
.v4-plan-amount {
  font-family: var(--v4-title-font); font-size: 52px; font-weight: 500; line-height: 1;
  color: var(--v4-text); direction: ltr; unicode-bidi: isolate;
}
.v4-plan-unit { padding-bottom: 7px; color: var(--v4-muted); font-size: 13.5px; }
.v4-plan-billed { margin: 10px 0 0; color: #8d8286; font-size: 12.5px; min-height: 18px; }
.v4-plan .v4-btn { width: 100%; margin: 22px 0 26px; }
.v4-plan-feats { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.v4-plan-feats li { display: flex; gap: 10px; color: var(--v4-muted); font-size: 14px; line-height: 1.5; }
.v4-plan-feats li::before { content: "✓"; color: var(--v4-green); font-weight: 700; flex: none; }
.v4-plan-feats li.is-head {
  margin-top: 8px; color: #efe6e8; font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.v4-plan-feats li.is-head::before { content: ""; }

.v4-plans-foot {
  max-width: 1360px; margin: 4px auto 0;
  padding: 0 max(32px, calc((100vw - 1740px) / 2)) 96px;
  color: #8d8286; font-size: 13px; line-height: 1.7;
}

/* ---------- questions frequentes ---------- */
.v4-faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.v4-faq details {
  padding: 20px 24px; border: 1px solid var(--v4-line);
  border-radius: 16px; background: var(--v4-card);
}
.v4-faq summary {
  cursor: pointer; color: #efe6e8; font-size: 15.5px; font-weight: 600;
  list-style: none;
}
.v4-faq summary::-webkit-details-marker { display: none; }
.v4-faq summary::after { content: "+"; float: inline-end; color: var(--v4-gold); font-size: 20px; line-height: 1; }
.v4-faq details[open] summary::after { content: "–"; }
.v4-faq p { margin: 13px 0 0; color: var(--v4-muted); font-size: 15px; line-height: 1.7; }

/* ---------- responsive : memes points de rupture que v4.css ---------- */
@media (max-width: 1280px) {
  .v4-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v4-legal-grid { grid-template-columns: 1fr; gap: 34px; }
  .v4-toc { position: static; }
}
@media (max-width: 980px) {
  .v4-page-hero { padding-top: 112px; }
}
@media (max-width: 620px) {
  .v4-plans { grid-template-columns: 1fr; }
  .v4-billing { width: 100%; }
  .v4-billing button { flex: 1; justify-content: center; padding-inline: 12px; }
  .v4-plan-amount { font-size: 44px; }
}
