/* =============================================================================
   CHU Cinquantenaire — compléments WordPress
   Remplace les styles inline / styled-jsx / react-slick du projet Next.js.
   ========================================================================== */

/* ---- Accessibilité / WordPress ------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: #111;
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: #6c757d; }
.post-content img, .service-details-wrapper img { max-width: 100%; height: auto; }
.site-content { display: block; }
html { scroll-behavior: smooth; }
.page-links { margin-top: 20px; }

/* ---- Menus WordPress -------------------------------------------------------- */
.site-menu ul.primary-menu .sub-menu { list-style: none; }
.mobile-menu ul.primary-menu > li { display: block; }
.template-footer .nav-widget ul.nav-links { list-style: none; padding: 0; margin: 0; }

/* ---- Pagination WordPress --------------------------------------------------- */
ul.pagination { list-style: none; padding: 0; margin-top: 40px; display: flex; flex-wrap: wrap; }

/* ---- Messages de formulaire ------------------------------------------------- */
.chu-form-notice {
	padding: 12px 18px;
	border-radius: 5px;
	margin-bottom: 20px;
	font-size: 15px;
}
.chu-form-notice--ok { background: #e6f6ec; color: #17653a; border: 1px solid #b6e3c7; }
.chu-form-notice--error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c1c1; }
.template-footer .chu-form-notice { font-size: 13px; padding: 8px 12px; }

/* ---- Sliders vanilla (remplacent react-slick) ------------------------------- */
.chu-slider { position: relative; }
/* Avant l'initialisation JS (ou si le JS échoue) : première diapositive seulement, jamais d'empilement en colonne. */
.chu-slider:not(.slick-initialized) > :not(:first-child) { display: none; }
.chu-slider-viewport { overflow: hidden; width: 100%; }
.chu-slider-track { display: flex; transition: transform .5s ease; will-change: transform; }
.chu-slider .chu-slide { box-sizing: border-box; min-width: 0; }
.chu-slider.slick-initialized .slick-slide { display: block; height: auto; float: none; }
.chu-slider .slick-dots { display: flex; justify-content: center; list-style: none; margin: 20px 0 0; padding: 0; gap: 8px; }
.chu-slider .slick-dots li button { font-size: 0; width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); }
.chu-slider .slick-dots li.slick-active button { background: var(--color-secondary, #f97316); }
.hero-slider-one .chu-slider { overflow: hidden; }
.testimonial-slider-two.chu-slider { overflow: visible; margin-left: 0; margin-right: 0; }
.testimonial-slider-two .slick-arrow { cursor: pointer; }
.testimonial-section { padding-bottom: 150px; }
.hero-slider-one .slick-arrow { cursor: pointer; }
@media (max-width: 767px) {
	.hero-slider-one .slick-arrow { display: none; }
}

/* ---- Liste des médecins (ex ListDoctor.js, styles inline repris) ------------ */
.chu-doctors { display: flex; padding: 20px; background: #f8f9fa; width: 100%; position: relative; }
.chu-doctors__sidebar { width: 250px; margin-right: 20px; background: #e8eff5; border-radius: 5px; padding: 15px; height: fit-content; flex-shrink: 0; }
.chu-doctors__content { flex: 1; min-width: 0; }
.chu-doctors__spec { padding: 10px; margin-top: 8px; cursor: pointer; border-radius: 6px; background: transparent; color: #000; }
.chu-doctors__spec.is-active { background: #000; color: #fff; }
.chu-doctors__tabs { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.chu-doctors__tab { cursor: pointer; color: #000; font-weight: 500; }
.chu-doctors__tab.is-active { color: #275285; }
.chu-doctors__title { margin-bottom: 20px; }
.chu-doctors__search { position: relative; margin-bottom: 20px; }
.chu-doctors__search input { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #ccc; }
.chu-doctors__menu-btn { display: none; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #275285; color: #fff; border: none; border-radius: 5px; padding: 5px 10px; cursor: pointer; }
.chu-doctors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.chu-doctor-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, .05); }
.chu-doctor-card h3 { font-size: 22px; }
.chu-doctor-card__spec { color: #275285; }
.chu-doctor-card table { width: 100%; font-size: 14px; }
.chu-doctor-card td.is-rest { color: red; }
.chu-doctors__pagination { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.chu-doctors__pagination button { padding: 3px 8px; border-radius: 10px; border: none; cursor: pointer; background: #ddd; color: #0254fc; }
.chu-doctors__pagination button.is-active { background: #0254fc; color: #fff; }
.chu-doctors__modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); display: flex; justify-content: center; align-items: center; z-index: 999; }
.chu-doctors__modal[hidden], [data-doctors-empty][hidden], .chu-doctors__empty[hidden] { display: none; }
.chu-doctors__modal-box { background: #fff; padding: 20px; border-radius: 5px; width: 90%; max-width: 300px; max-height: 80vh; overflow-y: auto; }
@media (max-width: 767px) {
	.chu-doctors { padding: 10px; }
	.chu-doctors__sidebar { display: none; }
	.chu-doctors__menu-btn { display: block; }
}

/* ---- Sélecteur de médecin : affichage de la liste déroulante ---------------- */
.doctor-select__dropdown { display: none; }
.doctor-select.open .doctor-select__dropdown { display: block; }
.doctor-select__empty[hidden] { display: none; }
.doctor-select .selected-name small { display: block; }

/* ---- Commentaires ----------------------------------------------------------- */
.comments-area .comment-list li { margin-bottom: 25px; }
.comments-area .comment-body { padding: 15px 0; border-bottom: 1px solid #e8e8e8; }
.comments-area .avatar { border-radius: 50%; margin-right: 12px; }
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea { width: 100%; border: 1px solid #ddd; padding: 12px 15px; margin-bottom: 15px; border-radius: 5px; }
.comments-area .submit { background: var(--color-primary, #275285); color: #fff; border: 0; padding: 12px 28px; border-radius: 5px; }

/* ---- Admin bar : l'en-tête fixe passe sous la barre WordPress --------------- */
body.admin-bar header.template-header.sticky-on { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar header.template-header.sticky-on { top: 46px; }
}

/* ---- Méta des articles : icône + texte toujours sur une seule ligne alignée ---- */
.blog-loop .single-blog-post .post-meta { align-items: center; flex-wrap: wrap; list-style: none; padding-left: 0; }
.blog-loop .single-blog-post .post-meta li { margin-top: 10px; display: flex; align-items: center; }
.blog-loop .single-blog-post .post-meta li a { display: inline-flex; align-items: center; white-space: nowrap; }
.chu-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; list-style: none; padding: 0; margin: 0 0 20px; }
.chu-post-meta li a, .chu-post-meta li span { display: inline-flex; align-items: center; color: var(--color-body); font-size: 16px; line-height: 1; }
.chu-post-meta i { margin-right: 10px; font-size: 15px; }

/* Accueil : blog en mise en page magazine */
.mag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 1.05fr); align-items: stretch; }
.mag-col { padding: 0 24px; min-width: 0; }
.mag-col:first-child { padding-left: 0; }
.mag-col:last-child { padding-right: 0; }
.mag-col + .mag-col { border-left: 1px solid rgba(0, 0, 0, .1); }
.mag-grid:not(:has(.mag-left)) { grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.05fr); }
.mag-thumb { display: block; overflow: hidden; background: #f1f3f6; }
.mag-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.mag-thumb:hover img { transform: scale(1.03); }
.mag-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1d7fd1; }
.mag-date { font-size: 13px; color: #8a8f98; }
.mag-meta { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 6px; }
.mag-title { margin: 0; line-height: 1.2; font-weight: 800; color: #111; }
.mag-title a { color: inherit; }
.mag-title a:hover { color: var(--color-primary, #1f1c8c); }
.mag-left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.mag-card .mag-thumb { aspect-ratio: 16 / 10; }
.mag-card .mag-title { font-size: 19px; margin-bottom: 8px; }
.mag-featured { text-align: center; }
.mag-featured .mag-thumb { aspect-ratio: 3 / 2; margin-bottom: 16px; }
.mag-featured .mag-cat { margin-bottom: 8px; }
.mag-title-lg { font-size: 32px; margin: 0 0 12px; }
.mag-excerpt { color: #6b7078; font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.mag-side-heading { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 12px; margin: 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.mag-row { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.mag-row:last-child { border-bottom: 0; }
.mag-row-text { min-width: 0; }
.mag-title-sm { font-size: 15px; margin-bottom: 6px; }
.mag-thumb-sm { flex: 0 0 78px; width: 78px; aspect-ratio: 1 / 1; }
@media (max-width: 991px) {
	.mag-grid, .mag-grid:not(:has(.mag-left)) { grid-template-columns: 1fr; }
	.mag-col { padding: 0; }
	.mag-col + .mag-col { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .1); margin-top: 32px; padding-top: 32px; }
	.mag-center { order: -1; }
	.mag-left { gap: 32px; }
	.mag-title-lg { font-size: 24px; }
}

/* Page agent : carte d'identité */
.agent-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #e9edf2; }
.agent-card-wrap { width: 100%; max-width: 560px; container-type: inline-size; }
.agent-card, .agent-card * { font-family: "Inter", "Segoe UI", Arial, sans-serif; box-sizing: border-box; }
.agent-card { position: relative; width: 100%; min-height: 63cqw; background: #f6f8fc; border-radius: 4.5cqw; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.agent-card-top { display: flex; align-items: center; gap: 3cqw; padding: 3.5cqw 4.5cqw 3cqw; }
.agent-card-logo { height: 12cqw; width: auto; flex: none; }
.agent-card-gov { flex: 1; min-width: 0; margin: 0; font-size: 2cqw; line-height: 1.4; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: #333; }
.agent-card-gov-logo { height: 12cqw; width: auto; flex: none; }
.agent-card-band { background: #1565a8; color: #fff; font-weight: 700; font-size: 3.4cqw; line-height: 1.2; padding: 2cqw 4.5cqw; }
.agent-card-body { flex: 1; display: flex; align-items: center; gap: 4.5cqw; padding: 4cqw 4.5cqw 7cqw; }
.agent-card-photo { flex: none; width: 32cqw; aspect-ratio: 1 / 1.1; border-radius: 3cqw; overflow: hidden; background: #1565a8; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9cqw; font-weight: 700; }
.agent-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.agent-card-info { flex: 1; min-width: 0; }
.agent-card-info p { margin: 0; }
.agent-card-name { font-size: 4.6cqw; line-height: 1.15; font-weight: 800; text-transform: uppercase; color: #111; overflow-wrap: anywhere; }
.agent-card-role { margin-top: 1.5cqw !important; font-size: 3.2cqw; color: #666; }
.agent-card-dept { margin-top: .6cqw !important; font-size: 2.8cqw; color: #8a8f98; }
.agent-card-id { display: inline-block; margin-top: 3cqw; padding: 1.2cqw 4cqw; border-radius: 99px; background: #e5172c; color: #fff; font-weight: 800; font-size: 3.8cqw; line-height: 1.2; }
.agent-card-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 2.4cqw; background: repeating-linear-gradient(90deg, #1565a8 0 1.6cqw, #fff 1.6cqw 2.6cqw); }
.agent-error { text-align: center; max-width: 420px; background: #fff; border-radius: 16px; padding: 36px 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.agent-error i { font-size: 48px; color: #8a8f98; }
.agent-error h3 { margin-top: 18px; }
.agent-error p { color: #6b7078; margin: 0; }
