/* ==========================================================================
   Signatech - Feuille de style principale
   ========================================================================== */

:root {
  --ink: #1B1F24;
  --ink-soft: #4A5158;
  --ink-mute: #6E767E;
  --line: #E3E6E9;
  --paper: #FFFFFF;
  --paper-alt: #F6F7F8;
  --accent: #F5C518;
  --accent-dark: #D9AC08;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 10px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(27, 31, 36, .06), 0 1px 3px rgba(27, 31, 36, .05);
  --shadow-md: 0 4px 6px rgba(27, 31, 36, .04), 0 12px 24px rgba(27, 31, 36, .07);
  --shadow-lg: 0 8px 12px rgba(27, 31, 36, .05), 0 24px 48px rgba(27, 31, 36, .10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

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

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--alt { background: var(--paper-alt); }

.section__head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.section__head--center .eyebrow::before { display: none; }
.section__head--center .eyebrow { color: var(--accent-dark); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--dark { background: var(--ink); color: #FFF; }
.btn--dark:hover { background: #2C3238; }

.btn--ghost { border-color: rgba(255, 255, 255, .38); color: #FFF; }
.btn--ghost:hover { border-color: #FFF; background: rgba(255, 255, 255, .1); }

.btn--outline { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn--outline:hover { border-color: var(--ink); }

.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

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

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.header__logo { flex: 0 0 auto; }
.header__logo svg, .header__logo img { height: 38px; width: auto; }
.header__logo .logo--light { display: block; }
.header__logo .logo--dark { display: none; }

.header.is-stuck {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}
.header.is-stuck .header__logo .logo--light { display: none; }
.header.is-stuck .header__logo .logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  transition: color .15s ease;
}
.nav__link:hover { color: #FFF; }
.header.is-stuck .nav__link { color: var(--ink-soft); }
.header.is-stuck .nav__link:hover { color: var(--ink); }

.header.is-stuck .btn--ghost { border-color: var(--line); color: var(--ink); }
.header.is-stuck .btn--ghost:hover { border-color: var(--ink); background: transparent; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #FFF;
  transition: background-color .2s ease;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: inherit;
  transition: transform .2s ease;
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.header.is-stuck .burger span, .header.is-stuck .burger span::before, .header.is-stuck .burger span::after { background: var(--ink); }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 820px);
  padding: 150px 0 clamp(56px, 7vw, 84px);
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 21, .82) 0%, rgba(15, 18, 21, .62) 42%, rgba(15, 18, 21, .88) 100%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero h1 { color: #FFF; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: rgba(255, 255, 255, .82);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #FFF;
}
.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 197, 24, .22);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 700px;
  margin-top: clamp(44px, 6vw, 66px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__stat strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFF;
  line-height: 1.1;
}
.hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .68);
}

/* -------------------------------------------------------------- Services */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D3D8DD; }

/* Le badge deborde volontairement vers le bas : le recadrage
   de la photo est confie a un conteneur interne. */
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper-alt); }
.card__figure { position: absolute; inset: 0; overflow: hidden; border-radius: 14px 14px 0 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__figure img { transform: scale(1.04); }
.card__icon {
  position: absolute;
  left: 18px;
  bottom: -22px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.card__icon .icon { width: 26px; height: 26px; }

.card__body { padding: 38px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: .97rem; margin-bottom: 18px; }

.card__list { margin-top: auto; display: grid; gap: 9px; }
.card__list li {
  position: relative;
  padding-left: 24px;
  font-size: .93rem;
  color: var(--ink-soft);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- Atouts */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: clamp(36px, 5vw, 66px);
  align-items: center;
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-lg); }
.split__media::before {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 96px;
  height: 96px;
  border-left: 5px solid var(--accent);
  border-top: 5px solid var(--accent);
  border-radius: 14px 0 0 0;
}

.features { display: grid; gap: 26px; margin-top: 30px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: rgba(245, 197, 24, .16);
  color: var(--accent-dark);
}
.feature__icon .icon { width: 23px; height: 23px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 4px; }
.feature p { font-size: .95rem; margin: 0; }

/* --------------------------------------------------------------- Process */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 3px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent-dark);
}
.step.is-active { border-top-color: var(--accent); }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------------- CTA */

.cta {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--ink);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 46px, transparent 46px 92px);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta h2 { color: #FFF; margin-bottom: 8px; max-width: 620px; }
.cta p { color: rgba(255, 255, 255, .74); margin: 0; max-width: 560px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- Contact */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 70px); align-items: start; }

.contact__list { display: grid; gap: 4px; margin-top: 30px; }
.contact__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact__item:first-child { border-top: 1px solid var(--line); }
.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--paper-alt);
  color: var(--ink);
}
.contact__icon .icon { width: 21px; height: 21px; }
.contact__item dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.contact__item dd { margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.contact__item dd a { transition: color .15s ease; }
.contact__item dd a:hover { color: var(--accent-dark); }
.contact__item dd small { display: block; font-size: .88rem; font-weight: 400; color: var(--ink-mute); margin-top: 2px; }

/* ------------------------------------------------------------------ Form */

.form {
  padding: clamp(28px, 3.4vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent-dark); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-family: inherit;
  font-size: .97rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236E767E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .22);
}
.field input::placeholder, .field textarea::placeholder { color: #A6ADB4; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.field__error { display: none; font-size: .84rem; color: #C0392B; }
.field.has-error .field__error { display: block; }

.field--consent { flex-direction: row; align-items: flex-start; gap: 11px; }
.field--consent input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--accent-dark); }
.field--consent label { font-size: .88rem; font-weight: 400; color: var(--ink-soft); line-height: 1.5; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form__note { font-size: .84rem; color: var(--ink-mute); margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__alert {
  display: none;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border-radius: 10px;
  font-size: .93rem;
  line-height: 1.5;
}
.form__alert.is-visible { display: flex; }
.form__alert .icon { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.form__alert--ok { background: #EDF7EE; border: 1px solid #C3E6C7; color: #1E5E27; }
.form__alert--err { background: #FDF0EE; border: 1px solid #F2C9C3; color: #A03227; }

.btn.is-loading { pointer-events: none; opacity: .72; }
.btn__spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(27, 31, 36, .28); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Footer */

.footer { padding: clamp(52px, 6vw, 76px) 0 30px; background: var(--ink); color: rgba(255, 255, 255, .66); font-size: .94rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 42px; padding-bottom: 42px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__logo svg { height: 36px; width: auto; margin-bottom: 18px; }
.footer__about { max-width: 380px; margin: 0; }
.footer h4 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFF; margin: 0 0 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: color .15s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; font-size: .87rem; color: rgba(255, 255, 255, .5); }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: var(--accent); }

/* ------------------------------------------------------------ Whatsapp FAB */

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease;
}
.fab:hover { transform: scale(1.06); }
.fab .icon { width: 29px; height: 29px; }

/* -------------------------------------------------------------- Reveal fx */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

@media (max-width: 980px) {
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav {
    position: fixed;
    inset: 78px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px var(--gutter) 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link, .header.is-stuck .nav__link { display: block; padding: 13px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 18px; }
  .nav .btn--ghost, .header.is-stuck .nav .btn--ghost { border-color: var(--ink); color: var(--ink); }
  .header:not(.is-stuck) .nav.is-open ~ * { }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-top: 132px; }
  .hero__stats { grid-template-columns: 1fr; gap: 18px; }
  .form__grid { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .fab { right: 16px; bottom: 16px; }
}
