/* MAVALO public site, after Adrien's mockups (V4 "Pop & mouvement") and the brand charter:
   Nuit, Terre, Green, Fuego; Montserrat for titles, Inter for text. Colours only through the tokens below. */

:root {
  --nuit: #0F223B;
  --terre: #225357;
  --green: #5EB592;
  --fuego: #FF8210;
  --mint: #EAF5F0;
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --text: #3B4D63;
  --error: #B42318;
  --line: rgba(15, 34, 59, .14);
  --edge: 2px solid var(--nuit);
  --lift: 4px 4px 0 var(--nuit);
  --lift-big: 6px 6px 0 var(--nuit);
  --title: Montserrat, system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--body); color: var(--nuit); background-color: var(--paper);
  background-image: radial-gradient(rgba(15, 34, 59, .13) 1.5px, transparent 1.5px); background-size: 24px 24px;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3 { font-family: var(--title); margin: 0; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
p { line-height: 1.65; margin: 0; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--fuego); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 16px; border: var(--edge); border-radius: 12px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

.w { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.g { display: grid; gap: 20px; }
.g2 { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.g3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.sec { padding: 110px 0; }
.sec.tight { padding: 60px 0 110px; }
.band { background: var(--mint); border-top: var(--edge); border-bottom: var(--edge); }

/* --- navigation ------------------------------------------------------------------------------------------------- */
.pill {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 2px;
  padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--white); border: var(--edge); box-shadow: var(--lift);
  white-space: nowrap; transition: box-shadow .2s;
}
.pill .logo { margin-right: 14px; display: flex; align-items: center; flex: none; }
.pill .logo img { height: 34px; width: auto; max-width: none; }
.pill .links { display: flex; align-items: center; gap: 2px; }
.m { position: relative; }
.m > a, .m > button { display: inline-flex; align-items: center; gap: 4px; padding: 12px 13px; font: 500 14px var(--body); border-radius: 999px; transition: background .2s; background: none; border: 0; color: inherit; cursor: pointer; }
.m > a:hover, .m > button:hover { background: rgba(15, 34, 59, .06); }
.m > a[aria-current="page"] { color: var(--terre); font-weight: 700; }
.dd {
  position: absolute; top: 48px; left: 0; width: 290px; background: var(--white); border: var(--edge); box-shadow: var(--lift);
  border-radius: 18px; padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.m:hover .dd, .m:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.dd a:hover { background: var(--mint); }
.pill .actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.pill .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; }

/* --- buttons ---------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--fuego); color: var(--nuit); font: 700 15px var(--body);
  padding: 15px 28px; border-radius: 999px; border: var(--edge); box-shadow: var(--lift); transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--nuit); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--nuit); }
.btn.o { background: var(--white); }
.btn.d { background: var(--nuit); color: var(--white); box-shadow: 4px 4px 0 var(--white); }
.btn.d:hover { box-shadow: 6px 6px 0 var(--white); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--lift); }
.buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* --- shared pieces ---------------------------------------------------------------------------------------------- */
.k { display: inline-block; background: var(--green); color: var(--nuit); padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--nuit); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h2 { font-size: 46px; line-height: 1.12; margin: 14px 0 48px; max-width: 860px; }
/* The stroke is painted under the fill, so only its outer half shows: no inner corners where glyph contours meet. */
.n { font-family: var(--title); font-weight: 700; font-size: 56px; line-height: 1; color: var(--fuego); -webkit-text-stroke: 4px var(--nuit); paint-order: stroke fill; stroke-linejoin: round; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; background: var(--white); color: var(--nuit); border: 1.5px solid var(--nuit); border-radius: 999px; padding: 6px 14px; }
.ar { display: inline-flex; align-items: center; gap: 6px; color: var(--terre); font-weight: 700; margin-top: 14px; padding-bottom: 2px; border-bottom: 3px solid var(--green); transition: transform .25s; }
.gl { display: block; background: var(--white); border: var(--edge); box-shadow: var(--lift-big); border-radius: 24px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
a.gl:hover, .gl.hover:hover { transform: translate(-4px, -4px) rotate(-.4deg); box-shadow: 10px 10px 0 var(--green); }
a.gl:hover .ar { transform: translateX(8px); }
.ph { position: relative; overflow: hidden; background: var(--terre); border: var(--edge); border-radius: 20px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph.ring::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(94, 181, 146, .75); right: -15%; top: -25%; animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.r { animation: up both linear; animation-timeline: view(); animation-range: entry 0% entry 40%; }

/* --- hero ------------------------------------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; min-height: 600px; display: flex; align-items: flex-end; }
.hero.home { min-height: 860px; }
.hero .w { width: 100%; padding-top: 190px; padding-bottom: 90px; z-index: 2; }
.hero h1 { font-size: 60px; line-height: 1.04; margin: 22px 0 24px; max-width: 720px; }
.hero.home h1 { font-size: 84px; max-width: 800px; }
.hero h1 em { font-style: normal; color: var(--terre); }
.hero .lead { font-size: 19px; max-width: 600px; color: var(--nuit); }
.rays {
  position: absolute; right: -8%; top: 50%; width: 900px; height: 900px; margin-top: -450px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 130, 16, .3) 0 8deg, transparent 8deg 24deg);
  -webkit-mask: radial-gradient(circle, transparent 16%, #000 17%, #000 68%, transparent 69%);
  mask: radial-gradient(circle, transparent 16%, #000 17%, #000 68%, transparent 69%); animation: spin 40s linear infinite;
}
.hero:not(.home) .rays { width: 620px; height: 620px; margin-top: -310px; }
.bulb { position: absolute; right: 12%; top: 50%; margin-top: -150px; z-index: 1; width: 230px; height: auto; animation: bob 3s ease-in-out infinite; }
.hero:not(.home) .bulb { right: 8%; width: 170px; margin-top: -110px; }
.fl { position: absolute; border-radius: 50%; border: var(--edge); animation: bob 4s ease-in-out infinite; }
.fl.a { width: 84px; height: 84px; background: var(--fuego); right: 27%; top: 13%; }
.fl.b { width: 44px; height: 44px; background: var(--green); right: 31%; bottom: 16%; animation-delay: -2s; }
.fl.c { width: 56px; height: 56px; background: var(--white); right: 4%; bottom: 18%; border-radius: 14px; animation-duration: 5s; animation-delay: -1s; }

/* --- marquee ---------------------------------------------------------------------------------------------------- */
.mq { overflow: hidden; white-space: nowrap; background: var(--fuego); border-top: var(--edge); border-bottom: var(--edge); transform: rotate(-1.6deg); margin: 50px -30px; padding: 16px 0; }
.mq > div { display: inline-flex; align-items: center; animation: slide 40s linear infinite; }
.mq span { font: 700 40px var(--title); margin: 0 20px; color: var(--nuit); display: inline-flex; align-items: center; gap: 40px; }
.mq .i { color: var(--white); width: 28px; height: 28px; }

/* --- rows (lists of services, commitments) ---------------------------------------------------------------------- */
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font: 500 26px var(--title); transition: padding .3s, color .3s; }
a.row:hover { padding-left: 18px; color: var(--terre); }
.row .i { color: var(--fuego); width: 26px; height: 26px; }
.row .n { font-size: 30px; margin-right: 24px; }

/* --- services bento --------------------------------------------------------------------------------------------- */
.bento { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 340px); }
.bento .gl { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.bento .gl:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.bento .gl:last-child { grid-column: 3 / 5; flex-direction: row; align-items: center; }
.bento .ph { flex: 1; min-height: 90px; margin-bottom: 22px; }
.bento .gl:last-child .ph { margin: 0 0 0 24px; align-self: stretch; flex: 0 0 46%; }
.bento h3 { font-size: 26px; margin: 12px 0 10px; }
.bento .gl:not(:first-child):not(:last-child) h3 { font-size: 21px; }
.bento p { font-size: 14px; max-width: 420px; }

/* --- sectors ---------------------------------------------------------------------------------------------------- */
.sectors { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.sector { display: flex; flex-direction: column; border-radius: 22px; }
.sector .ph { height: 150px; border-radius: 0; border-width: 0 0 2px; }
.sector .badge { width: 44px; height: 44px; border-radius: 50%; background: var(--terre); color: var(--green); display: grid; place-items: center; margin: -22px 0 12px 18px; position: relative; z-index: 3; border: 3px solid var(--white); }
.sector .badge .i { width: 20px; height: 20px; }
.sector .body { padding: 0 18px 22px; display: flex; flex-direction: column; flex: 1; }
.sector h3 { font-size: 22px; }
.sector .tag { font-size: 12.5px; color: var(--terre); font-weight: 600; margin: 10px 0 12px; }
.sector .body > p:not(.tag) { font-size: 12.5px; }
.ticks { margin: 14px 0 18px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; color: var(--text); }
.ticks .i { color: var(--green); }
.sector .more { margin-top: auto; align-self: flex-start; font-size: 12.5px; font-weight: 600; padding-bottom: 4px; border-bottom: 2px solid var(--green); display: inline-flex; gap: 6px; align-items: center; }
.sector .more.ink { border-color: var(--nuit); }
.sector .more.flame { border-color: var(--fuego); }

/* Sectors page: one wide card per sector, photo beside the text. */
.sector-wide { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: 28px; }
.sector-wide .ph { border-radius: 0; border-width: 0 2px 0 0; min-height: 360px; }
.sector-wide .body { padding: 40px; }
.sector-wide h3 { font-size: 32px; }
.sector-wide:nth-child(even) .ph { order: 2; border-width: 0 0 0 2px; }

/* --- method, values, cards ---------------------------------------------------------------------------------------- */
.step { padding: 30px; }
.step h3 { font-size: 19px; margin: 16px 0 8px; }
.step p { font-size: 14px; }
.step .promise { margin-top: 14px; font-weight: 600; color: var(--terre); }
.value { padding: 30px; }
.value h3 { font-size: 24px; margin: 18px 0 10px; }
.value .line { font-weight: 600; color: var(--terre); font-size: 15px; margin-bottom: 12px; }
.value p { font-size: 14px; }
.value blockquote { margin: 18px 0 0; font-style: italic; font-size: 14px; color: var(--nuit); }
.other { padding: 26px; }
.other .n { font-size: 38px; }
.other h3 { font-size: 19px; margin: 12px 0 4px; }
.quote { font-size: 36px; line-height: 1.25; margin-top: 20px; }

/* --- articles --------------------------------------------------------------------------------------------------- */
.post { display: flex; flex-direction: column; border-radius: 24px; }
.post .ph { height: 190px; border-radius: 0; border-width: 0 0 2px; }
.post .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post .meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text); }
.post h3 { font-size: 20px; line-height: 1.3; margin: 12px 0 10px; }
.post p { font-size: 14px; }
.post .ar { margin-top: auto; padding-top: 14px; align-self: flex-start; }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; border-radius: 30px; margin-bottom: 28px; }
.feature .ph { border-radius: 0; border-width: 0 2px 0 0; min-height: 380px; }
.feature .body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature h2 { font-size: 34px; line-height: 1.2; margin: 16px 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters a { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--nuit); background: var(--white); font-size: 14px; font-weight: 600; }
.filters a[aria-current="true"] { background: var(--nuit); color: var(--white); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.head-row .h2 { margin-bottom: 0; }

/* Article page: a readable column. */
.article-head { padding: 170px 0 50px; }
.article-head h1 { font-size: 48px; line-height: 1.12; max-width: 900px; margin: 20px 0; }
.article-cover { height: 460px; border-radius: 30px; box-shadow: var(--lift-big); }
.prose { max-width: 760px; margin: 70px auto 0; font-size: 17px; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--text); line-height: 1.75; }
.prose h2 { font-size: 30px; line-height: 1.25; margin-top: 2em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose strong { color: var(--nuit); }
.prose ul, .prose ol { padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; margin: .45em 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--nuit); }
.prose ol { counter-reset: n; list-style: none; }
.prose ol li { counter-increment: n; position: relative; padding-left: 44px; margin: .7em 0; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1em; width: 30px; height: 30px; border-radius: 50%; background: var(--fuego); border: var(--edge); font: 700 14px var(--title); color: var(--nuit); display: grid; place-items: center; }
.prose .note { background: var(--mint); border: var(--edge); border-radius: 18px; padding: 20px 24px; }
.prose .note p { color: var(--nuit); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; border: var(--edge); border-radius: 16px; overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.prose th { background: var(--nuit); color: var(--white); font-weight: 600; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 600 18px var(--title); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--fuego); transition: transform .2s; width: 22px; height: 22px; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }
.sources { font-size: 13px !important; margin-top: 3em !important; padding-top: 1.4em; border-top: 1px solid var(--line); }

/* --- call to action band ---------------------------------------------------------------------------------------- */
.cta { background: var(--fuego); border-radius: 36px; padding: 90px 72px; text-align: center; }
.cta .rays { right: -180px; top: -100px; margin: 0; width: 520px; height: 520px; opacity: .6; }
.cta h2 { font-size: 52px; line-height: 1.08; max-width: 820px; margin: 0 auto 20px; position: relative; color: var(--nuit); }
.cta p { max-width: 620px; margin: 0 auto 34px; position: relative; color: var(--nuit); }
.cta .btn { position: relative; }

/* --- forms ------------------------------------------------------------------------------------------------------ */
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 15px; border: var(--edge); border-radius: 14px; font: inherit; background: var(--white); color: var(--nuit); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: var(--lift); }
.field .err { color: var(--error); font-size: 13px; font-weight: 600; }
.hp { position: absolute; left: -5000px; }
.contact { grid-template-columns: 1fr 1fr; gap: 0; min-height: 100vh; }
.contact .ph { border-radius: 0; border-width: 0 2px 0 0; }
.contact form { padding: 150px 64px 80px; display: grid; gap: 20px; align-content: start; }
.contact h1 { font-size: 48px; margin: 14px 0 8px; }
.sent { background: var(--white); border: var(--edge); box-shadow: var(--lift-big); border-radius: 24px; padding: 32px; }
.sent h2 { font-size: 30px; margin: 14px 0 10px; }

/* --- footer ----------------------------------------------------------------------------------------------------- */
.foot { background: var(--nuit); color: var(--white); margin-top: 40px; border-top: var(--edge); }
.foot .w { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.foot img { height: 40px; width: auto; }
.foot .about { margin-top: 18px; max-width: 340px; }
.foot p, .foot a { color: rgba(255, 255, 255, .72); font-size: 14px; }
.foot a:hover { color: var(--white); }
.foot h3 { font: 600 13px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.foot li { padding: 5px 0; }
.foot .base { border-top: 1px solid rgba(255, 255, 255, .12); }
.foot .base .w { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.foot .base p { font-size: 13px; }
.foot .partner { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--white); font-weight: 600; border-bottom: 2px solid var(--fuego); padding-bottom: 2px; }

/* --- animations ------------------------------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.12); } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes up { from { opacity: 0; transform: translateY(48px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* --- smaller screens: the mockups are desktop only ---------------------------------------------------------------- */
@media (max-width: 1180px) {
  .pill .links .m > a, .pill .links .m > button { padding: 12px 9px; font-size: 13.5px; }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .hero.home h1 { font-size: 66px; }
}
@media (max-width: 1024px) {
  :root { --gutter: 28px; }
  .pill { left: 16px; right: 16px; transform: none; justify-content: space-between; padding: 8px 8px 8px 18px; }
  .pill .links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border: var(--edge); box-shadow: var(--lift); border-radius: 22px; padding: 10px; }
  .pill.open .links { display: flex; }
  .pill .links .m > a, .pill .links .m > button { width: 100%; padding: 14px; font-size: 16px; }
  .dd { position: static; width: auto; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 12px; }
  .pill .actions .btn.o { display: none; }
  .burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: var(--edge); background: var(--white); cursor: pointer; }
  .burger .i { width: 22px; height: 22px; }
  .pill .links .mobile-only { display: block; }
  .g2, .g3, .g4, .bento, .contact, .feature, .sector-wide, .foot .w { grid-template-columns: 1fr; }
  .g2 { gap: 44px; }
  .bento { grid-template-rows: none; }
  .bento .gl:first-child, .bento .gl:last-child { grid-column: auto; grid-row: auto; }
  .bento .gl { min-height: 300px; }
  .bento .gl:last-child { flex-direction: column-reverse; align-items: stretch; }
  .bento .gl:last-child .ph { margin: 0 0 22px; min-height: 160px; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .sector-wide .ph, .sector-wide:nth-child(even) .ph { order: 0; border-width: 0 0 2px; min-height: 240px; }
  .feature .ph, .contact .ph { border-width: 0 0 2px; min-height: 260px; }
  .contact form { padding: 40px var(--gutter) 70px; }
  .contact .ph { min-height: 320px; margin-top: 0; }
  .hero, .hero.home { min-height: 0; }
  .hero .w { padding-top: 150px; padding-bottom: 70px; }
  .hero h1, .hero.home h1 { font-size: 48px; }
  .bulb, .hero:not(.home) .bulb { width: 120px; right: 4%; top: 120px; margin-top: 0; opacity: .9; }
  .rays, .hero:not(.home) .rays { width: 520px; height: 520px; right: -200px; top: 130px; margin-top: 0; }
  .fl.a { right: 40%; top: 100px; width: 50px; height: 50px; }
  .fl.b, .fl.c { display: none; }
  .h2, .cta h2 { font-size: 34px; }
  .quote { font-size: 28px; }
  .sec { padding: 80px 0; }
  .cta { padding: 64px 28px; border-radius: 28px; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .article-head h1 { font-size: 36px; }
  .article-cover { height: 300px; }
  .foot .base .w { flex-direction: column; }
}
@media (min-width: 1025px) { .mobile-only { display: none !important; } }
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .pill .logo img { height: 28px; }
  .pill .actions .btn { padding: 10px 14px; font-size: 13px; }
  .hero h1, .hero.home h1 { font-size: 36px; }
  .hero .lead { font-size: 17px; }
  .bulb, .hero:not(.home) .bulb { display: none; }
  .rays, .hero:not(.home) .rays { opacity: .45; }
  .fl.a { display: none; }
  .sectors { grid-template-columns: 1fr; }
  .h2, .cta h2 { font-size: 28px; margin-bottom: 30px; }
  .row { font-size: 19px; }
  .row .n { font-size: 22px; margin-right: 14px; }
  .mq span { font-size: 26px; gap: 24px; margin: 0 12px; }
  .n { font-size: 44px; }
  .buttons .btn { width: 100%; justify-content: center; }
  .feature .body, .sector-wide .body { padding: 26px; }
  .contact h1 { font-size: 34px; }
  .prose { font-size: 16px; margin-top: 44px; }
  .prose h2 { font-size: 24px; }
  .article-head { padding-top: 130px; }
  .article-head h1 { font-size: 28px; }
}
.top { margin-top: 28px; }
.ph.tall { min-height: 560px; border-radius: 32px; }
.w.wide { max-width: 1400px; }
@media (max-width: 1024px) { .ph.tall { min-height: 340px; } }
.ticks.big li { font-size: 16px; padding: 7px 0; color: var(--nuit); font-weight: 500; }
.ticks.big .i { width: 20px; height: 20px; }
.activity p { font-size: 17px; }
.activity.flip .ph { order: -1; }
@media (max-width: 1024px) { .activity.flip .ph { order: 0; } }
.badge-inline { width: 48px; height: 48px; border-radius: 50%; background: var(--terre); color: var(--green); display: grid; place-items: center; border: var(--edge); margin-bottom: 16px; }
.badge-inline .i { width: 22px; height: 22px; }
.sector-wide .tag { font-size: 15px; color: var(--terre); font-weight: 600; margin: 10px 0 14px; }
/* Method page: steps in one left column, joined by a green thread (a dot per step, a segment down to the next). */
.timeline { list-style: none; padding: 0 0 0 100px; margin: 0; max-width: 1080px; }
.timeline > li { position: relative; margin-bottom: 28px; }
.timeline > li:last-child { margin-bottom: 0; }
.timeline .step { display: grid; grid-template-columns: 110px 1fr; align-items: start; gap: 10px; }
.timeline .step h3 { margin-top: 0; font-size: 24px; }
.timeline .step p { font-size: 16px; }
/* Top offsets line the dot up with the step number: card padding 30px + half the 56px number. */
.timeline .dot { position: absolute; left: -76px; top: 43px; width: 30px; height: 30px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--nuit); background: var(--green); box-shadow: 3px 3px 0 var(--nuit); z-index: 2; }
.timeline .thread { position: absolute; left: -63px; top: 58px; width: 4px; height: calc(100% + 28px); background: rgba(94, 181, 146, .3); border-radius: 4px; z-index: 1; }
.timeline .thread i { position: absolute; inset: 0; background: var(--green); border-radius: 4px; transform-origin: top; }
@keyframes thread-fill { from { transform: scaleY(0); } }
@keyframes dot-on { from { background: var(--white); transform: scale(.85); } }
/* Without scroll-driven animations, or with reduced motion, the thread simply shows full. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline .thread i { animation: thread-fill linear both; animation-timeline: view(); animation-range: cover 25% cover 45%; }
    .timeline .dot { animation: dot-on linear both; animation-timeline: view(); animation-range: cover 20% cover 26%; }
  }
}
@media (max-width: 640px) {
  .timeline { padding-left: 44px; }
  .timeline .dot { left: -44px; }
  .timeline .thread { left: -31px; }
  .timeline .step { grid-template-columns: 1fr; }
}
.g.stack { gap: 32px; }
.meta.lifted { margin-top: 28px; }
.contact-done { padding: 150px 64px 80px; display: grid; align-content: center; }
.fine { font-size: 13px; }
@media (max-width: 1024px) { .contact-done { padding: 40px var(--gutter) 70px; } }

/* --- orientation simulator -------------------------------------------------------------------------------------- */
.quiz { max-width: 920px; margin: 0 auto; padding: 44px; border-radius: 30px; scroll-margin-top: 110px; }
.quiz h2 { font-size: 32px; line-height: 1.2; margin: 26px 0 8px; outline: none; }
.quiz .hint { margin-bottom: 4px; }
.quiz-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--terre); }
.bar { height: 12px; border: var(--edge); border-radius: 999px; background: var(--mint); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--fuego); border-right: var(--edge); transition: width .35s; }
.opts { display: grid; gap: 14px; margin-top: 26px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 18px 20px; border: var(--edge); border-radius: 18px; background: var(--white); box-shadow: var(--lift); cursor: pointer; font: inherit; color: var(--nuit); transition: transform .15s, box-shadow .15s, background .15s; }
.opt:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--nuit); }
.opt b { font: 600 17px var(--title); }
.opt small { grid-column: 2; color: var(--text); font-size: 13px; margin-top: 2px; }
.opt .tick { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; border: var(--edge); display: grid; place-items: center; color: transparent; background: var(--white); }
.opt[aria-pressed="true"] { background: var(--mint); box-shadow: 4px 4px 0 var(--green); }
.opt[aria-pressed="true"] .tick { background: var(--fuego); color: var(--nuit); }
.quiz-form { display: grid; gap: 18px; margin-top: 26px; position: relative; }
.quiz-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.quiz-nav .btn[hidden] { display: none; }
.quiz .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border: var(--edge); border-radius: 16px; background: var(--white); color: var(--nuit); line-height: 1.55; }
.alert.warn { background: var(--paper); border-color: var(--fuego); box-shadow: 4px 4px 0 var(--fuego); }
.alert.ok { background: var(--mint); }
.alert.ok .i { color: var(--terre); width: 22px; height: 22px; margin-top: 1px; }
.picks { margin-top: 26px; gap: 22px; }
.pick { padding: 26px; }
.pick .n { font-size: 40px; }
.pick h3 { font-size: 22px; margin: 12px 0 8px; }
.pick p { font-size: 14px; }
.pick .why { margin-top: 10px; font-weight: 600; color: var(--terre); }
.center { text-align: center; margin: 26px auto 0; max-width: 760px; }
@media (max-width: 640px) {
  .quiz { padding: 24px 18px; border-radius: 22px; }
  .quiz h2 { font-size: 24px; }
  .opts.two { grid-template-columns: 1fr; }
  .quiz-nav .btn { flex: 1; justify-content: center; }
}

/* --- article blocks (website/_block.html) ------------------------------------------------------------------------ */
.prose .figure { margin: 2em 0; }
.prose .figure img { width: 100%; border-radius: 22px; border: var(--edge); box-shadow: var(--lift-big); }
.prose figcaption { margin-top: 12px; font-size: 14px; color: var(--text); text-align: center; }
.prose .pull { margin: 2em 0; padding: 26px 30px; background: var(--white); border: var(--edge); border-left: 8px solid var(--fuego); border-radius: 18px; }
.prose .pull p { font: 600 22px/1.45 var(--title); color: var(--nuit); }
.prose .pull cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--terre); font-weight: 600; }
.prose .note-title { font-weight: 700; color: var(--terre) !important; margin-bottom: 6px; }
.prose a:not(.ar) { color: var(--terre); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose .faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.prose .faq-item + .faq-item { margin-top: 0; }
.prose .faq-item:not(.faq-item + .faq-item) { margin-top: 1.4em; }
.prose .faq-item summary { cursor: pointer; font: 600 18px var(--title); list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--nuit); }
.prose .faq-item summary::-webkit-details-marker { display: none; }
.prose .faq-item summary .i { color: var(--fuego); transition: transform .2s; width: 22px; height: 22px; }
.prose .faq-item[open] summary .i { transform: rotate(45deg); }
.prose .faq-item p { margin-top: 10px; }
.prose .table-wrap { overflow-x: auto; border: var(--edge); border-radius: 16px; }
.prose .table-wrap table { border: 0; border-radius: 0; display: table; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--text); }
.preview-banner { position: sticky; top: 0; z-index: 60; background: var(--fuego); color: var(--nuit); border-bottom: var(--edge); text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; }
.preview-banner a { text-decoration: underline; }
.lead-article { font-size: 19px; max-width: 760px; margin-bottom: 34px; color: var(--nuit); }
@media (max-width: 640px) { .lead-article { font-size: 17px; } }

/* --- CEE simulator: the partners' simulator in the page, the fiches' index below it -------------------------------- */
.m > a.hot { background: var(--fuego); border: 1.5px solid var(--nuit); font-weight: 700; }
.m > a.hot:hover { background: var(--fuego); box-shadow: 2px 2px 0 var(--nuit); }
.sim-head .w { padding-top: 150px; padding-bottom: 36px; }
.sim-head h1 { font-size: 56px; line-height: 1.05; margin: 20px 0 16px; max-width: 900px; }
.sim-head h1 em { font-style: normal; color: var(--terre); }
.sim-head .lead { font-size: 19px; max-width: 720px; color: var(--nuit); }
.sim-body { padding-bottom: 40px; }
.fiche-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fiche-index details { background: var(--white); border: var(--edge); border-radius: 18px; padding: 16px 20px; }
.fiche-index summary { cursor: pointer; font: 600 18px var(--title); display: flex; justify-content: space-between; gap: 12px; }
.fiche-index summary span { font: 500 13px var(--body); color: var(--text); }
.fiche-index ul { margin-top: 12px; max-height: 340px; overflow-y: auto; }
.fiche-index li a { display: block; padding: 7px 0; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); }
.fiche-index li a:hover { color: var(--terre); }
.fiche-index li b { color: var(--nuit); margin-right: 6px; font-weight: 700; }
@media (max-width: 1024px) { .sim-head h1 { font-size: 40px; } .fiche-index { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .sim-head .w { padding-top: 120px; } .sim-head h1 { font-size: 32px; } .sim-head .lead { font-size: 17px; } }
