/* =====================================================================
   Cremagest — reskin.css
   Surcouche de marque branchée sur les tokens (theme.json) et les
   block style variations (inc/blocks.php). Aucun ID de post, aucun
   sélecteur dépendant de la langue : uniquement des hooks `is-style-*`
   et des classes stables. Valable sur les 6 langues WPML.

   Plan :
     0. Police auto-hébergée (slot)
     1. Boutons          .is-style-cremagest-primary / -ghost
     2. Bandes sombres   .is-style-cremagest-dark  (hero, sections)
     3. Bandeau CTA      .is-style-cremagest-cta
     4. Sections crème   .is-style-cremagest-soft
     5. Cartes           .is-style-cremagest-card / -card-peach
     6. Stat             .is-style-cremagest-stat
     7. Typo accent      .is-style-cremagest-eyebrow / -badge
     8. Pied de page
   ===================================================================== */

/* 0. Police ----------------------------------------------------------
   Figtree (police de la maquette), AUTO-HÉBERGÉE (RGPD : pas de Google CDN).
   Police variable : 2 fichiers (latin + latin-ext) couvrent 300→900.
   Licence OFL. unicode-range repris de Google Fonts (subsetting). */
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-variable-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/figtree-variable-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Applique Figtree partout : on surcharge la variable de police Blocksy
   (héritée par le chrome) + les éléments de contenu. Pile système en repli. */
:root,
body {
	--theme-font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
#header.ct-header .ct-menu-link {
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Accent générique : mot mis en exergue dans un titre.
   <em> partout (sections claires), <strong> sur fond sombre. */
.is-style-cremagest-dark strong,
:is(h1, h2, h3) em {
	color: var(--wp--preset--color--brand);
	font-style: normal;
}

/* 1. Boutons --------------------------------------------------------- */
.wp-block-button.is-style-cremagest-primary .wp-block-button__link {
	background: var(--wp--preset--color--brand);
	color: #fff;
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	padding: 14px 26px;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(242, 145, 30, 0.28);
	transition: background-color 0.18s ease, transform 0.18s ease;
}
.wp-block-button.is-style-cremagest-primary .wp-block-button__link:hover {
	background: var(--wp--preset--color--brand-strong);
	transform: translateY(-1px);
}

.wp-block-button.is-style-cremagest-ghost .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: var(--wp--custom--radius--pill);
	padding: 13px 24px;
	font-weight: 600;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}
.wp-block-button.is-style-cremagest-ghost .wp-block-button__link:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

/* 2. Bandes sombres (hero + sections charbon) ------------------------ */
.is-style-cremagest-dark {
	background: linear-gradient(135deg, var(--wp--preset--color--charcoal) 0%, var(--wp--preset--color--charcoal-2) 100%);
	color: #fff;
	border-radius: var(--wp--custom--radius--lg);
}
.is-style-cremagest-dark :is(h1, h2, h3, h4) { color: #fff; }
.is-style-cremagest-dark p { color: rgba(255, 255, 255, 0.78); }
.is-style-cremagest-dark a:not(.wp-block-button__link) { color: var(--wp--preset--color--brand-light); }

/* Stats sous le hero : séparateurs verticaux discrets (rangée stats seulement) */
.is-style-cremagest-dark .cremagest-hero-stats > .wp-block-column + .wp-block-column {
	border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.cremagest-hero-stats .cremagest-stat-col h3 {
	font-size: clamp(26px, 3vw, 34px) !important;
	margin: 0 0 0.15em;
	font-weight: 800;
}
.cremagest-hero-stats .cremagest-stat-col p {
	color: rgba(255, 255, 255, 0.62) !important;
	margin: 0;
}

/* 3. Bandeau CTA (carte sombre arrondie) ----------------------------- */
.is-style-cremagest-cta {
	/* Figma mesuré : charbon NEUTRE plus clair que le hero (~#44484b) */
	background: linear-gradient(160deg, #44484b 0%, #34373a 100%);
	color: #fff;
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	text-align: center;
	box-shadow: var(--wp--custom--shadow--raised);
}
.is-style-cremagest-cta :is(h2, h3) { color: #fff; }
.is-style-cremagest-cta p { color: rgba(255, 255, 255, 0.72); }

/* 4. Sections claires (Figma mesuré : blanc #FFFDFE, pas crème) --------- */
.is-style-cremagest-soft {
	background: #FFFFFF;
}
/* Accueil : fond de contenu blanc pur (Blocksy posait un gris #FAFBFC) */
body.home,
.home .site-main,
.home .ct-container-full { background-color: #FFFFFF; }

/* 5. Cartes ---------------------------------------------------------- */
.is-style-cremagest-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--custom--shadow--card);
}

.is-style-cremagest-card-peach {
	background: var(--wp--preset--color--peach);
	border: 1px solid #F6E2C4;
	border-left: 3px solid var(--wp--preset--color--brand);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--40);
}
.is-style-cremagest-card-peach :is(h3, h4) { color: var(--wp--preset--color--ink); }

/* Coches de listes dans les cartes : pastille orange */
.is-style-cremagest-card ul,
.is-style-cremagest-card-peach ul { list-style: none; padding-left: 0; }
.is-style-cremagest-card li,
.is-style-cremagest-card-peach li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.is-style-cremagest-card li::before,
.is-style-cremagest-card-peach li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.45em;
	width: 14px; height: 14px;
	background: var(--wp--preset--color--brand);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 6. Stat (carte métrique, ex. -35 %) -------------------------------- */
.is-style-cremagest-stat {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--40);
	box-shadow: var(--wp--custom--shadow--card);
}
.is-style-cremagest-stat .has-positive-color,
.is-style-cremagest-stat strong { color: var(--wp--preset--color--positive); }
.is-style-cremagest-stat :is(h2, h3).has-positive-color { line-height: 1; margin-bottom: 0.2em; }

/* Carte d'étape (rollout) : l'eyebrow sert de badge de numéro */
.is-style-cremagest-card .is-style-cremagest-eyebrow { margin-bottom: 0.2em; }
.is-style-cremagest-card :is(h3, h4) { margin-top: 0; }

/* 7. Typo accent ----------------------------------------------------- */
.is-style-cremagest-eyebrow {
	color: var(--wp--preset--color--brand);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.4em;
}

.is-style-cremagest-badge {
	display: inline-block;
	background: rgba(242, 145, 30, 0.12);
	color: var(--wp--preset--color--brand-light);
	border: 1px solid rgba(242, 145, 30, 0.3);
	border-radius: var(--wp--custom--radius--pill);
	padding: 7px 16px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* 8. Pied de page (chrome Blocksy → crème, comme la maquette) -------- */
#footer.ct-footer [data-row="middle"] {
	background-color: var(--wp--preset--color--footer) !important;
	background-image: none !important;
	border-top: 1px solid var(--wp--preset--color--line);
}
#footer.ct-footer [data-row="middle"],
#footer.ct-footer [data-row="middle"] :is(p, span, li, .ct-widget),
#footer.ct-footer [data-row="middle"] :is(h2, h3, h4, h5, .ct-widget-title) {
	color: var(--wp--preset--color--ink) !important;
}
#footer.ct-footer [data-row="middle"] a:not(.wp-element-button) {
	color: var(--wp--preset--color--ink-soft) !important;
}
#footer.ct-footer [data-row="middle"] a:not(.wp-element-button):hover {
	color: var(--wp--preset--color--brand) !important;
}

/* Finition Figma : crème sur tout le footer, Figtree, pilule, espacement.
   (On garde le contenu RÉEL : CREMAGEST SRL, adresse, sélecteur de langue.) */
#footer.ct-footer { background-color: var(--wp--preset--color--footer) !important; }
#footer.ct-footer [data-row="middle"] { padding-block: 52px; }
#footer.ct-footer :is(h2, h3, h4, .ct-widget-title) {
	font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 700;
	letter-spacing: -0.01em;
}
#footer.ct-footer :is(.wp-element-button, .wp-block-button__link, .ct-button) {
	background: var(--wp--preset--color--brand) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--wp--custom--radius--pill) !important;
	padding: 12px 24px !important;
	font-weight: 600 !important;
	box-shadow: 0 6px 16px rgba(242, 145, 30, 0.28);
}
#footer.ct-footer :is(.wp-element-button, .wp-block-button__link, .ct-button):hover {
	background: var(--wp--preset--color--brand-strong) !important;
	color: #fff !important;
}

/* 9. Header — SOMBRE sur l'accueil (hero charbon), CLAIR sur les pages
   internes (hero crème), comme les maquettes. ----------------------- */
body.home #header.ct-header [data-row="middle"] {
	background: linear-gradient(135deg, var(--wp--preset--color--charcoal) 0%, var(--wp--preset--color--charcoal-2) 100%) !important;
}
body.home #header.ct-header [data-row="middle"] .ct-menu-link,
body.home #header.ct-header [data-row="middle"] .site-logo-container,
body.home #header.ct-header [data-row="middle"] .ct-toggle {
	color: #fff !important;
}
body.home #header.ct-header [data-row="middle"] .ct-menu-link:hover {
	color: var(--wp--preset--color--brand-light) !important;
}

/* Pages internes : header sur le crème du hero, texte sombre */
body:not(.home) #header.ct-header [data-row="middle"] {
	background: #fdf3e6 !important;
}
body:not(.home) #header.ct-header [data-row="middle"] .ct-menu-link,
body:not(.home) #header.ct-header [data-row="middle"] .site-logo-container,
body:not(.home) #header.ct-header [data-row="middle"] .ct-toggle {
	color: #2d3137 !important;
}
/* Logo : l'image servie est blanche (pour le header sombre). Sur les pages
   internes (header clair), on substitue une variante sombre versionnée
   (texte foncé, oiseau orange) déposée dans assets/img. */
body:not(.home) #header.ct-header .site-logo-container .default-logo,
body:not(.home) #header.ct-header .site-logo-container .ct-transparent-logo {
	visibility: hidden;
}
body:not(.home) #header.ct-header .site-logo-container {
	background: url("../img/cremagest-logo-dark.png") left center / contain no-repeat;
}
body:not(.home) #header.ct-header [data-row="middle"] .ct-menu-link:hover {
	color: var(--wp--preset--color--brand) !important;
}

/* Titre de page Blocksy masqué dès qu'une de nos sections hero est présente
   (la page porte son propre H1) — home + pages internes. */
body:has(.is-style-cremagest-light-hero) .hero-section,
body:has(.is-style-cremagest-light-hero) .entry-header,
body:has(.is-style-cremagest-dark) .hero-section {
	display: none !important;
}

/* =====================================================================
   10. HOME — layout Figma en contenu (pattern), via build-home.py.
   Le contenu de chaque langue porte les classes is-style-cremagest-*
   et des groupes alignfull (full-bleed natif Blocksy, indécrasable).
   ===================================================================== */

/* Titre de page Blocksy masqué sur l'accueil (le hero porte son propre titre) */
.home .hero-section { display: none; }

/* Hero plein écran : la bande sombre alignfull n'est pas arrondie */
.is-style-cremagest-dark.alignfull { border-radius: 0; }
.is-style-cremagest-dark.alignfull img {
	border-radius: var(--wp--custom--radius--md);
	box-shadow: var(--wp--custom--shadow--raised);
}

/* Chips d'icônes oranges sur les cartes Features */
.is-style-cremagest-card .cremagest-icon { margin: 0 0 0.9em; }
.is-style-cremagest-card .cremagest-icon img {
	height: 28px; width: 28px; object-fit: contain;
	box-sizing: content-box; padding: 10px;
	background: var(--wp--preset--color--peach);
	border: 1px solid #F6E2C4;
	border-radius: 12px;
}
.is-style-cremagest-card :is(h3, h4) { margin-top: 0; }

/* Survol des cartes */
.is-style-cremagest-card, .is-style-cremagest-card-peach {
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.is-style-cremagest-card:hover { transform: translateY(-3px); box-shadow: var(--wp--custom--shadow--raised); }
.is-style-cremagest-card-peach:hover { transform: translateY(-3px); }

/* Le badge respire au-dessus du titre */
.is-style-cremagest-dark .is-style-cremagest-badge { margin-bottom: 1em; }
.is-style-cremagest-dark h1 { margin-bottom: 0.5em; }

/* =====================================================================
   11. HOME — finitions Figma : coller le hero au header + dégradé riche
   ===================================================================== */

/* (1) Pas de blanc entre header et hero sur l'accueil */
.home .site-main,
.home .site-main > .ct-container-full { padding-top: 0 !important; }
.home article > .entry-header { display: none !important; }
.home .entry-content { margin-top: 0 !important; }
.home .entry-content > .is-style-cremagest-dark:first-child { margin-top: 0; }

/* (2) Hero : valeurs EXACTES du Figma (figma/html/Home.dc.html).
   Dégradé qui s'éclaircit vers le bas (#2b2e32 -> #56595d) + halo blanc. */
.is-style-cremagest-dark {
	background:
		radial-gradient(75% 75% at 80% 22%, rgba(255, 255, 255, 0.08), transparent 60%),
		linear-gradient(180deg, #2b2e32 0%, #3a3d41 48%, #56595d 100%);
}

/* (3) Carte média du hero : cadre subtil façon device */
.is-style-cremagest-dark.alignfull img {
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* (1b) Élimination définitive du liseré blanc : 1er enfant collé au header */
.home .entry-content > :first-child { margin-top: 0 !important; }
.home .entry-content { padding-top: 0 !important; }
.home .site-main > .ct-container-full { padding-block-start: 0 !important; }

/* =====================================================================
   12. Header CTA (item contact -> pilule orange) + profondeur média hero
   ===================================================================== */
/* L'item devient une pilule centrée verticalement (pas un bloc pleine hauteur) */
#header.ct-header [data-row="middle"] li.cremagest-cta {
	display: flex;
	align-items: center;
	margin-left: 8px;
}
#header.ct-header [data-row="middle"] li.cremagest-cta .ct-menu-link {
	background: var(--wp--preset--color--brand) !important;
	color: #fff !important;
	border-radius: var(--wp--custom--radius--pill);
	padding: 9px 20px !important;
	height: auto !important;
	line-height: 1.2 !important;
	font-weight: 600;
	box-shadow: 0 6px 16px rgba(242, 145, 30, 0.28);
	transition: background-color 0.18s ease;
}
/* Neutralise le surlignage/soulignement Blocksy au survol sur la pilule */
#header.ct-header [data-row="middle"] li.cremagest-cta .ct-menu-link::before,
#header.ct-header [data-row="middle"] li.cremagest-cta .ct-menu-link::after {
	display: none !important;
}
#header.ct-header [data-row="middle"] li.cremagest-cta .ct-menu-link:hover {
	background: var(--wp--preset--color--brand-strong) !important;
	color: #fff !important;
}

/* Tagline sous le logo : absent du Figma (le logo suffit) */
#header.ct-header .site-description,
#header.ct-header .ct-logo-container .site-tagline {
	display: none !important;
}

/* Média du hero : carte avec couche décalée derrière (profondeur Figma).
   Restreint au hero (on EXCLUT la rangée de stats .cremagest-hero-stats,
   sinon la dernière stat hérite d'un cadre parasite). */
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child { position: relative; }
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child::before {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 18px;
	z-index: 0;
}
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child .wp-block-image { position: relative; z-index: 1; }

/* =====================================================================
   13. HOME Figma — Capabilities (piliers + panneau), Why, CTA fine
   ===================================================================== */

/* Eyebrow centré garde sa couleur même centré ; espace sous le sous-titre */
.is-style-cremagest-eyebrow { display: block; }

/* --- Capabilities : colonne de piliers (onglets visuels) --- */
.cremagest-pillars { display: flex; flex-direction: column; gap: 12px; }
.cremagest-pillars .cremagest-pillar {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--md);
	background: #fff;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	cursor: default;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}
.cremagest-pillars .cremagest-pillar.is-active {
	background: var(--wp--preset--color--peach);
	border-color: #F3D7AE;
	border-left: 3px solid var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand-strong);
}

/* --- Capabilities : panneau détaillé (carte blanche + capture) --- */
.cremagest-feature-panel {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--50);
	box-shadow: var(--wp--custom--shadow--card);
}
/* Panneau en 2 colonnes via CSS grid (texte | capture), centré verticalement.
   Grid plutôt que wp:columns imbriqués (qui s'écrasaient). */
.cremagest-feature-panel {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 20px;
	align-items: center;
	overflow: visible;
}
.cremagest-feature-panel .cremagest-panel-text > :first-child { margin-top: 0; }
.cremagest-feature-panel .cremagest-panel-text > :last-child { margin-bottom: 0; }
/* Laptop plus grand qui déborde légèrement la carte (façon Figma) */
.cremagest-feature-panel .cremagest-panel-shot { margin: 0 -22px -32px 0; }
.cremagest-feature-panel .cremagest-panel-shot img {
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--md);
}
@media (max-width: 781px) {
	.cremagest-feature-panel { grid-template-columns: 1fr; }
}

/* --- Liste à coches vertes (panneau) --- */
.cremagest-checklist { list-style: none; padding-left: 0; margin: 1em 0; }
.cremagest-checklist li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 12px;
	color: var(--wp--preset--color--ink);
}
.cremagest-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.15em;
	width: 18px; height: 18px;
	border-radius: 999px;
	background: rgba(46, 158, 106, 0.14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%232E9E6A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px;
}

/* --- Bouton "outline" pour fonds clairs (orange) --- */
.wp-block-button.is-style-cremagest-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--brand-strong);
	border: 1px solid var(--wp--preset--color--brand);
	border-radius: var(--wp--custom--radius--pill);
	padding: 11px 22px;
	font-weight: 600;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.wp-block-button.is-style-cremagest-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--brand);
	color: #fff;
}

/* --- Lien texte orange (See all features →) --- */
.cremagest-link a {
	color: var(--wp--preset--color--brand-strong);
	font-weight: 700;
	text-decoration: none;
}
.cremagest-link a:hover { text-decoration: underline; }

/* --- Why Cremagest : cartes pêche façon Figma (sans liseré gauche) --- */
.is-style-cremagest-soft .is-style-cremagest-card-peach {
	border-left: 1px solid #F6E2C4;
}
.is-style-cremagest-soft .is-style-cremagest-card-peach h3 { margin: 0 0 0.4em; }
.cremagest-card-desc { color: var(--wp--preset--color--ink-soft); margin: 0; }

/* --- CTA : note discrète sous le bouton --- */
.cremagest-fineprint { color: rgba(255, 255, 255, 0.5) !important; margin-top: 1em; font-size: var(--wp--preset--font-size--small); }
.cremagest-cta-box { max-width: 760px; margin-left: auto; margin-right: auto; }

/* =====================================================================
   14. HOME — calage fin du hero (proportions Figma)
   ===================================================================== */

/* H1 : graisse Figtree semi-bold, interligne serré, accent orange */
.is-style-cremagest-dark h1 {
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.01em;
	margin-bottom: 0.55em;
}
.is-style-cremagest-dark .has-medium-font-size { line-height: 1.6; }

/* Colonnes hero : centrage vertical réel texte <-> média */
.is-style-cremagest-dark > .wp-block-columns:not(.cremagest-hero-stats) { align-items: center; }

/* Média hero : occupe toute la colonne (l'image paraissait trop petite) */
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child .wp-block-image { margin: 0; }
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child img {
	width: 100%;
	height: auto;
	display: block;
}

/* Profondeur du média : cadre décalé en haut-droite, plus présent (façon Figma) */
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child::before {
	inset: -26px -30px 30px 26px;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 22px;
}

/* Boutons hero un peu plus généreux + alignement vertical du bloc */
.is-style-cremagest-dark .wp-block-buttons { gap: 12px; align-items: center; }

/* La pilule de stats respire un peu plus du hero */
.cremagest-hero-stats { max-width: 760px; }
.cremagest-hero-stats .cremagest-stat-col { padding: 4px 8px; }

/* =====================================================================
   15. Icônes (cartes « Built for » + piliers) — masques SVG, sans contenu
   ===================================================================== */

/* Cartes « Built for » : compactes (façon Figma) + icône orange au-dessus */
.is-style-cremagest-soft .is-style-cremagest-card-peach { padding: 20px; }
.is-style-cremagest-soft .is-style-cremagest-card-peach h3 { font-size: 17px; margin: 0 0 0.35em; }
.is-style-cremagest-soft .cremagest-card-desc { line-height: 1.45; }
.is-style-cremagest-soft .is-style-cremagest-card-peach::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin-bottom: 10px;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: var(--cg-icon) center / contain no-repeat;
	mask: var(--cg-icon) center / contain no-repeat;
}
.is-style-cremagest-soft .wp-block-columns > .wp-block-column:nth-child(1) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><circle cx='12' cy='12' r='5'/><circle cx='12' cy='12' r='1.5'/></svg>");
}
.is-style-cremagest-soft .wp-block-columns > .wp-block-column:nth-child(2) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/></svg>");
}
.is-style-cremagest-soft .wp-block-columns > .wp-block-column:nth-child(3) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='18' cy='5' r='3'/><circle cx='6' cy='12' r='3'/><circle cx='18' cy='19' r='3'/><line x1='8.6' y1='10.5' x2='15.4' y2='6.5'/><line x1='8.6' y1='13.5' x2='15.4' y2='17.5'/></svg>");
}
.is-style-cremagest-soft .wp-block-columns > .wp-block-column:nth-child(4) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/><path d='M21 3v5h-5'/><path d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/><path d='M3 21v-5h5'/></svg>");
}

/* Piliers : petite icône inline avant le libellé (couleur = texte du pilier) */
.cremagest-pillars .cremagest-pillar::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 10px;
	vertical-align: -4px;
	background-color: currentColor;
	-webkit-mask: var(--cg-icon) center / contain no-repeat;
	mask: var(--cg-icon) center / contain no-repeat;
}
.cremagest-pillars .cremagest-pillar:nth-child(1) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>");
}
.cremagest-pillars .cremagest-pillar:nth-child(2) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6a2 2 0 0 1 2-2h14a1 1 0 0 1 1 1v3'/><path d='M3 6v12a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/><path d='M18 12h4v4h-4a2 2 0 0 1 0-4z'/></svg>");
}
.cremagest-pillars .cremagest-pillar:nth-child(3) {
	--cg-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>");
}

/* =====================================================================
   16. ALIGNEMENT EXACT sur figma/html/Home.dc.html (valeurs du design)
   ===================================================================== */

/* --- HERO --- */
.is-style-cremagest-dark h1 {
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.12;
	letter-spacing: -0.5px;
	font-weight: 700;
	margin-bottom: 22px;
}
.is-style-cremagest-dark .has-medium-font-size { font-size: 18px; line-height: 1.6; color: #bcc0c5; }
.is-style-cremagest-dark .is-style-cremagest-badge {
	font-size: 13px;
	background: rgba(245, 146, 11, 0.16);
	color: #F5A93B;
	border: none;
	padding: 7px 14px;
	border-radius: 20px;
	margin-bottom: 26px;
}
.is-style-cremagest-dark .is-style-cremagest-badge::before { content: "\2726\00a0"; }
.is-style-cremagest-dark .wp-block-buttons { gap: 14px; }
.cremagest-hero-stats { max-width: 560px; }
.cremagest-hero-stats .cremagest-stat-col h3 { font-size: 26px !important; font-weight: 700; }
.cremagest-hero-stats .cremagest-stat-col p { font-size: 13px !important; color: #a8acb2 !important; }

/* --- CAPABILITIES : fond blanc + halos pêche --- */
.is-style-cremagest-capabilities {
	background:
		radial-gradient(46% 42% at 6% 58%, rgba(245, 168, 70, 0.13), transparent 72%),
		radial-gradient(40% 40% at 92% 96%, rgba(245, 168, 70, 0.08), transparent 70%),
		#ffffff;
}
.is-style-cremagest-capabilities .is-style-cremagest-eyebrow { font-size: 13px; letter-spacing: 1.5px; }
.is-style-cremagest-capabilities h2 { font-size: clamp(26px, 3.4vw, 32px); letter-spacing: -0.4px; }
.is-style-cremagest-capabilities .has-medium-font-size { font-size: 17px; color: #6b7077; }

/* Grille piliers 280px | panneau (remplace le flex %) */
.cremagest-cap-cols { display: grid !important; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.cremagest-cap-cols > .wp-block-column { flex: none !important; width: auto !important; max-width: none !important; }
.cremagest-pillars { gap: 6px; }
.cremagest-pillars .cremagest-pillar { padding: 14px 16px; border-radius: 11px; font-size: 15px; }

/* Panneau : 1fr 1fr, padding 36, gap 30, laptop CONTENU (pas de débord) */
.cremagest-feature-panel {
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	padding: 36px;
	border-color: #ecebe6;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(40, 40, 40, 0.06);
}
.cremagest-feature-panel .cremagest-panel-shot { margin: 0; }
.cremagest-feature-panel .cremagest-panel-text h3 { font-size: 22px; margin-bottom: 12px; }
.cremagest-feature-panel .cremagest-panel-text p { font-size: 15px; line-height: 1.6; color: #6b7077; }
.cremagest-checklist li { font-size: 14px; color: #3a3f45; }

/* --- WHY --- */
.is-style-cremagest-soft h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.4px; }
.is-style-cremagest-soft .is-style-cremagest-eyebrow { color: #9aa0a7; }
.is-style-cremagest-soft .is-style-cremagest-card-peach {
	background: #fbeccf;
	border: none;
	border-radius: 14px;
	padding: 24px;
}
.is-style-cremagest-soft .is-style-cremagest-card-peach::before { width: 22px; height: 22px; margin-bottom: 16px; }
.is-style-cremagest-soft .is-style-cremagest-card-peach h3 { font-size: 17px; margin: 0 0 8px; }
.is-style-cremagest-soft .cremagest-card-desc { font-size: 14px; line-height: 1.55; color: #6b6358; }

/* --- CTA : pleine largeur, charbon neutre exact --- */
.cremagest-cta-box { max-width: none; }
.is-style-cremagest-cta {
	background: linear-gradient(135deg, #2a2d32 0%, #3c4046 100%);
	border-radius: 20px;
	padding: 54px 32px;
}
.is-style-cremagest-cta h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.is-style-cremagest-cta p { font-size: 16px; color: #c2c6cb; }
.cremagest-fineprint { font-size: 13px; color: #888d93 !important; margin-top: 18px; }

/* --- Média hero = VIDÉO (autoplay muet en boucle) --- */
.is-style-cremagest-dark .cremagest-hero-video { margin: 0; position: relative; z-index: 1; }
.is-style-cremagest-dark .cremagest-hero-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
/* Cadre de profondeur derrière le média = valeurs exactes du HTML de référence */
.is-style-cremagest-dark .wp-block-columns:not(.cremagest-hero-stats) > .wp-block-column:last-child::before {
	inset: 24px -10px -22px 40px;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	border-radius: 18px;
}

/* =====================================================================
   17. PAGES INTERNES (figma/html/Implementations,Features,Solutions)
   ===================================================================== */

/* Hero clair (dégradé crème -> blanc) */
.is-style-cremagest-light-hero {
	background: linear-gradient(180deg, #fdf3e6 0%, #fdf3e6 55%, #fff 100%);
	border-radius: 0;
}
.is-style-cremagest-light-hero h1 {
	font-size: clamp(28px, 3.8vw, 40px);
	line-height: 1.18;
	letter-spacing: -0.5px;
	font-weight: 700;
	color: #2d3137;
	margin-bottom: 18px;
}
.is-style-cremagest-light-hero .cremagest-lead {
	font-size: 17px;
	line-height: 1.6;
	color: #5c6169;
	max-width: 480px;
}

/* Grille des étapes : bloc Grille NATIF Gutenberg (responsive auto). */
.cremagest-step {
	border: 1px solid #ecebe6;
	border-radius: 14px;
	padding: 24px;
	background: #fff;
	height: 100%;
}
.cremagest-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #fbeccf;
	color: #F5920B;
	font-size: 18px;
	margin: 0 0 18px;
}
.cremagest-step h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.cremagest-step-desc { font-size: 13.5px; line-height: 1.55; color: #7c8087; margin: 0 0 20px; }
.cremagest-deliv-label {
	font-size: 12px; font-weight: 700; letter-spacing: 0.4px;
	color: #9aa0a7; margin: 0 0 12px; text-transform: none;
}
.cremagest-deliverables {
	list-style: none; padding-left: 0; margin: 0;
	display: flex; flex-direction: column; gap: 11px;
}
.cremagest-deliverables li {
	position: relative; padding-left: 18px;
	font-size: 13px; color: #4a4f55; line-height: 1.4;
}
.cremagest-deliverables li::before {
	content: "\2713"; position: absolute; left: 0; top: 0;
	color: #F5920B; font-weight: 700;
}


/* =====================================================================
   18. Footer — sélecteur de langue élégant + bouton non pleine largeur
   ===================================================================== */

/* Bouton CTA du footer : inline auto (plus de barre orange pleine largeur) */
#footer.ct-footer .wp-block-button,
#footer.ct-footer .wp-block-buttons { width: auto !important; }
#footer.ct-footer :is(.wp-element-button, .wp-block-button__link, .ct-button) {
	display: inline-block !important;
	width: auto !important;
	padding: 11px 22px !important;
}

/* Sélecteur de langue WPML : rangée propre, drapeau discret + code, actif orange */

/* Respiration avant le CTA sur les pages internes (≈ valeurs figma/html :
   section pb 20 + CTA pt 60). Sans ça, le CTA est collé aux cartes. */
body:not(.home) .entry-content > .wp-block-group.alignfull:last-of-type {
	padding-top: var(--wp--preset--spacing--70) !important;
}


/* Pages internes : pas de marge entre les sections alignfull (l'espacement
   est porté par les paddings de chaque section, comme dans le HTML de réf).
   Évite le grand vide hero -> cartes. */
body:not(.home) .entry-content > .wp-block-group.alignfull {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Blocksy ajoute un padding vertical (--theme-content-vertical-spacing) au
   conteneur de contenu. Sur nos pages reskinnées (hero maison), on le retire :
   l'espacement est porté UNIQUEMENT par les paddings de nos sections, donc le
   hero colle au header et le CTA au footer (comme dans figma/html). */
body:has(.is-style-cremagest-light-hero) main.site-main,
body:has(.is-style-cremagest-light-hero) main.site-main > .ct-container-full,
body:has(.is-style-cremagest-dark) main.site-main,
body:has(.is-style-cremagest-dark) main.site-main > .ct-container-full {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* =====================================================================
   19. PAGE FEATURES (figma/html/Features.dc.html)
   ===================================================================== */

/* Badge clair du hero Features */
.cremagest-badge-light {
	display: table;
	width: auto;
	background: #fff;
	border: 1px solid #f0dcc0;
	color: #a06a1e;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 13px;
	border-radius: 6px;
	margin: 0 0 22px;
}

/* Rangée de pills (tags) sous le sous-titre */
.cremagest-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cremagest-pills .cremagest-pill {
	margin: 0;
	background: #fff;
	border: 1px solid #ece9e2;
	border-radius: 20px;
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 500;
	color: #4a4f55;
}

/* Grille Features : bloc Grille NATIF Gutenberg (responsive auto). */

/* Carte fonctionnalité */
.cremagest-feature-card {
	border: 1px solid #ecebe6;
	border-radius: 14px;
	padding: 26px;
	background: #fff;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.cremagest-feat-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 9px;
	background: #fbeccf; color: #F5920B; font-size: 18px; margin: 0 0 18px;
}
.cremagest-feature-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.cremagest-feat-desc { font-size: 14px; line-height: 1.55; color: #7c8087; margin: 0 0 18px; }
.cremagest-feat-points {
	list-style: none; padding: 16px 0 0; margin: 0 0 20px;
	border-top: 1px solid #f0eee9;
	display: flex; flex-direction: column; gap: 11px;
}
.cremagest-feat-points li {
	position: relative; padding-left: 20px;
	font-size: 13.5px; color: #4a4f55; line-height: 1.4;
}
.cremagest-feat-points li::before {
	content: "\2713"; position: absolute; left: 0; top: 0; color: #F5920B; font-weight: 700;
}
/* "En savoir plus" : bouton outline discret (pousse en bas de carte) */
.cremagest-feature-card .wp-block-buttons { margin-top: auto; }
.wp-block-button.is-style-cremagest-learn .wp-block-button__link {
	background: transparent;
	border: 1px solid #f0dcc0;
	color: #c4781a;
	border-radius: 8px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 600;
}
.wp-block-button.is-style-cremagest-learn .wp-block-button__link:hover {
	background: #fbeccf;
	border-color: #f0dcc0;
}


/* Hero clair : contenu aligné à GAUCHE (le layout constrained centrait les
   éléments étroits badge/sous-titre via margin-inline:auto). */
.is-style-cremagest-light-hero > .cremagest-badge-light,
.is-style-cremagest-light-hero > .cremagest-lead,
.is-style-cremagest-light-hero > .cremagest-pills {
	margin-inline: 0 !important;
}

/* =====================================================================
   20. Icônes de cartes EN SVG (remplace les emojis) — Features + steps
   ===================================================================== */
.cremagest-feat-icon,
.cremagest-step-icon { font-size: 0 !important; }
.cremagest-feat-icon::before,
.cremagest-step-icon::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-color: #F5920B;
	-webkit-mask: var(--cg-ic) center / contain no-repeat;
	mask: var(--cg-ic) center / contain no-repeat;
}

/* --- Features (6) : agenda, facturation, rapport, cadenas, multi-site, bouclier --- */
.cremagest-features-grid > .cremagest-feature-card:nth-child(1) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><path d='M16 2v4M8 2v4M3 10h18'/></svg>"); }
.cremagest-features-grid > .cremagest-feature-card:nth-child(2) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/><path d='M14 2v6h6'/><path d='M9 13h6M9 17h6'/></svg>"); }
.cremagest-features-grid > .cremagest-feature-card:nth-child(3) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='4' rx='1'/><path d='M5 8v11a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V8'/><path d='M10 12h4'/></svg>"); }
.cremagest-features-grid > .cremagest-feature-card:nth-child(4) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='5' width='20' height='14' rx='2'/><path d='M2 10h20'/></svg>"); }
.cremagest-features-grid > .cremagest-feature-card:nth-child(5) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='2' y='6' width='14' height='12' rx='2'/><path d='m22 8-6 4 6 4z'/></svg>"); }
.cremagest-features-grid > .cremagest-feature-card:nth-child(6) .cremagest-feat-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18M6 21V7l6-4 6 4v14'/><path d='M10 9h.01M14 9h.01M10 13h.01M14 13h.01'/></svg>"); }

/* --- Implementations (4) : analyse, config, formation, go-live --- */
.cremagest-steps > .cremagest-step:nth-child(1) .cremagest-step-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m21 21-4.3-4.3'/></svg>"); }
.cremagest-steps > .cremagest-step:nth-child(2) .cremagest-step-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 21v-7M4 10V3M12 21v-9M12 8V3M20 21v-5M20 12V3M1 14h6M9 8h6M17 16h6'/></svg>"); }
.cremagest-steps > .cremagest-step:nth-child(3) .cremagest-step-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>"); }
.cremagest-steps > .cremagest-step:nth-child(4) .cremagest-step-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m22 2-7 20-4-9-9-4z'/><path d='M22 2 11 13'/></svg>"); }

/* =====================================================================
   21. RESPONSIVE — empilements mobiles des grilles maison
   ===================================================================== */
@media (max-width: 980px) {
	/* Capabilities : piliers au-dessus du panneau */
	.cremagest-cap-cols { grid-template-columns: 1fr !important; }
	.cremagest-pillars { flex-direction: row; flex-wrap: wrap; }
	.cremagest-pillars .cremagest-pillar { flex: 1 1 auto; }
}
@media (max-width: 781px) {
	/* Rangée de stats du hero : 3 -> empilées proprement */
	.cremagest-hero-stats { flex-wrap: wrap; }
	.cremagest-hero-stats .cremagest-stat-col { flex-basis: 100%; border-left: 0 !important; }
	.is-style-cremagest-dark .cremagest-hero-stats > .wp-block-column + .wp-block-column { border-left: 0; }
}
@media (max-width: 600px) {
	/* Paddings latéraux de section plus serrés sur petit écran */
	.wp-block-group.alignfull.has-global-padding,
	.is-style-cremagest-light-hero,
	.is-style-cremagest-dark,
	.is-style-cremagest-capabilities,
	.is-style-cremagest-soft {
		padding-left: var(--wp--preset--spacing--40) !important;
		padding-right: var(--wp--preset--spacing--40) !important;
	}
	.is-style-cremagest-cta { padding-left: 22px !important; padding-right: 22px !important; }
}

/* =====================================================================
   22. Header/nav calés sur le Figma + sélecteur de langue épuré
   ===================================================================== */

/* Nav : casse normale (le Figma n'est PAS en majuscules), 15px / 500 */
#header.ct-header [data-row="middle"] .ct-menu-link {
	text-transform: none !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}
/* Home : header fondu dans le hero (même charbon que le haut du dégradé Figma) */
body.home #header.ct-header [data-row="middle"] {
	background: #2b2e32 !important;
}
body.home #header.ct-header [data-row="middle"] .ct-menu-link { color: #cfd2d6 !important; }
body.home #header.ct-header [data-row="middle"] .ct-menu-link:hover { color: #fff !important; }



/* =====================================================================
   23. PAGE SOLUTIONS — cartes personas (figma/html/Solutions.dc.html)
   ===================================================================== */
.cremagest-persona-card {
	background: #fff;
	border: 1px solid #ecebe6;
	border-radius: 16px;
	box-shadow: 0 14px 40px rgba(40, 40, 40, 0.05);
	padding: 32px;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.cremagest-persona-icon {
	display: inline-flex;
	width: 42px; height: 42px;
	border-radius: 10px;
	background: #fbeccf;
	margin: 0 0 18px;
}
.cremagest-persona-icon::before {
	content: ""; width: 22px; height: 22px; margin: auto;
	background-color: #F5920B;
	-webkit-mask: var(--cg-ic) center / contain no-repeat;
	mask: var(--cg-ic) center / contain no-repeat;
}
.cremagest-persona-card h3 { font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.cremagest-persona-tag { font-size: 14px; color: #8a8f95; margin: 0 0 16px; }
.cremagest-persona-body { font-size: 15px; line-height: 1.6; color: #6b7077; margin: 0 0 20px; }
.cremagest-persona-checks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 11px; }
.cremagest-persona-checks li { position: relative; padding-left: 30px; font-size: 13.5px; color: #3a3f45; line-height: 1.4; }
.cremagest-persona-checks li::before {
	content: "\2713"; position: absolute; left: 0; top: -1px;
	width: 20px; height: 20px; border-radius: 50%;
	background: #e7f5ec; color: #23a35a;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700;
}
.cremagest-persona-proof {
	margin: auto 0 0;
	background: #f4f7f4;
	border-radius: 10px;
	padding: 13px 16px;
	font-size: 13.5px; font-weight: 600;
	color: #23a35a; text-align: center;
}

/* Icônes personas (4) : direction, admin, pompes funèbres, réseaux */
.cremagest-personas-grid > .cremagest-persona-card:nth-child(1) .cremagest-persona-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18M6 21V7l6-4 6 4v14'/><path d='M10 9h.01M14 9h.01M10 13h.01M14 13h.01'/></svg>"); }
.cremagest-personas-grid > .cremagest-persona-card:nth-child(2) .cremagest-persona-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='2' width='16' height='20' rx='2'/><path d='M8 6h8M8 10h8M8 14h3M8 18h3'/></svg>"); }
.cremagest-personas-grid > .cremagest-persona-card:nth-child(3) .cremagest-persona-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><path d='M22 21v-2a4 4 0 0 0-3-3.87'/><path d='M16 3.13a4 4 0 0 1 0 7.75'/></svg>"); }
.cremagest-personas-grid > .cremagest-persona-card:nth-child(4) .cremagest-persona-icon { --cg-ic: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15 15 0 0 1 0 20 15 15 0 0 1 0-20'/></svg>"); }

/* =====================================================================
   24. Sélecteur de langue CUSTOM (.cg-lang) — dropdown élégant, child theme
   ===================================================================== */
.cg-lang { position: relative; display: inline-block; }
.cg-lang__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	background: #fff;
	border: 1px solid #e2ded5; border-radius: 999px;
	font: 600 14px/1 "Figtree", sans-serif;
	color: #2d3137; cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cg-lang__btn:hover { border-color: #F5920B; box-shadow: 0 4px 14px rgba(245,146,11,0.12); }
.cg-lang__globe { width: 16px; height: 16px; color: #F5920B; }
.cg-lang__chev { width: 14px; height: 14px; color: #9aa0a7; transition: transform 0.18s ease; }
.cg-lang__menu {
	position: absolute; left: 0; bottom: calc(100% + 8px);
	min-width: 180px; margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid #ece9e2; border-radius: 12px;
	box-shadow: 0 12px 32px rgba(40,40,40,0.12);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 20;
}
.cg-lang:hover .cg-lang__menu,
.cg-lang:focus-within .cg-lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cg-lang:hover .cg-lang__chev,
.cg-lang:focus-within .cg-lang__chev { transform: rotate(180deg); }
.cg-lang__menu a {
	display: block; padding: 9px 14px; border-radius: 8px;
	font-size: 14px; font-weight: 500; color: #4a4f55 !important; text-decoration: none;
}
.cg-lang__menu a:hover { background: #fbeccf; color: var(--wp--preset--color--brand) !important; }


/* Footer (col. milieu) : CTA centré, espacement vertical resserré */
#footer.ct-footer [data-row="middle"] [data-column="widget-area-2"] { gap: 16px !important; }
