/* ==========================================================================
   composants.css — pastilles de titre, boutons, cartes, en-tête, pied de page.
   ========================================================================== */

/* ---- Pastilles (titres sur fond rose ou marine) ----------------------- */

.pastille {
	border-radius: var(--rayon);
	text-align: center;
}

.pastille-rose {
	background-color: var(--rose);
}

.pastille-marine {
	background-color: var(--marine);
	color: #fff;
}

/* Titre de section : pastille de 500 px centrée, capitales soulignées ; jamais plus large que sa
   colonne (L2 : Divi la laissait déborder en mobile). */
.titre-section {
	width: 500px;
	max-width: 100%;
	overflow-wrap: break-word;
	padding: 10px 10px 15px;
	font-size: 50px;
	line-height: 50px;
	text-transform: uppercase;
	text-decoration: underline;
	color: #fff;
}

.titre-section.titre-moyen {
	font-size: 40px;
	line-height: 40px;
}

.titre-section.titre-noir {
	color: #000;
}

/* Titre de catégorie de la carte (pastille marine). */
.titre-categorie {
	width: 500px;
	max-width: 100%;
	overflow-wrap: break-word;
	padding: 10px 10px 15px;
	font-size: 30px;
	line-height: 30px;
	text-transform: uppercase;
	text-decoration: underline;
}

.titre-categorie.titre-categorie-etroit {
	width: 400px;
	line-height: 39px;
}

/* Titre de carte (rituel, Ka'Mille). */
.titre-carte {
	padding: 10px;
	font-size: 30px;
	line-height: 30px;
	text-align: center;
	text-decoration: underline;
}

/* ---- Boutons ---------------------------------------------------------- */

.wp-block-buttons.bouton-ligne {
	display: block;
}

.bouton {
	width: 100%;
}

.bouton .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 0 30px;
	border: 0;
	border-radius: var(--rayon);
	font-family: inherit;
	font-size: 30px;
	font-weight: 500;
	line-height: 51px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.bouton-marine .wp-block-button__link {
	background-color: var(--marine);
	color: #fff;
}

.bouton-lavande .wp-block-button__link {
	padding: 9px 30px;
	background-color: var(--lavande);
	color: var(--marine);
}

.bouton-marine .wp-block-button__link:hover,
.bouton-marine .wp-block-button__link:focus-visible {
	background-color: #16305f;
}

.bouton-lavande .wp-block-button__link:hover,
.bouton-lavande .wp-block-button__link:focus-visible {
	background-color: #c4baea;
}

/* ---- Cartes de rituels (boucles de requête de l'accueil) -------------- */

.boucle-rituels .grille-rituels {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.grille-rituels > .wp-block-post {
	display: flex;
	margin: 0;
}

.carte-rituel {
	display: flex;
	flex: 1;
	flex-direction: column;
	row-gap: 10px;
	min-width: 0;
	background-color: #fff;
	border-radius: var(--rayon);
}

.carte-rituel > .titre-carte {
	margin: 10px 10px 0;
	background-color: var(--rose);
	color: #000;
	border-radius: var(--rayon);
	text-align: center;
}

.carte-rituel > .carte-photo {
	margin: 0 10px;
}

.carte-rituel > .carte-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rayon);
}

.carte-rituel > .carte-tarif {
	margin: 0 10px;
	font-size: 18px;
	text-align: center;
}

.carte-rituel > .carte-description {
	margin: 10px;
	font-size: 18px;
	text-align: center;
}

.carte-rituel > .carte-description:empty {
	display: none;
}

.carte-rituel > .carte-description p {
	padding-bottom: 1em;
}

.carte-rituel > .carte-description p:last-child {
	padding-bottom: 0;
}

/* Bouton poussé en bas de la carte (margin-top:auto de Divi). */
.carte-rituel > .carte-rdv {
	margin: auto 10px 10px;
}

@media (max-width: 980px) {
	.boucle-rituels .grille-rituels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}
}

@media (max-width: 767px) {
	.boucle-rituels .grille-rituels {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Titres ramenés à la largeur de l'écran (L2). */
	.titre-section {
		font-size: 40px;
		line-height: 40px;
	}

	.titre-section.titre-moyen {
		font-size: 34px;
		line-height: 34px;
	}

	.titre-categorie,
	.titre-categorie.titre-categorie-etroit {
		font-size: 26px;
		line-height: 31px;
	}
}

/* ---- En-tête ------------------------------------------------------------ */

.site-header {
	position: relative;
	z-index: 10;
	background-color: #fff;
}

.entete-rangee {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 20px;
	align-items: start;
	padding: 10px 0;
}

.entete-rangee > .entete-reseaux {
	grid-column: span 2;
}

.bouton-pastille {
	width: 100%;
}

.bouton-pastille .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 10px 10px 5px;
	border-radius: var(--rayon);
	font-size: 30px;
	line-height: 23.8px;
	text-align: center;
	text-transform: uppercase;
}

.bouton-pastille.pastille-rose .wp-block-button__link {
	background-color: var(--rose);
	color: #000;
}

.bouton-pastille.pastille-marine .wp-block-button__link {
	background-color: var(--marine);
	color: #fff;
}

.bouton-pastille.pastille-rose,
.bouton-pastille.pastille-marine {
	background: none;
}

.site-header .entete-reseaux {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header .entete-reseaux .wp-social-link {
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: var(--rayon);
	color: #fff;
}

.site-header .entete-reseaux .wp-social-link.wp-social-link-instagram {
	background-color: #EA2C59;
}

.site-header .entete-reseaux .wp-social-link.wp-social-link-facebook {
	background-color: #3B5998;
}

.site-header .entete-reseaux .wp-social-link a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	color: #fff;
}

.site-header .entete-reseaux .wp-social-link svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* En-tête mobile sur deux lignes (L2b, choix du 2026-12-01 ; Divi empilait trois lignes, 172 px) :
   téléphone + réseaux, puis le bouton de rendez-vous sur toute la largeur. */
@media (max-width: 767px) {
	.entete-rangee {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 10px;
		row-gap: 10px;
	}

	.entete-rangee > .entete-tel {
		grid-column: 1;
		grid-row: 1;
	}

	.entete-rangee > .entete-reseaux {
		grid-column: 2;
		grid-row: 1;
	}

	.entete-rangee > .entete-rdv {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* ---- Pied de page ------------------------------------------------------ */

.site-footer {
	padding-bottom: 10px;
	background-color: var(--marine);
	color: #fff;
}

.pied-rangee {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 15px 0 10px;
}

.pied-signature {
	font-size: 16px;
	font-weight: 300;
	line-height: 28.8px;
}

.pied-liens {
	font-size: 16px;
	line-height: 23.8px;
	text-align: right;
	color: var(--blanc-casse);
}

.pied-liens a {
	font-weight: 600;
	color: #fff;
}

.pied-liens a:hover,
.pied-liens a:focus-visible,
.pied-signature a:hover,
.pied-signature a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.pied-rangee {
		grid-template-columns: minmax(0, 1fr);
	}

	.pied-signature,
	.pied-liens {
		text-align: center;
	}
}
