/* ==========================================================================
   Vestibule : base commune (jetons, typographie, boutons, en-tête, pied de page)
   Points de rupture repris de Framer : bureau ≥1200px, tablette 810–1199px, téléphone <810px.
   Les sections propres à chaque famille de pages vivent dans assets/css/sections/*.css.
   ========================================================================== */

:root {
	--vw-ink: #1E1A15;
	--vw-white: #FFFFFF;
	--vw-brume: #F2F3EF;
	--vw-ligne: #E2E5DE;
	--vw-gris: #6B7268;
	--vw-blue-100: #DFE9F3;
	--vw-blue-200: #AEC9E1;
	--vw-blue-400: #6C9DC9;
	--vw-blue-700: #194C9A;
	--vw-blue-800: #133974;
	--vw-navy: #0E2A55;
	--vw-navy-deep: #0A2043;
	--vw-yellow: #FFCE13;
	--vw-yellow-soft: #FFDA4D;
	--vw-jaune-pale: #FFF3C4;
	--vw-gold: #D1A910;
	--vw-amber: #8A6F0A;
	--vw-kaki: #799073;
	--vw-kaki-soft: #A7B9A1;
	--vw-sauge: #DDE5D8;
	--vw-kaki-fonce: #4A5E46;
	--vw-font: Manrope, "Manrope Placeholder", Arial, sans-serif;
	--vw-ease: cubic-bezier(.22, .8, .3, 1);
	--vw-max: 1080px;
	--vw-max-wide: 1160px;
	--vw-gutter: 32px;
	--vw-nav-h: 151px;

	/* Échelle typographique (bureau) */
	--vw-display: 72px;
	--vw-affirmation: 64px;
	--vw-hero-service: 56px;
	--vw-h1: 48px;
	--vw-h2: 34px;
	--vw-enonce: 32px;
	--vw-h3: 24px;
	--vw-lead: 22px;
}
@media (max-width: 1199.98px) {
	:root {
		--vw-display: 44px; --vw-affirmation: 48px; --vw-hero-service: 44px; --vw-h1: 38px; --vw-h2: 30px;
		--vw-enonce: 28px; --vw-h3: 22px; --vw-lead: 18px; --vw-nav-h: 64px; --vw-gutter: 32px;
	}
}
@media (max-width: 809.98px) {
	:root {
		--vw-display: 34px; --vw-affirmation: 36px; --vw-hero-service: 37px; --vw-h1: 30px; --vw-h2: 26px;
		--vw-enonce: 24px; --vw-h3: 20px; --vw-lead: 17px; --vw-gutter: 20px;
	}
}

/* ---------- Socle ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--vw-font); color: var(--vw-ink); background: var(--vw-white); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:where(p, h1, h2, h3, h4, h5, h6, figure, ul, ol, blockquote) { margin: 0; }
:where(h1, h2, h3, h4) { font-weight: 800; }
:focus-visible { outline: 3px solid var(--vw-yellow); outline-offset: 2px; }
.screen-reader-text, .vw-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.vw-main { display: block; }
.vw-content > * { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }
.is-layout-flow > * + *, .is-layout-constrained > * + * { margin-block-start: 0; }

/* ---------- Styles de texte (repris de Framer) ---------- */
.is-style-display, .has-display-font-size { font-size: var(--vw-display) !important; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; }
.is-style-affirmation, .has-affirmation-font-size { font-size: var(--vw-affirmation) !important; font-weight: 800; line-height: 1.05; letter-spacing: -0.022em; }
.has-heading-1-font-size { line-height: 1.08; letter-spacing: -0.01em; }
.has-heading-2-font-size { line-height: 1.15; letter-spacing: -0.005em; }
.has-heading-3-font-size { line-height: 1.3; }
.is-style-enonce, .has-enonce-font-size { font-size: var(--vw-enonce) !important; font-weight: 800; line-height: 1.28; letter-spacing: -0.012em; }
.is-style-lead, .has-lead-font-size { font-size: var(--vw-lead) !important; font-weight: 400; line-height: 1.45; }
.is-style-eyebrow, .has-eyebrow-font-size { font-size: 13px !important; font-weight: 700; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; }
.is-style-eyebrow { color: var(--vw-navy); }
.is-style-small, .has-small-font-size { font-size: 15px !important; line-height: 1.5; }
.is-style-small { color: var(--vw-gris); }
.has-heading-4-font-size { line-height: 1.3; letter-spacing: -0.01em; }
p { line-height: 1.6; }
p + p { margin-top: 20px; }
strong, b { font-weight: 700; }

/* ---------- Boutons ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-button__link, .vw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font: 700 16px/1 var(--vw-font); letter-spacing: 0.01em;
	padding: 14px 22px; border-radius: 8px; border: 0;
	background: var(--vw-yellow); color: var(--vw-ink); text-decoration: none; cursor: pointer;
	transition: background-color .25s ease, color .25s ease, box-shadow .3s ease, transform .3s var(--vw-ease);
}
.wp-block-button__link:hover, .vw-btn:hover { background: #FFD84A; transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(30, 26, 21, .55); }
.is-style-primaire .wp-block-button__link { background: var(--vw-blue-700); color: #fff; }
.is-style-primaire .wp-block-button__link:hover { background: var(--vw-blue-800); }
.is-style-contour .wp-block-button__link { background: transparent; box-shadow: inset 0 0 0 1px var(--vw-ink); color: var(--vw-ink); }
.is-style-contour .wp-block-button__link:hover { background: var(--vw-ink); color: #fff; }
.is-style-contour-clair .wp-block-button__link { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); color: #fff; }
.is-style-contour-clair .wp-block-button__link:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px #fff; }
.is-style-lien .wp-block-button__link { background: none; padding: 0; border: 0; border-radius: 0; color: var(--vw-blue-700); font-weight: 700; box-shadow: none; }
.is-style-lien .wp-block-button__link:hover { background: none; text-decoration: underline; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .wp-block-button__link, .vw-btn { transition: none; } }

/* ---------- Mise en page de section ---------- */
.vw-section { position: relative; width: 100%; padding: 96px var(--vw-gutter); }
.vw-inner { width: 100%; max-width: var(--vw-max); margin-inline: auto; }
.vw-inner-wide { width: 100%; max-width: var(--vw-max-wide); margin-inline: auto; }
@media (max-width: 809.98px) { .vw-section { padding-block: 64px; } }
.is-style-carte { background: var(--vw-white); border-radius: 16px; padding: 28px; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.vw-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .vw-header-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .vw-header-part { top: 46px; } }
.vw-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--vw-yellow); color: var(--vw-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.vw-skip:focus { top: 12px; }
.vw-nav { position: relative; z-index: 5; background: #fff; padding: 16px 32px 18px; display: flex; flex-direction: column; align-items: center; }
.vw-nav-bar { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.vw-nav-logo { display: flex; align-items: center; justify-content: center; width: 260px; height: 67px; }
.vw-nav-logo svg { width: 100%; height: 100%; display: block; }
.vw-nav-links { display: flex; align-items: center; gap: 28px; }
.vw-nav-item { position: relative; display: flex; align-items: center; gap: 5px; height: 36px; }
.vw-nav-link { position: relative; font: 700 16px/1 var(--vw-font); color: var(--vw-ink); padding: 10px 0; transition: color .2s ease; }
.vw-nav-link::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; border-radius: 2px; background: var(--vw-yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--vw-ease); }
.vw-nav-item.has-menu .vw-nav-link::before { right: -21px; }
.vw-nav-link.is-active::before, .vw-nav-item:hover .vw-nav-link::before, .vw-nav-item.is-open .vw-nav-link::before { transform: none; }
.vw-nav-item:hover .vw-nav-link, .vw-nav-item.is-open .vw-nav-link { color: var(--vw-blue-700); }
.vw-nav-caret { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.vw-nav-caret svg { transition: transform .2s ease; }
.vw-nav-cta { display: inline-flex; align-items: center; height: 36px; padding: 10px 18px; border-radius: 8px; background: var(--vw-blue-700); color: #fff; font: 700 16px/1 var(--vw-font); letter-spacing: .01em; transition: background-color .2s ease, transform .3s var(--vw-ease); }
.vw-nav-cta:hover { background: var(--vw-blue-800); transform: translateY(-1px); }
.vw-burger { display: none; }

/* Logo réduit au défilement (mécanisme repris de Dessins Diverso). */
@media (min-width: 1200px) {
	html.vw-shrink .vw-nav-logo { width: 190px; height: 49px; }
	html.vw-shrink .vw-nav-bar { gap: 6px; }
}
html.vw-anim .vw-nav-logo, html.vw-anim .vw-nav-bar { transition: width .3s ease, height .3s ease, padding .3s ease, gap .3s ease; }
@media (prefers-reduced-motion: reduce) { html.vw-anim .vw-nav-logo, html.vw-anim .vw-nav-bar { transition: none; } }

/* Tablette et téléphone : barre de 64px, logo centré, bouton Menu. */
@media (max-width: 1199.98px) {
	.vw-nav { padding: 14px 24px; }
	.vw-nav-bar { flex-direction: row; justify-content: center; gap: 0; min-height: 36px; }
	.vw-nav-logo { width: 140px; height: 36px; }
	html.vw-shrink .vw-nav-logo { width: 112px; height: 29px; }
	.vw-nav-links { display: none; }
	.vw-burger { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--vw-brume); color: var(--vw-ink); cursor: pointer; padding: 0; }
	.vw-burger-lines { position: relative; width: 18px; height: 12px; display: block; }
	.vw-burger-lines span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--vw-ease), opacity .2s ease, top .25s var(--vw-ease); }
	.vw-burger-lines span:nth-child(1) { top: 0; }
	.vw-burger-lines span:nth-child(2) { top: 5px; }
	.vw-burger-lines span:nth-child(3) { top: 10px; }
	.vw-burger[aria-expanded="true"] .vw-burger-lines span:nth-child(1) { top: 5px; transform: rotate(45deg); }
	.vw-burger[aria-expanded="true"] .vw-burger-lines span:nth-child(2) { opacity: 0; }
	.vw-burger[aria-expanded="true"] .vw-burger-lines span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
}

/* Panneau du menu (tablette, téléphone) */
.vw-drawer { position: fixed; left: 0; right: 0; top: var(--vw-nav-h, 64px); bottom: 0; z-index: 4; background: #fff; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 32px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .25s var(--vw-ease); }
.vw-drawer[hidden] { display: block; visibility: hidden; pointer-events: none; }
.vw-drawer.on { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
@media (min-width: 1200px) { .vw-drawer { display: none !important; } }
.vw-drawer-in { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.vw-drawer-card { background: var(--vw-brume); border-radius: 14px; padding: 6px 16px; }
.vw-drawer-services summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; font: 800 18px/1.2 var(--vw-font); cursor: pointer; }
.vw-drawer-services summary::-webkit-details-marker { display: none; }
.vw-drawer-services[open] summary svg { transform: rotate(180deg); }
.vw-drawer-services summary svg { transition: transform .2s ease; }
.vw-drawer-fam { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font: 800 12px/1.2 var(--vw-font); letter-spacing: .12em; text-transform: uppercase; color: var(--vw-gris); }
.vw-drawer-fam::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.vw-drawer-services ul { list-style: none; margin: 0 0 6px; padding: 0; }
.vw-drawer-services li a { display: block; padding: 10px 0; font: 700 16px/1.3 var(--vw-font); border-top: 1px solid rgba(30, 26, 21, .08); }
.vw-drawer-pages a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font: 700 16px/1 var(--vw-font); }
.vw-drawer-pages a + a { border-top: 1px solid rgba(30, 26, 21, .08); }
.vw-drawer-pages a[aria-current] span { box-shadow: inset 0 -3px 0 var(--vw-yellow); }
.vw-drawer-cta { display: flex; align-items: center; justify-content: center; height: 49px; border-radius: 10px; background: var(--vw-blue-700); color: #fff; font: 700 16px/1 var(--vw-font); }
html.vw-drawer-open { overflow: hidden; }

/* ---------- Menus déroulants (bureau), repris de vw-mega-style ---------- */
.vw-mega { display: none; }
@media (min-width: 1200px) {
	.vw-mega { display: block; position: fixed; left: 0; right: 0; top: var(--vw-nav-h, 151px); z-index: 60; background: #fff; border-bottom: 1px solid var(--vw-ligne); box-shadow: 0 30px 50px -30px rgba(30, 26, 21, .28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; color: var(--vw-ink); }
	.vw-mega[hidden] { display: block; }
	.vw-mega.on { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease; }
	.vw-mega .in { max-width: 1160px; margin: 0 auto; padding: 22px 32px 24px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px; align-items: start; }
	.vw-mega.vw-services .in { gap: 16px; }
	.vw-mega .card { background: var(--vw-brume); border-radius: 14px; padding: 14px; transition: background-color .3s ease, transform .35s var(--vw-ease); }
	.vw-mega .card:hover { background: var(--t); transform: translateY(-2px); }
	.vw-mega .card .tile { display: block; border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--c); }
	.vw-mega .card .shot { aspect-ratio: 4/3; border-radius: 6px; position: relative; overflow: hidden; background: var(--b); }
	.vw-mega .card .shot img { position: absolute; left: 14%; top: 18%; width: 100%; max-width: none; border-radius: 4px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
	.vw-mega .card ul { list-style: none; margin: 0; padding: 0 4px; }
	.vw-mega .card li + li { border-top: 1px solid rgba(30, 26, 21, .1); }
	.vw-mega .card li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px; font-size: 15px; font-weight: 700; color: var(--vw-ink); transition: padding-left .25s ease, color .2s ease; }
	.vw-mega .card li a::after { content: "→"; color: var(--vw-blue-700); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
	.vw-mega .card li a:hover { padding-left: 10px; color: var(--vw-blue-700); }
	.vw-mega .card li a:hover::after { opacity: 1; transform: none; }
	.vw-mega.vw-services .all { align-self: end; padding: 0 12px 8px; }
	.vw-mega .all { align-self: center; padding: 12px; font-size: 13px; font-weight: 700; color: var(--vw-blue-700); white-space: nowrap; }
	.vw-mega .all:hover { text-decoration: underline; }
	.vw-mega.vw-projets .in { grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 22px 32px 20px; }
	.vw-mega .door { position: relative; display: flex; flex-direction: column; height: 250px; padding: 16px; border-radius: 14px; overflow: hidden; background: var(--c); color: var(--k); transition: transform .4s var(--vw-ease), box-shadow .4s ease, background-color .4s ease, color .3s ease; }
	.vw-mega .door b { font-size: 17px; font-weight: 800; line-height: 1.2; }
	.vw-mega .door img { position: absolute; left: 16px; bottom: -30px; width: 130%; max-width: none; height: auto; border-radius: 8px 8px 0 0; box-shadow: 0 -10px 30px -16px rgba(0, 0, 0, .4); transition: transform .5s var(--vw-ease); }
	.vw-mega .door:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(14, 42, 85, .5); background: var(--t, var(--vw-blue-100)); color: var(--h, var(--vw-blue-700)); }
	.vw-mega .door:hover img { transform: translateY(-14px); }
	.vw-mega.vw-projets .foot { grid-column: 1/-1; display: flex; justify-content: flex-end; }
	.vw-mega.vw-projets .all { padding: 8px 12px 0; }
	.vw-mega.vw-apropos .in { grid-template-columns: 1.1fr .9fr; gap: 22px; padding: 22px 32px 24px; align-items: start; }
	.vw-mega .chaps { display: grid; gap: 2px; }
	.vw-mega .chap { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--vw-ink); transition: background-color .2s ease; }
	.vw-mega .chap:hover { background: var(--vw-brume); }
	.vw-mega .chap .sq { width: 14px; height: 14px; border-radius: 4px; margin-top: 5px; background: var(--c); }
	.vw-mega .chap .tx b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
	.vw-mega .chap .tx span { display: block; font-size: 14px; color: var(--vw-gris); line-height: 1.4; margin-top: 2px; }
	.vw-mega .feat { background: #F1ECE2; border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; color: var(--vw-ink); transition: transform .35s var(--vw-ease); }
	.vw-mega .feat:hover { transform: translateY(-2px); }
	.vw-mega .feat img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; display: block; }
	.vw-mega .feat .e { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--vw-blue-700); }
	.vw-mega .feat b { font-size: 16px; line-height: 1.3; font-weight: 800; }
	.vw-mega .feat .go { display: inline-block; background: var(--vw-yellow); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; justify-self: start; }
	.vw-mega.vw-apropos .foot { grid-column: 1/-1; display: flex; justify-content: flex-end; }
	.vw-mega.vw-apropos .all { padding: 4px 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .vw-mega, .vw-mega .card, .vw-mega .card li a, .vw-mega .door, .vw-mega .door img, .vw-mega .chap, .vw-mega .feat { transition: none; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.vw-footer { background: var(--vw-navy-deep); color: #fff; padding: 64px 32px 40px; display: flex; flex-direction: column; align-items: center; }
.vw-footer-in { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 40px; }
.vw-footer-cols { display: flex; gap: 64px; }
.vw-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 156px; }
.vw-footer-logo { display: block; width: 156px; height: 40px; }
.vw-footer-logo svg { width: 100%; height: 100%; display: block; }
.vw-footer p { margin: 0; }
.vw-footer-tag { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.vw-footer-slogan { font-size: 15px; line-height: 1.5; color: var(--vw-yellow); }
.vw-footer-col { display: flex; flex-direction: column; gap: 12px; }
.vw-footer-col a { font-size: 15px; line-height: 1.5; color: #fff; transition: color .2s ease; width: fit-content; }
.vw-footer-col a:hover { color: var(--vw-yellow); }
.vw-footer-h { font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.vw-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .6); }
.vw-footer-bottom, .vw-footer-bottom a { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.vw-footer-bottom a:hover { color: #fff; }
@media (max-width: 1199.98px) {
	.vw-footer-cols { flex-wrap: wrap; gap: 40px 48px; }
}
@media (max-width: 809.98px) {
	.vw-footer { padding: 64px 32px 40px; }
	.vw-footer-cols { display: grid; grid-template-columns: auto 1fr; gap: 64px 48px; }
	.vw-footer-brand, .vw-footer-services { grid-column: 1 / -1; }
	.vw-footer-bottom { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: start; }
	.vw-footer-bottom > :nth-child(1) { grid-column: 1; grid-row: 1; }
	.vw-footer-bottom > :nth-child(2) { grid-column: 2; grid-row: 1; }
	.vw-footer-bottom > :nth-child(3) { grid-column: 1; grid-row: 2; }
}

/* ---------- Apparitions au défilement (effets « appear » de Framer) ---------- */
html.vw-js .vw-appear { opacity: 0; transform: translateY(var(--vw-appear-y, 24px)); transition: opacity .6s ease var(--vw-delay, 0s), transform .7s var(--vw-ease) var(--vw-delay, 0s); }
html.vw-js .vw-appear.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.vw-js .vw-appear { opacity: 1; transform: none; transition: none; } }
