/* ============================
----- CODE CSS SPECIFIQUE -----
=============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background-image: url("/assets/img/grain-paper.png");
  background-repeat: repeat;
  background-size: 420px 420px;

  backdrop-filter: blur(10px);

  border-bottom: 1.5px solid rgba(155, 88, 11, 0.25);

  box-shadow:
    0 2px 0 rgba(217, 119, 6, 0.08),
    0 10px 18px rgba(17, 24, 39, 0.06);

  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(251, 247, 241, 0.20);

  backdrop-filter: blur(15px) saturate(1.1);

  box-shadow:
    0 2px 0 rgba(217, 119, 6, 0.08),
    0 10px 18px rgba(17, 24, 39, 0.06);
}

/* rail de header aligné sur le hero */
.header-rail {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;

  font-weight: 800;
  letter-spacing: .2px;
  text-decoration: none
}

/* Logo SVG */
.brand-logo {
  height: 30px;
  /* ajuste si besoin */
  width: auto;
  display: block;
}

/* Petite phrase */
.brand-baseline {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
}

.baseline-short {
  display: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  font-weight: 500;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 10px 10px;
  border-radius: 12px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--ui-hover-bg);
}

.nav-link.is-active {
  color: var(--ui-active-text);
  background: var(--ui-active-bg);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 7px 10px;
  border-radius: 2px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: linear-gradient(135deg, rgba(214, 123, 4, 0.766), rgba(214, 95, 3, 0.754));
  border-color: rgba(217, 101, 6, 0.965);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(214, 123, 4, 0.511), rgba(214, 94, 3, 0.369));
  border-color: rgba(217, 80, 6, 0.939);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(4, 214, 95, 0.20), rgba(7, 214, 3, 0.24));
  border-color: rgba(2, 156, 2, 0.55);
}

.btn-secondary:hover {
  background: linear-gradient(135deg,
      rgba(4, 214, 95, 0.35),
      rgba(7, 214, 3, 0.30));
  border-color: rgba(2, 156, 110, 0.75);
}

.btn-ghost {
  background: linear-gradient(135deg, rgba(4, 214, 95, 0.789), rgba(7, 214, 3, 0.369));
  border-color: rgba(2, 156, 2, 0.939);
}

.btn-ghost:hover {
  background: linear-gradient(135deg, rgba(4, 214, 95, 0.235), rgba(7, 214, 3, 0.369));
  border-color: rgba(2, 156, 110, 0.939);
}

.btn-block {
  width: 100%
}

:focus-visible {
  outline: 3px solid rgba(217, 119, 6, .45);
  outline-offset: 2px;
  border-radius: 14px;
}

/* =========================
   Bouton WhatsApp (nav)
========================= */

.btn-whatsapp {
  background: linear-gradient(135deg,
      rgba(21, 177, 55, 0.7),
      rgba(7, 173, 43, 0.5));
  border-color: rgba(6, 116, 46, 0.8);
  color: #065f46;
  /* vert foncé lisible */

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wa-short {
  display: none;
}

.btn-whatsapp:hover {
  border-color: rgba(24, 192, 142, 0.85);
  background: linear-gradient(135deg,
      rgba(20, 169, 82, 0.32),
      rgba(14, 143, 79, 0.26));
}

/* Icône WhatsApp */
.icon-whatsapp {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* =========================
   HERO – MEDIA RESPONSIVE PRO
========================= */

.hero--media {
  position: relative;
  min-height: clamp(560px, 68vh, 760px);
  background: transparent;
  overflow: hidden;

  border-bottom: 1.5px solid rgba(155, 88, 11, 0.25);

  box-shadow:
    0 2px 0 rgba(217, 119, 6, 0.1),
    0 10px 18px rgba(17, 24, 39, 0.07);
}

/* couche image */
.hero-media-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* Desktop : montrer bureau + pièce */
  object-position: 70% 35%;
}

/* Overlay doux pour le texte */
.hero--media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(60% 80% at 18% 25%,
      rgba(214, 174, 140, 0.35),
      transparent 60%),
    linear-gradient(to right,
      rgba(251, 247, 241, 1) 0%,
      rgba(251, 247, 241, 0.85) 45%,
      rgba(251, 247, 241, 0.45) 60%,
      rgba(251, 247, 241, 0) 75%);
}

/* effet matière dans hero (derrière le texte, au-dessus de l'image) */
.matiere-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image: url("/assets/img/grain-paper.png");
  background-repeat: repeat;
  background-size: 420px 420px;

  /* le masque fait disparaître la texture progressivement */
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.7) 15%,
      rgba(0, 0, 0, 0.35) 25%,
      rgba(0, 0, 0, 0) 35%);
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.7) 15%,
      rgba(0, 0, 0, 0.35) 25%,
      rgba(0, 0, 0, 0) 35%);

  mix-blend-mode: multiply;
}

/* Contenu */
.hero-inner {
  position: relative;
  z-index: 2;

  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-inline: 0;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h1 {
  position: relative;

  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  line-height: 1.40;
  font-weight: 600;

  margin-bottom: 1.4rem;
}

/* Ligne sous le H1 */
.hero-copy h1::after {
  content: "";
  display: block;
  width: 150px;
  height: 2px;
  margin-top: 1.25rem;

  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

/*
=== Animation titre ===
*/

.hero-copy h1::after {
  /* état initial */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;

  will-change: transform, opacity;

  animation: heroTitleLineIn 520ms cubic-bezier(.2, .8, .2, 1) var(--t-title-end) both;
}

@keyframes heroTitleLineIn {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-title {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.02em;

  /* On évite les sauts visuels pendant l'anim */
  text-wrap: balance;
  /* si supporté */
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(6px);

  /* perf : limite la zone de travail */
  will-change: transform, opacity, filter;

  /* Animation : une seule fois, douce */
  animation: heroWordIn 700ms cubic-bezier(.2, .8, .2, 1) both;
}

/* Délais séquentiels (tu peux ajuster) */
.hero-title .w-1 {
  animation-delay: 0.5s;
  color: var(--accent-orange);
}

.hero-title .w-2 {
  animation-delay: 0.8s;
  color: var(--accent-orange-soft);
}

.hero-title .w-3 {
  animation-delay: 1s;
  color: var(--accent-green);
}

.hero-title .w-4 {
  animation-delay: 1.2s;
  color: var(--text);
}

.hero-title .w-5 {
  animation-delay: 1.4s;
  color: var(--accent-green-soft);
}

/* Keyframes : montée + netteté progressive */
@keyframes heroWordIn {
  0% {
    opacity: 0;
    transform: translateY(0.55em);
    filter: blur(6px);
  }

  70% {
    opacity: 0.85;
    transform: translateY(0);
    filter: blur(3px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/*
=== Fin Animation titre ===
*/

.hero-subtitle {
  position: relative;

  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.40;

  margin-bottom: 1.25rem;
}

/* Ligne sous le subtitle */
.hero-subtitle::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.75rem;

  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 2px;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);

  margin-bottom: 2.25rem;
  max-width: 520px;
}

/* =========================
   HERO – chorégraphie entrée
========================= */
.hero-copy {
  /* Fin de ton titre : dernier mot à 1.4s, + 700ms d'anim */
  --t-title-end: 1.5s;

  /* Rythme global (ajuste à l’œil) */
  --stagger: 200ms;
  --block-dur: 220ms;

  /* Delays des blocs texte */
  --d-subtitle: calc(var(--t-title-end) + 400ms);
  --d-desc: calc(var(--d-subtitle) + 400ms);

  /* Delays CTA */
  --d-cta: calc(var(--d-desc) + 50ms);
}

@keyframes heroBlockIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sous-titre */
.hero-subtitle {
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
  animation: heroBlockIn var(--block-dur) cubic-bezier(.2, .8, .2, 1) var(--d-subtitle) both;
}

/* Description */
.hero-description {
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
  animation: heroBlockIn var(--block-dur) cubic-bezier(.2, .8, .2, 1) var(--d-desc) both;
}

/* CTA container (arrive) */
.hero-cta {
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
  animation: heroBlockIn var(--block-dur) cubic-bezier(.2, .8, .2, 1) var(--d-cta) both;
}

.hero-cta .btn {
  opacity: 0;
  transform: translateY(8px);
  will-change: transform, opacity;
  animation: heroBlockIn 120ms cubic-bezier(.2, .8, .2, 1) both;
}

.hero-cta .btn:nth-child(1) {
  animation-delay: calc(var(--d-cta) + 10ms);
}

.hero-cta .btn:nth-child(2) {
  animation-delay: calc(var(--d-cta) + 50ms + var(--stagger));
}

/* =========================
   FIN : HERO – chorégraphie entrée
========================= */

/* =========================
   SECTION SOUS HERO : bénéfices
========================= */

.hero-benefits {
  width: 100%;
  position: relative;
  z-index: 3;
  /* au-dessus de la fin du hero */
  margin-top: -26px;

  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.07);
  backdrop-filter: blur(15px);
}

.hero-benefits .container {
  margin: 0 auto;
}

.benefits {
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0px;
}

.benefit:not(:last-child) {
  border-right: 1px solid rgba(218, 151, 6, 0.5);
}

.benefit:first-child {
  padding-left: 0px;
  padding-right: 30px;
}

.benefit:nth-child(2) {
  padding: 10px 30px;
}

.benefit:last-child {
  padding-left: 30px;
  padding-right: 0px;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* rond "paper + brand" */
  background: linear-gradient(135deg, rgba(217, 119, 6, .18), rgba(16, 185, 129, .12));
  border: 1px solid rgba(31, 41, 55, 0.10);
  color: rgba(97, 57, 12, .95);
  /* proche de ton orange foncé */
}

.benefit-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.benefit-text strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.benefit-text span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.2;
}

/*
== SECTION : services ==
*/

/* =========================
   SECTION : services (grille)
========================= */

#services .grid-3 {
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

/* =========================
   SECTION : services (cartes)
========================= */

#services .card.card-media {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* zone image = ratio stable (important) */
#services .card.card-media .cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  /* ajuste si tu préfères 4/3 ou 16/9 */
  height: auto;
  /* on laisse l'aspect-ratio piloter */
  object-fit: cover;
  object-position: top;
  /* top marche souvent mieux sur des captures de sites */
  display: block;

  border-bottom: 1px solid var(--border);
  filter: saturate(1.03) contrast(1.02);
}

/* zone texte stable */
#services .card.card-media .card-pad {
  padding: 14px 16px 16px;
  display: grid;
  gap: 8px;
}

/* texte : limiter les sauts de hauteur */
#services .card.card-media .card-pad p {
  margin: 0;
  line-height: 1.6;
}

#services .card.card-media {
  position: relative;
}

#services .card.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06), transparent 40%);
}

#services .card.card-media .cover {
  filter: saturate(1.02) contrast(1.05) brightness(1.02);
}

#services .h2 {
  font-family: var(--font-display);
}

/* =========================
   PROCESS : maquette finale
========================= */

.process-section {
  position: relative;
}

.section-head--process {
  position: relative;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.section-head--process .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(97, 57, 12, .85);
}

.section-head--process .section-kicker::before,
.section-head--process .section-kicker::after {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 119, 6, .75), rgba(180, 83, 9, .45));
}

.section-head--process .h2 {
  margin: 0 0 14px;
}

.section-head--process .muted {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.process-flow {
  position: relative;
  margin: clamp(26px, 4vw, 42px) 0 22px;
}

.process-line {
  position: relative;
  height: 58px;
}

.process-line::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 29px;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(180, 131, 12, .55) 0%,
      rgba(180, 131, 12, .85) 45%,
      rgba(91, 151, 102, .55) 100%);
}

.process-line::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-top: 3px solid rgba(91, 151, 102, .75);
  border-right: 3px solid rgba(91, 151, 102, .75);
  transform: rotate(45deg);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.process-card {
  position: relative;
  min-height: 100%;
  padding: 28px 24px 24px;
  border-radius: 28px;
  border: 1px solid rgba(31, 41, 55, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .74));
  box-shadow:
    0 18px 38px rgba(17, 24, 39, .07),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, .08), transparent 38%);
}

.process-card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, .35);
  box-shadow: 0 14px 30px rgba(17, 24, 39, .12);
}

.process-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.process-card-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(180deg, #f6efdf, #ece4d2);
  border: 1px solid rgba(145, 112, 47, .18);
  box-shadow:
    0 10px 20px rgba(17, 24, 39, .06),
    inset 0 1px 0 rgba(255, 255, 255, .78);
}

.process-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.1px;
  font-weight: 600;
  color: var(--text);
}

.process-card-result {
  margin-bottom: 18px;
}

.process-card-result-label {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(173, 110, 33, .95);
}

.process-card-list {
  margin: 0;
  padding-left: 22px;
  color: rgba(31, 41, 55, .78);
}

.process-card-list li::marker {
  color: rgba(127, 150, 83, .95);
}

.process-card-list li {
  line-height: 1.55;
}

.process-card-delay {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0 16px;
  margin-bottom: 18px;
  border-top: 1px solid rgba(31, 41, 55, .06);
  border-bottom: 1px solid rgba(31, 41, 55, .06);
}

.process-card-delay-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: linear-gradient(180deg, #f7ead5, #efdfc3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.process-card-delay-value {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(31, 41, 55, .78);
}

.process-card-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.process-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px auto 0;
  max-width: 980px;
  padding: 26px 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .70));
  box-shadow: 0 14px 30px rgba(17, 24, 39, .08);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.process-cta:hover {
  transform: translateY(-4px);

  box-shadow:
    0 22px 40px rgba(17, 24, 39, .10);

  border-color: rgba(217, 119, 6, .20);

  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .90),
      rgba(255, 255, 255, .78));
}

.process-cta-content {
  min-width: 0;
}

.process-cta-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.1px;
  font-weight: 600;
  color: var(--text);
}

.process-cta-text {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.process-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.process-cta .btn {
  min-height: 56px;
  padding-inline: 22px;
}

.process-cta .btn-whatsapp {
  justify-content: center;
}

.process-cta .btn-primary {
  box-shadow: 0 12px 24px rgba(217, 119, 6, .20);
}

/* --------------
SECTION : realisations
-------------- */

#realisations .section-head .h2 {
  font-family: var(--font-display);
}

#realisations .realizations-grid {
  align-items: stretch;
}

#realisations .realization-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#realisations .realization-card .cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--border);
  filter: saturate(1.02) contrast(1.03) brightness(1.01);
}

#realisations .realization-card .card-pad {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

#realisations .realization-card .h3 {
  margin: 0;
}

#realisations .realization-card .muted {
  margin: 0;
}

#realisations .section-cta {
  margin-top: 6px;
}