/* ==========================================================================
   E-Diaspora Core - styles front
   ========================================================================== */

.ed-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: #00954b; color: #fff !important; font-weight: 600; font-size: .9375rem;
	line-height: 1.2; text-decoration: none !important; transition: background 160ms ease, transform 160ms ease;
}
.ed-btn:hover { background: #00703a; transform: translateY(-1px); }
.ed-btn-accent { background: #f58220; box-shadow: 0 6px 18px rgba(245,130,32,.28); }
.ed-btn-accent:hover { background: #e0700f; }
.ed-btn-ghost { background: transparent; color: #00703a !important; border: 1px solid #cfdcd6; }
.ed-btn-ghost:hover { background: #eef5f1; }
.ed-btn.is-loading { opacity: .6; pointer-events: none; }

/* --- Grille des categories ---------------------------------------------- */
.ed-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.ed-cat-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid #e2e8e5; border-radius: 18px;
	padding: 30px 28px; text-decoration: none !important; color: inherit;
	transition: transform 200ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease, border-color 200ms ease;
}
.ed-cat-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
	background: linear-gradient(90deg, #00954b, #f58220); transform: scaleX(0);
	transform-origin: left; transition: transform 260ms ease;
}
.ed-cat-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(15,31,25,.13); border-color: transparent; }
.ed-cat-card:hover::before { transform: scaleX(1); }
.ed-cat-card h3 { margin: 0 0 10px; font-size: 1.125rem; line-height: 1.3; }
.ed-cat-card p { margin: 0 0 18px; color: #5a6b63; font-size: .9rem; line-height: 1.6; flex: 1; }
.ed-cat-meta {
	font-size: .8125rem; font-weight: 700; color: #00954b;
	display: inline-flex; align-items: center; gap: 6px;
}
.ed-cat-meta::after { content: "\2192"; transition: transform 200ms ease; }
.ed-cat-card:hover .ed-cat-meta::after { transform: translateX(4px); }
.ed-cat-card .ed-icon,
.ed-service-card .ed-icon {
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px;
	background: linear-gradient(140deg, #e8f6ee, #d6efe1); font-size: 1.6rem; margin-bottom: 18px;
}

/* --- Catalogue ---------------------------------------------------------- */
.ed-catalog-tools {
	display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px;
	padding-bottom: 26px; border-bottom: 1px solid #eef2f0;
}
@media (min-width: 1000px) {
	.ed-catalog-tools { flex-direction: row-reverse; align-items: center; justify-content: space-between; }
	.ed-catalog-tools .ed-search { flex: 0 0 320px; }
	.ed-catalog-tools .ed-filters { flex: 1; }
}
.ed-search input {
	width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid #e2e8e5;
	font-size: 1rem; background: #fff;
}
.ed-search input:focus { outline: 2px solid #00954b; outline-offset: 1px; }
.ed-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-chip {
	padding: 8px 16px; border-radius: 999px; border: 1px solid #e2e8e5; background: #fff;
	font-size: .875rem; font-weight: 500; cursor: pointer; color: #2c3a34;
	transition: all 140ms ease;
}
.ed-chip:hover { border-color: #00954b; color: #00703a; }
.ed-chip.is-active { background: #00954b; border-color: #00954b; color: #fff; }

.ed-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.ed-service-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid #e2e8e5; border-radius: 18px; padding: 30px 28px;
	transition: transform 200ms cubic-bezier(.2,.7,.3,1), box-shadow 200ms ease, border-color 200ms ease;
}
.ed-service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(15,31,25,.13); border-color: transparent; }
.ed-service-card h3 { margin: 0 0 10px; font-size: 1.125rem; line-height: 1.35; }
.ed-service-card h3 a { text-decoration: none; color: inherit; }
.ed-service-card h3 a:hover { color: #00703a; }
.ed-service-excerpt { margin: 0 0 18px; color: #5a6b63; font-size: .9rem; line-height: 1.6; flex: 1; }
.ed-service-foot {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
	padding: 14px 0; border-top: 1px solid #eef2f0; margin-bottom: 16px;
}
.ed-price { display: block; font-size: 1.4rem; font-weight: 800; color: #0f1f19; letter-spacing: -.01em; }
.ed-price-note, .ed-delay { display: block; font-size: .75rem; color: #7a8a83; }
.ed-delay { text-align: right; }
.ed-badge {
	position: absolute; top: 16px; right: 16px; background: #fef1e4; color: #b4590a;
	font-size: .6875rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
	text-transform: uppercase; letter-spacing: .04em;
}
.ed-no-result, .ed-empty { text-align: center; color: #5a6b63; padding: 40px 0; }

/* --- Encart tarif fiche service ----------------------------------------- */
.ed-summary-card {
	background: #fff; border: 1px solid #e2e8e5; border-radius: 22px; padding: 32px;
	box-shadow: 0 4px 8px rgba(15,31,25,.04), 0 24px 60px rgba(15,31,25,.10);
}
.ed-summary-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: #7a8a83; }
.ed-summary-price { display: block; font-size: 2.4rem; font-weight: 800; color: #0f1f19; line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.ed-summary-note { display: block; font-size: .8125rem; color: #7a8a83; margin-bottom: 16px; }
.ed-summary-row {
	display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
	border-top: 1px solid #eef2f0; font-size: .9rem;
}
.ed-summary-card .ed-btn { width: 100%; margin-top: 18px; }
.ed-summary-help { font-size: .78rem; color: #7a8a83; text-align: center; margin: 10px 0 0; }

/* --- Pieces a fournir --------------------------------------------------- */
.ed-docs { background: #f7faf8; border-radius: 20px; padding: 34px 36px; margin: 56px 0; }
.ed-docs h2 { margin-top: 0; font-size: 1.25rem; }
.ed-docs ul { list-style: none; margin: 0; padding: 0; }
.ed-docs li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid #e7eeeb; font-size: .95rem; }
.ed-docs li:last-child { border-bottom: 0; }
.ed-docs li::before {
	content: "\2713"; position: absolute; left: 0; top: 9px;
	color: #00954b; font-weight: 700;
}

/* --- Wizard ------------------------------------------------------------- */
.ed-wizard {
	background: #fff; border: 1px solid #e2e8e5; border-radius: 24px;
	padding: clamp(24px, 3vw, 48px); margin: 64px 0; scroll-margin-top: 100px;
	box-shadow: 0 4px 8px rgba(15,31,25,.04), 0 24px 60px rgba(15,31,25,.09);
}
.ed-wizard-head h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ed-wizard-head p { margin: 0 0 26px; color: #5a6b63; font-size: .95rem; }

.ed-progress { display: flex; list-style: none; margin: 0 0 30px; padding: 0; gap: 6px; flex-wrap: wrap; }
.ed-progress li { display: flex; align-items: center; gap: 8px; flex: 1 1 150px; opacity: .45; }
.ed-progress li.is-current, .ed-progress li.is-done { opacity: 1; }
.ed-progress-dot {
	display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
	background: #eef2f0; color: #5a6b63; font-size: .8125rem; font-weight: 700; flex: 0 0 auto;
}
.ed-progress li.is-current .ed-progress-dot { background: #00954b; color: #fff; }
.ed-progress li.is-done .ed-progress-dot { background: #d9eee3; color: #00703a; }
.ed-progress-label { font-size: .8125rem; font-weight: 600; line-height: 1.25; }

.ed-panel { display: none; border: 0; padding: 0; margin: 0; }
.ed-panel.is-active { display: block; }
.ed-panel-title { font-size: 1.1875rem; font-weight: 700; padding: 0; margin: 0 0 4px; }
.ed-panel-desc { color: #5a6b63; font-size: .9rem; margin: 0 0 22px; }

.ed-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.ed-field { grid-column: span 6; display: flex; flex-direction: column; gap: 6px; }
.ed-w-half { grid-column: span 3; }
.ed-w-third { grid-column: span 2; }
@media (max-width: 700px) {
	.ed-w-half, .ed-w-third { grid-column: span 6; }
	.ed-wizard { padding: 22px; }
}

.ed-label { font-size: .875rem; font-weight: 600; color: #2c3a34; }
.ed-req { color: #f58220; }
.ed-field input[type="text"], .ed-field input[type="email"], .ed-field input[type="tel"],
.ed-field input[type="number"], .ed-field input[type="date"], .ed-field select, .ed-field textarea,
.ed-tracker input {
	width: 100%; padding: 12px 14px; border: 1px solid #dbe4e0; border-radius: 10px;
	font-size: .9375rem; font-family: inherit; background: #fff; color: #0f1f19;
	transition: border-color 140ms ease, box-shadow 140ms ease;
}
.ed-field input:focus, .ed-field select:focus, .ed-field textarea:focus {
	outline: none; border-color: #00954b; box-shadow: 0 0 0 3px rgba(0,149,75,.14);
}
.ed-field input[type="file"] {
	padding: 14px; border: 1px dashed #c8d6d0; border-radius: 10px; background: #f9fbfa;
	font-size: .875rem; width: 100%;
}
.ed-choices { display: flex; flex-direction: column; gap: 8px; }
.ed-choice {
	display: flex; align-items: center; gap: 10px; padding: 11px 14px;
	border: 1px solid #dbe4e0; border-radius: 10px; cursor: pointer; font-size: .9375rem;
}
.ed-choice:hover { border-color: #00954b; background: #f7fbf9; }
.ed-help { font-size: .78rem; color: #7a8a83; }
.ed-error { font-size: .78rem; color: #c0392b; }
.ed-field.has-error input, .ed-field.has-error select, .ed-field.has-error textarea { border-color: #c0392b; }
.ed-info {
	grid-column: span 6; background: #f7faf8; border-left: 3px solid #00954b;
	padding: 12px 16px; font-size: .9rem; color: #4a5a53; margin: 0; border-radius: 0 8px 8px 0;
}
.ed-hp { position: absolute; left: -9999px; }

.ed-consent {
	display: flex; gap: 12px; align-items: flex-start; padding: 16px;
	background: #f7faf8; border-radius: 12px; font-size: .875rem; line-height: 1.55; cursor: pointer;
}
.ed-consent.has-error { outline: 2px solid #c0392b; }
.ed-consent input { margin-top: 3px; flex: 0 0 auto; }

.ed-recap { margin-bottom: 22px; }
.ed-recap dl { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 0; margin: 0; }
.ed-recap dt { padding: 10px 0; font-size: .8125rem; color: #7a8a83; border-bottom: 1px solid #eef2f0; }
.ed-recap dd { padding: 10px 0; margin: 0; font-size: .9375rem; font-weight: 500; border-bottom: 1px solid #eef2f0; }
.ed-total {
	display: flex; justify-content: space-between; align-items: center;
	background: #0f1f19; color: #fff; padding: 18px 22px; border-radius: 12px; margin-bottom: 18px;
}
.ed-total strong { font-size: 1.35rem; }

.ed-nav { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid #eef2f0; }
.ed-step-counter { flex: 1; font-size: .8125rem; color: #7a8a83; text-align: center; }

.ed-alert { padding: 14px 18px; border-radius: 10px; font-size: .9rem; margin-bottom: 20px; }
.ed-alert-error { background: #fcf0f1; color: #8a2424; border-left: 3px solid #c0392b; }
.ed-alert-info { background: #eef5ff; color: #10446f; border-left: 3px solid #2271b1; }

/* --- Suivi / confirmation ----------------------------------------------- */
.ed-tracker-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 30px; }
@media (max-width: 700px) { .ed-tracker-form { grid-template-columns: 1fr; } }
.ed-request-card { background: #fff; border: 1px solid #e2e8e5; border-radius: 16px; padding: 26px; }
.ed-request-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.ed-request-top strong { display: block; font-size: 1.125rem; }
.ed-pill {
	display: inline-block; padding: 5px 14px; border-radius: 999px;
	font-size: .8125rem; font-weight: 600; background: #eef2f0; color: #2c3338; white-space: nowrap;
}
.ed-pill-nouveau { background: #e7f1ff; color: #0a4b78; }
.ed-pill-attente { background: #fef1e4; color: #8a5200; }
.ed-pill-paye, .ed-pill-termine, .ed-pill-pret { background: #e6f4ec; color: #00703a; }
.ed-pill-annule { background: #fcf0f1; color: #8a2424; }
.ed-request-meta { display: flex; flex-wrap: wrap; gap: 22px; font-size: .8125rem; color: #7a8a83; padding: 16px 0; border-top: 1px solid #eef2f0; }
.ed-request-meta strong { display: block; color: #0f1f19; font-size: .9375rem; }
.ed-request-details summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding-top: 8px; }
.ed-request-details dl { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; margin: 14px 0 0; }
.ed-request-details dt { padding: 9px 0; font-size: .8125rem; color: #7a8a83; border-bottom: 1px solid #f2f5f4; }
.ed-request-details dd { padding: 9px 0; margin: 0; font-size: .9rem; border-bottom: 1px solid #f2f5f4; }

.ed-confirm-head { text-align: center; padding: 20px 0 34px; }
.ed-check {
	display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
	background: #e6f4ec; color: #00954b; font-size: 1.9rem; margin: 0 auto 16px;
}
.ed-confirm-head h2 { margin: 0 0 8px; }
.ed-confirm-head strong { display: block; font-size: 1.25rem; letter-spacing: .04em; margin-top: 6px; }

/* --- Editeur ------------------------------------------------------------ */
.ed-editor-placeholder {
	border: 1px dashed #00954b; border-radius: 10px; padding: 20px;
	background: #f4faf7; text-align: center; font-size: 14px;
}


/* --- Services associes -------------------------------------------------- */
.ed-related { margin-top: 72px; padding-top: 48px; border-top: 1px solid #eef2f0; }
.ed-related h2 { margin: 0 0 28px; font-size: 1.5rem; }

/* --- Grille recap plus aeree ------------------------------------------- */
.ed-recap dl { grid-template-columns: minmax(160px, 32%) 1fr; }

/* ==========================================================================
   Suivi de demande
   ========================================================================== */

/* --- Bandeau de suivi (accueil) ----------------------------------------- */
.ed-track-band {
	display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
	background: #fff; border: 1px solid #e2e8e5; border-radius: 24px;
	padding: clamp(26px, 3vw, 44px);
	box-shadow: 0 4px 8px rgba(15,31,25,.04), 0 24px 60px rgba(15,31,25,.09);
}
.ed-track-band h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.25; }
.ed-track-band p { margin: 0; color: #5a6b63; font-size: .95rem; line-height: 1.65; }
.ed-track-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ed-track-quick input {
	width: 100%; padding: 14px 16px; border: 1px solid #dbe4e0; border-radius: 12px;
	font-size: .9375rem; font-family: inherit; background: #fbfdfc;
}
.ed-track-quick input:focus { outline: none; border-color: #00954b; box-shadow: 0 0 0 3px rgba(0,149,75,.14); }
.ed-track-quick button { grid-column: 1 / -1; width: 100%; }
@media (max-width: 900px) {
	.ed-track-band { grid-template-columns: 1fr; gap: 26px; }
	.ed-track-quick { grid-template-columns: 1fr; }
}

/* --- Dossier client ------------------------------------------------------ */
.ed-dossier {
	background: #fff; border: 1px solid #e2e8e5; border-radius: 22px;
	padding: clamp(24px, 3vw, 40px);
	box-shadow: 0 4px 8px rgba(15,31,25,.04), 0 20px 50px rgba(15,31,25,.08);
}
.ed-dossier-head {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
	padding-bottom: 24px; border-bottom: 1px solid #eef2f0; margin-bottom: 30px; flex-wrap: wrap;
}
.ed-dossier-order {
	display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: .01em;
	color: #0f1f19; margin: 4px 0 2px;
}
.ed-dossier-service { display: block; font-size: .95rem; color: #5a6b63; }

/* Frise de progression */
.ed-progress-track { display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; margin: 0 0 30px; padding: 0; }
.ed-progress-track li { position: relative; text-align: center; padding-top: 4px; }
.ed-progress-track li::before {
	content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px;
	background: #e7edea; z-index: 0;
}
.ed-progress-track li:first-child::before { display: none; }
.ed-progress-track li.is-done::before,
.ed-progress-track li.is-current::before { background: #00954b; }
.ed-track-dot {
	position: relative; z-index: 1; display: grid; place-items: center; margin: 0 auto 10px;
	width: 36px; height: 36px; border-radius: 50%; background: #eef2f0; color: #8a978f;
	font-size: .8125rem; font-weight: 800; border: 3px solid #fff; box-shadow: 0 0 0 1px #e7edea;
}
.ed-progress-track .is-done .ed-track-dot { background: #d9eee3; color: #00703a; box-shadow: 0 0 0 1px #a9dcc2; }
.ed-progress-track .is-current .ed-track-dot {
	background: #00954b; color: #fff; box-shadow: 0 0 0 4px rgba(0,149,75,.18);
	animation: ed-pulse 2.2s ease-in-out infinite;
}
@keyframes ed-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(0,149,75,.18); }
	50% { box-shadow: 0 0 0 9px rgba(0,149,75,.05); }
}
.ed-track-label { display: block; font-size: .72rem; line-height: 1.35; color: #7a8a83; padding: 0 4px; }
.ed-progress-track .is-current .ed-track-label { color: #0f1f19; font-weight: 700; }
@media (max-width: 720px) {
	.ed-progress-track { grid-template-columns: repeat(3, 1fr); gap: 22px 0; }
	.ed-progress-track li:nth-child(4)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ed-progress-track .is-current .ed-track-dot { animation: none; } }

.ed-dossier-meta {
	display: flex; flex-wrap: wrap; gap: 12px 40px;
	padding: 20px 22px; background: #f7faf8; border-radius: 14px; margin-bottom: 34px;
}
.ed-dossier-meta span { font-size: .75rem; color: #7a8a83; text-transform: uppercase; letter-spacing: .05em; }
.ed-dossier-meta strong { display: block; font-size: 1rem; color: #0f1f19; text-transform: none; letter-spacing: 0; margin-top: 3px; }

/* Chronologie */
.ed-timeline-wrap h3 { margin: 0 0 22px; font-size: 1.15rem; }
.ed-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ed-tl { display: flex; gap: 18px; padding-bottom: 26px; position: relative; }
.ed-tl:last-child { padding-bottom: 0; }
.ed-tl::before {
	content: ""; position: absolute; left: 7px; top: 20px; bottom: -6px; width: 2px; background: #e7edea;
}
.ed-tl:last-child::before { display: none; }
.ed-tl-marker {
	flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; margin-top: 3px;
	background: #cfdcd6; border: 3px solid #fff; box-shadow: 0 0 0 2px #e7edea; position: relative; z-index: 1;
}
.ed-tl.is-latest .ed-tl-marker { background: #00954b; box-shadow: 0 0 0 3px rgba(0,149,75,.2); }
.ed-tl.ed-tl-annule .ed-tl-marker { background: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.16); }
.ed-tl-body { flex: 1; min-width: 0; }
.ed-tl-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ed-tl-top strong { font-size: .975rem; }
.ed-tl-top time { font-size: .78rem; color: #7a8a83; }
.ed-tl-body p {
	margin: 8px 0 0; font-size: .9rem; line-height: 1.7; color: #4a5a53;
	background: #f7faf8; border-radius: 10px; padding: 12px 16px;
}
.ed-tl.is-latest .ed-tl-body p { background: #eef7f2; border-left: 3px solid #00954b; }

.ed-dossier-foot {
	margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #eef2f0;
	font-size: .8125rem; color: #7a8a83;
}
.ed-tracker-again { margin-top: 22px; text-align: center; font-size: .875rem; }
