/* =================================================================
   GROUPE K.Y.M DESIGN — feuille de style principale
   Palette issue du logo : noir profond, papier, accent rouge.
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0E0E0F;
  --ink-2:      #1B1B1E;
  --ink-3:      #2A2A2E;
  --paper:      #FBFAF8;
  --paper-2:    #F0EDE7;
  --paper-3:    #E4E0D8;
  --accent:     #D42128;
  --accent-dk:  #A9161C;
  --muted:      #6E6E75;
  --muted-2:    #9A9AA1;
  --line:       rgba(14, 14, 15, .13);
  --line-soft:  rgba(14, 14, 15, .07);
  --line-dark:  rgba(255, 255, 255, .14);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 78px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 1560px; }
.container--narrow { max-width: 760px; }

.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .eyebrow { color: var(--muted-2); }
.section--dark .eyebrow::before { background: var(--accent); }

.section--paper2 { background: var(--paper-2); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.h-xl { font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
.h-lg { font-size: clamp(1.95rem, 4.2vw, 3.3rem); }
.h-md { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.h-sm { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
}
.section--dark .lead { color: rgba(251, 250, 248, .72); }

.text-accent { color: var(--accent); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- 4. Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* lien flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

/* ---------- 5. En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* état par défaut : sur fond clair */
.site-header { background: rgba(251, 250, 248, .92); backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }

/* état transparent au-dessus d'un hero sombre */
body.has-hero .site-header:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.has-hero .site-header:not(.is-stuck) .brand-name,
body.has-hero .site-header:not(.is-stuck) .nav a,
body.has-hero .site-header:not(.is-stuck) .burger span { color: #fff; }
body.has-hero .site-header:not(.is-stuck) .brand-sub { color: rgba(255,255,255,.6); }
body.has-hero .site-header:not(.is-stuck) .burger span { background: #fff; }
body.has-hero .site-header:not(.is-stuck) .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
body.has-hero .site-header:not(.is-stuck) .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
body.has-hero .site-header:not(.is-stuck) .brand-mark { filter: invert(1) brightness(1.9); }

.site-header.is-stuck { height: 66px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter .4s var(--ease);
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .96rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.brand-name .dot { color: var(--accent); }
.brand-sub {
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { padding: 12px 22px; font-size: .74rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s var(--ease), background .35s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* menu mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: var(--ink);
  color: var(--paper);
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mobile-nav a .idx {
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--muted-2);
  font-weight: 500;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav .mn-foot {
  margin-top: auto;
  padding-top: 32px;
  font-size: .85rem;
  color: var(--muted-2);
  line-height: 1.8;
}
.mobile-nav .mn-foot a { font-size: .85rem; padding: 0; border: 0; display: inline; font-family: var(--font-body); }

body.nav-open { overflow: hidden; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,9,.92) 0%, rgba(8,8,9,.55) 42%, rgba(8,8,9,.28) 72%, rgba(8,8,9,.5) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(48px, 9vw, 96px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 26px;
}
.hero__eyebrow::before { content:""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero__lead {
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 38px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 7vw, 82px);
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.16);
}
.hero__stats div {
  background: rgba(10,10,11,.42);
  backdrop-filter: blur(6px);
  padding: 22px 24px;
}
.hero__stats .n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  display: block;
}
.hero__stats .l {
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-top: 6px;
  display: block;
}

/* ---------- 6 bis. Hero animé (diaporama cinématique) ---------- */
.hero--cine { align-items: stretch; }

.hero__slides { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease);
  will-change: opacity;
}
.hero__slide:first-child { opacity: 1; }          /* visible même sans JS */
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide.is-active img { animation: kenBurns 8.5s linear forwards; }
@keyframes kenBurns {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to   { transform: scale(1) translate3d(0, -1.2%, 0); }
}
.hero__slides::after {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background:
    linear-gradient(to top, rgba(8,8,9,.94) 2%, rgba(8,8,9,.5) 46%, rgba(8,8,9,.22) 74%, rgba(8,8,9,.62) 100%),
    linear-gradient(to right, rgba(8,8,9,.6), rgba(8,8,9,0) 62%);
}

/* légende du plan en cours, façon générique de film */
.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 118px;
  z-index: 4;
  text-align: right;
  font-family: var(--font-display);
  max-width: 46vw;
}
.hero__caption .cap-t {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
}
.hero__caption .cap-s {
  display: block;
  margin-top: 5px;
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.hero__caption.is-swap { animation: capIn .7s var(--ease-out); }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* barres de progression des plans */
.hero__dots {
  position: absolute;
  left: var(--gutter);
  bottom: 118px;
  z-index: 4;
  display: flex;
  gap: 8px;
}
.hero__dots button {
  width: 38px; height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.28);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero__dots button span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dots button.is-active span { animation: dotFill 8.5s linear forwards; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* titre : révélation mot à mot */
.reveal-words span {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.reveal-words span i {
  display: inline-block;
  font-style: normal;
  transform: translateY(105%);
  animation: wordUp 1s var(--ease-out) forwards;
}
@keyframes wordUp { to { transform: translateY(0); } }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .9s var(--ease-out) forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* indicateur de défilement */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), rgba(255,255,255,0));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* bandeau défilant */
.ticker {
  background: var(--ink);
  color: #fff;
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
  padding-block: 15px;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-inline: 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.ticker__track span::after {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* hero secondaire (pages internes) */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px));
  padding-bottom: clamp(52px, 8vw, 96px);
  overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.page-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,9,.94), rgba(8,8,9,.62));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
.page-hero .lead { color: rgba(255,255,255,.76); max-width: 62ch; margin-top: 20px; }
.page-hero .eyebrow { color: rgba(255,255,255,.62); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
  font-family: var(--font-display);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }

/* ---------- 7. Grille projets ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
}
.project-grid--feature { grid-template-columns: repeat(12, 1fr); }
.project-grid--feature > *:nth-child(1) { grid-column: span 7; }
.project-grid--feature > *:nth-child(2) { grid-column: span 5; }
.project-grid--feature > *:nth-child(3) { grid-column: span 5; }
.project-grid--feature > *:nth-child(4) { grid-column: span 7; }

.card {
  position: relative;
  display: block;
  background: var(--ink);
  overflow: hidden;
  border-radius: var(--radius);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-grid--feature .card__media { aspect-ratio: 16 / 11; }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,9,.9) 0%, rgba(8,8,9,.35) 45%, rgba(8,8,9,0) 78%);
  transition: opacity .5s var(--ease);
}
.card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: clamp(20px, 2.4vw, 30px);
  color: #fff;
}
.card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 5px 11px;
  margin-bottom: 14px;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
}
.card__meta span { display: inline-flex; align-items: center; gap: 7px; }
.card__meta span + span::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  margin-right: 9px;
}
.card__go {
  position: absolute;
  top: clamp(16px, 2vw, 24px);
  right: clamp(16px, 2vw, 24px);
  z-index: 2;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all .45s var(--ease-out);
}
.card:hover .card__go { opacity: 1; transform: translate(0, 0); background: var(--accent); border-color: var(--accent); }

.is-hidden { display: none !important; }

/* ---------- 8. Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--paper);
  padding: clamp(28px, 3.4vw, 44px);
  transition: background .4s var(--ease), color .4s var(--ease);
}
.svc:hover { background: var(--ink); color: var(--paper); }
.svc:hover .svc__n { color: var(--accent); }
.svc:hover p { color: rgba(251,250,248,.7); }
.svc:hover .svc__list li { border-color: var(--line-dark); color: rgba(251,250,248,.72); }
.svc__n {
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.svc h3 { font-size: 1.35rem; margin-bottom: 14px; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc__list { list-style: none; margin: 18px 0 0; padding: 0; }
.svc__list li {
  font-size: .86rem;
  color: var(--muted);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}

/* ---------- 9. Process ---------- */
.steps { display: grid; gap: 1px; background: var(--line-dark); }
.step {
  background: var(--ink);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 40px) 0;
  align-items: start;
  transition: background .4s var(--ease);
}
.step:hover { background: var(--ink-2); }
.step__n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1;
}
.step h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 10px; }
.step p { color: rgba(251,250,248,.65); max-width: 62ch; font-size: .96rem; }

/* ---------- 10. Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(26px, 3vw, 44px);
}
.post {
  display: flex;
  flex-direction: column;
  background: transparent;
}
.post__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 20px;
}
.post__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.post:hover .post__media img { transform: scale(1.05); }
.post__cat {
  position: absolute;
  left: 0; top: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 8px 13px;
  z-index: 2;
}
.post__date {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 500;
}
.post h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.42rem);
  line-height: 1.22;
  margin-bottom: 12px;
  transition: color .3s var(--ease);
}
.post:hover h3 { color: var(--accent); }
.post p { color: var(--muted); font-size: .94rem; }
.post__more {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 3.4vw, 52px);
  align-items: center;
  padding-bottom: clamp(26px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}
.post--featured .post__media { aspect-ratio: 16 / 10; margin-bottom: 0; }
.post--featured h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }

/* article */
.article-body {
  font-size: 1.055rem;
  line-height: 1.78;
  color: #26262A;
}
.article-body > * + * { margin-top: 1.2em; }
.article-body h2 {
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  margin-top: 2.2em;
  margin-bottom: .1em;
  padding-top: .9em;
  border-top: 1px solid var(--line);
}
.article-body h3 {
  font-size: clamp(1.13rem, 1.9vw, 1.35rem);
  margin-top: 1.9em;
}
.article-body ul, .article-body ol { padding-left: 1.25em; margin-block: 1.2em; }
.article-body li { margin-bottom: .6em; }
.article-body li::marker { color: var(--accent); font-weight: 700; }
.article-body strong { font-weight: 650; color: var(--ink); }
.article-body a { color: var(--accent); border-bottom: 1px solid rgba(212,33,40,.35); }
.article-body a:hover { border-color: var(--accent); }
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.36;
  letter-spacing: -.015em;
  color: var(--ink);
}
.article-body figure { margin: 2.4em 0; }
.article-body figure img { width: 100%; }
.article-body figcaption {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.article-body .callout {
  background: var(--paper-2);
  border-left: 3px solid var(--accent);
  padding: clamp(20px, 2.6vw, 28px);
  font-size: .97rem;
}
.article-body .callout strong { display: block; margin-bottom: 6px; font-family: var(--font-display); letter-spacing: .01em; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  margin-block: 1.6em;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.article-body th {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: var(--paper-2);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  color: rgba(255,255,255,.66);
  margin-top: 26px;
}

.toc {
  background: var(--paper-2);
  padding: 26px 28px;
  border-top: 3px solid var(--accent);
  margin-bottom: 44px;
}
.toc h4 {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--muted);
}
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin-bottom: 7px; font-size: .93rem; }
.toc a:hover { color: var(--accent); }

.share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-family: var(--font-display);
  color: var(--muted);
}
.share a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all .3s var(--ease);
}
.share a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 10 bis. Mise en page magazine ---------- */
.mag {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(26px, 3.4vw, 56px);
  align-items: start;
}
.mag__side { display: grid; gap: clamp(20px, 2.4vw, 30px); }

/* grande carte "à la une" */
.post--hero { display: block; }
.post--hero .post__media { aspect-ratio: 16 / 10; margin-bottom: 24px; }
.post--hero h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.1; }
.post--hero p { font-size: 1.04rem; }

/* carte compacte en ligne */
.post--row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.post--row:last-child { border-bottom: 0; padding-bottom: 0; }
.post--row .post__media { aspect-ratio: 1; margin-bottom: 0; }
.post--row .post__cat { font-size: .55rem; padding: 5px 8px; }
.post--row h3 { font-size: 1.02rem; line-height: 1.28; margin-bottom: 6px; }
.post--row .post__date { margin-bottom: 7px; font-size: .66rem; }
.post--row p, .post--row .post__more { display: none; }

/* numérotation éditoriale */
.post--num { position: relative; }
.post--num .num {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

/* barre de catégories */
.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.cat-chip .n {
  font-size: .66rem;
  color: var(--muted);
  transition: color .3s var(--ease);
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat-chip.is-active .n { color: var(--accent); }

/* recherche */
.searchbox { position: relative; max-width: 380px; width: 100%; }
.searchbox input {
  width: 100%;
  padding: 13px 44px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: .94rem;
}
.searchbox input:focus { outline: none; border-color: var(--ink); background: #fff; }
.searchbox svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  display: none;
}
.empty-state.is-shown { display: block; }

/* barre de progression de lecture */
.read-bar {
  position: fixed;
  left: 0; top: 0;
  z-index: 95;
  height: 3px;
  width: 100%;
  background: transparent;
  pointer-events: none;
}
.read-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .1s linear;
}

/* bloc newsletter */
.news {
  background: var(--ink);
  color: #fff;
  padding: clamp(30px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.4vw, 48px);
  align-items: center;
  border-left: 4px solid var(--accent);
}
.news h3 { font-size: clamp(1.35rem, 2.6vw, 2rem); }
.news p { color: rgba(255,255,255,.68); margin-top: 12px; font-size: .96rem; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input {
  flex: 1 1 220px;
  padding: 15px 18px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: var(--radius);
}
.news input::placeholder { color: rgba(255,255,255,.45); }
.news input:focus { outline: none; border-color: #fff; }
.news .note { font-size: .78rem; color: rgba(255,255,255,.45); margin-top: 14px; }

/* ---------- 11. Galerie projet ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  cursor: zoom-in;
  background: var(--paper-2);
}
.gallery figure:nth-child(6n+1) { grid-column: span 2; aspect-ratio: 16/9; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out), opacity .4s var(--ease);
}
.gallery figure:hover img { transform: scale(1.045); }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.spec { background: var(--paper); padding: 24px 26px; }
.spec dt {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.spec dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,8,9,.97);
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(16px, 4vw, 40px);
  color: rgba(255,255,255,.7);
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .14em;
}
.lb-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.06);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__prev { position: absolute; left: clamp(10px, 3vw, 34px); top: 50%; transform: translateY(-50%); }
.lightbox__next { position: absolute; right: clamp(10px, 3vw, 34px); top: 50%; transform: translateY(-50%); }

/* ---------- 12. Chiffres / bandeau ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat { background: var(--paper); padding: clamp(26px, 3vw, 40px); }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  display: block;
}
.stat .n em { color: var(--accent); font-style: normal; }
.stat .l {
  display: block;
  margin-top: 12px;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 13. CTA ---------- */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.cta .container { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.8rem); max-width: 18ch; }

/* ---------- 14. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.info-list .ico {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
}
.info-list .lbl {
  display: block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-list .val { display: block; font-size: 1rem; line-height: 1.55; }
.info-list .val a:hover { color: var(--accent); }

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}
.form-note { font-size: .82rem; color: var(--muted); }
.form-status {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  font-size: .92rem;
  display: none;
}
.form-status.is-shown { display: block; }

.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease);
}
.map-frame:hover { filter: grayscale(0); }

/* ---------- 15. Pied de page ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(251,250,248,.62);
  padding-top: clamp(56px, 7vw, 92px);
  font-size: .92rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.site-footer h4 {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 11px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; font-size: 1.15rem; }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: .8rem;
  color: rgba(251,250,248,.45);
}
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .3s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* bouton WhatsApp flottant */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- 16. Animations d'apparition ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 16 bis. Mises en page complémentaires ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.img-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 20px);
}
.img-duo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.key-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.key-points li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}
.key-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 14px; height: 2px;
  background: var(--accent);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-grid--feature { grid-template-columns: repeat(2, 1fr); }
  .project-grid--feature > * { grid-column: span 1 !important; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: block; }
  .two-col { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr !important; }
  .cta-grid { grid-template-columns: 1fr !important; }
  .mag { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .hero__caption { display: none; }
  .hero__dots { bottom: 96px; }
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__media { margin-bottom: 4px; }
  .gallery figure:nth-child(6n+1) { grid-column: span 1; aspect-ratio: 3/2; }
}

@media (max-width: 680px) {
  .project-grid, .project-grid--feature { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .hero { min-height: 92svh; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure { aspect-ratio: 1; }
  .img-duo { grid-template-columns: 1fr; }
  .specs, .stats-band { grid-template-columns: 1fr 1fr; }
  .post--row { grid-template-columns: 96px 1fr; gap: 14px; }
  .hero__dots button { width: 26px; }
}

/* ---------- 18. Impression ---------- */
@media print {
  .site-header, .mobile-nav, .wa-float, .cta, .site-footer, .filters { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
