/* rm-compte-lumiere.css — MON COMPTE, EN LUMIÈRE (2026-11-25)
   ════════════════════════════════════════════════════════════════════════════════════
   Demande du propriétaire : « même la page compte n'est pas assez stylée, rends l'entièreté du
   site stylée ». Même langage que l'accueil (rm-lumieres.css) : verre clair, lumière rouge qui
   suit le pointeur (--mx / --my, posés par rm-lumieres.js), bordure de lumière au survol, tuiles
   d'icônes en dégradé, boutons rouges à reflet. Charte gardée : rouges, noir, blanc, gris neutres.
   Chargé APRÈS les styles de la page et rm-lumieres.css. Rien ne change dans la logique.
   « Réduire les animations » : tout mouvement s'arrête. */

/* ── Le fond de la page : deux lueurs rouges très douces, fixes ── */
.cpt-wrap { position:relative; isolation:isolate; }
.cpt-wrap::before { content:""; position:absolute; inset:-40px -10vw 0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(38% 26% at 0% 4%, rgba(239,68,68,.075), transparent 70%),
    radial-gradient(34% 22% at 100% 30%, rgba(185,28,28,.06), transparent 70%),
    radial-gradient(40% 24% at 10% 70%, rgba(239,68,68,.045), transparent 70%); }

/* ── Le bandeau du haut : plus de relief ── */
.cpt-hero { border-bottom:0 !important; position:relative; }
.cpt-hero::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; pointer-events:none;
  background:linear-gradient(90deg, transparent, #b91c1c 18%, #fca5a5 50%, #b91c1c 82%, transparent); background-size:200% 100%;
  animation:cptl-filet 7s linear infinite; }
.cpt-hero h1 { letter-spacing:-.035em !important;
  background:linear-gradient(180deg,#fff 40%,#fecaca 130%); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
@keyframes cptl-filet { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* ── La carte de profil : un verre clair, l'avatar dans un anneau de lumière ── */
.cpt-user { position:relative; padding:18px 20px; border-radius:22px; border:1px solid rgba(20,20,20,.07);
  background:radial-gradient(90% 140% at 0% 0%, rgba(239,68,68,.07), transparent 60%), linear-gradient(180deg,#fff,#fbfbfc);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 22px 50px -34px rgba(20,20,20,.45); }
.cpt-avatar { position:relative; background:linear-gradient(140deg,#ef4444,#b91c1c 60%,#7f1d1d) !important;
  box-shadow:0 12px 26px -10px rgba(185,28,28,.75), inset 0 1px 0 rgba(255,255,255,.3); }
.cpt-avatar::before { content:""; position:absolute; inset:-4px; border-radius:50%; padding:2px; pointer-events:none;
  background:conic-gradient(from var(--wow-angle,0deg), #7f1d1d, #ef4444, #fecaca, #ef4444, #7f1d1d);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation:wow-tour 6s linear infinite; }
.cpt-name { letter-spacing:-.02em; }
.cpt-signout { border-radius:11px !important; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease; }
.cpt-signout:hover { transform:translateY(-2px); box-shadow:0 14px 30px -18px rgba(185,28,28,.5); }

/* ── Les titres de section : un trait de lumière rouge, un filet qui s'efface ── */
.cpt-section-head { position:relative; padding-bottom:12px; }
.cpt-section-head::after { content:""; position:absolute; left:0; right:0; bottom:0; height:1px; pointer-events:none;
  background:linear-gradient(90deg, rgba(185,28,28,.35), rgba(20,20,20,.08) 30%, transparent); }
.cpt-section h2 { display:inline-flex; align-items:center; gap:10px; font-size:19px !important; letter-spacing:-.025em !important; }
.cpt-section h2::before { content:""; width:4px; height:18px; border-radius:4px; flex-shrink:0;
  background:linear-gradient(180deg,#ef4444,#991b1b); box-shadow:0 0 14px rgba(239,68,68,.55); }
.cpt-section-count { font-weight:700; color:#6b6b73 !important; background:rgba(20,20,20,.045); border-radius:99px; padding:3px 10px; }
.cpt-section-count:empty { display:none; }

/* ── Toutes les cartes : verre clair, ombre en couches, lumière sous le pointeur ── */
.cpt-card, .cpt-item, .cpt-plan, .cpt-msg, .cpt-lettre-site, .cpt-code, .cpt-boutique-card, .cpt-doc, .cpt-alerte, .cof-carte, .cpt-abo {
  position:relative; border-radius:18px !important; border:1px solid rgba(20,20,20,.075) !important;
  --mx:-999px; --my:-999px;
  background:radial-gradient(420px circle at var(--mx) var(--my), rgba(220,38,38,.07), transparent 42%), #ffffff !important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 1px 2px rgba(20,20,20,.04), 0 18px 40px -30px rgba(20,20,20,.35) !important;
  transition:transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease !important; }
.cpt-abo:hover, .cpt-item:hover, .cpt-plan:hover, .cpt-msg:hover, .cpt-lettre-site:hover, .cpt-code:hover, .cpt-boutique-card:hover, .cpt-doc:hover, .cpt-card[data-cpt-chantier]:hover, .cof-carte:hover {
  transform:translateY(-3px); border-color:rgba(185,28,28,.22) !important;
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset, 0 28px 50px -30px rgba(20,20,20,.4), 0 16px 36px -24px rgba(185,28,28,.4) !important; }
/* la bordure de lumière qui fait le tour, au survol (comme les cartes de l'accueil) */
.cpt-abo::after, .cpt-item::after, .cpt-plan::after, .cpt-msg::after, .cpt-lettre-site::after, .cpt-code::after, .cpt-boutique-card::after, .cpt-card[data-cpt-chantier]::after, .cof-carte::after {
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1.5px; pointer-events:none; opacity:0;
  background:conic-gradient(from var(--wow-angle,0deg), transparent 0deg, transparent 220deg, #fca5a5 280deg, #ef4444 320deg, transparent 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition:opacity .35s ease; animation:wow-tour 3.2s linear infinite; }
.cpt-abo:hover::after, .cpt-item:hover::after, .cpt-plan:hover::after, .cpt-msg:hover::after, .cpt-lettre-site:hover::after, .cpt-code:hover::after,
.cpt-boutique-card:hover::after, .cpt-card[data-cpt-chantier]:hover::after, .cof-carte:hover::after { opacity:1; }
/* un message non traité garde son filet rouge, en lumière */
.cpt-msg.attente { border-left:0 !important; }
.cpt-msg.attente::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:3px;
  background:linear-gradient(180deg,#ef4444,#991b1b); box-shadow:0 0 12px rgba(239,68,68,.6); }

/* la carte d'un site pas encore en ligne : une lueur dans le coin, l'étiquette qui scintille */
.cpt-card[data-cpt-chantier] { padding:22px 24px !important;
  background:radial-gradient(420px circle at var(--mx) var(--my), rgba(220,38,38,.07), transparent 42%),
             radial-gradient(60% 120% at 100% 0%, rgba(239,68,68,.09), transparent 60%), #ffffff !important; }
.cpt-card[data-cpt-chantier] > div:first-child > div:first-child {
  background:linear-gradient(90deg,#b91c1c 0%,#b91c1c 40%,#f87171 50%,#b91c1c 60%,#b91c1c 100%); background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent !important; -webkit-text-fill-color:transparent; animation:wow-scintille 5s linear infinite; }

/* ── La case vide : plus de pointillés, un verre doux avec une lueur ── */
.cpt-empty { border:1px solid rgba(20,20,20,.07) !important; border-radius:18px !important; padding:28px 22px !important;
  background:radial-gradient(70% 120% at 50% 0%, rgba(239,68,68,.06), transparent 70%), linear-gradient(180deg,#fcfcfd,#f6f6f8) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9); }

/* ── La zone sensible : un verre rosé, une lueur rouge ── */
.cpt-danger { border-radius:18px !important; border:1px solid rgba(185,28,28,.18) !important;
  background:radial-gradient(80% 120% at 100% 0%, rgba(239,68,68,.1), transparent 60%), linear-gradient(180deg,#fff9f9,#fff4f4) !important;
  box-shadow:0 18px 40px -32px rgba(185,28,28,.5); }

/* ── Les tuiles d'icônes : un dégradé rouge et une lueur, comme l'accueil ── */
.cpt-plan-ic, .cpt-boutique-ic, .cpt-code-ic {
  background:linear-gradient(140deg,#ef4444,#b91c1c 60%,#7f1d1d) !important; color:#fff !important; border-radius:13px !important;
  box-shadow:0 12px 24px -10px rgba(185,28,28,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.cpt-boutique-go { transition:transform .25s ease; }
.cpt-boutique-card:hover .cpt-boutique-go { transform:translateX(4px); }

/* ── Les pastilles d'état ── */
.cpt-plan-status, .cpt-badge.published { background:linear-gradient(135deg,rgba(239,68,68,.12),rgba(185,28,28,.08)) !important; border:1px solid rgba(185,28,28,.2) !important; }
.cpt-site-live { -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); background:rgba(10,10,10,.62) !important; border:1px solid rgba(255,255,255,.12); border-radius:99px !important; }
.cpt-site-live .dot { box-shadow:0 0 0 0 rgba(239,68,68,.7); animation:cptl-pouls 2s ease-out infinite; }
@keyframes cptl-pouls { 0% { box-shadow:0 0 0 0 rgba(239,68,68,.7); } 70% { box-shadow:0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow:0 0 0 0 rgba(239,68,68,0); } }
.cpt-pastille { background:linear-gradient(140deg,#ef4444,#b91c1c) !important; box-shadow:0 6px 14px -6px rgba(185,28,28,.8); }

/* ── Les boutons : les rouges en dégradé à reflet, les autres se soulèvent ── */
.cpt-btn.red, .cpt-mini.red, .cpt-open {
  position:relative; overflow:hidden; isolation:isolate; border-color:transparent !important;
  background:linear-gradient(135deg,#ef4444 0%,#dc2626 30%,#b91c1c 65%,#991b1b 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26), 0 0 0 1px rgba(127,29,29,.3), 0 10px 24px -12px rgba(185,28,28,.65);
  transition:transform .25s ease, box-shadow .25s ease; }
.cpt-btn.red::after, .cpt-mini.red::after, .cpt-open::after { content:""; position:absolute; top:0; left:-70%; width:45%; height:100%; z-index:-1; pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.36),transparent); transform:skewX(-20deg); transition:left .8s ease; }
.cpt-btn.red:hover, .cpt-mini.red:hover, .cpt-open:hover { transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(127,29,29,.4), 0 16px 34px -12px rgba(185,28,28,.85); }
.cpt-btn.red:hover::after, .cpt-mini.red:hover::after, .cpt-open:hover::after { left:140%; }
.cpt-btn, .cpt-mini, .cpt-code-btn { border-radius:11px !important; }
.cpt-btn:not(.red), .cpt-mini:not(.red), .cpt-code-btn { transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease, color .25s ease, background-color .25s ease; }
.cpt-btn:not(.red):not(:disabled):hover, .cpt-mini:not(.red):not(:disabled):hover, .cpt-code-btn:hover { transform:translateY(-2px); box-shadow:0 12px 26px -16px rgba(185,28,28,.5); }

/* ── Les champs : un anneau de lumière au focus ── */
.cpt-field input, .cof-champ input, .cof-champ textarea, .cof-champ select { border-radius:12px !important; transition:border-color .2s ease, box-shadow .2s ease; }
.cpt-field input:focus, .cof-champ input:focus, .cof-champ textarea:focus, .cof-champ select:focus {
  border-color:#b91c1c !important; box-shadow:0 0 0 4px rgba(185,28,28,.12), 0 10px 26px -16px rgba(185,28,28,.55) !important; outline:none; }

/* ── Les fenêtres propres au compte ── */
.cpt-modal-ov { background:radial-gradient(60% 50% at 50% 40%, rgba(127,29,29,.28), transparent 70%), rgba(8,8,10,.62) !important;
  -webkit-backdrop-filter:blur(7px); backdrop-filter:blur(7px); }
.cpt-modal { position:relative; border-radius:20px !important; border:1px solid rgba(20,20,20,.07);
  background:radial-gradient(90% 55% at 100% 0%, rgba(239,68,68,.10), transparent 60%), #fff !important;
  box-shadow:0 50px 100px -40px rgba(0,0,0,.65), 0 30px 80px -45px rgba(185,28,28,.7) !important; animation:cptl-entre .38s cubic-bezier(.2,.7,.2,1) both; }
.cpt-onboard-c { border-radius:14px !important; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease !important; }
.cpt-onboard-c:hover { transform:translateY(-2px); box-shadow:0 16px 34px -20px rgba(185,28,28,.5) !important; }
@keyframes cptl-entre { from { opacity:0; transform:translateY(14px) scale(.97); } to { opacity:1; transform:none; } }

/* ── Les sections apparaissent en fondu, l'une après l'autre ── */
html.wow-anim .cpt-section:not([hidden]) { animation:cptl-monte .6s cubic-bezier(.2,.7,.2,1) both; }
html.wow-anim .cpt-section:nth-of-type(2) { animation-delay:.06s; }
html.wow-anim .cpt-section:nth-of-type(3) { animation-delay:.12s; }
html.wow-anim .cpt-section:nth-of-type(n+4) { animation-delay:.18s; }
@keyframes cptl-monte { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce) {
  .cpt-hero::after, .cpt-avatar::before, .cpt-site-live .dot, .cpt-card[data-cpt-chantier] > div:first-child > div:first-child,
  .cpt-item::after, .cpt-plan::after, .cpt-msg::after, .cpt-lettre-site::after, .cpt-code::after, .cpt-boutique-card::after,
  .cpt-card[data-cpt-chantier]::after, .cof-carte::after, .cpt-modal, .cpt-section { animation:none !important; }
  .cpt-wrap * { transition:none !important; transform:none !important; }
}

/* une alerte (liste qui ne répond pas) garde son filet rouge à gauche */
.cpt-alerte { border-left:3px solid #b91c1c !important; background:radial-gradient(420px circle at var(--mx) var(--my), rgba(220,38,38,.07), transparent 42%), #fff8f8 !important; }

/* l'abonnement payé dont le site n'est pas encore en ligne : un filet rouge lumineux à gauche, une lueur */
.cpt-abo { padding:18px 20px 18px 22px !important; }
.cpt-abo-alerte { background:radial-gradient(420px circle at var(--mx) var(--my), rgba(220,38,38,.07), transparent 42%),
  radial-gradient(60% 120% at 100% 0%, rgba(239,68,68,.08), transparent 60%), #fff !important; }
.cpt-abo-alerte::before { content:""; position:absolute; left:0; top:16px; bottom:16px; width:3px; border-radius:3px;
  background:linear-gradient(180deg,#ef4444,#991b1b); box-shadow:0 0 12px rgba(239,68,68,.6); }

/* au téléphone : la carte de profil passe sur deux lignes, l'e-mail se coupe au lieu de passer sous le bouton */
.cpt-user > div { min-width:0; }
.cpt-email { overflow-wrap:anywhere; }
@media (max-width:560px) {
  .cpt-user { flex-wrap:wrap; padding:16px; gap:12px; }
  .cpt-signout { margin-left:0 !important; width:100%; }
}
