/* Cyber Week (29/11/2026, TEMPORAIRE : jusqu'au 04/12/2026 23h59 Paris). HTML : scripts/lib/cartes-prix.mjs.
   Tout l'habillage porte display:none en ligne et n'apparaît que sous html.cw, posé par hallmark/cyber-week.js tant
   que la promo court. Après la fin : rien ne s'affiche, sans redéploiement. Un seul bandeau : la barre du haut. */

/* Pendant la promo, la barre prend la place du bandeau « Prix fondateur ». */
html.cw .nav__fondateur, html.cw .hm-nav__fondateur, html.cw .plan__fondateur { display: none !important; }
html.cw .cw-barre { display: block !important; }
html.cw .cw-section { display: block !important; }
html.cw .cw-hero { display: grid !important; }
html.cw details.cw-faq { display: block !important; }

html.cw { --hauteur-cw: 60px; }
@media (max-width: 47.99rem) { html.cw { --hauteur-cw: 52px; } }

/* ---------- Compteur : un composant, deux variantes ---------- */
.cw-compteur { display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; white-space: nowrap; }
.cw-g { display: inline-flex; align-items: center; }
.cw-nombre { display: inline-flex; }
.cw-c { position: relative; display: inline-block; overflow: hidden; height: 1.2em; line-height: 1.2em; }
.cw-c__v { display: block; }
.cw-c__v.is-sort { position: absolute; left: 0; top: 0; animation: cw-sort 180ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.cw-c__v.is-entre { animation: cw-entre 180ms cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes cw-sort { to { transform: translateY(-100%); opacity: 0; } }
@keyframes cw-entre { from { transform: translateY(100%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cw-c__v.is-sort, .cw-c__v.is-entre { animation: none; } }

/* Tuiles (barre) : une tuile par unité, la lettre dehors, petite et atténuée. */
.cw-compteur--tuiles { gap: 8px; }
.cw-compteur--tuiles .cw-g { gap: 4px; }
.cw-compteur--tuiles .cw-nombre { align-items: center; height: 32px; padding: 0 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); font-size: 17px; font-weight: 600; color: #fff; }
.cw-compteur--tuiles .cw-l { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.5); }

/* Grand (bloc de la promo) : quatre cases, libellé dessous. */
.cw-compteur--grand { gap: 8px; align-items: flex-start; }
.cw-compteur--grand .cw-g { flex-direction: column; gap: 6px; }
.cw-compteur--grand .cw-nombre { justify-content: center; min-width: 64px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.cw-compteur--grand .cw-l { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; opacity: 0.5; }

/* ---------- Point de la promo ---------- */
.cw-point { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #b48cf5; box-shadow: 0 0 0 3px rgba(180, 140, 245, 0.18); }

/* ---------- Barre du haut : verre sombre, une ligne, 60 px (52 sur téléphone) ---------- */
.cw-barre { height: var(--hauteur-cw, 60px); background: rgba(15, 15, 20, 0.96); color: #fff; font-size: 14px; line-height: 1; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .cw-barre { background: rgba(15, 15, 20, 0.9); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); }
}
.cw-barre__ligne { display: flex; align-items: center; justify-content: center; gap: 20px; height: 100%; }
.cw-barre__offre { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.cw-barre__offre strong { font-weight: 600; }
.cw-barre__remise { color: #c4a3fa; font-weight: 600; font-variant-numeric: tabular-nums; }
.cw-barre__suite { color: rgba(255, 255, 255, 0.85); }
.cw-barre__fin { display: inline-flex; align-items: center; gap: 12px; }
.cw-barre__fin-label { color: rgba(255, 255, 255, 0.5); }
.cw-barre__lien { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 8px; background: #fff; color: #0f0f14; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease; }
.cw-barre__lien:hover { background: #ece4fb; color: #0f0f14; }
.cw-barre__lien:focus-visible { outline: 2px solid #b48cf5; outline-offset: 2px; }
.cw-barre__lien svg { width: 15px; height: 15px; }
@media (max-width: 47.99rem) {
  .cw-barre { font-size: 13px; }
  .cw-barre__ligne { gap: 10px; padding-inline: 12px; }
  .cw-barre__suite, .cw-barre__fin-label, .cw-barre__lien-texte { display: none; }
  .cw-barre__offre { gap: 6px; }
  .cw-compteur--tuiles { gap: 5px; }
  .cw-compteur--tuiles .cw-g { gap: 2px; }
  .cw-compteur--tuiles .cw-nombre { height: 28px; padding: 0 5px; font-size: 14px; }
  .cw-compteur--tuiles .cw-l { font-size: 10.5px; }
  .cw-barre__lien { width: 32px; height: 32px; padding: 0; justify-content: center; }
}
@media (max-width: 22.5rem) { .cw-barre .cw-point { display: none; } }

/* ---------- Bloc de la promo : panneau encre, net, sans lueur, rayon 16 comme les cartes ---------- */
.cw-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px; max-width: 1120px; margin: 0 auto 40px; padding: 36px 40px; border-radius: 16px; background: #0f0f14; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(15, 15, 20, 0.9), 0 30px 60px -36px rgba(15, 15, 20, 0.5); }
.cw-hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.62); }
.cw-hero__titre { margin: 12px 0 0; max-width: none; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.cw-hero__remise { color: #c4a3fa; font-variant-numeric: tabular-nums; }
.cw-hero__chapo { margin: 14px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.68); }
.cw-hero__fin { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cw-hero__fin-label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 60rem) {
  .cw-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; max-width: 460px; }
  .cw-compteur--grand .cw-nombre { min-width: 0; width: 60px; font-size: 30px; padding: 9px 6px; }
}
@media (max-width: 47.99rem) {
  .cw-hero { margin-bottom: 28px; }
  .cw-compteur--grand { gap: 10px; }
  .cw-compteur--grand .cw-nombre { width: 56px; font-size: 26px; }
}

/* ---------- Section de l'accueil ---------- */
.cw-section { padding-block: 36px 72px; }
@media (max-width: 47.99rem) { .cw-section { padding-block: 24px 48px; } }

/* ---------- Page Tarifs : la promo remplace visuellement la tête (le H1 reste dans la page) ---------- */
html.cw .prix-hero { padding-block-start: 48px; }
html.cw .prix-hero .head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
/* Le header grandit de la barre : l'en-tête collant du tableau suit. */
html.cw .comparer__table thead th { top: calc(68px + var(--hauteur-cw)); }
@media (max-width: 47.99rem) { html.cw .comparer__table thead { top: calc(68px + var(--hauteur-cw)); } }

/* ---------- Pastille sous le bouton @Instagram (addendum I, 29/11) ---------- */
/* Fond encre, rayon 8 (pas une pilule), un reflet qui traverse puis se repose, le point qui respire. Ni lueur autour,
   ni bordure colorée, ni changement de taille. Rien de tout ça en mouvement réduit. */
html.cw .cw-pastille { display: inline-flex !important; }
.cw-pastille { position: relative; overflow: hidden; align-items: center; gap: 8px; height: 30px; margin: 16px auto 0; padding: 0 12px; border-radius: 8px; background: #111; color: #fff; font-size: 11.5px; line-height: 1; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease; }
.cw-pastille:hover { background: #1c1c22; color: #fff; }
.cw-pastille:focus-visible { outline: 2px solid #b794f6; outline-offset: 3px; }
.cw-pastille__nom { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.cw-pastille__remise { font-weight: 600; color: #b794f6; font-variant-numeric: tabular-nums; }
.cw-pastille__sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.22); }
.cw-pastille__fin { color: rgba(255, 255, 255, 0.7); font-size: 12px; font-variant-numeric: tabular-nums; }
.cw-pastille::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 70%); transform: translateX(-120%); animation: cw-reflet 4.2s cubic-bezier(0.45, 0, 0.55, 1) 1s infinite; }
@keyframes cw-reflet { 0% { transform: translateX(-120%); } 28.6% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
.cw-pastille .cw-point { animation: cw-pouls 2s ease-in-out infinite; }
@keyframes cw-pouls { 0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(183, 148, 246, 0.3); } 50% { opacity: 0.55; box-shadow: 0 0 0 1px rgba(183, 148, 246, 0.08); } }
@media (prefers-reduced-motion: reduce) { .cw-pastille::after, .cw-pastille .cw-point { animation: none; } .cw-pastille::after { display: none; } }
/* Sous le champ, centrée : le formulaire du hero est centré, la pastille suit sur sa propre ligne. */
.hero .cw-pastille, .close .cw-pastille { display: none; }
html.cw .hero form.cta-ig + .cw-pastille, html.cw .close form.cta-ig + .cw-pastille { display: flex !important; width: fit-content; }
@media (max-width: 47.99rem) {
  .cw-pastille { gap: 6px; padding: 0 10px; }
  .cw-pastille__applique { display: none; }
}
