/* ==========================================================================
   Gogy's Team — feuille de style principale
   Charte : KoniBlack (titres, avec parcimonie) + Noto Sans (texte)
   ========================================================================== */

@font-face { font-family: "Koni"; src: url("../fonts/koni-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("../fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --red: #ba2920;
  --red-deep: #9a1f18;
  --blue: #1f5ca4;
  --blue-deep: #17467e;
  --yellow: #f2bd38;
  --orange: #f48a34;
  --ink: #2b2929;
  --ink-soft: #4a4646;
  --muted: #6b6666;
  --cream: #fffbf5;
  --sand: #f6efe3;
  --white: #fff;
  --line: rgba(43, 41, 41, .14);

  --f-display: "Koni", "Arial Black", system-ui, sans-serif;
  --f-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 56px);
  --sec: clamp(88px, 11vw, 168px);
  --r-img: 28px;
  --r-card: 20px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 72px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; text-wrap: balance; }
.display, h1.display, h2.display {
  font-family: var(--f-display); font-weight: 900; letter-spacing: -.01em; line-height: .98;
}
.t-xxl { font-size: clamp(3rem, 9vw, 8.4rem); }
.t-xl { font-size: clamp(2.5rem, 6.2vw, 5.4rem); }
.t-l { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.t-m { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--muted); }
.prose { max-width: 40em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* Étiquette de section : le « cartouche » détouré de la charte */
.tag {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-display); font-size: 1.02rem; line-height: 1;
  padding: .62em 1.15em .58em; border: 2px solid currentColor; border-radius: 999px;
  margin-bottom: 26px; letter-spacing: .005em;
}
.tag--light { color: #fff; }

/* ---------- Structure ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--sand { background: var(--sand); }
.sec--ink { background: var(--ink); color: #fff; }
.sec--ink .lead, .sec--blue .lead { color: rgba(255,255,255,.78); }
.sec--blue { background: var(--blue); color: #fff; }
.sec-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 72px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head .lead { margin: 0; }
.sec-head--stack { grid-template-columns: 1fr; max-width: 900px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1rem;
  overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .55s var(--ease); border-radius: inherit;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 18px 40px -18px rgba(186, 41, 32, .7); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost::before { background: currentColor; }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px #fff; }
.btn--ghost:hover::before { background: #fff; }
.sec--sand .btn--ghost:hover, body .btn--ghost.on-light:hover { color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.sec--sand .btn--ghost:hover::before, body .btn--ghost.on-light:hover::before { background: var(--ink); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); }
.btn--yellow:hover { color: #fff; }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .94rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

.link {
  font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  padding-bottom: 3px; transition: background-size .45s var(--ease);
}
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- En-tête ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 80; height: var(--header-h);
  color: #fff; transition: transform .6s var(--ease), background-color .4s, color .4s, box-shadow .4s;
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.hdr__logo { flex: none; display: block; width: 132px; height: 54px; position: relative; }
.hdr__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
/* Logo détouré de blanc : lisible sur photo comme sur fond sombre */
.hdr__logo img, .ftr__logo img {
  filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff)
          drop-shadow(0 4px 14px rgba(0,0,0,.25));
}
.is-scrolled .hdr__logo img, .hdr--solid .hdr__logo img { filter: none; }
.hdr__nav { flex: 1; display: flex; justify-content: center; }
.hdr__nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-a {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .96rem; background: none; border: 0; cursor: pointer;
  transition: background-color .3s; white-space: nowrap;
}
.nav-a:hover, .nav-a[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.is-scrolled .nav-a:hover, .hdr--solid .nav-a:hover, .is-scrolled .nav-a[aria-expanded="true"], .hdr--solid .nav-a[aria-expanded="true"] { background: rgba(43,41,41,.07); }
.nav-a[aria-current="page"] { box-shadow: inset 0 0 0 2px currentColor; }
.nav-a svg { width: 12px; height: 12px; transition: transform .4s var(--ease); }
.nav-a[aria-expanded="true"] svg { transform: rotate(180deg); }
.hdr__cta { display: flex; align-items: center; gap: 10px; }
.hdr__tel { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: .95rem; padding: 0 10px; height: 44px; }
.hdr__tel svg { width: 18px; height: 18px; }
.is-scrolled .hdr, .hdr.is-scrolled, .hdr--solid {
  color: var(--ink); background: rgba(255, 251, 245, .9);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.menu-open { transform: none; }

/* Méga-menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; color: var(--ink);
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega__panel {
  background: var(--white); border-radius: 0 0 28px 28px; box-shadow: 0 40px 80px -40px rgba(43,41,41,.35);
  padding: 28px 0 34px; border-top: 1px solid var(--line);
}
.mega__grid { display: grid; gap: 18px; }
.mega__grid--5 { grid-template-columns: repeat(5, 1fr); }
.mega__grid--4 { grid-template-columns: repeat(4, 1fr); row-gap: 26px; }
.mega__col { min-width: 0; }
.mega__card { display: block; text-decoration: none; }
.mega__thumb { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--sand); margin-bottom: 12px; }
.mega__grid--4 .mega__thumb { aspect-ratio: 16 / 7; }
.mega__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__card:hover .mega__thumb img { transform: scale(1.06); }
.mega__title { font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mega__title svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-6px); transition: .4s var(--ease); color: var(--red); }
.mega__card:hover .mega__title svg { opacity: 1; transform: none; }
.mega__subs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.mega__subs a { text-decoration: none; font-size: .9rem; color: var(--muted); display: inline-block; padding: 3px 0; transition: color .25s, transform .35s var(--ease); }
.mega__subs a:hover { color: var(--red); transform: translateX(3px); }
.mega__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.mega-veil { position: fixed; inset: 0; background: rgba(43,41,41,.3); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.mega-veil.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Burger + menu mobile */
.burger { display: none; width: 50px; height: 50px; border-radius: 999px; border: 0; background: var(--red); color: #fff; cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 24px; } .burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mnav {
  position: fixed; inset: 0; z-index: 75; background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 20px) var(--gut) 32px; overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-io), visibility 0s .7s;
  display: flex; flex-direction: column;
}
.mnav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav__list > li { border-bottom: 1px solid rgba(255,255,255,.12); }
.mnav__list > li > a, .mnav__acc {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0;
  font-family: var(--f-display); font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.mnav__acc svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.mnav__acc[aria-expanded="true"] svg { transform: rotate(45deg); }
.mnav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.mnav__sub > ul { overflow: hidden; }
.mnav__acc[aria-expanded="true"] + .mnav__sub { grid-template-rows: 1fr; }
.mnav__sub a { display: block; padding: 8px 0; text-decoration: none; font-weight: 700; color: rgba(255,255,255,.8); }
.mnav__sub li:last-child a { padding-bottom: 20px; }
.mnav__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mnav__foot a:not(.btn) { color: rgba(255,255,255,.75); text-decoration: none; }
.mnav li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.mnav.is-open li { opacity: 1; transform: none; }
.mnav.is-open li:nth-child(2) { transition-delay: .05s; } .mnav.is-open li:nth-child(3) { transition-delay: .1s; }
.mnav.is-open li:nth-child(4) { transition-delay: .15s; } .mnav.is-open li:nth-child(5) { transition-delay: .2s; }
.mnav.is-open li:nth-child(6) { transition-delay: .25s; }
.mnav__sub li { opacity: 1; transform: none; }

@media (max-width: 1320px) {
  .hdr__tel span { display: none; }
  .hdr__in { gap: 16px; }
  .nav-a { padding: 0 11px; font-size: .92rem; }
}
@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .hdr__nav, .hdr__tel, .hdr__cta .btn { display: none; }
  .burger { display: block; }
  .hdr__in { justify-content: space-between; }
  .hdr__logo { width: 112px; height: 46px; }
  .menu-open .hdr { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Médias ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--sand); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--land { aspect-ratio: 3 / 2; }
.media--sq { aspect-ratio: 1; }
.media figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,251,245,.94); color: var(--ink);
  font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px;
}
[data-parallax] { will-change: transform; }
.media [data-parallax] { height: 118%; margin-top: -9%; }

/* ---------- Héro accueil ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,18,.55) 0%, rgba(20,18,18,.05) 34%, rgba(20,18,18,.2) 55%, rgba(20,18,18,.82) 100%);
}
/* Grands écrans : l'en-tête et le héro de l'accueil s'élargissent pour que le titre dégage la vidéo */
@media (min-width: 1600px) { body:has(.hero) .hdr .wrap, .hero__in.wrap { max-width: 1600px; } }
.hero__in { position: relative; width: 100%; padding-bottom: clamp(40px, 7vh, 88px); padding-top: calc(var(--header-h) + 60px); }
.hero__title { max-width: 8.6em; font-size: clamp(3rem, 7vw, 6.6rem); margin-bottom: clamp(24px, 3vw, 40px); text-shadow: 0 4px 40px rgba(0,0,0,.25); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.hero__intro { max-width: 34em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: rgba(255,255,255,.9); margin: 0 0 26px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 44px); padding: 0; margin: 0; list-style: none; }
.hero__meta li { display: grid; gap: 2px; }
.hero__meta b { white-space: nowrap; font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; font-weight: 900; }
.hero__meta span { font-size: .88rem; color: rgba(255,255,255,.78); max-width: 12em; line-height: 1.35; }
.hero__sound {
  position: absolute; right: var(--gut); top: calc(var(--header-h) + 18px); width: 46px; height: 46px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.6); background: rgba(0,0,0,.18); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.hero__sound svg { width: 18px; height: 18px; }

/* ---------- Héro pages internes ---------- */
.phero { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: min(78svh, 760px); display: flex; align-items: flex-end; }
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,18,.6), rgba(20,18,18,.15) 40%, rgba(20,18,18,.85)); }
.phero__in { position: relative; width: 100%; padding-top: calc(var(--header-h) + 80px); padding-bottom: clamp(44px, 6vw, 80px); }
.phero h1 { max-width: 13em; margin: 18px 0 22px; }
.phero .lead { color: rgba(255,255,255,.88); }
.phero__illu { position: absolute; right: var(--gut); bottom: clamp(24px, 4vw, 64px); width: clamp(120px, 16vw, 230px); filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.phero--plain { background: var(--cream); color: var(--ink); min-height: 0; }
.phero--plain .phero__in { padding-bottom: 32px; }
.phero--plain .lead { color: var(--ink-soft); }
@media (max-width: 760px) { .phero__illu { display: none; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; margin: 0; padding: 0; font-size: .88rem; font-weight: 700; }
.crumbs a { text-decoration: none; opacity: .75; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* Sous-navigation (ancres) */
.subnav { position: sticky; top: 0; z-index: 40; background: rgba(255,251,245,.92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: top .6s var(--ease); }
body:not(.hdr-hidden) .subnav { top: var(--header-h); }
.subnav__in { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 12px; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 9px 16px; border-radius: 999px;
  border: 2px solid var(--line); transition: background-color .3s, border-color .3s, color .3s;
}
.subnav a:hover { border-color: var(--ink); }
.subnav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Tracés (marquage au sol) ---------- */
.trace { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chevrons { display: inline-flex; gap: 6px; color: var(--yellow); }
.chevrons svg { width: 26px; height: 30px; }

/* ---------- Accueil : manifeste + chiffres ---------- */
.manifesto { font-family: var(--f-body); font-weight: 300; font-size: clamp(1.6rem, 3.3vw, 2.9rem); line-height: 1.28; letter-spacing: -.015em; max-width: 25em; margin: 0; }
.manifesto strong { font-weight: 700; }
.manifesto .w { opacity: .16; transition: opacity .2s; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 2px solid var(--ink); }
.figure { padding: 28px 28px 0 0; }
.figure + .figure { padding-left: 28px; border-left: 1px solid var(--line); }
.figure b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 14px; color: var(--red); }
.figure:nth-child(2) b { color: var(--blue); }
.figure:nth-child(3) b { color: var(--ink); }
.figure:nth-child(4) b { color: var(--orange); }
.figure p { margin: 0; font-size: .96rem; color: var(--ink-soft); max-width: 22em; }
@media (max-width: 900px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 520px) {
  .figures { grid-template-columns: 1fr; }
  .figure, .figure + .figure { padding-left: 0; border-left: 0; }
  .figure + .figure { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Accueil : savoir-faire (3 univers) ---------- */
.univers { border-top: 2px solid var(--ink); }
.univ {
  position: relative; display: grid; grid-template-columns: 90px 1.1fr 1fr 64px; gap: 32px; align-items: center;
  padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.univ__n { font-family: var(--f-display); font-size: 1.2rem; color: var(--muted); }
.univ__t { font-family: var(--f-display); font-size: clamp(2rem, 4.6vw, 4.2rem); line-height: 1; transition: color .4s, transform .6s var(--ease); }
.univ__d { color: var(--ink-soft); margin: 0; max-width: 30em; }
.univ__go { width: 64px; height: 64px; border-radius: 999px; border: 2px solid var(--ink); display: grid; place-items: center; transition: background-color .4s, color .4s, transform .6s var(--ease); }
.univ__go svg { width: 22px; height: 22px; }
.univ:hover .univ__t { color: var(--red); transform: translateX(10px); }
.univ:hover .univ__go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.univ__peek {
  position: absolute; right: 12%; top: 50%; width: clamp(220px, 22vw, 320px); aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(0, -50%) rotate(-4deg) scale(.85); transition: opacity .4s, transform .7s var(--ease); z-index: 2;
  box-shadow: 0 30px 60px -20px rgba(43,41,41,.45);
}
.univ__peek img { width: 100%; height: 100%; object-fit: cover; }
.univ:hover .univ__peek { opacity: 1; transform: translate(0, -50%) rotate(-4deg) scale(1); }
@media (hover: none), (max-width: 900px) { .univ__peek { display: none; } }
@media (max-width: 900px) {
  .univ { grid-template-columns: 1fr 52px; gap: 10px 20px; }
  .univ__n { display: none; }
  .univ__d { grid-column: 1; }
  .univ__go { grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 52px; }
}

/* ---------- Méthode : du plan à la réalisation ---------- */
.method { background: var(--blue); color: #fff; overflow: hidden; position: relative; }
.method__grid-bg {
  position: absolute; inset: 0; opacity: .22; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.method__head { position: relative; padding-top: var(--sec); }
.method__head h2 span { display: block; }
.method .lead { color: rgba(255,255,255,.82); }
.method__head h2 span + span { color: var(--yellow); padding-left: clamp(24px, 8vw, 140px); }
/* Les 5 étapes sur une seule rangée : tout est visible sans défilement horizontal */
.method__steps { list-style: none; margin: 0; padding: clamp(40px, 5vw, 64px) 0 var(--sec); display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2vw, 32px); position: relative; }
.method__steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: calc(clamp(40px, 5vw, 64px) + 21px); border-top: 3px dashed var(--yellow); transform-origin: left; transform: scaleX(var(--draw, 1)); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; }
.step__dot { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-size: 1.15rem; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 0 0 6px var(--blue); }
.step__media { aspect-ratio: 4 / 3; border-radius: var(--r-img); overflow: hidden; background: var(--blue-deep); position: relative; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__media--plan { background: #fff; }
.step__media--plan img { object-fit: contain; }
.step h3 { font-size: clamp(1.15rem, 1.5vw, 1.45rem); margin: 20px 0 8px; }
.step p { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }
@media (max-width: 1199px) {
  .method__steps { grid-template-columns: repeat(3, 1fr); row-gap: 48px; }
  .method__steps::before { display: none; }
}
@media (max-width: 760px) {
  .method__steps { grid-template-columns: 1fr; gap: 40px; }
  .step { max-width: 560px; }
}

/* ---------- Avant / après ---------- */
.ba-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ba-tabs button { border: 2px solid var(--line); background: none; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: border-color .3s, background-color .3s, color .3s; }
.ba-tabs button:hover { border-color: var(--ink); }
.ba-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.compare[hidden] { display: none; }
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-img); overflow: hidden; user-select: none; touch-action: pan-y; background: var(--sand); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.compare__knob {
  position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); pointer-events: none;
}
.compare__knob svg { width: 28px; height: 28px; }
.compare__lbl { position: absolute; top: 18px; font-weight: 700; font-size: .85rem; background: rgba(43,41,41,.78); color: #fff; padding: 7px 14px; border-radius: 999px; }
.compare__lbl--l { left: 18px; } .compare__lbl--r { right: 18px; background: var(--red); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 640px) { .compare { aspect-ratio: 4 / 3; } }

/* ---------- Réalisations (carrousel accueil) ---------- */
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px var(--gut) 24px; margin-inline: calc(var(--gut) * -1); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.pcard { flex: none; width: clamp(280px, 34vw, 480px); scroll-snap-align: start; text-decoration: none; display: block; }
.pcard:nth-child(3n+2) { width: clamp(260px, 26vw, 380px); }
.pcard__media { aspect-ratio: 4 / 5; border-radius: var(--r-img); overflow: hidden; position: relative; background: var(--sand); }
.pcard:nth-child(3n+2) .pcard__media { aspect-ratio: 3 / 4; margin-top: 48px; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__cat { position: absolute; left: 16px; top: 16px; background: rgba(255,251,245,.94); font-size: .8rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; }
.pcard h3 { margin: 18px 0 4px; font-size: 1.25rem; }
.pcard p { margin: 0; color: var(--muted); font-size: .94rem; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 56px; height: 56px; border-radius: 999px; border: 2px solid var(--ink); background: none; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.rail-nav button:hover { background: var(--ink); color: #fff; }
.rail-nav svg { width: 20px; height: 20px; }

/* ---------- Notre entreprise ---------- */
.company { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.company__bg { position: absolute; inset: 0; }
.company__bg { overflow: hidden; }
.company__bg img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.company__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,23,23,.92) 0%, rgba(25,23,23,.8) 62%, rgba(25,23,23,.35) 100%); }
.company__in { position: relative; display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 640px); gap: clamp(32px, 4vw, 64px); align-items: center; }
.company__txt { padding-block: var(--sec); }
.company__txt .prose { color: rgba(255,255,255,.86); }
.company__txt .prose strong { color: #fff; }
.company__mascot { grid-column: 1; grid-row: 1; justify-self: center; width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }
.company__txt { grid-column: 2; grid-row: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 18px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge b { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-family: var(--f-display); font-size: 1rem; }
.badge span { font-size: .92rem; line-height: 1.35; }
@media (max-width: 900px) {
  .company__in { grid-template-columns: 1fr; }
  .company__txt { padding-bottom: 0; }
  .company__mascot { grid-row: 2; width: 200px; justify-self: start; }
  .company__txt { grid-column: 1; }
  .company__bg::after { background: linear-gradient(180deg, rgba(25,23,23,.9), rgba(25,23,23,.75)); }
}

/* ---------- Bandeau défilant ---------- */
.marquee { overflow: hidden; border-block: 2px solid var(--ink); padding-block: 20px; background: var(--yellow); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 2.5rem); white-space: nowrap; line-height: 1.1; }
.marquee__item svg { width: 34px; height: 34px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Clients ---------- */
.clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 2px solid var(--ink); }
.client { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.client img { width: 64px; height: 56px; object-fit: contain; flex: none; }
.client b { display: block; font-size: 1.08rem; }
.client span { font-size: .9rem; color: var(--muted); }

.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo { background: var(--white); border-radius: var(--r-card); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 14% 16%; box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.logo { overflow: hidden; min-height: 0; }
.logo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.logo:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(43,41,41,.45); }
.logo--more { background: var(--red); color: #fff; text-align: center; align-content: center; gap: 6px; padding: 10%; }
.logo--more b { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.logo--more span { font-size: .88rem; line-height: 1.35; opacity: .9; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .logos { grid-template-columns: 1fr 1fr; } .logo--more { grid-column: span 2; aspect-ratio: auto; padding: 24px; } }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--ink); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--ink); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a > div { padding: 0 64px 26px 0; color: var(--ink-soft); max-width: 48em; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 32px; } .faq__a > div { padding-right: 0; } }
.faq__a ul { margin: 0 0 14px; padding-left: 1.2em; }
.faq__a li { margin: 4px 0; }

/* ---------- Page FAQ : recherche « Posez votre question » et catégories ---------- */
.ask { max-width: 860px; margin-bottom: 36px; }
.ask__label { display: block; font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 14px; }
.ask__field { position: relative; display: flex; align-items: center; }
.ask__field > svg { position: absolute; left: 22px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.ask__field input { width: 100%; min-height: 64px; padding: 0 60px 0 58px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font: inherit; font-size: 1.08rem; color: var(--ink); -webkit-appearance: none; appearance: none; }
.ask__field input::-webkit-search-cancel-button { display: none; }
.ask__field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(242,189,56,.55); }
.ask__clear { position: absolute; right: 12px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--sand); cursor: pointer; display: grid; place-items: center; }
.ask__clear svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.ask__status { min-height: 1.5em; margin: 12px 0 0 24px; color: var(--ink-soft); font-size: .95rem; }
.ask__pages { margin-bottom: 44px; }
.ask__pages ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ask__pages a { display: block; height: 100%; padding: 16px 20px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 1px 0 var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.ask__pages a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(43,41,41,.45); }
.ask__pages b { display: block; margin-bottom: 4px; }
.ask__pages span { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.ask__none { font-size: 1.05rem; }
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.faq-chips a { border: 2px solid var(--line); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: border-color .3s; }
.faq-chips a:hover { border-color: var(--ink); }
.faqcats { display: grid; gap: clamp(44px, 5vw, 64px); max-width: 960px; }
.faqcat { scroll-margin-top: calc(var(--header-h) + 20px); }
.faqcat__t { font-family: var(--f-display); font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin: 0 0 16px; }
.faqcat[hidden], .faq details[hidden], .faq-chips[hidden], .ask__pages[hidden], .ask__none[hidden], .ask__clear[hidden] { display: none; }
.faq-chips a, .ask__pages a { text-decoration: none; color: inherit; }
.faqcats.is-searching .faq { display: flex; flex-direction: column; }
.faq details mark { background: rgba(242,189,56,.55); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.contact__info { display: grid; gap: 26px; align-content: start; }
.contact__info dl { margin: 0; display: grid; gap: 22px; }
.contact__info dt { font-size: .88rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.contact__info dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.contact__info dd a { text-decoration: none; }
.contact__info dd a:hover { color: var(--red); }
.form { background: var(--white); border-radius: var(--r-img); padding: clamp(26px, 4vw, 52px); box-shadow: 0 1px 0 var(--line), 0 40px 80px -50px rgba(43,41,41,.35); position: relative; }
.sec--sand .form { box-shadow: none; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form__full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .9rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream); border: 2px solid transparent; border-radius: 14px;
  padding: 14px 16px; transition: border-color .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__err { color: var(--red); font-size: .85rem; font-weight: 700; min-height: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; justify-content: space-between; margin-top: 8px; }
.form__status { font-weight: 700; font-size: .95rem; }
.form__status.is-err { color: var(--red); }
.form .hp { position: absolute; left: -9999px; }
.form__done { display: none; text-align: left; }
.form.is-sent .form__grid, .form.is-sent .form__foot { display: none; }
.form.is-sent .form__done { display: block; }
.form__done img { width: 120px; margin-bottom: 18px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Pages catégories ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 80px); }
.feat:first-child { border-top: 0; padding-top: 0; }
.feat--rev .feat__media { order: 2; }
.feat__txt h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.02; margin-bottom: 20px; }
.feat__n { font-weight: 700; color: var(--red); display: block; margin-bottom: 12px; font-size: .95rem; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px; background: var(--yellow)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%232b2929' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.sec--ink .checks li::before, .sec--blue .checks li::before { background-color: var(--yellow); }
.feat__actions { margin-top: 30px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat--rev .feat__media { order: 0; } }

/* Visuel illustré quand pas de photo : échantillon de matière */
.swatch { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-img); overflow: hidden; display: grid; place-items: center; }
.swatch svg.tex { position: absolute; inset: 0; width: 100%; height: 100%; }
.swatch img { position: relative; width: 46%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.25)); }
.swatch figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(255,251,245,.94); font-size: .82rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; }

/* Cartes catégories (pages hub) */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.cat { grid-column: span 2; position: relative; display: flex; flex-direction: column; text-decoration: none; border-radius: var(--r-img); overflow: hidden; background: var(--white); box-shadow: 0 1px 0 var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.cat:nth-child(1), .cat:nth-child(2) { grid-column: span 3; }
.cat:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(43,41,41,.5); }
.cat__media { aspect-ratio: 16 / 10; overflow: hidden; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__body { padding: 24px 26px 28px; display: grid; gap: 10px; flex: 1; align-content: start; }
.cat__body h3 { font-family: var(--f-display); font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 900; }
.cat__body p { margin: 0; color: var(--muted); font-size: .96rem; }
.cat__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cat__subs span { font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: var(--sand); }
.cats--4 .cat, .cats--4 .cat:nth-child(1), .cats--4 .cat:nth-child(2) { grid-column: span 3; }
@media (min-width: 1100px) { .cats--4 { grid-template-columns: repeat(8, 1fr); } .cats--4 .cat, .cats--4 .cat:nth-child(1), .cats--4 .cat:nth-child(2) { grid-column: span 2; } }
@media (max-width: 900px) { .cats, .cats--4 { grid-template-columns: 1fr 1fr; } .cat, .cat:nth-child(1), .cat:nth-child(2), .cats--4 .cat, .cats--4 .cat:nth-child(1), .cats--4 .cat:nth-child(2) { grid-column: span 1; } }
@media (max-width: 600px) { .cats, .cats--4 { grid-template-columns: 1fr; } }

/* Engagements */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid currentColor; }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.sec:not(.sec--ink):not(.sec--blue) .pillar + .pillar { border-left-color: var(--line); }
.pillar img { width: 72px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; }
.pillar p { margin: 0; font-size: .95rem; opacity: .82; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; } }

/* Mosaïque photo */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.mosaic .media:nth-child(1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.mosaic .media:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; }
.mosaic .media:nth-child(3) { grid-column: span 5; aspect-ratio: 4 / 5; }
.mosaic .media:nth-child(4) { grid-column: span 7; aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .mosaic .media:nth-child(n) { grid-column: span 12; aspect-ratio: 4 / 3; } }

/* Bandeau CTA */
.cta { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-block: clamp(64px, 8vw, 120px); position: relative; z-index: 1; }
.cta h2 { max-width: 14em; }
.cta p { color: rgba(255,255,255,.85); margin: 18px 0 0; max-width: 36em; }
.cta__mascot { position: absolute; right: clamp(-40px, 2vw, 40px); bottom: -40px; width: clamp(160px, 18vw, 250px); opacity: .95; pointer-events: none; }
.cta .btns { position: relative; z-index: 2; }
@media (max-width: 1100px) { .cta__mascot { display: none; } }
@media (max-width: 900px) { .cta__in { grid-template-columns: 1fr; } }

/* ---------- Maintenance : parcours animé ---------- */
.cycle { position: relative; }
.cycle__svg { position: absolute; left: 50%; top: 0; height: 100%; width: 120px; transform: translateX(-50%); overflow: visible; }
.cycle__svg .bg { stroke: rgba(43,41,41,.12); stroke-width: 6; fill: none; stroke-linecap: round; }
.cycle__svg .fg { stroke: var(--red); stroke-width: 6; fill: none; stroke-linecap: round; }
.cycle__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(36px, 6vw, 72px); }
.cyc { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; }
.cyc__card { background: var(--white); border-radius: var(--r-card); padding: 28px 30px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -44px rgba(43,41,41,.4); }
.cyc:nth-child(odd) .cyc__card { grid-column: 1; }
.cyc:nth-child(even) .cyc__card { grid-column: 3; }
.cyc__dot {
  grid-column: 2; grid-row: 1; justify-self: center; width: 64px; height: 64px; border-radius: 18px; background: var(--cream);
  border: 3px solid var(--line); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.2rem; z-index: 1;
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease);
}
.cyc.is-on .cyc__dot { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-8deg) scale(1.08); }
.cyc__card h3 { margin-bottom: 8px; }
.cyc__card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.cyc__card .freq { display: inline-block; margin-top: 14px; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--sand); }
.cyc__img { grid-row: 1; width: 100%; max-width: 360px; aspect-ratio: 4/3; border-radius: var(--r-card); overflow: hidden; }
.cyc__img img { width: 100%; height: 100%; object-fit: cover; }
.cyc:nth-child(odd) .cyc__img { grid-column: 3; justify-self: start; }
.cyc:nth-child(even) .cyc__img { grid-column: 1; justify-self: end; }
.cyc__illu { grid-row: 1; width: 150px; }
.cyc:nth-child(odd) .cyc__illu { grid-column: 3; justify-self: start; margin-left: 20px; }
.cyc:nth-child(even) .cyc__illu { grid-column: 1; justify-self: end; margin-right: 20px; }
.cycle__mascot { position: absolute; left: 50%; top: 0; width: 70px; z-index: 2; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
@media (max-width: 860px) {
  .cycle__svg { left: 32px; }
  .cyc { grid-template-columns: 64px 1fr; gap: 0 18px; }
  .cyc__dot { grid-column: 1; }
  .cyc:nth-child(n) .cyc__card { grid-column: 2; }
  .cyc__img, .cyc__illu { display: none; }
  .cycle__mascot { left: 32px; width: 54px; }
}

/* Maintenance : analogie « bilan de santé » */
.hcs { display: grid; gap: 22px; }
/* Le bonhomme Gogy (côté aire de jeux) et le bonhomme médecin (côté santé) encadrent la comparaison */
.hcs-wrap { display: grid; grid-template-columns: clamp(110px, 12vw, 170px) minmax(0, 1fr) clamp(110px, 12vw, 170px); gap: clamp(16px, 2.5vw, 36px); align-items: center; }
.hcs__mascot { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(43,41,41,.22)); }
@media (max-width: 860px) {
  .hcs-wrap { grid-template-columns: 1fr 1fr; }
  .hcs-wrap .hcs { grid-column: 1 / -1; grid-row: 2; }
  .hcs__mascot { width: 110px; justify-self: center; }
}
.hc { background: var(--white); border-radius: var(--r-img); padding: clamp(22px, 3vw, 40px) clamp(20px, 4vw, 56px); --acc: var(--blue); }
.hc--complet { --acc: var(--red); }
.hc__head, .hc__row { display: grid; grid-template-columns: 1fr clamp(90px, 14vw, 180px) 1fr; align-items: center; gap: 0 20px; }
.hc__head { padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.hc__head h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.25rem, 2.2vw, 1.9rem); display: flex; align-items: center; gap: 14px; }
.hc__head .hc__l { justify-content: flex-end; text-align: right; }
.hc__vs { justify-self: center; font-weight: 700; font-size: .9rem; color: var(--muted); border: 2px solid var(--line); border-radius: 999px; padding: 4px 14px; background: var(--cream); }
.hc__ico { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--yellow); color: var(--ink); }
.hc__ico svg { width: 26px; height: 26px; }
.hc__ico--sante { background: var(--acc); color: #fff; }
.hc__rows { list-style: none; margin: 0; padding: 0; }
.hc__row { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hc__row:last-child { border-bottom: 0; padding-bottom: 0; }
.hc__row .hc__l { text-align: right; color: var(--ink); font-weight: 700; }
.hc__row .hc__r { color: var(--ink-soft); }
.hc__ecg { width: 100%; height: 26px; overflow: visible; }
.hc__ecg path { fill: none; stroke: var(--acc); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hc__legend { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: center; margin-top: 28px; font-size: .92rem; color: var(--ink-soft); }
.hc__legend span { display: inline-flex; align-items: center; gap: 10px; }
.hc__legend .hc__ico { width: 32px; height: 32px; border-radius: 10px; --acc: var(--ink); }
.hc__legend .hc__ico svg { width: 18px; height: 18px; }
.hc.is-beating .hc__ico--sante { animation: beat 1.4s var(--ease) infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.96); } 45% { transform: scale(1.08); } }
@media (max-width: 720px) {
  .hc__head { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .hc__head h3, .hc__head .hc__l { justify-content: center; text-align: center; }
  .hc__row { grid-template-columns: 1fr 64px 1fr; gap: 0 10px; font-size: .95rem; }
}

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offer { border-radius: var(--r-img); padding: 34px 32px 36px; display: grid; gap: 12px; align-content: start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.offer h3 { font-family: var(--f-display); font-weight: 900; font-size: 1.7rem; }
.offer p { margin: 0; color: rgba(255,255,255,.8); }
.offer .checks li { color: rgba(255,255,255,.9); }
.offer--hi { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.offer--hi p, .offer--hi .checks li { color: var(--ink-soft); }
.offer--hi .checks li::before { background-color: #fff; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr; } }

/* ---------- Histoire : frise ---------- */
.timeline { position: relative; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.tl { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; padding: 44px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tl__y { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: .9; color: var(--red); }
.tl:nth-child(2) .tl__y { color: var(--blue); } .tl:nth-child(3) .tl__y { color: var(--orange); } .tl:nth-child(4) .tl__y { color: var(--ink); }
.tl h3 { margin-bottom: 10px; font-size: 1.35rem; }
.tl p { margin: 0; color: var(--ink-soft); }
.tl .media { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .tl { grid-template-columns: 1fr; gap: 16px; } }

.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.value { background: var(--white); border-radius: var(--r-card); padding: 32px; display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; }
.value img { width: 84px; height: 72px; object-fit: contain; }
.value h3 { margin-bottom: 6px; }
.value p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } .value { grid-template-columns: 64px 1fr; padding: 24px; } .value img { width: 64px; } }

/* ---------- Réalisations : galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { border: 2px solid var(--line); background: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: .3s; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button span { opacity: .55; font-weight: 400; margin-left: 4px; }
/* Grille régulière, lue ligne par ligne, toutes les photos au même format */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 22px; }
.gitem { display: block; width: 100%; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; }
.gitem.is-hidden { display: none; }
.gitem__media { border-radius: var(--r-card); overflow: hidden; position: relative; background: var(--sand); }
.gitem__media { aspect-ratio: 4 / 3; }
.gitem__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gitem:hover .gitem__media img { transform: scale(1.04); }
.gitem__count { position: absolute; right: 14px; bottom: 14px; background: rgba(43,41,41,.8); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.gitem__count svg { width: 14px; height: 14px; }
.gitem__logo { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.gitem__logo img { display: block; height: 48px; width: auto; max-width: 110px; object-fit: contain; }
.gitem h3 { margin: 14px 0 2px; font-size: 1.15rem; }
.gitem p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(25,23,23,.96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px var(--gut); }
.lb__top h2 { font-size: 1.2rem; }
.lb__top p { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; }
.lb__stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; }
.lb__btn { width: 54px; height: 54px; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.lb__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.lb__btn svg { width: 20px; height: 20px; }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: var(--gut); } .lb__next { right: var(--gut); }
.lb__bottom { padding: 16px var(--gut) 22px; display: flex; justify-content: center; gap: 8px; }
.lb__dots button { width: 10px; height: 10px; border-radius: 3px; border: 0; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; }
.lb__dots button[aria-current="true"] { background: var(--yellow); width: 26px; }
.lb__dots { display: flex; gap: 8px; }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: -70px; transform: none; } .lb__bottom { padding-bottom: 90px; } }

/* ---------- Pied de page ---------- */
.ftr { background: var(--ink); color: rgba(255,255,255,.75); padding-top: clamp(64px, 8vw, 110px); position: relative; overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.ftr__logo { display: inline-block; margin-bottom: 20px; }
.ftr__logo img { width: 150px; height: auto; }
.ftr h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; transition: color .25s; }
.ftr a:hover { color: var(--yellow); }
.ftr address { font-style: normal; }
.ftr__big { font-family: var(--f-display); font-size: clamp(3rem, 12vw, 11rem); line-height: .8; color: rgba(255,255,255,.06); white-space: nowrap; margin: 0 0 -.12em; user-select: none; letter-spacing: -.01em; }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .86rem; color: rgba(255,255,255,.55); }
.ftr__bot ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__top > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr__top { grid-template-columns: 1fr; } }

/* ---------- Transitions de page ---------- */
.curtain { position: fixed; inset: 0; z-index: 300; background: var(--yellow); pointer-events: none; transform: translateY(100%); display: grid; place-items: center; }
.curtain img { width: 110px; opacity: 0; }
.is-leaving .curtain { transform: translateY(0); transition: transform .24s var(--ease-io); pointer-events: all; }
.is-leaving .curtain img { opacity: 1; transition: opacity .15s .08s; }
.is-entering .curtain { transform: translateY(0); }
.is-entering .curtain img { opacity: 1; }
.is-entered .curtain { transform: translateY(-100%); transition: transform .5s var(--ease-io); }

/* ---------- Curseur bonhomme Gogy (ordinateur uniquement) ----------
   La tête du bonhomme remplace la flèche ; les liens et boutons gardent la main, les champs le curseur texte. */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("/img/gogy-cursor.png") 5 3, auto;
    cursor: image-set(url("/img/gogy-cursor.png") 1x, url("/img/gogy-cursor@2x.png") 2x) 5 3, auto;
  }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea { cursor: text; }
}

/* ---------- Curseur « Voir » ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 999px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; transform: scale(0); transition: transform .45s var(--ease); }
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Apparitions (déclenchées par JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-clip] { clip-path: inset(12% 6% 12% 6% round 28px); }
.js [data-clip] img { transform: scale(1.18); }
.line-mask { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* Légal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .todo { background: #fff4d6; padding: 2px 6px; border-radius: 4px; }

/* ---------- Notre équipe ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.member { margin: 0; }
.member__photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--sand); display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo .member__illu { width: 46%; height: auto; object-fit: contain; opacity: .35; filter: grayscale(1); }
.member__soon { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--ink-soft); }
.member figcaption { margin-top: 14px; display: grid; gap: 2px; }
.member figcaption b { font-size: 1.08rem; }
.member figcaption span { color: var(--ink-soft); font-size: .92rem; }
.member mark.todo { background: #fff4d6; color: inherit; padding: 1px 6px; border-radius: 4px; font-weight: 400; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }

.notfound { min-height: 90svh; display: grid; place-items: center; text-align: center; padding: var(--header-h) var(--gut) 60px; }
.notfound img { width: 200px; margin: 0 auto 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
  .js [data-clip] img { transform: none; }
  .manifesto .w { opacity: 1; }
  .marquee__track { animation: none; }
}

/* Vignette illustrée (catégorie sans photo) */
.is-illu { display: grid; place-items: center; }
.is-illu img { object-fit: contain !important; width: 70% !important; height: 80% !important; }
.mega__card:hover .is-illu img, .cat:hover .is-illu img { transform: scale(1.06) rotate(-2deg); }
