/*
Theme Name: Kadence Wannup
Theme URI: https://wannup.com
Description: Thème enfant de Kadence pour wannup.com : charte Wannup, formulaires et rendez-vous HubSpot, suivi Google Tag Manager.
Author: CG Holding
Template: kadence
Version: 1.0.0
Text Domain: kadence-wannup
*/

/* ---------- Charte ---------- */
:root {
	--wannup-nuit: #201d41;
	--wannup-creme: #f6f3f1;
	--wannup-orange: #f59d19;
	--wannup-violet: #45277c;
	--wannup-lavande: #7b77ac;
	--wannup-degrade: linear-gradient(140deg, #45277c, #f59d19);
	--wannup-degrade-survol: linear-gradient(140deg, #201d41, #45277c);
}

/* Inter 300 (sous-titres) : fichier copié de wannup.com ; 400 et 700 viennent des polices locales de Kadence */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("fonts/Inter-300.woff2") format("woff2");
}

/* Pas de remplacement des emoji par des images */
img.emoji { display: none !important; }

/* Défilement vers une ancre : sous l'en-tête de 90 px */
html { scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* =====================================================================
   BASE TYPOGRAPHIQUE (Brightlane : corps 16 px, 14 px sous 1024 px)
   ===================================================================== */
@media (max-width: 1023px) {
	body, input, select, optgroup, textarea { font-size: 14px; }
	h1 { font-size: 40px; }
	h2 { font-size: 30px; }
	h3 { font-size: 25px; }
	h4 { font-size: 20px; }
	h5 { font-size: 18px; }
	h6 { font-size: 16px; }
}
@media (max-width: 767px) {
	h1 { line-height: 0.923; }
}
h5, h6 { letter-spacing: 0.015em; }

/* Marges des titres : 0, sauf .5em après un autre élément (jamais entre deux titres) */
.single-content :is(h1, h2, h3, h4, h5, h6) { margin: 0; }
.single-content * + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0.5em; }
.single-content :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0; }
/* Paragraphes : 1em haut et bas, 0 pour le premier et le dernier enfant */
.single-content p { margin: 1em 0; }
.single-content p:first-child { margin-top: 0; }
.single-content p:last-child { margin-bottom: 0; }
.single-content :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0; }
/* Liens du texte : orange, sans soulignement, survol bleu nuit */
.entry-content a:not(.wp-block-button__link):not(.kb-button) { text-decoration: none; transition: color 0.2s ease-in-out; }
.entry-content a:not(.wp-block-button__link):not(.kb-button):hover { text-decoration: none; }
/* Listes : puce ronde, retrait 24 px, 15 px entre deux éléments */
.single-content ul:not(.wp-block-social-links, .wp-block-navigation, .wp-block-gallery, .blocks-gallery-grid, [class*="kt-"], [class*="kb-"]) {
	list-style: none;
	margin: 1rem 0 1em; /* HubSpot : 16 px dessus, 1em dessous (14 px sous 1024 px) */
	padding: 0;
}
.single-content ul:not(.wp-block-social-links, .wp-block-navigation, .wp-block-gallery, .blocks-gallery-grid, [class*="kt-"], [class*="kb-"]) > li {
	position: relative;
	padding-left: 1.5em;
}
.single-content ul:not(.wp-block-social-links, .wp-block-navigation, .wp-block-gallery, .blocks-gallery-grid, [class*="kt-"], [class*="kb-"], [class*="wannup-list-"]) > li::before {
	/* Disque dessiné en CSS : la glyphe ● n'existe pas dans la sous-police Inter de Kadence (5 px au lieu de 9 px).
	   Mesuré sur wannup.com : 9 x 9 px à 1 px du bord et 9 px du haut (16 px de texte), 7,875 px sous 1024 px (14 px de texte). */
	content: "";
	position: absolute;
	left: 1px;
	top: 9px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: currentColor;
	font-size: 0;
	color: var(--wannup-nuit);
}
@media (max-width: 1023px) {
	.single-content ul:not(.wp-block-social-links, .wp-block-navigation, .wp-block-gallery, .blocks-gallery-grid, [class*="kt-"], [class*="kb-"], [class*="wannup-list-"]) > li::before {
		top: 7.5px;
		width: 7.875px;
		height: 7.875px;
	}
}
.single-content ol { list-style-position: inside; margin: 1rem 0 1em; padding: 0; }
.single-content li + li { margin-top: 15px; }
.single-content li.wannup-li-flush { margin-top: 0 !important; } /* li qui suit un ul imbriqué à tort (HTML de HubSpot) */
.single-content li > :is(ul, ol) { margin: 0; padding: 10px 15px 0; }
.single-content .wp-block-separator { border: 0; border-bottom: 2px solid var(--wannup-nuit); width: 40px; max-width: 100%; margin: 1.5em auto 0; opacity: 1; }

/* Aides pour le convertisseur : annuler la marge haute / basse automatique d'un titre ou d'un paragraphe (HubSpot : élément premier de son module) */
.single-content .wannup-mt0 { margin-top: 0; }
.single-content .wannup-mb0 { margin-bottom: 0; }

/* Titres qui gardent leur niveau mais reprennent l'apparence d'un autre (classes h4 à h6 de HubSpot) */
.entry-content .wannup-as-h6 { font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.667; text-transform: none; letter-spacing: 0.015em; }
.entry-content .wannup-as-h5 { font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.42; text-transform: uppercase; letter-spacing: 0.015em; }
.entry-content .wannup-as-h4 { font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 24px; line-height: 1.5; text-transform: none; letter-spacing: 0.01em; }
@media (max-width: 1023px) {
	.entry-content .wannup-as-h6 { font-size: 16px; }
	.entry-content .wannup-as-h5 { font-size: 18px; }
	.entry-content .wannup-as-h4 { font-size: 20px; }
}

/* =====================================================================
   BOUTONS (module .button de Brightlane : primaire, secondaire, lien souligné)
   ===================================================================== */
.wp-block-button__link,
.wp-element-button,
.button,
.kb-button {
	box-sizing: border-box;
	background-image: var(--wannup-degrade);
	background-color: var(--wannup-violet);
	background-clip: padding-box;
	color: var(--wannup-creme);
	border: 2px solid rgba(245, 157, 25, 0);
	border-radius: 50px;
	padding: 20px 40px;
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.25;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	text-decoration: underline 2px transparent !important; /* passe devant la règle « sans soulignement » de Kadence (liens du contenu) */
	text-underline-offset: 0.25em;
	transition: all 0.3s ease-in-out;
	box-shadow: none;
}
@media (max-width: 767px) {
	.wp-block-button__link, .wp-element-button, .button, .kb-button { font-size: inherit; }
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
.kb-button:hover,
.wp-block-button__link:focus-visible {
	background-image: var(--wannup-degrade-survol);
	background-color: var(--wannup-nuit);
	color: var(--wannup-creme);
	text-decoration-color: var(--wannup-creme);
	border-color: rgba(245, 157, 25, 0);
	box-shadow: none;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
.kb-button:hover,
.wp-block-button__link:focus-visible { text-decoration-color: var(--wannup-creme) !important; }
.wp-block-button__link:focus-visible { outline: 2px solid rgba(245, 157, 25, 0); outline-offset: 4px; }
/* Écart entre deux boutons : 1,5 rem */
.single-content .wp-block-buttons { gap: 1.5rem; }
/* Variante contour (bouton secondaire HubSpot) */
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link {
	background-image: none !important;
	background-color: transparent !important;
	color: var(--wannup-nuit) !important;
	border: 2px solid var(--wannup-nuit) !important;
	padding: 20px 40px;
	text-decoration-color: transparent;
}
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: var(--wannup-nuit) !important;
	color: var(--wannup-creme) !important;
	text-decoration-color: var(--wannup-creme);
}
/* Variante « lien souligné » (bouton text-link HubSpot) */
.wp-block-buttons .wp-block-button.is-style-wannup-link { display: flex; } /* .theme-ctas est un flex : la boîte fait la hauteur du lien (20 px), pas celle de la ligne du texte (26,72 px) */
.wp-block-buttons .wp-block-button.is-style-wannup-link > .wp-block-button__link {
	background: none !important;
	color: var(--wannup-nuit) !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 16px;
	letter-spacing: 0.025em;
	text-align: left;
	text-decoration: underline 2px var(--wannup-orange) !important;
	text-underline-offset: 0.25em;
}
@media (max-width: 767px) {
	.wp-block-buttons .wp-block-button.is-style-wannup-link > .wp-block-button__link { font-size: inherit; }
}
.wp-block-buttons .wp-block-button.is-style-wannup-link > .wp-block-button__link:hover {
	color: var(--wannup-orange) !important;
	text-decoration-color: var(--wannup-orange) !important;
}
/* Lien souligné sur fond sombre */
:is(.has-theme-palette-3-background-color, .has-theme-palette-5-background-color) .wp-block-button.is-style-wannup-link > .wp-block-button__link { color: var(--wannup-creme) !important; }
:is(.has-theme-palette-3-background-color, .has-theme-palette-5-background-color) .wp-block-button.is-style-wannup-link > .wp-block-button__link:hover { color: var(--wannup-orange) !important; }

/* =====================================================================
   SOUS-TITRES ET SUR-TITRES
   ===================================================================== */
/* Sous-titre de hero (div.subheading de HubSpot) : Inter 300 */
.single-content .wannup-subheading {
	font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 21px;
	line-height: 1.619;
	font-weight: 300;
	color: var(--wannup-nuit);
	margin: 1.5rem 0 0;
}
.single-content .wannup-subheading strong { font-weight: 400; }
@media (max-width: 1023px) {
	.single-content .wannup-subheading { font-size: 14px; line-height: 1.667; }
}
/* Sur-titre (eyebrow HubSpot) : 15 px / 24 px, 3 px d'espacement, casse du texte */
.single-content .wannup-eyebrow {
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: 0.2em;
	text-transform: none;
	color: var(--wannup-nuit);
	margin: 0 0 0.5rem;
}
@media (max-width: 1023px) {
	.single-content .wannup-eyebrow { font-size: 12px; }
}

/* Sur-titre suivi d'un titre : .125em au lieu de .5em (HubSpot : .eyebrow + h1…h6) */
.single-content .wannup-eyebrow + :is(h1, h2, h3, h4, h5, h6) { margin-top: 0.125em; }
/* Sur-titre en plusieurs parties (« Dernière mise à jour : • 16 Mai, 2024 ») : puce orange entre les parties, une ligne par partie sous 768 px */
.single-content .wannup-eyebrow__part:not(:last-child)::after { content: "\2022"; color: var(--wannup-orange); margin: 0 0.5ex; }
@media (max-width: 767px) {
	.single-content .wannup-eyebrow__part { display: block; }
	.single-content .wannup-eyebrow__part::after { display: none !important; }
}
/* Mot en gras dans un titre : plus gras que le titre (900 sur Inter 700, 700 sur Francois One 400, comme en ligne) */
.single-content :is(h1, h2, h3, h4, h5, h6) strong { font-weight: bolder; }

/* Encadré d'appel (cta-box de HubSpot) : titre surligné en blanc (trait de .7em de haut, décalé de -.45em), centré sous 768 px */
.single-content .wannup-cta-text h2 {
	text-decoration: underline;
	text-decoration-color: #fff;
	text-decoration-thickness: 0.7em;
	text-underline-offset: -0.45em;
	text-decoration-skip-ink: none;
}
@media (max-width: 767px) {
	.single-content .wannup-cta-row { text-align: center; gap: 0; }
	.single-content .wannup-cta-text { padding-right: 0; }
	.single-content .wannup-cta-btn .wp-block-buttons { justify-content: center; }
}

/* Bouton qui suit un texte : 2 rem au-dessus et paragraphe sans marge basse (HubSpot : .theme-ctas{margin-top:2rem}, texte sans marge de fin) */
.single-content :is(p, ul, ol, h1, h2, h3, h4, h5, h6) + .wp-block-buttons { margin-top: 2rem; }
.single-content :is(p, ul, ol):has(+ .wp-block-buttons) { margin-bottom: 0; }

/* Texte sur fond sombre : crème sur bleu nuit et violet ; sur la lavande (palette6) il reste bleu nuit comme en ligne */
.has-theme-palette-5-background-color,
.has-theme-palette-3-background-color {
	color: var(--wannup-creme);
}
.has-theme-palette-5-background-color :is(h1, h2, h3, h4, h5, h6, p, li, .wannup-eyebrow, .wannup-subheading),
.has-theme-palette-3-background-color :is(h1, h2, h3, h4, h5, h6, p, li, .wannup-eyebrow, .wannup-subheading) {
	color: inherit;
}
.has-theme-palette-5-background-color li::before,
.has-theme-palette-3-background-color li::before { color: var(--wannup-creme); }

/* FAQ (blocs Détails, module faq-question de HubSpot) : question 21 px / 1,667 (700 une fois ouverte), 40 px de marge haute
   dès 768 px (20 px dessous), 20 px dessous ; chevron de 7 px (bordures de 2 px) qui pivote ; réponse à 20 % de marge droite
   dès 1024 px ; 20 px sous la réponse et 20 px entre deux questions ; aucun trait de séparation (la bordure HubSpot est « none »). */
.single-content .wp-block-details {
	margin: 0;
	padding: 0;
	border: 0;
	box-sizing: border-box;
}
.single-content .wp-block-details:not(:last-child) { padding-bottom: 20px; }
.single-content .wp-block-details[open] { padding-bottom: 20px; }
.single-content .wp-block-details[open]:not(:last-child) { padding-bottom: 40px; }
.single-content .wp-block-details > summary {
	display: flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	padding: 20px 0;
	font-size: 1.3125rem;
	line-height: 1.67;
	font-weight: 400;
	list-style: none;
	cursor: pointer;
}
.single-content .wp-block-details > summary::-webkit-details-marker { display: none; }
.single-content .wp-block-details > summary::marker { content: ""; display: none; }
.single-content .wp-block-details[open] > summary { font-weight: 700; }
.single-content .wp-block-details > summary::after {
	content: "";
	display: block;
	flex-shrink: 0;
	box-sizing: content-box;
	width: 7px;
	height: 7px;
	margin-left: auto;
	margin-right: 15px;
	border-bottom: 2px solid;
	border-right: 2px solid;
	transform: rotate(45deg);
	transition: transform 0.2s;
}
.single-content .wp-block-details[open] > summary::after { transform: rotate(-135deg); }
.single-content .wp-block-details > summary:focus-visible { outline: 2px solid var(--wannup-orange); outline-offset: 2px; }
.single-content .wp-block-details > summary + * { margin-top: 0; }
/* 3 rem (48 px) entre le titre de la section et la première question (HubSpot : .heading{margin-bottom:3rem}) */
.single-content :is(h2, h3) + .wp-block-details { margin-top: 3rem; }
.single-content .wp-block-details > :last-child { margin-bottom: 0; }
@media (min-width: 768px) {
	.single-content .wp-block-details > summary { padding-top: 40px; }
}
@media (min-width: 1024px) {
	.single-content .wp-block-details > :not(summary) { margin-right: 20%; }
	/* listes en deux colonnes (classe lists--split de HubSpot, propre au module FAQ) */
	.single-content .wp-block-details ul { column-count: 2; column-gap: clamp(2rem, 7vw, 130px); }
	.single-content .wp-block-details ul li { break-inside: avoid; }
}

/* Visibilité par écran, reprise des réglages « masqué sur mobile / bureau » de HubSpot */
@media (max-width: 767px) {
	.wannup-hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
	.wannup-hide-desktop { display: none !important; }
}

/* Formulaires HubSpot intégrés (iframe : le style interne se règle dans HubSpot) */
.wannup-hs-form {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

/* =====================================================================
   EN-TÊTE : fixe, recouvre le haut de la première section (comme HubSpot), 90 px à toutes les largeurs
   ===================================================================== */
#inner-wrap { margin-top: -90px; }
/* Page sans en-tête (_kad_post_header : masterclass, pages de destination) : rien à recouvrir */
body.no-header #inner-wrap { margin-top: 0; }
#masthead { position: relative; z-index: 200; }
#masthead .site-container { max-width: 1400px; width: 90%; padding-left: 0; padding-right: 0; }
.site-branding a.brand img { max-width: 200px; }
.site-main-header-inner-wrap { min-height: 90px; }
.site-header-main-section-right { gap: 14px; }

/* Menu de bureau : liens sans marge interne, 28,5 px entre deux entrées, soulignement orange animé de 3 px.
   Balisage comme HubSpot : lien en ligne (<a>, interligne 32 px) qui contient un libellé en ligne (span, 5 px de marge basse) portant le trait
   (functions.php enveloppe le libellé des entrées sans sous-menu ; Kadence fournit .nav-drop-title-wrap pour les autres). */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	display: inline;
	padding: 0;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}
.main-navigation .primary-menu-container > ul > li.menu-item + li.menu-item { margin-left: 28.5px; }
.main-navigation .primary-menu-container > ul > li.menu-item > a .wannup-menu-label,
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .nav-drop-title-wrap {
	display: inline;
	padding: 0 0 5px;
	background-image: linear-gradient(#f59d19, #f59d19);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 3px;
	transition: background-size 0.3s ease;
}
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .nav-drop-title-wrap { margin: 0 14.9px 0 0; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover .wannup-menu-label,
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a:hover .nav-drop-title-wrap { background-size: 100% 3px; }
/* Entrée de la page courante seulement : orange et soulignée en permanence, comme `.active` sur HubSpot (`active-branch`, posé sur les parents, ne change rien : mesuré sur 10 pages)
   (Kadence fixe `li.menu-item.current-menu-item > a` à la couleur du texte : d'où le `body` en tête, pour passer devant) */
body .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a .wannup-menu-label,
body .main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a .nav-drop-title-wrap { background-size: 100% 3px; color: #f59d19; }
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .dropdown-nav-toggle { right: -14.9px; width: 10px; height: 19px; }
/* Flèche des sous-menus : chevron fin de 10 px (trait de 1 unité sur 24, comme sur HubSpot) */
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .dropdown-nav-toggle {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9' fill='none' stroke='%23201d41' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px 19.19px no-repeat;
}
.main-navigation .primary-menu-container > ul > li.menu-item-has-children > a .dropdown-nav-toggle .kadence-svg-iconset { display: none; }
/* Recherche : icône 17,6 px */
.search-toggle-open { padding: 0 0 0 32px; }
.search-toggle-open .search-toggle-icon svg { width: 17.6px; height: 17.6px; top: 0; }
/* Recherche : panneau crème sur toute la fenêtre, barre de 90 px en haut (champ de 1000 px à x = 180), loupe et croix à droite */
#search-drawer .drawer-overlay { display: none; }
#search-drawer .drawer-inner { background: #f6f3f1; padding: 0; }
#search-drawer .drawer-inner .drawer-content {
	display: block;
	position: absolute;
	inset: 0;
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 25px 0 0;
}
#search-drawer .drawer-inner form { display: block; position: relative; width: 1000px; max-width: calc(100% - 140px); margin: 0 0 0 60px; }
#search-drawer .drawer-inner form label { display: block; width: 100%; }
#search-drawer .drawer-inner input.search-field,
#search-drawer .drawer-inner input.search-field:focus {
	box-sizing: border-box;
	width: 100%;
	height: 40px;
	padding: 0 2px;
	border: 0;
	border-bottom: 1px solid #201d41;
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	color: #201d41;
	box-shadow: none;
}
#search-drawer .drawer-inner form ::placeholder { color: #757575; opacity: 1; }
#search-drawer .drawer-inner .search-submit[type="submit"] { display: none; }
#search-drawer .drawer-inner .kadence-search-icon-wrap { position: absolute; left: calc(100% + 22px); right: auto; top: 9px; width: 19px; height: 22px; color: #201d41; }
#search-drawer .drawer-inner .kadence-search-icon-wrap svg { width: 19px; height: 19px; }
#search-drawer .drawer-inner .drawer-header { position: absolute; top: 33px; left: calc(50% + 522px); right: auto; width: 19px; padding: 0; z-index: 100; }
#search-drawer .search-toggle-close { width: 19px; height: 20px; padding: 0; color: #201d41; }
#search-drawer .search-toggle-close svg { width: 19px; height: 19px; }
#search-drawer .drawer-inner .drawer-content::after { content: "Faire une demande dans le champ ci-dessus"; display: block; margin: 57px 0 0 60px; font-size: 15.2px; line-height: 25px; color: #201d41; }
@media (max-width: 1279px) {
	#search-drawer .drawer-inner .drawer-header { left: auto; right: 5%; }
	#search-drawer .drawer-inner form { max-width: calc(100% - 100px); }
}

/* Sous-menu : 215 px, fond crème, ombre légère, liens 14 px sans séparateur */
.header-navigation .header-menu-container ul ul.sub-menu {
	width: max-content;
	max-width: 300px;
	padding: 34px 15px 24px 0;
	background: #f6f3f1;
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.15);
}
.header-navigation .header-menu-container ul ul li.menu-item { border-bottom: 0; border-radius: 0; padding: 0; }
.header-navigation .header-menu-container ul ul li.menu-item > a {
	width: auto;
	padding: 2.4px 32px 5.4px;
	font-size: 14px;
	line-height: 28px;
	letter-spacing: 0;
	background: none;
	border-radius: 0;
	color: #201d41;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-decoration-color: transparent;
	text-underline-offset: 0.55em;
	transition: text-decoration-color 0.3s ease, color 0.2s;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover {
	color: #f59d19;
	background: none;
	text-decoration-color: #f59d19;
}
body .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a { color: #f59d19; text-decoration-color: #f59d19; }

/* Bascule vers l'en-tête mobile à 1120 px (HubSpot) au lieu de 1025 px (Kadence) */
@media (min-width: 1025px) and (max-width: 1119px) {
	#main-header { display: none; }
	#mobile-header { display: block; }
}

/* =====================================================================
   MENU MOBILE : bouton à trois barres (croix à l'ouverture), panneau sous l'en-tête
   ===================================================================== */
.mobile-toggle-open-container .menu-toggle-open {
	box-sizing: border-box;
	position: relative;
	width: 25px;
	height: 17px;
	padding: 0;
	border: 0;
	border-radius: 0;
	color: #201d41;
	background:
		linear-gradient(#201d41, #201d41) 0 0 / 100% 3px no-repeat,
		linear-gradient(#201d41, #201d41) 0 50% / 100% 3px no-repeat,
		linear-gradient(#201d41, #201d41) 0 100% / 100% 3px no-repeat;
	box-shadow: none;
}
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon,
.mobile-toggle-open-container .menu-toggle-open .menu-toggle-label { display: none; }
.mobile-toggle-open-container .menu-toggle-open::before,
.mobile-toggle-open-container .menu-toggle-open::after {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 25px;
	height: 3px;
	background: #201d41;
	opacity: 0;
	transition: opacity 0.2s;
}
.mobile-toggle-open-container .menu-toggle-open::before { transform: rotate(45deg); }
.mobile-toggle-open-container .menu-toggle-open::after { transform: rotate(-45deg); }
body.showing-popup-drawer-from-right .mobile-toggle-open-container .menu-toggle-open { background: none; }
body.showing-popup-drawer-from-right .mobile-toggle-open-container .menu-toggle-open::before,
body.showing-popup-drawer-from-right .mobile-toggle-open-container .menu-toggle-open::after { opacity: 1; }
/* Panneau : sous l'en-tête (y = 90 px), pleine largeur, fond crème, sans trait de séparation */
#mobile-drawer .drawer-overlay, #mobile-drawer .drawer-header { display: none; }
#mobile-drawer { z-index: 150; }
#mobile-drawer .drawer-inner {
	top: 90px;
	bottom: 0;
	height: auto;
	max-width: none;
	width: 100%;
	background: #f6f3f1;
	color: #201d41;
	transform: none;
	box-shadow: none;
	overflow-y: auto;
}
#mobile-drawer .drawer-content { padding: 25px; }
#mobile-drawer .mobile-navigation ul li { font-size: 16px; line-height: 32px; letter-spacing: 0.02em; text-align: left; border: 0; }
#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li > .drawer-nav-drop-wrap > a { padding: 16px 0; color: #201d41; }
#mobile-drawer .mobile-navigation ul li > a:hover,
#mobile-drawer .mobile-navigation ul li > .drawer-nav-drop-wrap > a:hover { color: #f59d19; }
/* Flèche : chevron fin tourné vers la droite (le sous-menu s'ouvre dans un panneau, voir plus bas) */
#mobile-drawer .drawer-sub-toggle {
	width: 24px;
	height: 24px;
	padding: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolyline points='9 6 15 12 9 18' fill='none' stroke='%23201d41' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
	transition: transform 0.2s;
	margin-top: 16px;
	align-self: flex-start;
}
/* Zone tactile élargie de 12 px autour de la flèche de 24 px (le bouton garde sa taille de 24 px) */
#mobile-drawer .drawer-sub-toggle { position: relative; flex: 0 0 24px; min-width: 24px; }
#mobile-drawer .drawer-sub-toggle::after { content: ""; position: absolute; inset: -12px; }
#mobile-drawer .drawer-sub-toggle .kadence-svg-iconset { display: none; }
/* Sous-menus : liens de 14 px / 28 px */
#mobile-drawer .mobile-navigation ul.sub-menu li { font-size: 14px; line-height: 28px; letter-spacing: 0; }
#mobile-drawer .mobile-navigation ul.sub-menu li > a { padding: 16px 0; }
/* Sous-menu en panneau (comme HubSpot) : il recouvre la liste, sous l'en-tête, et glisse depuis la droite (js/mobile-menu.js
   ajoute « wannup-sub-open » à l'entrée ouverte). HubSpot : position fixe à top 90 px, left 100 % puis 0, marge interne 25 px,
   fond crème, opacité et visibilité en fondu, transition de 0,3 s, fil d'Ariane de 24 px + 16 px de marge basse. */
#mobile-drawer .mobile-navigation ul.has-collapse-sub-nav > li.menu-item-has-children > ul.sub-menu {
	display: block;
	position: fixed;
	top: 90px;
	left: 100%;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
	height: calc(100vh - 90px);
	margin: 0;
	padding: 25px;
	overflow-y: auto;
	background: #f6f3f1;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
}
#mobile-drawer .mobile-navigation ul.has-collapse-sub-nav > li.menu-item-has-children.wannup-sub-open > ul.sub-menu {
	left: 0;
	opacity: 1;
	visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
	#mobile-drawer .mobile-navigation ul.has-collapse-sub-nav > li.menu-item-has-children > ul.sub-menu { transition: none; }
}
#mobile-drawer .mobile-navigation ul.sub-menu > li.wannup-sub-crumbs {
	display: flex;
	align-items: center;
	padding: 0 0 16px;
	font-size: 14px;
	line-height: 1.67;
	letter-spacing: normal;
	color: #201d41;
}
#mobile-drawer .wannup-sub-return {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	font-size: 0.95em;
	font-weight: 400;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	cursor: pointer;
}
#mobile-drawer .wannup-sub-return:hover,
#mobile-drawer .wannup-sub-return:focus-visible { color: #f59d19; background: none; }
#mobile-drawer .wannup-sub-return:focus-visible { outline: 2px solid #f59d19; outline-offset: 2px; }
#mobile-drawer .wannup-sub-return::after { content: ""; position: absolute; inset: -8px 0; }
#mobile-drawer .wannup-sub-return .wannup-sub-chevron { display: block; width: 24px; height: 24px; padding-top: 4px; box-sizing: border-box; transform: rotate(90deg); }
#mobile-drawer .wannup-sub-title { margin-left: 8px; font-size: 0.9em; letter-spacing: normal; opacity: 0.9; }
/* Recherche dans le panneau : champ de 264 px avec trait bas, loupe à droite */
#mobile-drawer .mobile-html { margin-top: 32px; }
#mobile-drawer .wannup-mobile-search { display: flex; align-items: center; width: 100%; height: 40px; }
#mobile-drawer .wannup-mobile-search input[type="search"] {
	box-sizing: border-box;
	width: 264px;
	height: 40px;
	margin-left: 17px;
	padding: 0 2px;
	border: 0;
	border-bottom: 1px solid #201d41;
	border-radius: 0;
	background: transparent;
	font-size: 16px;
	color: #201d41;
	box-shadow: none;
}
#mobile-drawer .wannup-mobile-search input[type="search"]::placeholder { color: #757575; opacity: 1; }
#mobile-drawer .wannup-mobile-search button { margin-left: 23px; padding: 0; width: 19px; height: 22px; border: 0; background: none; color: #201d41; box-shadow: none; line-height: 1; }

/* =====================================================================
   PIED DE PAGE : logo | LinkedIn | menu | Connexion, 207 px au bureau, 612 px au mobile
   ===================================================================== */
#colophon { position: relative; font-size: 14px; line-height: 1.85; }
#colophon .site-container { width: 90%; max-width: 1200px; padding-left: 0; padding-right: 0; }
.site-middle-footer-wrap .site-footer-row-container-inner { padding: 0; }
.site-middle-footer-inner-wrap {
	padding: 0 0 60px;
	grid-column-gap: clamp(1rem, 2.5vw, 3rem);
	column-gap: clamp(1rem, 2.5vw, 3rem);
	align-items: center;
}
@media (min-width: 768px) {
	.site-middle-footer-inner-wrap.site-footer-row-columns-4 {
		--g: clamp(1rem, 2.5vw, 3rem);
		grid-template-columns: calc(22.9167% - var(--g) - 12.5px) calc(6.25% + 37.5px) calc(47.9167% - var(--g) - 12.5px) calc(22.9167% - var(--g) - 12.5px) !important;
	}
}
.site-middle-footer-wrap .site-footer-section { align-items: center; justify-content: center; }
.site-middle-footer-wrap .site-footer-section .widget { margin-bottom: 0; }
#colophon .wp-block-image, #colophon .wp-block-image figure { width: 100%; margin: 0; }
#colophon .wp-block-image a { display: block; }
#colophon .wp-block-image img { display: block; width: 100% !important; height: auto !important; max-width: none; }
#colophon .footer-social-wrap { width: 100%; }
#colophon .footer-social-wrap .footer-social-inner-wrap { justify-content: center; gap: 10px; }
#colophon .footer-social-wrap .social-button { width: 40px; height: 40px; padding: 0; margin: 5px; color: #f6f3f1; background: #f59d19; }
#colophon .footer-social-wrap .social-button:hover { color: #f6f3f1; background: #201d41; }
#colophon .footer-social-wrap .social-button svg { width: 19.2px; height: 19.2px; }
#colophon .site-middle-footer-wrap .wp-block-buttons { justify-content: flex-end; }
#colophon .site-middle-footer-wrap .wp-block-button__link { white-space: nowrap; }
#colophon .footer-navigation .footer-menu-container > ul { margin: 14px 0; justify-content: flex-start; flex-wrap: wrap; }
#colophon .footer-navigation .footer-menu-container > ul > li { margin: 7px 21px 7px 0; }
#colophon .footer-navigation .footer-menu-container > ul > li > a {
	padding: 0;
	font-size: 15px;
	line-height: 30px;
	letter-spacing: 0.02em;
	color: #f6f3f1;
	position: relative;
}
#colophon .footer-navigation .footer-menu-container > ul > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 0;
	background: currentColor;
	transition: all 0.2s;
}
#colophon .footer-navigation .footer-menu-container > ul > li > a:hover { color: #f59d19; }
#colophon .footer-navigation .footer-menu-container > ul > li > a:hover::after { width: 100%; }
#colophon .footer-navigation .footer-menu-container > ul > li.current-menu-item > a { color: #f6f3f1; }
/* Mentions légales (obligation légale, absentes du pied HubSpot) : posées dans l'espace libre de 60 px sous
   les colonnes, donc 0 px de hauteur ajoutée ; petit texte discret */
#colophon .site-bottom-footer-wrap { position: absolute; left: 0; right: 0; bottom: 12px; pointer-events: none; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { padding: 0; min-height: 0; }
#colophon .site-bottom-footer-wrap .site-container { padding: 0; }
#colophon .site-bottom-footer-inner-wrap { padding: 0; min-height: 0; }
#colophon .site-bottom-footer-wrap .footer-html,
#colophon .site-bottom-footer-wrap .footer-html-inner { margin: 0; }
#colophon .site-bottom-footer-wrap p { margin: 0; font-size: 11px; line-height: 16px; letter-spacing: 0; text-align: center; opacity: 0.55; color: #f6f3f1; }
#colophon .site-bottom-footer-wrap a { color: #f6f3f1; pointer-events: auto; text-decoration: none; }
#colophon .site-bottom-footer-wrap a:hover { color: #f59d19; }
@media (max-width: 767px) {
	#colophon .site-footer-section { justify-content: center; text-align: center; }
	.site-middle-footer-inner-wrap { padding-bottom: 45px; row-gap: 16px; }
	#colophon .wp-block-image img { width: 241px !important; max-width: 100%; margin-left: auto; margin-right: auto; }
	#colophon .site-middle-footer-wrap .wp-block-buttons { justify-content: center; }
	#colophon .footer-navigation, #colophon .footer-navigation .footer-menu-container { width: 100%; }
	#colophon .footer-navigation .footer-menu-container > ul { display: block; width: 100%; margin: 0; }
	#colophon .footer-navigation .footer-menu-container > ul > li:first-child { margin-top: 0; }
	#colophon .footer-navigation .footer-menu-container > ul > li:last-child { margin-bottom: 0; }
	#colophon .footer-navigation .footer-menu-container > ul > li { margin: 7px 0; text-align: center; }
	#colophon .site-bottom-footer-wrap { bottom: 10px; }
}

/* =====================================================================
   ARTICLES DE BLOG : le gabarit (single.php, css/blog.css) porte la mise en page ; il ne reste ici que le style du corps de l'article
   ===================================================================== */
/* Corps de l'article : titres à 2,1 rem du bloc précédent (même après un titre), images à 2,5 rem, texte collé à une liste */
body.single-post .single-content :is(h2, h3, h4, h5, h6):not(:first-child) { margin-top: 2.1rem; }
body.single-post .single-content :is(ul, ol) + p { margin-top: 0; }
body.single-post .single-content figure.wp-block-image { margin: 2.5rem 0; }
/* Listes de l'article : retrait de 1,5 rem avant la puce (HubSpot : padding-left 1.5rem !important) */
body.single-post .single-content ul:not(.wp-block-social-links, .wp-block-navigation, .wp-block-gallery, .blocks-gallery-grid, [class*="kt-"], [class*="kb-"]) { padding-left: 1.5rem; }
/* Hero, mobile : le média placé au-dessus du texte garde ses 2 rem de marge haute et l'écart entre média et texte est de 1 rem (HubSpot) */
@media (max-width: 768px) {
	.entry-content .wp-block-columns.is-layout-flex.wannup-hero { row-gap: 1rem; }
	.entry-content .wannup-hero .wp-block-image { margin-top: 2rem; }
}

/* Listes numérotées de l'article : même retrait de 1,5 rem que les listes à puces (HubSpot : .blog-post__content ol{padding-left:1.5rem!important}) */
body.single-post .single-content ol { padding-left: 1.5rem; }

/* Blocs de titre de section (HubSpot : .heading{margin-bottom:3rem}, .heading--small{margin-bottom:2rem}) et écart sous un sur-titre vide : classes à poser par le convertisseur */
.single-content .wannup-heading { margin-bottom: 3rem; }
.single-content .wannup-heading--small { margin-bottom: 2rem; }
.single-content .wannup-mt-eyebrow { margin-top: 0.125em; }

/* Bouton clavier des sous-menus de l'en-tête (Kadence) : invisible et sans effet à la souris, posé sur la flèche du menu.
   Élargi de 16 à 24 px, centré au même endroit, pour la taille de cible minimale d'accessibilité (Lighthouse, 10/11/2026). */
.wp-site-blocks .header-navigation.nav--toggle-sub .primary-menu-container > ul > li > .dropdown-nav-special-toggle { width: 24px; right: calc(1.15em - 12px); }
@media (hover: none) {
	/* écran tactile : Kadence étend ce bouton à toute l'entrée du menu, on le laisse faire */
	.wp-site-blocks .header-navigation.nav--toggle-sub .primary-menu-container > ul > li.menu-item--has-toggle:not(.menu-item--toggled-on) > .dropdown-nav-special-toggle { width: 100%; }
}
