/* Page « Mon compte » : connexion par code WhatsApp, profil, appareils. Piloté par assets/js/compte.js. */
.cpt { max-width: 560px; margin: 0 auto 2rem; }
.cpt-card { background: var(--color-surface, #fbf7ee); border: 1px solid var(--color-border, #e6dcc7); border-radius: var(--radius-lg, 16px); padding: 1.4rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.cpt-loading { color: var(--color-text-muted); text-align: center; }
.cpt h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.cpt h3 { margin: 1.6rem 0 0.6rem; font-size: 1rem; }
.cpt-sub { margin: 0 0 1.1rem; color: var(--color-text-muted); font-size: 0.93rem; line-height: 1.5; }
.cpt-field { display: block; margin: 0 0 0.95rem; }
.cpt-field > span, .cpt-field > label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.cpt-field small { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 0.25rem; line-height: 1.4; }
.cpt input[type=text], .cpt input[type=tel], .cpt input[type=number], .cpt select {
  width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; color: var(--color-text);
  background: #fff; border: 1.5px solid var(--color-border-strong, #d8cbae); border-radius: var(--radius-md, 10px);
}
.cpt input:focus, .cpt select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(184, 135, 43, 0.22); }
.cpt-phone { display: flex; align-items: stretch; }
/* Indicatif du pays modifiable (« + » fixe, chiffres) collé au numéro : compte.js phoneField() */
.cpt-phone .cpt-cc { display: flex; align-items: center; flex: none; padding-left: 0.65rem; background: var(--color-primary-light); border: 1.5px solid var(--color-border-strong, #d8cbae); border-right: 0; border-radius: 10px 0 0 10px; font-weight: 700; }
.cpt-phone .cpt-cc:focus-within { border-color: var(--color-primary); }
.cpt .cpt-phone .cpt-cc input { width: 3.6rem; padding: 0.7rem 0.4rem 0.7rem 0.1rem; border: 0; border-radius: 0 !important; background: transparent; font-weight: 700; box-shadow: none; }
.cpt .cpt-phone .cpt-cc input:focus { box-shadow: none; }
.cpt-phone > input { flex: 1; min-width: 0; border-radius: 0 10px 10px 0 !important; }
.cpt-phone input:disabled { cursor: not-allowed; opacity: 0.7; }
.cpt-code { text-align: center; letter-spacing: 0.5em; font-size: 1.6rem !important; font-weight: 700; }
.cpt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.cpt-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; margin: 0.4rem 0 1rem; }
.cpt-check input { margin-top: 0.2rem; width: 1.1rem; height: 1.1rem; flex: none; }
.cpt-err { margin: 0 0 0.9rem; padding: 0.65rem 0.8rem; background: #fdecea; color: #8a1c13; border-radius: 8px; font-size: 0.88rem; line-height: 1.4; }
.cpt-ok { margin: 0 0 0.9rem; padding: 0.65rem 0.8rem; background: #e7f5ea; color: #1b5e2f; border-radius: 8px; font-size: 0.88rem; }
/* Attente de la livraison du code WhatsApp (compte.js : stepSending) */
.cpt-sending { display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.9rem; padding: 0.8rem 0.9rem; background: #eef4fb; color: #1f3b5c; border-radius: 10px; font-size: 0.9rem; }
.cpt-spin { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 3px solid rgba(31, 59, 92, 0.18); border-top-color: var(--color-primary, #c9962b); animation: cpt-spin 0.9s linear infinite; }
@keyframes cpt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cpt-spin { animation-duration: 2.5s; } }
.cpt-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 0.9rem; }
.cpt-dev { margin: 0 0 0.9rem; padding: 0.55rem 0.8rem; background: #fff7d6; color: #6b5200; border-radius: 8px; font-size: 0.82rem; border: 1px dashed #d9b84a; }
.cpt .btn { width: 100%; justify-content: center; }
.cpt-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; margin-top: 0.9rem; font-size: 0.86rem; }
.cpt-link { background: none; border: 0; padding: 0; font: inherit; color: var(--color-primary-dark); text-decoration: underline; cursor: pointer; }
.cpt-link:disabled { color: var(--color-text-muted); text-decoration: none; cursor: default; }
.cpt-hi { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.cpt-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--color-primary); color: #fff; font-weight: 800; font-size: 1.2rem; }
.cpt-hi h2 { margin: 0; }
.cpt-hi p { margin: 0; color: var(--color-text-muted); font-size: 0.86rem; }
.cpt-plan { background: var(--color-primary-light); border-radius: 12px; padding: 0.85rem 1rem; font-size: 0.9rem; line-height: 1.5; }
.cpt-plan strong { display: block; font-size: 1rem; }
.cpt-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.cpt-devices li { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.8rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; }
.cpt-devices li > div { flex: 1; min-width: 0; }
.cpt-devices strong { display: block; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-devices small { color: var(--color-text-muted); font-size: 0.78rem; }
.cpt-devices .cpt-tag { font-size: 0.7rem; font-weight: 700; background: #e7f5ea; color: #1b5e2f; padding: 0.15rem 0.5rem; border-radius: 99px; margin-left: 0.4rem; }
.cpt-mini { padding: 0.4rem 0.7rem; font-size: 0.8rem; border-radius: 8px; border: 1px solid var(--color-border-strong); background: #fff; color: var(--color-text); cursor: pointer; font: inherit; font-size: 0.8rem; white-space: nowrap; }
.cpt-mini:hover { border-color: var(--color-primary); }
/* Écran « Trop d'appareils connectés » : le texte du bouton peut passer à la ligne et, sur téléphone, le bouton prend toute la largeur sous l'appareil. */
.cpt-devices--limit li { flex-wrap: wrap; }
.cpt-devices--limit li > div { flex: 1 1 12rem; }
.cpt-devices--limit strong { white-space: normal; overflow-wrap: anywhere; }
.cpt-devices--limit .cpt-mini-block { white-space: normal; text-align: center; line-height: 1.25; min-height: 44px; padding: 0.55rem 0.9rem; font-weight: 600; }
@media (max-width: 600px) {
  .cpt-devices--limit li { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .cpt-devices--limit li > div { flex: none; }
  .cpt-devices--limit .cpt-mini-block { width: 100%; }
}
.cpt-danger { margin-top: 1.6rem; border-top: 1px solid var(--color-border); padding-top: 1rem; font-size: 0.86rem; }
.cpt-danger summary { cursor: pointer; color: var(--color-text-muted); }
.cpt-danger .btn { margin-top: 0.7rem; background: #b3261e; color: #fff; border-color: #b3261e; }
.cpt-support { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 1.4rem; padding: 0.8rem 1rem; border: 1px solid var(--color-border); border-radius: 12px; font-size: 0.88rem; }
.cpt-support a { white-space: nowrap; }
@media (max-width: 480px) {
  .cpt-card { padding: 1.1rem 1rem 1.2rem; }
  .cpt-row { grid-template-columns: 1fr; gap: 0; }
  .cpt-support { flex-direction: column; align-items: flex-start; }
}

/* mot de passe, identité verrouillée */
.cpt input[type=password], .cpt textarea { width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; font: inherit; font-size: 1rem; color: var(--color-text); background: #fff; border: 1.5px solid var(--color-border-strong, #d8cbae); border-radius: var(--radius-md, 10px); }
.cpt input[type=password]:focus, .cpt textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(184, 135, 43, 0.22); }
.cpt-pw { position: relative; }
.cpt-pw input { padding-right: 2.8rem !important; }
.cpt-eye { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; padding: 0.4rem; opacity: 0.6; }
.cpt-eye:hover { opacity: 1; }
.cpt-lock { font-size: 0.75rem; font-weight: 700; background: #fff3cf; color: #7a5a00; padding: 0.15rem 0.55rem; border-radius: 99px; margin-left: 0.4rem; vertical-align: middle; }
.cpt-id { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.cpt-id > div { background: #fff; border: 1px solid var(--color-border); border-radius: 10px; padding: 0.55rem 0.7rem; min-width: 0; }
.cpt-id dt { font-size: 0.72rem; color: var(--color-text-muted); font-weight: 600; }
.cpt-id dd { margin: 0.1rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.cpt-confirm { background: #fff7d6; border: 1px solid #e3c764; border-radius: 10px; padding: 0.7rem 0.8rem; }
.cpt-danger p { margin: 0.6rem 0; }
@media (max-width: 480px) { .cpt-id { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; } .cpt-id > div { padding: 0.5rem 0.6rem; } }

/* comptes fermés : zones de saisie grisées */
.cpt input:disabled, .cpt select:disabled { background: #efe9da; color: #8a8171; cursor: not-allowed; }
.cpt .btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* abonnement */
.cpt-plan-on { background: #e7f5ea; }
.cpt-plans { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.cpt-planrow { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 0.8rem; align-items: center; padding: 0.75rem 0.9rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.cpt-planrow strong { display: block; }
.cpt-planrow small { color: var(--color-text-muted); font-size: 0.8rem; line-height: 1.35; display: block; }
.cpt-price { font-weight: 800; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.cpt-price small { display: inline; font-weight: 500; margin-left: 0.2rem; }
.cpt-planbtns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cpt-mini-main { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.cpt-paybox { margin-top: 0.8rem; padding: 1rem; border: 1.5px dashed var(--color-primary); border-radius: 12px; background: var(--color-primary-light); }
.cpt-total { font-size: 1.05rem; margin: 0.2rem 0 0.6rem; }
.cpt-pay-online { margin: 0.6rem 0; }
.cpt-pay-online .btn { width: 100%; justify-content: center; text-align: center; }
.cpt-pay-online small { display: block; text-align: center; margin-top: 0.35rem; color: var(--color-text-muted); font-size: 0.8rem; }
.cpt-or { text-align: center; color: var(--color-text-muted); font-size: 0.82rem; margin: 0.6rem 0; text-transform: uppercase; letter-spacing: 0.04em; }
.cpt-st-valide { background: #e7f5ea; color: #1b5e2f; }
.cpt-st-refuse { background: #fdecea; color: #8a1c13; }
.cpt-st-en_attente { background: #fff3cf; color: #7a5a00; }
.cpt-devices .cpt-tag { margin-left: 0; white-space: nowrap; }

.cpt-quizlinks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.8rem; }
.cpt-quizlinks .btn { width: 100%; justify-content: center; text-align: center; }

/* Retour vers un quiz / un défi après la connexion (pages/compte.php ?retour=) */
.cpt-return-note { max-width: 560px; margin: 0 0 1rem; padding: 0.75rem 1rem; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px; font-weight: 600; }
.cpt-return { margin: 0.6rem 0 1rem; }

/* -------------------- Parrainage -------------------- */
.cpt-refin { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1rem; padding: 0.75rem 0.9rem; background: #e7f6ec; border: 1px solid #b9e4c7; color: #14532d; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.cpt-ref { padding: 0.9rem 1rem; border: 1.5px solid var(--color-border-strong); border-radius: 12px; background: #fff; }
.cpt-ref-rules { margin: 0.2rem 0 0.8rem; padding-left: 1.1rem; font-size: 0.9rem; line-height: 1.55; }
.cpt-ref-prog p { margin: 0.4rem 0 0.9rem; font-size: 0.9rem; }
.cpt-ref-bar { height: 10px; border-radius: 99px; background: var(--color-primary-light); overflow: hidden; }
.cpt-ref-bar span { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: linear-gradient(90deg, #1f9d55, #34c06f); transition: width 0.6s ease; }
.cpt-ref-link { display: flex; gap: 0.5rem; }
.cpt-ref-link input { flex: 1; min-width: 0; font-size: 0.85rem; }
.cpt-ref-share { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.cpt-ref-share .cpt-mini { text-decoration: none; }
.cpt-ref-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; font-weight: 700; }
.cpt-st-expire { background: #eee; color: #555; }

/* -------------------- Barre latérale du compte (components/sidebar-compte.php) -------------------- */
.cpt.cpt-wide { max-width: 780px; }
body.has-cpt-sidebar .site-header .hamburger-btn { display: flex; }
.cpt-sb-me { display: flex; gap: 0.7rem; align-items: center; margin: 0.1rem 0.5rem 1rem; padding: 0.8rem; border-radius: 12px; background: var(--color-navy-elevated, rgba(255,255,255,0.07)); }
.cpt-sb-me[hidden] { display: none; }
.cpt-sb-avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--color-primary); color: #fff; font-weight: 800; font-size: 1.05rem; }
.cpt-sb-who { min-width: 0; display: grid; gap: 0.1rem; color: var(--color-on-navy, #fff); }
.cpt-sb-who strong { font-size: 0.93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpt-sb-who small { font-size: 0.75rem; opacity: 0.75; }
.cpt-sb-badge { justify-self: start; margin-top: 0.2rem; font-size: 0.68rem; font-weight: 700; padding: 0.12rem 0.5rem; border-radius: 99px; background: rgba(255,255,255,0.14); color: var(--color-on-navy, #fff); }
.cpt-sb-badge.on { background: #1f9d55; color: #fff; }
.cpt-sb-badge-inline { margin-left: auto; margin-top: 0; flex: none; white-space: nowrap; background: rgba(216,168,66,0.22); color: #ffd98a; }
.cpt-sb-list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.12rem; }
.cpt-sb-list[hidden], .cpt-sb-logout[hidden] { display: none; }
.cpt-sb-list a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 9px; border-left: 3px solid transparent; color: var(--color-on-navy, #e8ecf4); text-decoration: none; font-size: 0.92rem; min-height: 40px; }
.cpt-sb-list a:hover { background: var(--color-navy-elevated, rgba(255,255,255,0.08)); }
.cpt-sb-list a.active { background: var(--color-navy-active, rgba(255,255,255,0.12)); border-left-color: var(--color-primary); color: var(--color-primary); font-weight: 700; }   /* même repère que les autres barres latérales (sidebar.css) ; posé par le PHP (sous-pages comprises) ou par compte.js */
.cpt-sb-title { margin: 1.1rem 0.75rem 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--color-navy-border, rgba(255,255,255,0.15)); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-on-navy, #fff); opacity: 0.6; }

/* Accès rapide (Vue d'ensemble, Ma progression, Quiz, Banque d'exercices) : les deux listes se touchent, sans
   marge entre elles, pour lire comme un seul groupe ; le reste des rubriques du compte suit, nettement séparé. */
/* Groupes de rubriques par nature d'information : titre + trait de séparation + pastille de couleur. */
.cpt-sb-group { display: flex; align-items: center; gap: 0.45rem; margin: 1.05rem 0.75rem 0.4rem; padding-top: 0.9rem; border-top: 1px solid var(--color-navy-border, rgba(255,255,255,0.18)); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-on-navy, #fff); }
.cpt-sb-group::before { content: ''; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #9aa6bb; }
.cpt-sb-group[data-g="suivi"] { border-top: 0; padding-top: 0; margin-top: 0.3rem; }
.cpt-sb-group[data-g="suivi"]::before { background: #6fb3d2; }
.cpt-sb-group[data-g="train"]::before { background: #d8a842; }
.cpt-sb-group[data-g="culture"]::before { background: #4fbf9f; }
.cpt-sb-group[data-g="compte"]::before { background: #8d9dff; }
.cpt-sb-group[data-g="aide"]::before { background: #c9a0d8; }
#cptSbSections[hidden], #cptSbSections2[hidden] { display: none; }
.cpt-sb-list > li[hidden] { display: none; }
.cpt-sb-top { margin-bottom: 0; }
.cpt-sb-quick { margin-bottom: 0.8rem; }
.cpt-sb-rest { margin-top: 0.3rem; padding-top: 0.9rem; border-top: 1px solid var(--color-navy-border, rgba(255,255,255,0.15)); }
.cpt-sb-logout { margin: 0 0.5rem 0.4rem; padding: 0.6rem 0.8rem; width: calc(100% - 1rem); border: 1px solid rgba(255,120,110,0.5); background: transparent; color: #ff9d94; border-radius: 9px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.cpt-sb-logout:hover { background: rgba(255,120,110,0.12); }

/* Barre repliée sur ordinateur (bouton sandwich) */
@media (min-width: 768px) {
  body.has-cpt-sidebar.cpt-collapsed .sidebar-compte { display: none; }
  body.has-cpt-sidebar.cpt-collapsed .main-content { margin-left: 0; }
}

/* Rubriques */
.cpt-sec[hidden] { display: none; }
.cpt-sec-title { font-size: 1.25rem; margin: 0 0 1rem; }
.cpt-sec > .cpt-hi + * { margin-top: 0; }
.cpt-sec[data-sec=overview] .cpt-sec-title { display: none; }
.cpt-plan a { display: inline-block; margin-top: 0.35rem; font-weight: 700; color: var(--color-primary-dark); }
.cpt-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; margin: 1rem 0 0.2rem; }
.cpt-tile { display: grid; gap: 0.15rem; padding: 0.85rem 0.9rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.cpt-tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.cpt-tile > span { font-size: 1.35rem; }
.cpt-tile small { color: var(--color-text-muted); font-size: 0.78rem; line-height: 1.35; }
.cpt-tile-abo { border-color: #d9a520; background: #fff8e3; }
.cpt-tile-abo:hover { border-color: #b88700; }
.cpt-todo .cpt-devices { margin-top: 0; }
.cpt-prog-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 0.9rem; }
.cpt-prog-sum > div { padding: 0.7rem 0.9rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; }
.cpt-prog-sum strong { display: block; font-size: 1.5rem; }
.cpt-prog-sum small { color: var(--color-text-muted); font-size: 0.78rem; }
.cpt-prog-list { display: grid; gap: 0.5rem; }
.cpt-prog-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 40%); gap: 0.8rem; align-items: center; padding: 0.65rem 0.85rem; border: 1px solid var(--color-border); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.cpt-prog-row:hover { border-color: var(--color-primary); }
.cpt-prog-row strong { display: block; font-size: 0.92rem; }
.cpt-prog-row small { color: var(--color-text-muted); font-size: 0.76rem; }
.cpt-prog-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #eee; }
.cpt-prog-bar span { display: block; height: 100%; }
@media (max-width: 480px) {
  /* grilles de « Mon compte » : deux colonnes aussi sur téléphone */
  .cpt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .cpt-tile { padding: 0.7rem 0.7rem; }
  .cpt-tile strong { font-size: 0.92rem; line-height: 1.25; }
  .cpt-tile small { font-size: 0.72rem; }
  .cpt-prog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
  .cpt-prog-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 0.6rem 0.7rem; align-content: start; }
  .cpt-prog-row strong { font-size: 0.88rem; }
  .cpt-prog-row small { font-size: 0.7rem; }
}
body.page-compte.cpt-in .page-header .page-intro { display: none; }

.cpt-sb-login { display: block; margin: 0 0.5rem 0.4rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 0.9rem; text-align: center; text-decoration: none; }
.cpt-sb-login[hidden] { display: none; }
.cpt-sb-login:hover { filter: brightness(0.93); }

/* Pastille « non lues » dans la barre latérale du compte */
.notif-badge { margin-left: auto; min-width: 1.3rem; padding: 0 0.4rem; border-radius: 999px; background: #e04f3d; color: #fff; font-size: 0.72rem; font-weight: 700; line-height: 1.3rem; text-align: center; }
.notif-badge[hidden] { display: none; }

/* ---- retour de PayTech (bandeau « Mon abonnement ») ---- */
.cpt-payret { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 10px; font-size: 0.92rem; line-height: 1.45; }
.cpt-payret strong { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; }
.cpt-payret.is-ok { background: #e7f6ec; color: #14532d; }
.cpt-payret.is-wait { background: #fff7e0; color: #5c4200; }
.cpt-payret.is-ko { background: #fdecea; color: #7f1d14; }
.cpt-payret-cancel { align-self: flex-start; margin-top: 0.45rem; padding: 0.35rem 0.9rem; border: 1px solid currentColor; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.cpt-payret-cancel:hover { background: rgba(0, 0, 0, 0.06); }
.cpt-payret-spin { flex: none; width: 1rem; height: 1rem; border: 2.5px solid #e8d49b; border-top-color: #8a6414; border-radius: 50%; animation: cpt-payret-rot 0.9s linear infinite; }
@keyframes cpt-payret-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cpt-payret-spin { animation: none; } }

/* ===== Mes informations : refonte (02/11) — carte de profil, tuiles d'identité, deux gros boutons d'action ===== */
.cpt-profile { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0 0 0.9rem; padding: 1rem 1.1rem; border-radius: 16px; color: #fff; background: #14213d; background: linear-gradient(135deg, #14213d 0%, #1f3566 100%); box-shadow: 0 6px 18px rgba(20, 33, 61, .22); }
.cpt-pavatar { flex: none; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--color-primary, #b8872b); color: #fff; font-family: var(--font-display, serif); font-size: 1.5rem; font-weight: 800; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.cpt-profile-txt { display: grid; gap: 0.1rem; flex: 1; min-width: 0; }
.cpt-profile-txt strong { font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; }
.cpt-profile-txt span { font-size: 0.88rem; color: #cfd9ee; }
.cpt-verified { padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.cpt-id--v2 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.65rem; }
.cpt-id--v2 > div { position: relative; padding: 0.7rem 0.85rem; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.cpt-id--v2 dt { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.cpt-id--v2 dt i { font-style: normal; font-size: 1rem; letter-spacing: 0; }
.cpt-id--v2 dd { margin-top: 0.25rem; font-size: 1rem; }
.cpt-id--v2.is-locked > div::after { content: "🔒"; position: absolute; top: 0.5rem; right: 0.6rem; font-size: 0.7rem; opacity: 0.4; }
.cpt-info { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0.9rem 0 0; padding: 0.7rem 0.9rem; border-radius: 12px; background: #eef4ff; border: 1px solid #c9d8f5; color: #27406e; font-size: 0.88rem; line-height: 1.5; }
.cpt-acts-title { margin: 1.5rem 0 0.65rem; font-size: 1.05rem; }
.cpt-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 0.85rem; align-items: start; }
.cpt-acts > :not(details) { grid-column: 1 / -1; margin: 0; }
.cpt-action { border: 2px solid transparent; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 5px 16px rgba(0, 0, 0, .14); transition: box-shadow .2s ease, transform .2s ease; }
.cpt-action:not([open]):hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(0, 0, 0, .2); }
.cpt-action[open] { grid-column: 1 / -1; }
.cpt-action > summary { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.1rem; list-style: none; cursor: pointer; color: #fff; user-select: none; }
.cpt-action > summary::-webkit-details-marker { display: none; }
.cpt-action > summary:focus-visible { outline: 3px solid #ffc83d; outline-offset: -3px; }
.cpt-action-ico { flex: none; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: rgba(255, 255, 255, .22); font-size: 1.4rem; }
.cpt-action-txt { display: grid; gap: 0.12rem; flex: 1; min-width: 0; }
.cpt-action-txt strong { font-size: 1.05rem; line-height: 1.2; }
.cpt-action-txt small { font-size: 0.8rem; line-height: 1.3; opacity: 0.92; }
.cpt-action-chev { flex: none; font-size: 1.9rem; line-height: 1; transition: transform .2s ease; }
.cpt-action[open] .cpt-action-chev { transform: rotate(90deg); }
.cpt-action--request { border-color: #8f6212; }
.cpt-action--request > summary { background: linear-gradient(135deg, #b4801f 0%, #8f6212 100%); }
.cpt-action--pw { border-color: #1f3566; }
.cpt-action--pw > summary { background: linear-gradient(135deg, #14213d 0%, #1f3566 100%); }
.cpt-action-body { padding: 1rem 1.1rem 1.2rem; }
.cpt-action-body > p { margin: 0 0 0.8rem; font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.5; }
@media (max-width: 480px) {
  .cpt-profile { padding: 0.85rem 0.9rem; }
  .cpt-pavatar { width: 2.9rem; height: 2.9rem; font-size: 1.3rem; }
  .cpt-verified { width: 100%; text-align: center; }
  .cpt-id--v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpt-id--v2 > div:nth-child(n+6) { grid-column: 1 / -1; }   /* numéros de téléphone : pleine largeur, sans retour à la ligne */
  .cpt-action > summary { padding: 0.85rem 0.9rem; }
}

/* ===== Mon abonnement : refonte (02/11) — carte d'état, cartes de prix, concours, paiements ===== */
.cpt-subhero { margin: 0 0 1.1rem; padding: 1.1rem 1.2rem; border-radius: 18px; color: #fff; box-shadow: 0 8px 22px rgba(20, 33, 61, .22); }
.cpt-subhero.is-free { background: #14213d; background: linear-gradient(135deg, #14213d 0%, #1f3566 100%); }
.cpt-subhero.is-on { background: #0b3d2e; background: linear-gradient(135deg, #0b3d2e 0%, #0e6e4f 100%); }
.cpt-subhero.is-expired { background: #5a3412; background: linear-gradient(135deg, #5a3412 0%, #9a5a16 100%); }
.cpt-subhero-top { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.cpt-subhero-ico { flex: none; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 1.6rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); }
.cpt-subhero-txt { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.cpt-subhero-kicker { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffd98a; }
.cpt-subhero-txt strong { font-size: 1.3rem; line-height: 1.2; }
.cpt-subhero-txt > span:last-child { font-size: .9rem; color: rgba(255, 255, 255, .85); }
.cpt-subhero-days { flex: none; display: grid; place-items: center; align-content: center; min-width: 4.6rem; padding: .45rem .7rem; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.1; }
.cpt-subhero-days b { display: block; font-size: 1.6rem; font-weight: 800; }
.cpt-subhero-note { margin: .85rem 0 .35rem; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.cpt-perks { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .4rem; }
.cpt-subhero-note + .cpt-perks { margin-top: 0; }
.cpt-perks li { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: .92rem; font-weight: 600; }
.cpt-perks li span { font-size: 1.1rem; }
.cpt-perks.is-locked li { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .82); }
.cpt-subhero .cpt-pbtn { margin-top: .9rem; }
.cpt-concours { margin: 0 0 1.1rem; padding: .85rem 1rem; border-radius: 14px; background: #fff8e3; border: 1px solid #ecd9a0; }
.cpt-concours strong { display: block; margin-bottom: .45rem; color: #6a5014; }
.cpt-concours ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.cpt-concours li { display: flex; flex-direction: column; padding: .4rem .75rem; border-radius: 10px; background: #fff; border: 1px solid #ecd9a0; font-weight: 700; font-size: .9rem; }
.cpt-concours li small { font-weight: 500; color: #7a6a3a; font-size: .76rem; }
.cpt-subtitle { margin: 1.2rem 0 .7rem; font-size: 1.1rem; }
.cpt-pcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; }
.cpt-pcard { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.15rem 1.15rem 1.1rem; border-radius: 18px; background: #fff; border: 2px solid var(--color-primary, #b8872b); box-shadow: 0 8px 22px rgba(184, 135, 43, .18); overflow: hidden; }
.cpt-pcard::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: linear-gradient(90deg, #b8872b, #e8b11f); }
.cpt-pcard-name { margin-top: .2rem; font-size: 1.05rem; font-weight: 800; }
.cpt-pcard-desc { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--color-text-muted); }
.cpt-pcard-price { display: flex; align-items: baseline; gap: .35rem; margin: .3rem 0 .2rem; }
.cpt-pcard-price strong { font-size: 2rem; line-height: 1; font-family: var(--font-display, serif); }
.cpt-pcard-price span { color: var(--color-text-muted); font-weight: 600; }
.cpt-pcard-btns { display: grid; gap: .55rem; margin-top: auto; padding-top: .4rem; }
.cpt-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem 1.1rem; border: 2px solid transparent; border-radius: 12px; font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s, filter .15s; }
.cpt-pbtn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cpt-pbtn:disabled { opacity: .6; cursor: wait; transform: none; }
.cpt-pbtn--main { background: linear-gradient(135deg, #b4801f, #8f6212); color: #fff; box-shadow: 0 5px 14px rgba(143, 98, 18, .35); }
.cpt-pbtn--gold { background: #ffc83d; color: #2b1f00; box-shadow: 0 5px 14px rgba(0, 0, 0, .25); }
.cpt-pbtn--ghost { background: #fff; color: #14213d; border-color: #14213d; }
.cpt-paynote { margin: .8rem 0 0; font-size: .84rem; color: var(--color-text-muted); }
.cpt-action--soft { border-color: var(--color-border, #e0d6c0); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); margin-top: 1.1rem; }
.cpt-action--soft > summary { background: #fff; color: var(--color-text, #1c2430); }
.cpt-action--soft .cpt-action-ico { background: #f1ead9; }
.cpt-action--soft .cpt-action-chev { color: #8f6212; }
@media (max-width: 480px) {
  .cpt-subhero { padding: .95rem 1rem; }
  .cpt-subhero-days { width: 100%; flex-direction: row; gap: .5rem; padding: .45rem .7rem; }
  .cpt-subhero-days b { display: inline; font-size: 1.3rem; }
  .cpt-pcards { grid-template-columns: 1fr; }
}

/* Offre promotionnelle (prix barré, étiquette, minimum de mois) */
.cpt-promo-tag { display: inline-block; align-self: flex-start; margin: 0 0 .35rem; padding: .22rem .6rem; border-radius: 999px; background: #fdecc8; color: #7a4b00; font-size: .76rem; font-weight: 800; }
.cpt-price-old { margin-right: .4rem; color: #8a93a0; font-size: .95rem; font-weight: 600; text-decoration: line-through; }
.cpt-pcard-min { margin: .15rem 0 .5rem; font-size: .82rem; color: #4a5668; }
