/* Espace bénévoles : [espace-benevoles], et bandeau de la carte des bénévoles [carte-parcours quadrillage] */

.ctj-eb { --ctj-eb-ligne: #dfe5dc; font-size: 1rem; }
.ctj-eb h2 { margin: 0; font-family: 'Barlow Condensed', var(--wp--preset--font-family--heading, sans-serif); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.05; }
.ctj-eb h3 { font-family: 'Barlow Condensed', var(--wp--preset--font-family--heading, sans-serif); font-weight: 600; }

/* Bandeau « accès réservé » : bleu lac, pour qu'on voie qu'on n'est plus sur le site public */
.ctj-eb-bandeau {
	margin: 0 0 18px; padding: clamp(22px, 4vw, 40px) clamp(18px, 4vw, 44px);
	border-radius: 16px; background: #0a4d6e; color: #fff;
	background-image: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.10), transparent 60%);
}
.ctj-eb-bandeau__tag {
	display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 4px;
	background: #ff6a13; color: #fff; font-weight: 600; font-size: .9rem;
}
.ctj-eb .ctj-eb-bandeau__titre { color: #fff; font-size: clamp(2rem, 5vw, 3.1rem); text-wrap: balance; }
.ctj-eb-bandeau__texte { max-width: 62ch; margin: 10px 0 0; opacity: .92; }
.ctj-eb-fil { margin-top: 18px; }
.ctj-eb-fil svg { display: block; width: 100%; height: auto; overflow: visible; }
.ctj-eb-fil__num { fill: #fff; font: 700 30px 'Barlow Condensed', sans-serif; }
.ctj-eb-fil__nom { fill: #fff; font: 600 19px system-ui, sans-serif; }
.ctj-eb-fil a:hover circle:first-child, .ctj-eb-fil a:focus circle:first-child { stroke: #ff6a13; stroke-width: 5; }
.ctj-eb-fil a:focus { outline: none; }
.ctj-eb-bandeau .ctj-eb-actions { margin: 20px 0 0; }
.ctj-eb-bandeau .ctj-eb-bouton { background: #fff; border-color: #fff; color: #0a4d6e !important; }
.ctj-eb-bandeau .ctj-eb-bouton--clair { background: transparent; color: #fff !important; }
.ctj-eb-bandeau .ctj-eb-bouton:focus-visible { outline-color: #ff6a13; }
/* Téléphone : le schéma devient illisible, les pastilles de zones juste dessous prennent le relais */
@media (max-width: 600px) { .ctj-eb-fil { display: none; } }
.ctj-eb h3 { margin: 1.6em 0 0.5em; font-size: 1.2rem; }

.ctj-eb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.ctj-eb-bouton {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 18px; line-height: 1.2;
	border: 2px solid var(--wp--preset--color--accent-1); border-radius: 999px;
	background: var(--wp--preset--color--accent-1); color: #fff !important; font: inherit; font-weight: 600;
	text-decoration: none; cursor: pointer;
}
.ctj-eb-bouton--clair { background: transparent; color: var(--wp--preset--color--accent-1) !important; }
.ctj-eb-bouton:focus-visible { outline: 3px solid var(--wp--preset--color--accent-2); outline-offset: 2px; }

.ctj-eb-zones {
	position: sticky; top: 72px; z-index: 5; display: flex; gap: 6px; overflow-x: auto;
	padding: 8px 0; margin-bottom: 8px; background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--ctj-eb-ligne);
}
.ctj-eb-zones a {
	flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px;
	border-radius: 999px; background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--contrast);
	font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.ctj-eb-pastille { display: inline-block; flex: none; width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--z, var(--wp--preset--color--accent-1)); }
.ctj-eb-tete h2 .ctj-eb-pastille { width: 0.7em; height: 0.7em; margin-right: 0.35em; vertical-align: 0.08em; }
.ctj-eb-nomzone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

.ctj-eb-bloc { padding: 28px 0; border-top: 1px solid var(--ctj-eb-ligne); scroll-margin-top: 140px; }
.ctj-eb-bloc:first-of-type { border-top: 0; }
.ctj-eb-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.ctj-eb-resp { margin: 0; padding: 6px 14px; border-radius: 8px; background: var(--wp--preset--color--accent-5); font-size: 0.95rem; }
.ctj-eb-rdv { padding: 12px 16px; border-radius: 8px; background: var(--wp--preset--color--accent-5); }
.ctj-eb-consignes, .ctj-eb-terrain { padding-left: 1.2em; }
.ctj-eb-consignes li, .ctj-eb-terrain li { margin-bottom: 6px; }

.ctj-eb-defile { overflow-x: auto; }
.ctj-eb-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 0.95rem; }
.ctj-eb-table th, .ctj-eb-table td { padding: 9px 10px; border-bottom: 1px solid var(--ctj-eb-ligne); text-align: left; vertical-align: top; }
.ctj-eb-table thead th { border-bottom: 2px solid var(--ctj-eb-ligne); color: var(--wp--preset--color--accent-4); font-weight: 600; }
.ctj-eb-journee { max-width: 640px; }
.ctj-eb-journee tbody th { font-weight: 400; }
.ctj-eb-fort th, .ctj-eb-fort td { font-weight: 700; background: var(--wp--preset--color--accent-5); }
.ctj-eb-nowrap { white-space: nowrap; }
.ctj-eb-vide { color: var(--wp--preset--color--accent-4); }
.ctj-eb-fin {
	margin-top: 16px; padding: 12px 16px; border-radius: 8px;
	background: color-mix(in srgb, var(--wp--preset--color--accent-2) 12%, transparent);
}
.ctj-eb-note { font-size: 0.9rem; color: var(--wp--preset--color--accent-4); }
.ctj-eb-imprime { display: none; }

/* Postes en cartes */
.ctj-eb-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; margin-top: 14px; }
.ctj-eb-poste { padding: 14px 16px; border-radius: 12px; border-top: 4px solid var(--z); background: var(--wp--preset--color--accent-5); break-inside: avoid; }
.ctj-eb .ctj-eb-poste h3 { margin: 0 0 6px; font-size: 1.3rem; }
.ctj-eb-missions { margin: 0 0 10px; padding-left: 1.1em; font-size: .95rem; }
.ctj-eb-qui { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.ctj-eb-qui span { padding: 2px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--ctj-eb-ligne); font-size: .9rem; }
.ctj-eb-qui em { color: var(--wp--preset--color--accent-4); font-size: .9rem; }
.ctj-eb-qui em.ctj-eb-manque { color: #b4530a; font-weight: 600; }
.ctj-eb-poste--mien { background: #fff4ec; box-shadow: 0 0 0 3px #ff6a13; }
.ctj-eb-qui span.ctj-eb-moi-nom { background: #ff6a13; color: #fff; box-shadow: none; font-weight: 600; }

/* Page publique des postes */
.ctj-eb-places { margin: 8px 0 0; display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e3f1dc; color: #1f4a12; font-weight: 600; font-size: .9rem; }
.ctj-eb-places--complet { background: #eceeec; color: var(--wp--preset--color--accent-4); }
.ctj-eb-public__appel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.ctj-eb-public .ctj-eb-bloc:first-of-type { border-top: 0; }

/* Je suis… */
.ctj-eb-moi { margin: 0 0 8px; padding: 14px 16px; border-radius: 12px; background: var(--wp--preset--color--accent-5); }
.ctj-eb-moi label { display: block; margin-bottom: 4px; font-weight: 600; }
.ctj-eb-moi select { width: 100%; max-width: 420px; min-height: 44px; padding: 8px 10px; border: 1px solid #b8c2bb; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; }
.ctj-eb-mes-postes { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 2px #ff6a13; }
.ctj-eb-mes-postes ul { margin: 6px 0 0; padding-left: 1.2em; }

/* Page de gestion (gestionnaire bénévoles) : formulaire des postes dans le site */
.ctj-eb-ok { padding: 12px 16px; border-radius: 8px; background: #e3f1dc; color: #1f4a12; font-weight: 600; }
.ctj-eb-connexion { max-width: 420px; }
.ctj-eb-connexion label { display: block; font-weight: 600; margin-bottom: 4px; }
.ctj-eb-connexion input[type=text], .ctj-eb-connexion input[type=password] { width: 100%; }
.ctj-eb-connexion .login-submit input, .ctj-postes--site button[type=submit] { cursor: pointer; }
.ctj-eb-connexion .login-submit input {
	min-height: 44px; padding: 6px 22px; border: 0; border-radius: 999px;
	background: var(--wp--preset--color--accent-1); color: #fff; font: inherit; font-weight: 600;
}
.ctj-eb input[type=text], .ctj-eb input[type=tel], .ctj-eb input[type=password], .ctj-eb textarea {
	box-sizing: border-box; padding: 8px 10px; border: 1px solid #b8c2bb; border-radius: 6px; font: inherit; font-size: 16px; background: #fff;
}
.ctj-eb input:focus-visible, .ctj-eb textarea:focus-visible { outline: 2px solid #0a4d6e; outline-offset: 1px; }
.ctj-postes--site .zone { border-radius: 10px; }
.ctj-postes--site .form-table { width: 100%; border-collapse: collapse; }
.ctj-postes--site .form-table th { width: 220px; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; }
.ctj-postes--site .form-table td { padding: 8px 0; }
.ctj-postes--site .form-table input, .ctj-postes--site .form-table textarea { width: 100%; }
.ctj-postes--site .description { color: var(--wp--preset--color--accent-4); font-weight: 400; font-size: .9rem; }
.ctj-postes--site details.encadre ul { margin: 8px 0; }
.ctj-postes__envoi {
	position: sticky; bottom: 0; z-index: 5; margin: 0; padding: 12px 0;
	background: var(--wp--preset--color--base); border-top: 1px solid var(--ctj-eb-ligne);
}
@media (max-width: 700px) {
	.ctj-postes--site .form-table th, .ctj-postes--site .form-table td { display: block; width: auto; padding: 4px 0; }
	.ctj-postes--site table.postes thead { display: none; }
	.ctj-postes--site table.postes tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #dcdcde; }
	.ctj-postes--site table.postes td { padding: 0; }
	.ctj-postes--site table.postes td input::placeholder { color: #8a948d; }
}

/* Téléphone : chaque ligne devient une petite fiche */
@media (max-width: 640px) {
	.ctj-eb-zones { top: 60px; }
	.ctj-eb-empile thead { display: none; }
	.ctj-eb-empile tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--ctj-eb-ligne); }
	.ctj-eb-empile td { display: flow-root; border: 0; padding: 2px 0 2px 6.5em; width: auto; }
	.ctj-eb-empile td::before { content: attr(data-l); float: left; width: 6em; margin-left: -6.5em; color: var(--wp--preset--color--accent-4); font-weight: 400; }
}

/* Roadbook imprimé : sans l'en-tête ni le pied du site, une zone par page */
@media print {
	header.wp-block-template-part, footer.wp-block-template-part, #wpadminbar,
	.ctj-eb-actions, .ctj-eb-zones, .ctj-eb-fil, .ctj-eb-moi, .post-password-form { display: none !important; }
	.ctj-eb-poste--mien { background: none; box-shadow: none; } .ctj-eb-poste { border: 1px solid #ccc; border-top: 4px solid var(--z); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.ctj-eb-bandeau { background: none; color: inherit; padding: 0; } .ctj-eb .ctj-eb-bandeau__titre { color: inherit; } .ctj-eb-bandeau__tag { border: 1px solid; background: none; color: inherit; }
	body { font-size: 10.5pt; }
	.ctj-eb a { color: inherit; text-decoration: none; }
	.ctj-eb-bloc { padding: 0 0 12pt; border: 0; }
	.ctj-eb-zone { break-before: page; }
	.ctj-eb-table tr { break-inside: avoid; }
	.ctj-eb-fin, .ctj-eb-resp, .ctj-eb-rdv, .ctj-eb-fort th, .ctj-eb-fort td { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.ctj-eb-pastille { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.ctj-eb-imprime { display: block; }
}
