/* Challenge PLCORP — charte de l'affiche publiée (06/10) : nuit + bleu roi, titres Sora 800 en relief,
   accents orange dorés, pastilles blanches à icône ronde, bandeau date blanc.
   Aucune couleur neuve : tout dérive des tokens Crystal de plcorp.css (--navy, --blue, --action, --cyan,
   --valid) ; l'« or » de l'affiche est l'orange --action éclairci par mélange au blanc. */

:root {
  --ch-or-clair: color-mix(in srgb, var(--action, #F2994A) 45%, #fff);
  --ch-or: linear-gradient(180deg, var(--ch-or-clair) 0%, var(--action, #F2994A) 100%);
}

.ch {
  --ch-or-clair: color-mix(in srgb, var(--action, #F2994A) 45%, #fff);
  --ch-or: linear-gradient(180deg, var(--ch-or-clair) 0%, var(--action, #F2994A) 100%);
  --ch-relief: 0 3px 0 var(--navy), 0 6px 14px rgba(0,0,0,.35);
  background:
    radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--blue) 55%, transparent), transparent 70%),
    linear-gradient(180deg, var(--secondary-light) 0%, var(--navy) 45%, var(--surface-dark) 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  min-height: 70vh;
  padding: 0 16px 56px;
}
.ch a { color: inherit; }
.ch-wrap { max-width: 980px; margin: 0 auto; }
.ch-etroit { max-width: 520px; margin: 0 auto; }

/* ---------- en-tête ---------- */
.ch-hero { display: grid; gap: 20px; align-items: center; padding-top: 20px; }
@media (min-width: 860px) { .ch-hero { grid-template-columns: 1.05fr 1fr; padding-top: 36px; } }
.ch-hero img { width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: 0 18px 40px rgba(0,0,0,.45);
  border: 3px solid color-mix(in srgb, var(--cyan) 45%, transparent); display: block; }
.ch-titre { font-family: 'Sora', sans-serif; font-weight: 800; line-height: 1.02; margin: 0;
  font-size: clamp(2.1rem, 7vw, 3.6rem); text-transform: uppercase; letter-spacing: -.01em; text-shadow: var(--ch-relief); }
.ch-titre .or, .ch-or-texte { background: var(--ch-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 0 var(--navy)); }
.ch-ruban { display: inline-block; margin-top: 14px; padding: 8px 20px; border-radius: var(--radius-btn);
  background: var(--ch-or); color: var(--navy); font-family: 'Sora', sans-serif; font-weight: 800;
  text-transform: uppercase; font-size: 1rem; transform: rotate(-2deg); box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ch-sous { font-size: 1.05rem; color: var(--n-200); margin: 14px 0 0; line-height: 1.5; }

/* ---------- boutons ---------- */
.ch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 26px; border-radius: var(--radius-full); font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1rem; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition); }
.ch-btn:hover { transform: translateY(-2px); }
.ch-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.ch-btn-or { background: var(--ch-or); color: var(--navy) !important; box-shadow: 0 8px 20px rgba(242,153,74,.35); }
.ch-btn-blanc { background: #fff; color: var(--navy) !important; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ch-btn-ligne { background: transparent; color: #fff !important; border: 2px solid color-mix(in srgb, #fff 55%, transparent); }
.ch-btn-plein { width: 100%; }

/* ---------- pastilles d'étapes (comme « Crée ta vidéo / Publie-la ») ---------- */
.ch-etapes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ch-pastille { display: flex; align-items: center; gap: 14px; background: #fff; color: var(--navy);
  border-radius: var(--radius-full); padding: 8px 22px 8px 8px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.ch-pastille.nuit { background: var(--navy); color: #fff; border: 2px solid color-mix(in srgb, var(--cyan) 40%, transparent); }
.ch-pastille strong { font-family: 'Sora', sans-serif; font-weight: 800; text-transform: uppercase; font-size: .98rem; display: block; }
.ch-pastille span { font-size: .88rem; color: var(--text-3); }
.ch-pastille.nuit span { color: var(--n-200); }
.ch-ico { flex: 0 0 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--blue); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 4px color-mix(in srgb, var(--blue) 25%, #fff); }
.ch-ico.or { background: var(--action); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 4px color-mix(in srgb, var(--action) 25%, #fff); }
.ch-ico.vert { background: var(--valid); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 4px color-mix(in srgb, var(--valid) 25%, #fff); }
.ch-ico svg { width: 24px; height: 24px; }

/* ---------- sections ---------- */
.ch-section { margin-top: 44px; }
.ch-h2 { font-family: 'Sora', sans-serif; font-weight: 800; text-transform: uppercase; font-size: clamp(1.35rem, 4vw, 1.9rem);
  margin: 0 0 16px; text-shadow: var(--ch-relief); }
.ch-carte { background: color-mix(in srgb, var(--navy) 70%, transparent); border: 1.5px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: var(--radius-card); padding: 20px; backdrop-filter: blur(6px); }
.ch-carte-blanche { background: #fff; color: var(--navy); border-radius: var(--radius-card); padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.ch-carte-blanche p, .ch-carte-blanche li { color: var(--text-2); }
.ch-grille { display: grid; gap: 14px; }
@media (min-width: 720px) { .ch-grille.deux { grid-template-columns: 1fr 1fr; } .ch-grille.trois { grid-template-columns: repeat(3, 1fr); } }

/* score 60 / 15 / 25 */
.ch-poids { display: flex; align-items: center; gap: 14px; }
.ch-poids b { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.1rem; min-width: 84px; }
.ch-barre { height: 10px; border-radius: 6px; background: color-mix(in srgb, #fff 15%, transparent); overflow: hidden; margin-top: 6px; }
.ch-barre i { display: block; height: 100%; background: var(--ch-or); border-radius: 6px; }

/* bandeau date (blanc, comme l'affiche) */
.ch-date { display: flex; align-items: center; gap: 16px; background: #fff; color: var(--navy); border-radius: var(--radius-card);
  padding: 14px 20px; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.ch-date strong { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; display: block; }
.ch-date span { color: var(--text-3); font-size: .9rem; }
.ch-hashtag { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.5rem; }

/* prix */
.ch-prix { text-align: center; }
.ch-prix .montant { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(2rem, 7vw, 2.8rem); display: block; }

/* ---------- classement ---------- */
.ch-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.ch-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--n-200); padding: 0 12px; font-weight: 600; }
.ch-table td { background: color-mix(in srgb, var(--navy) 75%, transparent); padding: 12px; vertical-align: middle; }
.ch-table td:first-child { border-radius: 14px 0 0 14px; }
.ch-table td:last-child { border-radius: 0 14px 14px 0; }
.ch-table tr.moi td { background: color-mix(in srgb, var(--blue) 40%, var(--navy)); }
.ch-rang { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; width: 46px; text-align: center; }
.ch-rang.r1 { color: var(--ch-or-clair); }
.ch-pseudo { font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.ch-pseudo:hover { text-decoration: underline; }
.ch-score { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.ch-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .ch-table .col-detail { display: none; }
}

/* ---------- formulaires ---------- */
.ch-form { display: grid; gap: 14px; }
.ch-champ label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); font-size: .95rem; }
.ch-champ input[type=text], .ch-champ input[type=url], .ch-champ input:not([type]) , .ch-champ input[type=tel], .ch-champ input[type=password] {
  width: 100%; min-height: 52px; border-radius: var(--radius-input); border: 1.5px solid var(--n-300); padding: 0 16px;
  font-size: 1.05rem; color: var(--text-1); background: #fff; box-sizing: border-box; }
.ch-champ input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--primary-dim); }
.ch-champ .aide { font-size: .85rem; color: var(--text-3); margin-top: 4px; }
.ch-erreur, .ch-champ .errorlist { color: var(--error); font-size: .9rem; margin: 6px 0 0; padding: 0; list-style: none; font-weight: 600; }
.ch-coche { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.ch-coche input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 24px; }
.ch-code input { text-align: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.8rem !important; letter-spacing: .4em; }
.ch-piege { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- tableau de bord ---------- */
.ch-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .ch-kpis { grid-template-columns: repeat(4, 1fr); } }
.ch-kpis--trois, .ch-kpis.ch-kpis--trois { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch-kpis--trois .ch-kpi { padding: 10px 4px; }
.ch-kpis--trois .ch-kpi b { font-size: 1.3rem; white-space: nowrap; }
.ch-kpi { background: #fff; color: var(--navy); border-radius: var(--radius-card); padding: 16px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ch-kpi b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.8rem; }
.ch-kpi span { color: var(--text-3); font-size: .85rem; }
.ch-video { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.ch-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-full); font-size: .82rem; font-weight: 700; }
.ch-badge.ok { background: var(--success-dim); color: var(--valid); }
.ch-badge.ko { background: var(--error-dim); color: var(--error); }
.ch-badge.attente { background: var(--warning-dim); color: #9A5A1B; }
.ch-courbe { width: 100%; height: auto; }
.ch-courbe polyline { fill: none; stroke: var(--action); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.ch-partage { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ch-partage code { background: var(--n-100); color: var(--navy); padding: 10px 14px; border-radius: var(--radius-md); word-break: break-all; font-size: .9rem; }
.ch-bon { border: 3px dashed var(--action); text-align: center; }
.ch-bon .code { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: .08em; color: var(--navy); }

.ch-qr { background: #fff; border-radius: var(--radius-card); padding: 12px; width: 180px; height: 180px; }
.ch-note { font-size: .85rem; color: var(--n-200); }
.ch-lien { color: var(--cyan) !important; font-weight: 600; text-decoration: underline; }
.ch-carte-blanche .ch-lien { color: var(--blue-aa, var(--primary-hover)) !important; }
@media (prefers-reduced-motion: reduce) { .ch-btn, .ch-btn:hover { transition: none; transform: none; } }

/* ---------- correctifs après captures (06/10) ---------- */
/* l'icône est souvent un <span> hors d'un conteneur flex : taille fixe partout */
.ch-ico { display: grid; width: 52px; height: 52px; box-sizing: border-box; }
.ch-prix .ch-ico { margin: 0 auto 10px; }
.ch-prix .montant { font-size: clamp(1.5rem, 4.2vw, 2.1rem); line-height: 1.15; }
.ch-prix .montant.ch-or-texte { filter: none; background: none; color: #B8661F; -webkit-text-fill-color: currentColor; }
/* le portail peint les en-têtes de tableau et les paragraphes : on rétablit la charte du challenge */
.ch-table thead, .ch-table th { background: transparent !important; color: var(--n-200) !important; border: 0 !important; }
.ch-carte, .ch-carte p, .ch-carte strong { color: #fff; }
.ch-carte .ch-note { color: var(--n-200); }
.ch-pastille .ch-hashtag { font-size: 1.5rem; line-height: 1.1; color: var(--ch-or-clair); background: none; filter: none; }
.ch-video a.ch-lien { display: inline-flex; align-items: center; min-height: 44px; word-break: break-all; }
/* rien ne déborde à 360 px */
.ch, .ch-wrap { overflow-wrap: anywhere; }
.ch-table { table-layout: auto; }
.ch-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .ch-table td { padding: 8px 6px; }
  .ch-table th { padding: 0 6px; }
  .ch-rang { width: 28px; font-size: 1rem; }
  .ch-score { font-size: .98rem; }
  .ch-score small { display: none; }
  .ch-pseudo { font-size: .92rem; word-break: break-all; }
  .ch-table .ch-btn { padding: 0 12px !important; font-size: .78rem !important; }
}
.ch-table, .ch-table thead, .ch-table thead tr, .ch-table tbody, .ch-table tr { background: transparent !important; box-shadow: none !important; }
.ch-kpi b { font-size: clamp(1.25rem, 5.2vw, 1.8rem); white-space: nowrap; }
.ch .ch-erreur, .ch .ch-erreur * { color: var(--error) !important; }
.ch-code input::placeholder { color: var(--n-300); letter-spacing: .3em; }
.ch-kpi .ch-or-texte { background: none; color: #B8661F; -webkit-text-fill-color: currentColor; filter: none; }

/* ---------- retouches après l'audit à l'aveugle (06/10) ---------- */
.ch { min-height: 0; }
.ch-surtitre { font-family: 'Sora', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cyan); font-size: .85rem; margin: 0 0 8px; }
.ch-titre-hero { font-size: clamp(1.9rem, 5.4vw, 3rem); text-transform: none; }
.ch-lien-action { display: inline-flex; align-items: center; min-height: 52px; padding: 0 6px; }
@media (max-width: 640px) {
  .ch-actions .ch-btn { width: 100%; }
  .ch-actions .ch-lien-action { width: 100%; justify-content: center; }
  .ch-pastille { border-radius: 24px; }
}
.ch-segments { display: flex; gap: 4px; height: 18px; border-radius: 9px; overflow: hidden; }
.ch-segments i, .ch-legende .pt { display: block; }
.s-vues { background: var(--action); } .s-inter { background: var(--cyan); } .s-votes { background: var(--blue); }
.ch-legende { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 10px; }
@media (min-width: 720px) { .ch-legende { grid-template-columns: repeat(3, 1fr); } }
.ch-legende li { display: flex; align-items: baseline; gap: 8px; color: #fff; }
.ch-legende b { font-family: 'Sora', sans-serif; font-size: 1.5rem; }
.ch-legende .pt { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; align-self: center; }
/* un seul ton d'accent : les chiffres sur fond blanc sont bleu nuit, l'orange reste aux fonds sombres */
.ch-prix .montant, .ch-prix .montant.ch-or-texte, .ch-kpi .ch-or-texte { color: var(--navy); background: none;
  -webkit-text-fill-color: currentColor; filter: none; }
.ch-qr-bloc { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ch-qr-texte { flex: 1 1 260px; }
.ch-adresse { display: flex; gap: 12px; align-items: flex-start; }
.ch-adresse .ch-ico { width: 40px; height: 40px; flex: 0 0 40px; }
.ch-adresse .ch-ico svg { width: 20px; height: 20px; }
.ch-table .col-action { text-align: right; width: 1%; white-space: nowrap; }
.ch-table tr.podium-1 td:first-child { box-shadow: inset 4px 0 0 var(--ch-or-clair); }
.ch-table tr.podium-2 td:first-child { box-shadow: inset 4px 0 0 var(--n-300); }
.ch-table tr.podium-3 td:first-child { box-shadow: inset 4px 0 0 var(--action); }
.ch-table .ch-rang span { font-size: 1.4rem; }
.ch-invalide input:not([type=checkbox]) { border-color: var(--error) !important; box-shadow: 0 0 0 3px var(--error-dim); }
.ch-coche.ch-invalide input { outline: 2px solid var(--error); outline-offset: 2px; }
.ch-resume-erreurs { background: var(--error-dim); border-left: 4px solid var(--error); border-radius: var(--radius-md);
  padding: 10px 14px; color: var(--error); font-weight: 700; }
.ch-resume-erreurs p { margin: 0; color: var(--error); }
.ch-detail-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.ch-detail-score b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.3rem, 4.5vw, 1.9rem); }
.ch-detail-score small { font-size: .55em; opacity: .7; margin-left: 2px; }
.ch-detail-score span { font-size: .85rem; color: var(--n-200); }
.ch-lien-vote code { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-btn-ligne-sombre { background: transparent; color: var(--navy) !important; border: 2px solid var(--navy); }
.ch-copie { font-weight: 700; color: var(--valid); }
.ch-courbe { max-height: 150px; }
.ch-courbe circle { fill: var(--action); stroke: var(--navy); stroke-width: 2; }
.ch-courbe-valeur b { font-family: 'Sora', sans-serif; font-size: 1.6rem; }
.ch-courbe-axe { display: flex; justify-content: space-between; }
.ch-lien-bouton { background: none; border: 0; color: var(--cyan); font-weight: 600; text-decoration: underline; cursor: pointer;
  min-height: 44px; font-size: 1rem; padding: 0 4px; }
.ch-carte-blanche .ch-lien-bouton { color: var(--primary-hover); }
.ch-renvoi { text-align: center; margin-top: 14px; color: var(--n-200); }
.ch-badge.ok { background: #047857; color: #fff; }  /* blanc sur --valid = 2,5:1, sous AA */
.ch-badge.ko { background: var(--ink-error, #D01212); color: #fff; }
.ch-insecable { white-space: nowrap; }
@media (max-width: 400px) { .ch-insecable { white-space: normal; } }
.ch-legende li { align-items: center; }
.ch-legende b { white-space: nowrap; }
.ch-renvoi p { color: var(--n-200); } .ch-renvoi .ch-lien-bouton, .ch-renvoi .ch-lien { color: var(--cyan) !important; }

/* ---------- second audit (06/10) ---------- */
@media (max-width: 640px) {
  .ch-hero-img { max-height: 42vh; object-fit: cover; object-position: top center; }
  .ch-qr { display: none; }
  .ch-partage .ch-btn { width: 100%; }
  .ch-table .ch-score small { display: inline; font-size: .7em; opacity: .75; }
}
.ch-qr-texte p { color: #fff; margin-top: 0; }
.ch-partage { margin-top: 12px; }
.ch-carte-info { border-radius: var(--radius-card) !important; text-decoration: none; padding: 14px 18px 14px 12px; }
.ch-carte-info strong { font-size: 1rem; }
a.ch-carte-info:hover { border-color: var(--cyan); }
.ch-champ-copie { display: flex; gap: 8px; margin-top: 12px; }
.ch-champ-copie input { flex: 1 1 auto; min-width: 0; min-height: 48px; border-radius: var(--radius-input); border: 1.5px solid var(--n-300);
  padding: 0 12px; font-size: .95rem; color: var(--text-1); background: var(--n-100); }
.ch-champ-copie .ch-btn { min-height: 48px; padding: 0 18px; }
.ch-carte-blanche > .ch-btn-plein { margin-top: 12px; }
.ch-courbe { max-height: none; }
.ch-champ input::placeholder { color: #94A3B8; }
.ch-table th.ch-num, .ch-table td.ch-num { text-align: right; }
.ch-champ-copie .ch-btn { white-space: nowrap; flex: 0 0 auto; padding: 0 14px; }

/* ---------- encart vidéo (accueil du challenge et de la boutique) ---------- */
.ch-encart { min-height: 0; padding: 28px 16px; border-radius: var(--radius-card); margin: 24px 0; }
.ch-encart--challenge { padding: 0; background: none; margin: 0; }
.ch-encart__grille { display: grid; gap: 20px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (min-width: 860px) { .ch-encart__grille { grid-template-columns: 1.35fr 1fr; } }
.ch-encart__video video { width: 100%; height: auto; display: block; border-radius: var(--radius-card);
  border: 3px solid color-mix(in srgb, var(--cyan) 45%, transparent); box-shadow: 0 18px 40px rgba(0,0,0,.45); background: var(--navy); }
.ch-encart__texte p { color: var(--n-200); line-height: 1.55; }
.ch-encart__texte strong { color: #fff; }

/* Mot de passe affiché une fois après un code WhatsApp (07/10) */
.ch-mdp-valeur { margin: 4px 0 6px; text-align: center; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: .12em; color: var(--navy); user-select: all; word-break: break-all; }
.ch-mdp form { margin-top: 8px; }

/* Vote en unités (07/10) : compteur, jauge, « +1 » animé sans bloquer les clics */
.ch-urne { position: relative; }
.ch-compteurs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.ch-compteur-val { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2.4rem; color: var(--navy); line-height: 1.1; }
.ch-compteur-lib { display: block; font-size: .9rem; color: var(--n-600, #475569); }
.ch-jauge { height: 10px; border-radius: 999px; background: var(--n-200, #E2E8F0); overflow: hidden; margin: 14px 0 4px; }
.ch-jauge i { display: block; height: 100%; background: var(--ch-or); border-radius: inherit; transition: width .25s ease; }
.ch-bouton-vote-zone { position: relative; margin-top: 14px; }
.ch-bouton-vote { min-height: 56px; font-size: 1.05rem; touch-action: manipulation; }
.ch-bouton-vote:disabled { opacity: .5; cursor: not-allowed; }
.ch-pulse { animation: ch-pulse .22s ease-out; }
@keyframes ch-pulse { 0% { transform: scale(1); } 45% { transform: scale(.96); } 100% { transform: scale(1); } }
.ch-bulle { position: absolute; bottom: 60%; pointer-events: none; font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.5rem; color: var(--action); text-shadow: 0 2px 6px rgba(0,0,0,.18); animation: ch-bulle .9s ease-out forwards; }
@keyframes ch-bulle { 0% { opacity: 0; transform: translateY(0) scale(.7); } 15% { opacity: 1; transform: translateY(-8px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-70px) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ch-pulse, .ch-bulle { animation-duration: .01s; } .ch-jauge i { transition: none; } }
.ch-vote-message { min-height: 1.4em; margin: 10px 0 0; text-align: center; font-weight: 600; color: var(--navy); }
.ch-mes-votes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Signalement d'usurpation (07/10) */
.ch-champ textarea { width: 100%; min-height: 96px; border-radius: var(--radius-input); border: 1.5px solid var(--n-300);
  padding: 12px 16px; font: inherit; font-size: 1.05rem; color: var(--text-1); background: #fff; box-sizing: border-box; resize: vertical; }
.ch-champ textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--primary-dim); }

/* Validation inversée : la personne envoie son code à PLCORP depuis WhatsApp */
.ch-entrant { text-align: center; }
.ch-entrant-code { font: 800 clamp(2rem, 9vw, 2.6rem)/1 Sora, sans-serif; letter-spacing: .18em; color: var(--navy); margin: 4px 0 16px; }
.ch-btn-wa { background: #0B6E60; color: #fff !important; box-shadow: 0 8px 20px rgba(11,110,96,.3);  /* teinte de .pl-btn--whatsapp (contraste AA) */ }
.ch-btn-secondaire { background: transparent; color: var(--navy) !important; border: 2px solid #E2E8F0; margin-top: 10px; }
.ch-entrant-attente { margin: 14px 0 0; font-size: .92rem; color: #475569; }
.ch-point { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #0B6E60; margin-right: 6px; vertical-align: middle; animation: ch-clignote 1.2s ease-in-out infinite; }
@keyframes ch-clignote { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ch-point { animation: none; } }
.ch-entrant-garde { margin: 14px 0 0; font-size: .82rem; color: #64748B; }

/* Vérification du pseudo TikTok pendant la saisie */
.ch-tiktok-etat { margin: -6px 0 14px; font-size: .9rem; font-weight: 600; color: #475569; }
.ch-tiktok-etat.ok { color: #0B6E60; }
.ch-tiktok-etat.ko { color: var(--error); }
.ch-alerte-tiktok { background: #FFF4E5; border-left: 4px solid #F2994A; color: var(--navy); padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; }
.ch-entrant-astuce { margin: 10px 0 0; font-size: .88rem; color: #475569; }
.ch-entrant-secours { margin-top: 14px; text-align: left; font-size: .92rem; color: #334155; }
.ch-entrant-secours summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; justify-content: center; }
.ch-entrant-message { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 10px; padding: 10px 12px; word-break: break-word; }
/* Choix du type de compte (compte simple / compte concurrent) */
.ch-choix { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 720px) { .ch-choix { grid-template-columns: 1fr 1fr; } }
.ch-choix__carte { display: flex; flex-direction: column; gap: 12px; background: #fff; color: var(--navy); text-decoration: none;
  border-radius: var(--radius-card); padding: 20px; border: 3px solid transparent; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.ch-choix__carte:hover, .ch-choix__carte:focus-visible { border-color: var(--cyan); }
.ch-choix__carte--or:hover, .ch-choix__carte--or:focus-visible { border-color: var(--action); }
.ch-choix__texte { display: flex; flex-direction: column; gap: 4px; }
.ch .ch-choix__texte strong { color: var(--navy); font-family: 'Sora', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.ch-choix__texte > span { color: var(--text-2); }
.ch-choix__texte ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: .92rem; }
.ch-choix__action { margin-top: auto; min-height: 48px; display: grid; place-items: center; border-radius: var(--radius-full);
  background: var(--navy); color: #fff; font-family: 'Sora', sans-serif; font-weight: 800; }
.ch-choix__carte--or .ch-choix__action { background: var(--ch-or); color: var(--navy); }
/* Vocal d'accueil (lecture automatique, bouton de repli) */
.ch-vocal { background: #fff; border-radius: var(--radius-card); padding: 16px; margin: 14px 0 16px; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.ch-vocal__aide { margin: 8px 0 0; text-align: center; color: var(--text-2); font-size: .92rem; }
.ch-vocal__titre { margin: 0 0 10px; text-align: center; font-family: "Sora", sans-serif; font-weight: 800; color: var(--navy); }


/* Vidéos des participants : galerie, carte, lecteur TikTok intégré (9:16) */
.ch-galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 18px 0; }
@media (min-width: 720px) { .ch-galerie { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; } }
.ch-galerie-etroite { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)) !important; }
.ch-vcarte { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(16,42,67,.25); display: flex; flex-direction: column; }
.ch-lecteur { position: relative; aspect-ratio: 9 / 16; background: var(--navy); display: block; }
.ch-lecteur-btn { all: unset; box-sizing: border-box; position: absolute; inset: 0; cursor: pointer; display: block; }
.ch-lecteur-btn:focus-visible { outline: 3px solid #F2994A; outline-offset: -3px; }
.ch-lecteur img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-lecteur iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ch-lecteur-vide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center;
  font: 800 1.05rem/1.2 Sora, sans-serif; color: #fff; background: linear-gradient(160deg, #2F80ED, #102A43); word-break: break-word; }
.ch-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(16,42,67,.72); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ch-play::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.ch-vcarte-pied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; color: var(--navy); }
.ch-vcarte-auteur { font-weight: 700; color: var(--navy); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; word-break: break-all; }
.ch-vcarte-vues { font-size: .9rem; color: #475569; }
.ch-vcarte-voter { margin-left: auto; min-height: 44px; padding: 0 16px; }
@media (max-width: 719px) { .ch-vcarte-pied { padding: 8px 10px; } .ch-vcarte-voter { margin-left: 0; width: 100%; } .ch-play { transform: scale(.8); } }
.ch-video-cible { max-width: 220px; margin: 18px auto 0; }
.ch-onglets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ch-onglets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; color: #fff; text-decoration: none;
  border: 2px solid rgba(255,255,255,.35); font-weight: 600; }
.ch-onglets a[aria-current="page"] { background: #fff; color: var(--navy); border-color: #fff; }
.ch-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: #fff; }
/* Vignette absente (avant le 1er relevé) : le nom passe sous le bouton ▶ au lieu d'être recouvert par lui */
.ch-lecteur-vide { align-items: flex-end; padding-bottom: 28%; }

/* Notifications : cloche, centre, activation */
.ch-wrap { position: relative; }
.ch .ch-cloche { position: absolute; right: 16px; top: 18px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: 999px; background: color-mix(in srgb, var(--navy) 70%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 35%, transparent); text-decoration: none; font-size: 1.25rem; }
.ch .ch-cloche__nb { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--action); color: var(--navy); font: 800 .75rem/20px 'Sora', sans-serif; text-align: center; }
.ch .ch-notifs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ch .ch-notif { background: #fff; color: var(--navy); border-radius: var(--radius-card); box-shadow: 0 6px 16px rgba(0,0,0,.2);
  border-left: 4px solid var(--n-200); }
.ch .ch-notif--neuve { border-left-color: var(--action); }
.ch .ch-notif__lien, .ch .ch-notif > p:first-child { display: block; }
.ch .ch-notif__lien { color: inherit; text-decoration: none; }
.ch .ch-notif__titre { margin: 0; padding: 14px 16px 2px; font-family: 'Sora', sans-serif; font-weight: 800; color: var(--navy); }
.ch .ch-notif__corps { margin: 0; padding: 0 16px; color: var(--text-2); }
.ch .ch-notif__quand { margin: 0; padding: 6px 16px 14px; color: var(--text-2); font-size: .82rem; }
.ch .ch-activer { margin-top: 14px; }
.ch .ch-activer[hidden], .ch .ch-activer [hidden] { display: none !important; }
.ch .ch-partage [hidden] { display: none !important; }
.ch .ch-activer__titre { margin: 0 0 4px; font-family: 'Sora', sans-serif; font-weight: 800; color: var(--navy); }
.ch .ch-activer__aide, .ch .ch-activer__etat { color: var(--text-2); margin: 0 0 10px; }
.ch .ch-activer__etat:empty { display: none; }

/* Fenêtre d'invitation aux notifications (dialog natif) et bandeau du classement */
.ch-fenetre { margin: auto; width: min(92vw, 420px); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: 20px; padding: 26px 22px 18px; background: #fff; color: var(--navy);
  box-shadow: 0 24px 60px rgba(16,42,67,.35); text-align: center; }
.ch-fenetre::backdrop { background: rgba(15,23,42,.6); }
.ch-fenetre[hidden], .ch-fenetre [hidden] { display: none !important; }
.ch-fenetre__cloche { font-size: 2.6rem; margin: 0 0 6px; line-height: 1; }
.ch-fenetre__titre { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; color: var(--navy); }
.ch-fenetre__texte { color: var(--text-2); margin: 0 0 16px; line-height: 1.45; }
.ch-fenetre__gestes { text-align: left; margin: 0 0 16px; padding-left: 1.3em; color: var(--text-2); line-height: 1.5; }
.ch-fenetre__etat { margin: 10px 0 0; color: var(--text-2); }
.ch-fenetre__etat:empty { display: none; }
.ch-fenetre__plus-tard { margin-top: 10px; min-height: 44px; padding: 0 16px; background: none; border: 0; color: var(--text-3, #64748B);
  font: inherit; font-size: .95rem; text-decoration: underline; cursor: pointer; }
.ch .ch-bandeau-notifs { display: block; width: 100%; margin-top: 14px; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 14px;
  background: color-mix(in srgb, #fff 12%, transparent); color: #fff; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ch .ch-bandeau-notifs[hidden] { display: none !important; }

/* ── Navigation multipage (GO-CHALLENGE-NAV-A / A2) ── */
.ch-nav-system { position: sticky; top: 0; z-index: 900; background: var(--n-900); border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ch-entete { height: 52px; max-height: 56px; max-width: 980px; margin: 0 auto; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ch-entete__gauche { width: 44px; min-width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-start; }
.ch-entete__centre { flex: 1; min-width: 0; text-align: center; display: flex; align-items: center; justify-content: center; }
.ch-entete__droite { width: 44px; min-width: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; position: relative; }
.ch-entete-titre { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-retour { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 700; border-radius: 50%; transition: background var(--transition); }
.ch-retour:hover, .ch-retour:focus-visible { background: rgba(255, 255, 255, 0.15); outline: 2px solid var(--cyan); outline-offset: 2px; }
.ch-entete-logo { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; color: #fff; }
.ch-entete-logo__txt { display: none; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: -0.01em; color: var(--ch-or-clair); }
@media (min-width: 769px) { .ch-entete-logo__txt { display: inline; margin-left: 6px; } }
.ch-entete-connexion { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #fff; text-decoration: none; font-size: 0.82rem; font-weight: 600; }
.ch-entete .ch-cloche { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; text-decoration: none; font-size: 1.25rem; }
.ch-entete .ch-cloche__nb { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; font-size: 0.7rem; font-weight: 800; border-radius: 999px; background: var(--error); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Navigation Desktop (>= 769px) */
.ch-nav-desktop { border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--n-900); }
.ch-nav-desktop__inner { max-width: 980px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; height: 46px; }
.ch-nav-desktop__item { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--n-300); text-decoration: none; font-size: 0.88rem; font-weight: 600; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); }
.ch-nav-desktop__item:hover, .ch-nav-desktop__item:focus-visible { color: #FFFFFF; }
.ch-nav-desktop__item.ch-actif { color: #FFFFFF !important; font-weight: 700; border-bottom: 2px solid var(--action, #F2994A); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 768px) { .ch-nav-desktop { display: none !important; } }

/* Barre basse mobile (< 769px) */
.ch-barre-basse { position: fixed; bottom: 0; left: 0; right: 0; z-index: 990; height: 56px; display: flex; align-items: stretch; background: var(--surface-0, #fff); border-top: 1px solid var(--border, #E2E8F0); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.ch-barre-basse__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; text-decoration: none; color: var(--text-2, #334155); font-size: 0.7rem; font-weight: 600; gap: 2px; position: relative; transition: color var(--transition); }
.ch-barre-basse__item:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ch-barre-basse__item.ch-actif { color: var(--ink-primary, #1D5FBF); font-weight: 700; }
.ch-barre-basse__item.ch-actif::before { content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2.5px; background: var(--blue, #2F80ED); border-radius: 0 0 2px 2px; }
.ch-barre-basse__ico { font-size: 1.15rem; line-height: 1; }
.ch-barre-basse__label { line-height: 1.1; white-space: nowrap; }
@media (min-width: 769px) { .ch-barre-basse { display: none !important; } }

/* Espace réservé en bas de page pour que le contenu ne soit pas collé au pied de page */
@media (max-width: 768px) {
  .ch-page { padding-bottom: 12px; }
}

/* Pied de page compact du challenge (fond sombre var(--n-900), contraste >= 4.5:1, hauteur sobre) */
.ch-pied-compact { background: var(--n-900); margin-top: 0; padding: 10px 14px calc(66px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.78rem; color: var(--n-300); }
@media (min-width: 769px) { .ch-pied-compact { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); } }
.ch-pied-compact__inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.ch-pied-compact__logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #FFFFFF !important; font-weight: 600; min-height: 32px; }
.ch-pied-compact__liens { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ch-pied-compact__liens a { color: var(--n-300); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.ch-pied-compact__liens a:hover, .ch-pied-compact__liens a:focus-visible { color: #FFFFFF; text-decoration: underline; }

/* ── Tuiles du Tableau de Bord (Dashboard) ── */
.ch-tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
@media (max-width: 480px) { .ch-tuiles { grid-template-columns: 1fr 1fr; gap: 8px; } }
.ch-tuile { display: flex; flex-direction: column; justify-content: space-between; background: #fff; color: var(--navy); border-radius: var(--radius-card); padding: 12px; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); border: 2px solid transparent; min-height: 84px; transition: transform var(--transition), border-color var(--transition); }
.ch-tuile--large { grid-column: 1 / -1; }
.ch-tuile:hover, .ch-tuile:focus-visible { transform: translateY(-2px); border-color: var(--cyan); outline: none; }
.ch-tuile__haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ch-tuile__ico { font-size: 1.35rem; line-height: 1; }
.ch-tuile__badge { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--action); color: var(--navy); }
.ch-tuile__titre { font-family: 'Sora', sans-serif; font-size: 0.88rem; font-weight: 800; color: var(--navy); margin: 0; line-height: 1.2; }
.ch-tuile__desc { font-size: 0.72rem; color: var(--text-2); margin: 2px 0 0; line-height: 1.2; }

/* ── Dashboard compact (Point 4) ── */
.ch-salut { font-size: clamp(1.4rem, 5vw, 1.9rem); margin: 0; line-height: 1.2; }
.ch-sous-identite { margin: 2px 0 0; font-size: 0.9rem; color: var(--n-300); }
.ch-section--kpis { margin-top: 10px; }
.ch-dashboard .ch-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.ch-dashboard .ch-kpi { background: #fff; color: var(--navy); border-radius: 8px; padding: 8px 4px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.ch-dashboard .ch-kpi b { display: block; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.ch-dashboard .ch-kpi span { color: var(--text-3, #64748B); font-size: 0.68rem; font-weight: 600; line-height: 1.1; margin-top: 2px; display: block; }

/* Écart avec le concurrent devant (Point 6 : support égalité) */
.ch-ecart { background: color-mix(in srgb, var(--action) 18%, var(--navy)); border: 1.5px solid var(--action); border-radius: var(--radius-card); padding: 10px 14px; margin: 10px 0; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #fff; }
.ch-ecart__ico { font-size: 1.2rem; flex-shrink: 0; }
.ch-ecart strong { color: var(--ch-or-clair); }
.ch-ecart__pseudo { font-size: 0.82rem; color: var(--n-300); display: block; margin-top: 2px; }

/* État meilleure vidéo dans le dashboard (Point 9 : bouton contrasté) */
.ch-statut-video { background: color-mix(in srgb, var(--navy) 70%, transparent); border: 1.5px solid color-mix(in srgb, var(--cyan) 30%, transparent); border-radius: var(--radius-card); padding: 12px 14px; margin: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ch-statut-video__titre { font-size: 0.88rem; font-weight: 600; color: #fff; margin: 0; }
.ch-statut-video__vues { font-size: 0.8rem; color: var(--n-300); margin: 2px 0 0; }
.ch-btn-ajouter { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 14px; background: #FFFFFF; color: var(--navy, #102A43) !important; font-size: 0.82rem; font-weight: 700; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.25); transition: background var(--transition), transform var(--transition); }
.ch-btn-ajouter:hover, .ch-btn-ajouter:focus-visible { background: var(--ch-or-clair); color: var(--navy, #102A43) !important; transform: scale(1.03); }

/* Utilitaires CSS remplaçant les styles en ligne (Point 9) */
.ch-pt-12 { padding-top: 12px; }
.ch-mt-0 { margin-top: 0; }
.ch-mt-8 { margin-top: 8px; }
.ch-mt-10 { margin-top: 10px; }
.ch-mt-12 { margin-top: 12px; }
.ch-mt-14 { margin-top: 14px; }
.ch-mt-20 { margin-top: 20px; }
.ch-mt-30 { margin-top: 30px; }
.ch-mb-12 { margin-bottom: 12px; }
.ch-m-0 { margin: 0; }
.ch-text-center { text-align: center; }
.ch-carte-sombre { background: var(--navy, #102A43); color: #FFFFFF; margin-top: 12px; }
.ch-btn-deconnexion { color: #FFFFFF !important; border-color: rgba(255, 255, 255, 0.45); min-height: 44px; }
.ch-btn-deconnexion:hover, .ch-btn-deconnexion:focus-visible { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }
.ch-titre-h2-marine { color: var(--navy, #102A43); text-shadow: none; }
.ch-manquantes { margin: 0; font-size: 0.88rem; color: var(--ch-or-clair); }
.ch-progression { margin: 0 0 6px; font-size: 0.92rem; }
.ch-provisoire-compact { padding: 8px 12px; margin-top: 8px; border-radius: 8px; font-size: 0.85rem; }
.ch-provisoire-btn { padding: 6px 12px; font-size: 0.82rem; min-height: 36px; margin-top: 6px; }
.ch-tuile__badge--alerte { background: var(--ink-error, #B42318); color: #FFFFFF; }
.ch-tuile__badge--info { background: var(--blue); color: #FFFFFF; }
.ch-mt-4 { margin-top: 4px; }
.ch-identite-resume { margin: 0 0 10px; font-size: 0.95rem; }
.ch-tiktok-info { margin: 0 0 14px; font-size: 0.92rem; color: var(--text-2); }




/* Relais de validation (10/10) : le concurrent prévient ses soutiens provisoires */
.ch-relais__titre { margin: 0 0 6px; }
.ch-relais__texte { margin: 0 0 8px; font-size: 0.92rem; }
.ch-relais__liste { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ch-relais__liste li { background: #fff; border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; font-weight: 600; }
.ch-relais__liste li span { font-weight: 400; color: var(--text-2); }
.ch-relais__plus { margin: 0 0 10px; }
.ch-relais .ch-btn { text-align: center; }
.ch-relais__plus summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; text-decoration: underline; }

/* Classement : la règle générique du portail (tbody tr:hover td → --surface-1, quasi blanc) effaçait le texte blanc
   des lignes au survol, et au toucher sur mobile où le survol reste collé (signalé par Prince, 10/10). */
.ch-table tbody tr:hover td, .ch-table tbody tr:focus-within td { background: color-mix(in srgb, var(--blue) 22%, var(--navy)); }
.ch-table tbody tr.moi:hover td, .ch-table tbody tr.moi:focus-within td { background: color-mix(in srgb, var(--blue) 50%, var(--navy)); }
.ch-table .ch-pseudo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* Rappel du bon sur le tableau de bord : les notifications « ton bon est dans ton espace » arrivent ici */
.ch-bon-rappel { margin: 10px 0; padding: 10px 14px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--success, #10B981) 18%, var(--navy)); border: 1.5px solid var(--success, #10B981); color: #fff; font-size: .9rem; }
.ch-bon-rappel__code { font-family: 'Sora', sans-serif; letter-spacing: .08em; color: var(--ch-or-clair); }
p > a.ch-lien:only-child { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Audit à l'aveugle du lot A (10/10) ---------- */
@media (max-width: 640px) {
  .ch-pseudo { font-size: .86rem; word-break: normal; }
  .ch-pseudo__nom { min-width: 0; overflow-wrap: break-word; }  /* les <wbr> (. _ -) d'abord ; en plein mot seulement si un bloc déborde seul */
  .ch-table .ch-score small { display: none; }                 /* « /100 » : la place revient au pseudo */
}
.ch-provisoire-btn, .ch-btn-ajouter { min-height: 44px; }
.ch-compte .ch-btn-or, .ch-compte .pl-install__btn { background: transparent; color: var(--navy) !important;
  border: 2px solid var(--navy); box-shadow: none; }
@media (min-width: 769px) { .ch-dashboard .ch-btn-plein, .ch-dashboard .ch-form .ch-btn, .ch-dashboard .pl-install__btn { max-width: 420px; } }

/* ---------- Typographie sobre (Prince, 10/10, d'après un visuel de référence) ----------
   Majuscule initiale seulement, graisses 600-700, pas d'ombre portée : plus calme et plus de place. */
.ch-titre { text-transform: none; font-weight: 700; font-size: clamp(1.6rem, 5.5vw, 2.4rem); line-height: 1.15;
  letter-spacing: -.01em; text-shadow: none; }
.ch-h2 { text-transform: none; font-weight: 700; font-size: clamp(1.15rem, 3.4vw, 1.4rem); letter-spacing: 0; text-shadow: none; }
.ch-titre .or, .ch-or-texte { filter: none; }
.ch-rang, .ch-score, .ch-kpi b, .ch-dashboard .ch-kpi b, .ch-detail-score b { font-weight: 700; }
.ch-vocal .ch-btn { display: flex; margin-left: auto; margin-right: auto; }
.ch-table tbody tr:hover td, .ch-table tbody tr:focus-within td { background: color-mix(in srgb, var(--blue) 34%, var(--navy)); }
.ch-btn, .ch-page .pl-install__btn { text-transform: none; font-weight: 600; letter-spacing: 0; text-align: center; }
.ch-ruban, .ch-pastille strong, .ch-date strong, .ch .ch-choix__texte strong, .ch-surtitre, .ch-entete-logo__txt,
.ch-table th { text-transform: none; letter-spacing: 0; }
.ch-tuile__titre, .ch-vocal__titre, .ch .ch-activer__titre, .ch .ch-notif__titre, .ch-fenetre__titre,
.ch-pastille strong, .ch-date strong, .ch .ch-choix__texte strong, .ch-ruban { font-weight: 700; }
.ch-sous { font-size: 1rem; }

/* ---------- Photos de profil TikTok (10/10) ---------- */
.ch-pseudo { gap: 8px; }
.ch-avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
  background: color-mix(in srgb, var(--blue) 30%, var(--navy)); color: #fff; font: 700 .85rem/1 'Sora', sans-serif; }
.ch-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-avatar--grand { width: 64px; height: 64px; font-size: 1.5rem; border: 2px solid var(--ch-or-clair); }
.ch-salut-bloc { display: flex; align-items: center; gap: 14px; }
.ch-salut-bloc .ch-titre { margin: 0; }
@media (max-width: 640px) {
  .ch-avatar { width: 24px; height: 24px; font-size: .72rem; } .ch-avatar--grand { width: 56px; height: 56px; font-size: 1.3rem; }
  .ch-table .ch-pseudo { gap: 6px; }
  .ch-table td { padding: 8px 5px; } .ch-table th { padding: 0 5px; }
  .ch-table .ch-btn { padding: 0 9px !important; }   /* la photo a pris sa place au bouton : le tableau tient en 360 */
}
@media (max-width: 359px) { .ch-table .ch-avatar { display: none; } .ch-rang { width: 22px; } .ch-table td { padding: 8px 4px; } }
/* Lien dans une alerte sur fond clair (« Corriger mon pseudo ») : le cyan y tombait à 1,7:1 */
.ch-alerte-tiktok .ch-lien { color: var(--blue-aa, var(--primary-hover)) !important; display: inline-flex; align-items: center; min-height: 44px; }
/* Profil : le pseudo du titre se coupe aux <wbr> (. _ -), jamais en plein mot ; libellés des KPI entiers */
.ch-titre-pseudo { overflow-wrap: break-word; word-break: normal; }
.ch-kpi span { overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 640px) { .ch-kpi span { font-size: .78rem; } }

/* ---------- Nom TikTok + @identifiant (10/10, demande de Prince) ---------- */
.ch-table td.ch-col-ident { width: 100%; max-width: 0; }      /* la colonne prend la place libre, sans imposer sa largeur */
.ch-table .ch-pseudo { display: flex; gap: 10px; min-width: 0; }
.ch-table .ch-avatar { width: 44px; height: 44px; font-size: 1rem; }   /* même hauteur que le bouton « Voter » */
.ch-ident { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ch-ident__nom, .ch-ident__id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-ident__nom { font-weight: 700; }
.ch-ident__id { font-size: .8rem; font-weight: 500; color: var(--n-200); }
.ch-profil-tete { display: flex; align-items: center; gap: 14px; }
.ch-profil-tete__ident { flex: 1; }
.ch-profil-tete__nom { margin: 0; font: 700 clamp(1.25rem, 5vw, 1.6rem)/1.2 'Sora', sans-serif; color: var(--ch-or-clair); }
.ch-profil-tete__ident .ch-ident__id { font-size: .95rem; }
.ch-profil-tete__rang { flex: none; font: 700 1.6rem/1 'Sora', sans-serif; }
.ch-profil-tete__rang sup { font-size: .55em; }
.ch-profil-tete + .ch-sous { margin-top: 10px; }
@media (max-width: 640px) { .ch-table .ch-avatar { width: 40px; height: 40px; } .ch-table .ch-pseudo { gap: 8px; } }
@media (max-width: 359px) { .ch-table .ch-avatar { display: inline-grid; width: 32px; height: 32px; } }
.ch-profil-tete__nom { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }  /* titre : nom entier sur 2 lignes */

/* Retrait d'une vidéo par son auteur (10/10) : confirmation dépliée, sans JavaScript. */
.ch-retrait { margin-top: 6px; }
.ch-retrait summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600;
  color: var(--cyan); text-decoration: underline; }
.ch-retrait .ch-note { margin: 4px 0 8px; }
.ch-retrait-btn { min-height: 44px; padding: 0 18px; font-size: .85rem; }
.ch-retrait summary { color: var(--n-300); }  /* action de retrait : discrète, distincte du lien « voir sur TikTok » */

/* Carte « Mes vidéos » (audit du 11/10) : état en tête, vignette + légende pour reconnaître la vidéo, hors jeu atténuée. */
.ch-video-carte__tete { display: flex; align-items: flex-start; gap: 12px; }
.ch-video-carte__vignette { width: 48px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ch-video-carte__titre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-video-carte__legende { overflow-wrap: anywhere; }
.ch-video-carte__titre .ch-lien { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.ch-video-carte__tete .ch-badge { flex: none; }
.ch-video-carte--hors-jeu .ch-video-carte__vignette { opacity: .6; }
.ch-video-carte--hors-jeu .ch-video-carte__stats { color: var(--n-300); }
.ch-video-carte__hors { color: var(--n-300); font-weight: 600; }
.ch-badge.neutre { background: rgba(148, 163, 184, .18); color: var(--n-200); }

/* ---------- Notifications : panneau latéral depuis la droite + liste compacte (décision de Prince, 10/10) ----------
   Arrière-plan flouté, textes réduits ; une notification non touchée reste mise en avant (fond teinté, liseré bleu,
   pastille orange, titre gras). Mêmes règles pour le panneau et pour la page /moi/notifications/. */
.ch-tiroir { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(88vw, 380px); max-width: none; height: 100dvh;
  max-height: none; padding: 0; border: 0; background: #fff; color: var(--navy); display: none; flex-direction: column;
  box-shadow: -18px 0 40px rgba(15,23,42,.28); transform: translateX(100%); transition: transform .22s ease-out; }
.ch-tiroir[open] { display: flex; }
.ch-tiroir.ch-tiroir--ouvert { transform: translateX(0); }
.ch-tiroir::backdrop { background: rgba(15,23,42,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: reduce) { .ch-tiroir { transition: none; } }
.ch-tiroir__tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--n-200); }
.ch-tiroir__titre { margin: 0; font: 700 .95rem/1.2 'Sora', sans-serif; color: var(--navy); }
.ch-tiroir__fermer { width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--navy);
  font-size: 1rem; cursor: pointer; }
.ch-tiroir__fermer:hover, .ch-tiroir__fermer:focus-visible { background: var(--n-100); }
.ch-tiroir__corps { flex: 1; overflow-y: auto; padding: 10px 12px 12px; overscroll-behavior: contain; }
.ch-tiroir__tout { display: flex; align-items: center; justify-content: center; min-height: 44px; border-top: 1px solid var(--n-200);
  font-size: .78rem; font-weight: 600; color: var(--blue-dark, #1D4ED8); text-decoration: none; }

.ch-notifs-page { margin-top: 14px; background: #fff; color: var(--navy); border-radius: var(--radius-card); padding: 10px 12px 12px; }
.ch-notifs-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.ch-notifs-tete__compte { margin: 0; font-size: .76rem; color: var(--text-2); }
.ch-notifs-tete__form { margin: 0; }
.ch-notifs-tete__tout-lu { min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font-size: .76rem;
  font-weight: 600; color: #1D4ED8; text-decoration: underline; }
.ch-notifs-vide { margin: 8px 2px; font-size: .78rem; color: var(--text-2); line-height: 1.45; }
.ch-tiroir .ch-notifs, .ch .ch-notifs-page .ch-notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ch-tiroir .ch-notif, .ch .ch-notifs-page .ch-notif { background: #fff; color: var(--navy); border-radius: 10px; box-shadow: none;
  border: 1px solid var(--n-200); border-left: 3px solid var(--n-200); }
.ch-tiroir .ch-notif--neuve, .ch .ch-notifs-page .ch-notif--neuve { background: #EEF5FF; border-color: #C7DBFB;
  border-left: 3px solid var(--blue); }
.ch-tiroir .ch-notif__lien, .ch .ch-notifs-page .ch-notif__lien { display: block; padding: 8px 10px 8px 10px; color: inherit;
  text-decoration: none; min-height: 44px; }
.ch-tiroir .ch-notif__lien:hover, .ch-tiroir .ch-notif__lien:focus-visible,
.ch .ch-notifs-page .ch-notif__lien:hover, .ch .ch-notifs-page .ch-notif__lien:focus-visible { background: rgba(47,128,237,.06); }
.ch-tiroir .ch-notif__titre, .ch .ch-notifs-page .ch-notif__titre { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0;
  font: 500 .8rem/1.3 'Inter', sans-serif; color: var(--navy); }
.ch-tiroir .ch-notif--neuve .ch-notif__titre, .ch .ch-notifs-page .ch-notif--neuve .ch-notif__titre { font-weight: 700; }
.ch-notif__pastille { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.ch-tiroir .ch-notif__corps, .ch .ch-notifs-page .ch-notif__corps { margin: 2px 0 0; padding: 0; font-size: .74rem; line-height: 1.4;
  color: var(--text-2); }
.ch-tiroir .ch-notif__quand, .ch .ch-notifs-page .ch-notif__quand { margin: 3px 0 0; padding: 0; font-size: .68rem; color: var(--n-500); }
.ch-tiroir .ch-notif--neuve .ch-notif__quand, .ch .ch-notifs-page .ch-notif--neuve .ch-notif__quand { color: #1D4ED8; font-weight: 600; }

/* ── Boutique Partenaires — compléments charte Challenge (GO-BOUTIQUE-CHARTE) ── */
.ch-bt-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
@media (min-width: 640px) {
  .ch-bt-grille {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (min-width: 960px) {
  .ch-bt-grille {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }
}

.ch-bt-carte {
  background: color-mix(in srgb, var(--navy) 78%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 25%, transparent);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
  text-decoration: none;
  color: #fff;
  min-height: 100%;
}
.ch-bt-carte:hover, .ch-bt-carte:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
  outline: none;
}
.ch-bt-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--navy);
  overflow: hidden;
}
.ch-bt-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ch-bt-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: color-mix(in srgb, var(--navy) 90%, #fff);
  color: var(--n-300);
}
.ch-bt-corps {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}
.ch-bt-titre {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  margin: 0 0 4px 0;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ch-bt-partenaire {
  font-size: 0.72rem;
  color: var(--n-200);
  margin-bottom: 6px;
}
.ch-bt-prix-bloc {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--cyan) 15%, transparent);
}
.ch-bt-prix {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ch-or-clair);
}
.ch-bt-prix-barre {
  font-size: 0.78rem;
  color: var(--n-300);
  text-decoration: line-through;
  margin-left: 4px;
}
.ch-bt-badge-remise {
  display: inline-block;
  background: var(--action);
  color: var(--navy);
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Puces de filtrage par rayon */
.ch-bt-puces {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 10px;
  scrollbar-width: thin;
}
.ch-bt-puce {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--navy) 60%, transparent);
  color: #fff;
  border: 1.5px solid color-mix(in srgb, #fff 25%, transparent);
}
.ch-bt-puce.ch-actif, .ch-bt-puce[aria-current="page"] {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
}

/* Bandeau partenaires */
.ch-bt-bandeau {
  background: color-mix(in srgb, var(--navy) 80%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Fiche produit détaillée */
.ch-bt-fiche-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}
@media (min-width: 800px) {
  .ch-bt-fiche-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.ch-bt-galerie-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.ch-bt-vignette {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--navy);
}
.ch-bt-vignette.active {
  border-color: var(--cyan);
}
.ch-bt-vignette img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ch-bt-box-remise {
  background: color-mix(in srgb, var(--action) 20%, var(--navy));
  border: 1.5px solid var(--action);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin: 14px 0;
}
.ch-bt-box-info {
  background: color-mix(in srgb, var(--navy) 75%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: var(--radius-card);
  padding: 16px;
  margin: 18px 0;
}
.ch-bt-box-info ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}
.ch-bt-box-info li {
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--n-200);
  line-height: 1.45;
}
.ch-bt-box-info li:last-child {
  margin-bottom: 0;
}

/* ---------- GO-BOUTIQUE-CHARTE-2 : Ajouts styles Boutique Challenge ---------- */
.ch-page input,
.ch-page select,
.ch-page textarea,
.ch-page button {
  font: inherit;
}

.ch-bt-card-sombre {
  background: rgba(16, 42, 67, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(86, 204, 242, 0.22);
  border-radius: var(--radius-card, 16px);
  padding: 24px 20px;
  color: #F8FAFC;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
@media (max-width: 640px) {
  .ch-bt-card-sombre {
    padding: 18px 14px;
    border-radius: 12px;
  }
}

.ch-bt-input,
.ch-bt-card-sombre input[type="text"],
.ch-bt-card-sombre input[type="tel"],
.ch-bt-card-sombre input[type="number"],
.ch-bt-card-sombre select,
.ch-bt-card-sombre textarea {
  font: inherit;
  background: #0F2238 !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius-input, 8px);
  padding: 10px 14px;
  min-height: 44px;
  box-sizing: border-box;
  width: 100%;
}
.ch-bt-input:focus,
.ch-bt-card-sombre input:focus,
.ch-bt-card-sombre select:focus,
.ch-bt-card-sombre textarea:focus {
  outline: none;
  border-color: var(--cyan, #56CCF2) !important;
  box-shadow: 0 0 0 3px rgba(86, 204, 242, 0.25);
}
.ch-bt-card-sombre select option {
  background: #102A43;
  color: #FFFFFF;
}

.ch-bt-montant,
.ch-bt-ref {
  white-space: nowrap;
}

.ch-bt-puces-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}
.ch-bt-puces-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 36px;
  background: linear-gradient(to right, transparent, var(--n-900, #0F172A));
  pointer-events: none;
}
.ch-bt-puce.active {
  background: var(--cyan, #56CCF2);
  color: var(--navy, #102A43) !important;
  font-weight: 700;
  border-color: var(--cyan, #56CCF2);
}

@media (min-width: 1024px) {
  .ch-bt-split-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
  }
  .ch-bt-sticky-recap {
    position: sticky;
    top: 24px;
  }
}

/* Modèle de quantité unique sombre */
.ch-bt-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-btn, 8px);
  background: #0F2238;
  overflow: hidden;
}
.ch-bt-qty-btn {
  min-height: 44px;
  min-width: 44px;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ch-bt-qty-btn:hover {
  background: rgba(86, 204, 242, 0.2);
}
.ch-bt-qty-val {
  width: 50px;
  min-height: 44px;
  border: none !important;
  background: transparent !important;
  color: #FFFFFF !important;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
}
.ch-bt-qty-val::-webkit-inner-spin-button,
.ch-bt-qty-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Stepper suivi de commande */
.ch-bt-stepper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}
.ch-bt-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.ch-bt-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.ch-bt-step.done .ch-bt-step-dot {
  background: var(--emerald, #10B981);
  color: #FFFFFF;
  border-color: var(--emerald, #10B981);
}
.ch-bt-step.current .ch-bt-step-dot {
  background: var(--cyan, #56CCF2);
  color: var(--navy, #102A43);
  border-color: var(--cyan, #56CCF2);
  box-shadow: 0 0 12px rgba(86, 204, 242, 0.5);
}


/* En-tête : la pastille panier chevauchait le titre à 360 px et « Connexion » à 1280 px.
   La pastille du contenu, présente sur chaque page boutique, suffit. */
.ch-entete__droite .ch-bt-panier-pill { display: none !important; }

/* Champ quantité : une règle générique de formulaire lui ajoutait 14 px de padding latéral,
   ce qui réduisait sa zone de texte à 2 px — le chiffre devenait invisible. */
.ch-bt-qty-wrap .ch-bt-qty-val { padding: 0 !important; width: 50px !important; flex: 0 0 50px; }

/* Panier à 360 px : le bloc − / + rétrécissait sous overflow:hidden et rognait le « + ». */
.ch-bt-qty-wrap { flex-shrink: 0; }
.ch-bt-envoi-defaut { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Message flash du portail : il s'affichait sur une bande blanche au-dessus de la page sombre. */
body:has(.ch-page) { background-color: var(--navy, #102A43); }

/* Photos produit détourées (fond transparent) : le fond vient des jetons du thème, il suit donc
   la charte et ses changements (/backoffice/apparence/) sans retoucher une seule image.
   Sans effet visible sur une photo opaque. */
.ch-bt-media,
.ch-bt-fiche-visuel {
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--cyan) 22%, transparent) 0%, transparent 62%),
    linear-gradient(160deg, var(--secondary-light, #1E3A5F) 0%, var(--navy, #102A43) 100%);
}

/* Messages Django sur le fond sombre du challenge (13/10) : les couleurs du portail (texte foncé sur fond
   translucide) tombaient sous 2:1 — « Compte confirmé » était illisible. Le fond clair d'info reste tel quel. */
.alert-success { color: #A7F3D0; }
.alert-warning { color: #FED7AA; }
.alert-error   { color: #FECACA; }

/* Page « Ton mot de passe » (13/10, audit à l'aveugle) : boutons en Sora comme partout ailleurs (la règle
   `.ch-page button { font: inherit }` les remettait en Inter), hiérarchie copier → action principale → lien,
   aide atténuée, retour de copie lisible sur blanc (vert assombri, ≥ 4,5:1). */
.ch-mdp .ch-btn { font-family: 'Sora', sans-serif; font-weight: 600; }
.ch-mdp .ch-btn + .ch-copie { min-height: 1.4em; margin: 4px 0 0; text-align: center; }
.ch-mdp .ch-copie + form .ch-btn { margin-top: 4px; }
.ch-mdp .aide { color: var(--n-600); font-size: .92rem; }
.ch-carte-blanche .ch-copie { color: color-mix(in srgb, var(--valid) 55%, #000); }
