/* ==========================================================================
   Design tokens — from Figma
   ========================================================================== */
:root {
  --c-bg-dark: #161616;
  --c-bg-cream: #f0ebd6;
  --c-bg-white: #ffffff;
  --c-bg-panel: #242424;

  --c-text-dark: #161616;
  --c-text-cream: #f0ebd6;
  --c-text-muted: #868585;
  --c-text-muted-2: #8d8c8c;
  --c-text-grey: #aeaead;
  --c-text-grey-2: #cececc;

  --c-accent: #f96f4d;
  --c-whatsapp: #459013;

  --f-sans: 'Inter', system-ui, sans-serif;
  --f-serif: 'Gloock', Georgia, serif;
  --f-nav: 'Lexend', 'Inter', sans-serif;

  --container-max: 1448px;
  --gutter: clamp(20px, 5vw, 140px);
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ==========================================================================
   Custom cursor
   ========================================================================== */
@media (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], input, select, textarea, label { cursor: none; }
}

.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, background .3s ease, border-color .3s ease, opacity .3s ease;
  opacity: 0;
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .3s ease;
  opacity: 0;
}
.cursor.visible { opacity: 1; }
.cursor-dot.visible { opacity: 1; }

.cursor.hovering {
  width: 64px;
  height: 64px;
  background: rgba(249, 111, 77, 0.12);
  border-color: var(--c-accent);
}
.cursor.clicking {
  width: 28px;
  height: 28px;
  background: rgba(249, 111, 77, 0.25);
}
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-dark);
  background: var(--c-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.05; }

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

.eyebrow {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 28px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 42px var(--gutter) 0;
  display: flex;
  align-items: center;
  gap: 0;
  transition: padding .4s ease, background .4s ease, backdrop-filter .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(22, 22, 22, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
}
.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  font-family: var(--f-nav);
  font-size: 16px;
  color: var(--c-text-cream);
  transition: color .2s;
}
.nav__list a:hover { color: var(--c-accent); }
.nav__list li:first-child a {
  font-weight: 400;
}
.nav__cta {
  margin-left: auto;
}

/* Buttons (shared) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--f-nav);
  font-size: 14px;
  color: #fff;
  transition: transform .2s, filter .2s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); }
.btn--whatsapp { background: var(--c-whatsapp); }
.btn .iconify { font-size: 22px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: var(--c-text-cream);
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.nav__toggle .iconify { font-size: 28px; }

@media (max-width: 1024px) {
  .nav__list, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open {
    flex-wrap: wrap;
    background: rgba(22,22,22,0.98);
    padding-bottom: 30px;
  }
  .nav.is-open .nav__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    width: 100%;
    order: 10;
  }
  .nav.is-open .nav__cta { display: block; order: 11; margin-top: 12px; margin-left: 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--c-bg-dark);
  color: var(--c-text-cream);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-top: 110px;
  padding-bottom: 100px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr auto;
    gap: 60px;
  }
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 1.12;
  max-width: 780px;
  min-height: 3em;
}
.hero__cursor {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 300;
  animation: blink .75s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero__portrait {
  width: clamp(140px, 15vw, 207px);
  aspect-ratio: 207 / 257;
  overflow: hidden;
  background: #2a2a2a;
  justify-self: end;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
}
.hero__portrait-default,
.hero__portrait-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: opacity .35s ease, transform .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero__portrait-hover {
  opacity: 0;
  transform: scale(1.08) rotate(3deg);
}
.hero__portrait:hover .hero__portrait-default {
  opacity: 0;
  transform: scale(0.92) rotate(-3deg);
}
.hero__portrait:hover .hero__portrait-hover {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.hero__socials {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted-2);
}
.hero__socials a {
  display: inline-flex;
  align-items: center;
  color: var(--c-text-muted-2);
  transition: color .2s;
}
.hero__socials a:hover { color: var(--c-accent); }
.social-sep {
  width: auto;
  height: 16px;
  flex-shrink: 0;
  display: inline-block;
}

.hero__desc {
  margin-top: 48px;
  max-width: var(--container-max);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.62;
  color: var(--c-text-cream);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--c-text-muted-2);
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.hero__scroll .iconify {
  font-size: 20px;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  background: var(--c-bg-cream);
  padding: 110px var(--gutter) 120px;
  text-align: center;
}
.stats h2 {
  font-size: clamp(36px, 6vw, 74px);
  text-transform: uppercase;
  margin-bottom: 70px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  max-width: 1100px;
  margin-inline: auto;
}
.stats__num {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 48px);
  margin-bottom: 14px;
}
.stats__label {
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  padding: 30px 0;
  user-select: none;
  font-family: var(--f-serif);
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1;
  white-space: nowrap;
}
.marquee--dark { background: var(--c-bg-dark); color: #fff; }
.marquee--cream { background: var(--c-bg-cream); color: var(--c-text-dark); }
.marquee__track {
  display: inline-flex;
  gap: 60px;
  animation: scroll-left 60s linear infinite;
  padding-right: 60px;
}
.marquee__item .dot {
  color: var(--c-accent);
  font-size: 0.82em;
  margin: 0 18px;
  vertical-align: middle;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Expertise (service cards)
   ========================================================================== */
.expertise {
  background: var(--c-bg-cream);
  padding: 100px var(--gutter) 160px;
}
.expertise__intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 80px;
}
@media (min-width: 900px) {
  .expertise__intro { grid-template-columns: 1fr auto; align-items: end; }
}
.expertise__title {
  font-size: clamp(36px, 5.5vw, 74px);
  line-height: 1.05;
}
.expertise__title .line-1 { text-transform: uppercase; display: block; }
.expertise__title .line-2 {
  display: block;
  font-family: var(--f-serif);
  font-weight: 400;
  text-transform: none;
}
.expertise__tagline {
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  max-width: 360px;
}
@media (min-width: 900px) {
  .expertise__tagline { text-align: right; }
}
.expertise__tagline p:last-child {
  font-family: var(--f-serif);
  font-weight: 400;
}

/* Slider wrapper */
.service-slider {
  position: relative;
}
.service-slider__overflow {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Étend jusqu'au bord droit */
  margin-right: calc(-1 * var(--gutter));
  /* Cache la scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.service-slider__overflow::-webkit-scrollbar { display: none; }

.service-slider__track {
  display: flex;
  gap: 20px;
  /* Padding droit pour que la dernière carte soit pleinement accessible */
  padding-right: var(--gutter);
}

/* Navigation arrows */
.service-slider__nav {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}
.slider-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e2dcc8;
  color: var(--c-text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
.slider-btn:hover { background: var(--c-accent); color: #fff; transform: scale(1.05); }
.slider-btn .iconify { font-size: 22px; }
.slider-btn:disabled { opacity: 0.35; pointer-events: none; }

/* Cards */
.service-card {
  flex: 0 0 567px;
  width: 567px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
}
@media (max-width: 1300px) {
  .service-card { flex: 0 0 460px; width: 460px; }
  .service-card__media { width: 460px; }
  .service-card__body { width: 460px; }
}
@media (max-width: 900px) {
  .service-card { flex: 0 0 360px; width: 360px; }
  .service-card__media { width: 360px; }
  .service-card__body { width: 360px; }
}
@media (max-width: 600px) {
  .service-card { flex: 0 0 80vw; width: 80vw; }
  .service-card__media { width: 100%; }
  .service-card__body { width: 100%; }
}

.service-card__media {
  position: relative;
  width: 567px;
  height: 328px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.service-card__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: #fff;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 700;
  z-index: 2;
  text-align: center;
}
.service-card__body {
  width: 567px;
  height: 297px;
  flex-shrink: 0;
  padding: 32px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.service-card__num {
  font-weight: 700;
  font-size: 22px;
  color: var(--c-text-grey-2);
}
.service-card__desc {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--c-text-dark);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta {
  position: relative;
  background: var(--c-bg-dark);
  color: var(--c-text-cream);
  padding: 110px var(--gutter) 0;
}
.cta__grid {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: end;
}
@media (min-width: 900px) {
  .cta__grid { grid-template-columns: 1fr auto; gap: 80px; }
}
.cta__text {
  align-self: center;
  padding-bottom: 80px;
}
.cta__heading {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 700px;
}
.cta__sub {
  margin-top: 22px;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--c-text-cream);
}
.cta__buttons {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta__portrait {
  align-self: end;
  justify-self: end;
  flex-shrink: 0;
}
.cta__portrait img {
  display: block;
  height: auto;
  max-height: 600px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  object-position: bottom center;
}

/* ==========================================================================
   Projects
   ========================================================================== */
.projects {
  background: #fff;
  padding: 100px var(--gutter) 130px;
}
.projects__title {
  font-size: clamp(36px, 5.5vw, 74px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.projects__lede {
  font-size: clamp(16px, 1.6vw, 24px);
  max-width: 900px;
  margin-bottom: 64px;
  color: var(--c-text-dark);
  line-height: 1.55;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }

.project-card {
  border: 1px solid var(--c-bg-cream);
  background: #fff;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.project-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(22,22,22,0.25);
}
.project-card__media {
  aspect-ratio: 567 / 423;
  overflow: hidden;
  background: #f7f4e5;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { padding: 36px; }
.project-card__title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 10px;
}
.project-card__desc {
  font-weight: 500;
  font-size: 16px;
  color: var(--c-text-dark);
  margin-bottom: 14px;
  line-height: 1.45;
}
.project-card__tags {
  font-weight: 700;
  font-size: 14px;
  color: var(--c-text-grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Services (icon grid)
   ========================================================================== */
.services {
  background: var(--c-bg-cream);
  padding: 120px var(--gutter) 160px;
}
.services__title {
  font-size: clamp(36px, 5.5vw, 74px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}
.services__title .handwritten {
  font-family: var(--f-serif);
  font-weight: 400;
  text-transform: none;
  display: block;
}
.service-list {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 70px 80px;
}
@media (min-width: 900px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service-item {
  display: grid;
  grid-template-columns: 236px 1fr;
  gap: 32px;
  align-items: center;
}
.service-item__icon {
  width: 236px;
  height: 236px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-item__icon img {
  width: 236px;
  height: 236px;
  object-fit: contain;
}
.service-item h3 {
  text-transform: uppercase;
  font-size: 22px;
  margin-bottom: 14px;
}
.service-item p {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--c-bg-dark);
  color: var(--c-text-cream);
  padding: 120px var(--gutter) 60px;
}
.contact__grid {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.contact__title {
  font-size: clamp(36px, 5.5vw, 74px);
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 28px;
}
.contact__lede {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.contact__info a, .contact__info span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
}
.contact__info .icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__info .icon-circle img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--c-text-muted-2);
  font-size: 14px;
  font-weight: 500;
  margin-top: 30px;
}
.socials a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text-muted-2); transition: color .2s; }
.socials a:hover { color: var(--c-accent); }

/* Form */
.contact__form {
  background: var(--c-bg-panel);
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field label {
  font-size: 14px;
  color: var(--c-text-muted);
  font-weight: 400;
}
.field input, .field select, .field textarea {
  background: #fff;
  border: none;
  padding: 14px 16px;
  font: inherit;
  font-size: 14px;
  color: var(--c-text-dark);
  width: 100%;
  outline: 2px solid transparent;
  outline-offset: -1px;
  transition: outline-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline-color: var(--c-accent);
}
.field textarea { min-height: 118px; resize: vertical; font-family: inherit; }
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 520px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
.contact__form .btn { align-self: flex-start; margin-top: 8px; }
.form-success {
  display: none;
  background: rgba(69,144,19,0.15);
  border: 1px solid var(--c-whatsapp);
  color: #aed58a;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 4px;
}
.form-success.show { display: block; }
.form-note {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* Footer */
.footer {
  max-width: var(--container-max);
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  color: var(--c-text-muted);
  font-size: 14px;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll .iconify { animation: none; }
}
