/* espace.css : l'entrée de l'espace cliente (connexion), sur la référence du 03/12 : le formulaire et ce qu'on retrouve
   dans l'espace à gauche, une grande photo à droite ; au téléphone, la photo en tête et le panneau remonté dessus. */

html[data-vue="compte"]:has(.ce) body { background: #FFFDFA; }
.ce { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100svh - var(--annonce)); padding-top: var(--entete); background: #FFFDFA; }
.ce__panneau { align-self: center; display: grid; justify-items: start; gap: 0; width: 100%; max-width: 560px; justify-self: end;
  padding: clamp(36px, 4.4vw, 72px) clamp(28px, 4.4vw, 72px) clamp(40px, 4.4vw, 72px) var(--marge); }
.ce__sur { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--cerise); }
.ce h1 { margin: 14px 0 0; font-size: clamp(38px, 3.6vw, 54px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; color: var(--encre); }
.ce__chapo { margin: 14px 0 0; max-width: 30em; font-size: 16.5px; line-height: 1.6; color: var(--voile); }
.ce__form { width: 100%; margin-top: 28px; }
.ce__form .formulaire { display: grid; gap: 0; max-width: none; margin: 0; padding: 0; background: none; border: 0; }
.ce__form .formulaire > h2.t-h3 { margin: 0 0 6px; font-size: 20px; }
.ce__form .champs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.ce__form .champ > span { font-size: 14px; color: var(--encre); }
.ce__form .champ input { min-height: 54px; border-color: var(--filet-fort); border-radius: 6px; background: #fff; font-size: 16.5px; transition: border-color .25s; }
.ce__form .champ input:hover { border-color: var(--encre); }
.ce__form .champ input:focus { outline: 2px solid var(--cerise); outline-offset: 1px; border-color: var(--cerise); }
.ce__form .champ--code input { font-size: 26px; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.ce__form .formulaire__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 14px; justify-items: center; }
.ce__form .formulaire__actions .btn { width: 100%; min-height: 54px; border-radius: 6px; font-size: 15.5px; letter-spacing: .01em; }
.ce__form .formulaire__actions .lien { min-height: 44px; }
.ce__form .erreur--haut:empty { display: none; }
.ce__note { margin: 14px 0 0; font-size: 14px; color: var(--voile); }
.ce__demo, .connexion__demo { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--or); background: #F7F1E8; font-size: 13.5px; line-height: 1.55; color: var(--encre); }
.ce__demo a, .connexion__demo a { text-decoration: underline; text-underline-offset: 3px; color: var(--cerise); }
.connexion__demo { margin: 4px 0 10px; }
.ce__liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; width: 100%; margin: 32px 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--filet); }
.ce__liste li { display: grid; gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--filet); }
.ce__liste strong { font-size: 14.5px; font-weight: 500; color: var(--encre); }
.ce__liste span { font-size: 13.5px; line-height: 1.45; color: var(--voile); }
/* La photo garde son format (paysage) : étirée en pleine colonne, elle serait floue sur écran Retina. Cadre posé sur un
   fond chaud, qui suit le défilement. */
.ce__photo { margin: 0; padding: clamp(28px, 3.4vw, 56px); background: #F3ECE2; }
.ce__cadre { position: sticky; top: calc(var(--entete) + clamp(28px, 9svh, 110px)); width: 100%; max-width: 620px; margin: clamp(0px, 6svh, 80px) auto 0;
  overflow: hidden; border-radius: 14px; background: var(--puits); box-shadow: 0 24px 60px -28px rgba(59, 36, 24, .45); }
.ce__cadre img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

@media (max-width: 900px) {
  .ce { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ce__photo { order: -1; padding: 0; background: none; }
  .ce__cadre { position: relative; top: 0; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
  .ce__cadre img { aspect-ratio: 16 / 9; }
  .ce__panneau { position: relative; z-index: 2; justify-self: stretch; max-width: none; margin-top: -28px; padding: 30px var(--marge) 40px;
    border-radius: 22px 22px 0 0; background: #FFFDFA; box-shadow: 0 -10px 30px rgba(59, 36, 24, .08); }
}
@media (max-width: 520px) { .ce__liste { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Espace connectée : « le salon privé » (maquette A) avec la carte du Cercle (maquette B), choix du 04/12 ----------
   Un bandeau photo pleine largeur (emplacement compte-bandeau), puis le menu en colonne à gauche, filet cerise sur la page
   ouverte, et le contenu à droite en sections séparées par de simples filets. Pas de cartes arrondies ni d'ombres, sauf la
   carte du Cercle. Au téléphone, le menu devient une ligne d'onglets qui défile au doigt. */
.ec { padding-top: var(--entete); }
.ec-bandeau { position: relative; height: clamp(300px, 26.4vw, 380px); overflow: hidden; background: #B9925F; }
.ec-bandeau--court { height: clamp(180px, 15.3vw, 220px); }
.ec-bandeau img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ec-bandeau::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(59, 36, 24, .58), rgba(59, 36, 24, .12) 55%, rgba(59, 36, 24, 0) 75%),
              linear-gradient(to right, rgba(59, 36, 24, .34), rgba(59, 36, 24, 0) 45%); }
.ec-bandeau__texte { position: absolute; z-index: 1; left: var(--bord); right: var(--marge); bottom: clamp(28px, 3vw, 44px); color: #fff; }
.ec-bandeau h1 { margin: 0; font: 400 clamp(30px, 3.05vw, 44px)/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.ec-bandeau--court h1 { font-size: clamp(24px, 2.2vw, 32px); }
.ec-bandeau p { margin: 12px 0 0; font-size: 14px; letter-spacing: .04em; color: rgba(255, 255, 255, .88); overflow-wrap: anywhere; }

.compte { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(48px, 7.5vw, 112px); align-items: start;
  padding: clamp(56px, 5.6vw, 80px) var(--bord) clamp(88px, 8.9vw, 128px); }
.compte__nav { position: sticky; top: calc(var(--entete) + 24px); margin-top: -11px; }
.compte__nav ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--filet); }
.compte__nav li a { display: block; margin-left: -1px; padding: 11px 0 11px 22px; border-left: 1px solid transparent; font-size: 12px; line-height: 1.5;
  letter-spacing: .2em; text-transform: uppercase; color: var(--voile); transition: color .25s; }
.compte__nav li a:hover { color: var(--encre); }
.compte__nav li a[aria-current="page"] { color: var(--encre); border-left-color: var(--cerise); }
.compte__sortie { display: inline-flex; align-items: center; min-height: 44px; margin: 32px 0 0 23px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 13.5px; color: var(--voile); cursor: pointer; transition: color .25s; }
.compte__sortie:hover { color: var(--encre); }
.compte__contenu { min-width: 0; max-width: 940px; }

/* Titres de section de l'espace : petites capitales espacées, comme les surtitres du registre. */
.compte__contenu h2.t-h3 { font: 400 11.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--voile); }

/* Accueil : la carte du Cercle, puis le registre (l'information à gauche, l'action à droite). */
.tdb { display: grid; }
.tdb__sur { grid-column: 1 / -1; margin: 0 0 24px; font-size: 11.5px; font-weight: 400; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--voile); }
.tdb__bloc { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; padding: 56px 0; border-top: 1px solid var(--filet); }
.tdb__bloc > .lien { margin-top: 32px; }
.tdb__grand { margin: 0; font-size: clamp(30px, 3.05vw, 44px); line-height: 1.12; letter-spacing: -.012em; color: var(--encre); }
.tdb__grand span { display: inline-block; }
.tdb__grand span::first-letter { text-transform: uppercase; }
.tdb__rdv .ligne-compte { justify-self: stretch; grid-template-columns: minmax(0, 1fr) auto; margin-top: 18px; padding: 0; border: 0; }
.tdb__rdv .ligne-compte__date { display: none; }
.tdb__rdv .ligne-compte .deplacer { grid-column: 1 / -1; margin-top: 18px; }
.tdb__rdv .deplacer summary { min-height: 50px; padding: 0 30px; border: 1px solid var(--encre); border-radius: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.tdb__rdv .deplacer summary:hover { background: var(--encre); color: var(--porcelaine); }
.tdb__commande .ligne-compte { justify-self: stretch; border-top: 0; border-bottom: 0; padding: 0; grid-template-columns: 72px minmax(0, 1fr) auto 16px; gap: 6px 28px; }
.tdb__commande .ligne-compte img { width: 72px; }
.tdb__objet { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 28px; }
.tdb__objet img { width: 104px; height: 130px; object-fit: cover; object-position: 40% 20%; background: var(--puits); }
.tdb__titre { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--encre); }
.tdb__pose { margin: 4px 0 0; max-width: 30em; color: var(--voile); }
.tdb__raccourcis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.tdb__raccourcis a { display: block; padding: 30px 28px; border-left: 1px solid var(--filet); }
.tdb__raccourcis a:first-child { padding-left: 0; border-left: 0; }
.tdb__raccourcis strong { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: .2em; text-transform: uppercase; color: var(--encre); }
.tdb__raccourcis span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--voile); }
.tdb__raccourcis a:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--filet-fort); }

/* La carte de membre : cerise, filet or, reflet de métal brossé et grain. */
.tdb__cercle { padding-bottom: 56px; }
.carte-cercle { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; width: min(640px, 100%); aspect-ratio: 640 / 400;
  padding: clamp(28px, 3vw, 40px) clamp(26px, 3.1vw, 44px); border: 1px solid var(--or-clair); border-radius: 4px; color: var(--porcelaine);
  background: radial-gradient(110% 85% at 12% 0%, rgba(255, 214, 196, .11), transparent 60%), linear-gradient(140deg, #6B1424 0%, #5C0F1C 46%, #470A15 100%);
  box-shadow: 0 46px 70px -46px rgba(59, 36, 24, .6), 0 16px 26px -20px rgba(59, 36, 24, .4); }
.carte-cercle::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(108deg, transparent 34%, rgba(255, 236, 214, .07) 46%, transparent 58%); }
.carte-cercle::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>"); }
.carte-cercle__logo { width: 150px; height: auto; }
.carte-cercle__nom { padding-top: clamp(36px, 3.8vw, 54px); }
.carte-cercle__prenom { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: .32em; text-transform: uppercase; overflow-wrap: anywhere; }
.carte-cercle__depuis, .carte-cercle__etiq { margin: 10px 0 0; font-size: 11.5px; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); }
.carte-cercle__etiq { margin: 0; }
.carte-cercle__bas { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.carte-cercle__montant { margin: 12px 0 0; font-size: clamp(48px, 4.4vw, 64px); line-height: 1; letter-spacing: -.015em; font-variant-numeric: lining-nums; }
.carte-cercle__points { width: 210px; text-align: right; }
.carte-cercle__points p { margin: 0; font-size: 17px; line-height: 1.2; }
.carte-cercle__jauge { display: block; height: 1px; margin: 14px 0 10px; background: rgba(227, 199, 154, .3); }
.carte-cercle__jauge i { display: block; height: 100%; background: var(--or-clair); }
.carte-cercle__points .carte-cercle__reste { font-size: 13px; line-height: 1.4; color: rgba(245, 239, 230, .78); }
/* Sur la page Le Cercle : la barre de progression (rôle progressbar, CercleVues > Barre) prend le filet or de la carte. */
.carte-cercle .cagnotte__barre { gap: 10px; margin-top: 14px; }
.carte-cercle .cagnotte__piste { height: 1px; border-radius: 0; background: rgba(227, 199, 154, .3); }
.carte-cercle .cagnotte__piste span { border-radius: 0; background: var(--or-clair); }
.carte-cercle .cagnotte__vers { margin: 0; font-size: 13px; line-height: 1.4; color: rgba(245, 239, 230, .78); }
.carte-cercle .grand-chiffre { font: inherit; color: inherit; letter-spacing: 0; }
.carte-cercle__etiq { font-weight: 400; }
.cagnotte__deduire { margin: 28px 0 0; }
.tdb__liens { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 0; font-size: 14px; }
.tdb__liens .lien + .lien { padding-left: 28px; border-left: 1px solid var(--filet); }

/* Profil cheveux : chaque question sur sa ligne, les réponses en choix dessinés (bouton radio caché, accessible au
   clavier) ; la nuance avec sa matière. Coins droits, filet fin ; le choix fait passe à l'encre. */
.profil-form .champs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; margin-top: 32px; }
.pf-groupe { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 26px 0; border: 0; border-top: 1px solid var(--filet); }
.pf-groupe legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 11.5px; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; color: var(--voile); }
.pf-choix { clear: both; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-option { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--filet-fort);
  font-size: 14.5px; color: var(--encre); cursor: pointer; transition: border-color .25s, background-color .25s; }
.pf-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pf-option:hover { border-color: var(--encre); }
.pf-option:has(input:checked) { border-color: var(--encre); background: var(--encre); color: var(--porcelaine); }
.pf-option:has(input:focus-visible) { outline: 2px solid var(--cerise); outline-offset: 2px; }
.pf-option--sans { color: var(--voile); border-style: dashed; }
.pf-choix--teintes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.pf-choix--teintes .pf-option { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; border-color: transparent; }
.pf-choix--teintes .pf-option:has(input:checked) { background: none; color: var(--encre); border-color: transparent; }
.pf-option__teinte { display: block; aspect-ratio: 3 / 4; background: var(--puits) center 30% / cover; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .25s; }
.pf-choix--teintes .pf-option:has(input:checked) .pf-option__teinte { outline-color: var(--encre); }
.pf-choix--teintes .pf-option__nom { padding-top: 10px; font-size: 13px; line-height: 1.35; }
.pf-choix--teintes .pf-option:has(input:checked) .pf-option__nom { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--cerise); }
.pf-choix--teintes .pf-option--sans { justify-content: center; align-items: center; aspect-ratio: 3 / 4; border: 1px dashed var(--filet-fort); text-align: center; }
.pf-choix--teintes .pf-option--sans:has(input:checked) { border-color: var(--encre); }
.pf-choix--teintes .pf-option--sans .pf-option__nom { padding: 0 8px; }
.profil-form .champs > .champ { padding-top: 26px; border-top: 1px solid var(--filet); }
.profil-form .champ > span:first-child { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--voile); }
.profil-form .champ input, .profil-form .champ textarea { border-radius: 0; }
.profil-form .formulaire__actions .btn { border-radius: 0; }

@media (max-width: 1100px) {
  .compte { grid-template-columns: 190px minmax(0, 1fr); }
  .pf-choix--teintes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ec-bandeau { height: 440px; }
  .ec-bandeau--court { height: 200px; }
  .ec-bandeau img { object-position: 50% 12%; }
  .ec-bandeau__texte { left: var(--marge); }
  .ec-bandeau p { margin-top: 8px; font-size: 13px; }
  .compte { display: block; padding: 0 0 88px; }
  .compte__nav { position: static; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0 var(--marge); overflow-x: auto;
    border-bottom: 1px solid var(--filet); scrollbar-width: none; overscroll-behavior-x: contain; }
  .compte__nav::-webkit-scrollbar { display: none; }
  .compte__nav ul { display: flex; gap: 26px; border-left: 0; }
  .compte__nav li a { margin: 0 0 -1px; padding: 18px 0 17px; border-left: 0; border-bottom: 1px solid transparent; white-space: nowrap; font-size: 11.5px; letter-spacing: .18em; }
  .compte__nav li a[aria-current="page"] { border-bottom-color: var(--cerise); }
  .compte__sortie { flex: none; margin: 0; padding: 0 var(--marge) 0 0; white-space: nowrap; font-size: 13px; }
  .compte__contenu { padding: 40px var(--marge) 0; }
  .tdb__bloc { padding: 44px 0; }
  .tdb__grand { font-size: 31px; }
  .tdb__rdv .deplacer summary { width: 100%; justify-content: center; }
  .tdb__commande .ligne-compte { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 18px; }
  .tdb__commande .ligne-compte img { width: 56px; }
  .tdb__objet { grid-template-columns: 88px minmax(0, 1fr); gap: 20px; }
  .tdb__objet img { width: 88px; height: 110px; }
  .tdb__raccourcis { grid-template-columns: minmax(0, 1fr); }
  .tdb__raccourcis a, .tdb__raccourcis a:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid var(--filet); }
  .tdb__raccourcis a:first-child { border-top: 0; }
  .tdb__cercle { padding-bottom: 44px; }
  .carte-cercle { aspect-ratio: auto; min-height: 420px; }
  .carte-cercle::before { background: linear-gradient(160deg, transparent 30%, rgba(255, 236, 214, .07) 44%, transparent 58%); }
  .carte-cercle__logo { width: 124px; }
  .carte-cercle__prenom { font-size: 24px; }
  .carte-cercle__depuis { letter-spacing: .18em; max-width: 15em; }
  .carte-cercle__bas { flex-direction: column; align-items: stretch; gap: 28px; }
  .carte-cercle__points { width: auto; text-align: left; }
  .tdb__liens { flex-direction: column; align-items: flex-start; }
  .tdb__liens .lien + .lien { padding-left: 0; border-left: 0; }
  .profil-form .champs { grid-template-columns: minmax(0, 1fr); }
  .pf-choix--teintes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
}
