/* =====================================================================
   Habillage sponsorisé PROTON VPN — page de travail temporaire.
   Scopé sous .page-proton-preview : aucune règle ne fuit ailleurs.
   COULEURS RÉELLES échantillonnées sur les visuels « imagedark » :
     fond indigo    #1B143F (uniforme)
     lueur teal     #229187 (coin bas-droit)
     câble (bas→haut) : #45D0B0 teal → #46B6B1 → #4F96C4 bleu → #6A73C8 violet
   ===================================================================== */

.page-proton-preview {
  --pv-bg:     #1b143f;   /* indigo de fond, uniforme */
  --pv-teal:   #41cfaf;   /* teal câble (bas) */
  --pv-cyan:   #4faaab;
  --pv-blue:   #5e80c8;   /* bleu câble (haut) */
  --pv-violet: #6a73c8;
  --pv-accent: #6d4aff;   /* violet bouton officiel Proton */
  --pv-lav:    #c9c7ff;
  --pv-tealglow: #229187;
}

/* =====================================================================
   Fond global — indigo UNIFORME + unique lueur teal en bas-droite.
   background-attachment: fixed → le fond est continu sur toute la page,
   aucune délimitation entre header / compteur / bandeau / liste.
   ===================================================================== */
body.page-proton-preview {
  background-color: #1b143f;
  /* montée teal depuis le bas (cœur du glow en bas-droite, comme le visuel) */
  background-image:
    radial-gradient(95% 60% at 72% 116%, rgba(36, 162, 144, 0.55), rgba(36, 162, 144, 0) 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* header / footer : aucun fond propre → continuité totale du fond */
.page-proton-preview .fi-header {
  background-color: transparent;
  background-image: none;
}
.page-proton-preview .fi-footer {
  border-top-color: rgba(201, 199, 255, 0.16);
}

/* =====================================================================
   Le « trait » — câble néon fidèle au visuel
   ===================================================================== */
.pv-trace {
  position: absolute;
  aspect-ratio: 288 / 488;
  /* câble extrait directement du visuel Proton imagedark-2 (pixel-fidèle, trou comblé) */
  background: center / contain no-repeat url('/assets/proton/proton-cable.webp?v=3');
  pointer-events: none;
  z-index: 0;
}

/* =====================================================================
   Zone compteur — AUCUN fond propre (le fond global uniforme transparaît),
   aucune ligne de séparation. Juste le câble + le contenu.
   ===================================================================== */
.page-proton-preview .fi-counter-wrap {
  position: relative;
  overflow: hidden;
  background: none;
}
.pv-trace--a {
  left: clamp(-24px, -1vw, 4px);
  top: clamp(6px, 1vw, 22px);
  width: min(330px, 40vw);
  opacity: 0.9;
}
.page-proton-preview .fi-counter { position: relative; z-index: 1; }

/* fin liséré dégradé violet Proton autour du compteur */
.pv-counter-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  padding: clamp(22px, 3.4vw, 44px) clamp(30px, 6vw, 84px);
  border-radius: 26px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(109, 74, 255, 0.12), transparent 60%);
}
.pv-counter-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #8a5cff 0%, #6d4aff 34%, #4f7cf0 66%, #2ee0c0 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* chiffres : dégradé réel du câble (teal → cyan → bleu) */
.page-proton-preview .fi-odo-glyph {
  background: linear-gradient(92deg, #6cd9c1 0%, #45cfb0 30%, #56a8c2 64%, #6f86d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.page-proton-preview .fi-counter-value {
  text-shadow:
    0 0 1px rgba(201, 199, 255, 0.5),
    0 0 14px rgba(79, 150, 196, 0.40),
    0 0 30px rgba(65, 207, 175, 0.16);
}
.page-proton-preview .fi-counter-label { text-shadow: 0 0 10px rgba(79, 150, 196, 0.20); }

/* cartes stats : verre indigo translucide, sobre */
.page-proton-preview .fi-stat-card {
  border-color: rgba(150, 142, 210, 0.26);
  background:
    radial-gradient(120% 100% at 12% 0%, rgba(79, 96, 168, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(33, 25, 74, 0.55), rgba(24, 18, 56, 0.5));
  backdrop-filter: blur(2px);
}
.page-proton-preview .fi-stat-value { color: var(--pv-lav); }

/* =====================================================================
   Sponsorisé Proton VPN — intégré sous le compteur, SANS cadre.
   Baigne dans le même fond indigo (aucune bordure / panneau).
   ===================================================================== */
.pv-sponso {
  width: min(1120px, 100%);
  margin-top: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(14px, 1.8vw, 22px);
  position: relative;
  z-index: 1;
}

/* accroche « Fuites Infos recommande : » — sous le titre, introduit le logo */
.pv-sponso__kicker {
  margin: 0 0 -4px;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201, 199, 255, 0.72);
}

/* titre centré, juste sous le compteur — sur 2 lignes max */
.pv-sponso__title {
  max-width: 32ch;
  margin: 0;
  text-align: center;
  text-wrap: balance;
}

/* logo Proton VPN — grand (≈ x2) */
.pv-sponso__logo {
  height: clamp(96px, 12.8vw, 156px);
  width: auto;
  margin: 2px 0;
}

/* CTA — point d'action, centré juste sous le logo */
.pv-sponso__cta {
  margin-top: clamp(14px, 2.2vw, 26px);
  padding: 16px 40px;
  font-size: clamp(16px, 1.4vw, 18.5px);
}
/* puces de réassurance — centrées, discrètes, sous le CTA */
.pv-sponso__trust {
  margin-top: clamp(10px, 1.4vw, 16px);
  justify-content: center;
}

/* rangée : texte à gauche, image à droite — colonnes équilibrées, alignées au centre */
.pv-sponso__row {
  width: 100%;
  margin-top: clamp(30px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 62px);
}
.pv-sponso__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: clamp(14px, 1.8vw, 20px);
}
/* texte descriptif aligné à gauche, légèrement plus grand pour l'équilibre */
.pv-sponso__text {
  margin: 0;
  text-align: left;
  max-width: 42ch;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.66;
}

.proton-band__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-lav);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 199, 255, 0.26);
  background: rgba(79, 96, 168, 0.16);
}
.proton-band__tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pv-teal);
  box-shadow: 0 0 8px var(--pv-teal);
}

.proton-band__logo { height: clamp(34px, 3.4vw, 44px); width: auto; margin: 2px 0; }

.proton-band__title {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.proton-band__text {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.6;
  color: rgba(232, 230, 255, 0.86);
  max-width: 46ch;
}
.proton-band__text strong { color: #fff; font-weight: 700; }

/* CTA — violet officiel Proton, glissant vers le bleu/teal du câble */
.proton-band__cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(15px, 1.2vw, 17px);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(118deg, #6d4aff 0%, #5a6bf0 48%, #3f9fd6 100%);
  background-size: 150% 150%;
  background-position: 0% 50%;
  box-shadow:
    0 16px 34px -14px rgba(109, 74, 255, 0.7),
    0 6px 18px -10px rgba(34, 145, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-position 0.5s ease;
}
.proton-band__cta::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s ease;
}
.proton-band__cta-arrow { position: relative; transition: transform 0.18s ease; }
.proton-band__cta:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow:
    0 22px 44px -14px rgba(109, 74, 255, 0.85),
    0 10px 24px -10px rgba(34, 145, 135, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.proton-band__cta:hover::after { left: 130%; }
.proton-band__cta:hover .proton-band__cta-arrow { transform: translateX(4px); }
.proton-band__cta:focus-visible { outline: 2px solid var(--pv-teal); outline-offset: 3px; }

.proton-band__trust {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.proton-band__trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(214, 230, 255, 0.82);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(201, 199, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}
.proton-band__trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pv-teal);
  box-shadow: 0 0 6px rgba(65, 207, 175, 0.8);
}

/* --- Image de l'app : centrée, liseré blanc fin pour la détacher du fond --- */
.pv-sponso__figure {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}
.proton-band__glow {
  position: absolute;
  inset: -16% -14% 6%;
  z-index: 0;
  background:
    radial-gradient(56% 58% at 60% 40%, rgba(79, 96, 168, 0.45), transparent 66%),
    radial-gradient(52% 60% at 22% 92%, rgba(34, 145, 135, 0.34), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}
.pv-sponso__shot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 16px;
  /* liseré blanc fin pour mieux voir l'image */
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 40px 80px -34px rgba(0, 0, 0, 0.8),
    0 6px 22px -10px rgba(34, 145, 135, 0.3);
}
/* mention « Contenu sponsorisé » — petite, sous l'image */
.pv-sponso__label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 220, 255, 0.5);
}

/* conteneur de section autonome (page Articles) : centre le bloc + câble */
.page-proton-preview .pv-sponso-section {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(26px, 4vw, 56px) clamp(16px, 4vw, 40px);
}
.page-proton-preview .pv-sponso-section .pv-sponso { margin-top: 0; }

/* =====================================================================
   Responsive — tablette & mobile
   ===================================================================== */
@media (max-width: 900px) {
  .pv-sponso__row { grid-template-columns: 1fr; gap: clamp(20px, 5vw, 32px); }
  .pv-sponso__copy { align-items: center; text-align: center; }
  .pv-sponso__text { text-align: center; }
  .proton-band__trust { justify-content: center; }
  .pv-sponso__figure { order: -1; }
  /* mise en page resserrée et centrée : le câble traverserait le contenu → masqué */
  .pv-trace--a { display: none; }
}

@media (max-width: 520px) {
  .pv-sponso { margin-top: clamp(18px, 5vw, 28px); }
  .pv-sponso__text { font-size: 14.5px; }
  .proton-band__cta { width: 100%; justify-content: center; }
  .proton-band__trust li { font-size: 12px; }
}

/* iOS : background-attachment fixed peut être lourd → on relâche en scroll */
@supports (-webkit-touch-callout: none) {
  body.page-proton-preview { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .proton-band__cta,
  .proton-band__cta-arrow,
  .proton-band__cta::after { transition: none; }
}

/* =====================================================================
   Bannière sponsorisée Proton VPN — compacte, pour les pages article.
   AUTONOME : ne dépend pas de .page-proton-preview (ne reskine pas la page).
   ===================================================================== */
.pv-article-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 30px);
  margin: clamp(30px, 5vw, 50px) 0;
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.5vw, 38px);
  border-radius: 20px;
  background:
    radial-gradient(95% 170% at 100% 112%, rgba(34, 145, 135, 0.18), transparent 60%),
    radial-gradient(72% 150% at 0% -22%, rgba(79, 96, 168, 0.22), transparent 58%),
    linear-gradient(150deg, rgba(38, 28, 88, 0.60), rgba(22, 16, 50, 0.72));
}
.pv-article-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(130deg, #8a5cff 0%, #6d4aff 34%, #4f7cf0 66%, #2ee0c0 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
  z-index: 2;
}
.pv-article-banner__trace {
  left: -34px;
  bottom: -64px;
  width: 150px;
  opacity: 0.42;
  z-index: 0;
}
.pv-article-banner__body {
  position: relative;
  z-index: 1;
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
}
.pv-article-banner__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pv-article-banner__logo { height: clamp(30px, 3.6vw, 38px); width: auto; }
.pv-article-banner__tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(201, 199, 255, 0.6);
  border: 1px solid rgba(201, 199, 255, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}
.pv-article-banner__text {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 15.5px);
  line-height: 1.55;
  color: rgba(232, 230, 255, 0.85);
  max-width: 64ch;
}
.pv-article-banner__text strong { color: #fff; font-weight: 700; }
.pv-article-banner__cta {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(118deg, #6d4aff 0%, #5a6bf0 50%, #3f9fd6 100%);
  box-shadow:
    0 14px 30px -14px rgba(109, 74, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.pv-article-banner__cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
.pv-article-banner__cta:focus-visible { outline: 2px solid #41cfaf; outline-offset: 3px; }

@media (max-width: 620px) {
  .pv-article-banner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;   /* pas de space-between : évite le vide vertical */
  }
  /* en colonne, le flex-basis 360px deviendrait une HAUTEUR mini → on l'annule */
  .pv-article-banner__body { flex: 0 1 auto; }
  .pv-article-banner__cta { width: 100%; justify-content: center; }
  .pv-article-banner__trace { display: none; }  /* câble masqué sur petit écran */
}
@media (prefers-reduced-motion: reduce) {
  .pv-article-banner__cta { transition: none; }
}
