/* Espace membre : authentification (/connexion, /inscription...), compte
   (/compte/*) et fiches publiques (/membres/*). Composants partages avec
   l'administration (admin.css s'y ajoute). Variables : css/site.css. */

/* ---------- composants ---------- */
.e-carte {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 22px;
}
.e-carte + .e-carte { margin-top: 16px; }
.e-carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.e-carte-titre h2, .e-carte-titre h3 { margin: 0; font-size: 18px; font-weight: 800; }
.e-carte-titre p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.e-sous { color: var(--muted); }

.e-alerte {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
	margin: 0 0 16px; font-size: 14.5px; line-height: 1.45; border: 1px solid transparent;
}
.e-alerte .fa { margin-top: 2px; }
.e-alerte-succes { background: #ebfbee; border-color: #b2f2bb; color: #1b5e20; }
.e-alerte-erreur { background: #fff5f5; border-color: #ffc9c9; color: #a51111; }
.e-alerte-info { background: #e7f5ff; border-color: #a5d8ff; color: #0b4f8a; }

.e-champ { margin-bottom: 16px; }
.e-champ label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.e-champ .e-aide { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.e-input, .e-champ input[type=text], .e-champ input[type=email], .e-champ input[type=password], .e-champ input[type=url],
.e-champ input[type=tel], .e-champ input[type=date], .e-champ input[type=month], .e-champ input[type=number], .e-champ input[type=search],
.e-champ select, .e-champ textarea {
	width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cfd6de; border-radius: 10px;
	background: #fff; font-size: 15px; color: var(--ink); outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.e-champ textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.e-champ input:focus, .e-champ select:focus, .e-champ textarea:focus, .e-input:focus {
	border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12);
}
.e-champ input[aria-invalid=true] { border-color: var(--rouge); }
.e-ligne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 600px) { .e-ligne { grid-template-columns: minmax(0, 1fr); } }
.e-case { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.e-case input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.e-mdp { position: relative; }
.e-mdp input { padding-right: 46px; }
.e-mdp button {
	position: absolute; right: 4px; top: 4px; width: 38px; height: 36px; border: 0; background: none;
	color: var(--muted); border-radius: 8px;
}
.e-mdp button:hover { background: var(--soft); color: var(--ink); }
.e-force { height: 5px; border-radius: 3px; background: var(--soft); margin-top: 8px; overflow: hidden; }
.e-force i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.e-pot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.e-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff;
	font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.e-btn:hover, .e-btn:focus { background: var(--accent-fonce); border-color: var(--accent-fonce); color: #fff; text-decoration: none; }
.e-btn[disabled] { opacity: .55; cursor: not-allowed; }
.e-btn-bloc { width: 100%; }
.e-btn-clair { background: #fff; color: var(--ink); border-color: #cfd6de; }
.e-btn-clair:hover, .e-btn-clair:focus { background: var(--soft); color: var(--ink); border-color: #b8c0ca; }
.e-btn-danger { background: #fff; color: var(--rouge); border-color: #ffc9c9; }
.e-btn-danger:hover, .e-btn-danger:focus { background: #fff5f5; color: var(--rouge); border-color: var(--rouge); }
.e-btn-petit { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.e-btn-lien { background: none; border: 0; color: var(--accent); padding: 0; min-height: 0; font-weight: 700; }
.e-btn-lien:hover { background: none; color: var(--accent-fonce); text-decoration: underline; }
.e-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

.e-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); white-space: nowrap; }
.e-badge-vert { background: #ebfbee; color: #2b8a3e; }
.e-badge-rouge { background: #fff5f5; color: #c92a2a; }
.e-badge-orange { background: var(--accent-pale); color: #a8400a; }
.e-badge-bleu { background: #e7f5ff; color: #1864ab; }

.e-avatar {
	width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
	font-weight: 800; color: #fff; background: oklch(0.6 0.13 var(--h, 30)); font-size: 15px;
}
.e-avatar-l { width: 120px; height: 120px; font-size: 40px; border: 4px solid #fff; box-shadow: var(--shadow); }
.e-avatar-s { width: 30px; height: 30px; font-size: 12px; }

.e-vide { text-align: center; padding: 40px 20px; color: var(--muted); }
.e-vide .fa { font-size: 34px; color: #c3cad3; display: block; margin-bottom: 10px; }
.e-vide h4 { color: var(--ink); font-weight: 800; }

/* ---------- ecrans d'authentification ---------- */
.e-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 140px); margin: 0 -15px; }
@media (max-width: 900px) { .e-auth { grid-template-columns: minmax(0, 1fr); } .e-auth-vitrine { display: none; } }
.e-auth-vitrine {
	position: relative; overflow: hidden; color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: flex-end;
	background: radial-gradient(circle at 20% 15%, #f79257 0%, transparent 45%), radial-gradient(circle at 85% 80%, #2b8a3e 0%, transparent 50%),
		linear-gradient(150deg, #e8590c 0%, #a8400a 55%, #5c2306 100%);
	border-radius: 0 24px 24px 0;
}
.e-auth-vitrine::before {
	content: "225"; position: absolute; top: -40px; right: -20px; font-size: 260px; font-weight: 900; line-height: 1;
	color: rgba(255, 255, 255, .07); letter-spacing: -.06em;
}
.e-auth-vitrine h2 { font-size: 34px; font-weight: 800; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; max-width: 14ch; }
.e-auth-vitrine p { font-size: 16px; opacity: .92; max-width: 42ch; line-height: 1.55; }
.e-auth-vitrine ul { list-style: none; padding: 0; margin: 22px 0 0; }
.e-auth-vitrine li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-weight: 600; }
.e-auth-vitrine li .fa { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.e-auth-panneau { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.e-auth-boite { width: 100%; max-width: 420px; }
.e-auth-boite h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.e-auth-boite > p.e-sous { margin: 0 0 22px; font-size: 15px; }
.e-auth-bas { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--muted); }
.e-auth-lien-mdp { float: right; font-weight: 600; font-size: 13px; }

.e-code { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 18px; }
.e-code input {
	width: 100%; max-width: 56px; height: 62px; text-align: center; font-size: 28px; font-weight: 800;
	border: 1px solid #cfd6de; border-radius: 12px; outline: none; font-family: Consolas, Menlo, monospace;
}
.e-code input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.e-icone-ronde { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--accent-pale); color: var(--accent); margin-bottom: 18px; }

/* ---------- espace connecte : barre laterale + contenu ---------- */
.e-espace { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; padding: 24px 0 10px; align-items: start; }
@media (max-width: 991px) { .e-espace { grid-template-columns: minmax(0, 1fr); } }
.e-nav { position: sticky; top: 70px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
@media (max-width: 991px) {
	.e-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding: 6px; }
	.e-nav-profil, .e-nav h4 { display: none; }
	.e-nav a { white-space: nowrap; }
}
.e-nav-profil { display: flex; gap: 10px; align-items: center; padding: 8px 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.e-nav-profil b { display: block; line-height: 1.2; }
.e-nav-profil span { font-size: 12.5px; color: var(--muted); }
.e-nav h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 12px 10px 4px; }
.e-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.e-nav a .fa { width: 18px; color: var(--muted); text-align: center; }
.e-nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.e-nav a.is-on { background: var(--accent-pale); color: #a8400a; }
.e-nav a.is-on .fa { color: var(--accent); }
.e-nav .e-badge { margin-left: auto; }

.e-tete-page { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.e-tete-page h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.e-tete-page p { margin: 4px 0 0; color: var(--muted); }

.e-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 767px) { .e-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.e-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.e-kpi span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.e-kpi b { display: block; font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; }
.e-kpi small { color: var(--muted); }

.e-progression { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; }
.e-progression i { display: block; height: 100%; background: linear-gradient(90deg, #f79257, #e8590c); border-radius: 4px; }
.e-liste-taches { list-style: none; padding: 0; margin: 12px 0 0; }
.e-liste-taches li { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 14.5px; }
.e-liste-taches .fa-check-circle { color: var(--vert); }
.e-liste-taches .fa-circle-o { color: #c3cad3; }
.e-liste-taches li.is-fait { color: var(--muted); text-decoration: line-through; }

.e-image-choix { display: flex; align-items: center; gap: 16px; }
.e-couverture { height: 140px; border-radius: 12px; background: linear-gradient(135deg, #f79257, #a8400a) center / cover; margin-bottom: 12px; }

.e-reactions { list-style: none; margin: 0; padding: 0; }
.e-reactions li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.e-reactions li:first-child { border-top: 0; padding-top: 0; }
.e-reactions p { margin: 4px 0 2px; color: #3d4752; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- pages de contenu (/infos/*) ---------- */
.pg { max-width: 820px; margin: 0 auto; padding: 28px 0 10px; }
.pg-tete { margin-bottom: 22px; }
.pg-tete h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.pg-tete p { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.55; }
.pg h2 { font-size: 21px; font-weight: 800; margin: 30px 0 10px; }
.pg h3 { font-size: 16px; font-weight: 800; margin: 20px 0 6px; }
.pg p, .pg li { font-size: 16px; line-height: 1.7; color: #3d4752; }
.pg ul { padding-left: 20px; }
.pg-chiffres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
@media (max-width: 700px) { .pg-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-chiffres div { background: var(--accent-pale); border-radius: 14px; padding: 16px; }
.pg-chiffres b { display: block; font-size: 26px; font-weight: 900; color: #a8400a; letter-spacing: -.02em; }
.pg-chiffres span { font-size: 13.5px; color: #7a3a10; }
.pg-cartes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .pg-cartes { grid-template-columns: minmax(0, 1fr); } }
.pg-cartes a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.pg-cartes a:hover { border-color: var(--accent); text-decoration: none; color: var(--ink); }
.pg-cartes b { display: block; font-size: 16px; margin-bottom: 4px; }
.pg-cartes .fa { color: var(--accent); margin-right: 6px; }
.pg-cartes span { color: var(--muted); font-size: 14px; }
.pg-faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; background: #fff; }
.pg-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: "+"; font-size: 20px; color: var(--accent); line-height: 1; }
.pg-faq details[open] summary::after { content: "–"; }
.pg-faq details p { margin: 0 0 14px; }
.pg-maj { color: var(--muted); font-size: 13px; }

/* ---------- preferences de courriels (/courriel/desabonnement) ---------- */
.e-raisons { border: 0; padding: 0; margin: 4px 0 16px; display: grid; gap: 8px; }
.e-raisons legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.e-raison { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border: 1px solid var(--line, #e3e8ee); border-radius: 12px; cursor: pointer; transition: border-color .12s, background .12s; }
.e-raison:hover { border-color: #f3b58f; }
.e-raison:has(input:checked) { border-color: #e8590c; background: #fff4ec; }
.e-raison input { accent-color: #e8590c; margin: 0; }
.e-desabo > summary { list-style: none; display: inline-flex; cursor: pointer; }
.e-desabo > summary::-webkit-details-marker { display: none; }
.e-desabo[open] > summary { display: none; }
.e-desabo .e-raisons { margin-top: 4px; }
