/*!
 * © 2026 Clément BOILON — C'TOPO (www.ctopo.fr). Tous droits réservés.
 * Créé par Clément BOILON pour C'TOPO. Toute reproduction, copie, modification, adaptation
 * ou diffusion, totale ou partielle, sans autorisation écrite préalable est interdite.
 */
/* Espace client C'TOPO — page d'accès (styles isolés sous .ctopo-ec pour ne pas toucher au thème) */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunitosans.woff") format("woff"); font-weight: 200 1000; font-display: swap; }
.ctopo-ec {
  --ce-rouge: #FF0000; --ce-rouge-fonce: #D60000; --ce-rouge-clair: #F47474;
  --ce-gris: #333333; --ce-gris2: #737373; --ce-sable: #CEC2B5; --ce-sable-clair: #F3EFEA;
  --ce-nuit: #232323; --ce-nuit2: #2e2c2a; --ce-ligne: #E4DCD2;
  --ce-titre: "Montserrat", "Segoe UI", system-ui, sans-serif; --ce-texte: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  /* sort de la colonne étroite des thèmes, sans dépasser l'écran */
  width: min(1060px, 100%); max-width: none !important; margin-left: auto !important; margin-right: auto !important; padding: 8px 0 24px; font-family: var(--ce-texte); color: var(--ce-gris); line-height: 1.55;
}
.ctopo-ec *, .ctopo-ec *::before, .ctopo-ec *::after { box-sizing: border-box; }
.ctopo-ec svg { width: 18px; height: 18px; flex: none; }
.ctopo-ec-cadre { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--ce-ligne);
  box-shadow: 0 30px 60px -36px rgba(35,35,35,.55), 0 2px 8px rgba(35,35,35,.06); }

/* ---- vitrine : logo en nuage de points */
.ctopo-ec-vitrine { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.4rem, 3.4vw, 2.6rem); color: #ece6df; overflow: hidden;
  background: radial-gradient(120% 80% at 20% 10%, #3a3633 0%, var(--ce-nuit2) 45%, var(--ce-nuit) 100%); }
.ctopo-ec-vitrine::after { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,0,0,.10), transparent 70%); }
.ctopo-ec-nuage { display: block; width: 100%; aspect-ratio: 2.1 / 1; max-height: 240px; margin: -.4rem 0 .2rem; touch-action: pan-y; }
.ctopo-ec .ctopo-ec-accroche { font: 800 clamp(1.5rem, 3vw, 2.15rem)/1.15 var(--ce-titre); letter-spacing: -.01em; margin: 0; color: #fff; text-wrap: balance; }
.ctopo-ec-accroche span { color: var(--ce-rouge); }
.ctopo-ec-vitrine > p { margin: 0; color: #cfc6bc; font-size: .98rem; max-width: 46ch; }
.ctopo-ec-atouts { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .5rem; position: relative; z-index: 1; }
.ctopo-ec-atouts li { display: flex; align-items: center; gap: .7rem; padding: .62rem .85rem; border-radius: 11px; font-weight: 700; font-size: .93rem;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); color: #f1ece6; }
.ctopo-ec-atouts svg { color: var(--ce-rouge-clair); }

/* ---- accès : formulaire du code */
.ctopo-ec-acces { display: flex; flex-direction: column; padding: clamp(1.4rem, 3.4vw, 2.6rem); background: #fff; }
.ctopo-ec-cadenas { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--ce-sable-clair); color: var(--ce-gris); margin-bottom: 1.1rem; }
.ctopo-ec-cadenas svg { width: 22px; height: 22px; }
.ctopo-ec .ctopo-ec-titre { font: 800 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--ce-titre); margin: 0 0 .25rem; color: var(--ce-gris); }
.ctopo-ec-sous { margin: 0 0 1.3rem !important; color: var(--ce-gris2); font-size: .92rem; }
.ctopo-ec p { margin: 0 0 1rem; }
.ctopo-ec-form label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 .4rem; color: var(--ce-gris); }
.ctopo-ec-form input { display: block; width: 100%; padding: .9rem 1rem; font: 800 1.08rem var(--ce-titre); letter-spacing: .07em; text-transform: uppercase;
  border: 1.5px solid var(--ce-sable); border-radius: 12px; background: #fff; color: var(--ce-gris); }
.ctopo-ec-form input::placeholder { color: #cdc4ba; letter-spacing: .08em; }
.ctopo-ec-form input:focus { outline: none; border-color: var(--ce-gris); box-shadow: 0 0 0 4px rgba(244,116,116,.28); }
.ctopo-ec-form input[aria-invalid="true"] { border-color: var(--ce-rouge); }
.ctopo-ec-form button { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; margin-top: 1rem; padding: .95rem 1.2rem;
  border: 1px solid #c80000; border-bottom-color: #a30000; border-radius: 12px; cursor: pointer;
  background: linear-gradient(#ff3030, #e00000); color: #fff; font: 800 1.02rem var(--ce-texte); text-shadow: 0 -1px 0 rgba(120,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(150,0,0,.35), 0 10px 22px -10px rgba(255,0,0,.6); transition: transform .06s, box-shadow .15s; }
.ctopo-ec-form button:hover { background: linear-gradient(#ff4141, #d40000); }
.ctopo-ec-form button:active { transform: translateY(1px); }
.ctopo-ec-form button:focus-visible { outline: 3px solid var(--ce-rouge-clair); outline-offset: 2px; }
.ctopo-ec-erreur { color: var(--ce-rouge-fonce); font-weight: 700; margin: .6rem 0 0 !important; font-size: .92rem; }
.ctopo-ec-info { padding: .7rem .9rem; border-radius: 10px; background: var(--ce-sable-clair); font-size: .92rem; }
.ctopo-ec-aide { margin: 1rem 0 .5rem !important; color: var(--ce-gris2); font-size: .88rem; }
.ctopo-ec-perso { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 700; color: var(--ce-gris); margin: 0 0 1rem !important; }
.ctopo-ec-perso svg { color: var(--ce-rouge); width: 16px; height: 16px; }
.ctopo-ec-contact { font-size: .88rem; color: var(--ce-gris2); padding-top: 1rem; border-top: 1px solid var(--ce-ligne); margin-top: auto !important; }
.ctopo-ec-contact a, .ctopo-ec-pied a { color: var(--ce-gris); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ctopo-ec-mention { font-size: .78rem; color: var(--ce-gris2); margin: 0 !important; line-height: 1.45; }
.ctopo-ec-pied { text-align: center; font-size: .84rem; color: var(--ce-gris2); margin: 1.1rem 0 0 !important; }
.ctopo-ec-pied strong { color: var(--ce-gris); }

@media (max-width: 820px) {
  .ctopo-ec-cadre { grid-template-columns: 1fr; border-radius: 18px; }
  .ctopo-ec-atouts { grid-template-columns: 1fr 1fr; }
  .ctopo-ec-atouts li { font-size: .84rem; padding: .55rem .7rem; }
}
@media (max-width: 480px) { .ctopo-ec-atouts { grid-template-columns: 1fr; } }
.ctopo-ec-droits { text-align: center; font-size: .74rem; color: var(--ce-gris2); margin: .3rem 0 0 !important; opacity: .85; }

/* =====================================================================
 * 1.6 — comptes clients, tableau « Mes dossiers », animations.
 * Dessiné dans la charte du site ctopo.fr (Manrope, IBM Plex Mono, angles droits).
 * ===================================================================== */
.ctopo-ec { --ce-mono2: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace; --ce-texte2: "Manrope", "Nunito Sans", system-ui, sans-serif; }
/* onglets du formulaire d'accès */
.ctopo-ec-onglets { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 22px; border: 1px solid #333; border-radius: 2px; }
.ctopo-ec-onglets button { appearance: none; margin: 0; padding: 12px 10px; border: 0; border-radius: 0; background: transparent; color: #333; cursor: pointer;
  font: 500 12px/1.2 var(--ce-mono2); letter-spacing: .08em; text-transform: uppercase; box-shadow: none; text-shadow: none; transition: background-color .2s, color .2s; }
.ctopo-ec-onglets button + button { border-left: 1px solid #333; }
.ctopo-ec-onglets button[aria-selected="true"] { background: #333; color: #FAF8F5; }
.ctopo-ec-onglets button:hover:not([aria-selected="true"]) { background: #EFEAE4; }
.ctopo-ec-onglets button:focus-visible { outline: 2px solid #FF0000; outline-offset: 2px; }
.ctopo-ec-panneau[hidden] { display: none !important; }
.ctopo-ec-panneau { animation: ctopo-ec-fondu .35s ease both; }
/* champs e-mail / mot de passe : pas de majuscules ni d'espacement de code */
html body .ctopo-ec .ctopo-ec-form input.ctopo-ec-champ, .ctopo-ec .ctopo-ec-champ { text-transform: none; letter-spacing: 0; font: 500 17px/1.3 var(--ce-texte2); }
.ctopo-ec .ctopo-ec-form input[hidden] { display: none !important; }
html body .ctopo-ec .ctopo-ec-form-compte input + label { margin-top: 18px; }
.ctopo-ec-qui { font-size: 15px; color: #333; margin: 0 0 16px !important; }
.ctopo-ec-lien-mode { font-size: 14px; color: #737373; margin: 14px 0 0 !important; }
.ctopo-ec-lien-mode a { color: #333; font-weight: 600; text-decoration: underline; text-decoration-color: #FF0000; text-underline-offset: 4px; }
.ctopo-ec-info { border-left: 3px solid #333; }

/* balayage laser sur la vitrine */
.ctopo-ec-vitrine { position: relative; }
.ctopo-ec-balayage { position: absolute; top: 0; bottom: 0; left: -8%; width: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(transparent, #FF0000 30%, #FF0000 70%, transparent); box-shadow: 0 0 22px 6px rgba(255,0,0,.28);
  animation: ctopo-ec-balayage 7s cubic-bezier(.45,0,.55,1) 1.2s infinite; opacity: .8; }
/* apparition progressive */
.ctopo-ec-cadre > section { animation: ctopo-ec-monte .7s cubic-bezier(.2,.7,.2,1) both; }
.ctopo-ec-cadre > section + section { animation-delay: .12s; }
.ctopo-ec-atouts li { animation: ctopo-ec-monte .55s cubic-bezier(.2,.7,.2,1) both; }
.ctopo-ec-atouts li:nth-child(1) { animation-delay: .35s; } .ctopo-ec-atouts li:nth-child(2) { animation-delay: .45s; } .ctopo-ec-atouts li:nth-child(3) { animation-delay: .55s; }
.ctopo-ec-atouts li:nth-child(4) { animation-delay: .65s; } .ctopo-ec-atouts li:nth-child(5) { animation-delay: .75s; }
.ctopo-ec-atouts li svg { transition: transform .3s; }
.ctopo-ec-atouts li:hover svg { transform: translateX(3px) scale(1.08); }

/* ---------- tableau « Mes dossiers » (client connecté) */
.ctopo-ec-espace { border: 1px solid #333; border-radius: 4px; background: #FAF8F5; padding: clamp(24px, 4vw, 48px); font-family: var(--ce-texte2); color: #333;
  animation: ctopo-ec-monte .6s cubic-bezier(.2,.7,.2,1) both; }
.ctopo-ec-espace-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #CEC2B5; }
.ctopo-ec-sur { font: 400 12px/1.4 var(--ce-mono2); letter-spacing: .12em; text-transform: uppercase; color: #FF0000; margin: 0 0 6px !important; }
.ctopo-ec .ctopo-ec-bonjour { font: 400 clamp(24px, 3vw, 36px)/1.1 "Lemon Milk", "Montserrat", var(--ce-texte2); letter-spacing: .03em; text-transform: uppercase; margin: 0 0 8px; color: #333; }
.ctopo-ec-bonjour span { color: #FF0000; }
.ctopo-ec-resume { font: 400 12px/1.4 var(--ce-mono2); letter-spacing: .06em; text-transform: uppercase; color: #737373; margin: 0 !important; }
.ctopo-ec-sortir { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid #333; border-radius: 2px; color: #333; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s; }
.ctopo-ec-sortir:hover { background: #333; color: #FAF8F5; }
.ctopo-ec-dossiers { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.ctopo-ec-carte { display: flex; flex-direction: column; border: 1px solid #333; border-radius: 4px; background: #fff; overflow: hidden;
  animation: ctopo-ec-monte .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.15s + var(--i, 0) * .09s); transition: transform .25s, box-shadow .25s; }
.ctopo-ec-carte:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(28,26,24,.55); }
.ctopo-ec-carte-visuel { position: relative; display: block; height: 128px; background: #1C1A18; overflow: hidden; }
.ctopo-ec-carte-visuel span { position: absolute; inset: -40px; opacity: .55;
  background-image: radial-gradient(rgba(206,194,181,.75) 1px, transparent 1.5px), radial-gradient(rgba(244,116,116,.6) 1px, transparent 1.6px);
  background-size: 13px 13px, 29px 23px; background-position: 0 0, 7px 11px; transform: perspective(300px) rotateX(48deg); transform-origin: 50% 100%;
  animation: ctopo-ec-defile 30s linear infinite; }
.ctopo-ec-carte-visuel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: -6%; background: linear-gradient(transparent, #FF0000, transparent); box-shadow: 0 0 14px 3px rgba(255,0,0,.4); animation: ctopo-ec-balayage 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .7s); }
.ctopo-ec-carte-visuel:not(.a-nuage) span { transform: none; opacity: .3; background-size: 24px 24px, 48px 48px;
  background-image: linear-gradient(rgba(206,194,181,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(206,194,181,.35) 1px, transparent 1px); }
.ctopo-ec-neuf { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 8px; border-radius: 2px; background: #FF0000; color: #fff; font: 500 11px/1.2 var(--ce-mono2); letter-spacing: .1em; text-transform: uppercase; font-style: normal; animation: ctopo-ec-pulse 2.4s ease-in-out infinite; }
.ctopo-ec-carte-corps { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ctopo-ec .ctopo-ec-carte h3 { font: 600 20px/1.3 var(--ce-texte2); margin: 0; }
.ctopo-ec-carte h3 a { color: #333; text-decoration: none; }
.ctopo-ec-carte h3 a:hover { text-decoration: underline; text-decoration-color: #FF0000; text-underline-offset: 4px; }
.ctopo-ec-carte-desc { font-size: 15px; color: #737373; margin: 0 !important; }
.ctopo-ec-puces { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ctopo-ec-puces li { display: flex; align-items: center; gap: 8px; font: 400 12px/1.4 var(--ce-mono2); letter-spacing: .04em; color: #555; }
.ctopo-ec-puces svg { width: 16px; height: 16px; color: #F47474; }
.ctopo-ec-puces .ctopo-ec-bientot { color: #FF0000; }
.ctopo-ec-carte-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.ctopo-ec-bouton, .ctopo-ec-bouton-2 { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 2px; font-weight: 700; font-size: 15px; text-decoration: none; transition: background-color .2s, color .2s, gap .2s; }
.ctopo-ec-bouton { background: #FF0000; color: #fff; }
.ctopo-ec-bouton:hover { background: #333; color: #fff; gap: 12px; }
.ctopo-ec-bouton-2 { border: 1.5px solid #333; color: #333; }
.ctopo-ec-bouton-2:hover { background: #333; color: #FAF8F5; }
.ctopo-ec-bouton svg { width: 16px; height: 16px; }
.ctopo-ec-partage { border-top: 1px solid #CEC2B5; padding-top: 12px; }
.ctopo-ec-partage summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font: 500 12px/1.4 var(--ce-mono2); letter-spacing: .08em; text-transform: uppercase; color: #333; }
.ctopo-ec-partage summary::-webkit-details-marker { display: none; }
.ctopo-ec-partage summary svg { width: 18px; height: 18px; color: #FF0000; }
.ctopo-ec-partage summary span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 2px; background: #333; color: #FAF8F5; font-size: 11px; letter-spacing: 0; }
.ctopo-ec-partage summary::after { content: "+"; margin-left: auto; font-size: 18px; line-height: 1; transition: transform .2s; }
.ctopo-ec-partage[open] summary::after { transform: rotate(45deg); }
.ctopo-ec-partage .ctopo-ec-aide { font-size: 14px; margin: 10px 0 !important; }
.ctopo-ec-inviter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.ctopo-ec-inviter label span { display: block; font: 400 11px/1.4 var(--ce-mono2); letter-spacing: .08em; text-transform: uppercase; color: #737373; margin-bottom: 4px; }
.ctopo-ec-inviter input { width: 100%; height: 44px; padding: 0 10px; border: 0; border-bottom: 1.5px solid #333; border-radius: 0; background: #EFEAE4; }
html body .ctopo-ec .ctopo-ec-inviter input.ctopo-ec-champ { font-size: 15px; }
.ctopo-ec-inviter input:focus { outline: 2px solid #FF0000; outline-offset: 2px; }
.ctopo-ec-inviter button { height: 44px; padding: 0 18px; border: 0; border-radius: 2px; background: #333; color: #fff; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.ctopo-ec-inviter button:hover { background: #FF0000; }
@media (max-width: 560px) { .ctopo-ec-inviter { grid-template-columns: 1fr; } }
.ctopo-ec-invites { list-style: none; margin: 12px 0 0; padding: 0; }
.ctopo-ec-invites li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed #CEC2B5; font-size: 14px; }
.ctopo-ec-invites em { display: block; font: normal 400 11px/1.4 var(--ce-mono2); letter-spacing: .06em; text-transform: uppercase; color: #737373; }
.ctopo-ec-invites form { margin: 0; }
.ctopo-ec-lien { border: 0; background: none; padding: 4px; color: #333; font-size: 13px; text-decoration: underline; text-decoration-color: #FF0000; text-underline-offset: 3px; cursor: pointer; }
.ctopo-ec-vide { display: flex; align-items: center; gap: 14px; padding: 28px; border: 1px dashed #CEC2B5; border-radius: 2px; color: #737373; margin-bottom: 24px; }
.ctopo-ec-vide svg { width: 28px; height: 28px; color: #CEC2B5; }
.ctopo-ec-vide p { margin: 0 !important; }
.ctopo-ec-anciens { margin: 0 0 20px; font-size: 14px; color: #737373; }
.ctopo-ec-anciens summary { cursor: pointer; font: 400 12px/1.4 var(--ce-mono2); letter-spacing: .08em; text-transform: uppercase; }
.ctopo-ec-anciens ul { margin: 10px 0 0; padding-left: 18px; }
.ctopo-ec-espace .ctopo-ec-contact { margin-top: 8px !important; }

@keyframes ctopo-ec-monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ctopo-ec-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes ctopo-ec-balayage { 0% { left: -8%; } 55%, 100% { left: 108%; } }
@keyframes ctopo-ec-defile { to { background-position: 0 260px, 7px 287px; } }
@keyframes ctopo-ec-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,0,0,.5); } 50% { box-shadow: 0 0 0 6px rgba(255,0,0,0); } }
@media (prefers-reduced-motion: reduce) {
  .ctopo-ec *, .ctopo-ec *::before, .ctopo-ec *::after { animation: none !important; transition: none !important; }
  .ctopo-ec-balayage, .ctopo-ec-carte-visuel::after { display: none; }
}

/* fond animé : courbes de niveau sur toute la largeur de l'écran, derrière l'espace client */
.ctopo-ec { position: relative; isolation: isolate; }
.ctopo-ec-fond { position: absolute; z-index: -1; pointer-events: none; display: block; max-width: none !important;
  -webkit-mask-image: linear-gradient(transparent, #000 70px, #000 calc(100% - 70px), transparent); mask-image: linear-gradient(transparent, #000 70px, #000 calc(100% - 70px), transparent); }
.ctopo-ec-cadre > section, .ctopo-ec-espace { box-shadow: 0 30px 60px -40px rgba(28,26,24,.45); }
