/* ============================================================
   DK Propreté — Design tokens & global styles
   ============================================================ */
:root {
  /* Couleurs */
  --white: #FFFFFF;
  --gray-50: #F7F7F7;
  --gray-100: #EFEFEF;
  --gray-200: #E2E2E2;
  --ink: #2C2C2C;
  --ink-soft: #5A5A5A;
  --green: #2D6A4F;        /* signature */
  --green-dark: #235540;
  --green-light: #52B788;  /* accent / hover */
  --night: #1A1A2E;        /* hero overlays / footer */

  /* Typo */
  --serif: "Playfair Display", Georgia, serif;
  --label: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* Mesures */
  --maxw: 1200px;
  --gutter: clamp(22px, 5vw, 64px);
  --radius: 4px;
  --header-h: 88px;
  --header-h-scrolled: 64px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-scrolled); }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-light); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--night); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-soft); line-height: 1.75; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.bg-gray { background: var(--gray-50); }
.bg-night { background: var(--night); color: var(--white); }
.center { text-align: center; }
.section__head { max-width: 720px; margin-inline: auto; }
.section__head.center { margin-bottom: clamp(40px, 5vw, 64px); }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--label);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .02em;
  padding: 15px 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .3s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(45,106,79,.7); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: #2a2a48; transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.textlink {
  font-family: var(--label); font-weight: 600; font-size: 15px;
  color: var(--green); display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid transparent; padding-bottom: 2px; transition: all .25s var(--ease);
}
.textlink .arrow { transition: transform .25s var(--ease); }
.textlink:hover { color: var(--green-light); border-color: currentColor; }
.textlink:hover .arrow { transform: translateX(4px); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--gray-200), 0 12px 30px -22px rgba(0,0,0,.35); height: var(--header-h-scrolled); }
.header.scrolled.at-top-dark { } /* placeholder */

/* Logo */
.logo { position: relative; display: inline-flex; align-items: center; line-height: 1; }
.logo__img { height: 40px; width: auto; display: block; transition: opacity .35s var(--ease), height .35s var(--ease); }
.logo__img--color { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.header.scrolled .logo__img--white { opacity: 0; }
.header.scrolled .logo__img--color { opacity: 1; }
.header.scrolled .logo__img { height: 34px; }

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  font-family: var(--label); font-weight: 600; font-size: 14.5px;
  color: rgba(255,255,255,.92); padding: 12px 16px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 7px; transition: color .25s, background .25s;
}
.header.scrolled .nav__link { color: var(--ink); }
.nav__link:hover { color: var(--green-light); }
.header.scrolled .nav__link:hover { color: var(--green); background: var(--gray-50); }
.nav__link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.nav__item.open .nav__link .chev { transform: rotate(-135deg) translateY(-2px); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.35); border: 1px solid var(--gray-100);
  width: 320px; padding: 10px; opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav__item.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__link { display: flex; gap: 13px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; transition: background .2s; }
.dropdown__link:hover { background: var(--gray-50); }
.dropdown__ico { flex: none; width: 38px; height: 38px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 18px; }
.dropdown__link:hover .dropdown__ico { background: var(--green-light); }
.dropdown__t { font-family: var(--label); font-weight: 600; font-size: 14px; color: var(--ink); line-height: 1.3; display: block; }
.dropdown__d { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }

.header__cta { display: flex; align-items: center; gap: 14px; }
.header .btn--primary { padding: 12px 24px; }

/* Burger */
.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { width: 22px; height: 2px; background: #fff; transition: all .3s; }
.header.scrolled .burger span { background: var(--night); }

/* ============================================================
   S1 — HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg image-slot { width: 100%; height: 100%; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,15,28,.86) 0%, rgba(15,15,28,.64) 42%, rgba(15,15,28,.18) 100%); }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: var(--header-h); }
.hero__col { max-width: 720px; }
.hero .eyebrow { color: var(--green-light); margin-bottom: 22px; }
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero__lead { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 560px; margin-bottom: 38px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--label); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll .line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,0)); animation: scrollPulse 2s var(--ease) infinite; }
@keyframes scrollPulse { 0%,100%{ transform: scaleY(.5); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================
   S2 — Réassurance
   ============================================================ */
.assurance { border-bottom: 1px solid var(--gray-100); }
.assurance__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.assure { display: flex; align-items: center; gap: 16px; padding: 38px clamp(16px, 2.5vw, 36px); position: relative; }
.assure:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 46px; width: 1px; background: var(--gray-200); }
.assure__ico { flex: none; width: 50px; height: 50px; border-radius: 50%; background: rgba(45,106,79,.09); color: var(--green); display: grid; place-items: center; }
.assure__ico svg { width: 24px; height: 24px; }
.assure__big { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--night); line-height: 1; display: block; }
.assure__lbl { font-family: var(--label); font-weight: 600; font-size: 13px; color: var(--ink-soft); line-height: 1.3; margin-top: 4px; }

/* ============================================================
   S3 — Présentation
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: -1; }
.intro__text .eyebrow { margin-bottom: 18px; }
.intro__text h2 { margin-bottom: 24px; }
.intro__text p { color: var(--ink-soft); margin-bottom: 18px; }
.intro__text .textlink { margin-top: 10px; }
.split__media { position: relative; }
.split__media image-slot { width: 100%; aspect-ratio: 4/5; }
.media-badge { position: absolute; bottom: -26px; left: -26px; background: var(--green); color: #fff; padding: 22px 26px; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(45,106,79,.7); max-width: 220px; }
.media-badge b { font-family: var(--serif); font-size: 2.2rem; display: block; line-height: 1; }
.media-badge span { font-family: var(--label); font-weight: 600; font-size: 12.5px; letter-spacing: .03em; opacity: .92; }

/* ============================================================
   S4 — Services grid
   ============================================================ */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scard {
  position: relative; border-radius: 12px; overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px;
  color: #fff; isolation: isolate; cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(0,0,0,.5); }
.scard__bg { position: absolute; inset: 0; z-index: -2; }
.scard__bg image-slot { width: 100%; height: 100%; }
.scard__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26,26,46,.15) 0%, rgba(26,26,46,.45) 50%, rgba(26,26,46,.9) 100%); transition: background .4s var(--ease); }
.scard:hover .scard__veil { background: linear-gradient(180deg, rgba(45,106,79,.55) 0%, rgba(35,85,64,.82) 100%); }
.scard__ico { width: 48px; height: 48px; border-radius: 10px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); display: grid; place-items: center; margin-bottom: 16px; transition: background .4s; }
.scard__ico svg { width: 24px; height: 24px; }
.scard:hover .scard__ico { background: rgba(255,255,255,.25); }
.scard h3 { color: #fff; margin-bottom: 10px; }
.scard p { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.55; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s var(--ease), margin .45s var(--ease); }
.scard:hover p { max-height: 120px; opacity: 1; }
.scard__link { font-family: var(--label); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--green-light); transition: color .3s; }
.scard:hover .scard__link { color: #fff; }
.scard__link .arrow { transition: transform .3s var(--ease); }
.scard:hover .scard__link .arrow { transform: translateX(4px); }

/* ============================================================
   S5 — Chiffres clés
   ============================================================ */
.stats { position: relative; color: #fff; overflow: hidden; }
.stats__bg { position: absolute; inset: 0; z-index: 0; }
.stats__bg image-slot { width: 100%; height: 100%; }
.stats__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,15,28,.78), rgba(15,15,28,.88)); }
.stats__inner { position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.stat { text-align: center; }
.stat b { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; color: #fff; display: block; }
.stat .plus { color: var(--green-light); }
.stat span { font-family: var(--label); font-weight: 600; font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.78); display: block; margin-top: 12px; }
.stat__sep { width: 40px; height: 2px; background: var(--green-light); margin: 16px auto 0; }
.stats__foot { text-align: center; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.7rem); color: #fff; max-width: 760px; margin-inline: auto; line-height: 1.4; }

/* ============================================================
   S6 — Témoignages
   ============================================================ */
.tslider { position: relative; }
.ttrack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tcard { background: #fff; border: 1px solid var(--gray-100); border-radius: 14px; padding: 38px 34px; display: flex; flex-direction: column; box-shadow: 0 18px 40px -30px rgba(0,0,0,.3); }
.tcard__stars { color: #E8B339; letter-spacing: 3px; font-size: 17px; margin-bottom: 20px; }
.tcard__quote { font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--night); font-style: italic; margin-bottom: 24px; flex: 1; }
.tcard__who { display: flex; align-items: center; gap: 13px; }
.tcard__av { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--label); font-weight: 700; font-size: 15px; }
.tcard__name { font-family: var(--label); font-weight: 600; font-size: 15px; color: var(--ink); display: block; }
.tcard__role { font-size: 13px; color: var(--ink-soft); }
.tquote-mark { font-family: var(--serif); font-size: 4rem; color: var(--green-light); line-height: .5; height: 28px; opacity: .35; }
.tdots { display: none; justify-content: center; gap: 10px; margin-top: 28px; }
.tdot { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-200); transition: all .25s var(--ease); }
.tdot.active { background: var(--green); width: 26px; border-radius: 5px; }
@media (max-width: 980px) { .tdots { display: flex; } }

/* ============================================================
   S7 — Logos clients
   ============================================================ */
.logos__head { text-align: center; margin-bottom: 46px; }
.logos__head h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--night); margin-bottom: 8px; }
.logos__head p { color: var(--ink-soft); }
.marquee { 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); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.clogo { height: 42px; display: flex; align-items: center; gap: 12px; filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s; }
.clogo:hover { filter: grayscale(0); opacity: 1; }
.clogo__mark { width: 38px; height: 38px; border-radius: 8px; background: var(--gray-100); display: grid; place-items: center; color: var(--green); font-family: var(--serif); font-weight: 700; font-size: 18px; }
.clogo__name { font-family: var(--label); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: .01em; white-space: nowrap; }
.clogo__name small { display: block; font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* ============================================================
   S8 — CTA finale
   ============================================================ */
.cta { background: var(--green); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(82,183,136,.45), transparent 55%); }
.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 760px; margin-inline: auto; }
.cta h2 { color: #fff; margin-bottom: 18px; }
.cta p { color: rgba(255,255,255,.9); font-size: 1.15rem; margin-bottom: 34px; }
.cta__sub { margin-top: 24px; font-family: var(--label); font-weight: 500; font-size: 14.5px; color: rgba(255,255,255,.85); }
.cta__sub a { font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.5); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--night); color: rgba(255,255,255,.7); padding-top: clamp(64px, 7vw, 92px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(36px, 5vw, 72px); padding-bottom: 56px; }
.footer .logo { margin-bottom: 20px; }
.footer .logo__img { height: 48px; }
.footer__base-line { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 26px; max-width: 280px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; transition: all .3s var(--ease); }
.footer__social a:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-family: var(--label); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 15px; transition: color .2s; width: fit-content; }
.footer__links a:hover { color: var(--green-light); }
.footer__contact { display: flex; flex-direction: column; gap: 16px; }
.footer__contact li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; list-style: none; }
.footer__contact .ico { flex: none; width: 20px; color: var(--green-light); margin-top: 2px; }
.footer__contact a:hover { color: #fff; }
.footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer__base a:hover { color: #fff; }

/* ============================================================
   Animations (fade-up)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .reveal[data-d="1"] { transition-delay: .1s; }
  .reveal[data-d="2"] { transition-delay: .2s; }
  .reveal[data-d="3"] { transition-delay: .3s; }
  .reveal[data-d="4"] { transition-delay: .4s; }
  .reveal[data-d="5"] { transition-delay: .5s; }
}

/* ============================================================
   Mobile menu panel
   ============================================================ */
.mobile-panel { position: fixed; inset: 0; z-index: 200; background: var(--night); color: #fff; padding: 28px var(--gutter); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.mobile-panel.open { transform: none; }
.mobile-panel__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-panel__top .logo__img { height: 38px; }
.mobile-close { font-size: 32px; color: #fff; line-height: 1; width: 44px; height: 44px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { font-family: var(--serif); font-size: 1.7rem; color: #fff; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a.sub { font-family: var(--label); font-size: 1rem; font-weight: 500; padding-left: 16px; color: rgba(255,255,255,.75); border-bottom: none; }
.mobile-panel .btn { margin-top: 32px; justify-content: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .ttrack { grid-template-columns: 1fr; }
  .tcard { display: none; }
  .tcard.active { display: flex; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .assurance__grid { grid-template-columns: repeat(2, 1fr); }
  .assure:nth-child(2)::after { display: none; }
  .assure { padding: 28px 18px; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media image-slot { aspect-ratio: 16/11; }
  .media-badge { left: 0; }
  .services__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}
