/*
Theme Name: Studio Lama
Theme URI: https://www.klcreation.ch
Author: Kevin Lemasson
Description: Thème sur mesure de Studio Lama, studio digital à Saillon (Valais). Graphique, chaleureux et un peu lama.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-lama
*/

/* ---------- Couleurs et bases ---------- */
:root {
	--sl-encre: #1F1B18;
	--sl-papier: #FFF9EC;
	--sl-beige: #F1EADD;
	--sl-jaune: #F3D67C;
	--sl-tomate: #E8603F;
	--sl-gris: #5A4F45;
	--sl-gris-clair: #CFC6B8;
	--sl-blanc: #FFFFFF;
	--sl-titre: "Dela Gothic One", sans-serif;
	--sl-texte: "Familjen Grotesk", system-ui, sans-serif;
	--sl-main: "Caveat Brush", cursive;
	--sl-gouttiere: clamp(16px, 4vw, 40px);
	--sl-espace: clamp(72px, 10vw, 140px);
}

body {
	margin: 0;
	background: var(--sl-papier);
	color: var(--sl-encre);
	font-family: var(--sl-texte);
	font-size: 18px;
	line-height: 1.5;
	overflow-x: clip;
}

a { color: var(--sl-encre); }
a:hover { color: var(--sl-gris); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sl-tomate); outline-offset: 3px; }

.sl-inner {
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: var(--sl-gouttiere);
	box-sizing: border-box;
}
.sl-section { padding-block: var(--sl-espace); }

.sl-titre {
	margin: 0;
	font-family: var(--sl-titre);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 72px);
	line-height: 1;
}
.sl-titre--geant { font-size: clamp(52px, 9vw, 140px); line-height: 0.92; }
.sl-kicker {
	margin: 0 0 8px;
	display: inline-block;
	font-family: var(--sl-main);
	font-size: 28px;
	color: var(--sl-tomate);
	transform: rotate(-2deg);
}
.sl-chapo { margin: 16px 0 0; max-width: 720px; font-size: 20px; }
.sl-promesse { margin: 20px 0 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; }
.sl-label {
	margin: 40px 0 20px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sl-gris);
}
.sl-note {
	margin: 32px 0 0;
	font-family: var(--sl-main);
	font-size: 24px;
}
.sl-entete {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 48px;
}
.sl-entete > p { margin: 0; max-width: 420px; font-size: 19px; }
/* .sl-grille : grille WordPress, réglable dans l'éditeur */

/* ---------- Boutons ---------- */
.sl-btn,
.wp-block-button.sl-btn-tomate .wp-block-button__link,
.wp-block-button.sl-btn-contour .wp-block-button__link,
.wp-block-button.sl-btn-clair .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 28px;
	border-radius: 999px;
	font-family: var(--sl-texte);
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sl-btn--tomate,
.wp-block-button.sl-btn-tomate .wp-block-button__link {
	background: var(--sl-tomate);
	color: var(--sl-encre);
	border: 0;
	box-shadow: 5px 5px 0 var(--sl-encre);
}
.sl-btn--tomate:hover,
.wp-block-button.sl-btn-tomate .wp-block-button__link:hover {
	color: var(--sl-encre);
	transform: translate(-2px, -2px);
	box-shadow: 7px 7px 0 var(--sl-encre);
}
.sl-btn--contour,
.wp-block-button.sl-btn-contour .wp-block-button__link {
	background: transparent;
	color: var(--sl-encre);
	border: 2px solid var(--sl-encre);
}
.sl-btn--clair,
.wp-block-button.sl-btn-clair .wp-block-button__link {
	background: transparent;
	color: var(--sl-papier);
	border: 2px solid var(--sl-papier);
}
.sl-btn--clair:hover,
.wp-block-button.sl-btn-clair .wp-block-button__link:hover { color: var(--sl-jaune); border-color: var(--sl-jaune); }
.sl-btn--petit { min-height: 44px; padding: 0 20px; font-size: 16px; box-shadow: 3px 3px 0 var(--sl-encre); }
.sl-btn--grand,
.wp-block-button.sl-btn-tomate.sl-btn-grand .wp-block-button__link { min-height: 64px; padding: 0 34px; font-size: 20px; }
.wp-block-buttons.sl-boutons { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.wp-block-buttons.sl-boutons > .wp-block-button { margin: 0; }

/* ---------- En-tête ---------- */
.sl-header { background: var(--sl-jaune); }
.sl-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 24px;
}
.sl-logo {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	text-decoration: none;
	color: var(--sl-encre);
}
.sl-logo__nom { font-family: var(--sl-titre); font-size: 26px; line-height: 1; }
.sl-logo__note { font-family: var(--sl-main); font-size: 20px; transform: rotate(-6deg); display: inline-block; }
.sl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 16px; }
.sl-nav a { text-decoration: none; }
.sl-nav .sl-btn { transform: rotate(-2deg); }

/* ---------- Accueil ---------- */
.sl-hero { background: var(--sl-jaune); }
.sl-hero__inner {
	position: relative;
	padding-top: clamp(24px, 4vw, 56px);
	padding-bottom: clamp(64px, 8vw, 112px);
}
.sl-hero__texte { flex: 999 1 620px; min-width: 0; }
.sl-badge {
	margin: 0 0 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 14px;
	background: var(--sl-encre);
	color: var(--sl-jaune);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transform: rotate(-1.5deg);
}
.sl-point { width: 10px; height: 10px; border-radius: 50%; background: var(--sl-tomate); display: inline-block; }
.sl-h1 {
	margin: 0;
	font-family: var(--sl-titre);
	font-weight: 400;
	font-size: clamp(42px, 6.6vw, 108px);
	line-height: 0.98;
	letter-spacing: -0.02em;
}
.sl-h1__suite { display: block; margin-top: 0.12em; font-size: 0.62em; line-height: 1.05; }
.sl-barre, .sl-souligne { position: relative; display: inline-block; }
.sl-barre { color: #6B6158; }
.sl-barre::after, .sl-souligne::after {
	content: "";
	position: absolute;
	left: -4%;
	right: -4%;
	background: var(--sl-tomate);
}
.sl-barre::after { top: 52%; height: 0.12em; transform: rotate(-4deg); }
.sl-souligne::after { bottom: -0.08em; height: 0.16em; transform: rotate(-2deg); }
.sl-hero__sous { margin: 28px 0 0; max-width: 580px; font-size: 21px; font-weight: 500; }
.sl-hero__ctas { margin-top: 36px; }
.sl-chips { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sl-chips__label { font-family: var(--sl-main); font-size: 24px; margin-right: 4px; }
.sl-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	background: var(--sl-papier);
	border: 2px solid var(--sl-encre);
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.sl-chip--tomate { background: var(--sl-tomate); font-weight: 700; }
.sl-preuves {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	font-weight: 600;
	font-size: 16px;
}
.sl-preuves li { display: flex; align-items: center; gap: 8px; }
.sl-psst { margin: 28px 0 0; font-family: var(--sl-main); font-size: 24px; transform: rotate(-1.5deg); }

.sl-lama { flex: 1 1 340px; display: flex; flex-direction: column; align-items: center; }
.sl-lama__bulle {
	position: relative;
	z-index: 1;
	margin: 0 0 -8px;
	max-width: 300px;
	padding: 18px 22px;
	background: var(--sl-papier);
	border: 2px solid var(--sl-encre);
	border-radius: 26px 26px 26px 6px;
	box-shadow: 5px 5px 0 var(--sl-encre);
	font-family: var(--sl-main);
	font-size: 26px;
	line-height: 1.15;
	transform: rotate(3deg);
}
.sl-lama__btn { background: none; border: 0; padding: 0; cursor: pointer; min-width: 44px; min-height: 44px; }
.sl-lama__btn svg { width: min(340px, 80vw); height: auto; display: block; }
.sl-lama__legende { font-family: var(--sl-main); font-size: 20px; color: #3A3129; text-align: center; }
[data-lama-tete] { transform-box: view-box; transform-origin: 210px 130px; transition: transform 0.2s ease-out; }

@keyframes sl-balance { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes sl-saute { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.sl-balance { animation: sl-balance 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.sl-saute { animation: sl-saute 1.6s ease-in-out infinite; }

/* ---------- Le Lama veille ---------- */
.sl-veille { background: var(--sl-papier); border-top: 2px solid var(--sl-encre); }
.sl-veille__entete { max-width: 900px; margin-bottom: 56px; }
/* .sl-etapes : grille WordPress */
.sl-etape {
	padding: 28px;
	background: var(--sl-jaune);
	border: 2px solid var(--sl-encre);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.sl-etape--tomate { background: var(--sl-tomate); }
.sl-etape p { margin: 0; }
.sl-etape__hop { font-family: var(--sl-titre); font-size: 56px; line-height: 1; }
.sl-etape__titre { font-size: 24px; font-weight: 700; line-height: 1.2; }

.sl-conversations { margin-bottom: 72px; }
.sl-conv {
	padding: 20px;
	background: var(--sl-beige);
	border: 2px solid var(--sl-encre);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sl-conv:nth-child(1) { transform: rotate(-1.5deg); }
.sl-conv:nth-child(2) { transform: rotate(1deg); margin-top: 24px; }
.sl-conv:nth-child(3) { transform: rotate(-0.5deg); }
.sl-bulle {
	margin: 0;
	max-width: 88%;
	padding: 12px 16px;
	border: 2px solid var(--sl-encre);
}
.sl-bulle--client { align-self: flex-start; background: var(--sl-blanc); border-radius: 18px 18px 18px 4px; }
.sl-bulle--lama { align-self: flex-end; background: var(--sl-jaune); border-radius: 18px 18px 4px 18px; }
.sl-bulle--tomate { background: var(--sl-tomate); }

/* .sl-formules : grille WordPress */
.sl-formule {
	padding: 28px;
	border: 2px solid var(--sl-encre);
	background: var(--sl-beige);
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sl-formule > * { margin: 0; }
.sl-formule--vedette { background: var(--sl-jaune); box-shadow: 6px 6px 0 var(--sl-encre); transform: rotate(-1deg); }
.sl-formule__badge {
	align-self: flex-start;
	padding: 4px 12px;
	background: var(--sl-tomate);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}
.sl-formule__nom { font-family: var(--sl-titre); font-size: 28px; line-height: 1.1; }
.sl-formule__prix { font-size: 26px; font-weight: 700; }
.sl-formule ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.sl-formule .wp-block-buttons { margin-top: auto; }
.sl-formule .wp-block-button, .sl-formule .wp-block-button__link { width: 100%; }

/* ---------- La carte ---------- */
.sl-carte { background: var(--sl-encre); color: var(--sl-papier); }
.sl-carte a { color: var(--sl-papier); }
.sl-carte__inner { max-width: 1240px; }
.sl-carte__accueil { margin: 0; text-align: center; font-family: var(--sl-main); font-size: 30px; color: var(--sl-jaune); }
.sl-carte__titre { margin: 8px 0 12px; text-align: center; font-family: var(--sl-titre); font-weight: 400; font-size: clamp(56px, 9vw, 140px); line-height: 1; color: var(--sl-papier); }
.sl-carte__chapo { margin: 0 0 64px; text-align: center; color: var(--sl-gris-clair); }
/* .sl-carte__cols : colonnes WordPress */
.sl-carte__liste { display: flex; flex-direction: column; gap: 48px; }
.sl-cat { margin: 0 0 12px; font-family: var(--sl-texte); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sl-jaune); }
.sl-plat {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 16px 0;
	border-bottom: 1.5px dashed #5C5247;
}
.sl-plat__texte { flex: 1 1 320px; min-width: 0; }
.sl-plat__nom { margin: 0; font-family: var(--sl-titre); font-size: clamp(22px, 2.4vw, 30px); }
.sl-plat__desc { margin: 2px 0 0; color: var(--sl-gris-clair); }
.sl-plat__prix { font-weight: 700; font-size: 17px; color: var(--sl-jaune); white-space: nowrap; }
.sl-plat__btn {
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid var(--sl-papier);
	border-radius: 999px;
	background: transparent;
	color: var(--sl-papier);
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	white-space: nowrap;
}
.sl-plat__btn[aria-pressed="true"] { background: var(--sl-jaune); border-color: var(--sl-jaune); color: var(--sl-encre); }
.sl-chef {
	padding: 28px;
	border: 2px solid var(--sl-jaune);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	transform: rotate(-1deg);
}
.sl-chef p { margin: 0; }
.sl-chef__suggestion { font-family: var(--sl-main); font-size: 26px; color: var(--sl-jaune); }
.sl-chef__nom { margin-top: 4px !important; font-family: var(--sl-titre); font-size: clamp(24px, 3vw, 38px); }
.sl-chef__desc { margin-top: 6px !important; color: var(--sl-gris-clair); }
.sl-ticket {
	flex: 1 1 300px;
	max-width: 380px;
	position: sticky;
	top: 24px;
	background: var(--sl-blanc);
	color: var(--sl-encre);
	padding: 28px 24px 24px;
	transform: rotate(1.5deg);
	box-shadow: 8px 8px 0 var(--sl-tomate);
}
.sl-ticket a { color: var(--sl-jaune); }
.sl-ticket__nom { margin: 0; text-align: center; font-family: var(--sl-titre); font-size: 22px; }
.sl-ticket__adresse { margin: 2px 0 16px; text-align: center; font-size: 13px; color: var(--sl-gris); }
.sl-ticket__lignes { border-top: 2px dashed var(--sl-encre); padding: 14px 0; display: flex; flex-direction: column; gap: 8px; min-height: 90px; }
.sl-ticket__ligne { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sl-ticket__vide { margin: 0; font-family: var(--sl-main); font-size: 22px; color: var(--sl-gris); }
.sl-ticket__totaux { border-top: 2px dashed var(--sl-encre); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.sl-ticket__totaux div { display: flex; justify-content: space-between; gap: 12px; }
.sl-ticket__total { font-weight: 700; font-size: 17px; margin-top: 6px; }
.sl-ticket .sl-btn { width: 100%; margin-top: 20px; min-height: 52px; box-shadow: none; color: var(--sl-encre); }
.sl-ticket__merci { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--sl-gris); }
.sl-allergenes { margin: 56px 0 0; text-align: center; font-family: var(--sl-main); font-size: 24px; color: var(--sl-gris-clair); }

/* ---------- Ça te parle ---------- */
.sl-douleur {
	position: relative;
	padding: 28px;
	border: 2px solid var(--sl-encre);
	background: var(--sl-papier);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sl-douleur > p { margin: 0; }
.sl-douleur__citation { font-family: var(--sl-titre); font-size: 26px; line-height: 1.15; }
.sl-douleur__note { margin-top: -6px !important; font-family: var(--sl-main); font-size: 22px; }
.sl-douleur__solution { padding-top: 14px; border-top: 2px dashed var(--sl-encre); font-weight: 600; }

/* ---------- Le lama juge ton site ---------- */
.sl-juge { background: var(--sl-jaune); border-block: 2px solid var(--sl-encre); }
.sl-juge__inner {
	padding-block: clamp(56px, 8vw, 112px);
}
.sl-juge__texte { flex: 999 1 480px; min-width: 0; }
.sl-juge__texte .sl-kicker { color: var(--sl-encre); }
.sl-juge__texte > p:last-child { margin: 24px 0 0; max-width: 540px; font-size: 20px; }
.sl-juge__form { flex: 1 1 360px; max-width: 520px; }

/* ---------- Formulaires ---------- */
.sl-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--sl-papier);
	color: var(--sl-encre);
	padding: 28px;
	border: 2px solid var(--sl-encre);
	box-shadow: 5px 5px 0 var(--sl-encre);
	transform: rotate(-1deg);
}
.sl-form--contact { box-shadow: 6px 6px 0 var(--sl-tomate); transform: rotate(1deg); }
.sl-form__titre { margin: 0; font-family: var(--sl-titre); font-size: 26px; }
.sl-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.sl-form input[type="text"],
.sl-form input[type="email"],
.sl-form input[type="url"],
.sl-form textarea {
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid var(--sl-encre);
	border-radius: 10px;
	font: inherit;
	font-weight: 400;
	background: var(--sl-blanc);
	color: var(--sl-encre);
	box-sizing: border-box;
	width: 100%;
}
.sl-form textarea { resize: vertical; }
.sl-form__commande { margin: 0; padding: 12px 14px; background: var(--sl-jaune); border: 2px solid var(--sl-encre); font-weight: 600; font-size: 15px; }
.sl-form__bouton {
	min-height: 58px;
	border: 0;
	border-radius: 999px;
	background: var(--sl-tomate);
	color: var(--sl-encre);
	font: inherit;
	font-weight: 700;
	font-size: 18px;
	cursor: pointer;
}
.sl-form__note { margin: 0; font-size: 14px; color: var(--sl-gris); }
.sl-form__message { margin: 0; padding: 12px 14px; border: 2px solid var(--sl-encre); font-weight: 600; }
.sl-form__message--ok { background: var(--sl-jaune); }
.sl-form__message--erreur { background: #F6C9B8; }
.sl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Réalisations ---------- */
/* .sl-polaroids : grille WordPress */
.sl-polaroid {
	position: relative;
	padding: 14px 14px 20px;
	background: var(--sl-blanc);
	border: 2px solid var(--sl-encre);
}
.sl-polaroid::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 38%;
	width: 90px;
	height: 26px;
	background: var(--sl-jaune);
	opacity: 0.9;
	transform: rotate(4deg);
}
.sl-polaroid:nth-child(even)::before { background: var(--sl-tomate); transform: rotate(-5deg); left: 30%; }
.sl-polaroid:nth-child(4n+1) { transform: rotate(-3deg); }
.sl-polaroid:nth-child(4n+2) { transform: rotate(2deg); margin-top: 40px; }
.sl-polaroid:nth-child(4n+3) { transform: rotate(-1deg); }
.sl-polaroid:nth-child(4n+4) { transform: rotate(3deg); margin-top: 40px; }
.sl-polaroid .wp-block-image { margin: 0; }
.sl-polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sl-polaroid__legende { margin: 12px 0 0; font-family: var(--sl-main); font-size: 26px; line-height: 1.1; }

/* ---------- Témoignages ---------- */
.sl-avis { background: var(--sl-beige); }
.sl-avis__titre-note { font-family: var(--sl-main); font-size: 0.55em; }
.sl-avis__carte {
	padding: 32px;
	background: var(--sl-papier);
	border: 2px solid var(--sl-encre);
	box-shadow: 5px 5px 0 var(--sl-encre);
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.sl-avis__carte > p { margin: 0; }
.sl-avis__carte:nth-child(1) { transform: rotate(-1.5deg); }
.sl-avis__carte:nth-child(2) { transform: rotate(1deg); }
.sl-avis__carte:nth-child(3) { transform: rotate(-0.5deg); }
.sl-avis__carte--vide { border-style: dashed; box-shadow: none; color: var(--sl-gris); }
.sl-etoiles { font-size: 22px; letter-spacing: 4px; }
.sl-citation { font-family: var(--sl-titre); font-size: 24px; line-height: 1.25; }
.sl-auteur { font-weight: 600; }

/* ---------- Bingo ---------- */
.sl-bingo__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	border: 2px solid var(--sl-encre);
}
.sl-bingo__case {
	min-height: 96px;
	padding: 20px;
	border: 1.5px solid var(--sl-encre);
	background: var(--sl-papier);
	color: var(--sl-encre);
	font-family: var(--sl-titre);
	font-size: 22px;
	text-align: left;
	cursor: pointer;
}
.sl-bingo__case[aria-pressed="true"] { background: var(--sl-tomate); text-decoration: line-through; text-decoration-thickness: 4px; }
.sl-bingo__gagne { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.sl-bingo__gagne[hidden] { display: none; }
.sl-bingo__bravo {
	margin: 0;
	display: inline-block;
	padding: 16px 28px;
	background: var(--sl-encre);
	color: var(--sl-jaune);
	font-family: var(--sl-titre);
	font-size: clamp(24px, 3vw, 40px);
	transform: rotate(-2deg);
}
.sl-bingo__gagne a { font-weight: 700; font-size: 19px; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- Recette ---------- */
.sl-recette { background: var(--sl-beige); }
.sl-recette__etape {
	padding: 28px;
	background: var(--sl-papier);
	border: 2px solid var(--sl-encre);
	box-shadow: 5px 5px 0 var(--sl-encre);
}
.sl-recette__etape > p { margin: 0; }
.sl-recette__etape:nth-child(1) { transform: rotate(-1.5deg); }
.sl-recette__etape:nth-child(2) { transform: rotate(1deg); }
.sl-recette__etape:nth-child(3) { transform: rotate(-0.5deg); }
.sl-recette__num { font-family: var(--sl-titre); font-size: 64px; line-height: 1; }
.sl-recette__titre { margin-top: 12px !important; font-weight: 700; font-size: 26px; }
.sl-recette__texte { margin-top: 8px !important; }
.sl-garantie {
	margin-top: 48px;
	padding: 24px 28px;
	background: var(--sl-encre);
	color: var(--sl-papier);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
}
.sl-garantie > p { margin: 0; }
.sl-garantie__nom { font-family: var(--sl-titre); font-size: clamp(22px, 2.6vw, 32px); color: var(--sl-jaune); }
.sl-garantie__texte { flex: 1 1 360px; }

/* ---------- Équipe ---------- */
.sl-equipe__note { font-family: var(--sl-main); font-size: 0.55em; }
/* .sl-fiches : grille WordPress */
.sl-fiche {
	flex: 1 1 420px;
	background: var(--sl-papier);
	border: 2px solid var(--sl-encre);
	box-shadow: 6px 6px 0 var(--sl-encre);
	display: flex;
	flex-wrap: wrap;
}
.sl-fiche:nth-child(2) { transform: rotate(1.5deg); }
.sl-fiche__photo {
	flex: 1 1 180px;
	min-height: 240px;
	border-right: 2px solid var(--sl-encre);
	background: #DDD3C4;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.sl-fiche__photo .wp-block-image { margin: 0; width: 100%; height: 100%; }
.sl-fiche__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-fiche__photo--lama { background: var(--sl-tomate); }
.sl-fiche__infos { flex: 2 1 240px; padding: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.sl-fiche__infos p { margin: 0; }
.sl-fiche__infos strong { display: inline-block; min-width: 64px; margin-right: 8px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.sl-faq { border-top: 2px solid var(--sl-encre); }
.sl-faq__inner { max-width: 1000px; position: relative; }
.sl-faq__liste { border-top: 2px solid var(--sl-encre); margin-top: 48px; }
.sl-faq .wp-block-details { border-bottom: 2px solid var(--sl-encre); margin: 0; }
.sl-faq .wp-block-details summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	padding: 24px 0;
	font-family: var(--sl-titre);
	font-size: clamp(20px, 2.4vw, 28px);
	cursor: pointer;
	list-style: none;
}
.sl-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.sl-faq .wp-block-details summary::after { content: "+"; font-size: 36px; line-height: 1; transition: transform 0.2s; }
.sl-faq .wp-block-details[open] summary::after { transform: rotate(45deg); }
.sl-faq .wp-block-details > p { margin: 0 0 24px; max-width: 720px; }

/* ---------- Contact ---------- */
.sl-contact { background: var(--sl-encre); color: var(--sl-papier); }
.sl-contact a { color: var(--sl-papier); }
/* .sl-contact__inner : colonnes WordPress */

.sl-contact__badge {
	margin: 0 0 20px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border: 2px solid var(--sl-jaune);
	color: var(--sl-jaune);
	font-weight: 700;
	font-size: 15px;
	border-radius: 999px;
}
.sl-contact__titre { margin: 0; font-family: var(--sl-titre); font-weight: 400; font-size: clamp(44px, 7.5vw, 120px); line-height: 0.95; color: var(--sl-jaune); }
.sl-contact__chapo { margin: 28px 0 32px; max-width: 520px; font-size: 20px; color: #E3DACC; }
.sl-contact__form { flex: 1 1 380px; max-width: 520px; }

/* ---------- Pied de page ---------- */
.sl-footer { background: var(--sl-encre); color: var(--sl-gris-clair); }
.sl-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	padding-block: 24px 40px;
	border-top: 1.5px solid #5C5247;
	font-size: 15px;
}
.sl-footer a { color: var(--sl-papier); }
.sl-footer__liens { display: flex; flex-wrap: wrap; gap: 24px; }

/* ---------- Éléments flottants ---------- */
.sl-flottant {
	position: fixed;
	right: var(--sl-gouttiere);
	bottom: 16px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	max-width: calc(100% - 32px);
}
.sl-cookie, .sl-bravo {
	max-width: 360px;
	padding: 20px;
	border: 2px solid var(--sl-encre);
	box-shadow: 6px 6px 0 var(--sl-encre);
	color: var(--sl-encre);
}
.sl-cookie { background: var(--sl-papier); transform: rotate(-1deg); }
.sl-cookie p { margin: 0 0 14px; font-size: 16px; }
.sl-cookie__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.sl-cookie button {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
}
.sl-cookie__ok { border: 0; background: var(--sl-encre); color: var(--sl-jaune); }
.sl-cookie__non { border: 2px solid var(--sl-encre); background: transparent; color: var(--sl-encre); }
.sl-bravo { background: var(--sl-tomate); transform: rotate(1deg); }
.sl-bravo p { margin: 0; }
.sl-bravo__titre { font-family: var(--sl-titre); font-size: 22px; }
.sl-cookie[hidden], .sl-bravo[hidden] { display: none; }
.sl-cta-flottant {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 22px 0 10px;
	background: var(--sl-tomate);
	color: var(--sl-encre);
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 4px 4px 0 var(--sl-encre);
	font-weight: 700;
}
.sl-cta-flottant:hover { color: var(--sl-encre); }
.sl-cta-flottant__icone { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sl-jaune); }
.sl-compteur { padding: 4px 10px; border-radius: 999px; background: var(--sl-encre); color: var(--sl-papier); font-size: 13px; font-weight: 600; }

.sl-cta-flottant { transition: opacity 0.25s ease, transform 0.25s ease; }
.sl-cta-flottant.is-masque { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (max-width: 600px) {
	.sl-flottant { left: 12px; right: 12px; bottom: 12px; max-width: none; }
	.sl-cookie { max-width: none; padding: 14px 16px; transform: none; }
	.sl-cookie p { font-size: 14px; margin-bottom: 10px; }
	.sl-cta-flottant { align-self: flex-end; min-height: 50px; font-size: 15px; }
}

/* Lamas cachés */
.sl-cache {
	position: absolute;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	opacity: 0.35;
	cursor: pointer;
	transition: all 0.2s;
}
.sl-cache.is-trouve { background: var(--sl-tomate); border: 2px solid var(--sl-encre); opacity: 1; transform: scale(1.15) rotate(-10deg); }
.sl-cache--douleur { right: 10px; bottom: 10px; }
.sl-cache--polaroid { right: -10px; top: -18px; z-index: 2; }
.sl-cache--faq { right: var(--sl-gouttiere); top: 0; }

/* ---------- Pages simples ---------- */
.sl-page { padding-block: clamp(48px, 7vw, 96px); }
.sl-page .wp-block-post-title { font-family: var(--sl-titre); font-size: clamp(36px, 5vw, 72px); margin: 0 0 32px; }
.sl-page .wp-block-post-content > * + * { margin-top: 1em; }
.sl-page .wp-block-post-content { max-width: 760px; }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
	.sl-balance, .sl-saute { animation: none; }
	[data-lama-tete] { transition: none; }
	html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* =====================================================================
   Version 1.1 : tout le contenu est en blocs modifiables
   ===================================================================== */

/* Petits textes dans les titres (format « Note manuscrite ») */
.sl-note-main { font-family: var(--sl-main); font-size: 0.55em; }

/* Les paragraphes des zones compactes n'ont pas de marge */
.sl-logo p, .sl-nav p, .sl-chips p, .sl-footer__inner p, .sl-ticket p,
.sl-bingo__gagne p, .sl-cookie p, .sl-bravo p { margin: 0; }

/* En-tête */
.sl-logo__nom a { color: var(--sl-encre); text-decoration: none; }
.sl-nav .wp-block-buttons { margin: 0; }
.sl-nav .wp-block-button { transform: rotate(-2deg); }
.wp-block-button.sl-btn-petit .wp-block-button__link { min-height: 44px; padding: 0 20px; font-size: 16px; box-shadow: 3px 3px 0 var(--sl-encre); }

/* Accueil */
.sl-badge::before, .sl-contact__badge::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--sl-tomate);
	animation: sl-saute 1.6s ease-in-out infinite;
}
.sl-h1-suite {
	margin: 0.12em 0 0;
	font-family: var(--sl-titre);
	font-weight: 400;
	font-size: clamp(26px, 4.1vw, 67px);
	line-height: 1.05;
	letter-spacing: -0.02em;
}
.sl-chips__label { margin: 0; }
.sl-chips__liste { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.wp-block-button.sl-chip { display: inline-block; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.wp-block-button.sl-chip .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	background: var(--sl-papier);
	color: var(--sl-encre);
	border: 2px solid var(--sl-encre);
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
}
.wp-block-button.sl-chip--tomate .wp-block-button__link { background: var(--sl-tomate); font-weight: 700; }
.sl-preuves li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F1B18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Le lama : les répliques sont lues par le script, invisibles sur le site */
.sl-lama__repliques, .sl-editeur-seul { display: none; }
.sl-lama__legende { margin: 0; }

/* La carte */
.sl-carte__categorie > .sl-cat { margin-bottom: 12px; }
.sl-plat__prix { margin: 0; }
.sl-ticket .sl-ticket__adresse { margin: 2px 0 16px; }
.sl-ticket .sl-ticket__merci { margin-top: 14px; }
.sl-ticket__rang { display: flex; justify-content: space-between; gap: 12px; }
.sl-ticket__bouton { margin-top: 20px; }
.sl-ticket__bouton .wp-block-button,
.sl-ticket__bouton .wp-block-button__link { width: 100%; }
.sl-ticket .wp-block-button__link { color: var(--sl-encre); box-shadow: none; min-height: 52px; }
.sl-ticket .wp-block-button__link:hover { color: var(--sl-encre); transform: none; box-shadow: none; }
.sl-ticket__prix { white-space: nowrap; }
.sl-chef .wp-block-buttons { margin: 0; }

/* Le bingo */
.sl-bingo__liste {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	border: 2px solid var(--sl-encre);
}
.sl-bingo__liste li { margin: 0; display: flex; }
.sl-bingo__liste .sl-bingo__case { width: 100%; }
.sl-bingo__gagne { display: none; }
.sl-bingo__gagne.is-visible { display: flex; }
.sl-bingo__lien a { font-weight: 700; font-size: 19px; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* La fiche du lama */
.sl-fiche__photo.sl-fiche__photo--lama .wp-block-image { display: flex; align-items: center; justify-content: center; }
.sl-fiche__photo.sl-fiche__photo--lama img { width: 150px; height: auto; object-fit: contain; }

/* Pied de page */
.sl-footer__liens { display: block; }
.sl-footer__liens a { margin-right: 20px; }
.sl-footer__liens a:last-child { margin-right: 0; }

/* Éléments flottants : cachés tant que le script ne les montre pas */
.sl-cookie, .sl-bravo, .sl-cookie__triste { display: none; }
.sl-cookie.is-visible, .sl-bravo.is-visible, .sl-cookie__triste.is-visible { display: block; }
.sl-cookie__boutons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sl-cookie .sl-cookie__texte, .sl-cookie .sl-cookie__triste { margin-bottom: 14px; }
.sl-cookie-ok .wp-block-button__link,
.sl-cookie-non .wp-block-button__link {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
}
.sl-cookie-ok .wp-block-button__link { background: var(--sl-encre); color: var(--sl-jaune); border: 0; }
.sl-cookie-non .wp-block-button__link { background: transparent; color: var(--sl-encre); border: 2px solid var(--sl-encre); }
.sl-flottant > .wp-block-buttons { margin: 0; justify-content: flex-end; }
.wp-block-button.sl-cta-flottant { display: block; min-height: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.wp-block-button.sl-cta-flottant .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 0 22px 0 10px;
	background: var(--sl-tomate);
	color: var(--sl-encre);
	border-radius: 999px;
	box-shadow: 4px 4px 0 var(--sl-encre);
	font-weight: 700;
	text-decoration: none;
}
@media (max-width: 600px) {
	.wp-block-button.sl-cta-flottant { min-height: 0; }
	.wp-block-button.sl-cta-flottant .wp-block-button__link { min-height: 50px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.sl-badge::before, .sl-contact__badge::before { animation: none; }
}

/* Le lama caché du polaroïd reste dans l'écran sur mobile */
@media (max-width: 600px) {
	.sl-cache--polaroid { right: 6px; top: 6px; }
}

/* =====================================================================
   Version 1.2 : grilles et colonnes WordPress (tailles réglables)
   ===================================================================== */
.sl-fiche { flex: none; }
.sl-ticket { max-width: none; }
.sl-carte__cols > .wp-block-column:last-child { align-self: flex-start; position: sticky; top: 24px; }
.sl-lama, .sl-juge__form, .sl-contact__form, .sl-juge__texte, .sl-hero__texte { max-width: none; }
.sl-juge__form .sl-form, .sl-contact__form .sl-form { max-width: 520px; margin-inline: auto; }
/* Les cartes inclinées gardent leur ombre visible dans la grille */
.sl-etapes, .sl-conversations, .sl-formules, .sl-grille, .sl-polaroids, .sl-fiches { padding-right: 8px; }
