/* --------------------------------------------------------------------------
   Mise en page des pages du club — Cercle d'escrime de la Rapière.
   Reprend le vocabulaire visuel du simulateur : vert #2E5A2E, pastilles
   numérotées, pilules, filets fins. Aucune règle ne s'applique en dehors
   des classes rap-*, donc rien ne bouge sur les pages qui ne les portent pas.
   -------------------------------------------------------------------------- */

:root {
	--rap-vert:      #2E5A2E;
	--rap-vert-fonce:#234523;
	--rap-vert-clair:#F3F7F2;
	--rap-filet:     #E1E8DF;
	--rap-encre:     #1A211B;
	--rap-encre2:    #5A645C;
}

/* --- Étiquette de section : « PREMIER PAS », « ENSUITE »… ----------------
   La spécificité doit dépasser celle du thème (.entry-content p), sans quoi
   l'étiquette garde sa marge de 20 px et flotte au-dessus du titre. */
.entry-content p.rap-eyebrow,
.rap-eyebrow {
	margin: 0 0 .35rem;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--rap-vert);
}

/* --- Titres de section --------------------------------------------------
   Le thème pose les h2 à 30 px : trop loin du corps de texte (16 px) quand
   la section qui suit est faite de courtes lignes. On resserre l'écart. */
.entry-content .rap-eyebrow + h2 {
	margin-top: 0;
	margin-bottom: 1.1rem;
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.entry-content .rap-eyebrow { margin-top: 3.2rem; }
.entry-content > .rap-eyebrow:first-child { margin-top: 0; }

/* --- Raccourci pour les personnes qui se réinscrivent -------------------- */
.entry-content p.rap-raccourci,
.rap-raccourci {
	margin: -.4rem 0 0;
	font-size: 14.5px;
	color: var(--rap-encre2);
}
.rap-raccourci a { color: var(--rap-vert); }

/* --- Carte d'action : le bloc qui porte un bouton principal -------------- */
.rap-action {
	background: var(--rap-vert-clair);
	border: 1px solid var(--rap-filet);
	border-radius: 12px;
	padding: 1.7rem 1.9rem 1.8rem;
}
.rap-action > *:first-child { margin-top: 0; }
.rap-action > *:last-child  { margin-bottom: 0; }
.rap-action .rap-note {
	margin: 1.1rem 0 0;
	font-size: 13.5px;
	color: var(--rap-encre2);
}

/* --- Boutons principaux -------------------------------------------------- */
.rap-action .wp-block-buttons { margin: 1.4rem 0 0; }
.rap-action .wp-block-button__link {
	display: inline-block;
	padding: .9rem 1.9rem;
	border: 0;
	border-radius: 999px;
	background: var(--rap-vert);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	box-shadow: 0 2px 6px rgba(35, 69, 35, .22), 0 8px 20px rgba(35, 69, 35, .14);
	transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.rap-action .wp-block-button__link:hover,
.rap-action .wp-block-button__link:focus-visible {
	background: var(--rap-vert-fonce);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(35, 69, 35, .26), 0 14px 28px rgba(35, 69, 35, .18);
}
.rap-action .wp-block-button__link:active { transform: translateY(0); }

/* La flèche, décorative : elle avance au survol. */
.rap-action .wp-block-button__link::after {
	content: "\2192";
	margin-left: .6rem;
	display: inline-block;
	transition: transform .15s ease;
}
.rap-action .wp-block-button__link:hover::after { transform: translateX(3px); }

/* --- Les trois étapes, en pastilles numérotées --------------------------- */
.rap-etapes { counter-reset: rap-etape; margin: 1.6rem 0 2rem; }
.rap-etapes .wp-block-column {
	counter-increment: rap-etape;
	position: relative;
	padding-left: 2.9rem;
}
.rap-etapes .wp-block-column::before {
	content: counter(rap-etape);
	position: absolute;
	left: 0;
	top: .05rem;
	display: grid;
	place-items: center;
	width: 1.95rem;
	height: 1.95rem;
	border-radius: 50%;
	background: var(--rap-vert);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.rap-etapes .wp-block-column > p { margin: 0; font-size: 15.5px; line-height: 1.65; }
.rap-etapes strong {
	display: block;
	margin-bottom: .1rem;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rap-encre);
}

/* --- Accordéons « Le détail complet » ----------------------------------- */
.rap-detail { margin-top: 1.2rem; }
.rap-detail .wp-block-details {
	border-top: 1px solid var(--rap-filet);
	margin: 0;
	padding: 0;
}
.rap-detail .wp-block-details:last-of-type { border-bottom: 1px solid var(--rap-filet); }
.rap-detail .wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: baseline;
	gap: .75rem;
	padding: 1.05rem .1rem;
	font-weight: 600;
	color: var(--rap-encre);
	transition: color .12s ease;
}
.rap-detail .wp-block-details > summary::-webkit-details-marker { display: none; }
.rap-detail .wp-block-details > summary::before {
	content: "+";
	color: var(--rap-vert);
	font-weight: 400;
	font-size: 1.25em;
	line-height: 1;
	width: .8em;
	flex: none;
}
.rap-detail .wp-block-details[open] > summary::before { content: "\2013"; }
.rap-detail .wp-block-details > summary:hover { color: var(--rap-vert); }
.rap-detail .wp-block-details[open] { padding-bottom: 1.4rem; }
.rap-detail .wp-block-details > *:not(summary) { margin-left: 1.55rem; }

@media (max-width: 600px) {
	.rap-action { padding: 1.4rem 1.2rem 1.5rem; }
	/* Pleine largeur : plus lisible qu'une pilule qui passe à la ligne. */
	.rap-action .wp-block-buttons { display: block; }
	.rap-action .wp-block-button,
	.rap-action .wp-block-button__link { display: block; width: 100%; text-align: center; }
	.rap-action .wp-block-button__link { padding-left: 1rem; padding-right: 1rem; }
	/* La flèche ferait passer le libellé à la ligne sur un écran étroit. */
	.rap-action .wp-block-button__link::after { display: none; }
	.rap-etapes .wp-block-column { padding-left: 2.6rem; }
	.rap-detail .wp-block-details > *:not(summary) { margin-left: 0; }
}

/* ==========================================================================
   Les tableaux publics : tarifs, matériel, documents, pièces à fournir.

   Ce sont les raccourcis [rapiere_grille_tarifs], [rapiere_grille_materiel],
   [rapiere_documents] et [rapiere_regles_sante]. Leur mise en forme vivait
   dans une version antérieure de l'extension et s'était perdue en route : les
   tableaux sortaient sans bordures, les montants alignés à gauche, et
   « École d'escrimeM9 » collé en un mot. Rendue à l'extension, pour qu'elle
   n'ait plus besoin de CSS écrit dans la page.
   ========================================================================== */

.rap-grille { margin: 1.2rem 0; overflow-x: auto; }
.rap-grille table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.rap-grille caption { caption-side: top; text-align: left; font-size: 12.5px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: #5A645C; padding: 0 0 .6rem; }
.rap-grille th, .rap-grille td { border: 0; border-bottom: 1px solid #E1E8DF;
	padding: .5rem .45rem; text-align: left; vertical-align: top; }
.rap-grille thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
	color: #5A645C; font-weight: 600; }
.rap-grille tbody th { font-weight: 400; }
.rap-grille tbody tr:last-child th, .rap-grille tbody tr:last-child td { border-bottom: 0; }
.rap-grille .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rap-grille .c { text-align: center; white-space: nowrap; }
.rap-grille .t { font-weight: 700; }
.rap-grille .rap-oui { color: #2E5A2E; font-weight: 700; }
.rap-grille .rap-non { color: #B6BDB6; }
.rap-grille-note { margin: .7rem 0 0; font-size: 13.5px; color: #5A645C; }
.rap-grille-p { margin: .9rem 0 0; }

/* La catégorie et les années de naissance, sous l'intitulé du tarif. */
.rap-precision { display: block; font-size: 12.5px; color: #5A645C; }

/* Un intertitre discret, au-dessus d'une liste. Le même dans les deux blocs. */
.rap-documents-t, .rap-regles-t { margin: 1.1rem 0 .3rem; font-size: 12.5px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; color: #5A645C; }

.rap-documents { margin: 0 0 0 1.2rem; }
.rap-documents li { margin: .25rem 0; }
.rap-documents a[href$=".pdf"]::after { content: " (PDF)"; font-size: .85em; opacity: .75; }
.rap-doc-pour { color: #5A645C; font-size: 13.5px; }

.rap-regles-communs { margin: 0 0 0 1.2rem; }
.rap-regles-communs li { margin: .25rem 0; }
/* La liste des règles de santé était habillée ici ET dans rapiere-donnees.php,
   avec le même sélecteur. Les deux jeux de règles se complétaient sans le
   vouloir : le filet du haut venait de l'un, la barre de gauche de l'autre, et
   chaque entrée se retrouvait encadrée sur deux côtés — un tableau que personne
   n'avait dessiné. Une seule écriture désormais, dans rapiere-donnees.php,
   auprès du code qui fabrique la liste. Ne pas remettre de .rap-regles-sante,
   .rap-qui, .rap-cat, .rap-quoi ni .rap-note ici. */
