/* ==========================================================================
   Fair Play Events — feuille de style
   Couleurs reprises du logo : orange #F59E30 · vert #2CA94D · gris #90918E
   ========================================================================== */

/* Polices hébergées sur le site (aucune requête vers Google) : Fraunces et Manrope, licence SIL Open Font License 1.1 (voir OFL-*.txt). */
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('../fonts/fraunces-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 500; font-display: swap; src: url('../fonts/fraunces-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/fraunces-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/fraunces-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/manrope-normal-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/manrope-normal-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Couleurs du logo */
  --orange: #F59E30;
  --green: #2CA94D;
  --grey-logo: #90918E;
  /* Variantes lisibles sur fond clair (contraste ≥ 4,5:1) */
  --orange-text: #9A5A08;
  --green-text: #1F7A39;

  --ink: #16181d;
  --ink-2: #20232a;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --white: #fffdf9;
  --text: #2b2e35;
  --muted: #6b6d72;
  --line: rgba(22, 24, 29, .12);
  --line-light: rgba(255, 255, 255, .14);

  --accent: var(--orange);
  --accent-text: var(--orange-text);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --radius: 6px;

  /* Mouvement : une seule famille de courbes et de durées */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .1);
  --dur-hover: 250ms;
  --dur-ui: 400ms;
  --dur-reveal: 900ms;
  --stagger: 45ms;
}

[data-accent="green"] { --accent: var(--green); --accent-text: var(--green-text); }
.section-ink[data-accent="green"] { --accent-text: #5BCB78; }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding: 82px 0 12px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
/* <picture> ne sert qu'à proposer WebP / AVIF : sans boîte, l'image garde exactement la même mise en page */
picture { display: contents; }
source { display: none; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
button { font: inherit; }
::selection { background: var(--orange); color: var(--ink); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 16px; }

:root { --focus: var(--ink); }
.site-header, .hero, .section-ink, .services, .newsletter, .site-footer, .lightbox, .to-top, .skip-link, .page-hero, .cta-band { --focus: var(--orange); }
.site-header.is-scrolled { --focus: var(--ink); }
.nav-open .site-header { --focus: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.site-header:not(.is-scrolled) :focus-visible { box-shadow: 0 0 0 3px var(--ink); }
.to-top:focus-visible { outline-offset: 0; box-shadow: 0 0 0 6px var(--ink), 0 14px 30px -12px rgba(0, 0, 0, .5); }
.skip-link:focus-visible { outline-color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Logo (SVG vectorisé, animé)
   ========================================================================== */

.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo-fair { fill: var(--orange); }
.logo-events { fill: var(--green); }
.logo-tagline { fill: var(--logo-tag, var(--grey-logo)); }
.logo use, .logo-spark { transform-box: fill-box; transform-origin: 50% 100%; }
.logo-spark { transform-origin: 50% 50%; }

/* Intro : les lames « frappent », l'étincelle jaillit, les lettres arrivent, puis la Ola */
.logo.is-intro .logo-blade-o { animation: lg-strike-o 900ms var(--ease-out) 100ms both; }
.logo.is-intro .logo-blade-g { animation: lg-strike-g 900ms var(--ease-out) 180ms both; }
.logo.is-intro .logo-spark { animation: lg-spark 1200ms var(--ease-out) 600ms both; }
.logo.is-intro .logo-fair use { animation: lg-rise 800ms var(--ease-out) both; animation-delay: calc(450ms + var(--i) * var(--stagger)); }
.logo.is-intro .logo-events use { animation: lg-slide 850ms var(--ease-out) both; animation-delay: calc(800ms + var(--i) * var(--stagger)); }
.logo.is-intro .logo-tagline use { animation: lg-ola-in 1100ms var(--ease-out) both; animation-delay: calc(1350ms + var(--i) * 40ms); }

/* La Ola : chaque lettre du slogan se lève à tour de rôle */
.logo.is-waving .logo-tagline use { animation: lg-ola 1000ms var(--ease-in-out) both; animation-delay: calc(var(--i) * 40ms); }
.logo.is-waving .logo-spark { animation: lg-pulse 900ms var(--ease-out) both; }
.logo-header.is-waving .logo-fair use { animation: lg-hop 600ms var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }
.logo-header.is-waving .logo-events use { animation: lg-hop 600ms var(--ease-out) both; animation-delay: calc((var(--i) + 8) * 30ms); }

@keyframes lg-strike-o { from { opacity: 0; transform: translate(110px, -240px); } }
@keyframes lg-strike-g { from { opacity: 0; transform: translate(-110px, 240px); } }
@keyframes lg-spark {
  0% { opacity: 0; transform: scale(.1); }
  35% { opacity: 1; transform: scale(2.2); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes lg-pulse {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.9); }
}
@keyframes lg-rise { from { opacity: 0; transform: translateY(55%); } }
@keyframes lg-slide { from { opacity: 0; transform: translateX(-45%) skewX(-10deg); } }
@keyframes lg-ola-in {
  0% { opacity: 0; transform: translateY(70%); }
  45% { opacity: 1; transform: translateY(-38%); fill: var(--orange); }
  75% { transform: translateY(6%); }
  100% { opacity: 1; transform: none; }
}
@keyframes lg-ola {
  0%, 100% { transform: none; }
  30% { transform: translateY(-42%); fill: var(--orange); }
  55% { transform: translateY(5%); fill: var(--green); }
  80% { transform: none; }
}
@keyframes lg-hop { 40% { transform: translateY(-16%); } }

/* ---------- Typographie commune ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before {
  content: ""; width: 36px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.eyebrow-num {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 15px; letter-spacing: 0; color: var(--accent-text);
  order: -1;
}
.eyebrow-light { color: rgba(255, 255, 255, .8); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -.015em;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
}
.section-title-xl { font-size: clamp(44px, 7vw, 92px); letter-spacing: -.025em; }

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
}

/* Titres révélés mot à mot */
[data-split] .w, [data-split] .wi { display: inline-block; }
.js [data-split] .wi { opacity: 0; translate: 0 .45em; filter: blur(6px); transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--wi) * 60ms); }
.js [data-split].is-visible .wi { opacity: 1; translate: 0 0; filter: none; }

/* ---------- Boutons ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: color var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), translate var(--dur-hover) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--sweep, var(--green));
  transform: scaleX(0); transform-origin: right center;
  transition: transform 450ms var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:active { translate: 0 1px; }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-primary { background: var(--orange); color: var(--ink); --sweep: var(--green); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; --sweep: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; --sweep: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { color: #fff; }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 12px; }

/* ==========================================================================
   En-tête
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: #fff;
  transition: background var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), height var(--dur-ui) var(--ease-out);
}
html:not(.js) .site-header { position: absolute; }
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(247, 243, 236, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-nav { margin-left: auto; }

.brand { display: block; flex: none; text-decoration: none; }
.logo-header { width: auto; height: 50px; transition: height var(--dur-ui) var(--ease-out); }
.is-scrolled .logo-header { height: 42px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { display: flex; gap: clamp(16px, 1.6vw, 26px); }
.site-nav ul a {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; opacity: .88;
  transition: opacity var(--dur-hover);
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur-ui) var(--ease-out);
}
.site-nav ul a:hover, .site-nav ul a.is-active, .site-nav ul a[aria-current] { opacity: 1; }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after, .site-nav ul a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.nav-icon { display: none; }
.nav-cta { border-color: currentColor; color: inherit; letter-spacing: .06em; --sweep: var(--orange); }

.motion-toggle {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; margin-left: -8px; border-radius: 50%;
  border: 1px solid currentColor; background: none; color: inherit; cursor: pointer;
  opacity: .8; transition: opacity var(--dur-hover), color var(--dur-hover), border-color var(--dur-hover);
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { opacity: 1; color: var(--orange); border-color: var(--orange); }
.is-scrolled .motion-toggle:hover { color: var(--orange-text); }
.motion-toggle svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.motion-toggle .i-play, .motion-toggle[aria-pressed="true"] .i-pause { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }

/* Animations en pause à la demande du visiteur (WCAG 2.2.2) */
html.motion-paused { scroll-behavior: auto; }
.motion-paused .site-nav, .motion-paused .site-nav * { transition: none !important; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
.js.motion-paused .reveal, .js.motion-paused [data-stagger] > *, .js.motion-paused .event { opacity: 1; translate: none; }
.js.motion-paused [data-split] .wi { opacity: 1; translate: none; filter: none; }
.js.motion-paused .gallery-grid li { clip-path: none; }
.intro-done .hero-eyebrow, .intro-done .hero-intro, .intro-done .hero-actions, .intro-done .hero-ticker, .intro-done .hero-scroll, .intro-done .hero-media img, .intro-done .logo.is-intro * { animation: none; }
.motion-paused .hero-media img { translate: none; }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--ink); border-color: var(--orange); }

.nav-toggle {
  display: none; flex: none;
  width: 44px; height: 44px; margin-right: -10px;
  border: 0; background: none; color: inherit; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform var(--dur-ui) var(--ease-out), top var(--dur-ui) var(--ease-out);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ==========================================================================
   Accueil
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 clamp(120px, 17vh, 190px);
  background: var(--ink); color: #fff;
  overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%; height: 115%; object-fit: cover; object-position: 60% 50%;
  translate: 0 var(--hero-py, 0px);
  animation: hero-zoom 16s var(--ease-out) both;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 15, 19, .9) 0%, rgba(14, 15, 19, .6) 48%, rgba(14, 15, 19, .25) 100%),
    linear-gradient(0deg, rgba(14, 15, 19, .9) 0%, rgba(14, 15, 19, 0) 50%),
    linear-gradient(180deg, rgba(14, 15, 19, .6) 0%, rgba(14, 15, 19, 0) 24%);
}
@keyframes hero-zoom { from { scale: 1.12; } to { scale: 1; } }

/* Projecteur qui suit la souris (souris uniquement) */
@media (hover: none), (pointer: coarse) { .hero-spot { display: none; } }
.hero-spot {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px circle at var(--mx, 72%) var(--my, 40%), rgba(245, 158, 48, .22), transparent 62%),
    radial-gradient(900px circle at var(--mx, 72%) var(--my, 40%), rgba(44, 169, 77, .10), transparent 70%);
  mix-blend-mode: screen;
}

.hero-content { position: relative; }
.hero-eyebrow { animation: fade-up 900ms var(--ease-out) 200ms both; }
.hero-logo { width: min(100%, 880px); margin: 0 0 clamp(28px, 4vw, 44px); --logo-tag: #c4c5c1; }
.hero-intro {
  max-width: 600px; margin-bottom: 40px;
  font-size: clamp(17px, 1.5vw, 19px); line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  animation: fade-up 900ms var(--ease-out) 1700ms both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: fade-up 900ms var(--ease-out) 1900ms both; }

/* Bandeau défilant des prestations */
.hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(14, 15, 19, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-in 1200ms var(--ease-out) 2100ms both;
}
.ticker-track { flex: none; display: flex; align-items: center; }
.js .ticker-track { animation: marquee 48s linear infinite; }
.hero-ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 30px; padding-left: 30px;
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(17px, 1.6vw, 21px);
  color: rgba(255, 255, 255, .82); white-space: nowrap;
}
.ticker-track span::before {
  content: ""; width: 3px; height: 20px; border-radius: 2px;
  background: linear-gradient(var(--orange), var(--green));
  transform: skewX(-24deg);
}

.hero-scroll {
  position: absolute; right: var(--gutter); bottom: 96px;
  width: 26px; height: 44px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 20px;
  animation: fade-in 900ms var(--ease-out) 2300ms both;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--orange);
}
.js .hero-scroll span { animation: scroll-hint 2s var(--ease-out) infinite; }
@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-ink {
  --accent-text: var(--accent);
  background: var(--ink); color: rgba(255, 255, 255, .78);
  overflow: hidden; isolation: isolate;
}
.section-ink .section-title { color: #fff; }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 980px; }
.section-head-row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.section-head-row .eyebrow { margin: 0 0 8px; }
.section-ink .section-head-row { border-color: var(--line-light); }

/* ---------- Événementiel ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.split-main .section-title { margin-bottom: 36px; max-width: 12ch; }
.prose p { max-width: 62ch; }
.prose strong { color: var(--ink); }

.stat {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 48px; padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat-number {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(64px, 8vw, 108px); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 144;
  background: linear-gradient(100deg, var(--orange-text) 20%, var(--green-text) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 3ch;
}
.stat-label { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); color: var(--ink); }

.services {
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(22, 24, 29, .55);
}
.services-media { position: relative; aspect-ratio: 2 / 1; background: var(--ink-2); overflow: hidden; }
.services-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; scale: 1.08;
  transition: opacity 700ms var(--ease-out), scale 1600ms var(--ease-out);
}
.services-media img.is-active { opacity: 1; scale: 1; }
/* photos suivantes du diaporama : téléchargées seulement à l'approche du bloc (voir main.js) */
.js .services-media:not(.is-near) img:not(.is-active) { display: none; }
.services-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--ink) 0%, rgba(22, 24, 29, 0) 60%);
}
.services-body { padding: 8px clamp(28px, 3.5vw, 48px) clamp(32px, 4vw, 48px); }
.services-title {
  font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2;
  margin-bottom: 22px;
}
.services-list li {
  position: relative;
  display: flex; align-items: baseline; gap: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--line-light);
  font-size: 18px; font-weight: 500;
  color: rgba(255, 255, 255, .78);
  transition: padding-left var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out);
}
.services-list li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px;
  background: linear-gradient(var(--orange), var(--green));
  transform: skewX(-24deg) scaleY(0);
  transition: transform var(--dur-ui) var(--ease-out);
}
.services-list li.is-active { padding-left: 18px; color: #fff; }
.services-list li.is-active::before { transform: skewX(-24deg) scaleY(1); }
.services-num { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--orange); min-width: 22px; }

/* ---------- Galerie ---------- */

.gallery { background: var(--paper); padding: 0 0 clamp(84px, 11vw, 150px); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 260px);
  gap: 8px;
  padding: 0 8px;
}
.gallery-grid li { min-width: 0; }
.js .gallery-grid li { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-out); transition-delay: calc(var(--si, 0) * 70ms); }
.js .gallery-grid li.is-visible { clip-path: inset(-8px); }
.gallery-grid .g-a { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-h { grid-column: span 2; }
.gallery-item {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--ink); cursor: zoom-in; overflow: hidden; border-radius: 3px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: scale 1200ms var(--ease-out); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(22, 24, 29, .7), transparent 55%);
  opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
}
.gallery-cap {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2; color: #fff; text-align: left;
  opacity: 0; translate: 0 10px;
  transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out);
}
.gallery-item:hover img, .gallery-item:focus-visible img { scale: 1.06; }
.gallery-item:hover::after, .gallery-item:focus-visible::after,
.gallery-item:hover .gallery-cap, .gallery-item:focus-visible .gallery-cap { opacity: 1; translate: 0 0; }

/* ---------- Réalisations : frise ---------- */

.timeline { position: relative; --rail: 248px; }
.timeline-track {
  position: absolute; top: 0; bottom: 0; left: var(--rail); width: 2px; margin-left: -1px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.timeline-fill {
  position: absolute; inset: 0;
  background: linear-gradient(var(--orange), var(--green));
  transform-origin: top; transform: scaleY(var(--tp, 0));
}
.no-js .timeline-fill, html:not(.js) .timeline-fill { transform: none; }

.timeline-year {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0 48px;
  position: relative;
}
.timeline-label {
  position: sticky; top: calc(var(--header-h) + 32px);
  align-self: start;
  padding-top: 28px;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 5.5vw, 76px); line-height: 1; letter-spacing: -.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
.timeline-label::after {
  content: ""; display: block; width: 36px; height: 2px; margin-top: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.event {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0 28px 40px;
  border-bottom: 1px solid var(--line);
}
.js .event { opacity: 0; translate: 0 18px; transition: opacity 800ms var(--ease-out), translate 800ms var(--ease-out); transition-delay: calc(var(--si, 0) * 60ms); }
.js .event.is-visible { opacity: 1; translate: 0 0; }
.timeline-year:last-child .event:last-child { border-bottom: 0; }
.event::before {
  content: ""; position: absolute; left: -7px; top: 42px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--line);
  transition: background var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.event.is-passed::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 5px rgba(245, 158, 48, .18); }
.event.is-passed.is-green::before { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 5px rgba(44, 169, 77, .18); }
html:not(.js) .event::before { border-color: var(--orange); }

.event-photo {
  width: 132px; height: 132px; object-fit: cover; border-radius: 4px;
  background: var(--paper-2);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.event:hover .event-photo { transform: translateY(-4px) rotate(-1.5deg); box-shadow: 0 18px 30px -18px rgba(22, 24, 29, .55); }

.event-body { min-width: 0; padding-top: 2px; display: flex; flex-direction: column; align-items: flex-start; }
.event-body > * { width: 100%; }
.event-body > .event-pax { width: auto; }
.event-meta { order: -1; }
.event-photo { order: -1; }
.event-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange-text);
}
.event-meta > span:not(.event-date) { color: var(--muted); letter-spacing: .12em; }
.event-meta > span:not(.event-date)::before {
  content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 2px 0; border-radius: 50%;
  background: var(--green); vertical-align: middle;
}
.event-meta sup { font-size: .7em; letter-spacing: .05em; }
.event-title {
  font-family: var(--serif); font-size: clamp(21px, 2vw, 25px); line-height: 1.25;
  color: var(--ink); margin-bottom: 8px;
}
.event-text { color: var(--text); margin-bottom: 12px; max-width: 64ch; font-size: 16px; line-height: 1.65; }
.event-pax {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 4px 12px 4px 10px;
  border-radius: 999px; background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.event-pax::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM1 21c0-4.4 3.6-7 8-7s8 2.6 8 7zm17 0c0-2.5-.8-4.6-2.3-6 3.8.2 7.3 2.2 7.3 6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm7 0a3 3 0 1 0 0-6 3 3 0 0 0 0 6zM1 21c0-4.4 3.6-7 8-7s8 2.6 8 7zm17 0c0-2.5-.8-4.6-2.3-6 3.8.2 7.3 2.2 7.3 6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.event.is-hidden, .timeline-year.is-hidden { display: none; }

.timeline-more { display: flex; justify-content: center; margin-top: 48px; padding-left: var(--rail); }
.timeline-more .btn[hidden] { display: none; }

/* ---------- Clients : défilement ---------- */

.clients {
  margin-top: clamp(80px, 10vw, 130px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.clients-title {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 3.2vw, 40px); color: var(--ink);
  margin-bottom: 40px;
}
/* Logos clients : bandeau défilant en noir et blanc (deux rangées en sens opposés) */
.logo-marquee { position: relative; display: grid; gap: 14px; }
.logo-row {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track { flex: none; display: flex; align-items: center; min-width: 100%; }
.logo-track li {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 86px; padding: 0 clamp(26px, 3.4vw, 46px);
}
.logo-track img {
  /* hauteur imposée, largeur déduite des proportions (width/height du HTML) : marche aussi pour les SVG sans taille propre */
  display: block; height: var(--lh, 46px); width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15);
  opacity: .7;
  mix-blend-mode: multiply;
  transition: filter var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out);
}
.logo-track .logo-text {
  font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; white-space: nowrap;
  color: #5b5d63; transition: color var(--dur-ui) var(--ease-out);
}
.logo-track li:hover img { filter: none; opacity: 1; }
.logo-track li:hover .logo-text { color: var(--ink); }
/* défilement seulement une fois la copie créée par le script */
.js .logo-marquee.is-ready .logo-track { animation: marquee 75s linear infinite; }
.js .logo-marquee.is-ready .logo-row-reverse .logo-track { animation-direction: reverse; animation-duration: 85s; }
/* pause au survol, au focus clavier, par le bouton ou hors écran (spécificité supérieure à la règle d'animation) */
.js .logo-marquee.is-ready:is(:hover, :focus-within, .is-paused, .is-offscreen) .logo-track { animation-play-state: paused; }
.logo-track[aria-hidden="true"]:empty { display: none; }
/* sans script, mouvement réduit ou animations en pause : logos affichés à plat, sans copie */
html:not(.js) .logo-row, .motion-paused .logo-row { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
html:not(.js) .logo-track, .motion-paused .logo-track { flex-wrap: wrap; justify-content: center; min-width: 0; }
.motion-paused .logo-track[aria-hidden="true"], .motion-paused .marquee-toggle { display: none; }
.marquee-toggle {
  justify-self: center; margin-top: 8px;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer;
  transition: border-color var(--dur-hover), color var(--dur-hover);
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { border-color: var(--orange); color: var(--orange-text); }
.marquee-toggle svg { width: 16px; height: 16px; grid-area: 1 / 1; }
.marquee-toggle .i-play, .marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.clients-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Cartes « vous recommande » ---------- */

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out), opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
}
.card.is-tilting { transition: transform 120ms linear, box-shadow 600ms var(--ease-out), opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out); }
.card:hover { --ty: -6px; box-shadow: 0 34px 60px -30px rgba(22, 24, 29, .4); }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .22), transparent 45%);
  opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
}
.card:hover::after { opacity: 1; }
.card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1200ms var(--ease-out); }
.card:hover .card-media img { scale: 1.07; }
.card-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out);
}
.card:hover .card-media::after { transform: scaleX(1); }
.card-body { position: relative; z-index: 1; padding: 26px 26px 30px; font-size: 15px; line-height: 1.7; }
.card-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--ink); margin-bottom: 6px; }
.card-subtitle {
  font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 17px;
  color: var(--accent-text);
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.card-body p { margin: 0; }

.cards-dark .card { background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-light); }
.cards-dark .card-title { color: #fff; }
.cards-dark .card-subtitle { border-color: var(--line-light); }
.cards-dark .card-body { color: rgba(255, 255, 255, .74); }
.cards-dark .card:hover { box-shadow: 0 0 0 1px rgba(44, 169, 77, .55), 0 34px 60px -30px #000; }
.cards-dark .card::after { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .1), transparent 45%); }

/* ---------- Relations publiques ---------- */

.rp-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../../images/fonds/fond-relations-publiques-sport.jpg") center 30% / cover no-repeat;
  background-image: image-set(url("../../images/fonds/fond-relations-publiques-sport.webp") type("image/webp"), url("../../images/fonds/fond-relations-publiques-sport.jpg") type("image/jpeg"));
  filter: contrast(2.6) brightness(.55) saturate(.6);
  opacity: .35;
}
/* image téléchargée seulement à l'approche de la section (voir main.js) */
.js .rp-bg:not(.is-near) { background-image: none; }
.rp-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 24, 29, .2) 0%, var(--ink) 60%),
    radial-gradient(80% 60% at 80% 0%, rgba(44, 169, 77, .25), transparent 70%);
}

.rp-intro { max-width: 980px; }
.rp-intro .section-title { margin-bottom: 36px; }
.rp-lead {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3vw, 38px); line-height: 1.35; letter-spacing: -.01em;
  color: #fff; max-width: 26em;
}
.rp-lead strong { font-weight: 500; color: var(--green); }
/* « Fair Play Events » aux couleurs du logo : Fair Play en orange, Events en vert */
.name-logo .name-fair { color: var(--orange); }
.name-logo .name-events { color: var(--green); }

.rp-columns {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  margin-top: clamp(56px, 7vw, 90px);
  padding-top: 40px; border-top: 1px solid var(--line-light);
  font-size: 16px;
}
.rp-columns p { margin: 0; }
.rp-columns strong { color: #fff; }

/* La Ola : une tribune de supporters qui se lèvent à tour de rôle */
.ola {
  display: flex; justify-content: center; align-items: flex-end; gap: 7px;
  height: 70px; margin-top: clamp(64px, 8vw, 100px);
  overflow: hidden;
}
.ola span {
  position: relative; flex: none;
  width: 8px; height: 24px; border-radius: 4px 4px 1px 1px;
  background: var(--c, var(--green));
  opacity: .4;
}
.ola span::before {
  content: ""; position: absolute; left: 0; top: -11px;
  width: 8px; height: 8px; border-radius: 50%; background: inherit;
}
.js .ola span { animation: ola 3.2s var(--ease-in-out) infinite; animation-delay: calc(var(--i) * 45ms); }
.hero-ticker.is-offscreen .ticker-track,
.ola.is-offscreen span, .hero.is-offscreen .hero-scroll span { animation-play-state: paused; }
@keyframes ola {
  0%, 40%, 100% { translate: 0 0; opacity: .35; }
  12% { translate: 0 -20px; opacity: 1; }
  24% { translate: 0 -2px; opacity: .7; }
}

.rp-quote {
  margin: 36px 0 clamp(90px, 11vw, 140px);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3.4vw, 44px); line-height: 1.25;
  color: #fff; text-align: center;
}
.rp-quote::before, .rp-quote::after { color: var(--green); }
.rp-quote::before { content: "« "; color: var(--orange); }
.rp-quote::after { content: " »"; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
.contact-card, .newsletter {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 1px 0 var(--line);
}
.newsletter { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .8); isolation: isolate; }
.newsletter::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 48, .25), transparent 65%);
}
.newsletter::after {
  content: ""; position: absolute; z-index: -1; left: -140px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 169, 77, .22), transparent 65%);
}
.contact-title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; color: var(--ink); margin-bottom: 28px; }
.newsletter .contact-title { color: #fff; }
.contact-name { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 18px; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-size: 18px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list > li > svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--orange); }
.contact-list a:not(.btn) {
  text-decoration: none; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; min-width: 0;
  background: linear-gradient(90deg, var(--orange), var(--green)) 0 100% / 0 2px no-repeat;
  transition: background-size var(--dur-ui) var(--ease-out);
}
.contact-list a:not(.btn):hover, .contact-list a:not(.btn):focus-visible { background-size: 100% 2px; }

/* Adresse + carte */
.contact-address { display: grid !important; grid-template-columns: 22px minmax(0, .8fr) minmax(0, 1.3fr); gap: 16px; }
.address-block { display: grid; gap: 16px; align-content: start; justify-items: start; }
.btn-route { min-height: 40px; padding: 0 16px; }
.btn-route svg { width: 15px; height: 15px; }
.map { margin: 0; display: grid; gap: 8px; }
.map-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 4px;
  background: #f2efe9; box-shadow: 0 0 0 1px var(--line);
}
/* image affichée à sa taille réelle, centrée sur l'adresse : le texte du plan reste lisible */
.map-frame img { width: 100%; height: 100%; max-width: none; object-fit: none; object-position: 50% 50%; filter: saturate(.8); }
.map-pin { position: absolute; left: 50%; top: 50%; width: 30px; height: 39px; translate: -50% -100%; filter: drop-shadow(0 4px 6px rgba(22, 24, 29, .35)); }
.map-pin svg { display: block; width: 100%; height: 100%; }
.map-pin::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: rgba(245, 158, 48, .45); z-index: -1;
  animation: pin-pulse 2.4s var(--ease-out) infinite;
}
@keyframes pin-pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.map figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.map figcaption > a { font-weight: 600; color: var(--orange-text) !important; }
.map figcaption small { font-size: 11px; color: var(--muted); }
.map figcaption small a { color: inherit !important; font-weight: 400; }
.contact-list address { font-style: normal; line-height: 1.6; color: var(--ink); }
.copy-btn {
  margin-left: auto; flex: none;
  display: grid; place-items: center; width: 40px; height: 40px; margin-top: -6px;
  border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
  transition: color var(--dur-hover), border-color var(--dur-hover);
}
.copy-btn svg { width: 17px; height: 17px; }
.copy-btn:hover, .copy-btn:focus-visible { color: var(--orange-text); border-color: var(--orange); }
.contact-legal { margin-top: 28px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.contact-legal p:last-child { margin: 0; }
.contact-legal strong { color: var(--ink); letter-spacing: .02em; }

.form { display: grid; gap: 22px; }
.field { position: relative; display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.check), .field legend {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); padding: 0;
}
.field legend { margin-bottom: 10px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; height: 52px; padding: 0 2px;
  border: 0; border-bottom: 1px solid rgba(255, 255, 255, .55); border-radius: 0;
  background: transparent; color: #fff;
  font: 400 18px var(--sans);
  transition: border-color var(--dur-hover);
}
.field input:focus { border-color: var(--orange); }
.field input[aria-invalid="true"]:not(:focus) { border-color: #ff9a8a; }
.field-error { margin: 0; font-size: 14px; color: #ffb4a8; }
.field-error:empty { display: none; }
.form-status { margin: 0; font-size: 15px; color: #fff; }
.form-status:empty { display: none; }
.check {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-size: 16px; font-weight: 500; color: #fff;
  padding: 6px 0;
}
.check input {
  appearance: none; -webkit-appearance: none;
  width: 24px; height: 24px; margin: 0; flex: none;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 5px;
  display: grid; place-content: center; cursor: pointer;
  transition: background var(--dur-hover), border-color var(--dur-hover);
}
.check input::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: 2px solid var(--ink); border-top: 0; border-right: 0;
  transform: rotate(-45deg) scale(0); transition: transform var(--dur-hover) var(--ease-out);
}
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.form .btn { justify-self: start; margin-top: 8px; }
.form-note { margin: -6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.req { color: var(--orange); font-weight: 700; }

/* ==========================================================================
   Pied de page
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 72px 0 32px; border-top: 1px solid var(--line-light); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: block; width: min(340px, 100%); --logo-tag: #a9aaa6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; font-weight: 600; }
.footer-nav a { text-decoration: none; transition: color var(--dur-hover); }
.footer-nav a:hover { color: var(--orange); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px;
  background: linear-gradient(var(--line-light), var(--line-light)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
  font-size: 13px; color: rgba(255, 255, 255, .62);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Retour en haut, notification
   ========================================================================== */

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; translate: 0 16px; pointer-events: none; visibility: hidden;
  transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out), visibility var(--dur-ui);
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-arrow { width: 20px; height: 20px; transition: translate var(--dur-hover) var(--ease-out); }
.to-top:hover .to-top-arrow { translate: 0 -3px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; translate: -50% 16px; pointer-events: none;
  transition: opacity var(--dur-ui) var(--ease-out), translate var(--dur-ui) var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% 0; pointer-events: auto; }
.toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); vertical-align: 1px; }

/* ==========================================================================
   Visionneuse
   ========================================================================== */

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10, 11, 14, .95);
  display: none; align-items: center; justify-content: center;
  padding: 12px 72px;
  touch-action: pan-y pinch-zoom;
}
.lightbox[open] { display: flex; animation: fade-in 300ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox-figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 24px - 3.5em); object-fit: contain; border-radius: 3px; animation: zoom-in 450ms var(--ease-out); }
.lightbox-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; align-items: baseline; text-align: center; color: rgba(255, 255, 255, .85); font-family: var(--serif); font-style: italic; font-size: 18px; }
.lightbox-count { font-family: var(--sans); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--orange); }
.lightbox-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(22, 24, 29, .6); color: #fff;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--dur-hover), border-color var(--dur-hover), color var(--dur-hover);
}
.lightbox-btn svg { width: 22px; height: 22px; pointer-events: none; }
.lightbox-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 10px; top: 50%; translate: 0 -50%; }

/* ==========================================================================
   Apparitions au défilement
   ========================================================================== */

.js .reveal, .js [data-stagger] > * { opacity: 0; translate: 0 18px; transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out); }
.js [data-stagger] > * { transition-delay: calc(var(--si, 0) * 80ms); }
.js .reveal.is-visible, .js [data-stagger] > .is-visible { opacity: 1; translate: 0 0; }
.js .gallery-grid[data-stagger] > * { opacity: 1; translate: none; }
/* Cartes : l'inclinaison (transform) ne doit pas hériter du délai d'apparition */
.js .cards > .card {
  transition: transform 600ms var(--ease-out) 0s, box-shadow 600ms var(--ease-out) 0s,
              opacity var(--dur-reveal) var(--ease-out) calc(var(--si, 0) * 80ms), translate var(--dur-reveal) var(--ease-out) calc(var(--si, 0) * 80ms);
}
.js .cards > .card.is-tilting { transition: transform 120ms linear 0s, box-shadow 600ms var(--ease-out) 0s, opacity 1ms, translate 1ms; }

@keyframes fade-up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }

/* Mouvement réduit : tout est affiché dans son état final, sans animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
  .js .reveal, .js [data-stagger] > *, .js .event { opacity: 1; translate: none; }
  .js [data-split] .wi { opacity: 1; filter: none; }
  .site-nav, .site-nav * { transition: none !important; }
  .js [data-split] .wi { translate: none; }
  .js .gallery-grid li { clip-path: none; }
  .hero-media img { translate: none; }
  .hero-spot { display: none; }
  .logo-row { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .logo-track { flex-wrap: wrap; justify-content: center; min-width: 0; }
  .logo-track[aria-hidden="true"], .marquee-toggle { display: none !important; }
  .hero-ticker .ticker-track + .ticker-track { display: none; }
  .ola span { opacity: .6; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .nav-toggle { display: block; }
  .motion-toggle { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: -1;
    flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px;
    padding: 24px var(--gutter) 32px;
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--ink); color: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-ui) var(--ease-out), visibility var(--dur-ui);
  }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { font-family: var(--serif); font-size: clamp(24px, 6.4vw, 34px); font-weight: 300; letter-spacing: -.01em; line-height: 1.4; opacity: 0; translate: 0 16px; transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out); }
  .site-nav ul li:nth-child(2) a { transition-delay: 40ms; }
  .site-nav ul li:nth-child(3) a { transition-delay: 80ms; }
  .site-nav ul li:nth-child(4) a { transition-delay: 120ms; }
  .site-nav ul li:nth-child(5) a { transition-delay: 160ms; }
  .site-nav ul li:nth-child(6) a { transition-delay: 200ms; }
  .site-nav ul li:nth-child(7) a { transition-delay: 240ms; }
  .nav-open .site-nav ul a { opacity: 1; translate: 0 0; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a { display: inline-flex; align-items: center; gap: 18px; }
  .nav-icon {
    display: grid; place-items: center; flex: none;
    width: 46px; height: 46px; border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    color: var(--orange);
    transition: background var(--dur-hover), border-color var(--dur-hover);
  }
  .site-nav [data-key] .nav-icon { color: var(--rub-dark, var(--orange)); }
  .site-nav [data-key="team-building"] { --rub-dark: #5BCB78; }
  .site-nav [data-key="soirees"] { --rub-dark: #7CC4EE; }
  .site-nav [data-key="relations-publiques"] { --rub-dark: #F2C12E; }
  .site-nav [data-key="sejours"] { --rub-dark: #F07A70; }
  .nav-icon svg { width: 24px; height: 24px; }
  .site-nav ul a:hover .nav-icon, .site-nav ul a:focus-visible .nav-icon, .site-nav ul a.is-active .nav-icon, .site-nav ul a[aria-current] .nav-icon { background: rgba(255, 255, 255, .1); border-color: currentColor; }
  .site-nav ul { gap: 10px; }
  .nav-cta { color: #fff; }
  .site-nav > ul { margin-top: auto; }
  .site-nav > .nav-cta { margin-bottom: auto; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition: opacity var(--dur-ui) var(--ease-out), visibility 0s; }
  .nav-open .site-header { color: #fff; background: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-header { height: 44px; }
}

@media (max-width: 960px) {
  .hero-media::after { background: linear-gradient(0deg, rgba(14, 15, 19, .92) 0%, rgba(14, 15, 19, .74) 60%, rgba(14, 15, 19, .62) 100%); }
  .hero .eyebrow-light, .hero-intro { color: #fff; }

  .split { grid-template-columns: 1fr; }

  .timeline { --rail: 0px; }
  .timeline-year { grid-template-columns: 1fr; }
  .timeline-label { position: static; padding: 44px 0 20px 32px; }
  .timeline-year:first-child .timeline-label { padding-top: 0; }
  .timeline-more { padding-left: 0; }

  .rp-columns { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .header-inner { gap: 12px; }
  .logo-header, .is-scrolled .logo-header { height: 30px !important; }
}

@media (max-width: 640px) and (min-height: 560px) {
  .lightbox { padding: 72px 16px 96px; }
  .lightbox img { max-height: calc(100vh - 168px - 3.5em); }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 24px; translate: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .motion-toggle { width: 40px; height: 40px; }
  .logo-header, .is-scrolled .logo-header { height: 36px; }
  .hero { padding-bottom: 130px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-scroll { display: none; }
  .hero-ticker { padding: 14px 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 6px; padding: 0 6px; }
  .gallery-grid .g-a { grid-column: span 2; grid-row: span 1; }
  .gallery-grid .g-h { grid-column: span 2; }

  .event { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 24px 0 24px 26px; }
  .event::before { top: 34px; }
  .event-photo { width: 84px; height: 84px; }
  .event-text { font-size: 15px; }

  .cards { grid-template-columns: 1fr; }
  .logo-track li { height: 72px; padding: 0 22px; }
  .logo-track img { max-width: 140px; height: calc(var(--lh, 46px) * .82); }
  .contact-card, .newsletter { padding: 28px 22px; }
  .contact-list li { gap: 12px; font-size: 16px; }
  .contact-address { grid-template-columns: 22px minmax(0, 1fr); }
  .contact-address .map { grid-column: 1 / -1; }
  .ola { gap: 5px; height: 60px; }
  .ola span, .ola span::before { width: 6px; }
  .ola span::before { height: 6px; top: -9px; }
  .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .footer-bottom { flex-direction: column; }
}


/* ==========================================================================
   Site multi-pages : couleurs des rubriques (code couleur du client)
   ========================================================================== */

[data-rubrique="orange"], [data-accent="orange"] { --rub: #F59E30; --rub-text: #9A5A08; --rub-dark: #F59E30; }
[data-rubrique="vert"], [data-accent="vert"] { --rub: #2CA94D; --rub-text: #1F7A39; --rub-dark: #5BCB78; --accent: #2CA94D; --accent-text: #1F7A39; }
[data-rubrique="bleu"], [data-accent="bleu"] { --rub: #2E9AD8; --rub-text: #1B6FA3; --rub-dark: #7CC4EE; --accent: #2E9AD8; --accent-text: #1B6FA3; }
[data-rubrique="jaune"], [data-accent="jaune"] { --rub: #F2C12E; --rub-text: #7A5C00; --rub-dark: #F2C12E; --accent: #F2C12E; --accent-text: #7A5C00; }
[data-rubrique="rouge"], [data-accent="rouge"] { --rub: #D9453B; --rub-text: #A8322B; --rub-dark: #F07A70; --accent: #D9453B; --accent-text: #A8322B; }

.section-title-sm { font-size: clamp(26px, 3vw, 38px); }
.eyebrow-icon { width: 18px; height: 18px; flex: none; color: var(--rub, var(--accent)); }
.icon { display: block; flex: none; }

/* Visuel d'attente (rubrique sans photo) */
.placeholder {
  position: relative; display: grid; place-items: center; align-content: center; gap: 14px;
  width: 100%; height: 100%; min-height: 160px; padding: 24px; overflow: hidden;
  background: var(--ink-2);
  background:
    radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--rub, var(--orange)) 38%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(44, 169, 77, .22), transparent 60%),
    var(--ink-2);
  color: rgba(255, 255, 255, .9); text-align: center;
}
.placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-24deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
}
.placeholder-icon { width: 44px; height: 44px; color: var(--rub-dark, var(--orange)); }
.placeholder-title { position: relative; z-index: 1; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.25; max-width: 18ch; }

/* ---------- Accueil : l'agence ---------- */

.agence-facts {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 1px 0 var(--line), 0 40px 70px -50px rgba(22, 24, 29, .45);
}
.agence-facts .stat { margin: 0 0 28px; padding: 0 0 28px; border-top: 0; border-bottom: 1px solid var(--line); }
.facts { display: grid; gap: 18px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); line-height: 1.45; }
.facts .icon { width: 24px; height: 24px; color: var(--orange-text); margin-top: 1px; }

/* ---------- Accueil : les 5 rubriques ---------- */

.prestations-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.prestation-tile { grid-column: span 2; }
.prestation-tile:nth-child(4), .prestation-tile:nth-child(5) { grid-column: span 3; }
.prestation-tile a {
  position: relative; display: block; height: 100%; min-height: 320px;
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  color: #fff; text-decoration: none; background: var(--ink);
}
.prestation-tile:nth-child(n+4) a { min-height: 280px; }
.prestation-media { position: absolute; inset: 0; z-index: -1; }
.prestation-media img, .prestation-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: scale 1200ms var(--ease-out); }
.prestation-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 15, 19, .92) 0%, rgba(14, 15, 19, .5) 50%, rgba(14, 15, 19, .15) 100%);
}
.prestation-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; padding: 26px; }
.prestation-body::before {
  content: ""; position: absolute; left: 26px; top: -2px; width: 44px; height: 3px; border-radius: 2px; background: var(--rub);
  transition: width var(--dur-ui) var(--ease-out);
}
.prestation-icon { grid-column: 1 / -1; width: 30px; height: 30px; color: var(--rub-dark); margin-bottom: 4px; }
.prestation-icon .icon { width: 30px; height: 30px; }
.prestation-title { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; }
.prestation-count { grid-column: 1; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .82); }
.prestation-arrow {
  grid-column: 2; grid-row: 2 / span 2; display: grid; place-items: center;
  /* flèche orange sur toutes les tuiles, quelle que soit la couleur de la rubrique */
  width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--ink);
  transition: translate var(--dur-ui) var(--ease-out);
}
.prestation-arrow .icon { width: 20px; height: 20px; }
.prestation-tile a:hover .prestation-media img, .prestation-tile a:focus-visible .prestation-media img { scale: 1.06; }
.prestation-tile a:hover .prestation-arrow, .prestation-tile a:focus-visible .prestation-arrow { translate: 4px 0; }
.prestation-tile a:hover .prestation-body::before { width: 88px; }

/* ---------- En-tête des pages intérieures ---------- */

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px);
  background: var(--ink); color: rgba(255, 255, 255, .82);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--rub, var(--orange)) 30%, transparent), transparent 65%),
    radial-gradient(60% 70% at 0% 100%, rgba(44, 169, 77, .14), transparent 70%);
}
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-eyebrow { color: var(--rub-dark, var(--orange)); margin-bottom: 18px; }
.page-hero-eyebrow::before { display: none; }
.page-title {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144; margin-bottom: 22px;
}
.page-intro { max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, .86); margin-bottom: 32px; }
.page-hero .hero-actions { animation: none; }
.page-hero-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.page-hero-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.page-hero-media img, .page-hero-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::before {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 4px; background: var(--rub, var(--orange));
}

.breadcrumb { margin-bottom: 26px; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .72); }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
.breadcrumb a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding: 6px 0; }
.breadcrumb a:hover { color: var(--rub-dark, var(--orange)); }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, .78); }

/* ---------- Page de rubrique : les blocs ---------- */

.blocs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.blocs-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bloc-card { min-width: 0; }
.bloc-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--text);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line);
  transition: translate var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.bloc-link:hover { translate: 0 -5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--rub) 60%, transparent), 0 30px 50px -30px rgba(22, 24, 29, .4); }
.bloc-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.blocs-grid[data-count="4"] .bloc-media { aspect-ratio: 16 / 9; }
.bloc-media img, .bloc-media .placeholder { width: 100%; height: 100%; object-fit: cover; transition: scale 1100ms var(--ease-out); }
.bloc-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--rub); transform: scaleX(.18); transform-origin: left; transition: transform 600ms var(--ease-out); }
.bloc-link:hover .bloc-media img { scale: 1.06; }
.bloc-link:hover .bloc-media::after, .bloc-link:focus-visible .bloc-media::after { transform: scaleX(1); }
.bloc-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 22px 22px 24px; }
.bloc-title { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; color: var(--ink); }
.bloc-summary { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.bloc-more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rub-text);
}
.bloc-more .icon { width: 18px; height: 18px; transition: translate var(--dur-ui) var(--ease-out); }
.bloc-link:hover .bloc-more .icon, .bloc-link:focus-visible .bloc-more .icon { translate: 5px 0; }
.blocs-grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Page de détail ---------- */

.detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.detail-text .section-title { margin-bottom: 22px; }
.detail-text .lead { max-width: 52ch; }
.detail-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; padding: 6px 0;
  font-weight: 700; color: var(--rub-text, var(--orange-text)); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-ui) var(--ease-out);
}
.detail-cta:hover, .detail-cta:focus-visible { background-size: 100% 2px; }
.detail-cta .icon { width: 20px; height: 20px; }

.bloc-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 210px); gap: 10px; }
.bloc-gallery[data-count="1"] .bloc-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: clamp(240px, 30vw, 420px); }
.bloc-gallery[data-count="2"] .bloc-gallery-grid { grid-auto-rows: clamp(220px, 24vw, 340px); }
.bloc-gallery[data-count="3"] .bloc-gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.bloc-gallery[data-count="4"] .bloc-gallery-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.bloc-gallery[data-count="4"] .bloc-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bloc-gallery[data-count="4"] .bloc-gallery-grid li:first-child { grid-column: span 3; }
.bloc-gallery-grid li { min-width: 0; }
.bloc-gallery .gallery-item { border-radius: 4px; }
.bloc-gallery-empty { min-height: clamp(260px, 30vw, 420px); border-radius: var(--radius); }

.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.zone-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.zone-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.zone-media img, .zone-media .placeholder { width: 100%; height: 100%; object-fit: cover; }
.zone-media .placeholder { min-height: 0; }
.zone-body { padding: 20px 22px 24px; font-size: 15px; line-height: 1.65; }
.zone-body p { margin: 0; }
.zone-title { font-family: var(--serif); font-size: 23px; line-height: 1.2; color: var(--ink); margin-bottom: 6px; }
.zone-subtitle { font-family: var(--serif); font-style: italic; color: var(--rub-text, var(--accent-text)); margin-bottom: 10px !important; }

.autres-idees .section-head-row { align-items: center; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--rub-text, var(--orange-text));
  padding: 8px 0;
}
.link-arrow .icon { width: 18px; height: 18px; transition: translate var(--dur-ui) var(--ease-out); }
.link-arrow:hover .icon { translate: 4px 0; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 14px; max-width: 48%; padding: 8px 0; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.pager small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pager .icon { width: 22px; height: 22px; color: var(--rub-text, var(--orange-text)); }
.pager-next { margin-left: auto; text-align: right; }
.pager a:hover { color: var(--rub-text, var(--orange-text)); }

/* ---------- Demande de devis ---------- */

.devis-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.devis-aside .section-title { margin-bottom: 20px; }
.devis-aside .eyebrow { color: var(--rub-text, var(--accent-text)); }
.devis-aside .eyebrow::before { display: none; }
.devis-contact { display: grid; gap: 12px; margin-top: 28px; }
.devis-contact li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.devis-contact .icon { width: 22px; height: 22px; color: var(--rub-text, var(--orange-text)); }
.devis-contact a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; padding: 4px 0; background: linear-gradient(90deg, var(--orange), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-ui) var(--ease-out); }
.devis-contact a:hover, .devis-contact a:focus-visible { background-size: 100% 2px; }
.devis-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 1px 0 var(--line), 0 40px 70px -50px rgba(22, 24, 29, .45); }

.form-light { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.form-light .form-note, .form-light .field-full, .form-light .form-alert { grid-column: 1 / -1; }
.form-light .form-note { margin: 0; color: var(--muted); }
.form-light .field > label { color: var(--ink); }
.form-light input[type="text"], .form-light input[type="email"], .form-light input[type="tel"], .form-light input[type="number"], .form-light select, .form-light textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid rgba(22, 24, 29, .55); border-radius: 4px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
  transition: border-color var(--dur-hover), box-shadow var(--dur-hover);
}
.form-light textarea { resize: vertical; min-height: 140px; }
.form-light select { appearance: none; -webkit-appearance: none; padding-right: 42px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.form-light input:focus, .form-light select:focus, .form-light textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-light [aria-invalid="true"]:not(:focus) { border-color: #B3261E; }
.form-light .field-error { color: #B3261E; font-weight: 600; }
.form-light .field-hint { margin: 0; font-size: 14px; color: var(--muted); }
.form-light .req { color: var(--orange-text); }
.form-light ::placeholder { color: #6b6d72; opacity: 1; }
.form-actions { display: flex; justify-content: flex-start; }
.form-actions .btn .icon { width: 18px; height: 18px; }
.form-alert { padding: 14px 18px; border-radius: 4px; background: #FCEEEE; border-left: 4px solid #B3261E; color: #5c1410; }
.form-alert p { margin: 0; }
.form-alert:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-alert-page { margin: 32px 0 0; }
.form-alert-page a { color: inherit; font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Bandeau d'appel au devis, autres rubriques ---------- */

.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 6vw, 72px) 0; background: var(--ink); color: rgba(255, 255, 255, .82); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 100% 50%, color-mix(in srgb, var(--rub, var(--orange)) 28%, transparent), transparent 70%); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.cta-band-title { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; color: #fff; }
.cta-band-text { margin: 0; max-width: 52ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn .icon, .page-hero .btn .icon { width: 18px; height: 18px; }

.autres-rubriques { padding: clamp(56px, 7vw, 88px) 0; }
.autres-rubriques .section-title { margin-bottom: 28px; }
.autres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.autres-grid a {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px 20px;
  border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3;
  box-shadow: inset 4px 0 0 var(--rub); transition: background var(--dur-hover), box-shadow var(--dur-ui) var(--ease-out);
}
.autres-grid a > .icon:first-child { width: 26px; height: 26px; color: var(--rub-text); }
.autres-grid .autres-arrow { width: 18px; height: 18px; margin-left: auto; color: var(--rub-text); transition: translate var(--dur-ui) var(--ease-out); }
.autres-grid a:hover { background: #fff; box-shadow: inset 8px 0 0 var(--rub), 0 20px 40px -30px rgba(22, 24, 29, .5); }
.autres-grid a:hover .autres-arrow { translate: 4px 0; }

/* ---------- Pages intérieures : responsive ---------- */

@media (max-width: 1100px) {
  .blocs-grid, .blocs-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prestations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prestation-tile, .prestation-tile:nth-child(4), .prestation-tile:nth-child(5) { grid-column: auto; }
  .prestation-tile:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .page-hero-inner, .detail-grid, .devis-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 640px; }
}
@media (max-width: 640px) {
  .blocs-grid, .blocs-grid-small, .blocs-grid[data-count="4"], .prestations-grid { grid-template-columns: 1fr; }
  .prestation-tile a, .prestation-tile:nth-child(n+4) a { min-height: 240px; }
  .form-light { grid-template-columns: 1fr; }
  .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .pager { flex-direction: column; }
  .pager a { max-width: none; }
  .pager-next { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .prestation-tile a:hover .prestation-arrow, .bloc-link:hover { translate: none; }
}

/* Sous-titre d'origine d'un bloc (page de détail) */
.detail-subtitle { margin: -8px 0 14px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--rub-text, var(--accent-text)); }
.cta-band-title { font-weight: 400; }

/* ==========================================================================
   Mentions légales
   ========================================================================== */

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 22px; border-radius: var(--radius); background: var(--paper); }
.legal-toc-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--orange-text); }
.legal-toc ol { display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 7px 10px; border-radius: 4px; font-size: 15px; line-height: 1.35; color: var(--text); text-decoration: none; transition: background var(--dur-hover), color var(--dur-hover), box-shadow var(--dur-hover); }
.legal-toc a:hover { background: var(--white); color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }
.legal-content { min-width: 0; max-width: 780px; }
.legal-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.legal-block:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.legal-title { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--ink); }
.legal-subtitle { margin: 30px 0 10px; font-family: var(--serif); font-size: 21px; line-height: 1.25; color: var(--ink); }
.legal-content p { max-width: 68ch; }
.legal-content a:not(.btn) { color: var(--orange-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.legal-content a:not(.btn):hover { color: var(--ink); }
.legal-list { margin: 20px 0 0; border-top: 1px solid var(--line); }
.legal-list > div { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-list dt { padding-top: 3px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-list dd { margin: 0; color: var(--ink); }
.legal-list address { font-style: normal; }
.legal-list-wide dd { color: var(--text); }
.legal-bullets li { position: relative; margin: 10px 0; padding-left: 22px; max-width: 68ch; }
.legal-bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.legal-date { margin-top: 18px; font-size: 14px; color: var(--muted); }
.form-note a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-list > div { grid-template-columns: 1fr; }
}
