/* ==========================================================================
   Pages services (12 pages × FR/EN) : gabarit « Héros service » → « On regarde ça ensemble ».
   Couleurs de famille par la classe du body (vw-fam-concevoir | vw-fam-developper | vw-fam-attirer).
   Composants partagés définis ici : accordéon FAQ (.vw-faq > .vw-faq-col > details.vw-faq-item),
   réutilisable sur toute page (couleur du « + » : --vw-faq-plus).
   ========================================================================== */

/* ---------- Teintes de famille ---------- */
.vw-svc-page, .vw-fam-concevoir {
	--fam: #AEC9E1;          /* chemise, étagère */
	--fam-tint: #DFE9F3;     /* bandes Le besoin / Pourquoi */
	--fam-soft: #AEC9E1;     /* plaques, chiffres des étapes, carrés des tuiles */
	--fam-square: #0E2A55;   /* carrés des rangées Concrètement */
	--fam-text: #194C9A;     /* sur-titres, « + » de la FAQ, lien d'exemple, chevrons */
}
.vw-fam-developper { --fam: #FFCE13; --fam-tint: #FFF3C4; --fam-soft: #FFDA4D; --fam-square: #FFCE13; --fam-text: #8A6F0A; }
.vw-fam-attirer { --fam: #799073; --fam-tint: #DDE5D8; --fam-soft: #A7B9A1; --fam-square: #799073; --fam-text: #4A5E46; }

/* ---------- Héros service ---------- */
.vw-svc-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; padding: 64px 32px 56px; }
.vw-svc-hero-in { width: 100%; max-width: 1160px; display: flex; flex-direction: column; gap: 28px; }
.vw-svc-hero-sub { max-width: 440px; color: var(--vw-ink); }
.vw-roll-title { margin: 0; font-family: var(--vw-font); font-weight: 800; font-size: 56px; line-height: .98; letter-spacing: -.035em; color: var(--vw-ink); }
.vw-roll { display: inline-grid; height: 1em; line-height: 1; overflow: hidden; vertical-align: top; color: var(--vw-navy); padding-bottom: .08em; box-sizing: content-box; }
.vw-roll-w { grid-area: 1 / 1; white-space: nowrap; transform: translateY(112%); transition: transform .75s cubic-bezier(.22, .8, .3, 1); will-change: transform; }
.vw-roll-w.on { transform: none; }
.vw-roll-w.up { transform: translateY(-112%); }
@media (prefers-reduced-motion: reduce) { .vw-roll-w { transition: none; } }

/* ---------- Onglets des familles (Sous-menu projet) ---------- */
.vw-fam-bar { position: sticky; top: var(--vw-nav-h, 151px); z-index: 30; width: 100%; height: 72px; background: transparent; }
.admin-bar .vw-fam-bar { top: calc(var(--vw-nav-h, 151px) + 0px); }
.vw-fam-row { display: flex; align-items: stretch; gap: 4px; height: 72px; padding: 0 16px; overflow: hidden; }
.vw-fam-opt { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; height: 72px; padding: 0 16px; border-radius: 0 0 12px 12px; background: var(--c); color: var(--vw-ink); font: 700 16px/1.2 var(--vw-font); letter-spacing: -.01em; white-space: nowrap; transition: filter .3s ease; }
.vw-fam-opt.vw-fam-concevoir, .vw-fam-shelf.vw-fam-concevoir { --c: #AEC9E1; }
.vw-fam-opt.vw-fam-developper, .vw-fam-shelf.vw-fam-developper { --c: #FFCE13; }
.vw-fam-opt.vw-fam-attirer, .vw-fam-shelf.vw-fam-attirer { --c: #799073; }
a.vw-fam-opt:hover { filter: brightness(1.08); }
.vw-fam-opt .vw-w2 { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; white-space: pre; vertical-align: bottom; }
.vw-fam-opt.is-active { font-weight: 800; border-radius: 0 0 0 12px; padding-right: 14px; }
.vw-fam-opt.is-active .vw-w2 { max-width: none; opacity: 1; }
.vw-fam-shelf { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; height: 72px; margin-left: -5px; padding: 0 12px 0 16px; border-radius: 0 0 12px 0; background: var(--c); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vw-fam-shelf::-webkit-scrollbar { display: none; }
.vw-fam-tab { flex: 0 0 auto; display: flex; align-items: center; height: 38px; padding: 0 11px; border-radius: 999px; font: 600 14px/1 var(--vw-font); color: var(--vw-ink); white-space: nowrap; opacity: .78; transition: background-color .3s ease, opacity .3s ease, box-shadow .3s ease; }
.vw-fam-tab:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
.vw-fam-tab.is-current { opacity: 1; background: #fff; font-weight: 800; box-shadow: 0 6px 16px -10px rgba(14, 42, 85, .45); }
@media (prefers-reduced-motion: reduce) { .vw-fam-opt, .vw-fam-tab { transition: none; } }

/* ---------- Sections : cadre commun ---------- */
.vw-svc-sec { width: 100%; padding: 80px 32px; display: flex; flex-direction: column; align-items: center; }
.vw-svc-sec > * { width: 100%; max-width: 1160px; }
.vw-svc-tint { background: var(--fam-tint); }
.vw-svc-sec p { font-size: 17px; line-height: 1.6; }
.vw-svc-sec p + p { margin-top: 0; }
.vw-svc-sec :where(h2) { font-size: var(--vw-h2); line-height: 1.15; letter-spacing: -.005em; color: var(--vw-ink); }
.vw-svc-sec :where(h3) { font-size: var(--vw-h3); line-height: 1.3; color: var(--vw-ink); }
.vw-svc-head { display: flex; flex-direction: column; gap: 12px; }
.vw-svc-eyebrow { color: var(--fam-text) !important; line-height: 1.2 !important; }
.vw-svc-intro { max-width: 760px; }
.vw-svc-sec p.is-style-lead { font-size: var(--vw-lead); line-height: 1.45; }

/* Grilles deux colonnes (texte + visuel) */
.vw-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.vw-svc-col { min-width: 0; }
.vw-svc-text { display: flex; flex-direction: column; justify-content: center; align-self: start; }
.vw-svc-visual { position: relative; }
.vw-svc-photo { margin: 0; height: 380px; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(14, 42, 85, .28); position: relative; z-index: 1; }
.vw-svc-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }

/* Bouton « Démarrer un projet » (pastille) */
.vw-svc-btn .wp-block-button__link { border-radius: 999px; padding: 14px 24px; font-size: 16px; line-height: 1; letter-spacing: .01em; }

/* ---------- Lead service ---------- */
.vw-svc-lead .vw-svc-text { gap: 22px; }
.vw-svc-lead .vw-svc-lead-h { color: var(--vw-navy); }
.vw-svc-lead .wp-block-buttons { margin-top: 0; }
.vw-svc-grid-lead .vw-svc-photo { height: 440px; }

/* ---------- Le besoin + carrousel de questions ---------- */
.vw-svc-besoin { padding-bottom: 72px; }
.vw-svc-grid-besoin { margin-bottom: 36px; }
.vw-svc-text-besoin { gap: 16px; }
.vw-svc-besoin > .vw-svc-questions { max-width: none; width: calc(100% + 64px); margin-inline: -32px; }
.vw-svc-questions { overflow: hidden; padding: 4px 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.vw-svc-questions.is-dragging { cursor: grabbing; }
.vw-svc-qlist { display: flex; align-items: center; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; will-change: transform; }
.vw-svc-qlist li { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid rgba(14, 42, 85, .12); border-radius: 12px; font-size: 17px; line-height: 1.6; color: var(--vw-ink); white-space: nowrap; }
.vw-svc-qlist li::after { content: ""; flex: 0 0 auto; width: 18px; height: 18px; background: var(--fam-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .vw-svc-questions { overflow-x: auto; cursor: auto; scrollbar-width: none; } }

/* ---------- Concrètement : rangées photo + texte, plaque teintée, apparitions ---------- */
.vw-svc-concret .vw-svc-rows { display: flex; flex-direction: column; gap: 72px; padding-top: 56px; }
.vw-svc-row .vw-svc-text { gap: 12px; }
.vw-svc-row .vw-svc-text p { max-width: 520px; }
.vw-svc-sq::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 4px; background: var(--fam-square); flex: 0 0 auto; }
.vw-svc-plaque { height: 380px; }
.vw-svc-plaque::before { content: ""; position: absolute; left: 18px; top: 18px; width: 100%; height: 100%; border-radius: 16px; background: var(--fam-soft); z-index: 0; }
html.vw-js .vw-svc-anim .vw-svc-plaque::before { opacity: 0; transform: translate(-14px, -14px); transition: opacity .6s ease, transform .7s var(--vw-ease); }
html.vw-js .vw-svc-anim .vw-svc-photo { transform: translateY(24px); transition: transform .7s var(--vw-ease) .12s; }
html.vw-js .vw-svc-anim .vw-svc-anim-text { opacity: 0; transform: translateY(16px); transition: opacity .6s ease .12s, transform .7s var(--vw-ease) .12s; }
html.vw-js .vw-svc-anim.is-in .vw-svc-plaque::before, html.vw-js .vw-svc-anim.is-in .vw-svc-photo, html.vw-js .vw-svc-anim.is-in .vw-svc-anim-text { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html.vw-js .vw-svc-anim .vw-svc-plaque::before, html.vw-js .vw-svc-anim .vw-svc-photo, html.vw-js .vw-svc-anim .vw-svc-anim-text { opacity: 1; transform: none; transition: none; }
}

/* ---------- Comment ça se passe ---------- */
.vw-svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 36px; padding-top: 48px; }
.vw-svc-step { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 2px solid var(--vw-ink); align-self: start; }
.vw-svc-sec .vw-svc-num { color: var(--fam-soft); line-height: 1.05; letter-spacing: -.022em; }
.vw-svc-step p, .vw-svc-tile p, .vw-svc-notes p, .vw-svc-examples p { font-size: 15px; line-height: 1.5; }
.vw-svc-notes { padding-top: 22px; }
.vw-svc-sec .vw-svc-note { color: #6F665A; }

/* ---------- Respiration ---------- */
.vw-svc-respiration { width: 100%; height: 480px; overflow: hidden; }
.vw-svc-respiration .vw-svc-band-img { margin: 0; width: 100%; height: 100%; }
.vw-svc-respiration img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Pourquoi Vestibule Web ---------- */
.vw-svc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; padding-top: 32px; }
.vw-svc-tile { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 28px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(14, 42, 85, .06); }
.vw-svc-tile.vw-svc-sq::before { background: var(--fam-soft); }
.vw-svc-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 22px; }
.vw-svc-sec .vw-svc-example { color: var(--fam-text); }
.vw-svc-example a:hover { text-decoration: underline; }
.vw-svc-sec .vw-svc-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--vw-yellow); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .01em; color: var(--vw-ink); }

/* ---------- Questions fréquentes (composant partagé .vw-faq) ---------- */
.vw-faq { --vw-faq-plus: var(--fam-text, #194C9A); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; align-items: start; }
.vw-faq-col { min-width: 0; }
.vw-faq-item { border-top: 1px solid #E3DBCD; padding: 6px 0; margin: 0; }
.vw-faq-item > summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; list-style: none; cursor: pointer; font: 800 18px/1.3 var(--vw-font); color: var(--vw-ink); }
.vw-faq-item > summary::-webkit-details-marker { display: none; }
.vw-faq-item > summary::after { content: "+"; flex: 0 0 auto; color: var(--vw-faq-plus); font-size: 24px; font-weight: 600; line-height: 1; transition: transform .25s; }
.vw-faq-item[open] > summary::after { transform: rotate(45deg); }
.vw-faq-item > summary:focus-visible { outline: 3px solid var(--vw-yellow); outline-offset: 2px; }
.vw-faq-item > :not(summary) { max-width: 52ch; margin: 0; padding: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--vw-ink); }
.vw-faq-item > p + p { margin-top: -8px; }
.vw-svc-faq .vw-faq { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .vw-faq-item > summary::after { transition: none; } }

/* ---------- On regarde ça ensemble ---------- */
.vw-svc-cta { padding: 72px 32px; }
.vw-svc-cta-text { gap: 16px; align-self: stretch; }
.vw-svc-sec .vw-svc-cta-p { color: rgba(255, 255, 255, .82); }
.vw-svc-grid-cta .vw-svc-photo { height: 360px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }

/* ---------- Tablette et téléphone (< 1200px) : une colonne ---------- */
@media (max-width: 1199.98px) {
	.vw-roll-title { font-size: 45px; }
	.vw-svc-hero { min-height: 0; padding: 56px 32px 48px; }
	.vw-svc-hero-sub { max-width: 100%; }
	.vw-fam-bar { position: relative; top: 0; height: auto; z-index: 2; }
	.vw-fam-row { flex-wrap: wrap; align-items: center; gap: 6px; height: auto; padding: 12px 16px; overflow: visible; }
	.vw-fam-opt, .vw-fam-opt.is-active { height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
	.vw-fam-shelf { order: 100; flex: 0 0 100%; width: 100%; height: auto; margin: 2px 0 0; padding: 6px; gap: 4px; flex-wrap: wrap; border-radius: 12px; overflow: visible; }
	.vw-fam-tab { height: 36px; font-size: 13px; }
	.vw-svc-sec { padding: 64px 32px; }
	.vw-svc-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 28px; }
	.vw-svc-row { gap: 20px; }
	.vw-svc-photo, .vw-svc-plaque { height: 300px; }
	.vw-svc-grid-lead .vw-svc-photo { height: 320px; }
	.vw-svc-besoin { padding-bottom: 48px; }
	.vw-svc-grid-besoin { margin-bottom: 24px; }
	.vw-svc-concret .vw-svc-rows { gap: 40px; padding-top: 32px; }
	.vw-svc-plaque::before { width: calc(100% - 20px); }
	.vw-svc-plaque { margin-right: 0; }
	.vw-svc-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.vw-svc-respiration { height: 400px; }
	.vw-svc-tiles { grid-template-columns: minmax(0, 1fr); }
	.vw-faq { grid-template-columns: minmax(0, 1fr); }
	.vw-svc-cta { padding: 72px 32px; }
	.vw-svc-cta-text { align-items: center; }
	.vw-svc-cta-text > * { width: 100%; }
	.vw-svc-cta-text > .wp-block-buttons { width: auto; }
	.vw-svc-grid-cta .vw-svc-photo { height: 300px; }
}

/* ---------- Téléphone (< 810px) ---------- */
@media (max-width: 809.98px) {
	.vw-roll-title { font-size: 37px; }
	.vw-svc-hero { padding: 48px 20px 40px; }
	.vw-svc-hero-in { max-width: 340px; }
	.vw-svc-sec { padding: 48px 20px; }
	.vw-svc-besoin { padding-bottom: 48px; }
	.vw-svc-besoin > .vw-svc-questions { width: calc(100% + 40px); margin-inline: -20px; }
	.vw-svc-photo, .vw-svc-plaque { height: 240px; }
	.vw-svc-grid-lead .vw-svc-photo { height: 260px; }
	.vw-svc-plaque::before { width: 100%; }
	.vw-svc-laptop { width: 340px; max-width: 100%; height: 240px; }
	.vw-svc-laptop .vw-svc-photo { height: 191px; }
	.vw-svc-respiration { height: 300px; }
	.vw-svc-cta { padding: 72px 32px; }
	.vw-svc-grid-cta .vw-svc-photo { height: 220px; }
}
