/* ==========================================================================
 * Espace client (16/11/2026) — cœurs favoris, bouton d'enregistrement des
 * simulations, en-tête « Mon espace », page /mon-espace/.
 * ========================================================================== */

/* ---------- En-tête ---------- */
.wc-nav__compte {
	display: inline-flex; align-items: center; gap: .4em;
	color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none;
	position: relative; white-space: nowrap;
}
.wc-nav__compte svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wc-nav__compte:hover, .wc-nav__compte.is-connecte { color: var(--wc-orange); }
.wc-nav__compte.is-connecte svg { fill: currentColor; }
.wc-nav__compte b {
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--wc-orange); color: #fff; font-size: .7rem; line-height: 18px; text-align: center;
}
.wc-nav__compte b[hidden] { display: none; }
/* L'en-tête est déjà chargé (menu, RDV visio, Être rappelé) : sous 1400 px,
   le cœur et son compteur suffisent, le libellé passe en infobulle. */
@media (max-width: 1400px) {
	.wc-nav__compte span { display: none; }
}
.wc-nav__rdv { white-space: nowrap; }

/* ---------- Cœur ---------- */
.wc-ec-coeur {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .94); color: var(--wc-marine);
	box-shadow: 0 6px 18px -8px rgba(10, 34, 48, .55);
	cursor: pointer; transition: transform .15s ease, color .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.wc-ec-coeur svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.wc-ec-coeur:hover { transform: scale(1.08); color: var(--wc-orange); }
.wc-ec-coeur:focus-visible { outline: 3px solid var(--wc-teal-l); outline-offset: 2px; }
.wc-ec-coeur.is-on { color: var(--wc-orange); }
.wc-ec-coeur.is-on svg { fill: currentColor; animation: wcEcPop .3s ease; }
@keyframes wcEcPop { 50% { transform: scale(1.25); } }

.wc-ec-coeur--carte { position: absolute; top: 12px; left: 12px; z-index: 3; }
.wc-ec-coeur--titre { margin-left: .5em; vertical-align: middle; width: 42px; height: 42px; border: 1.5px solid var(--wc-line); box-shadow: none; }
.wc-ec-coeur--lot { width: 32px; height: 32px; margin-left: .45rem; box-shadow: none; border: 1.5px solid var(--wc-line); vertical-align: middle; flex: none; }
.wc-ec-coeur--lot svg { width: 16px; height: 16px; }

/* ---------- Message éphémère ---------- */
.wc-ec-toast {
	position: fixed; left: 50%; bottom: 22px; z-index: 9999;
	transform: translate(-50%, 140%); opacity: 0;
	max-width: min(560px, calc(100vw - 32px));
	background: var(--wc-marine); color: #fff; border-radius: 14px;
	padding: .9rem 1.1rem; font-size: .92rem; line-height: 1.45;
	box-shadow: var(--wc-shadow); transition: transform .25s ease, opacity .25s ease;
}
.wc-ec-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.wc-ec-toast a { color: #ffb37f; font-weight: 700; }

/* ---------- Enregistrer une simulation ---------- */
.wc-ec-save {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
	margin: 1.4rem auto 0; padding: .9rem 1.1rem; max-width: var(--wc-maxw);
	border: 1.5px dashed rgba(0, 122, 140, .45); border-radius: var(--wc-radius);
	background: rgba(0, 122, 140, .05);
}
.wc-ec-save__btn {
	display: inline-flex; align-items: center; gap: .45em;
	border: 0; border-radius: 999px; padding: .7em 1.3em; cursor: pointer;
	background: var(--wc-teal); color: #fff; font: inherit; font-weight: 700; font-size: .92rem;
}
.wc-ec-save__btn:hover { background: var(--wc-marine); }
.wc-ec-save__msg { font-size: .9rem; color: var(--wc-ink); }
.wc-ec-save__msg a { color: var(--wc-teal); font-weight: 700; }

/* ---------- Page « Mon espace » ---------- */
.wc-ec { background: var(--wc-paper); min-height: 60vh; }
.wc-ec h1 { font-family: var(--wc-font-display); color: var(--wc-marine); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: .3rem 0 .8rem; }
.wc-ec h2 { font-family: var(--wc-font-display); color: var(--wc-marine); font-size: var(--wc-fs-2xl); margin: 0; }
.wc-ec-eyebrow { display: inline-block; color: var(--wc-teal); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.wc-ec-lead { color: var(--wc-muted); font-size: var(--wc-fs-lg); max-width: 60ch; margin: 0; }
.wc-ec-note { color: var(--wc-muted); font-size: .86rem; }
.wc-ec-ok { color: #1c7a43; font-weight: 600; margin: 0; }
.wc-ec-alerte { background: #fff4e5; border-left: 4px solid var(--wc-orange); padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; }
.wc-btn--sm { padding: .55em 1em; font-size: .85rem; }

/* Connexion / création */
.wc-ec-auth {
	max-width: var(--wc-maxw); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 16px;
	display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.wc-ec-promesses { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: .8rem; }
.wc-ec-promesses li { display: flex; gap: .8rem; align-items: center; font-weight: 500; color: var(--wc-ink); }
.wc-ec-promesses b {
	flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
	background: #fff; color: var(--wc-orange); box-shadow: 0 6px 16px -10px rgba(10, 34, 48, .5);
}
.wc-ec-auth__card {
	background: #fff; border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem);
	box-shadow: var(--wc-shadow);
}
.wc-ec-auth__card--centre { grid-column: 1 / -1; max-width: 520px; margin: 0 auto; text-align: center; }
.wc-ec-onglets { display: grid; grid-template-columns: 1fr 1fr; background: var(--wc-paper-2); border-radius: 999px; padding: 4px; margin-bottom: 1.2rem; }
.wc-ec-onglets button {
	border: 0; background: transparent; border-radius: 999px; padding: .65em .5em;
	font: inherit; font-weight: 600; font-size: .9rem; color: var(--wc-muted); cursor: pointer;
}
.wc-ec-onglets button.is-on { background: #fff; color: var(--wc-marine); box-shadow: 0 4px 12px -6px rgba(10, 34, 48, .4); }
.wc-ec-form { display: grid; gap: .85rem; }
.wc-ec-grille { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.wc-ec-champ { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--wc-marine); }
.wc-ec-champ em { font-style: normal; font-weight: 400; color: var(--wc-muted); }
.wc-ec-champ input, .wc-ec-champ textarea, .wc-ec-suppr input {
	width: 100%; border: 1.5px solid var(--wc-line); border-radius: 10px; padding: .75em .85em;
	font: inherit; font-size: 1rem; background: #fff; color: var(--wc-ink); box-sizing: border-box;
}
.wc-ec-champ input:focus, .wc-ec-champ textarea:focus { outline: none; border-color: var(--wc-teal); box-shadow: 0 0 0 3px rgba(0, 122, 140, .15); }
.wc-ec-case { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--wc-ink); line-height: 1.45; }
.wc-ec-case input { margin-top: .2em; width: 18px; height: 18px; flex: none; accent-color: var(--wc-teal); }
.wc-ec-case a { color: var(--wc-teal); }
.wc-ec-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wc-ec-msg { margin: 0; font-size: .9rem; color: var(--wc-marine); min-height: 1.2em; }
.wc-ec-btn-large { width: 100%; justify-content: center; padding-block: .95em; }
.wc-ec-form.is-envoye .wc-ec-msg { background: #eaf6ef; color: #1c5e37; padding: .8rem; border-radius: 10px; }
.wc-ec-favlocal { margin: 0; font-size: .85rem; color: var(--wc-teal); font-weight: 600; text-align: center; }
[data-ec-creation][hidden] { display: none !important; }

/* Tableau de bord */
.wc-ec-tete { background: #fff; border-bottom: 1px solid var(--wc-line); }
.wc-ec-tete__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: 1.2rem; }
.wc-ec-compteurs { display: flex; gap: .7rem; }
.wc-ec-compteurs a {
	display: grid; justify-items: center; min-width: 92px; padding: .7rem .8rem; border-radius: 14px;
	background: var(--wc-paper); text-decoration: none; color: var(--wc-muted); font-size: .8rem;
}
.wc-ec-compteurs b { font-family: var(--wc-font-display); font-size: 1.9rem; color: var(--wc-marine); line-height: 1; font-weight: 400; }
.wc-ec-nav { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.wc-ec-nav::-webkit-scrollbar { display: none; }
.wc-ec-nav a { flex: none; padding: .75rem .9rem; color: var(--wc-marine); font-weight: 600; font-size: .9rem; text-decoration: none; border-bottom: 3px solid transparent; }
.wc-ec-nav a:hover { border-bottom-color: var(--wc-orange); }
.wc-ec-corps { padding-top: 1.6rem; padding-bottom: 4rem; display: grid; gap: 1.4rem; }
.wc-ec-bloc { background: #fff; border-radius: 20px; padding: clamp(1.1rem, 3vw, 1.8rem); scroll-margin-top: 90px; }
.wc-ec-bloc__tete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wc-ec-lien { color: var(--wc-teal); font-weight: 700; text-decoration: none; font-size: .92rem; }
.wc-ec-sous { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wc-muted); margin: 1.3rem 0 .7rem; }
.wc-ec-vide { background: var(--wc-paper); border-radius: 14px; padding: 1.1rem 1.2rem; color: var(--wc-muted); }
.wc-ec-vide p { margin: 0; }
.wc-ec-vide b { color: var(--wc-orange); font-size: 1.2em; }
.wc-ec-raccourcis { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }

.wc-ec-progs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.wc-ec-prog { position: relative; border: 1px solid var(--wc-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.wc-ec-prog__img { display: block; aspect-ratio: 16 / 9; background: var(--wc-paper-2) center / cover no-repeat; }
.wc-ec-prog__corps { padding: .9rem 1rem 1.1rem; }
.wc-ec-prog__lieu { color: var(--wc-teal); font-size: .8rem; font-weight: 700; }
.wc-ec-prog h4 { margin: .25rem 0 .6rem; font-size: 1.1rem; }
.wc-ec-prog h4 a { color: var(--wc-marine); text-decoration: none; }
.wc-ec-prog__infos { display: flex; flex-wrap: wrap; gap: .35rem; }
.wc-ec-prog__infos span { background: var(--wc-paper); border-radius: 999px; padding: .25em .7em; font-size: .78rem; color: var(--wc-ink); }
.wc-ec-prog__infos .is-dispo { background: #e6f4ec; color: #1c5e37; }
.wc-ec-prog__infos .is-vendu { background: #fde8e8; color: #9b1c1c; }

.wc-ec-retirer {
	position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 999px; border: 0;
	background: rgba(255, 255, 255, .94); color: var(--wc-marine); font-size: 1.2rem; line-height: 1; cursor: pointer;
	box-shadow: 0 4px 12px -6px rgba(10, 34, 48, .55);
}
.wc-ec-retirer:hover { color: #b32d2e; }

.wc-ec-lots { display: grid; gap: .6rem; }
.wc-ec-lot {
	position: relative; display: grid; align-items: center; gap: .6rem 1rem;
	grid-template-columns: 1.1fr 1.4fr .9fr .9fr auto; padding: .8rem 3rem .8rem 1rem;
	border: 1px solid var(--wc-line); border-radius: 14px;
}
.wc-ec-lot .wc-ec-retirer { top: 50%; transform: translateY(-50%); box-shadow: none; background: var(--wc-paper); }
.wc-ec-lot__id b { display: block; color: var(--wc-marine); }
.wc-ec-lot__id span, .wc-ec-lot__prog span { display: block; font-size: .8rem; color: var(--wc-muted); }
.wc-ec-lot__prog a { color: var(--wc-marine); font-weight: 600; text-decoration: none; }
.wc-ec-lot__prix { font-weight: 700; color: var(--wc-marine); }
.wc-ec-lot__prix small { display: block; font-size: .75rem; }
.is-baisse { color: #1c7a43; }
.is-hausse { color: #b32d2e; }
.wc-ec-pastille { display: inline-block; border-radius: 999px; padding: .25em .7em; font-size: .78rem; font-weight: 600; }
.wc-ec-pastille.is-dispo { background: #e6f4ec; color: #1c5e37; }
.wc-ec-pastille.is-option { background: #fff4e5; color: #8a4b00; }
.wc-ec-pastille.is-vendu { background: #fde8e8; color: #9b1c1c; }
.wc-ec-lot__act { display: flex; gap: .4rem; flex-wrap: wrap; }

.wc-ec-sims { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.wc-ec-sim { border: 1px solid var(--wc-line); border-radius: 16px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.wc-ec-sim__tete { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--wc-muted); }
.wc-ec-sim__type { background: rgba(0, 122, 140, .1); color: var(--wc-teal); border-radius: 999px; padding: .2em .7em; font-weight: 700; }
.wc-ec-sim h4 { margin: .2rem 0 0; color: var(--wc-marine); font-size: 1.02rem; }
.wc-ec-sim__resume { margin: 0; font-size: .9rem; color: var(--wc-ink); line-height: 1.5; flex: 1; }
.wc-ec-sim__act { display: flex; align-items: center; gap: .8rem; margin-top: .4rem; }
.wc-ec-texte-btn { background: none; border: 0; padding: 0; color: var(--wc-muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.wc-ec-texte-btn:hover { color: #b32d2e; }

.wc-ec-conseiller { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; background: var(--wc-marine); color: #fff; }
.wc-ec-conseiller h2 { color: #fff; }
.wc-ec-conseiller p { color: rgba(255, 255, 255, .82); }
.wc-ec-conseiller .wc-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); }
.wc-ec-rappel { background: #fff; border-radius: 16px; padding: 1.1rem; display: grid; gap: .8rem; color: var(--wc-ink); }
.wc-ec-rappel .wc-ec-msg { color: var(--wc-marine); }

.wc-ec-prefs__form { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.wc-ec-prefs__form .wc-btn { justify-self: start; }
.wc-ec-donnees { border-top: 1px solid var(--wc-line); padding-top: 1.1rem; color: var(--wc-muted); font-size: .9rem; }
.wc-ec-donnees p { margin: 0; }
.wc-ec-suppr { margin-top: 1.2rem; }
.wc-ec-suppr summary { cursor: pointer; color: #b32d2e; font-weight: 600; }
.wc-ec-suppr form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.wc-ec-suppr input { width: 180px; }
.wc-ec-danger { background: #b32d2e; color: #fff; border: 0; }
.wc-ec-danger:hover { background: #8a1f20; color: #fff; }

@media (max-width: 900px) {
	.wc-ec-auth { grid-template-columns: 1fr; }
	.wc-ec-conseiller { grid-template-columns: 1fr; }
	.wc-ec-lot { grid-template-columns: 1fr 1fr; padding-right: 3rem; }
	.wc-ec-lot__prog { grid-column: 1 / -1; order: -1; }
	.wc-ec-lot__act { grid-column: 1 / -1; }
	.wc-ec-lot .wc-ec-retirer { top: 12px; transform: none; }
}
@media (max-width: 520px) {
	.wc-ec-grille { grid-template-columns: 1fr; }
	.wc-ec-compteurs { width: 100%; }
	.wc-ec-compteurs a { flex: 1; min-width: 0; }
	.wc-ec-coeur--titre { width: 36px; height: 36px; }
}
.wc-site-header__cta .wc-btn { white-space: nowrap; }

/* Mots de passe (16/11/2026) */
.wc-ec-mdp { position: relative; display: block; }
.wc-ec-mdp input { padding-right: 5.6em; }
.wc-ec-voir {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	border: 0; background: var(--wc-paper); color: var(--wc-marine); border-radius: 8px;
	padding: .45em .7em; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.wc-ec-aide { font-weight: 400; color: var(--wc-muted); font-size: .78rem; line-height: 1.4; }
.wc-ec-ligne { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
[data-ec-panneau][hidden] { display: none !important; }
.wc-ec-form .wc-ec-texte-btn { justify-self: center; }
.wc-ec-verif {
	display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
	background: #fff4e5; border-left: 4px solid var(--wc-orange); border-radius: 12px; padding: .9rem 1.1rem;
}
.wc-ec-verif p { margin: 0; flex: 1 1 320px; color: var(--wc-ink); }
.wc-ec-chgmdp { margin: 0 0 1.4rem; }
.wc-ec-chgmdp summary { cursor: pointer; color: var(--wc-marine); font-weight: 600; }
.wc-ec-chgmdp form { max-width: 420px; margin-top: .8rem; }
