/* ============================================================
   Home Divinemenciel v2 — styles de page
   Pleine largeur façon WMA (gouttières 24px), cartes charte,
   bordures horizontales. Couleurs/typo/arrondis : tokens charte.
   ============================================================ */

:root {
  --w-thin: 270;   /* corps de texte (DM Sans variable) */
  --w-strong: 330; /* titres courants, noms, labels */
  --gutter: 24px;
  --gap: 21px;     /* gouttière interne des grilles (Figma WMA) */
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blanc-amande);
  color: var(--vert-olive);
}
body.ds-body {
  font-weight: var(--w-thin);
  /* fixe la collision de token --text-body (taille vs couleur) qui rendait le texte noir */
  color: var(--vert-olive);
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Pleine largeur, bord à bord */
.container {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: border-box;
}

/* ——— Fil conducteur : label capitales + point coloré (façon WMA) ——— */
.label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-text);
  font-size: var(--text-small);
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}
.label-row.dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-c, var(--vert-pesto));
}

/* ——— Sections ——— */
.section {
  border-top: 1px solid var(--vert-olive-20);
  padding: 106px 0;
}
.section-head { margin-bottom: 48px; }
.section-head .label-row { margin-bottom: 26px; }

/* Titres éditoriaux : phrase en DM Sans, mots-clés en Instrument italic coloré */
.section-title {
  font-family: var(--font-text);
  font-weight: var(--w-thin);
  font-size: clamp(26px, 3.5vw, 51px);
  line-height: 1.18;
  letter-spacing: 0;
  margin: 0;
  text-indent: 0;
  max-width: 28em;
  text-wrap: pretty;
}
.t-acc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06em;
  line-height: 0;
}

/* ============ Révélation du footer (façon WMA) ============ */
.page-main {
  position: relative;
  z-index: 1;
  background: var(--blanc-amande);
}
@media (min-width: 981px) {
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
  }
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 240ms ease, border-color 240ms ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.scrolled {
  background: var(--blanc-amande);
  border-bottom-color: var(--vert-olive-20);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: var(--w-strong);
}
.header-nav a {
  color: var(--blanc-casse);
  transition: color 150ms ease;
}
.header-nav a:hover { color: var(--jaune-mousse); }
.site-header.scrolled .header-nav a { color: var(--vert-olive); }
.site-header.scrolled .header-nav a:hover { color: var(--orange-patate); }
.header-cta { display: flex; align-items: center; gap: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 43, 0.32);
}

/* « Bienvenue » géant en arrière-plan — Instrument italic 700px @1920,
   contour orange 70%, déborde des deux côtés (maquette Figma) */
.hero-bienvenue {
  position: absolute;
  top: 11.6%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 36.5vw;
  line-height: 1.12;
  letter-spacing: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--hero-accent, var(--orange-patate)) 70%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Texte blanc centré — DM Sans 36px, lh 112% (maquette Figma) */
.hero-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 25px));
  z-index: 2;
  width: min(600px, 88vw);
  text-align: center;
}
.hero-center h1 {
  font-family: var(--font-text);
  font-weight: var(--w-strong);
  font-size: clamp(22px, 1.88vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bienvenue {
    opacity: 0;
    animation: heroFade 1.2s ease 0.2s forwards;
  }
  .hero-center {
    opacity: 0;
    animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  }
  @keyframes heroFade { to { opacity: 1; } }
  @keyframes heroRise {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 55px)); }
    to { opacity: 1; transform: translate(-50%, calc(-50% + 25px)); }
  }
}

/* ============ MANIFESTE (carte colorée arrondie) ============ */
.manifesto {
  padding: 0;
  position: relative;
  z-index: 2;
  margin-top: -28px; /* la carte chevauche le hero : ses coins arrondis révèlent la photo, pas le fond crème */
}
.manifesto-card {
  background: var(--manif-bg, var(--orange-patate));
  color: var(--blanc-casse);
  border-radius: 28px;
  padding: clamp(72px, 9vw, 150px) clamp(32px, 7vw, 130px);
}
.manifesto p {
  margin: 0 auto;
  max-width: 1280px;
  text-align: center;
  font-family: var(--font-text);
  font-weight: var(--w-thin);
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.32;
  text-wrap: pretty;
}
.manifesto .w {
  opacity: 0.22;
  transition: opacity 320ms ease;
}
.manifesto .w.on { opacity: 1; }
.manifesto .w.acc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08em;
  line-height: 0;
}

/* ============ RÉALISATIONS (mosaïque WMA — cotes Figma @1920 :
   cartes 1076 / 762, même ratio d'image 1076:630, calées en haut,
   gap 24px, 66px entre rangées) ============ */
.works-row {
  display: grid;
  gap: var(--gutter);
  align-items: start;
  margin-bottom: 66px;
}
.works-row.wide-narrow { grid-template-columns: 1076fr 762fr; }
.works-row.narrow-wide { grid-template-columns: 762fr 1076fr; }

.work-card { cursor: pointer; }
.work-img {
  position: relative;
  border-radius: var(--work-radius, 16px);
  overflow: hidden;
  aspect-ratio: 1076 / 630;
}
.work-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* gros cadre coloré au survol (signature WMA) */
.work-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0px solid var(--wc, var(--vert-olive));
  border-radius: inherit;
  pointer-events: none;
  transition: border-width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-img::after { border-width: 24px; }
.work-card:hover .work-img img { transform: scale(1.035); }

/* « bouton » qui suit la souris, texte qui défile à l'intérieur */
.work-follow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  width: 158px;
  overflow: hidden;
  background: var(--vert-olive);
  color: var(--jaune-mousse);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  padding: 12px 0;
  border-radius: var(--radius-pill, 999px);
  opacity: 0;
  transform: translate(-50%, -140%) scale(0.7);
  transition: opacity 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-follow {
  opacity: 1;
  transform: translate(-50%, -140%) scale(1);
}
.wf-track {
  display: inline-flex;
  white-space: nowrap;
  width: max-content;
}
.wf-track span { padding-right: 14px; }
@media (prefers-reduced-motion: no-preference) {
  /* le défilement ne tourne qu'au survol de la carte (perf : pas d'animation à vide) */
  .wf-track { animation: wfScroll 2.6s linear infinite; animation-play-state: paused; }
  .work-card:hover .wf-track { animation-play-state: running; }
  @keyframes wfScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}

.work-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
}
.work-title {
  font-family: var(--font-text);
  font-weight: var(--w-strong);
  font-size: clamp(26px, 1.98vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-num {
  font-family: var(--font-text);
  font-size: clamp(16px, 1.09vw, 21px);
  line-height: 1.2;
  color: var(--vert-olive);
  white-space: nowrap;
}

/* — fin de section centrée (façon WMA) — */
.works-end {
  margin-top: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 44px;
}
.works-end-label {
  font-family: var(--font-text);
  font-size: var(--text-small);
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}
.works-end-title {
  font-family: var(--font-text);
  font-weight: var(--w-thin);
  font-size: clamp(40px, 4.6vw, 88px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 17em;
  text-wrap: balance;
}

/* — Titres lettre par lettre (roll vertical au survol) — */
.ft { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; height: 1.2em; }
.ft-roll {
  display: inline-flex;
  flex-direction: column;
  transition: transform 480ms cubic-bezier(0.76, 0, 0.24, 1);
}
.ft-roll span { display: block; line-height: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .work-card:hover .ft-roll { transform: translateY(-50%); }
}

/* ============ SOLUTIONS ============ */
/* — Liste des services (modèle lestudio + hover photo interactif) — */
.svc-table {
  margin-top: 88px;
  border-bottom: 1px solid var(--vert-olive-20);
}
.svc-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 12px;
  border-top: 1px solid var(--vert-olive-20);
  transition: background 250ms ease;
  cursor: pointer;
}
.svc-row:hover {
  background: color-mix(in srgb, var(--svc-c, var(--vert-olive)) 12%, var(--blanc-amande));
  z-index: 5;
}
.svc-name {
  font-family: var(--font-text);
  font-weight: var(--w-strong);
  font-size: clamp(20px, 2vw, 28px);
  margin: 0;
  display: flex;
  position: relative;
  z-index: 3;
  transition: color 200ms ease;
}
.svc-name span {
  display: inline-block;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-row:hover .svc-name { color: var(--svc-c, var(--vert-olive)); }
.svc-row:hover .svc-name span { transform: translateX(14px); }
.svc-right {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
}
.svc-items {
  font-family: var(--font-text);
  font-size: var(--text-small);
  color: var(--vert-olive-80);
  text-align: right;
  margin: 0;
}
.svc-arrow {
  display: inline-flex;
  overflow: hidden;
}
.svc-arrow svg {
  transform: translateX(110%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
  color: var(--svc-c, var(--vert-olive));
}
.svc-row:hover .svc-arrow svg {
  transform: translateX(0);
  opacity: 1;
}
/* photo qui apparaît et suit la souris (ressort + rotation) */
.svc-img {
  position: absolute;
  top: 50%;
  left: 55%;
  width: 256px;
  height: 192px;
  object-fit: cover;
  border-radius: 16px;
  z-index: 2;
  pointer-events: none;
  transform: translate(-10%, -50%) scale(0) rotate(-12.5deg);
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1),
    top 300ms ease-out, left 300ms ease-out;
}
.svc-row:hover .svc-img {
  transform: translate(-10%, -50%) scale(1) rotate(12.5deg);
}

/* ============ ILS EN PARLENT (cartes défilantes WMA) ============ */
.testi-section { padding-bottom: 110px; }
.testi-marquee {
  overflow: hidden;
  width: 100%;
}
.testi-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 2px 0;
}
@media (prefers-reduced-motion: no-preference) {
  .testi-track { animation: testiScroll 55s linear infinite; }
  .testi-marquee:hover .testi-track { animation-play-state: paused; }
  @keyframes testiScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
}
.testi-card {
  width: 472px;
  min-height: 533px;
  flex: none;
  border-radius: 16px;
  padding: 34px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  box-sizing: border-box;
}
.testi-card-quote {
  font-family: var(--font-text);
  font-weight: var(--w-thin);
  font-size: 26px;
  line-height: 1.13;
  margin: 0;
  text-wrap: pretty;
}
.testi-mark {
  font-family: var(--font-display);
  font-size: 1.4em;
  line-height: 0;
}
.testi-card-name {
  font-family: var(--font-text);
  font-weight: var(--w-strong);
  font-size: 36px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 7px 0;
}
.testi-card-org {
  font-family: var(--font-text);
  font-size: var(--text-small);
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  margin: 0;
  opacity: 0.8;
}

/* ============ CLIENTS (carte colorée pleine largeur, coins arrondis) ============ */
.clients-block { padding: 0; }
.clients-card {
  background: var(--vert-olive);
  color: var(--blanc-casse);
  border-radius: 28px;
  padding: 106px 0;
}
.clients-card .section-title { color: var(--blanc-casse); }
/* Titre centré au-dessus des logos, 33% plus petit */
.clients-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.clients-title {
  font-size: clamp(18px, 2.35vw, 34px);
  max-width: none;
}
/* Carrousel de logos en défilement auto, fondus sur les bords */
.clients-marquee {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.clients-marquee::before,
.clients-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 110px;
  z-index: 1;
  pointer-events: none;
}
.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--vert-olive), transparent);
}
.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--vert-olive), transparent);
}
.clients-track {
  display: flex;
  align-items: center;
  gap: clamp(56px, 6vw, 96px);
  width: max-content;
  padding-right: clamp(56px, 6vw, 96px);
}
@media (prefers-reduced-motion: no-preference) {
  .clients-track { animation: clientsScroll 36s linear infinite; }
  @keyframes clientsScroll {
    to { transform: translateX(-50%); }
  }
}
.client-logo {
  width: auto;
  flex: none;
  opacity: 0.85;
  transition: opacity 180ms ease;
}
.client-logo:hover { opacity: 1; }

/* ============ CONTACT (photo plein écran, façon WMA) ============ */
.contact-hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 43, 0.55);
}
.contact-content {
  position: relative;
  z-index: 1;
  color: var(--blanc-casse);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gutter);
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  margin: 0;
}
.contact-title .accent {
  font-style: italic;
  text-transform: none;
  color: var(--jaune-mousse);
}
.contact-sub {
  font-family: var(--font-text);
  font-weight: var(--w-thin);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.5;
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.contact-mail-link {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--jaune-mousse);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 160ms ease;
}
.contact-mail-link:hover { color: var(--rose-sorbet); }

/* ============ FOOTER (révélé sous le bloc contact) ============ */
.site-footer {
  background: var(--vert-olive);
  color: var(--blanc-casse);
  padding: 90px 0 44px 0;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-bottom: 70px;
}
.footer-col h4 {
  font-family: var(--font-text);
  font-size: var(--text-caption);
  font-weight: var(--w-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: rgba(245, 245, 245, 0.55);
  margin: 0 0 18px 0;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--text-body);
}
.footer-col a { transition: color 150ms ease; }
.footer-col a:hover { color: var(--jaune-mousse); }
.city-paris { color: var(--vert-pesto); }
.city-marseille { color: var(--orange-patate); }
.city-strasbourg { color: var(--rose-sorbet); }
.footer-bottom {
  border-top: 1px solid rgba(245, 245, 245, 0.18);
  padding-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-logo-img { width: min(560px, 70vw); height: auto; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--text-caption);
  font-weight: var(--w-thin);
  color: rgba(245, 245, 245, 0.6);
}
.footer-baseline { color: var(--rose-sorbet); }

/* ============ PAGE RÉALISATIONS ============ */
.works-page-head { border-top: none; padding-top: 170px; }

/* ============ PAGE À PROPOS ============ */
.about-head { border-top: none; padding-top: 170px; padding-bottom: 64px; }
.about-head .section-head { margin-bottom: 40px; }
.about-intro {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.55;
  font-weight: var(--w-thin);
  max-width: 46ch;
  margin: 0;
  text-wrap: pretty;
}
.about-banner-wrap { padding-bottom: 30px; }
.about-banner {
  border-radius: var(--work-radius, 16px);
  overflow: hidden;
  height: min(72vh, 720px);
}
.about-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-stats-block { border-top: none; padding: 80px 0; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.method-col {
  border-top: 1px solid var(--vert-olive-20);
  padding-top: 32px;
}
.method-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 3.4vw, 56px);
  margin: 0 0 18px 0;
}
.method-desc {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--w-thin);
  max-width: 38ch;
  margin: 0;
  text-wrap: pretty;
}

/* ============ PAGES PLACEHOLDER ============ */
.placeholder-hero {
  border-top: none;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  padding-top: 170px;
}
.placeholder-hero .label-row { margin-bottom: 26px; }

@media (max-width: 980px) {
  .about-stats, .method-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-banner { height: 320px; }
}

/* ============ Apparition des sections au scroll ============ */
@media (prefers-reduced-motion: no-preference) {
  .rv {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .rv.rv-in {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .header-nav { display: none; }
  .section-title { text-indent: 0; }
  .works-row.wide-narrow,
  .works-row.narrow-wide { grid-template-columns: 1fr; }
  .svc-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .svc-items { text-align: left; }
  .svc-img { display: none; }
  .svc-arrow { display: none; }
  .testi-card { width: 340px; min-height: 460px; }
  .testi-card-quote { font-size: 20px; }
  .testi-card-name { font-size: 28px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 72px 0; }
  .contact-actions { flex-direction: column; gap: 20px; }
}
