/* Éveil du Digital — annuaire, profils, formations (s'accorde au thème Éveil du Digital et à son mode sombre) */
.edc {
	--c-navy: var(--navy, #0a1d3a);
	--c-blue: var(--blue, #1a9ae0);
	--c-blue-d: var(--blue-d, #0d6fb8);
	--c-yellow: var(--yellow, #f7d618);
	--c-surface: var(--surface, #fff);
	--c-surface-2: var(--surface-2, #eef4fb);
	--c-sky: var(--sky, #eaf5fd);
	--c-text: var(--text, #1c2735);
	--c-heading: var(--heading, #0a1d3a);
	--c-muted: var(--muted, #5a6b80);
	--c-line: var(--line, #dbe5f0);
	--c-shadow: var(--shadow, 0 1px 2px rgba(10,29,58,.06), 0 8px 24px rgba(10,29,58,.07));
	--c-mono: var(--font-mono, ui-monospace, Menlo, Consolas, monospace);
	--c-head: var(--font-head, inherit);
	color: var(--c-text);
}
.edc *, .edc *::before, .edc *::after { box-sizing: border-box; }
.edc-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px 72px; }
.edc a { text-decoration: none; }
.edc h1, .edc h2, .edc h3 { font-family: var(--c-head); color: var(--c-heading); }

/* Boutons, puces */
.edc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.3em; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--c-blue); color: #fff !important; font-weight: 600; font-size: .92rem; line-height: 1; white-space: nowrap;
	transition: background .2s, transform .15s;
}
.edc-btn:hover { background: var(--c-blue-d); transform: translateY(-1px); }
.edc-btn-sm { padding: .6em 1em; font-size: .85rem; }
.edc-chip {
	display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--c-sky); color: var(--c-blue-d);
	font: 600 .72rem/1.3 var(--c-mono); letter-spacing: .04em; text-transform: uppercase;
}
.edc-kicker { margin: 0 0 .5em; font: 600 .78rem var(--c-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c-blue); }
.edc-back { display: inline-block; margin-bottom: 24px; font-weight: 600; font-size: .92rem; color: var(--c-blue-d); }

/* Recherche */
.edc-search {
	display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px; margin-bottom: 20px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; box-shadow: var(--c-shadow);
}
.edc-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; }
.edc-field-q { flex: 2 1 240px; }
.edc-field label { font: 600 .72rem var(--c-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.edc-field input, .edc-field select {
	width: 100%; padding: .75em .9em; border: 2px solid var(--c-line); border-radius: 10px; background: var(--c-surface); color: var(--c-text); font: inherit; font-size: .95rem;
}
.edc-field input:focus, .edc-field select:focus { outline: none; border-color: var(--c-blue); }
.edc-field input, .edc-field select { height: 48px; -webkit-appearance: none; appearance: none; }
.edc-field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2em; }
.edc-search .edc-btn { padding: .95em 1.5em; }
.edc-count { margin: 0 0 20px; font-size: .9rem; color: var(--c-muted); }
.edc-empty { padding: 40px 20px; text-align: center; color: var(--c-muted); background: var(--c-surface-2); border-radius: 16px; }

/* Cartes de l'annuaire */
.edc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.edc-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 20px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 18px; box-shadow: var(--c-shadow);
	transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden;
}
.edc-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 64px; background: linear-gradient(120deg, var(--c-navy), var(--c-blue-d)); }
.edc-card:hover { transform: translateY(-4px); border-color: var(--c-blue); box-shadow: 0 20px 40px rgba(10,29,58,.14); }
.edc-card-link { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--c-heading); }
.edc-card-photo .edc-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid var(--c-surface); box-shadow: 0 6px 18px rgba(10,29,58,.2); display: block; }
.edc-card-name { margin-top: 12px; font: 700 1.08rem/1.3 var(--c-head); }
.edc-card-sub { margin: 4px 0 0; font-size: .84rem; color: var(--c-muted); }
.edc-card-formation { margin: 12px 0 8px; font-size: .88rem; font-weight: 600; color: var(--c-blue-d); line-height: 1.4; }
.edc-card-more { margin: 6px 0 0; font-size: .78rem; color: var(--c-muted); }
.edc-card-btn { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .88rem; color: var(--c-blue-d); }
.edc-initials {
	display: grid !important; place-items: center; background: linear-gradient(135deg, var(--c-blue), var(--c-navy)); color: #fff;
	font: 700 2rem/1 var(--c-head);
}
.edc-score { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 200px; }
.edc-score-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; }
.edc-score-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--c-blue), var(--c-yellow)); }
.edc-score strong { font: 700 .9rem var(--c-mono); color: var(--c-heading); }
.edc-mention { display: inline-block; margin-top: 8px; padding: .25em .7em; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #e7f6ee; color: #1b7a43; }
.edc-mention-excellent { background: #fff6cc; color: #8a6a00; }
.edc-mention-tres-bien { background: #e3f1fc; color: #0d6fb8; }
.edc-mention-passable, .edc-mention-participation { background: #f1f3f6; color: #5a6b80; }

.edc-pagination { margin-top: 32px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.edc-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-heading); font-weight: 600; }
.edc-pagination .current, .edc-pagination a:hover { background: var(--c-navy); color: var(--c-yellow); border-color: var(--c-navy); }

/* Profil */
.edc-profile-head {
	display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; padding: 32px;
	border-radius: 24px; color: #d2e2f3;
	background:
		radial-gradient(600px 260px at 100% 0, rgba(26,154,224,.35), transparent 70%),
		linear-gradient(rgba(120,190,250,.07) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(120,190,250,.07) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--c-navy);
}
.edc-profile-head .edc-kicker { color: var(--c-yellow); }
.edc-profile-photo .edc-photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid var(--c-yellow); display: block; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.edc-profile-photo .edc-initials { font-size: 4rem; }
.edc-profile-name { margin: 0; color: #fff !important; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.edc-profile-sub { margin: 8px 0 0; font-size: 1.02rem; color: #b6cbe2; }
.edc-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 22px 0 0; }
.edc-stats li { padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(120,190,250,.2); }
.edc-stats strong { display: block; font: 700 1.4rem/1.1 var(--c-mono); color: #fff; }
.edc-stats span { font-size: .8rem; color: #9fb7d2; }

.edc-section { margin-top: 44px; }
.edc-section > h2 { position: relative; font-size: 1.5rem; margin: 0 0 18px; padding-left: 16px; }
.edc-section > h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 4px; background: linear-gradient(var(--c-blue), var(--c-yellow)); }
.edc-bio { font-size: 1.05rem; line-height: 1.8; }

.edc-trainings { display: flex; flex-direction: column; gap: 16px; }
.edc-training {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding: 22px 24px;
	background: var(--c-surface); border: 1px solid var(--c-line); border-left: 5px solid var(--c-blue); border-radius: 16px; box-shadow: var(--c-shadow);
}
.edc-training h3 { margin: 8px 0 4px; font-size: 1.15rem; }
.edc-training h3 a { color: var(--c-heading); }
.edc-training h3 a:hover { color: var(--c-blue); }
.edc-training-meta { margin: 0; font: 500 .8rem var(--c-mono); color: var(--c-muted); }
.edc-training-score { display: flex; flex-direction: column; align-items: center; }
.edc-ring {
	--p: 0; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(var(--c-blue) calc(var(--p) * 1%), var(--c-surface-2) 0);
}
.edc-ring span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--c-surface); font: 700 .9rem var(--c-mono); color: var(--c-heading); }

/* Formation */
.edc-formation-head { margin-bottom: 28px; }
.edc-formation-head h1 { margin: 10px 0 14px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.edc-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.edc-facts li { padding: 10px 16px; border-radius: 12px; background: var(--c-surface); border: 1px solid var(--c-line); font-weight: 600; font-size: .92rem; color: var(--c-heading); }
.edc-facts li span { display: block; font: 600 .68rem var(--c-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; }
.edc-formation-cover { margin: 0 0 8px; }
.edc-formation-cover img { width: 100%; height: auto; border-radius: 20px; display: block; }
.edc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.edc-filters a { padding: .5em 1em; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); font-weight: 600; font-size: .88rem; }
.edc-filters a.is-active, .edc-filters a:hover { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.edc-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.edc-fcard { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-line); border-top: 4px solid var(--c-blue); border-radius: 16px; box-shadow: var(--c-shadow); }
.edc-fcard h3 { margin: 12px 0 8px; font-size: 1.2rem; line-height: 1.3; }
.edc-fcard h3 a { color: var(--c-heading); }
.edc-fcard p { margin: 0 0 14px; color: var(--c-muted); font-size: .93rem; }
.edc-fcard .edc-facts { margin-top: auto; }
.edc-fcard .edc-facts li { padding: 6px 10px; font-size: .8rem; background: var(--c-surface-2); border: 0; }

/* Vérification */
.edc-result { display: flex; gap: 16px; padding: 22px; border-radius: 16px; border: 2px solid; }
.edc-valid { border-color: #1f9d55; background: #effaf3; color: #133d24; }
.edc-invalid { border-color: #ce1021; background: #fff1f2; color: #5a0a12; }
.edc-result-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 1.3rem; flex: 0 0 auto; background: #1f9d55; }
.edc-invalid .edc-result-icon { background: #ce1021; }
.edc-result strong { font-size: 1.08rem; }
.edc-result dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 20px; margin: 14px 0 16px; }
.edc-result dt { font: 600 .7rem var(--c-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.edc-result dd { margin: 2px 0 0; font-weight: 600; }
.edc-result p { margin: 6px 0 0; }

@media (max-width: 720px) {
	.edc-wrap { padding: 28px 16px 56px; }
	.edc-profile-head { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; justify-items: center; }
	.edc-profile-photo .edc-photo { width: 150px; height: 150px; }
	.edc-stats { justify-content: center; }
	.edc-training { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.edc-search .edc-btn { width: 100%; }
}

/* V3.1 — vérification par numéro et nom */
.edc-help { font-size: .88em; opacity: .8; margin: .6em 0 1.2em; }
