/*
Theme Name: Lou Surfou
Description: Thème blocs du Lou Surfou Surf Club (Seignosse). Couleurs et typographies de la charte graphique, modifiable dans l'éditeur de site.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: lousurfou
*/

:root {
	--lsf-bord: #C3CFDA;
	--lsf-bord-doux: #D9E2EA;
	--lsf-rayon-carte: var(--wp--custom--rayon--carte, 18px);
	--lsf-rayon-champ: 12px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

p,
li {
	text-wrap: pretty;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--wp--preset--color--ocean);
	outline-offset: 2px;
}

.has-nuit-background-color a:focus-visible,
.has-nuit-background-color button:focus-visible {
	outline-color: var(--wp--preset--color--soleil);
}

a {
	text-underline-offset: 3px;
}

/* Fonds sombres : titres et liens lisibles */
.has-nuit-background-color :is(h1, h2, h3, h4, h5, h6),
.has-ocean-background-color :is(h1, h2, h3, h4, h5, h6),
.has-braise-background-color :is(h1, h2, h3, h4, h5, h6) {
	color: var(--wp--preset--color--blanc);
}

/* ---------- Styles de blocs ---------- */

.is-style-etiquette,
.wp-block-post-date.is-style-etiquette,
.wp-block-post-terms.is-style-etiquette {
	font-family: var(--wp--preset--font-family--menu);
	font-weight: 600;
	font-size: 0.9375rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}

.is-style-etiquette a {
	color: inherit;
	text-decoration: none;
}

.is-style-signature {
	font-family: var(--wp--preset--font-family--signature);
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	color: var(--wp--preset--color--soleil);
	transform: rotate(-4deg);
	transform-origin: left center;
}

.is-style-pastille {
	display: inline-block;
	width: fit-content;
	padding: 0.2rem 0.8rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.4;
	background: var(--wp--preset--color--soleil);
	color: var(--wp--preset--color--encre);
}

.is-style-pastille.has-background {
	padding: 0.2rem 0.8rem;
}

.wp-block-group.is-style-carte,
.lsf-carte {
	border-radius: var(--lsf-rayon-carte);
	overflow: hidden;
}

.wp-block-group.is-style-carte:not(.has-background) {
	background: var(--wp--preset--color--ecume);
}

.wp-block-group.is-style-carte {
	padding: 1.5rem;
}

.wp-block-button.is-style-soleil .wp-block-button__link {
	background: var(--wp--preset--color--soleil);
	border-color: var(--wp--preset--color--soleil);
	color: var(--wp--preset--color--encre);
}

.wp-block-button.is-style-soleil .wp-block-button__link:hover,
.wp-block-button.is-style-soleil .wp-block-button__link:focus {
	background: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
}

.wp-block-button.is-style-contour-clair .wp-block-button__link {
	background: transparent;
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--blanc);
}

.wp-block-button.is-style-contour-clair .wp-block-button__link:hover,
.wp-block-button.is-style-contour-clair .wp-block-button__link:focus {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
}

.wp-block-button.is-style-blanc .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	border-color: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--nuit);
}

.wp-block-button.is-style-blanc .wp-block-button__link:hover,
.wp-block-button.is-style-blanc .wp-block-button__link:focus {
	background: var(--wp--preset--color--nuit);
	border-color: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--braise);
	border-color: var(--wp--preset--color--braise);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--braise);
	color: var(--wp--preset--color--blanc);
}

.wp-block-button__link {
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

ul.is-style-pastilles {
	list-style: none;
	padding-left: 0;
}

ul.is-style-pastilles > li {
	position: relative;
	padding-left: 2.75rem;
	margin-bottom: 1rem;
}

ul.is-style-pastilles > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--soleil);
}

ul.is-style-pastilles > li:nth-child(4n + 2)::before {
	background: var(--wp--preset--color--braise);
}

ul.is-style-pastilles > li:nth-child(4n + 3)::before {
	background: var(--wp--preset--color--ocean);
}

ul.is-style-pastilles > li:nth-child(4n + 4)::before {
	background: var(--wp--preset--color--nuit);
}

.lsf-lien-fleche a,
a.lsf-lien-fleche {
	font-weight: 700;
	color: var(--wp--preset--color--braise);
}

/* ---------- Vague en bas d'un bandeau ---------- */

.has-vague-bas {
	position: relative;
}

.has-vague-bas::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='22' viewBox='0 0 88 22'%3E%3Cpath fill='%23fff' d='M0 22V15Q22-9 44 15Q66-9 88 15V22Z'/%3E%3C/svg%3E") repeat-x bottom left / 88px 22px;
	pointer-events: none;
}

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

.wp-site-blocks > header:has(.lsf-entete) {
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 var(--lsf-bord-doux);
}

.admin-bar .wp-site-blocks > header:has(.lsf-entete) {
	top: var(--wp-admin--admin-bar--height, 0px);
}

.lsf-entete .wp-block-site-logo img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 0;
}

.lsf-entete .wp-block-site-logo,
.lsf-entete-actions {
	flex-shrink: 0;
}

.lsf-nav .wp-block-navigation-item__content {
	padding: 0.4rem 0;
}

.lsf-nav .wp-block-navigation__submenu-container {
	min-width: 16rem !important;
	padding: 0.5rem 0;
	border: 0 !important;
	border-radius: 14px;
	box-shadow: var(--wp--preset--shadow--carte);
	background: var(--wp--preset--color--blanc) !important;
}

.lsf-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.55rem 1.1rem;
	font-family: var(--wp--preset--font-family--texte);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.lsf-entete .wc-block-mini-cart__button {
	color: var(--wp--preset--color--nuit);
	padding: 0.5rem;
}

.lsf-bouton-adherer .wp-block-button__link {
	padding: 0.6rem 1.3rem;
}

/* Menu mobile */
.lsf-nav .wp-block-navigation__responsive-container-open {
	padding: 0.5rem;
	color: var(--wp--preset--color--nuit);
}

.lsf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
	padding: 1.25rem clamp(1rem, 5vw, 2rem) 2rem;
}

.lsf-nav .is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--blanc);
	font-size: 1.25rem;
	padding: 0.5rem 0;
}

.lsf-nav .is-menu-open .wp-block-navigation__container {
	gap: 0.75rem;
	width: 100%;
}

.lsf-nav .is-menu-open .wp-block-navigation__submenu-container {
	background: transparent !important;
	box-shadow: none;
	padding: 0 0 0.5rem 1rem !important;
	min-width: 0 !important;
}

.lsf-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: #C9D6E2;
	font-size: 1.0625rem;
	padding: 0.4rem 0;
}

@media (max-width: 599px) {
	.lsf-entete > .wp-block-group {
		gap: 0.5rem;
	}

	.lsf-entete .wp-block-site-logo img {
		width: 56px;
		height: 56px;
	}

	.lsf-nav {
		order: 3;
	}

	.lsf-entete-actions {
		margin-left: auto;
	}
}

@media (min-width: 600px) and (max-width: 1099px) {
	.lsf-nav .wp-block-navigation__container {
		gap: 0.9rem;
	}

	.lsf-nav {
		font-size: 0.9375rem !important;
		letter-spacing: 0.04em !important;
	}
}

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

.lsf-pied a {
	text-decoration: none;
}

.lsf-pied a:hover {
	text-decoration: underline;
	color: var(--wp--preset--color--soleil);
}

ul.lsf-liens {
	list-style: none;
	padding-left: 0;
	margin-top: 0.5rem;
}

ul.lsf-liens li {
	margin-bottom: 0.4rem;
}

.lsf-pied .wp-block-site-logo img {
	border-radius: 0;
}

/* ---------- Contenu ---------- */

.lsf-accueil .wp-block-post-content > *,
.lsf-main .wp-block-post-content > .alignfull {
	margin-block-start: 0;
}

.lsf-bandeau .wp-block-post-title,
.lsf-bandeau h1 {
	margin: 0;
}

.wp-block-details summary {
	font-weight: 700;
	cursor: pointer;
}

.wp-block-details[open] summary {
	margin-bottom: 0.75rem;
}

.wp-block-table {
	overflow-x: auto;
}

.wp-block-table table,
.lsf-main table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th,
.lsf-main table td,
.lsf-main table th {
	border: 1px solid var(--lsf-bord-doux);
	padding: 0.6rem 0.8rem;
	text-align: left;
}

.wp-block-table th,
.lsf-main table th {
	background: var(--wp--preset--color--ecume);
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--lsf-bord-doux);
}

.wp-block-post-navigation-link a {
	font-weight: 700;
}

/* Cartes d'articles */
.lsf-carte-article {
	height: 100%;
}

.lsf-titre-carte a {
	color: var(--wp--preset--color--nuit);
	text-decoration: none;
}

.lsf-titre-carte a:hover {
	color: var(--wp--preset--color--braise);
}

.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
	font-weight: 700;
}

/* ---------- Grilles dynamiques (équipe, entraînements, événements, logos) ---------- */

.lsf-grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lsf-grille > li {
	margin: 0;
}

.lsf-grille a {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: var(--wp--preset--color--encre);
	background: var(--wp--preset--color--ecume);
	border-radius: var(--lsf-rayon-carte);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lsf-grille a:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--carte);
}

.lsf-membre img,
.lsf-membre-vide {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--lsf-bord-doux);
}

.lsf-membre-nom,
.lsf-pratique-titre {
	padding: 0.9rem 1.1rem 0;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--wp--preset--color--nuit);
}

.lsf-membre-nom:last-child {
	padding-bottom: 1rem;
}

.lsf-membre-role {
	padding: 0.15rem 1.1rem 1rem;
	font-size: 0.9375rem;
	color: #4A5868;
}

.lsf-pratique img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.lsf-pratique-lien {
	padding: 0.35rem 1.1rem 1.1rem;
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--braise);
	margin-top: auto;
}

.lsf-evenements {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.lsf-grille .lsf-evenement a {
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.1rem;
	background: var(--wp--preset--color--blanc);
}

.lsf-date {
	flex: 0 0 4.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.25rem;
	border-radius: 12px;
	background: var(--wp--preset--color--nuit);
	text-align: center;
}

.lsf-date-jour {
	font-family: var(--wp--preset--font-family--titres);
	font-size: 1.5rem;
	line-height: 1;
	color: var(--wp--preset--color--soleil);
}

.lsf-date-mois {
	margin-top: 0.25rem;
	font-family: var(--wp--preset--font-family--menu);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blanc);
}

.lsf-evenement-texte {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.lsf-evenement-titre {
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.25;
	color: var(--wp--preset--color--nuit);
}

.lsf-evenement-resume {
	font-size: 0.9375rem;
	line-height: 1.45;
}

.lsf-logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 1rem;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lsf-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem;
	min-height: 6.5rem;
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--lsf-bord-doux);
	border-radius: 14px;
}

.lsf-logos img {
	max-height: 4.5rem;
	width: auto;
	object-fit: contain;
	border-radius: 0;
}

.lsf-fiche {
	margin: 1.25rem 0 0;
	padding: 1.1rem 1.25rem;
	background: var(--wp--preset--color--ecume);
	border-radius: var(--lsf-rayon-carte);
}

.lsf-fiche div + div {
	margin-top: 0.75rem;
}

.lsf-fiche dt {
	font-family: var(--wp--preset--font-family--menu);
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ocean);
}

.lsf-fiche dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* ---------- Accueil ---------- */

.lsf-hero-visuel {
	position: relative;
}

.lsf-hero-visuel img {
	width: 100%;
	aspect-ratio: 10 / 9;
	object-fit: cover;
	border-radius: var(--wp--custom--rayon--image);
}

.lsf-badge {
	position: absolute;
	left: -1.25rem;
	bottom: -1.25rem;
	width: 6.75rem;
	height: 6.75rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 5px solid var(--wp--preset--color--nuit);
	background: var(--wp--preset--color--soleil);
	color: var(--wp--preset--color--encre);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.1;
	text-align: center;
}

.lsf-badge strong {
	display: block;
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 400;
	font-size: 1.875rem;
}

.lsf-acces > .wp-block-group {
	height: 100%;
}

.lsf-acces a {
	color: var(--wp--preset--color--nuit);
	text-decoration: none;
}

.lsf-acces a:hover {
	color: var(--wp--preset--color--braise);
}

.lsf-acces .wp-block-group.is-style-carte {
	position: relative;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lsf-acces .wp-block-group.is-style-carte:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--carte);
}

.lsf-acces h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.lsf-icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--ocean);
}

.lsf-icone img {
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 0;
}

.lsf-parcours h3 {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 400;
}

.lsf-parcours .wp-block-list {
	padding-left: 1.2rem;
	font-size: 0.9375rem;
}

@media (max-width: 781px) {
	.lsf-badge {
		left: 0.75rem;
		bottom: -1rem;
		width: 5.75rem;
		height: 5.75rem;
	}

	.lsf-badge strong {
		font-size: 1.5rem;
	}
}

/* ---------- Formulaires ---------- */

:where(.lsf-main, .lsf-bandeau, .lsf-pied) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], select, textarea),
.wp-block-search__input {
	width: 100%;
	max-width: 100%;
	min-height: 3rem;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--wp--preset--color--encre);
	background: var(--wp--preset--color--blanc);
	border: 1.5px solid var(--lsf-bord);
	border-radius: var(--lsf-rayon-champ);
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(.lsf-main, .lsf-bandeau, .lsf-pied) select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%2312283F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
}

:where(.lsf-main, .lsf-bandeau, .lsf-pied) textarea {
	min-height: 9rem;
	resize: vertical;
}

:where(.lsf-main, .lsf-bandeau, .lsf-pied) :is(input, select, textarea):focus {
	border-color: var(--wp--preset--color--ocean);
	box-shadow: 0 0 0 3px rgba(53, 119, 189, 0.22);
	outline: none;
}

:where(.lsf-main) :is(input[type="checkbox"], input[type="radio"]) {
	width: 1.25rem;
	height: 1.25rem;
	accent-color: var(--wp--preset--color--braise);
	vertical-align: -0.2em;
}

:where(.lsf-main) label {
	font-weight: 600;
}

:where(.lsf-main) ::placeholder {
	color: #6B7785;
	opacity: 1;
}

.wpcf7-form p {
	margin: 0 0 1rem;
}

.wpcf7-form label {
	display: block;
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.35rem;
}

:where(.lsf-main, .lsf-bandeau, .lsf-pied) :is(input[type="submit"], button[type="submit"]:not(.wp-block-search__button):not([class*="wc-block"]):not(.components-button), .wpcf7-submit, .frm_button_submit, .tnp-submit),
.wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.8rem 1.6rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--blanc);
	background: var(--wp--preset--color--braise);
	border: 2px solid var(--wp--preset--color--braise);
	border-radius: 999px;
	cursor: pointer;
	width: auto;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

:where(.lsf-main, .lsf-bandeau, .lsf-pied) :is(input[type="submit"], button[type="submit"], .wpcf7-submit, .frm_button_submit, .tnp-submit):hover,
.wp-block-search__button:hover {
	background: var(--wp--preset--color--nuit);
	border-color: var(--wp--preset--color--nuit);
}

.wpcf7-not-valid-tip {
	margin-top: 0.3rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--braise);
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: var(--lsf-rayon-champ);
	border-width: 1.5px;
}

.wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

.frm_forms .frm_form_field {
	margin-bottom: 1rem;
}

.tnp-field {
	margin-bottom: 1rem;
}

@media (max-width: 599px) {
	:where(.lsf-main) :is(input[type="submit"], .wpcf7-submit, .frm_button_submit, .tnp-submit) {
		width: 100%;
	}
}

/* ---------- Boutique (WooCommerce) ---------- */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-product-button .wp-block-button__link,
.added_to_cart {
	background: var(--wp--preset--color--braise);
	color: var(--wp--preset--color--blanc);
	border: 2px solid var(--wp--preset--color--braise);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--texte);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	padding: 0.8rem 1.5rem;
	min-height: 3rem;
	text-decoration: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-block-woocommerce-product-button .wp-block-button__link:hover {
	background: var(--wp--preset--color--nuit);
	border-color: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
}

.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
	opacity: 0.55;
	padding: 0.8rem 1.5rem;
}

.woocommerce ul.products li.product,
.wc-block-product,
.wp-block-woocommerce-product-template > li {
	background: var(--wp--preset--color--ecume);
	border-radius: var(--lsf-rayon-carte);
	overflow: hidden;
	padding-bottom: 1.25rem;
	text-align: center;
}

.woocommerce ul.products li.product a img,
.wc-block-product img,
.wp-block-woocommerce-product-template img {
	border-radius: 0;
	aspect-ratio: 1;
	object-fit: cover;
	margin-bottom: 0.75rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-product-template .wp-block-post-title {
	padding: 0 1rem;
	font-family: var(--wp--preset--font-family--texte);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.3;
	color: var(--wp--preset--color--nuit);
}

.wp-block-woocommerce-product-template .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wc-block-components-product-price {
	color: var(--wp--preset--color--nuit);
	font-weight: 700;
}

.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--soleil);
	color: var(--wp--preset--color--encre);
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	padding: 0.25rem 0.8rem;
	min-height: 0;
	min-width: 0;
	line-height: 1.4;
}

.woocommerce div.product .product_title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	border-radius: 12px 12px 0 0;
	background: var(--wp--preset--color--ecume);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	background: var(--wp--preset--color--blanc);
}

.woocommerce div.product form.cart .variations select,
.woocommerce .quantity .qty {
	min-height: 3rem;
	border: 1.5px solid var(--lsf-bord);
	border-radius: var(--lsf-rayon-champ);
	padding: 0.5rem 0.75rem;
	font: inherit;
}

.woocommerce .quantity .qty {
	width: 5rem;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.wc-block-components-notice-banner {
	border-radius: var(--lsf-rayon-champ);
}

.woocommerce-info,
.woocommerce-message {
	border-top-color: var(--wp--preset--color--ocean);
}

.woocommerce-info::before,
.woocommerce-message::before {
	color: var(--wp--preset--color--ocean);
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	font-size: 0.9375rem;
}

.woocommerce table.shop_table {
	border-radius: var(--lsf-rayon-champ);
	border-color: var(--lsf-bord-doux);
}

.woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.6rem 1rem;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--nuit);
	color: var(--wp--preset--color--blanc);
}

/* ---------- Agenda (The Events Calendar) ---------- */

.tribe-common,
.tribe-events,
#tribe-events-pg-template {
	--tec-color-accent-primary: var(--wp--preset--color--braise);
	--tec-color-accent-primary-hover: var(--wp--preset--color--nuit);
	--tec-color-accent-primary-active: var(--wp--preset--color--nuit);
	--tec-color-link-accent: var(--wp--preset--color--ocean);
	--tec-color-link-accent-hover: var(--wp--preset--color--nuit);
	--tec-color-text-events-title: var(--wp--preset--color--nuit);
	--tec-color-button-primary: var(--wp--preset--color--braise);
	--tec-color-button-primary-hover: var(--wp--preset--color--nuit);
	--tec-font-family-sans-serif: var(--wp--preset--font-family--texte);
	--tec-border-radius-default: 12px;
}

.tribe-events-single-event-title {
	font-family: var(--wp--preset--font-family--titres);
	font-weight: 400;
	font-size: var(--wp--preset--font-size--xx-large);
}

#tribe-events-pg-template,
.tribe-events-pg-template {
	padding-top: var(--wp--preset--spacing--40);
}

/* ---------- Dons (GiveWP) ---------- */

.give-btn,
.give-submit {
	border-radius: 999px !important;
}

/* ---------- Contenus hérités de l'ancien constructeur ---------- */

.lsf-main .vc_row {
	margin-left: 0;
	margin-right: 0;
}

.lsf-main .gt3_spacing {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}

/* Grilles de cartes : les cartes occupent toute la largeur disponible */
.lsf-acces.is-layout-grid,
.lsf-parcours.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
}

.lsf-parcours.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.lsf-cadre {
	position: relative;
	overflow: hidden;
	border-radius: var(--lsf-rayon-carte);
	border: 1px solid var(--lsf-bord-doux);
}

.lsf-cadre iframe {
	display: block;
	width: 100%;
	min-height: 32rem;
	border: 0;
}

/* Enchaînement en-tête / contenu / pied de page sans liseré */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.lsf-pied .wp-block-site-logo img {
	width: 88px;
	height: 88px;
	object-fit: contain;
}

.lsf-grille,
.lsf-logos {
	margin-top: 1.5rem;
}

/* En-tête : menu à gauche, compte, panier et bouton à droite */
.lsf-entete .lsf-nav {
	margin-left: clamp(0.5rem, 2vw, 2rem);
	margin-right: auto;
}

.lsf-entete .wp-block-woocommerce-customer-account a {
	color: var(--wp--preset--color--nuit);
	padding: 0.5rem;
}

@media (max-width: 599px) {
	.lsf-entete .lsf-nav {
		margin-left: 0;
		margin-right: 0;
	}

	.lsf-entete .wp-block-woocommerce-customer-account {
		margin-left: auto;
	}

	.lsf-entete-actions {
		margin-left: 0;
	}

	.lsf-bouton-adherer .wp-block-button__link {
		padding: 0.5rem 0.9rem;
		font-size: 0.9375rem;
	}
}

/* Boutique : bouton des cartes produit à sa hauteur naturelle */
.wc-block-components-product-button .wp-block-button__link,
.wp-block-woocommerce-product-button .wp-block-button__link {
	height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.wp-block-woocommerce-product-template > li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.wp-block-woocommerce-product-template > li > .wp-block-button,
.wp-block-woocommerce-product-template > li > .wc-block-components-product-button {
	margin-top: auto;
	padding-top: 0.5rem;
}

body.woocommerce-page .wp-site-blocks > main,
body.tribe-events-page-template .wp-site-blocks > main,
body.single-tribe_events .wp-site-blocks > main,
body.post-type-archive-tribe_events .wp-site-blocks > main {
	padding-top: var(--wp--preset--spacing--40);
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Pages : lignes image + texte */
.wp-block-post-content > .wp-block-columns + .wp-block-columns {
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-post-content .wp-block-column h2 {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.wp-block-post-content .wp-block-column > .wp-block-image img {
	width: 100%;
}

.wp-block-post-content .wp-block-image.is-resized img {
	width: auto;
	border-radius: 10px;
}

.lsf-requis {
	font-weight: 400;
	font-size: 0.875rem;
	color: #4A5868;
}

.wp-block-woocommerce-product-template > li > a.wc-block-components-product-button__button,
.wc-block-components-product-button__button {
	height: auto !important;
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: center;
	margin-top: auto;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image {
	width: 100%;
	margin: 0 0 0.5rem;
}

.wp-block-woocommerce-product-template .wc-block-components-product-image img {
	width: 100%;
	margin-bottom: 0;
}

.wp-block-woocommerce-product-template > li > :is(h2, h3, .wp-block-post-title, .wc-block-components-product-price, .wp-block-woocommerce-product-price) {
	padding-left: 1rem;
	padding-right: 1rem;
}

/* Agenda : marges latérales comme le reste du site */
#tribe-events-pg-template,
.tribe-events-pg-template,
.tribe-common--breakpoint-xsmall.tribe-events .tribe-events-l-container {
	padding-left: clamp(1rem, 4vw, 2rem);
	padding-right: clamp(1rem, 4vw, 2rem);
	max-width: 1224px;
	margin-left: auto;
	margin-right: auto;
}

/* Articles et événements : intertitres en Barlow, comme les sous-titres de la charte */
.single-post .wp-block-post-content :is(h2, h3),
.single-tribe_events .tribe-events-single-event-description :is(h2, h3) {
	font-family: var(--wp--preset--font-family--texte);
	font-weight: 700;
	line-height: 1.25;
}

.single-post .wp-block-post-content h2,
.single-tribe_events .tribe-events-single-event-description h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.single-post .wp-block-post-content h3,
.single-tribe_events .tribe-events-single-event-description h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* ---------- Pages de texte : rythme et lisibilité ---------- */
.lsf-main .wp-block-post-content > :is(h2, h3, h4),
.lsf-main .wp-block-post-content .wp-block-column > :is(h2, h3, h4):not(:first-child) {
	margin-block-start: 2.75rem;
	margin-block-end: 0.9rem;
}

.lsf-main .wp-block-post-content > h3,
.lsf-main .wp-block-post-content > h4 {
	margin-block-start: 2rem;
	margin-block-end: 0.6rem;
}

.lsf-main .wp-block-post-content > :is(h2, h3, h4):first-child {
	margin-block-start: 0;
}

.lsf-main .wp-block-post-content > h2 + h3 {
	margin-block-start: 1.25rem;
}

.lsf-main .wp-block-post-content :is(p, li) strong {
	color: var(--wp--preset--color--nuit);
}

.lsf-main .wp-block-post-content :is(p, li) a:not(.wp-block-button__link) {
	font-weight: 600;
	text-decoration-thickness: 1.5px;
}

.lsf-main .wp-block-post-content .wp-block-list li + li {
	margin-top: 0.4rem;
}

.lsf-main .wp-block-post-content > .wp-block-buttons {
	margin-block: 1.75rem;
}

.lsf-main .wp-block-post-content > .wp-block-group.alignwide {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	font-weight: 600;
	font-size: 0.9375rem;
	color: #4A5868;
}

/* Encadré « À voir aussi » */
.wp-block-group.lsf-voir-aussi {
	margin-block-start: var(--wp--preset--spacing--50);
	border-left: 5px solid var(--wp--preset--color--soleil);
}

.lsf-voir-aussi h2 {
	font-family: var(--wp--preset--font-family--menu);
	font-weight: 600;
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--ocean);
	margin: 0;
}

.lsf-voir-aussi .wp-block-list {
	margin: 0;
	padding-left: 1.1rem;
}

/* Liste de noms sur plusieurs colonnes */
ul.lsf-liste-colonnes {
	list-style: none;
	padding-left: 0;
	margin-top: 1.5rem;
	columns: 3 12rem;
	column-gap: 2rem;
	font-weight: 600;
}

ul.lsf-liste-colonnes li {
	break-inside: avoid;
	margin: 0 0 0.45rem !important;
}
