/* SADEM — nouveau design
   Une famille (Archivo variable) : titres en largeur étendue, chiffres en largeur condensée. */

:root {
  --ink: #0b1b27;
  --ink-soft: #435867;
  --line: #d8e1e7;
  --paper: #f2f6f8;
  --white: #ffffff;
  --cyan: #009ee0;
  --cyan-deep: #006fa3;
  --lime: #e2e53d;
  --warn: #ff6c00;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --wrap: min(1200px, 100% - 40px);
  --header-h: 68px;
  --section-pad: clamp(56px, 8vw, 112px);
}

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

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

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; max-width: 68ch; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* Les enfants de grilles peuvent rétrécir : évite tout débordement horizontal sur petit écran */
.split > *, .duo > *, .rfa > *, .path > *, .meet > *, .contract > *, .people > *, .cards > *, .brands > *, .shots > * { min-width: 0; }

/* ---------- Titres ---------- */
.h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 800; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.02em;
}
.h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 750; font-stretch: 108%; line-height: 1.08; letter-spacing: -0.015em;
}
.h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700; font-stretch: 104%; line-height: 1.2;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.5em; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--white); color: var(--ink); }
.btn--solid { background: var(--cyan-deep); color: var(--white); }
.btn--solid:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }

.icon { width: 1.25em; height: 1.25em; flex: none; }


/* ---------- En-tête ---------- */
.site-header {
  position: fixed; z-index: 100; top: 14px; left: 0; right: 0; pointer-events: none;
}
.bar {
  pointer-events: auto; position: relative;
  width: min(1240px, 100% - 24px); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; gap: 12px; padding: 0 12px 0 22px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11,27,39,.08); border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(11,27,39,.35);
}
.bar__logo { display: block; flex: none; padding: 14px 0; }
.bar__logo img { width: 132px; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: .5em .95em; border-radius: 999px;
  font-size: .95rem; font-weight: 560; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--lime); font-weight: 700; }
.nav .ext .icon { display: inline-block; width: .8em; height: .8em; margin-left: .3em; vertical-align: -.05em; }

.bar__tools { display: flex; align-items: center; gap: 6px; }
.tool {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.tool:hover { background: var(--paper); }
.tool--contact { background: var(--cyan-deep); color: var(--white); width: auto; padding: 0 18px 0 14px; gap: 8px; display: inline-flex; font: inherit; font-weight: 650; font-size: .95rem; border-radius: 999px; }
.tool--contact:hover { background: var(--ink); }
.tool--menu { display: none; }

@media (max-width: 1060px) {
  .bar__tools { margin-left: auto; }
  .tool--menu { display: inline-grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0;
    background: var(--white); border-radius: var(--radius-m); padding: 10px;
    box-shadow: 0 20px 40px -16px rgba(11,27,39,.4); border: 1px solid rgba(11,27,39,.08);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: .9em 1em; font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .tool--contact span { display: none; }
  .tool--contact { padding: 0; width: 44px; justify-content: center; }
  .bar__logo img { width: 112px; }
}

/* ---------- Héros ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: #000;
  display: flex; align-items: flex-end;
  min-height: min(100svh, 920px);
  padding: calc(var(--header-h) + 80px) 0 clamp(40px, 7vw, 88px);
}
.hero--page { min-height: clamp(380px, 52vh, 520px); padding-bottom: clamp(32px, 5vw, 56px); }
.hero__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 55%;
  animation: lights-on 1.9s cubic-bezier(.3,.6,.3,1) .35s both;
}
@media (min-width: 900px) {
  /* Sur les bandeaux courts, le motard est repoussé à droite pour laisser respirer le titre */
  .hero--page .hero__photo { left: 24%; width: 76%; }
  .hero:not(.hero--page) .h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
}
@media (max-width: 700px) {
  /* Smartphone : la photo occupe le haut, le texte se lit sur fond noir en dessous */
  .hero:not(.hero--page) { min-height: min(100svh, 780px); }
  .hero:not(.hero--page) .hero__photo { height: 52%; object-position: 70% 30%; }
  .hero:not(.hero--page)::after {
    background: linear-gradient(to top, #000 46%, rgba(0,0,0,0) 72%);
  }
  .hero--page::after {
    background: linear-gradient(to top, rgba(0,0,0,.94) 30%, rgba(0,0,0,.45) 78%);
  }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero--page { min-height: 340px; }
}
.nowrap { white-space: nowrap; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0) 62%),
    linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
}
.hero__copy { animation: rise .8s ease-out 1.1s both; }
.hero .h1 { max-width: 17ch; }
.hero .h1 span { display: block; margin-top: .35em; font-weight: 400; font-stretch: 100%; font-size: .5em; line-height: 1.25; letter-spacing: 0; color: rgba(255,255,255,.82); max-width: 30ch; }
.hero--page .h1 { max-width: 22ch; }
.hero .lede { margin: 1.4em 0 0; max-width: 46ch; color: rgba(255,255,255,.9); }
.hero .lede strong { color: var(--lime); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

@keyframes lights-on { from { filter: brightness(.12); } to { filter: brightness(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-pad); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
.section--lime { background: var(--lime); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }

.head { margin-bottom: clamp(28px, 4vw, 52px); }
.head p { margin: 1em 0 0; color: var(--ink-soft); }

.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--rev { grid-template-columns: 7fr 5fr; }
}

/* Texte courant */
.prose p { color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose .lede { color: var(--ink); }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius-m); }
.figure--card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(12px, 2vw, 24px); }
.figure--card img { border-radius: 0; }
.figure figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-soft); }
a[data-zoom] { display: block; cursor: zoom-in; }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -30px rgba(11,27,39,.55);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Chiffres clés (grille) ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); }
.stat {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  grid-column: span 12; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-m);
  background: var(--white); border: 1px solid var(--line);
}
.stat__num {
  font-size: clamp(3.2rem, 7.5vw, 6rem); font-weight: 850; font-stretch: 75%;
  line-height: .9; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.stat__num sup, .stat__num small { font-size: .42em; font-weight: 800; letter-spacing: 0; vertical-align: baseline; }
.stat__num small { margin-left: .12em; }
.stat__num .pre { font-size: .42em; margin-right: .2em; }
.stat__label { font-size: 1.02rem; line-height: 1.3; font-weight: 520; max-width: 22ch; }
.stat__label small { display: block; margin-top: .3em; font-size: .86rem; font-weight: 400; opacity: .82; }
.stat--lead { background: var(--cyan-deep); border-color: var(--cyan-deep); color: var(--white); min-height: 280px; }
.stat--lead .stat__num { font-size: clamp(5rem, 12vw, 9.5rem); }
.stat--lead .stat__label { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 650; font-stretch: 106%; max-width: 16ch; }
.stat--lime { background: var(--lime); border-color: var(--lime); }
.stat--ink { background: var(--ink); border-color: var(--ink); color: var(--white); }
.stat-note { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }

@media (min-width: 640px) {
  .stat { grid-column: span 6; }
}
@media (min-width: 1000px) {
  .stat { grid-column: span 4; }
  .stat--lead { grid-column: span 5; grid-row: span 2; }
  .stats .s-b { grid-column: span 3; }
  .stats .s-c { grid-column: span 4; }
  .stats .s-d { grid-column: span 4; }
  .stats .s-e { grid-column: span 3; }
}

/* Cartes chiffres (plateforme) */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.fact .stat__num { font-size: clamp(2.8rem, 5vw, 3.8rem); color: var(--cyan-deep); }
.fact p { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 520; }
.fact p b { font-weight: 800; }
.fact--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--ink); border-color: var(--ink); color: var(--white); }
.fact--wide .stat__num { color: var(--lime); }
.fact--wide p { font-size: 1.15rem; max-width: 30ch; }

/* Graphique des ventes */
.chart { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); }
.chart h3 { margin-bottom: 4px; }
.chart__bars { display: flex; align-items: flex-end; gap: clamp(8px, 2vw, 20px); height: 240px; margin-top: 22px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); position: relative; }
.chart__bar { flex: 1; position: relative; height: var(--h); background: var(--lime); border-radius: 8px 8px 0 0; transform-origin: bottom; }
.chart__bar span { position: absolute; left: 0; right: 0; bottom: -28px; text-align: center; font-size: .9rem; font-weight: 600; }
.chart__bar--last { background: var(--cyan-deep); }
.chart.is-visible .chart__bar { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; }
.chart.is-visible .chart__bar:nth-child(2) { animation-delay: .08s; }
.chart.is-visible .chart__bar:nth-child(3) { animation-delay: .16s; }
.chart.is-visible .chart__bar:nth-child(4) { animation-delay: .24s; }
.chart.is-visible .chart__bar:nth-child(5) { animation-delay: .32s; }
.chart.is-visible .chart__bar:nth-child(6) { animation-delay: .4s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart .note { margin: 18px 0 0; font-size: .88rem; color: var(--ink-soft); max-width: none; }

/* ---------- Pourquoi adhérer ---------- */
.path { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1000px) { .path { grid-template-columns: 1fr 1fr 1.45fr; } }
.step { background: var(--paper); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 36px); }
.step__n {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 1.5rem; font-weight: 800; font-stretch: 90%; margin-bottom: 20px;
}
.step .h3 { margin-bottom: 18px; }
.step--solution { background: var(--cyan-deep); color: var(--white); }
.step--solution .step__n { background: var(--lime); color: var(--ink); }
.list { display: grid; gap: 12px; }
.list li { position: relative; padding-left: 30px; line-height: 1.45; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px;
  background: var(--cyan-deep);
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat;
}
.step--solution .list li::before { background: var(--lime); }
.list--dot li::before { --tick: none; -webkit-mask: none; mask: none; width: 8px; height: 8px; border-radius: 50%; top: .6em; left: 6px; background: var(--ink-soft); }
:root {
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4.2 4.2L16.5 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cover { display: block; position: relative; border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11,27,39,.5); }
.cover img { width: 100%; transition: transform .6s ease; }
.cover:hover img { transform: scale(1.02); }
.cover__tag {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .5em;
  padding: .6em 1.1em; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 650; font-size: .95rem;
}
.cover__tag .icon { width: 1em; height: 1em; }

.contract { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; background: var(--paper); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 48px); }
@media (min-width: 800px) { .contract { grid-template-columns: 240px 1fr; } .contract__text { border-left: 2px solid var(--line); padding-left: clamp(20px, 4vw, 48px); } }
.contract__logo { width: min(240px, 70%); }
.contract h2 { margin-bottom: 14px; }

.join { text-align: center; }
.join img { width: 100%; max-width: 1000px; margin: 0 auto clamp(20px, 3vw, 36px); }
.join .h2 { margin-bottom: 20px; margin-inline: auto; max-width: 20ch; }

/* ---------- Bien acheter ---------- */
.rfa { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; background: var(--white); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); }
@media (min-width: 900px) { .rfa { grid-template-columns: 5fr 7fr; } }
.rfa__big { font-size: clamp(3.4rem, 7vw, 5.5rem); font-weight: 850; font-stretch: 75%; line-height: .9; background: var(--lime); display: inline-block; padding: .08em .25em .02em; border-radius: 10px; margin-bottom: 10px; }
.rfa h3 { margin: 22px 0 6px; }
.rfa p { color: var(--ink-soft); }

.duo { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); }
.panel .h2 { margin-bottom: 18px; }
.panel .strong { font-weight: 700; }
.panel .list { margin: 18px 0 22px; }
.panel p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.chip { padding: .35em .9em; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .92rem; font-weight: 650; }
.bigfig { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 8px 0 22px; }
.bigfig div { display: flex; flex-direction: column; }
.bigfig .stat__num { font-size: 3.6rem; color: var(--cyan-deep); }
.bigfig span.l { font-size: .95rem; font-weight: 520; }

/* ---------- Plateforme ---------- */
.banner-img { margin-top: clamp(16px, 3vw, 28px); }
.brands { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .brands { grid-template-columns: 1fr 1fr; } }
.shots { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } }

/* ---------- Équipe ---------- */
.people { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: clamp(28px, 4vw, 52px); }
@media (min-width: 700px) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { background: var(--paper); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.person--lead { background: var(--ink); color: var(--white); }
@media (min-width: 700px) { .person--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; } }
.person__id { display: flex; align-items: center; gap: 16px; }
.person--lead .person__id { flex-direction: column; align-items: flex-start; }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 800; font-stretch: 100%; font-size: 1.3rem;
}
.person--lead .avatar { width: 96px; height: 96px; font-size: 2rem; }
.person h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 106%; line-height: 1.15; }
.person .role { margin: 2px 0 0; font-size: .95rem; color: var(--cyan-deep); font-weight: 600; max-width: none; }
.person--lead .role { color: var(--lime); }
.person blockquote { margin: 0; font-size: 1.05rem; line-height: 1.65; font-style: italic; }
.person--lead blockquote { font-size: 1.15rem; }
.person blockquote p { max-width: 60ch; margin: 0; }
.person__link { display: inline-flex; gap: .5em; align-items: center; margin-top: 8px; min-height: 44px; font-style: normal; font-weight: 600; color: var(--lime); }
.person__link:hover { color: var(--white); }

.meet { display: grid; gap: clamp(22px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .meet { grid-template-columns: 1fr 1fr; } }
.meet .h2 { max-width: 18ch; }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius-m); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.contact-card .role { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.contact-card h3 { font-size: 1.25rem; font-weight: 750; font-stretch: 106%; margin-bottom: 10px; }
.contact-card a { display: inline-flex; gap: .55em; align-items: center; color: var(--ink); font-weight: 560; text-decoration: none; padding: .2em 0; word-break: break-word; }
.contact-card a:hover { color: var(--cyan-deep); text-decoration: underline; }
.contact-card .icon { color: var(--cyan-deep); width: 1.1em; height: 1.1em; }

/* ---------- Pied de page ---------- */
.footer { background: var(--paper); padding: clamp(40px, 6vw, 72px) 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.footer img { width: 160px; margin-bottom: 14px; }
.footer p { color: var(--ink-soft); font-size: .98rem; }
.footer h2 { font-size: 1rem; font-weight: 750; font-stretch: 104%; margin-bottom: 12px; }
.footer li { margin: 0 0 6px; }
.footer a { color: var(--ink); text-decoration: none; font-weight: 520; }
.footer a:hover { color: var(--cyan-deep); text-decoration: underline; }
.footer .linkedin { display: inline-flex; gap: .5em; align-items: center; margin-top: 8px; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.footer__legal p { margin: 0; max-width: none; }

/* ---------- Retour en haut ---------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; background: var(--ink); color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(11,27,39,.6);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background-color .15s;
}
.totop.is-shown { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--cyan-deep); }

/* ---------- Dialogues (contact, recherche, zoom) ---------- */
dialog { padding: 0; border: 0; color: var(--ink); }
dialog::backdrop { background: rgba(11,27,39,.6); backdrop-filter: blur(3px); }

.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: none;
  background: var(--white); overflow-y: auto; box-shadow: -30px 0 60px -20px rgba(0,0,0,.4);
}
.sheet[open] { animation: slide-in .35s cubic-bezier(.2,.8,.2,1); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__in { padding: clamp(24px, 4vw, 40px); }
.sheet__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.sheet__top .h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.sheet__top p { margin: .5em 0 0; color: var(--ink-soft); font-size: .98rem; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; }
.field label .req { color: #c62828; margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid transparent; border-radius: var(--radius-s); padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: var(--white); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #e8f6fc; border-radius: var(--radius-s); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cyan-deep); flex: none; }
.check span { font-weight: 600; line-height: 1.35; color: var(--cyan-deep); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 520px) { .form__row { grid-template-columns: 1fr 1fr; } }
.g-recaptcha { max-width: 100%; overflow-x: auto; }
.form__submit { justify-self: end; font-size: 1.05rem; }

.palette {
  margin: 12vh auto auto; width: min(620px, 100% - 24px); border-radius: var(--radius-l); background: var(--white);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); overflow: hidden;
}
.palette[open] { animation: rise .25s ease-out; }
.palette__field { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 22px; border-bottom: 1px solid var(--line); }
.palette__field .icon { color: var(--ink-soft); }
.palette__field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: 20px 0; background: transparent; color: var(--ink); }
.palette__list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette__list a, .palette__list button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left;
  padding: 12px 14px; border: 0; border-radius: var(--radius-s); background: transparent; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.palette__list a:hover, .palette__list button:hover, .palette__list a:focus-visible, .palette__list button:focus-visible, .palette__list .is-first { background: var(--paper); outline: none; }
.palette__list b { font-weight: 650; }
.palette__list small { color: var(--ink-soft); font-size: .9rem; }
.palette__empty { padding: 22px; color: var(--ink-soft); margin: 0; }

.lightbox { background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.lightbox[open] { display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 90px); width: auto; border-radius: var(--radius-s); background: var(--white); cursor: zoom-out; }
.lightbox p { color: #fff; margin: 12px 0 0; text-align: center; font-size: .9rem; max-width: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo, .hero__copy, .sheet[open], .palette[open], .chart.is-visible .chart__bar { animation: none; }
  .cover img, .btn, .totop { transition: none; }
}

[hidden] { display: none !important; }
.chart[data-anim]:not(.is-visible) .chart__bar { transform: scaleY(0); }
