/* ORYEM - styles communs du site (chargés sur toutes les pages et dans l'éditeur). */

body { -webkit-font-smoothing: antialiased; }
section[id], [id] { scroll-margin-top: 110px; }

/* ---------- En-tête ---------- */
.wp-site-blocks > header,
header.wp-block-template-part { position: sticky; top: 0; z-index: 20; }
.oy-header {
	background: rgba(244, 245, 247, 0.92);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(11, 31, 51, 0.5);
}
.oy-logo { display: inline-flex; align-items: center; min-height: 44px; flex: 0 0 auto; }
.oy-logo img { display: block; height: clamp(52px, 4.6vw, 64px); width: auto; }
/* Petits écrans (moins de 400 px) : le logo se réduit pour laisser la place au bouton « Menu ». */
@media (max-width: 399px) { .oy-header > .alignwide { gap: 12px !important; } .oy-logo { flex: 0 1 auto; min-width: 0; } .oy-logo img { height: auto; width: 100%; max-width: 176px; } }
.oy-nav { flex: 1 1 auto; }
.oy-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--graphite); padding: 12px 0; }
.oy-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--bleu-nuit); font-weight: 700; }
.oy-header-cta .wp-block-button__link { white-space: nowrap; }
@media (max-width: 960px) {
	.oy-header-cta { display: none; }
	.oy-nav { flex: 0 0 auto; }
}
.oy-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--blanc-casse);
	padding: 24px;
}
/* Bouton « Menu » (mobile) : comme la maquette v7, icône trois traits + « Menu », bouton standard. */
.oy-nav .wp-block-navigation__responsive-container-open,
.oy-nav .wp-block-navigation__responsive-container-close {
	align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; background: transparent;
	border: 1px solid var(--wp--preset--color--bleu-nuit); border-radius: 8px;
	font-family: inherit; font-size: 13px; font-weight: 600 !important; line-height: 1; color: var(--wp--preset--color--bleu-nuit);
}
.oy-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.oy-nav .wp-block-navigation__responsive-container-open::before {
	content: ""; width: 16px; height: 16px; flex: none;
	background: linear-gradient(currentColor, currentColor) 2px 3.2px / 12px 1.6px no-repeat,
		linear-gradient(currentColor, currentColor) 2px 7.2px / 12px 1.6px no-repeat,
		linear-gradient(currentColor, currentColor) 2px 11.2px / 12px 1.6px no-repeat;
}
.oy-nav .wp-block-navigation__responsive-container-open::after { content: "Menu"; }
.oy-nav .wp-block-navigation__responsive-container-close svg { width: 16px; height: 16px; flex: none; }
.oy-nav .wp-block-navigation__responsive-container-close::after { content: "Fermer"; }

/* ---------- Boutons ---------- */
.wp-element-button, .wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease, color .2s ease; }
.wp-block-button.is-style-clair .wp-block-button__link { border-color: var(--wp--preset--color--blanc-casse); color: var(--wp--preset--color--blanc-casse); }
.wp-block-button.is-style-clair .wp-block-button__link:hover,
.wp-block-button.is-style-clair .wp-block-button__link:focus { background: var(--wp--preset--color--blanc-casse); color: var(--wp--preset--color--bleu-nuit); }
.wp-element-button:focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.oy-linkbtn { background: none; border: 0; padding: 12px 0; font: inherit; color: inherit; cursor: pointer; }
.oy-linkbtn:hover { text-decoration: underline; }

/* ---------- Sections (styles de bloc Groupe) ---------- */
.is-style-section-sombre, .is-style-section-blanche, .is-style-section-argent {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}
.is-style-section-sombre { background: var(--wp--preset--color--bleu-nuit); color: var(--wp--preset--color--blanc-casse); }
.is-style-section-sombre :where(h1, h2, h3, h4, a:not(.wp-element-button)) { color: var(--wp--preset--color--blanc-casse); }
.is-style-section-sombre a:not(.wp-element-button) { text-decoration: underline; text-underline-offset: 3px; }
.is-style-section-blanche { background: var(--wp--preset--color--blanc); }
.is-style-section-argent { background: var(--wp--preset--color--argent-glace); }

/* Picto en filigrane (le picto n'est jamais posé sur deux sections blanches consécutives). */
.is-style-picto-droite, .is-style-picto-gauche { position: relative; isolation: isolate; overflow: hidden; }
.is-style-picto-droite::before, .is-style-picto-gauche::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: clamp(260px, 34vw, 500px); aspect-ratio: 300 / 368;
	background: currentColor; opacity: .05;
	-webkit-mask: url(../images/picto.svg) no-repeat center / contain;
	mask: url(../images/picto.svg) no-repeat center / contain;
}
.is-style-picto-droite::before { top: -90px; right: -110px; color: var(--wp--preset--color--bleu-nuit); }
.is-style-picto-gauche::before { bottom: -120px; left: -130px; color: var(--wp--preset--color--bleu-nuit); }
.oy-footer.is-style-picto-droite::before { top: auto; bottom: 5px; right: -60px; width: clamp(200px, 20vw, 280px); color: var(--wp--preset--color--blanc-casse); opacity: .06; }

/* ---------- Hero et fil d'Ariane ---------- */
.oy-breadcrumb { padding-top: clamp(2rem, 5vw, 3.5rem); font-size: 13px; }
.oy-breadcrumb a { color: var(--wp--preset--color--graphite); }
.oy-hero { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.oy-hero-cols { gap: 24px var(--wp--preset--spacing--70); }

/* ---------- FAQ (bloc Détails, style « Question de FAQ ») ---------- */
.wp-block-details.is-style-faq { border-top: 1px solid rgba(11, 31, 51, 0.5); padding: 12px 0; margin: 0; }
.wp-block-details.is-style-faq:last-of-type { border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.wp-block-details.is-style-faq > summary {
	display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none;
	min-height: 44px; box-sizing: border-box; padding: 8px 0; /* zone cliquable de 44 px minimum */
	font-size: 18px; font-weight: 600; color: var(--wp--preset--color--bleu-nuit);
}
.wp-block-details.is-style-faq > summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq > summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; transition: transform .2s; }
.wp-block-details.is-style-faq[open] > summary::after { transform: rotate(45deg); }
.wp-block-details.is-style-faq > :not(summary) { margin-top: 12px; font-size: 16px; line-height: 1.65; }

/* ---------- Liste à lignes ---------- */
.wp-block-list.is-style-lignes { list-style: none; padding: 0; border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.wp-block-list.is-style-lignes > li { padding: 16px 0; border-top: 1px solid rgba(11, 31, 51, 0.5); font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }

/* ---------- Blog ---------- */
.oy-blog-list { padding-bottom: var(--wp--preset--spacing--60); }
.wp-block-categories.oy-cat-links { list-style: none; padding: 0 0 24px; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.wp-block-categories.oy-cat-links li a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px;
	border: 1px solid rgba(11, 31, 51, 0.5); background: var(--wp--preset--color--blanc); font-size: 14px; font-weight: 600;
}
.wp-block-categories.oy-cat-links li.current-cat a { background: var(--wp--preset--color--bleu-nuit); color: var(--wp--preset--color--blanc-casse); border-color: var(--wp--preset--color--bleu-nuit); }
.oy-cards .wp-block-post-featured-image { background: var(--wp--preset--color--argent-glace); border-radius: 12px; }
.oy-card-title { font-size: 20px; line-height: 1.3; letter-spacing: 0; margin-top: 4px; }
.oy-article { padding-bottom: var(--wp--preset--spacing--60); }
.oy-article-head { max-width: 860px; padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem); }
.oy-related { background: var(--wp--preset--color--blanc); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }

/* ---------- Pied de page ---------- */
.oy-footer a { color: var(--wp--preset--color--blanc-casse); }
.oy-logo-footer img { display: block; height: 72px; width: auto; }
.oy-footer-links { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.oy-footer-links li a { display: inline-block; padding: 8px 0; }
.oy-footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(244, 245, 247, 0.3); font-size: 13px; }
.oy-footer-legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.oy-footer-legal a { padding: 12px 0; }

/* ---------- Apparition au défilement ---------- */
@supports (animation-timeline: view()) {
	@keyframes oy-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
	.oy-reveal { animation: oy-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Autocomplétion « Commune du local » (page Contact) ---------- */
.wpcf7-form-control-wrap[data-name="commune"]{display:block;position:relative}
.oryem-ac{position:absolute;left:0;right:0;top:100%;z-index:50;margin:4px 0 0;padding:6px;list-style:none;background:#FFFFFF;border:1px solid rgba(11,31,51,0.5);border-radius:8px;box-shadow:0 18px 36px -24px rgba(11,31,51,.45);font-family:'Satoshi',system-ui,sans-serif}
.oryem-ac li{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:44px;padding:0 10px;border-radius:6px;font-size:15px;cursor:pointer}
.oryem-ac li:hover,.oryem-ac li[aria-selected="true"]{background:#F4F5F7}
.oryem-ac-nom{font-weight:600;color:#0B1F33}
.oryem-ac-cp{color:#5F6D7C}

/* ---------- Frise des six temps (composition « Frise six temps ») ---------- */
.fb{list-style:none;margin:64px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.fb li{display:flex;flex-direction:column;gap:16px}
.fb-bar{display:block;height:2px;background:#DCE3EA;border-radius:2px;overflow:hidden}
.fb-bar i{display:block;height:100%;background:#0B1F33;transform-origin:left center}
.fb-n{margin:0;font-size:13px;font-weight:600;color:#5F6D7C}
.fb-d{margin:6px 0 0;font-size:14px;line-height:1.5;color:#2B2F36}
.fb-t{margin:4px 0 0;font-size:16px;line-height:1.35;font-weight:600;color:#0B1F33}
.fb svg{width:30px;height:30px}
@media (max-width:860px){.fb{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px}}
@keyframes fb-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes fb-in{from{opacity:.35}to{opacity:1}}
.fb-bar i{transform:scaleX(0)}
.fb.go .fb-bar i{animation:fb-x .7s linear both}
.fb li>:not(.fb-bar){opacity:.35}
.fb.go li>:not(.fb-bar){animation:fb-in .5s ease both}
.fb.go li:nth-child(1) .fb-bar i{animation-delay:0.3s}.fb.go li:nth-child(1)>:not(.fb-bar){animation-delay:0.3s}
.fb.go li:nth-child(2) .fb-bar i{animation-delay:1.0s}.fb.go li:nth-child(2)>:not(.fb-bar){animation-delay:1.0s}
.fb.go li:nth-child(3) .fb-bar i{animation-delay:1.7s}.fb.go li:nth-child(3)>:not(.fb-bar){animation-delay:1.7s}
.fb.go li:nth-child(4) .fb-bar i{animation-delay:2.4s}.fb.go li:nth-child(4)>:not(.fb-bar){animation-delay:2.4s}
.fb.go li:nth-child(5) .fb-bar i{animation-delay:3.1s}.fb.go li:nth-child(5)>:not(.fb-bar){animation-delay:3.1s}
.fb.go li:nth-child(6) .fb-bar i{animation-delay:3.8s}.fb.go li:nth-child(6)>:not(.fb-bar){animation-delay:3.8s}
.fb-who{margin:10px 0 0;font-size:12px;font-weight:600;color:#5F6D7C}
.fb-out{margin:10px 0 0;padding-top:10px;border-top:1px solid #DCE3EA;font-size:13px;line-height:1.45;font-weight:600;color:#0B1F33}

/* ---------- Carte des territoires (composition « Carte des territoires ») ---------- */
@keyframes tl-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes tp-in{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes tt-in{from{opacity:0}to{opacity:1}}
@keyframes th-pulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.25);opacity:.55}}
.oy-carte .tp,.th{transform-box:fill-box;transform-origin:center}
.oy-carte .tl{stroke-dasharray:1;stroke-dashoffset:1;animation:tl-draw 1s cubic-bezier(.4,0,.2,1) forwards}
.oy-carte .tl1{animation-delay:.3s}.oy-carte .tl2{animation-delay:.45s}.oy-carte .tl3{animation-delay:.6s}.oy-carte .tl4{animation-delay:.75s}
.oy-carte circle.tp{opacity:0;animation:tp-in .5s cubic-bezier(.3,1.4,.6,1) forwards}
.oy-carte text.tt{opacity:0;animation:tt-in .5s ease forwards}
.oy-carte .tp1{animation-delay:1.1s}.oy-carte .tp2{animation-delay:1.25s}.oy-carte .tp3{animation-delay:1.4s}.oy-carte .tp4{animation-delay:1.55s}.oy-carte .tp5{animation-delay:1.7s}.oy-carte .tp6{animation-delay:1.85s}.oy-carte .tl5{animation-delay:.9s}.oy-carte .tl6{animation-delay:1.05s}
.oy-carte .th{animation:th-pulse 4s ease-in-out 1.8s infinite}
.oy-carte .tx{fill:none;stroke:#5F6D7C;stroke-opacity:.55;stroke-width:1;stroke-dasharray:.02 .025;stroke-dashoffset:0;opacity:0;animation:tx-in 1.2s ease forwards}
.oy-carte .txp{fill:#F4F5F7;stroke:#5F6D7C;stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center;animation:tp-in .5s cubic-bezier(.3,1.4,.6,1) forwards}
@keyframes tx-in{from{opacity:0;stroke-dasharray:0 1}to{opacity:1;stroke-dasharray:.02 .025}}
@media (prefers-reduced-motion: reduce){.oy-carte .tx,.txp{animation:none;opacity:1}}
.oy-carte:not(.go) *{animation-play-state:paused}
@media (prefers-reduced-motion: reduce){
	.fb-bar i{transform:none}
	.fb li>:not(.fb-bar){opacity:1}
	.oy-carte .tp,.oy-carte .tt,.oy-carte .tx,.oy-carte .txp{opacity:1}
	.oy-carte .tl{stroke-dashoffset:0}
}

/* ---------- Points clés (section bleu nuit) et appel à échanger ---------- */
.oy-point { padding-top: 20px; border-top: 1px solid rgba(244, 245, 247, 0.3); }
.oy-point > p { margin: 0; }
.oy-point > p + p { margin-top: 6px; }
.oy-cta-cols { border-top: 1px solid var(--wp--preset--color--bleu-nuit); padding-top: 40px; }

/* ---------- Enchaînement des sections pleine largeur, sans espace entre elles ---------- */
.wp-site-blocks > * + *, main > * + *, .wp-block-post-content > .alignfull, .wp-block-post-content > .alignfull + * { margin-block-start: 0; }
@media (max-width: 960px) { .oy-header .oy-header-cta { display: none !important; } }
.oy-article-body > * { max-width: 760px; margin-left: 0; }

/* ---------- Page d'accueil : haut de page ---------- */
.oy-hero-accueil { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3rem, 6vw, 5rem); overflow-x: clip; }
.oy-hero-accueil .oy-hero-cols { align-items: center; gap: 48px 72px; }
.oy-surtitre { margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--ardoise); }
.oy-hero-accueil h1 { font-size: clamp(1.7rem, 3.4vw, 3.1rem); }
.oy-hero-accueil .has-large-font-size { margin-top: 28px; max-width: 560px; }
.oy-actions { margin-top: 32px; gap: 12px 28px; }
.oy-actions > p { margin: 0; }
.oy-lien-fort { font-size: 15px; font-weight: 600; }
.oy-lien-fort a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Page d'accueil : citation, publics ---------- */
.oy-citation { margin: 56px 0 0; padding: 24px 0 0; border: 0; border-top: 1px solid rgba(244, 245, 247, 0.3); }
.oy-citation p { margin: 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; font-weight: 600; }
.oy-public { padding-top: 24px; border-top: 1px solid rgba(11, 31, 51, 0.5); }
.oy-public h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: 0; }
.oy-chapo-fort { font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }

/* ---------- Page d'accueil : animation « avis de valeur » (composition « Haut de page d'accueil ») ---------- */
.oy-hd { position: relative; height: 470px; perspective: 1400px; perspective-origin: 50% 40%; }
.oy-hd .hd-bg { position: absolute; inset: -20px; background-image: radial-gradient(circle, #DCE3EA 1.2px, transparent 1.6px); background-size: 14px 14px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); }
.oy-hd p { margin: 0; }
.oy-hd .mo { position: absolute; left: calc(50% - 100px); top: 80px; width: 200px; height: 270px; border-radius: 18px; background: #0B1F33; box-shadow: 0 40px 70px -36px rgba(11,31,51,.6), inset 0 0 0 1px #0B1F33; transition: left 1s cubic-bezier(.65,0,.25,1), top 1s cubic-bezier(.65,0,.25,1), width 1s cubic-bezier(.65,0,.25,1), height 1s cubic-bezier(.65,0,.25,1), border-radius 1s cubic-bezier(.65,0,.25,1), background-color .8s ease, box-shadow .8s ease; }
.oy-hd .mo.m1 { left: calc(50% - 140px); top: 90px; width: 280px; height: 250px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 40px 80px -48px rgba(11,31,51,.45), inset 0 0 0 1px rgba(11,31,51,.5); }
.oy-hd .mo.m2 { left: 8%; top: 76px; width: 72%; height: 190px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 40px 80px -48px rgba(11,31,51,.45), inset 0 0 0 1px rgba(11,31,51,.5); }
.oy-hd .ct { position: absolute; overflow: hidden; border-radius: 16px; opacity: 0; filter: blur(8px); transform: scale(.96); transition: opacity .45s ease, filter .45s ease, transform .45s ease; pointer-events: none; }
.oy-hd .ct.on { opacity: 1; filter: none; transform: none; transition-delay: .6s; transition-duration: .6s; }
.oy-hd .sc { position: absolute; inset: 0; transform-style: preserve-3d; opacity: 0; transform: rotateY(62deg) translateZ(-120px); transition: transform 1s cubic-bezier(.65,0,.25,1), opacity .7s ease; pointer-events: none; }
.oy-hd .sc.on { opacity: 1; transform: none; }
.oy-hd .sc.out { opacity: 0; transform: rotateY(-62deg) translateZ(-120px); }
.oy-hd .pv { position: absolute; opacity: 0; transform: rotateY(-55deg) translateZ(-40px) scale(.94); }
.oy-hd .sc.on .pv { animation: hd-pv .8s cubic-bezier(.2,.8,.2,1) both; }
.oy-hd .tag { background: #FFFFFF; border: 1px solid rgba(11,31,51,0.5); border-radius: 10px; padding: 12px 14px; box-shadow: 0 18px 36px -24px rgba(11,31,51,.35); font-size: 12px; color: #2B2F36; }
.oy-hd .tag b { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #0B1F33; }
.oy-hd .pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 999px; background: #0B1F33; color: #FFFFFF; font-size: 15px; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; box-shadow: 0 22px 40px -18px rgba(11,31,51,.65); }
.oy-hd .ok { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; flex: 0 0 auto; }
.oy-hd .sc.on .ok { animation: hd-ok .4s cubic-bezier(.3,1.5,.6,1) both; }
.oy-hd .ln { display: block; height: 5px; border-radius: 3px; background: #DCE3EA; margin-top: 6px; }
.oy-hd .mdot { position: absolute; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: #5F6D7C; }
.oy-hd .ct.on .band { animation: hd-band .9s 1.1s cubic-bezier(.2,.7,.2,1) both; }
.oy-hd .ct.on .jv { animation: hd-jv .5s 1.8s ease both; }
.oy-hd .ct.on .row { animation: hd-row .5s ease both; }
@keyframes hd-pv { from { opacity: 0; transform: rotateY(-55deg) translateZ(-40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes hd-ok { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hd-band { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hd-jv { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hd-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
	.oy-hd { height: 380px; }
	.oy-hd .sc .pv:has(> .tag) { display: none; }
	.oy-hd .sc .pv:has(> .pill) { left: auto !important; right: 8px !important; top: auto !important; bottom: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.oy-hd .sc .pv, .oy-hd .sc.on .pv { opacity: 1; transform: none; }
}
.oy-section-claire { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.oy-section-claire > .alignwide > h2 + p, .is-style-section-argent > .alignwide > h2 + p { max-width: 880px; margin-top: 20px; }
.oy-section-claire > .alignwide > h2, .is-style-section-argent > .alignwide > h2 { max-width: 880px; }
.oy-publics { margin-top: 48px !important; gap: 40px var(--wp--preset--spacing--70); }
.is-style-section-sombre > .alignwide > h2 { max-width: 900px; }
.is-style-section-sombre > .alignwide > .wp-block-columns { margin-top: 32px; }

/* ---------- Page Méthode : section « Le bon prix » (bleu nuit) ---------- */
.oy-chapo-clair { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; }
.oy-surtitre-clair { margin-top: 56px !important; font-size: 14px; font-weight: 600; color: rgba(244, 245, 247, 0.7); }
.oy-definitions { margin-top: 16px !important; gap: 0 28px; }
.oy-definition { padding-bottom: 8px; }
.oy-definition > p { margin: 0; }
.oy-num { font-size: 13px; font-weight: 600; color: rgba(244, 245, 247, 0.7); }
.oy-def-titre { margin-top: 8px !important; font-size: 19px; line-height: 1.3; font-weight: 700; }
.oy-def-texte { margin-top: 8px !important; font-size: 15px; line-height: 1.55; }
.oy-conviction { margin-top: 48px !important; max-width: 820px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.oy-cas { margin-top: 48px !important; padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(244, 245, 247, 0.3); border-radius: 16px; background: rgba(244, 245, 247, 0.06); }
.oy-cas-cols { gap: 24px 64px; margin: 0; }
.oy-cas h3 { margin-top: 10px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.2; letter-spacing: 0; }
.oy-cas p { font-size: 16px; line-height: 1.6; }
.oy-cas .oy-num { font-size: 13px; }
.oy-cas .oy-lien-fort, .oy-bon-prix-fin { font-size: 15px; }
.oy-bon-prix-fin { margin-top: 32px !important; }
.oy-lien-souligne a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.is-style-section-argent > .alignwide > h2 { max-width: 900px; }

/* ---------- Page Dirigeants ---------- */
.oy-intro-liste { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.wp-block-list.oy-liste-questions { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.oy-liste-questions > li { padding: 18px 0; border-top: 1px solid rgba(11, 31, 51, 0.5); font-size: 17px; line-height: 1.55; }
.oy-liste-questions strong, .oy-etapes strong { color: var(--wp--preset--color--bleu-nuit); font-weight: 700; }
.oy-citation-bordure { margin: 32px 0 0; padding: 0 0 0 20px; border: 0; border-left: 3px solid var(--wp--preset--color--bleu-nuit); }
.oy-citation-bordure p { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }
.oy-charges .lev { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #0B1F33; color: #FFFFFF; font-size: 12px; }
.oy-charges .bar { transform-origin: left center; }
@keyframes ch-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ch-fade { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
	.oy-charges .bar { transform: scaleX(0); }
	.oy-charges .lev { opacity: 0; }
	.oy-charges.go .bar { animation: ch-grow 1s cubic-bezier(.2, .7, .2, 1) forwards; }
	.oy-charges.go .b1 { animation-delay: .2s; } .oy-charges.go .b2 { animation-delay: .5s; } .oy-charges.go .b3 { animation-delay: .8s; }
	.oy-charges.go .lev { animation: ch-fade .5s ease 1.4s forwards; }
}
.wp-block-table.oy-table { margin-top: 40px; }
.oy-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; table-layout: auto; }
.oy-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ardoise); padding: 0 24px 12px 0; border: 0; border-bottom: 1px solid #0B1F33; }
.oy-table td { padding: 16px 24px 16px 0; border: 0; border-bottom: 1px solid rgba(11, 31, 51, 0.5); vertical-align: top; }
.oy-table td:first-child { font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }
@media (max-width: 760px) {
	.oy-table table, .oy-table tbody, .oy-table tr, .oy-table td { display: block; width: auto; }
	.oy-table thead { display: none; }
	.oy-table tr { padding: 14px 0; border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
	.oy-table td { border: 0; padding: 2px 0; }
	.oy-table td:last-child { margin-top: 6px; font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }
}
.oy-situations { margin-top: clamp(56px, 8vw, 88px) !important; gap: 56px var(--wp--preset--spacing--70); }
.oy-situations h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.oy-situations > .wp-block-column:last-child { display: flex; flex-direction: column; gap: 48px; }
.oy-situation > * { margin-top: 0; }
.wp-block-list.oy-etapes { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.oy-etapes > li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(11, 31, 51, 0.5); font-size: 17px; line-height: 1.6; }
.oy-etapes > li:last-child { border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.oy-etapes > li::before { content: "0" counter(s); font-size: 13px; font-weight: 600; color: var(--wp--preset--color--ardoise); padding-top: 4px; }
.oy-etapes + p { margin-top: 20px; }
.oy-benefices { margin-top: 40px !important; gap: 32px; }
.oy-num-glace { color: var(--wp--preset--color--argent-glace); }
.oy-benefice .oy-def-titre { margin: 8px 0 6px !important; }
.oy-benefice .oy-def-texte { margin-top: 0 !important; font-size: 16px; line-height: 1.6; }
.oy-lien-fin { margin-top: 48px !important; max-width: 760px; }

/* ---------- Page Experts partenaires ---------- */
.oy-avantages { margin-top: 48px !important; gap: 32px 48px; }
.oy-avantage .oy-def-titre { margin: 0 0 6px !important; }

/* ---------- Page Nos territoires ---------- */
.oy-hero-cols.are-vertically-aligned-center { align-items: center; gap: 40px var(--wp--preset--spacing--70); }
.oy-chapo-court { max-width: 560px; }
.oy-note { margin-top: 16px !important; font-size: 16px; }
.oy-section-modes { padding-bottom: var(--wp--preset--spacing--60); }
.oy-section-modes h2, #villes h2 { max-width: 760px; }
.oy-modes { margin-top: 40px !important; gap: 24px; }
.oy-modes > .wp-block-column { display: flex; }
.oy-mode { flex: 1; border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.oy-mode > * { margin: 0; }
.oy-mode-sombre { background: var(--wp--preset--color--bleu-nuit); color: var(--wp--preset--color--blanc-casse); }
.oy-mode-sombre :where(h3, p, a) { color: var(--wp--preset--color--blanc-casse); }
.oy-mode-clair { background: var(--wp--preset--color--blanc); border: 1px solid rgba(11, 31, 51, 0.5); }
.oy-mode-k { margin-bottom: 12px !important; font-size: 14px; font-weight: 600; }
.oy-mode h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.oy-mode h3 + p { margin-top: 16px; }
.oy-mode .oy-lien-souligne { margin-top: 16px; font-size: 15px; }
.oy-mode .oy-lien-souligne a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
#villes .has-large-font-size { max-width: 680px; margin-top: 20px; }
.oy-villes { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.oy-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid #0B1F33; border-radius: 16px; background: #F4F5F7; color: #2B2F36; text-decoration: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.oy-card-avenir { background: transparent; border: 1px dashed rgba(11, 31, 51, 0.5); }
.oy-card-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.oy-card-ville { font-size: 24px; font-weight: 700; color: #0B1F33; }
.oy-card-tag { font-size: 12px; font-weight: 600; color: #0B1F33; }
.oy-card-avenir .oy-card-tag { color: #2B2F36; }
.oy-card-texte { font-size: 15px; line-height: 1.55; }
.oy-card-lien { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: #0B1F33; text-decoration: underline; text-underline-offset: 4px; }
a.oy-card:hover { background: #0B1F33; border-color: #0B1F33; text-decoration: none; }
a.oy-card:hover, a.oy-card:hover * { color: #F4F5F7; }
.oy-villes-fin { margin-top: 24px !important; font-size: 15px; }
.oy-secteurs { background: #FFFFFF; border: 1px solid rgba(11, 31, 51, 0.5); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.oy-secteurs p { margin: 0; }
.oy-secteurs-label { margin-bottom: 12px !important; font-size: 14px; font-weight: 600; color: #0B1F33; }
.oy-secteurs-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.oy-secteurs-choix button { min-height: 44px; padding: 0 16px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid rgba(11, 31, 51, 0.5); background: #FFFFFF; color: #0B1F33; }
.oy-secteurs-choix button[aria-pressed="true"] { border-color: #0B1F33; background: #0B1F33; color: #F4F5F7; }
.oy-secteurs-choix button:focus-visible { outline: 2px solid #0B1F33; outline-offset: 2px; }
.oy-secteurs-resultat { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(11, 31, 51, 0.5); }
.oy-sr-k { font-size: 13px; }
.oy-sr-titre { margin-top: 8px !important; font-size: 21px; font-weight: 700; color: #0B1F33; }
.oy-sr-texte { margin-top: 8px !important; font-size: 16px; line-height: 1.6; }
.oy-sr-actions { margin-top: 20px !important; }
.oy-faq-liens .wp-block-details a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.oy-sr-cta { box-sizing: border-box; }

/* ---------- Page Contact : étapes et formulaire (Contact Form 7, classe oy-form) ---------- */
.oy-hero-contact { padding-bottom: var(--wp--preset--spacing--60); }
.oy-hero-contact .oy-hero-cols { gap: 48px var(--wp--preset--spacing--70); }
.wp-block-list.oy-etapes-contact { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid rgba(11, 31, 51, 0.5); counter-reset: e; }
.oy-etapes-contact > li { counter-increment: e; display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(11, 31, 51, 0.5); font-size: 17px; font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }
.oy-etapes-contact > li::before { content: "0" counter(e); flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--graphite); padding-top: 3px; }
.oy-note-contact { margin-top: 28px !important; font-size: 15px; }
.wpcf7-form.oy-form { background: #FFFFFF; border: 1px solid rgba(11, 31, 51, 0.5); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 0; }
.oy-form p { margin: 0; }
.oy-form .hidden-fields-container { display: none; }
.oy-form .oy-full, .oy-form .wpcf7-response-output { grid-column: 1 / -1; }
.oy-form .wpcf7-form-control-wrap { display: block; }
.oy-form input[type="text"], .oy-form input[type="email"], .oy-form input[type="tel"], .oy-form textarea { display: block; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #5F6D7C; border-radius: 8px; font: inherit; font-size: 15px; color: #0B1F33; background: #FFFFFF; box-sizing: border-box; }
.oy-form textarea { padding: 12px 14px; resize: vertical; }
.oy-form input:focus, .oy-form textarea:focus { outline: 2px solid #0B1F33; outline-offset: 1px; }
.oy-form .oy-send { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #0B1F33; border-radius: 8px; background: transparent; color: #0B1F33; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.oy-form .oy-send:hover, .oy-form .oy-send:focus-visible { background: #0B1F33; color: #F4F5F7; }
.oy-form .wpcf7-spinner { vertical-align: middle; margin-left: 12px; }
.oy-form .wpcf7-not-valid { border-color: #0B1F33; border-width: 2px; }
.oy-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 600; color: #0B1F33; }
.wpcf7-form.oy-form .wpcf7-response-output { margin: 0; padding: 12px 14px; border: 1px solid #0B1F33; border-radius: 8px; font-size: 13px; color: #0B1F33; background: #F4F5F7; }
.wpcf7-form.oy-form.init .wpcf7-response-output { display: none; }
.oy-form a { font-weight: 600; text-decoration: underline; }

/* ---------- Pages légales (mentions légales, confidentialité) ---------- */
.oy-legal-page { padding-top: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: var(--wp--preset--spacing--60); }
.oy-legal { display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "tete toc" "corps toc"; gap: 32px 72px; align-items: start; }
.oy-legal > * { margin: 0 !important; }
.oy-legal-tete { grid-area: tete; }
.oy-legal-toc { grid-area: toc; position: sticky; top: 96px; }
.oy-legal-corps { grid-area: corps; max-width: 760px; }
@media (max-width: 960px) { .oy-legal { grid-template-columns: 1fr; grid-template-areas: "tete" "toc" "corps"; } .oy-legal-toc { position: static; } }
.oy-legal-intro { margin-top: 20px !important; max-width: 680px; font-size: 18px; line-height: 1.6; }
.oy-legal-toc-titre { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.wp-block-list.oy-toc { margin: 0; padding: 0; list-style: none; }
.oy-toc a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.oy-legal-section { padding: 32px 0; border-top: 1px solid rgba(11, 31, 51, 0.5); }
.oy-legal-section > * { margin: 0 0 14px; }
.oy-legal-section > :last-child { margin-bottom: 0; }
.oy-legal-section h2 { margin-bottom: 16px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.oy-legal-section p, .oy-legal-liste { font-size: 17px; line-height: 1.7; }
.oy-legal-liste { padding-left: 22px; }
.oy-legal-corps a { text-decoration: underline; text-underline-offset: 3px; }
.wp-block-table.oy-kv table { border-collapse: collapse; font-size: 17px; line-height: 1.6; }
.oy-kv td { border: 0; padding: 5px 24px 5px 0; vertical-align: top; }
.oy-kv td:first-child { width: 220px; font-weight: 600; color: var(--wp--preset--color--bleu-nuit); }
@media (max-width: 640px) { .oy-kv tr, .oy-kv td { display: block; width: auto !important; } .oy-kv td { padding: 0; } .oy-kv td:last-child { margin-bottom: 12px; } }
.oy-todo { background: var(--wp--preset--color--argent-glace); color: var(--wp--preset--color--bleu-nuit); padding: 1px 6px; border-radius: 4px; font-weight: 500; }

/* ---------- Menu mobile ---------- */
/* L'effet de flou de l'en-tête enfermerait le menu plein écran dans la hauteur de l'en-tête : on le retire quand le menu est ouvert. */
.oy-header:has(.is-menu-open), .wp-site-blocks > header:has(.is-menu-open) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.oy-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--blanc-casse) !important; color: var(--wp--preset--color--bleu-nuit) !important; padding: 16px 24px 24px !important; }
.oy-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
.oy-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.oy-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid rgba(11, 31, 51, 0.5); }
.oy-nav .is-menu-open .wp-block-navigation-item__content { padding: 14px 0 !important; font-size: 17px; font-weight: 600; color: var(--wp--preset--color--bleu-nuit) !important; }
/* Bouton « Fermer » : même place et même style que le bouton « Menu ». */
.oy-nav .is-menu-open .wp-block-navigation__responsive-container-close { display: inline-flex; top: -4px; right: 0; }
/* Bouton « Échanger avec un consultant » : visible seulement dans le menu mobile (sur ordinateur, il est à droite de l'en-tête). */
.oy-nav .oy-nav-cta { display: none; }
.oy-nav .is-menu-open .oy-nav-cta { display: block; border-bottom: 0; margin-top: 32px; }
.oy-nav .is-menu-open .oy-nav-cta .wp-block-navigation-item__content { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px !important; border: 1px solid var(--wp--preset--color--bleu-nuit); border-radius: 8px; font-size: 17px; font-weight: 600; text-align: center; }
/* Fil d'Ariane : liens assez hauts pour le doigt. */
.oy-breadcrumb a { display: inline-block; padding: 12px 0; }
