/* =========================================================
   JB Toiture · piste B « Bleu chantier »
   Mise en page : sections pleine largeur, contenu centré à 1240px,
   hero marine avec formulaire, bandes jaunes de signalisation.
   ========================================================= */
:root {
	--jb-navy: #0f2c4c;
	--jb-navy-2: #173d66;
	--jb-navy-3: #0a1f37;
	--jb-yellow: #f2b705;
	--jb-yellow-2: #ffd24d;
	--jb-ink: #14202d;
	--jb-muted: #5a6878;
	--jb-grey: #eef1f5;
	--jb-line: #d6dde6;
	--jb-white: #ffffff;
	--jb-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
	--jb-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jb-max: 1240px;
	--jb-gutter: max(20px, calc((100% - var(--jb-max)) / 2));
	--jb-radius: 12px;
	--jb-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body {
	font-family: var(--jb-body);
	color: var(--jb-ink);
	background: var(--jb-white);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body h1, body h2, body h3, body h4 { font-family: var(--jb-display); color: inherit; text-wrap: balance; margin: 0; }
a { color: var(--jb-navy-2); }
:focus-visible { outline: 3px solid var(--jb-yellow); outline-offset: 2px; }
.jb-wrap { width: 100%; max-width: calc(var(--jb-max) + 40px); margin-inline: auto; padding-inline: 20px; }

/* ---------- Boutons ---------- */
.jb-btn,
.jb-btn-yellow .elementor-button,
.jb-btn-navy .elementor-button,
.jb-btn-ghost .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--jb-body); font-weight: 600; font-size: 16px; line-height: 1;
	padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
	transition: transform .25s var(--jb-ease), background-color .25s, color .25s, box-shadow .25s;
}
.jb-btn--yellow, .jb-btn-yellow .elementor-button { background: var(--jb-yellow); color: var(--jb-navy); }
.jb-btn--navy, .jb-btn-navy .elementor-button { background: var(--jb-navy); color: var(--jb-white); }
.jb-btn-ghost .elementor-button { background: transparent; color: var(--jb-white); border-color: rgba(255,255,255,.4); }
.jb-btn:hover, .elementor-button:hover { transform: translateY(-2px); }
.jb-btn--yellow:hover, .jb-btn-yellow .elementor-button:hover { background: var(--jb-yellow-2); color: var(--jb-navy); box-shadow: 0 10px 24px -10px rgba(242,183,5,.8); }
.jb-btn--navy:hover, .jb-btn-navy .elementor-button:hover { background: var(--jb-navy-2); color: var(--jb-white); }
.jb-btn-ghost .elementor-button:hover { border-color: var(--jb-yellow); color: var(--jb-yellow); }

/* Boutons sans style propre : on remplace le rose par défaut de Hello Elementor */
[type=button], [type=submit], button { border-color: var(--jb-navy); color: var(--jb-navy); }
[type=button]:hover, [type=button]:focus, [type=submit]:hover, [type=submit]:focus, button:hover, button:focus { background-color: var(--jb-navy); border-color: var(--jb-navy); color: var(--jb-white); }
/* boutons du thème posés sur une balise <button> : leurs couleurs passent avant la règle ci-dessus */
button.jb-btn--navy, button.jb-btn--navy:focus { background: var(--jb-navy); border-color: transparent; color: var(--jb-white); }
button.jb-btn--navy:hover { background: var(--jb-navy-2); color: var(--jb-white); }
button.jb-btn--yellow, button.jb-btn--yellow:focus, button.jb-btn--yellow:hover { background: var(--jb-yellow); border-color: transparent; color: var(--jb-navy); }

/* Widgets Elementor v4 (Bouton, Titre, Paragraphe « atomiques ») : la classe est posée sur l'élément lui-même */
body .jb-btn-yellow.e-button-base, body .jb-btn-navy.e-button-base, body .jb-btn-ghost.e-button-base {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; align-self: flex-start; width: auto;
	font-family: var(--jb-body); font-weight: 600; font-size: 16px; line-height: 1; padding: 15px 24px; border-radius: 999px;
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: transform .25s var(--jb-ease), background-color .25s, color .25s, box-shadow .25s;
}
body .jb-btn-yellow.e-button-base { background: var(--jb-yellow); color: var(--jb-navy); }
body .jb-btn-navy.e-button-base { background: var(--jb-navy); color: var(--jb-white); }
body .jb-btn-ghost.e-button-base { background: transparent; color: var(--jb-white); border-color: rgba(255,255,255,.4); }
body .jb-btn-yellow.e-button-base:hover { background: var(--jb-yellow-2); color: var(--jb-navy); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(242,183,5,.8); }
body .jb-btn-navy.e-button-base:hover { background: var(--jb-navy-2); color: var(--jb-white); transform: translateY(-2px); }
body .jb-btn-ghost.e-button-base:hover { border-color: var(--jb-yellow); color: var(--jb-yellow); transform: translateY(-2px); }
body .jb-h2.e-heading-base { font-family: var(--jb-display); font-weight: 900; font-size: clamp(38px, 4.6vw, 60px); line-height: .95; text-transform: uppercase; color: var(--jb-navy); margin: 0; }
body .jb-section--navy .jb-h2.e-heading-base { color: var(--jb-white); }
body .jb-eyebrow.e-heading-base { font-family: var(--jb-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jb-navy-2); display: inline-flex; align-items: center; gap: 10px; margin: 0; }
body .jb-eyebrow.e-heading-base::before { content: ""; width: 28px; height: 3px; background: var(--jb-yellow); display: inline-block; }
body .jb-section--navy .jb-eyebrow.e-heading-base { color: #9fb3c8; }
body .jb-lead.e-paragraph-base { font-size: 18px; color: var(--jb-muted); max-width: 62ch; margin: 0; }
/* le surlignage est visible tout de suite sur ces titres (pas d'animation au scroll) */
.jb-h2.e-heading-base mark { background-size: 100% .28em; }
.jb-section--navy .jb-h2.e-heading-base mark { background-size: 100% .07em; }
/* boutons classiques : ne pas s'étirer sur toute la largeur d'un conteneur en colonne */
.e-con > .elementor-widget-button.jb-btn-navy, .e-con > .elementor-widget-button.jb-btn-yellow { align-self: flex-start; }

/* ---------- Bandeau du haut ---------- */
.jb-topbar { background: var(--jb-yellow); color: var(--jb-navy); font-size: 14px; font-weight: 600; transition: margin .3s var(--jb-ease); }
.jb-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.jb-topbar__tel { color: var(--jb-navy); text-decoration: none; font-weight: 700; white-space: nowrap; }
.jb-topbar__tel::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; margin-right: 8px; box-shadow: 0 0 0 0 rgba(31,157,85,.6); animation: jb-pulse 2s infinite; }
@keyframes jb-pulse { 70% { box-shadow: 0 0 0 8px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }

/* ---------- En-tête ---------- */
.jb-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.admin-bar .jb-header { top: 32px; }
.jb-header.is-scrolled { border-color: var(--jb-line); box-shadow: 0 8px 30px -20px rgba(15,44,76,.5); }
.jb-header__in { display: flex; align-items: center; gap: 28px; min-height: 82px; transition: min-height .3s var(--jb-ease); }
.jb-header.is-scrolled .jb-header__in { min-height: 66px; }
.jb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--jb-navy); margin-right: auto; }
.jb-logo__mark { width: 40px; height: 40px; flex: none; }
.jb-logo__img { display: block; height: 70px; width: auto; max-width: none; transition: height .3s var(--jb-ease); }
.jb-header.is-scrolled .jb-logo__img { height: 52px; }
@media (max-width: 767px) { .jb-logo__img { height: 52px; } .jb-header.is-scrolled .jb-logo__img { height: 46px; } }
.jb-logo__txt { font-family: var(--jb-display); font-weight: 900; font-size: 30px; line-height: .9; text-transform: uppercase; letter-spacing: .01em; }
.jb-logo__txt small { display: block; font-family: var(--jb-body); font-weight: 500; font-size: 11px; letter-spacing: .16em; color: var(--jb-muted); margin-top: 4px; }
.jb-logo--light { color: var(--jb-white); }
.jb-logo--light .jb-logo__txt small { color: #9fb3c8; }

.jb-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.jb-menu > li { position: relative; }
.jb-menu a { display: block; padding: 10px 12px; color: var(--jb-ink); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; }
.jb-menu > li > a { position: relative; }
.jb-menu > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--jb-yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--jb-ease); }
.jb-menu > li:hover > a::after, .jb-menu > li.current-menu-item > a::after, .jb-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.jb-menu .menu-item-has-children > a { padding-right: 26px; }
.jb-menu .menu-item-has-children > a::before { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.jb-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--jb-white); border-radius: 12px; box-shadow: 0 24px 50px -20px rgba(15,44,76,.45); border: 1px solid var(--jb-line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .25s var(--jb-ease), visibility .2s; }
.jb-menu li:hover > .sub-menu, .jb-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.jb-menu .sub-menu a { font-size: 14.5px; }
.jb-menu .sub-menu a:hover { background: var(--jb-grey); color: var(--jb-navy); }
.jb-nav__cta-mobile { display: none; }
.jb-burger { display: none; }

/* ---------- Pied de page ---------- */
.jb-footer { background: var(--jb-navy-3); color: #c6d3e1; padding-top: 72px; font-size: 15px; }
.jb-footer a { color: #e3ebf3; text-decoration: none; }
.jb-footer a:hover { color: var(--jb-yellow); }
.jb-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.jb-footer__brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.jb-footer__brand p { margin: 0; max-width: 36ch; }
.jb-footer__brand .jb-btn { color: var(--jb-navy); }
.jb-footer__title { font-family: var(--jb-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--jb-white); margin: 0 0 14px; }
.jb-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jb-footer__nap { font-style: normal; line-height: 1.8; }
.jb-footer__nap strong { color: var(--jb-white); }
.jb-footer__hours { margin: 12px 0 0; color: #9fb3c8; }
.jb-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #8ea3b9; }
.jb-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.jb-callbar { display: none; }

/* =========================================================
   Sections Elementor (classes posées sur les conteneurs)
   ========================================================= */
body .jb-section.e-con { padding: 96px var(--jb-gutter); --gap: 40px; gap: 40px; overflow-x: clip; }
body .jb-section--grey.e-con { background: var(--jb-grey); }
body .jb-section--navy.e-con { background: var(--jb-navy); color: var(--jb-white); }
.jb-eyebrow, .jb-eyebrow .elementor-heading-title { font-family: var(--jb-body) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--jb-navy-2); display: inline-flex; align-items: center; gap: 10px; }
.jb-eyebrow .elementor-heading-title::before { content: ""; width: 28px; height: 3px; background: var(--jb-yellow); display: inline-block; }
.jb-h2 .elementor-heading-title { font-family: var(--jb-display); font-weight: 900; font-size: clamp(38px, 4.6vw, 60px); line-height: .95; text-transform: uppercase; color: var(--jb-navy); }
.jb-section--navy .jb-h2 .elementor-heading-title { color: var(--jb-white); }
.jb-section--navy .jb-eyebrow .elementor-heading-title { color: #9fb3c8; }
.jb-lead { font-size: 18px; color: var(--jb-muted); max-width: 62ch; }
.jb-lead p { margin: 0 0 1em; }
.jb-lead p:last-child { margin: 0; }
.jb-section--navy .jb-lead { color: #c6d3e1; }
body .jb-head.e-con { gap: 14px; max-width: 820px; padding: 0; }

/* surlignage jaune qui se dessine au scroll */
.jb-h2 mark, .jb-mark mark { background: linear-gradient(var(--jb-yellow), var(--jb-yellow)) no-repeat 0 88% / 0% .28em; color: inherit; padding: 0 .04em; transition: background-size .9s var(--jb-ease) .2s; }
.jb-section--navy .jb-h2 mark { color: var(--jb-yellow); padding-bottom: .12em; background-position: 0 100%; }
html:not(.jb-js) .jb-h2 mark, .is-in .jb-h2 mark, .jb-h2.is-in mark { background-size: 100% .28em; }
/* sur fond marine : texte jaune et trait fin sous les lettres, pour rester lisible */
html:not(.jb-js) .jb-section--navy .jb-h2 mark, .is-in.jb-section--navy .jb-h2 mark, .jb-section--navy .is-in .jb-h2 mark, .jb-section--navy .jb-h2.is-in mark { background-size: 100% .07em; }

/* ---------- HERO ---------- */
body .jb-hero.e-con {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(56px, 8vw, 110px) var(--jb-gutter) clamp(64px, 8vw, 120px);
	background: radial-gradient(120% 90% at 85% 10%, var(--jb-navy-2) 0%, var(--jb-navy) 45%, var(--jb-navy-3) 100%);
	color: var(--jb-white);
	display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); align-items: center; gap: clamp(32px, 5vw, 72px);
}
/* motif de tuiles en fond */
body .jb-hero.e-con::before {
	content: ""; position: absolute; inset: -40px; z-index: -2; opacity: .09;
	background-image: radial-gradient(circle at 50% 0, transparent 21px, #fff 22px, #fff 23px, transparent 24px);
	background-size: 44px 26px;
	-webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
	mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
	transform: translate3d(0, var(--jb-par, 0px), 0);
}
/* grand mot en contour qui défile */
body .jb-hero.e-con::after {
	content: "Couvreur Oise 60 · Couvreur Oise 60 · Couvreur Oise 60 · ";
	position: absolute; z-index: -1; left: 0; bottom: -0.18em; white-space: nowrap;
	font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; font-size: clamp(110px, 17vw, 260px); line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.09);
	animation: jb-drift 60s linear infinite;
}
@keyframes jb-drift { to { transform: translateX(-50%); } }
.jb-hero .e-con.jb-hero__txt { padding: 0; gap: 22px; }
.jb-hero__badge .elementor-heading-title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--jb-body); font-weight: 600; font-size: 14px; color: var(--jb-yellow); background: rgba(242,183,5,.12); border: 1px solid rgba(242,183,5,.35); padding: 8px 14px; border-radius: 999px; }
.jb-hero__badge .elementor-heading-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--jb-yellow); }
.jb-hero h1.elementor-heading-title {
	font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; color: var(--jb-white);
	font-size: clamp(46px, 6vw, 88px); line-height: .9; letter-spacing: -.005em;
}
.jb-hero h1 .jb-line { display: block; }
.jb-hero h1 .jb-y { color: var(--jb-yellow); }
.jb-hero__sub { font-size: 19px; color: #c6d3e1; max-width: 48ch; }
.jb-hero__sub p { margin: 0; }
.jb-hero .e-con.jb-hero__ctas { flex-direction: row !important; flex-wrap: wrap; gap: 12px; padding: 0; }
.jb-hero .jb-checks ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: #dbe5ef; }
.jb-hero .jb-checks li { display: flex; align-items: center; gap: 8px; }
.jb-hero .jb-checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--jb-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2c4c' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* mot qui tourne */
.jb-rotate { display: inline-block; position: relative; color: var(--jb-yellow); vertical-align: bottom; overflow: hidden; padding: .16em 0 .04em; margin-top: -.16em; }
.jb-rotate__word { display: inline-block; }
.jb-rotate__word.is-out { animation: jb-word-out .45s var(--jb-ease) forwards; }
.jb-rotate__word.is-in { animation: jb-word-in .55s var(--jb-ease) both; }
@keyframes jb-word-out { to { transform: translateY(-105%); opacity: 0; } }
@keyframes jb-word-in { from { transform: translateY(105%); opacity: 0; } }
.jb-rotate::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; background: var(--jb-yellow); transform-origin: left; animation: jb-underline 3.2s var(--jb-ease) infinite; }
@keyframes jb-underline { 0% { transform: scaleX(0); } 20%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); transform-origin: right; } }

/* apparition du titre mot par mot */
.jb-js .jb-split .jb-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em 0 .06em; margin: -.14em 0 -.06em; }
.jb-js .jb-split .jb-w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--jb-ease); transition-delay: calc(var(--i) * 70ms + 150ms); }
.jb-js .jb-split.is-in .jb-w > span { transform: none; }

/* ---------- Formulaire de devis (Fluent Forms dans une carte) ---------- */
body .jb-form-card.e-con { position: relative; background: var(--jb-white); color: var(--jb-ink); border-radius: 18px; padding: clamp(22px, 3vw, 32px); gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55); scroll-margin-top: 120px; }
body .jb-hero .jb-form-card.e-con { box-shadow: 10px 10px 0 var(--jb-yellow), 0 40px 80px -30px rgba(0,0,0,.55); }
.jb-contact .jb-form-card.e-con { box-shadow: none; border: 1px solid var(--jb-line); }
.jb-form-card__title .elementor-heading-title { font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; font-size: 32px; line-height: .95; color: var(--jb-navy); }
.jb-ff-widget, .jb-ff-widget .fluentform { width: 100%; font-family: var(--jb-body); }
.jb-ff-widget .fluentform .ff-el-group { margin-bottom: 14px; }
.jb-ff-widget .fluentform .ff-t-container { gap: 12px; }
.jb-ff-widget .fluentform .ff-t-cell { padding: 0 !important; }
.jb-ff-widget .fluentform .ff-el-input--label { margin-bottom: 5px; }
.jb-ff-widget .fluentform .ff-el-input--label label { font-size: 13px; font-weight: 600; color: var(--jb-muted); }
.jb-ff-widget .fluentform .ff-el-form-control { font: inherit; font-size: 16px; color: var(--jb-ink); border: 1px solid var(--jb-line); border-radius: 10px; padding: 12px 14px; background: #fbfcfd; box-shadow: none; transition: border-color .2s, box-shadow .2s; }
.jb-ff-widget .fluentform .ff-el-form-control:focus { outline: none; border-color: var(--jb-navy-2); box-shadow: 0 0 0 3px rgba(23,61,102,.15); }
.jb-ff-widget .fluentform textarea.ff-el-form-control { min-height: 70px; }
/* choix du besoin en pastilles */
.jb-ff-widget .fluentform .ff_list_inline .ff-el-input--content { display: flex; flex-wrap: wrap; gap: 6px; }
.jb-ff-widget .fluentform .ff_list_inline .ff-el-form-check { margin: 0 !important; padding: 0 !important; }
.jb-ff-widget .fluentform .ff-el-form-check-label { padding: 0 !important; }
.jb-ff-widget .fluentform .ff-el-form-check-label { cursor: pointer; margin: 0; }
.jb-ff-widget .fluentform .ff-el-form-check-input { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; opacity: 0; pointer-events: none; }
.jb-ff-widget .fluentform .ff-el-form-check-label span { display: inline-block; font-size: 13.5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--jb-line); color: var(--jb-ink); transition: all .2s; }
.jb-ff-widget .fluentform .ff-el-form-check-label:hover span { border-color: var(--jb-navy-2); }
.jb-ff-widget .fluentform .ff-el-form-check-input:checked + span { background: var(--jb-navy); border-color: var(--jb-navy); color: var(--jb-white); }
.jb-ff-widget .fluentform .ff-el-form-check-input:focus-visible + span { outline: 3px solid var(--jb-yellow); outline-offset: 2px; }
/* bouton */
.jb-ff-widget .fluentform .ff_submit_btn_wrapper, .jb-ff-widget .fluentform .ff-el-group.ff_submit_btn_wrapper { margin: 4px 0 0; }
.jb-ff-widget .fluentform .ff-btn-submit { width: 100%; padding: 17px !important; border-radius: 999px !important; background: var(--jb-navy) !important; color: var(--jb-white) !important; font: 600 17px/1 var(--jb-body) !important; border: 0 !important; cursor: pointer; transition: transform .25s var(--jb-ease), background-color .25s; }
.jb-ff-widget .fluentform .ff-btn-submit:hover { background: var(--jb-navy-2) !important; transform: translateY(-2px); opacity: 1; }
.jb-ff-widget .fluentform .ff-custom_html { margin: 0; }
.jb-form__legal p { margin: 0; font-size: 12px; color: var(--jb-muted); text-align: center; }
.jb-ff-widget .fluentform .ff-el-group:last-child { margin-bottom: 0; }
/* messages */
.jb-ff-widget .fluentform .error.text-danger { font-size: 13px; color: #b42318; margin-top: 4px; }
.jb-ff-widget .fluentform .ff-el-is-error .ff-el-form-control { border-color: #e5484d; }
.jb-ff-widget .ff-message-success { border: 0; box-shadow: none; background: #e6f6ec; color: #155c34; border-radius: 12px; padding: 18px; font-size: 16px; }
.jb-ff-widget .ff-message-success p { margin: 0; }
.jb-ff-widget .ff-errors-in-stack { font-size: 14px; color: #b42318; }

/* ---------- Bande défilante (widget Texte avec une liste) ---------- */
body .jb-marquee.e-con { padding: 0; background: var(--jb-yellow); overflow: hidden; }
.jb-marquee .elementor-widget-text-editor { width: 100%; }
.jb-marquee__track { display: flex; width: max-content; animation: jb-marquee 40s linear infinite; }
.jb-marquee:hover .jb-marquee__track { animation-play-state: paused; }
.jb-marquee ul { display: flex; list-style: none; margin: 0; padding: 18px 0; }
.jb-marquee li { font-family: var(--jb-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--jb-navy); white-space: nowrap; display: flex; align-items: center; margin: 0; }
.jb-marquee li::after { content: ""; width: 14px; height: 14px; margin: 0 28px; background: var(--jb-navy); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes jb-marquee { to { transform: translateX(-50%); } }

/* ---------- Services ---------- */
body .jb-cards.e-con { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; }
body .jb-cards--3.e-con { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jb-card--static .elementor-icon-box-wrapper::after { display: none; }
.jb-card--static:hover .elementor-icon-box-wrapper { transform: none; border-color: var(--jb-line); box-shadow: none; }
.jb-card { height: 100%; }
.jb-card .elementor-icon-box-wrapper { height: 100%; display: flex !important; flex-direction: column; align-items: flex-start; text-align: left !important; gap: 16px; background: var(--jb-white); border: 1px solid var(--jb-line); border-radius: var(--jb-radius); padding: 26px 24px 28px; position: relative; overflow: hidden; transition: transform .35s var(--jb-ease), box-shadow .35s, border-color .35s; }
.jb-card .elementor-icon-box-wrapper::after { content: "→"; position: absolute; right: 20px; top: 22px; font-size: 22px; color: var(--jb-navy); opacity: 0; transform: translateX(-8px); transition: all .3s var(--jb-ease); }
.jb-card:hover .elementor-icon-box-wrapper { transform: translateY(-6px); border-color: var(--jb-navy); box-shadow: 0 24px 40px -24px rgba(15,44,76,.45); }
.jb-card:hover .elementor-icon-box-wrapper::after { opacity: 1; transform: none; }
.jb-card .elementor-icon-box-icon { margin: 0 !important; }
.jb-card .elementor-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 12px; background: var(--jb-navy); color: var(--jb-yellow); font-size: 24px; transition: transform .4s var(--jb-ease), background .3s; }
.jb-card .elementor-icon svg { width: 24px; height: 24px; fill: var(--jb-yellow); }
.jb-card:hover .elementor-icon { transform: rotate(-8deg) scale(1.06); background: var(--jb-navy-2); }
.jb-card .elementor-icon-box-title { margin: 0 0 6px; font-family: var(--jb-display); font-weight: 800; font-size: 25px; text-transform: uppercase; line-height: 1; color: var(--jb-navy); }
.jb-card .elementor-icon-box-title a { color: inherit; text-decoration: none; }
.jb-card .elementor-icon-box-title a::before { content: ""; position: absolute; inset: 0; }
.jb-card .elementor-icon-box-content { text-align: left; }
.jb-card .elementor-icon-box-description { margin: 0; font-size: 15px; color: var(--jb-muted); }

/* ---------- Titre de section + photo à droite (classe jb-intro-row sur un conteneur) ---------- */
body .jb-intro-row.e-con { display: grid !important; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: 0; }
body .jb-intro-row > .jb-head.e-con { max-width: none; }
body .jb-intro-row > .jb-intro-img { width: 100% !important; max-width: 100%; }
.jb-intro-img img { display: block; width: 100% !important; max-width: 100% !important; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(15,44,76,.45); }
@media (max-width: 1024px) {
	body .jb-intro-row.e-con { grid-template-columns: minmax(0, 1fr); }
	.jb-intro-img img { aspect-ratio: 16 / 10; }
}
@media (max-width: 767px) { .jb-intro-img img { aspect-ratio: 4 / 3; } }

/* ---------- Texte + image ---------- */
body .jb-split-2.e-con { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
body .jb-split-2 > .e-con { padding: 0; gap: 20px; }
body .jb-visual.e-con { position: relative; aspect-ratio: 4 / 5; max-width: 100%; padding: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #24496f, var(--jb-navy-3)); align-self: stretch; }
body .jb-visual > .jb-visual__img { position: absolute !important; inset: 0; width: 100% !important; height: 100%; max-width: none; }
.jb-visual__img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; max-width: none !important; }
body .jb-visual > .jb-visual__tag { position: absolute !important; left: 20px; bottom: 20px; width: auto !important; }
.jb-visual__tag .elementor-heading-title { background: var(--jb-yellow); color: var(--jb-navy); font-family: var(--jb-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; padding: 12px 16px; border-radius: 10px; }
.jb-prose { color: var(--jb-muted); font-size: 17px; }
.jb-prose p { margin: 0 0 1em; }
.jb-prose p:last-child { margin-bottom: 0; }
.jb-prose strong { color: var(--jb-ink); }
.jb-points .elementor-icon-list-items { display: grid; gap: 0; }
.jb-points .elementor-icon-list-item { padding: 18px 0 !important; border-bottom: 1px solid var(--jb-line); align-items: flex-start !important; gap: 14px; }
.jb-points .elementor-icon-list-icon, .jb-checklist .elementor-icon-list-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--jb-yellow); display: grid !important; place-items: center; margin-top: 2px; }
.jb-points .elementor-icon-list-icon svg, .jb-checklist .elementor-icon-list-icon svg { width: 13px !important; height: 13px; fill: var(--jb-navy); }
.jb-points .elementor-icon-list-text { font-size: 16.5px; color: var(--jb-ink); padding: 0 !important; }
.jb-points .elementor-icon-list-text strong { display: block; font-family: var(--jb-display); font-weight: 800; text-transform: uppercase; font-size: 22px; color: var(--jb-navy); line-height: 1.1; margin-bottom: 2px; }
.jb-checklist .elementor-icon-list-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.jb-checklist .elementor-icon-list-item { padding: 16px 0 !important; border-bottom: 1px solid var(--jb-line); align-items: flex-start !important; gap: 14px; margin: 0 !important; }
.jb-checklist .elementor-icon-list-text { font-size: 17px; color: var(--jb-ink); padding: 0 !important; }

/* ---------- Étapes du chantier (widget Texte avec une liste numérotée) ---------- */
.jb-steps { --p: 0; }
.jb-steps ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: jbs; }
.jb-steps ol::before, .jb-steps ol::after { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 3px; background: rgba(255,255,255,.15); }
.jb-steps ol::after { background: var(--jb-yellow); transform: scaleX(var(--p)); transform-origin: left; }
.jb-steps li { position: relative; z-index: 1; counter-increment: jbs; display: grid; gap: 10px; align-content: start; color: #c6d3e1; font-size: 15px; margin: 0; }
.jb-steps li::before { content: counter(jbs); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--jb-navy-2); border: 3px solid var(--jb-navy); color: var(--jb-white); font-family: var(--jb-display); font-weight: 900; font-size: 26px; transition: background .4s, color .4s; }
.jb-steps li.is-done::before { background: var(--jb-yellow); color: var(--jb-navy); }
.jb-steps strong { display: block; font-family: var(--jb-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; color: var(--jb-white); }

/* ---------- Réalisations (conteneur : widget Image + titre + texte) ---------- */
body .jb-works.e-con { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; }
body .jb-work.e-con { position: relative; aspect-ratio: 4 / 3; max-width: 100%; padding: 0; border-radius: var(--jb-radius); overflow: hidden; background: linear-gradient(160deg, #2a5179, var(--jb-navy-3)); }
body .jb-work > .jb-work__img { position: absolute !important; inset: 0; width: 100% !important; height: 100%; max-width: none; }
.jb-work__img a, .jb-work__img img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; transition: transform .8s var(--jb-ease); }
.jb-work:hover .jb-work__img img { transform: scale(1.06); }
body .jb-work > .jb-work__cap.e-con { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; gap: 2px; background: linear-gradient(transparent, rgba(10,31,55,.92)); }
body:not(.elementor-editor-active) .jb-work__cap { pointer-events: none; }
.jb-work__title .elementor-heading-title { font-family: var(--jb-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; color: var(--jb-white); }
.jb-work__place p { margin: 0; font-size: 14px; color: var(--jb-yellow); font-weight: 600; }

/* ---------- Zones (liste d'icônes en ligne) ---------- */
.jb-cities .elementor-icon-list-items { display: flex !important; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.jb-cities .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.jb-cities .elementor-icon-list-item::after { display: none !important; }
.jb-cities .elementor-icon-list-item > a, .jb-cities .elementor-icon-list-item > span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--jb-white); border: 1px solid var(--jb-line); color: var(--jb-navy); font-weight: 600; text-decoration: none; transition: all .25s var(--jb-ease); }
.jb-cities .elementor-icon-list-icon svg { width: 13px; height: 13px; fill: var(--jb-yellow); }
.jb-cities .elementor-icon-list-text { color: inherit !important; padding: 0 !important; }
.jb-cities .elementor-icon-list-item > a:hover { background: var(--jb-navy); color: var(--jb-white); border-color: var(--jb-navy); transform: translateY(-2px); }
.jb-cities .elementor-icon-list-item:first-child > a { background: var(--jb-navy); color: var(--jb-white); border-color: var(--jb-navy); }
.jb-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: 18px; filter: grayscale(.4) contrast(1.05); }
.jb-map .elementor-custom-embed { height: 100%; line-height: 0; }

/* ---------- FAQ ---------- */
.jb-faq .elementor-accordion-item { border: 0 !important; border-bottom: 1px solid var(--jb-line) !important; }
.jb-faq .elementor-tab-title { padding: 22px 0 !important; border: 0 !important; }
.jb-faq .elementor-tab-title a, .jb-faq .elementor-accordion-title { font-family: var(--jb-display); font-weight: 800; font-size: 24px; text-transform: uppercase; color: var(--jb-navy) !important; text-decoration: none; line-height: 1.1; }
.jb-faq .elementor-accordion-icon { color: var(--jb-navy); }
.jb-faq .elementor-accordion-icon svg { fill: var(--jb-navy); }
.jb-faq .elementor-tab-content { padding: 0 0 22px !important; border: 0 !important; color: var(--jb-muted); font-size: 16.5px; max-width: 75ch; }

/* ---------- Appel final ---------- */
body .jb-final.e-con { position: relative; overflow: hidden; isolation: isolate; display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
body .jb-final.e-con::before { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; border: 70px solid rgba(242,183,5,.12); z-index: -1; }
body .jb-final > .e-con { padding: 0; gap: 18px; }
.jb-final__tel p { margin: 0; font-family: var(--jb-display); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.jb-final__tel a { color: var(--jb-yellow); text-decoration: none; }
.jb-final__nap { color: #c6d3e1; }
.jb-final__nap p { margin: 0; }

/* ---------- Pages intérieures ---------- */
body .jb-hero--page.e-con { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.jb-hero--page h1.elementor-heading-title { font-size: clamp(40px, 5vw, 72px); line-height: .92; }
body .jb-hero--solo.e-con { grid-template-columns: minmax(0, 1fr); }
.jb-hero--solo .jb-hero__txt { max-width: 900px; }
.jb-fil { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: #9fb3c8; }
.jb-fil a { color: #dbe5ef; text-decoration: none; }
.jb-fil a:hover { color: var(--jb-yellow); }
.jb-fil__sep { opacity: .5; }
.jb-fil [aria-current] { color: var(--jb-yellow); }
.jb-legal { max-width: 820px; }
.jb-legal h2 { font-family: var(--jb-display); font-weight: 800; font-size: 30px; text-transform: uppercase; color: var(--jb-navy); margin: 1.6em 0 .5em; }
.jb-legal h2:first-child { margin-top: 0; }
.jb-placeholder { background: #fff7d6; border-radius: 4px; padding: 0 4px; }
.jb-contact-card { background: var(--jb-grey); border-radius: 18px; padding: 28px; }
.jb-contact-card p { margin: 0 0 14px; }
.jb-contact-card strong { display: block; font-family: var(--jb-display); font-weight: 800; text-transform: uppercase; font-size: 20px; color: var(--jb-navy); }
.jb-contact-card a { color: var(--jb-navy); font-weight: 600; }
body .jb-contact.e-con { align-items: start; }
.jb-testimonial .elementor-testimonial-wrapper { background: var(--jb-white); border: 1px dashed var(--jb-line); border-radius: var(--jb-radius); padding: 28px; text-align: left; }

/* ---------- Pied de page (modèle Elementor) ---------- */
body .jb-fgrid.e-con { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding: 0 var(--jb-gutter) 56px; }
body .jb-fgrid > .e-con { padding: 0; gap: 14px; }
.jb-flogo-img, .jb-flogo-img .elementor-widget-container { text-align: left !important; }
.jb-flogo-img img { display: inline-block; width: 190px; height: auto; }
.jb-flogo .elementor-heading-title { font-family: var(--jb-display); font-weight: 900; font-size: 32px; text-transform: uppercase; color: var(--jb-white); line-height: 1; }
.jb-ftitle .elementor-heading-title { font-family: var(--jb-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--jb-white); }
.jb-ftext { color: #c6d3e1; font-size: 15px; }
.jb-ftext p { margin: 0 0 6px; }
.jb-ftext a { color: #e3ebf3; }
.jb-flinks .elementor-icon-list-item { padding: 4px 0 !important; }
.jb-flinks .elementor-icon-list-item a, .jb-flinks .elementor-icon-list-text { color: #e3ebf3 !important; font-size: 15px; padding: 0 !important; }
.jb-flinks .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--jb-yellow) !important; }
.jb-flinks .elementor-icon-list-icon { display: none !important; }

/* =========================================================
   Modèles du blog (page Conseils, articles, recherche, 404)
   ========================================================= */
.jb-btn--ghost { background: transparent; color: var(--jb-white); border-color: rgba(255,255,255,.4); }
.jb-btn--ghost:hover { border-color: var(--jb-yellow); color: var(--jb-yellow); }
.jb-banner { position: relative; overflow: hidden; isolation: isolate; color: var(--jb-white); padding: clamp(40px, 6vw, 80px) var(--jb-gutter) clamp(48px, 6vw, 84px);
	background: radial-gradient(120% 90% at 85% 10%, var(--jb-navy-2) 0%, var(--jb-navy) 45%, var(--jb-navy-3) 100%); }
.jb-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: radial-gradient(circle at 50% 0, transparent 21px, #fff 22px, #fff 23px, transparent 24px); background-size: 44px 26px; -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%); mask-image: linear-gradient(100deg, transparent 30%, #000 75%); }
.jb-banner__in { max-width: 900px; display: grid; gap: 18px; }
.jb-banner h1 { font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; font-size: clamp(38px, 5vw, 68px); line-height: .95; color: var(--jb-white); }
.jb-banner__lead { margin: 0; font-size: 19px; color: #c6d3e1; max-width: 60ch; }
.jb-banner__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; color: #c6d3e1; }
.jb-banner__meta a { color: var(--jb-yellow); text-decoration: none; }

.jb-tpl-section { padding-block: clamp(56px, 7vw, 96px); }
.jb-tpl-section--tight { padding-block: 32px 0; }
.jb-tpl-section--grey { background: var(--jb-grey); }
.jb-tpl-section > .jb-wrap { display: grid; gap: 40px; }
.jb-tpl-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--jb-navy-2); display: inline-flex; align-items: center; gap: 10px; }
.jb-tpl-eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--jb-yellow); }
.jb-tpl-h2 { font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; color: var(--jb-navy); font-size: clamp(34px, 4vw, 52px); line-height: .95; margin: -24px 0 0; }
.jb-tpl-h2 mark { background: linear-gradient(var(--jb-yellow), var(--jb-yellow)) no-repeat 0 88% / 100% .28em; color: inherit; }

/* cartes */
.jb-postgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.jb-postcard { position: relative; display: flex; flex-direction: column; background: var(--jb-white); border: 1px solid var(--jb-line); border-radius: var(--jb-radius); overflow: hidden; transition: transform .35s var(--jb-ease), box-shadow .35s, border-color .35s; }
.jb-postcard:hover { transform: translateY(-6px); border-color: var(--jb-navy); box-shadow: 0 24px 40px -24px rgba(15,44,76,.45); }
.jb-postcard__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #2a5179, var(--jb-navy-3)); }
.jb-postcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--jb-ease); }
.jb-postcard:hover .jb-postcard__img img { transform: scale(1.05); }
.jb-postcard__ph { display: block; width: 100%; height: 100%; background-image: radial-gradient(circle at 50% 0, transparent 21px, rgba(255,255,255,.12) 22px, rgba(255,255,255,.12) 23px, transparent 24px); background-size: 44px 26px; }
.jb-postcard__body { display: grid; gap: 10px; padding: 22px 24px 26px; align-content: start; flex: 1; }
.jb-postcard__meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--jb-muted); }
.jb-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--jb-yellow); color: var(--jb-navy); }
.jb-postcard__title { margin: 0; font-family: var(--jb-display); font-weight: 800; font-size: 26px; line-height: 1.02; text-transform: uppercase; color: var(--jb-navy); }
.jb-postcard__title a { color: inherit; text-decoration: none; }
.jb-postcard__title a::after { content: ""; position: absolute; inset: 0; }
.jb-postcard__excerpt { margin: 0; font-size: 15px; color: var(--jb-muted); }
.elementor-widget-shortcode .jb-postgrid { width: 100%; }
.jb-postcard__more { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--jb-navy-2); }

/* pagination */
.jb-pagination .nav-links, nav.jb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--jb-line); color: var(--jb-navy); text-decoration: none; font-weight: 600; }
.jb-pagination .page-numbers.current, .jb-pagination a.page-numbers:hover { background: var(--jb-navy); border-color: var(--jb-navy); color: var(--jb-white); }

/* encadré d'appel */
.jb-ctabox { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; background: var(--jb-navy); color: var(--jb-white); border-radius: 18px; padding: clamp(24px, 4vw, 40px); box-shadow: 10px 10px 0 var(--jb-yellow); }
.jb-ctabox > div:first-child { display: grid; gap: 8px; max-width: 560px; }
.jb-ctabox__title { margin: 0; font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 40px); line-height: .95; }
.jb-ctabox__text { margin: 0; color: #c6d3e1; }
.jb-ctabox__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* article */
.jb-tpl-section--article > .jb-wrap { max-width: 860px; }
.jb-article__cover { margin: 0; border-radius: 18px; overflow: hidden; }
.jb-article__cover img { width: 100%; height: auto; display: block; }
.jb-article:not(.jb-article--elementor) { font-size: 18px; line-height: 1.75; color: #2b3947; }
.jb-article:not(.jb-article--elementor) > * { margin: 0 0 1.1em; }
.jb-article:not(.jb-article--elementor) h2 { font-family: var(--jb-display); font-weight: 900; text-transform: uppercase; color: var(--jb-navy); font-size: clamp(30px, 3.4vw, 40px); line-height: 1; margin: 1.6em 0 .5em; }
.jb-article:not(.jb-article--elementor) h3 { font-family: var(--jb-display); font-weight: 800; text-transform: uppercase; color: var(--jb-navy); font-size: 26px; line-height: 1.05; margin: 1.4em 0 .4em; }
.jb-article:not(.jb-article--elementor) a { color: var(--jb-navy-2); text-decoration: underline; text-decoration-color: var(--jb-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.jb-article:not(.jb-article--elementor) ul, .jb-article:not(.jb-article--elementor) ol { padding-left: 1.3em; }
.jb-article:not(.jb-article--elementor) li { margin-bottom: .4em; }
.jb-article:not(.jb-article--elementor) ul li::marker { color: var(--jb-yellow); }
.jb-article:not(.jb-article--elementor) blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 4px solid var(--jb-yellow); background: var(--jb-grey); border-radius: 0 12px 12px 0; font-size: 19px; color: var(--jb-ink); }
.jb-article:not(.jb-article--elementor) blockquote p { margin: 0; }
.jb-article:not(.jb-article--elementor) img { border-radius: 12px; height: auto; }
.jb-article:not(.jb-article--elementor) figcaption { font-size: 14px; color: var(--jb-muted); text-align: center; margin-top: 8px; }
.jb-article:not(.jb-article--elementor) table { width: 100%; font-size: 16px; display: block; overflow-x: auto; }

/* recherche et 404 */
.jb-search { display: flex; gap: 10px; max-width: 640px; }
.jb-search input[type=search] { flex: 1; min-width: 0; font: inherit; font-size: 16px; border: 1px solid var(--jb-line); border-radius: 999px; padding: 14px 20px; background: #fbfcfd; }
.jb-search input[type=search]:focus { outline: none; border-color: var(--jb-navy-2); box-shadow: 0 0 0 3px rgba(23,61,102,.15); }
.jb-search .jb-btn { cursor: pointer; }
.jb-404 { gap: 28px !important; }
.jb-404__links { list-style: none; margin: -12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jb-404__links a { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--jb-line); color: var(--jb-navy); font-weight: 600; text-decoration: none; }
.jb-404__links a:hover { background: var(--jb-navy); color: var(--jb-white); border-color: var(--jb-navy); }
.jb-empty { display: grid; gap: 16px; justify-items: start; color: var(--jb-muted); }
.jb-empty p { margin: 0; }

@media (max-width: 1024px) { .jb-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.jb-postgrid { grid-template-columns: minmax(0, 1fr); }
	.jb-search { flex-direction: column; }
	.jb-ctabox__btns, .jb-ctabox__btns .jb-btn { width: 100%; }
}

/* =========================================================
   Apparitions au scroll
   ========================================================= */
.jb-js .jb-reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--jb-ease), transform .9s var(--jb-ease); transition-delay: var(--d, 0ms); }
.jb-js .jb-reveal.is-in { opacity: 1; transform: none; }
.jb-js .jb-reveal--left { transform: translateX(-40px); }
.jb-js .jb-reveal--right { transform: translateX(40px); }
.jb-js .jb-reveal--zoom { transform: scale(.94); }
.jb-js .jb-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--jb-ease), transform .8s var(--jb-ease); transition-delay: calc(var(--i, 0) * 90ms); }
.jb-js .jb-stagger.is-in > * { opacity: 1; transform: none; }
.jb-hero__form { min-width: 0; }
.jb-js .jb-hero__form { opacity: 0; transform: translateX(40px) rotate(1.5deg); transition: opacity .9s var(--jb-ease) .5s, transform 1s var(--jb-ease) .5s; }
.jb-js .jb-hero__form.is-in { opacity: 1; transform: none; }
.jb-js .jb-hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--jb-ease), transform .8s var(--jb-ease); transition-delay: var(--d, 700ms); }
.jb-js .jb-hero-fade.is-in { opacity: 1; transform: none; }
/* dans l'éditeur Elementor, tout reste visible */
.elementor-editor-active .jb-reveal, .elementor-editor-active .jb-stagger > *, .elementor-editor-active .jb-hero__form, .elementor-editor-active .jb-hero-fade, .elementor-editor-active .jb-split .jb-w > span { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.jb-js .jb-reveal, .jb-js .jb-stagger > *, .jb-js .jb-hero__form, .jb-js .jb-hero-fade, .jb-js .jb-split .jb-w > span { opacity: 1; transform: none; }
	.jb-h2 mark { background-size: 100% .28em; }
	.jb-section--navy .jb-h2 mark { background-size: 100% .07em; }
}

/* =========================================================
   Responsive
   ========================================================= */
/* écrans intermédiaires : menu resserré pour tenir sur une ligne avec le bouton */
@media (min-width: 1025px) and (max-width: 1320px) {
	.jb-header__in { gap: 14px; }
	.jb-menu { gap: 0; }
	.jb-menu a { padding: 10px 7px; font-size: 14.5px; }
	.jb-menu .menu-item-has-children > a { padding-right: 20px; }
	.jb-menu .menu-item-has-children > a::before { right: 6px; }
	.jb-menu > li > a::after { left: 7px; right: 7px; }
	.jb-header__cta { padding: 13px 18px; font-size: 15px; white-space: nowrap; }
	.jb-logo__img { height: 60px; }
}
@media (max-width: 1100px) {
	body .jb-cards.e-con { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.jb-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
	.jb-header { backdrop-filter: none; background: var(--jb-white); }
	.jb-header__cta { display: none; }
	.jb-burger { display: grid; gap: 5px; width: 46px; height: 46px; place-content: center; border: 0; border-radius: 10px; background: var(--jb-navy); cursor: pointer; padding: 0; }
	.jb-burger:hover, .jb-burger:focus, .jb-burger:active, .jb-burger[aria-expanded="true"] { background: var(--jb-navy-2); border: 0; color: var(--jb-white); }
	.jb-burger span:not(.screen-reader-text) { width: 22px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
	.jb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.jb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.jb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	/* panneau sous l'en-tête (--jb-nav-top calculé en JS) */
	.jb-nav { position: fixed; top: var(--jb-nav-top, 120px); right: 0; bottom: 0; width: min(420px, 100vw); background: var(--jb-white); padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--jb-ease), visibility 0s linear .4s; box-shadow: -20px 20px 60px -20px rgba(0,0,0,.35); border-top: 1px solid var(--jb-line); display: grid; align-content: start; gap: 20px; }
	.jb-nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--jb-ease), visibility 0s; }
	body.jb-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 99; background: rgba(10,31,55,.45); }
	.jb-menu { flex-direction: column; }
	.jb-menu a { font-size: 17px; padding: 12px 4px; }
	.jb-menu > li > a::after { display: none; }
	.jb-menu .menu-item-has-children > a::before { display: none; }
	.jb-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
	.jb-menu .sub-menu a { font-size: 15px; color: var(--jb-muted); padding: 7px 4px; }
	.jb-nav__cta-mobile { display: inline-flex; }
	body .jb-hero.e-con { grid-template-columns: minmax(0, 1fr); }
	body .jb-split-2.e-con, body .jb-final.e-con { grid-template-columns: minmax(0, 1fr); }
	body .jb-visual.e-con { aspect-ratio: 16 / 10; }
	/* pages intérieures : format plus haut pour moins recadrer les photos */
	body:not(.home) .jb-visual.e-con { aspect-ratio: 4 / 3; }
	.jb-steps ol { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.jb-steps ol::before, .jb-steps ol::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 3px; height: auto; }
	.jb-steps ol::after { transform: scaleY(var(--p)); transform-origin: top; }
	.jb-steps li { grid-template-columns: 56px 1fr; column-gap: 18px; }
	.jb-steps li::before { grid-row: span 2; }
	body .jb-works.e-con { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	body .jb-fgrid.e-con { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	body { font-size: 16px; }
	body:not(.home) .jb-visual.e-con { aspect-ratio: 4 / 5; }
	.jb-topbar__msg { display: none; }
	.jb-topbar__in { justify-content: center; }
	body .jb-section.e-con { padding-block: 64px; }
	body .jb-cards.e-con { grid-template-columns: minmax(0, 1fr); }
	body .jb-works.e-con, body .jb-cards--3.e-con, body .jb-fgrid.e-con { grid-template-columns: minmax(0, 1fr); }
	.jb-checklist .elementor-icon-list-items { grid-template-columns: minmax(0, 1fr); }
	.jb-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.jb-footer { padding-bottom: 64px; }
	.jb-callbar { display: flex; position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); justify-content: center; align-items: center; gap: 10px; padding: 15px; border-radius: 999px; background: var(--jb-yellow); color: var(--jb-navy); font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px -10px rgba(0,0,0,.4); transform: translateY(150%); transition: transform .4s var(--jb-ease); }
	.jb-callbar.is-visible { transform: none; }
	.jb-marquee__list li { font-size: 21px; }
}
@media (max-width: 782px) { .admin-bar .jb-header { top: 0; } }
