/* ==========================================================================
   V2-8 — Page Handisecours (/handisecours/)
   Chargée seulement sur cette page (inc/v2/handisecours.php). Les blocs de la page portent
   des classes « tk-handi-… » (Avancé > Classe(s) CSS dans l'éditeur) : si l'association
   les retire, le bloc garde simplement le style normal des pages.
   Attention : dans ce thème classique, un bloc Groupe enveloppe son contenu dans une boîte
   intérieure « .wp-block-group__inner-container ». Les règles de disposition (flex, gap,
   marges des enfants) visent donc aussi cette boîte, pas seulement le groupe.
   ========================================================================== */

.tk-page-handisecours {
	/* Grande photo : plus large que la colonne de texte, sans jamais dépasser l'écran. */
	--tk-handi-large: min(1100px, calc(100vw - 2 * var(--tk-marge)));
}

/* ---------- Grande photo (photo à la une) ---------- */
.tk-page-handisecours .tk-photo-page {
	width: var(--tk-handi-large);
	max-width: none;
	margin-left: calc((100% - var(--tk-handi-large)) / 2);
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: center 40%;
	border-radius: 22px;
}
/* Photo plus petite que l'emplacement (classe posée par page.php) : jamais agrandie
   (elle deviendrait floue), affichée entière à sa taille réelle et centrée. */
.tk-page-handisecours .tk-photo-page.tk-photo-taille-reelle {
	width: auto;
	max-width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	align-self: center;
	aspect-ratio: auto;
	object-fit: fill;
}

/* ---------- Accroche (maquette) ---------- */
.tk-page-handisecours .tk-handi-accroche {
	font-family: var(--tk-police-titre);
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.15;
	color: var(--tk-encre);
	text-wrap: balance;
}

/* ---------- Phrase d'introduction ---------- */
.tk-page-handisecours .tk-handi-intro {
	font-size: clamp(19px, 2.2vw, 22px);
	line-height: 1.5;
	color: var(--tk-encre);
}

/* ---------- Chiffre « 50+ » ---------- */
.tk-page-handisecours .tk-handi-chiffre {
	padding: 22px 26px;
	background: var(--tk-rouge-pale);
	border: 1px solid var(--tk-rose-trait);
	border-radius: 18px;
}
.tk-page-handisecours .tk-handi-chiffre,
.tk-page-handisecours .tk-handi-chiffre > .wp-block-group__inner-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
}
.tk-page-handisecours .tk-handi-chiffre > .wp-block-group__inner-container { flex: 1 1 100%; min-width: 0; }
.tk-page-handisecours .tk-handi-chiffre > *,
.tk-page-handisecours .tk-handi-chiffre > .wp-block-group__inner-container > * { margin: 0; }
.tk-page-handisecours .tk-handi-chiffre-valeur {
	flex: 0 0 auto;
	font-family: var(--tk-police-titre);
	font-weight: 800;
	font-size: clamp(48px, 7vw, 72px);
	line-height: 1;
	color: var(--tk-rouge-fonce);
}
.tk-page-handisecours .tk-handi-chiffre-libelle {
	flex: 1 1 200px;
	min-width: 0;
	font-size: clamp(18px, 2vw, 21px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tk-encre);
}

/* ---------- Matériel concerné : étiquettes ---------- */
.tk-page-handisecours .tk-contenu .tk-handi-materiel {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
}
.tk-page-handisecours .tk-contenu .tk-handi-materiel li {
	margin: 0;
	padding: 8px 16px;
	background: var(--tk-sable);
	border: 1px solid var(--tk-trait);
	border-radius: 999px;
	font-weight: 600;
	color: var(--tk-encre);
}

/* ---------- Perspectives 2026 ---------- */
.tk-page-handisecours .tk-handi-perspective {
	padding: 22px 26px;
	background: var(--tk-sable);
	border-left: 5px solid var(--tk-marine);
	border-radius: 0 18px 18px 0;
}
.tk-page-handisecours .tk-handi-perspective > *,
.tk-page-handisecours .tk-handi-perspective > .wp-block-group__inner-container > * { margin: 0; }
.tk-page-handisecours .tk-handi-perspective > * + *,
.tk-page-handisecours .tk-handi-perspective > .wp-block-group__inner-container > * + * { margin-top: .6em; }
.tk-page-handisecours .tk-handi-perspective h2 { font-size: clamp(22px, 2.6vw, 28px); }

/* ---------- Missions liées ([totoke_missions]) ---------- */
.tk-page-handisecours .tk-missions-liees { margin-top: 2em; }
.tk-page-handisecours .tk-missions-liees-titre {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 32px);
}
.tk-page-handisecours .tk-missions-liees .tk-missions { gap: 20px; }
/* Titre des cartes : comme sur /missions/ (annule « .tk-contenu h3 » de totoke.css :
   grande marge au-dessus, interligne serré, couleur des liens du texte). */
.tk-page-handisecours .tk-contenu .tk-missions-liees .tk-carte-mission-titre {
	margin: 0;
	line-height: 1.25;
}
.tk-page-handisecours .tk-contenu .tk-missions-liees .tk-carte-mission-titre a { color: var(--tk-encre); }

/* ---------- Les deux boutons (don d'argent, don de matériel) ---------- */
/* 16 px entre les boutons : le contour de focus (3 px + 2 px de décalage) ne touche pas le voisin. */
.tk-page-handisecours .tk-handi-actions,
.tk-page-handisecours .tk-handi-actions > .wp-block-group__inner-container,
.tk-page-handisecours .tk-handi-actions .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}
.tk-page-handisecours .tk-handi-actions > .wp-block-group__inner-container { flex: 1 1 100%; min-width: 0; }
.tk-page-handisecours .tk-handi-actions > *,
.tk-page-handisecours .tk-handi-actions > .wp-block-group__inner-container > *,
.tk-page-handisecours .tk-handi-actions .tk-bloc-bouton,
.tk-page-handisecours .tk-handi-actions .wp-block-button { margin: 0; }
.tk-page-handisecours .tk-handi-actions .tk-bouton,
.tk-page-handisecours .tk-handi-actions .wp-block-button__link {
	min-height: 52px;
	padding: 13px 28px;
	font-size: 17px;
	justify-content: center;
}
/* Même hauteur pour le bouton plein et le bouton contour (bordure de 2 px de ce dernier). */
.tk-page-handisecours .tk-handi-actions .wp-block-button:not(.is-style-outline) .wp-block-button__link { border: 2px solid transparent; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
	.tk-page-handisecours .tk-photo-page { aspect-ratio: 4 / 3; border-radius: 16px; }
	.tk-page-handisecours .tk-handi-chiffre,
	.tk-page-handisecours .tk-handi-perspective { padding: 18px 18px; }
}

@media (max-width: 480px) {
	/* Boutons l'un sous l'autre, sur toute la largeur. */
	.tk-page-handisecours .tk-handi-actions > *,
	.tk-page-handisecours .tk-handi-actions > .wp-block-group__inner-container > *,
	.tk-page-handisecours .tk-handi-actions .wp-block-buttons,
	.tk-page-handisecours .tk-handi-actions .wp-block-button { flex: 1 1 100%; width: 100%; }
	.tk-page-handisecours .tk-handi-actions .tk-bouton,
	.tk-page-handisecours .tk-handi-actions .wp-block-button__link { display: flex; width: 100%; text-align: center; }
}
