/* Diaaya — feuille de style principale (v3, refonte visuelle) */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-800.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101114;
  --ink-2: #23252c;
  --paper: #faf8f3;
  --white: #fff;
  --muted: #5d6370;
  --line: #e7e2d6;
  --cyan: #00a3d9;
  --magenta: #e4007c;
  --yellow: #f5c400;
  --yellow-deep: #e0af00;
  --yellow-ink: #3a2e00;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 48px rgba(16, 17, 20, 0.14);
  --shadow-sm: 0 8px 24px rgba(16, 17, 20, 0.08);
  --max: 1160px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Sora", var(--sans);
  --ease: cubic-bezier(.22, .68, .34, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: .6rem 1rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { left: .5rem; top: .5rem; }

.cmyk {
  display: flex;
  height: 4px;
}
.cmyk span { flex: 1; }
.cmyk span:nth-child(1) { background: var(--cyan); }
.cmyk span:nth-child(2) { background: var(--magenta); }
.cmyk span:nth-child(3) { background: var(--yellow); }
.cmyk span:nth-child(4) { background: var(--ink); }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 248, 243, .97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  position: relative;
}

.logo { display: flex; align-items: center; }
.logo img {
  width: 152px;
  height: auto;
  display: block;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 8px;
  padding: .5rem .75rem;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
}

.nav { display: flex; align-items: center; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: .45rem .6rem;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--yellow);
}

.nav-cta { margin-left: .35rem; }
.nav-cta a {
  padding: 0;
  border-bottom: 0 !important;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5rem .95rem; font-size: .82rem; border-radius: 999px; }

.btn-primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 10px 24px rgba(245, 196, 0, .35);
}
.btn-primary:hover { background: var(--yellow-deep); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  outline: 1px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }

.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; }

.btn-whatsapp { background: #25d366; color: #06371c; }
.btn-whatsapp:hover { background: #1fbd5a; }

/* ---------- Hero slider (accueil) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  height: 88vh;
  min-height: 560px;
  max-height: 840px;
  color: var(--white);
  background: var(--ink);
}

.hero-slides {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 7s linear;
}
.hero-slide.is-active img { transform: scale(1.1); }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 17, 20, .82) 0%, rgba(16, 17, 20, .45) 55%, rgba(16, 17, 20, .35) 100%),
    linear-gradient(0deg, rgba(16, 17, 20, .55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 3.5rem;
}

.dots-cmyk {
  display: inline-flex;
  gap: .3rem;
  margin-right: .55rem;
  vertical-align: middle;
}
.dots-cmyk span { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dots-cmyk span:nth-child(1) { background: var(--cyan); }
.dots-cmyk span:nth-child(2) { background: var(--magenta); }
.dots-cmyk span:nth-child(3) { background: var(--yellow); }

.kicker {
  display: inline-flex;
  align-items: center;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 1rem;
}
.hero-content .kicker { color: var(--yellow); }

.hero h1,
.hero .slide-title,
.page-hero h1,
.section h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.hero h1,
.hero .slide-title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  max-width: 15ch;
  margin: 0 0 1.1rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: #ece8df;
  margin: 0 0 1.7rem;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.3rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  pointer-events: none;
}
.hero-controls > * { pointer-events: auto; }

.hero-dots { display: flex; gap: .5rem; }
.hero-dots button {
  width: 26px;
  height: 5px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: background-color .2s ease, width .2s ease;
  text-indent: -9999px;
  overflow: hidden;
}
.hero-dots button.is-active { background: var(--yellow); width: 40px; }

.hero-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .35);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .22); }

.hero-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 1.4rem;
  z-index: 3;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 99px;
  display: none;
}
.hero-scroll::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  background: var(--yellow);
  border-radius: 99px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--ink);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.7rem 0;
}
.stat {
  text-align: center;
  padding: .3rem 1rem;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--yellow);
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  font-size: .82rem;
  color: #c9c6bd;
  margin-top: .25rem;
}

/* ---------- Sections / Cards ---------- */

.section { padding: 4.6rem 0; }
.section-tight { padding-top: 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); margin: 0; }
.section p.sub { margin: .5rem 0 0; color: var(--muted); max-width: 52ch; }

.grid-3,
.grid-4,
.grid-2 { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.7rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: rgba(245, 196, 0, .14);
  color: var(--yellow-ink);
}
.icon-circle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card.card-cyan .icon-circle { background: rgba(0, 163, 217, .12); color: var(--cyan); }
.card.card-magenta .icon-circle { background: rgba(228, 0, 124, .12); color: var(--magenta); }
.card.card-ink .icon-circle { background: rgba(16, 17, 20, .08); color: var(--ink); }

.card h3, .card h2 { margin: .1rem 0 .5rem; font-size: 1.18rem; font-family: var(--display); font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card ul {
  margin: .5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.card ul li { margin-bottom: .25rem; }

.swatch {
  width: 42px;
  height: 8px;
  border-radius: 99px;
  margin-bottom: .9rem;
}
.swatch.cyan { background: var(--cyan); }
.swatch.magenta { background: var(--magenta); }
.swatch.yellow { background: var(--yellow); }
.swatch.ink { background: var(--ink); }

.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 3.6rem 0 2.7rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -6%;
  top: -40%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 196, 0, .22), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero p { color: #d7d3c8; max-width: 58ch; }

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.2rem;
  align-items: center;
}

.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Logos clients ---------- */

.logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
.logos figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 122px;
  display: grid;
  place-items: center;
  padding: .9rem;
  position: relative;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.logos figure:hover { box-shadow: var(--shadow-sm); border-color: transparent; }
.logos img {
  max-height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) opacity(.72);
  transition: filter .25s ease;
}
.logos figure:hover img { filter: grayscale(0) opacity(1); }
.logos figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- FAQ ---------- */

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: .7rem;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--yellow-ink);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- Galerie / catalogue / contact ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #ddd;
  aspect-ratio: 1;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.gallery a:hover img { transform: scale(1.06); }

.catalogue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.catalogue a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.catalogue img { width: 100%; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.3rem;
}

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin: 0 0 1.1rem; }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--magenta); }

form { display: grid; gap: .8rem; }
label { font-weight: 700; font-size: .9rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .78rem .9rem;
  font: inherit;
  background: var(--white);
}
input:focus, textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }

.map-ph {
  margin-top: 1.3rem;
  border-radius: var(--radius);
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 163, 217, .25), transparent 28%),
    radial-gradient(circle at 70% 60%, rgba(228, 0, 124, .18), transparent 30%),
    repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(16, 17, 20, .06) 28px),
    repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(16, 17, 20, .06) 28px),
    #dfe7ea;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.6rem;
}
.map-ph strong { display: block; margin-bottom: .35rem; }
.map-ph p { margin: 0 0 1.1rem; color: var(--ink-2); }

.wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #06371c;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; fill: currentColor; }

.site-footer {
  background: var(--ink);
  color: #d7d3c8;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}
.foot-title {
  color: var(--white);
  font-size: .95rem;
  font-weight: 800;
  font-family: var(--display);
  margin: 0 0 .8rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .35rem 0; }
.copy {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.1rem;
  font-size: .85rem;
}
.mt { margin-top: 1.5rem; }
.prose { max-width: 720px; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, .92);
  display: none;
  place-items: center;
  z-index: 80;
  padding: 1.5rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 8px; }
.lightbox button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: .45rem .8rem;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .stat:nth-child(3) { border-left: 0; }
}

@media (min-width: 720px) {
  .hero-arrow { display: inline-flex; }
  .hero-scroll { display: block; }
}

@media (max-width: 900px) {
  .grid-4, .gallery, .logos { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .split, .contact-grid, .catalogue, .foot-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: .7rem 1rem 1.1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta a { display: inline-flex; }
  .hero { height: 78vh; min-height: 480px; }
  .hero-controls { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa:hover { transform: none; }
  .hero-slide, .hero-slide img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::before { animation: none; }
}
