/* CDE Membres — styles front. Tout est scopé sous .cde pour ne pas toucher au thème. */
.cde {
	--cde-ink: #30230b;
	--cde-accent: #f2613f;
	--cde-accent-dark: #d9502f;
	--cde-sand: #f5f0ea;
	--cde-line: #e3d9cc;
	--cde-muted: #75695a;
	--cde-ok: #2f7a45;
	--cde-err: #b3261e;
	--cde-radius: 6px;
	color: var(--cde-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.cde *, .cde *::before, .cde *::after { box-sizing: inherit; }
.cde a { color: var(--cde-accent-dark); }
.cde [hidden] { display: none !important; }
.cde .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cde .cde-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Boutons */
.cde .cde-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 26px; border: 0; border-radius: 4px;
	background: var(--cde-accent); color: #fff; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s ease;
	box-shadow: 0 8px 18px rgba(48, 35, 11, .14);
}
.cde .cde-btn:hover { background: var(--cde-accent-dark); color: #fff; }
.cde .cde-btn:focus-visible, .cde .cde-pill:focus-visible, .cde .cde-card__link:focus-visible { outline: 3px solid var(--cde-ink); outline-offset: 2px; }
.cde .cde-btn[disabled] { opacity: .6; cursor: wait; }
.cde .cde-btn--ghost { background: transparent; color: var(--cde-ink); box-shadow: inset 0 0 0 2px var(--cde-line); }
.cde .cde-btn--ghost:hover { background: var(--cde-sand); color: var(--cde-ink); }
.cde .cde-btn--danger { background: var(--cde-err); }
.cde .cde-btn--danger:hover { background: #8f1d17; }
.cde .cde-btn--block { width: 100%; }

/* Champs */
.cde .cde-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.cde .cde-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cde .cde-field--full { grid-column: 1 / -1; }
.cde .cde-label { font-weight: 600; font-size: 15px; }
.cde .cde-label em, .cde .cde-check em { color: var(--cde-accent-dark); font-style: normal; }
.cde input[type=text], .cde input[type=email], .cde input[type=tel], .cde input[type=url], .cde input[type=password],
.cde input[type=search], .cde input[type=number], .cde select, .cde textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--cde-line); border-radius: 4px;
	background: #fff; color: var(--cde-ink); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none;
}
.cde textarea { min-height: 120px; resize: vertical; }
.cde input:focus, .cde select:focus, .cde textarea:focus { outline: none; border-color: var(--cde-ink); box-shadow: 0 0 0 3px rgba(242, 97, 63, .22); }
.cde input:disabled { background: var(--cde-sand); color: var(--cde-muted); }
.cde .is-invalid { border-color: var(--cde-err) !important; }
.cde .cde-help { font-size: 13px; color: var(--cde-muted); }
.cde .cde-error { font-size: 13px; color: var(--cde-err); min-height: 0; }
.cde .cde-error:empty { display: none; }
.cde .cde-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; cursor: pointer; }
.cde .cde-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cde-accent); flex: none; }
.cde .cde-form__error { margin: 18px 0 0; padding: 12px 16px; border-radius: 4px; background: #fbeceb; color: var(--cde-err); font-size: 15px; }
.cde .cde-intro { margin: 0 0 18px; color: var(--cde-muted); }

/* Choix d'antenne */
.cde .cde-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cde .cde-choice { position: relative; cursor: pointer; }
.cde .cde-choice input { position: absolute; opacity: 0; inset: 0; }
.cde .cde-choice span {
	display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px;
	border: 2px solid var(--cde-line); border-radius: 4px; font-weight: 600; text-align: center; background: #fff;
	transition: border-color .15s ease, background-color .15s ease;
}
.cde .cde-choice input:checked + span { border-color: var(--cde-accent); background: #fdf1ed; }
.cde .cde-choice input:focus-visible + span { outline: 3px solid var(--cde-ink); outline-offset: 2px; }

/* Adhésion : étapes */
.cde-join { max-width: 760px; margin: 0 auto; }
.cde .cde-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: none; }
.cde .cde-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--cde-muted); font-size: 13px; line-height: 1.3; margin: 0; }
.cde .cde-steps__item::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 2px; background: var(--cde-line); z-index: 0; }
.cde .cde-steps__item:first-child::before { display: none; }
.cde .cde-steps__num {
	position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: #fff; border: 2px solid var(--cde-line); font-weight: 600; color: var(--cde-muted);
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.cde .cde-steps__item.is-done .cde-steps__num { background: var(--cde-ink); border-color: var(--cde-ink); color: #fff; }
.cde .cde-steps__item.is-done::before, .cde .cde-steps__item.is-current::before { background: var(--cde-ink); }
.cde .cde-steps__item.is-current { color: var(--cde-ink); font-weight: 600; }
.cde .cde-steps__item.is-current .cde-steps__num { background: var(--cde-accent); border-color: var(--cde-accent); color: #fff; }

.cde .cde-form { background: #fff; }
.cde .cde-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.cde .cde-step legend, .cde .cde-section h3 { display: block; width: 100%; margin: 0 0 20px; padding: 0; font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--cde-ink); }
.cde .cde-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--cde-line); }
.cde .cde-nav [data-next], .cde .cde-nav [data-submit] { margin-left: auto; }

/* Photo */
.cde .cde-photo__drop {
	display: flex; align-items: center; gap: 16px; padding: 14px; border: 2px dashed var(--cde-line); border-radius: var(--cde-radius);
	cursor: pointer; position: relative; background: var(--cde-sand);
}
.cde .cde-photo__drop:hover { border-color: var(--cde-accent); }
.cde .cde-photo__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cde .cde-photo__preview { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; background: #fff; }
.cde .cde-photo__text { font-weight: 600; }

/* Aperçu avant envoi */
.cde .cde-preview { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 20px; margin: 0 0 24px; background: var(--cde-sand); border-radius: var(--cde-radius); }
.cde .cde-preview img, .cde .cde-preview .cde-card__initials { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; }
.cde .cde-preview h4 { margin: 0; font-size: 20px; }
.cde .cde-preview p { margin: 4px 0 0; font-size: 14px; }
.cde .cde-preview__desc { grid-column: 1 / -1; white-space: pre-line; font-size: 14px; color: var(--cde-muted); max-height: 9em; overflow: hidden; }

.cde .cde-done { max-width: 620px; margin: 0 auto; padding: 36px; text-align: center; background: var(--cde-sand); border-radius: var(--cde-radius); }
.cde .cde-done h2 { margin: 0 0 12px; font-size: 28px; }
.cde .cde-notice { padding: 18px 22px; background: var(--cde-sand); border-radius: var(--cde-radius); }

/* Annuaire */
.cde-dir__filters { margin: 0 0 28px; }
.cde .cde-dir__antennes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cde .cde-pill {
	min-height: 42px; padding: 8px 18px; border: 2px solid var(--cde-line); border-radius: 999px; background: #fff;
	color: var(--cde-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; line-height: 1.2; box-shadow: none;
}
.cde .cde-pill:hover { border-color: var(--cde-ink); background: #fff; color: var(--cde-ink); }
.cde .cde-pill.is-active { background: var(--cde-ink); border-color: var(--cde-ink); color: #fff; }
.cde .cde-dir__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.cde .cde-dir__count { margin: 14px 0 0; font-size: 14px; color: var(--cde-muted); }
.cde .cde-dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.cde .cde-card { margin: 0; }
.cde .cde-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border-radius: var(--cde-radius); }
.cde .cde-card__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--cde-radius); background: var(--cde-sand); }
.cde .cde-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.cde .cde-card__link:hover .cde-card__media img { transform: scale(1.04); }
.cde .cde-card__initials { display: grid; place-items: center; width: 100%; height: 100%; background: var(--cde-ink); color: #fff; font-size: 40px; font-weight: 700; letter-spacing: .02em; }
.cde .cde-card__body { display: flex; flex-direction: column; gap: 2px; padding: 12px 2px 0; }
.cde .cde-card__company { font-size: 17px; font-weight: 700; line-height: 1.3; }
.cde .cde-card__link:hover .cde-card__company { color: var(--cde-accent-dark); }
.cde .cde-card__name { font-size: 14px; color: var(--cde-muted); }
.cde .cde-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: 13px; color: var(--cde-muted); }
.cde .cde-card__antenne { color: var(--cde-accent-dark); font-weight: 600; }
.cde .cde-dir__empty { padding: 40px 20px; text-align: center; background: var(--cde-sand); border-radius: var(--cde-radius); }

/* Fiche membre */
.cde-profile { max-width: 1040px; margin: 0 auto; }
.cde .cde-profile__back { display: inline-block; margin: 0 0 24px; font-weight: 600; text-decoration: none; }
.cde .cde-profile__back::before { content: "‹ "; }
.cde .cde-profile__head { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; margin: 0 0 32px; }
.cde .cde-profile__media { width: 180px; height: 180px; border-radius: var(--cde-radius); overflow: hidden; background: var(--cde-sand); }
.cde .cde-profile__media img { width: 100%; height: 100%; object-fit: cover; }
.cde .cde-profile__company { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; font-weight: 700; color: var(--cde-ink); }
.cde .cde-profile__name { margin: 6px 0 0; font-size: 18px; color: var(--cde-muted); }
.cde .cde-profile__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cde .cde-profile__desc { font-size: 17px; line-height: 1.7; max-width: 68ch; }
.cde .cde-profile__desc blockquote { margin: 0; padding: 0; border: 0; font-style: normal; }
.cde .cde-profile__side { display: flex; flex-direction: column; gap: 24px; }
.cde .cde-profile__links { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cde-line); }
.cde .cde-profile__links li { padding: 12px 0; border-bottom: 1px solid var(--cde-line); margin: 0; word-break: break-word; }
.cde .cde-profile__links a { font-weight: 600; text-decoration: none; }
.cde .cde-contact { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--cde-sand); border-radius: var(--cde-radius); }
.cde .cde-contact h2 { margin: 0 0 6px; font-size: 19px; }
.cde .cde-contact .cde-btn { margin-top: 8px; }
.cde .cde-contact__done { margin: 8px 0 0; color: var(--cde-ok); font-weight: 600; }

/* Espace membre */
.cde-login { max-width: 460px; margin: 0 auto; }
.cde .cde-form--login { display: flex; flex-direction: column; gap: 16px; padding: 32px; border: 1px solid var(--cde-line); border-radius: var(--cde-radius); }
.cde .cde-form--login h2 { margin: 0 0 4px; font-size: 26px; }
.cde .cde-login__links { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; font-size: 15px; }
.cde-account { max-width: 820px; margin: 0 auto; }
.cde .cde-account__head { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0 0 28px; padding: 22px 24px; background: var(--cde-sand); border-radius: var(--cde-radius); }
.cde .cde-account__title { margin: 0; font-size: 26px; }
.cde .cde-account__status { margin: 4px 0 0; font-size: 15px; color: var(--cde-muted); }
.cde .cde-section { padding: 0 0 30px; margin: 0 0 30px; border-bottom: 1px solid var(--cde-line); }
.cde .cde-section h3 { font-size: 21px; }
.cde .cde-nav--sticky { position: sticky; bottom: 0; background: #fff; padding: 16px 0; margin: 0; z-index: 5; }
.cde .cde-saved { color: var(--cde-ok); font-weight: 600; }
.cde .cde-danger { margin: 40px 0 0; font-size: 15px; }
.cde .cde-danger summary { cursor: pointer; color: var(--cde-muted); }
.cde .cde-danger form { margin: 12px 0 0; padding: 18px; border: 1px solid #f0c9c6; border-radius: var(--cde-radius); }

@media (max-width: 767px) {
	.cde .cde-grid, .cde .cde-dir__row { grid-template-columns: 1fr; }
	.cde .cde-steps__label { display: none; }
	.cde .cde-steps__item.is-current .cde-steps__label { display: block; position: absolute; top: 42px; white-space: nowrap; }
	.cde .cde-steps { margin-bottom: 48px; }
	.cde .cde-step legend { font-size: 21px; }
	.cde .cde-choices { grid-template-columns: 1fr; }
	.cde .cde-dir__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.cde .cde-card__company { font-size: 15px; }
	.cde .cde-card__initials { font-size: 28px; }
	.cde .cde-profile__head { grid-template-columns: 96px 1fr; gap: 16px; }
	.cde .cde-profile__media { width: 96px; height: 96px; }
	.cde .cde-profile__layout { grid-template-columns: 1fr; gap: 28px; }
	.cde .cde-form--login { padding: 22px; }
	.cde .cde-nav .cde-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.cde *, .cde *::before { transition: none !important; }
}

/* Formule, baristas, comité */
.cde .cde-choice--card span { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; min-height: 84px; padding: 14px 16px; text-align: left; }
.cde .cde-choice--card strong { font-size: 17px; }
.cde .cde-choice--card small { font-size: 14px; font-weight: 400; color: var(--cde-muted); line-height: 1.4; }
.cde .cde-choices--formule { grid-template-columns: 1fr 1fr; }
.cde .cde-pill--comite { border-style: dashed; }
.cde .cde-pill--comite.is-active { border-style: solid; background: var(--cde-accent); border-color: var(--cde-accent); }
.cde .cde-dir__section { margin: 0 0 44px; }
.cde .cde-dir__title { margin: 0 0 6px; font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--cde-ink); }
.cde .cde-dir__intro { margin: 0 0 22px; color: var(--cde-muted); }
.cde .cde-dir__section > .cde-dir__title + .cde-dir__grid { margin-top: 18px; }
.cde .cde-dir__baristas { padding: 28px; background: var(--cde-sand); border-radius: var(--cde-radius); }
.cde .cde-dir__group { margin: 0 0 26px; }
.cde .cde-dir__group:last-child { margin-bottom: 0; }
.cde .cde-dir__group-title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--cde-accent-dark); }
.cde .cde-dir__grid--baristas { grid-template-columns: repeat(auto-fill, minmax(200px, 240px)); }
.cde .cde-card__media { position: relative; }
.cde .cde-card__formule { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--cde-ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(48, 35, 11, .18); }
.cde .cde-card__formule--lungo { background: var(--cde-ink); color: #fff; }
.cde .cde-card__formule--inline { position: static; box-shadow: none; background: var(--cde-sand); }
.cde .cde-card__comite { color: var(--cde-ink); font-weight: 600; }
@media (max-width: 767px) {
	.cde .cde-choices--formule { grid-template-columns: 1fr; }
	.cde .cde-dir__baristas { padding: 18px; margin-left: -4px; margin-right: -4px; }
	.cde .cde-dir__grid--baristas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cde .cde-dir__title { font-size: 22px; }
}

/* Icônes des coordonnées */
.cde .cde-profile__links li { display: flex; align-items: center; gap: 12px; }
.cde .cde-icon { flex: none; width: 20px; height: 20px; color: var(--cde-accent-dark); }
.cde .cde-profile__links li span { color: var(--cde-ink); }
.cde .cde-choices--2 { grid-template-columns: repeat(2, minmax(0, 160px)); }
@media (max-width: 767px) { .cde .cde-choices--2 { grid-template-columns: 1fr 1fr; } }
