/*
Theme Name:   SCV Conseil
Theme URI:    https://scvconseil.fr
Description:  Thème enfant Blocksy pour SARL SCV Conseil — charte « Terroir » (crème, vert, or), polices locales, compositions de blocs (cartes d'offre, bandeau « Notre collaboration », bloc prérequis, en-tête avec boussole).
Author:       SCV Conseil
Template:     blocksy
Version:      1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  scv-conseil
*/

/* ==========================================================================
   0. Jetons
   ========================================================================== */
:root {
	--scv-creme: #F6F1E7;
	--scv-sable: #EDE4D1;
	--scv-sable-fonce: #E9DFC9;
	--scv-vert: #2F4A3A;
	--scv-vert-profond: #1F3328;
	--scv-vert-pied: #172820;
	--scv-or: #C9A04A;
	--scv-or-coche: #B08A3A;
	--scv-or-texte: #6E5214;
	--scv-or-clair: #D9B868;
	--scv-texte: #2B2A26;
	--scv-texte-2: #4A4840;
	--scv-texte-3: #5A574E;
	--scv-texte-vert: #F1ECE0;
	--scv-texte-vert-2: #C9D2C8;
	--scv-rayon: 16px;
	--scv-serif: Fraunces, Georgia, "Times New Roman", serif;
	--scv-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Boussole (filigrane) — SVG fourni par la cliente */
	--scv-boussole: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%232F4A3A' stroke-width='0.7'%3E%3Ccircle cx='100' cy='100' r='97'/%3E%3Ccircle cx='100' cy='100' r='84'/%3E%3Cpath d='M100 3v14M100 183v14M3 100h14M183 100h14'/%3E%3Cpolygon points='100,8 111,89 192,100 111,111 100,192 89,111 8,100 89,89' fill='%232F4A3A' fill-opacity='0.35'/%3E%3Cpolygon points='100,46 105,95 154,100 105,105 100,154 95,105 46,100 95,95' transform='rotate(45 100 100)'/%3E%3C/svg%3E");
	--scv-coche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
	--scv-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E5214' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v5M12 16h.01'/%3E%3C/svg%3E");
	--scv-guillemet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C9A04A'%3E%3Cpath d='M9.5 6C6.5 7.2 4.5 9.9 4.5 13.4V18h6v-6H7.6c.2-1.9 1.3-3.4 3.1-4.3L9.5 6zm9 0c-3 1.2-5 3.9-5 7.4V18h6v-6h-2.9c.2-1.9 1.3-3.4 3.1-4.3L18.5 6z'/%3E%3C/svg%3E");

	/* Blocksy : polices et couleurs de base (au cas où le Customizer n'est pas importé) */
	--theme-font-family: var(--scv-sans);
	--theme-text-color: var(--scv-texte);
	--theme-headings-color: var(--scv-vert-profond);
	--theme-link-initial-color: var(--scv-vert);
	--theme-link-hover-color: var(--scv-vert-profond);
	--theme-button-background-initial-color: var(--scv-vert);
	--theme-button-background-hover-color: var(--scv-vert-profond);
	--theme-button-text-initial-color: #FFFFFF;
	--theme-button-text-hover-color: #FFFFFF;
	--theme-selection-background-color: var(--scv-vert);
	--theme-border-color: #CFC5B0;
}

body {
	background-color: var(--scv-creme);
	color: var(--scv-texte);
	font-family: var(--scv-sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	--theme-font-family: var(--scv-serif);
	--theme-font-weight: 600;
	font-family: var(--scv-serif);
	font-weight: 600;
	color: var(--scv-vert-profond);
	text-wrap: balance;
}
h1 { --theme-line-height: 1.1; }
h2 { --theme-line-height: 1.15; }
h3 { --theme-line-height: 1.25; }

/* Contenu : les sections gèrent elles-mêmes leur espacement */
.entry-content > * { margin-block: 0; }
.entry-content > .alignfull + .alignfull { margin-top: 0; }

/* Focus visible et cibles tactiles */
a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--scv-or);
	outline-offset: 3px;
}

/* Lien d'évitement (fourni par Blocksy) */
.skip-link:focus { background: var(--scv-vert); color: #fff; }

/* ==========================================================================
   1. En-tête Blocksy
   ========================================================================== */
.ct-header [data-row*="middle"] {
	background-color: var(--scv-creme) !important;
}
.ct-header [data-id="logo"] .site-logo-container img,
.ct-header [data-id="logo"] img {
	height: 72px;
	max-height: 72px;
	width: auto;
}
.ct-header [data-id="menu"] > ul > li > a {
	--theme-font-family: var(--scv-sans);
	--theme-font-size: 15px;
	--theme-font-weight: 500;
	--theme-text-transform: none;
	--theme-link-initial-color: var(--scv-vert);
	--theme-link-hover-color: var(--scv-vert-profond);
	--theme-link-active-color: var(--scv-vert-profond);
	letter-spacing: 0;
}
.ct-header [data-id="menu"] > ul > li.current-menu-item > a,
.ct-header [data-id="menu"] > ul > li.current_page_item > a {
	font-weight: 700;
	box-shadow: inset 0 -2px 0 var(--scv-or);
}
.ct-header [data-id="button"] .ct-button,
.ct-header .ct-header-cta .ct-button {
	--theme-button-background-initial-color: var(--scv-vert);
	--theme-button-background-hover-color: var(--scv-vert-profond);
	--theme-button-text-initial-color: #FFFFFF;
	--theme-button-text-hover-color: #FFFFFF;
	--theme-button-min-height: 44px;
	border-radius: 999px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
.ct-header [data-id="trigger"] {
	--theme-icon-color: var(--scv-vert);
	min-width: 44px;
	min-height: 44px;
}

/* Panneau mobile */
#offcanvas .ct-panel-inner { background-color: var(--scv-vert-profond) !important; }
#offcanvas [data-id="mobile-menu"] {
	--theme-font-family: var(--scv-serif);
	--theme-link-initial-color: var(--scv-texte-vert);
	--theme-link-hover-color: var(--scv-or-clair);
}
#offcanvas [data-id="mobile-menu"] a { min-height: 44px; }

/* ==========================================================================
   2. Pied de page Blocksy
   ========================================================================== */
.ct-footer {
	background-color: var(--scv-vert-pied) !important;
	color: var(--scv-texte-vert-2);
	font-size: 14px;
}
.ct-footer [data-row] { background-color: transparent !important; }
.ct-footer a { color: var(--scv-texte-vert-2); text-decoration: underline; text-underline-offset: 3px; }
.ct-footer a:hover { color: #FFFFFF; }
.ct-footer .ct-footer-copyright { --theme-font-size: 14px; color: var(--scv-texte-vert-2); line-height: 1.6; }
.ct-footer [data-id="menu"] > ul > li > a {
	--theme-link-initial-color: var(--scv-texte-vert-2);
	--theme-link-hover-color: #FFFFFF;
	--theme-font-size: 14px;
	--theme-font-weight: 400;
	--theme-text-transform: none;
	text-decoration: underline;
	min-height: 44px;
}
.scv-mention-tva { display: block; margin-top: 6px; color: #9FB0A4; }

/* ==========================================================================
   3. Typographie et paragraphes stylés
   ========================================================================== */
.is-style-pastille,
p.is-style-pastille {
	display: inline-block;
	width: fit-content;
	margin: 0;
	padding: 6px 14px;
	background: var(--scv-sable-fonce);
	color: var(--scv-or-texte);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}
.is-style-pastille-prix {
	display: inline-block;
	width: fit-content;
	margin: 0;
	padding: 5px 12px;
	background: var(--scv-sable-fonce);
	color: var(--scv-or-texte);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}
.is-style-pastille-prix.has-chapo-font-size,
.is-style-pastille-prix.is-grande { padding: 10px 18px; font-size: 20px; }
.is-style-pastille-blanche {
	display: inline-block;
	width: fit-content;
	margin: 0;
	padding: 6px 16px;
	background: #FFFFFF;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 500;
}
.is-style-surtitre {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--scv-or-texte);
}
.has-vert-profond-background-color .is-style-surtitre:not(.has-text-color),
.has-vert-background-color .is-style-surtitre:not(.has-text-color) { color: var(--scv-or-clair); }
.is-style-chapo {
	max-width: 680px;
	font-size: 19px;
	color: var(--scv-texte-2);
}
.is-style-accroche {
	font-family: var(--scv-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--scv-or-texte);
}
.is-style-citation-parcours {
	font-family: var(--scv-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--scv-vert-profond);
}
.is-style-grand-chiffre {
	margin: 0;
	font-family: var(--scv-serif);
	font-size: clamp(40px, 4vw, 48px);
	font-weight: 700;
	line-height: 1;
	color: var(--scv-vert-profond);
}

.scv-texte-secondaire { color: var(--scv-texte-2); }

/* ==========================================================================
   4. Sections et en-têtes de page
   ========================================================================== */
.is-style-boussole-centre,
.is-style-boussole-droite {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.is-style-boussole-centre::before,
.is-style-boussole-droite::before {
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	background: var(--scv-boussole) no-repeat center / contain;
}
.is-style-boussole-centre::before {
	top: 40px;
	left: 50%;
	width: 640px;
	height: 640px;
	margin-left: -320px;
	opacity: 0.07;
}
.is-style-boussole-droite::before {
	top: -90px;
	right: -120px;
	width: 560px;
	height: 560px;
	opacity: 0.08;
}
@media (max-width: 689px) {
	.is-style-boussole-centre::before { width: 420px; height: 420px; margin-left: -210px; top: 24px; }
	.is-style-boussole-droite::before { width: 340px; height: 340px; right: -110px; top: -60px; }
}

/* H1 et chapô d'en-tête un peu moins larges que le conteneur */
.scv-entete h1 { max-width: 860px; }

/* ==========================================================================
   5. Cartes
   ========================================================================== */
.is-style-carte,
.is-style-carte-offre {
	background: #FFFFFF;
	border-radius: var(--scv-rayon);
	padding: 32px;
	color: var(--scv-texte);
}
.is-style-carte-offre {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.is-style-carte-offre > * { margin: 0 !important; }
.is-style-carte-offre h3 { margin: 0; }
.is-style-carte-offre p:not([class*="is-style-pastille"]) { font-size: 16px; color: var(--scv-texte-3); }
.is-style-carte-offre .is-style-coches { font-size: 16px; color: var(--scv-texte); }
.is-style-carte-offre > .is-layout-flex { gap: 10px 16px; }
@media (max-width: 480px) {
	.is-style-carte, .is-style-carte-offre { padding: 24px; }
}

/* Petite carte (accueil, qui suis-je) */
.is-style-carte-simple {
	background: #FFFFFF;
	border-radius: var(--scv-rayon);
	padding: 24px 28px;
}
.is-style-carte-simple > * { margin: 0 !important; }
.is-style-carte-simple > * + * { margin-top: 4px !important; }
.is-style-carte-simple p { font-size: 16px; color: var(--scv-texte-3); }
.is-style-carte-simple .scv-titre-carte,
.is-style-carte-simple h3 {
	font-family: var(--scv-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--scv-vert-profond);
}

/* Carte cliquable (« Pour qui ? ») : toute la carte devient le lien du titre */
.is-style-carte-cliquable {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 32px;
	background: var(--scv-creme);
	border-radius: var(--scv-rayon);
	color: var(--scv-texte);
	transition: transform .2s ease, box-shadow .2s ease;
}
.is-style-carte-cliquable > * { margin: 0 !important; }
.is-style-carte-cliquable h3 { font-size: 24px; }
.is-style-carte-cliquable h3 a { color: var(--scv-vert-profond); text-decoration: none; }
.is-style-carte-cliquable h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.is-style-carte-cliquable h3 a:focus-visible { outline: none; }
.is-style-carte-cliquable:focus-within { outline: 3px solid var(--scv-or); outline-offset: 3px; }
.is-style-carte-cliquable:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
.is-style-carte-cliquable p { font-size: 16px; color: var(--scv-texte-3); }
.is-style-carte-cliquable p:last-child { margin-top: auto !important; padding-top: 8px; font-weight: 600; color: var(--scv-or-texte); }
@media (prefers-reduced-motion: reduce) {
	.is-style-carte-cliquable { transition: none; }
	.is-style-carte-cliquable:hover { transform: none; }
}

/* Icônes des cartes « Pour qui ? » */
.is-style-carte-cliquable[class*="scv-icone-"]::before {
	content: "";
	display: block;
	width: 36px;
	height: 36px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.scv-icone-agriculteurs::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4A3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21V9'/%3E%3Cpath d='M12 13c-3 0-5-2-5-5 3 0 5 2 5 5z'/%3E%3Cpath d='M12 11c0-3 2-5 5-5 0 3-2 5-5 5z'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
.scv-icone-entreprises::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4A3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 13h18'/%3E%3C/svg%3E"); }
.scv-icone-particuliers::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4A3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
.scv-icone-secretariat::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F4A3A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E"); }

/* Grille de cartes : auto-fit, 340 px mini, gouttière 20 px */
.is-style-grille-cartes {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 20px;
	align-items: stretch;
}
.is-style-grille-cartes > * { margin: 0 !important; }
.is-style-grille-cartes.scv-grille-etroite { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

/* ==========================================================================
   6. Listes à coches dorées
   ========================================================================== */
ul.is-style-coches,
.is-style-coches {
	list-style: none;
	margin-left: 0;
	margin-right: 0;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.is-style-coches li {
	position: relative;
	padding-left: 28px;
	margin: 0;
}
.is-style-coches li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.32em;
	width: 18px;
	height: 18px;
	background-color: var(--scv-or-coche);
	-webkit-mask: var(--scv-coche) no-repeat center / contain;
	mask: var(--scv-coche) no-repeat center / contain;
}
/* Variante sur deux colonnes (secrétariat) */
.is-style-carte .is-style-coches.scv-deux-colonnes,
.is-style-coches.scv-deux-colonnes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	gap: 14px 24px;
}

/* ==========================================================================
   7. Encart « prérequis »
   ========================================================================== */
.is-style-prerequis {
	position: relative;
	padding: 22px 26px 22px 62px;
	background: var(--scv-sable-fonce);
	border-radius: var(--scv-rayon);
	color: #4A3A12;
	font-size: 16px;
}
.is-style-prerequis::before {
	content: "";
	position: absolute;
	left: 26px;
	top: 24px;
	width: 22px;
	height: 22px;
	background: var(--scv-info) no-repeat center / contain;
}
.is-style-prerequis > * { margin: 0 !important; }
.is-style-prerequis > * + * { margin-top: 8px !important; }

/* ==========================================================================
   8. Chiffres (« 1 besoin… », « 24 ans… »)
   ========================================================================== */
.is-style-chiffre {
	padding: 28px 16px;
	border-bottom: 3px solid var(--scv-or);
}
.is-style-chiffre > * { margin: 0 !important; }
.is-style-chiffre > * + * { margin-top: 6px !important; }
.is-style-chiffre.scv-chiffre-gauche { padding: 8px 0 14px; }
.is-style-chiffre.scv-chiffre-gauche > * + * { margin-top: 10px !important; }

/* ==========================================================================
   9. Boutons
   ========================================================================== */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--scv-vert);
	border: 1.5px solid var(--scv-vert);
	padding: 14px 26px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--scv-vert);
	color: #FFFFFF;
}
.wp-block-button.is-style-clair > .wp-block-button__link {
	background: var(--scv-creme);
	color: var(--scv-vert-profond);
}
.wp-block-button.is-style-clair > .wp-block-button__link:hover {
	background: #FFFFFF;
	color: var(--scv-vert-profond);
}
.wp-block-button.is-style-contour-clair > .wp-block-button__link {
	background: transparent;
	color: var(--scv-texte-vert);
	border: 1.5px solid #6F8476;
	padding: 14px 26px;
}
.wp-block-button.is-style-contour-clair > .wp-block-button__link:hover {
	border-color: var(--scv-texte-vert);
	color: #FFFFFF;
}
/* Pilules d'ancre (Entreprises) */
.wp-block-buttons.scv-pilules .wp-block-button__link {
	min-height: 44px;
	padding: 10px 18px;
	font-size: 15px;
}

/* ==========================================================================
   10. Encarts dates (facture électronique)
   ========================================================================== */
.scv-encart-date {
	padding: 24px 28px;
	border-radius: var(--scv-rayon);
}
.scv-encart-date > * { margin: 0 !important; }
.scv-encart-date > * + * { margin-top: 6px !important; }
.scv-encart-date .is-style-surtitre { letter-spacing: 0.16em; }
.scv-encart-date .scv-titre-carte {
	font-family: var(--scv-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}

/* ==========================================================================
   11. Témoignages
   ========================================================================== */
.wp-block-quote.is-style-temoignage {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 32px;
	background: #FFFFFF;
	border: 0;
	border-radius: var(--scv-rayon);
}
.wp-block-quote.is-style-temoignage::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	background: var(--scv-guillemet) no-repeat center / contain;
}
.wp-block-quote.is-style-temoignage > * { margin: 0; }
.wp-block-quote.is-style-temoignage p {
	font-family: var(--scv-serif);
	font-size: 20px;
	line-height: 1.5;
	color: var(--scv-vert-profond);
}
.wp-block-quote.is-style-temoignage cite {
	font-family: var(--scv-sans);
	font-style: normal;
	font-size: 15px;
	color: var(--scv-texte-3);
}

/* ==========================================================================
   12. Photo (portrait 4:5)
   ========================================================================== */
.scv-portrait img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--scv-rayon);
	background: #D9CDB2;
}

/* ==========================================================================
   13. Formulaires Fluent Forms
   ========================================================================== */
.scv-formulaire {
	padding: 36px;
	background: #FFFFFF;
	border-radius: var(--scv-rayon);
}
@media (max-width: 480px) { .scv-formulaire { padding: 24px; } }
.fluentform .ff-el-group { margin-bottom: 16px; }
.fluentform .ff-el-input--label label,
.fluentform .ff-el-input--label {
	font-size: 14px;
	font-weight: 500;
	color: var(--scv-texte);
}
.fluentform .ff-el-form-control {
	min-height: 48px;
	padding: 10px 14px;
	background: #FBF8F2;
	border: 1px solid #A89E89;
	border-radius: 10px;
	font: inherit;
	font-size: 16px;
	color: var(--scv-texte);
}
.fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.fluentform .ff-el-form-control:focus {
	border-color: var(--scv-vert);
	box-shadow: 0 0 0 3px rgba(201, 160, 74, .35);
	outline: none;
}
.fluentform .ff-el-form-check-label,
.fluentform .ff_t_c { font-size: 14px; color: var(--scv-texte-3); }
.fluentform input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--scv-vert); }
.fluentform .ff-btn-submit,
.fluentform .ff_btn_style {
	min-height: 50px;
	padding: 0 34px !important;
	background-color: var(--scv-vert) !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--scv-sans) !important;
	font-size: 17px !important;
	font-weight: 600 !important;
}
.fluentform .ff-btn-submit:hover { background-color: var(--scv-vert-profond) !important; opacity: 1 !important; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #A3271F; }
.fluentform .error, .fluentform .text-danger { color: #A3271F; font-size: 14px; }
.ff-message-success {
	border: 0 !important;
	border-radius: var(--scv-rayon);
	background: var(--scv-sable-fonce) !important;
	color: var(--scv-texte) !important;
	box-shadow: none !important;
}
/* Deux colonnes (Fluent « container ») */
.fluentform .ff-t-container { gap: 16px; }

/* ==========================================================================
   14. Pages de texte (mentions légales, confidentialité)
   ========================================================================== */
.scv-texte-long { max-width: 760px; }
.scv-texte-long h2 { font-size: 28px; margin-top: 48px; margin-bottom: 12px; }
.scv-texte-long p, .scv-texte-long li { color: var(--scv-texte-2); }
.scv-a-completer { background: #FCEBB6; padding: 0 4px; border-radius: 4px; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 781px) {
	.wp-block-columns.scv-colonnes-hero { gap: 40px; }
}
@media (max-width: 689px) {
	.wp-block-buttons > .wp-block-button { flex: 0 1 auto; }
	.is-style-carte-cliquable, .is-style-carte-offre { padding: 24px; }
}
html, body { overflow-x: clip; }

/* ==========================================================================
   16. Mise en page des sections (classes utilisées par le contenu)
   ========================================================================== */
.entry-content .scv-groupe-offres { margin-bottom: 72px; }
.entry-content .scv-groupe-offres > h2 { margin: 0 0 8px; }
.entry-content .scv-intro { margin: 0 0 32px; color: var(--scv-texte-2); max-width: 760px; }
.has-vert-profond-background-color .scv-intro { color: var(--scv-texte-vert-2); margin-bottom: 48px; max-width: 560px; }
.entry-content .scv-groupe-offres > .is-style-grille-cartes,
.entry-content .scv-intro + .is-style-grille-cartes { margin-top: 0; }
.entry-content .scv-offres > .is-style-prerequis { margin-top: 0; }

.scv-entete > .is-style-pastille { margin-bottom: 18px !important; }
.scv-entete > h1 { margin-top: 0 !important; }
.scv-entete > .is-style-chapo { margin-top: 24px !important; }
.scv-entete > .is-style-accroche { margin-top: 20px !important; }
.scv-entete > .wp-block-buttons { margin-top: 32px !important; }

.scv-centre { text-align: center; }
.scv-centre > * { margin-left: auto !important; margin-right: auto !important; }
.scv-centre > .is-style-surtitre { margin-bottom: 20px; }
.scv-centre > p:last-child { max-width: 620px; margin-top: 32px; }
.is-style-grille-cartes.scv-grille-chiffres {
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
	gap: 16px;
	max-width: 960px;
}
.is-style-grille-cartes.scv-grille-chiffres-cles { gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.entry-content .is-style-grand-chiffre { color: var(--scv-vert-profond); }
.scv-chiffre-legende { font-weight: 600; font-size: 18px; }
.scv-chiffre-gauche .scv-chiffre-legende { font-weight: 400; font-size: 17px; color: var(--scv-texte-2); }

.scv-texte-doux { color: var(--scv-texte-3) !important; }
.scv-petit { font-size: 15px; }
.scv-lien-fort a { font-weight: 600; }
.scv-pile-cartes { display: flex; flex-direction: column; gap: 14px; }
.scv-pile-cartes > * { margin: 0 !important; }
.scv-boutons-hero { margin-top: 36px !important; gap: 14px; }
.scv-hero-accueil h1 { margin: 18px 0 0; }
.scv-hero-accueil .is-style-chapo { margin-top: 26px; max-width: 560px; }

/* Coordonnées */
.scv-coordonnees { display: flex; flex-direction: column; gap: 10px; padding: 24px 28px; }
.scv-coordonnees > * { margin: 0 !important; }
.scv-coordonnees a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scv-coordonnees a:hover { text-decoration-thickness: 2px; }
.scv-tel a { font-size: 22px; font-weight: 600; }
.scv-surtitre-zone { margin-top: 32px !important; margin-bottom: 12px !important; }
.scv-zones { gap: 8px; }
.scv-zones > * { margin: 0 !important; }

/* Bandeau vert */
.scv-bandeau-contenu { gap: 32px; }
.scv-bandeau-texte { flex: 1 1 520px; min-width: 0; }
.scv-bandeau-texte > * { margin: 0 !important; }
.scv-bandeau-texte > .is-style-surtitre { margin-bottom: 8px !important; }
.scv-bandeau-texte > h2 { margin-bottom: 10px !important; font-size: clamp(28px, 3vw, 34px); line-height: 1.2; }
.scv-bandeau .wp-block-buttons { gap: 12px; }

/* Carte de service avec lien (qui suis-je) */
.scv-carte-lien { position: relative; transition: box-shadow .2s ease; }
.scv-carte-lien .scv-titre-carte a { color: var(--scv-vert-profond); text-decoration: none; }
.scv-carte-lien .scv-titre-carte a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.scv-carte-lien:hover { box-shadow: 0 10px 24px rgba(31, 51, 40, .12); }
.scv-carte-lien:focus-within { outline: 3px solid var(--scv-or); outline-offset: 3px; }
.scv-colonnes-parcours .wp-block-column:last-child { display: flex; flex-direction: column; gap: 16px; }
.scv-colonnes-parcours .wp-block-column:last-child > * { margin: 0 !important; }
.scv-colonnes-parcours .wp-block-column:last-child > h2 { margin-bottom: 4px !important; }

/* Secrétariat */
.is-style-pastille-prix.scv-prix-grand { padding: 10px 18px; font-size: 20px; }
.scv-intro-large { max-width: 760px; }
.is-style-grille-cartes.scv-grille-dates { gap: 16px; margin-bottom: 40px; }

/* Avis */
.is-style-grille-cartes.scv-grille-avis { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 48px; }
.scv-encart-avis { margin-top: 40px !important; padding: 28px 32px; border-radius: var(--scv-rayon); gap: 16px; }
.scv-encart-avis > * { margin: 0 !important; }
.scv-texte-fort { font-weight: 600; color: #4A3A12; }

/* Colonnes */
.scv-colonnes-hero, .scv-colonnes-presentation, .scv-colonnes-contact, .scv-colonnes-parcours, .scv-colonnes-secretariat { gap: 56px; margin: 0; }
.scv-colonnes-secretariat { gap: 40px; }
.scv-colonnes-presentation h2 { margin-top: 0; }
.scv-colonnes-contact > .wp-block-column:first-child > h2 { margin-top: 0; }

/* Formulaire : deux colonnes pour les champs courts */
.scv-formulaire .wp-block-shortcode, .scv-formulaire > * { margin: 0; }
.fluentform fieldset {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	column-gap: 16px;
}
.fluentform fieldset > * { grid-column: 1 / -1; }
.fluentform fieldset > .scv-champ-demi { grid-column: auto; }
.fluentform .ff-el-input--label { margin-bottom: 6px; }
.fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after { color: #A3271F; }

/* Pied de page : deux colonnes alignées */
.ct-footer [data-row*="bottom"] .ct-container { align-items: center; }
.ct-footer [data-row*="bottom"] .ct-container > [data-column]:last-child { justify-content: flex-end; }
@media (max-width: 999px) { .ct-footer [data-row*="bottom"] .ct-container > [data-column]:last-child { justify-content: flex-start; } }
[data-footer] .ct-footer [data-id="menu"] > ul > li > a,
[data-footer] .ct-footer [data-id="menu"] a { color: var(--scv-texte-vert-2) !important; }
[data-footer] .ct-footer [data-id="menu"] a:hover { color: #FFFFFF !important; }
.fluentform .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 10px; }
.fluentform .ff_tc_checkbox { flex: none; display: block; width: 20px; }
.fluentform .ff_tc_checkbox input { position: static !important; margin: 2px 0 0 !important; }
.fluentform .ff_t_c { flex: 1; padding: 0 !important; margin: 0 !important; }

.fluentform .ff_t_c a { text-decoration: underline; text-underline-offset: 2px; }
.fluentform .ff_tc_label .ff_t_c { padding-left: 10px !important; }
