/* ==========================================================================
   N.R Cars — Detailing & Custom
   Styles fidèles à la maquette Figma « NRCars — Maquette site web »
   ========================================================================== */

/* ---------- Design tokens (variables Figma) ---------- */
:root {
  --color-text: #ffffff;
  --color-primary: #3359d6;
  --color-primary-light: #5c7df2;
  --color-muted: #a1a1a1;
  --color-subtle: #6b6b6b;
  --color-bg: #101010;
  --color-surface: #171717;
  --color-surface-2: #1f1f1f;
  --color-border: #2a2a2a;
  --color-footer: #0b0b0b;

  --font-display: "Archivo", "Arial Black", sans-serif;
  --font-label: "Unbounded", "Arial", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 8.333vw, 120px);
  --section-y: clamp(72px, 8.333vw, 120px);

  --radius-btn: 8px;
  --radius-card: 18px;
  --radius-pill: 100px;

  --shadow-primary: 0 10px 15px rgba(51, 89, 214, 0.35);
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-stretch: 100%;
  text-transform: uppercase;
}
.accent { color: var(--color-primary); }

.h2 {
  font-size: clamp(36px, 3.75vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.005em;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* Surtitre : barre logo + label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-light);
}
.eyebrow img { width: 36px; height: 6px; flex-shrink: 0; }

.section-title { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }

/* ---------- Icônes ---------- */
.ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--s, 24px);
  height: var(--s, 24px);
}
.ico img { height: auto; }
/* Ratio de chaque glyphe dans sa boîte (d'après les composants Figma) */
.ico--arrow img       { width: 68.06%; }
.ico--arrow16 img     { width: 69.27%; }
.ico--check img       { width: 76.39%; transform: translateY(-2%); }
.ico--check14 img     { width: 79.17%; transform: translateY(-2%); }
.ico--chevron img     { width: 59.72%; }
.ico--instagram img   { width: 93.06%; }
.ico--facebook img    { width: 55.56%; transform: translateX(4%); }
.ico--tiktok img      { width: 63.89%; transform: translate(-4%, -8%); }
.ico--protection img  { width: 74.62%; }
.ico--image img       { width: 80.47%; }
.ico--polissage img   { width: 90.63%; }
.ico--detailing img   { width: 82.29%; transform: translateY(2.5%); }
.ico--custom img      { width: 90.59%; }
.ico--mecanique img   { width: 86.48%; transform: translate(2%, -2%); }
.ico--diagnostic img  { width: 82.29%; }
.ico--cle img         { width: 88.9%;  transform: translateX(-1%); }
.ico--voiture img     { width: 90.63%; transform: translateY(5%); }
.ico--telephone img   { width: 90.16%; }
.ico--mail img        { width: 90.63%; }
.ico--adresse img     { width: 73.96%; }
.ico--horaires img    { width: 90.63%; }
.ico--sparkle img     { width: 100%; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn .ico { --s: 18px; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text);
  filter: drop-shadow(var(--shadow-primary));
}
.btn--primary:hover { background: #3d63e3; transform: translateY(-1px); }

.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-text);
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

.btn--light { background: var(--color-text); color: var(--color-bg); }
.btn--light:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

.btn--block { width: 100%; }

/* ---------- Lien fléché ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary-light);
}
.link-arrow .ico { --s: 18px; transition: transform .2s ease; }
.link-arrow:hover .ico { transform: translateX(3px); }
.link-arrow--sm { font-size: 14px; }
.link-arrow--sm .ico { --s: 16px; }

/* ---------- Chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: var(--color-muted);
  white-space: nowrap;
}
button.chip { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
button.chip:hover { color: var(--color-text); border-color: #3a3a3a; }
.chip.is-active,
.chip[aria-pressed="true"] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text);
}
.chip--lg { padding: 10px 18px; font-size: 14px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header { position: relative; isolation: isolate; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled {
  background: rgba(16, 16, 16, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}
.nav__logo img { width: 134px; height: auto; aspect-ratio: 2.22 / 1; }

.nav__links { display: flex; align-items: center; gap: 44px; }
.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.72);
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: rgba(51, 89, 214, 0);
  transition: background-color .2s ease;
}
.nav__link:hover { color: var(--color-text); }
.nav__link.is-active { color: var(--color-text); }
.nav__link.is-active::after { background: var(--color-primary); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; }

/* ==========================================================================
   Header / Hero (accueil)
   ========================================================================== */
.header-bg {
  background-color: var(--color-bg);
  background-image:
    linear-gradient(180deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0) 35%),
    radial-gradient(ellipse 40% 45.5% at 76% 50%, rgba(51, 89, 214, 0.28) 0%, rgba(51, 89, 214, 0) 100%);
}

.hero { position: relative; padding-top: 88px; padding-bottom: 40px; }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 640px) 504px;
  justify-content: space-between;
  align-items: center;
  gap: 56px;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__text .eyebrow { gap: 14px; font-size: 13px; letter-spacing: 0.1em; }
.hero__title {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.01em;
}
.hero__intro {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.62;
  color: var(--color-muted);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero__reassurance { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 16px; }
.hero__reassurance li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}
.hero__reassurance .ico { --s: 18px; }

/* Visuel avant / après */
.compare-wrap { position: relative; width: 504px; height: 600px; }
.compare {
  position: absolute;
  top: 0;
  left: 40px;
  width: 464px;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(51, 89, 214, 0.35);
  user-select: none;
  touch-action: pan-y;
}
.compare__layer { position: absolute; inset: 0; }
.compare__layer img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.35) 100%);
  pointer-events: none;
}
.compare__layer--before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare__label {
  position: absolute;
  top: 19px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare__label--before { left: 19px; background: rgba(16, 16, 16, 0.7); }
.compare__label--after { right: 19px; background: var(--color-primary); }
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--color-text);
  pointer-events: none;
}
.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos, 50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
}
.compare__handle img { width: 52px; height: 52px; }
.compare.is-interactive .compare__handle { cursor: ew-resize; }
.compare__hint {
  position: absolute;
  top: 71px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(16, 16, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: opacity .3s ease;
}
.compare.is-dragged .compare__hint { opacity: 0; }

.badge {
  position: absolute;
  left: 0;
  top: 470px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px 16px 18px;
  border-radius: 16px;
  background: rgba(31, 31, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-primary);
}
.badge__icon .ico { --s: 22px; }
.badge__title { font-weight: 700; font-size: 15px; line-height: 20px; }
.badge__sub { font-size: 13px; line-height: 18px; color: var(--color-muted); margin-top: 2px; }

/* Étincelles décoratives */
.sparkle { position: absolute; pointer-events: none; z-index: 1; }

/* Transition en biseau */
.bevel { position: relative; height: 140px; overflow: hidden; }
.bevel__fill { position: absolute; left: 0; right: 0; bottom: 0; top: 37.14%; }
.bevel__line {
  position: absolute;
  left: -1.67%;
  right: -1.67%;
  top: calc(28.57% - 24px);
  height: calc(52.14% + 48px);
}
.bevel img { width: 100%; height: 100%; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .h2 { max-width: 620px; }
.section-head .lead { max-width: 440px; }

/* Services */
.services { padding-top: 40px; padding-bottom: var(--section-y); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color .25s ease, transform .25s ease;
}
.service-card:hover { border-color: rgba(51, 89, 214, 0.5); transform: translateY(-2px); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(51, 89, 214, 0.14);
  border: 1px solid rgba(51, 89, 214, 0.35);
}
.icon-box .ico { --s: 28px; }
.service-card__num { font-size: 44px; line-height: normal; color: rgba(255, 255, 255, 0.1); text-transform: none; }
.service-card__title { font-size: 28px; line-height: 1.05; }
.service-card__text { font-size: 16px; line-height: 1.6; color: var(--color-muted); }
.service-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Réalisations (accueil) */
.projects {
  padding-block: 110px var(--section-y);
  background: rgba(23, 23, 23, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.projects__more { display: flex; justify-content: center; margin-top: 56px; }

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: border-color .25s ease, transform .25s ease;
}
.project-card:hover { border-color: rgba(51, 89, 214, 0.5); transform: translateY(-2px); }
.project-card[hidden] { display: none; }
.project-card__media {
  position: relative;
  height: 280px;
  padding: 16px;
  overflow: hidden;
}
.project-card__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card__media > img { transform: scale(1.04); }
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.15) 100%);
  pointer-events: none;
}
.project-card__media .chip { position: relative; z-index: 1; }
.project-card__media--placeholder {
  background:
    radial-gradient(ellipse 50% 50% at 50% 35%, rgba(51, 89, 214, 0.35) 0%, rgba(51, 89, 214, 0) 100%),
    linear-gradient(143.9deg, #29292b 0%, #121214 83.333%);
}
.project-card__media--placeholder::after { display: none; }
.placeholder {
  position: absolute;
  top: 111px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-subtle);
  white-space: nowrap;
}
.placeholder .ico { --s: 32px; }
.project-card__body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 24px 24px 28px; }
.project-card__title { font-size: 22px; line-height: normal; }
.project-card__text { font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.project-card__body .link-arrow { padding-top: 8px; }

/* À propos */
.about { padding-block: var(--section-y); }
.about__inner { display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 80px; align-items: center; }
.about__visual { position: relative; width: 540px; height: 600px; }
.about__frame {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 500px;
  height: 560px;
  border: 2px solid rgba(51, 89, 214, 0.6);
  border-radius: 24px;
}
.about__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.3) 100%);
}
.quote {
  position: absolute;
  left: 97px;
  top: 464px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--color-primary);
  box-shadow: 0 20px 50px -10px rgba(51, 89, 214, 0.4);
}
.quote .ico { --s: 20px; }
.quote__text { font-size: 20px; line-height: 1.15; white-space: nowrap; }

.about__text { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.about__text .lead { line-height: 1.65; }
.values { display: flex; flex-direction: column; gap: 14px; width: 100%; padding-top: 4px; }
.value {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(51, 89, 214, 0.14);
}
.value__icon .ico { --s: 22px; }
.value__title { font-weight: 700; font-size: 16px; line-height: 22px; }
.value__text { font-size: 15px; line-height: 1.5; color: var(--color-muted); margin-top: 3px; }
.about__cta { padding-top: 6px; }

/* Méthode */
.method {
  padding-block: var(--section-y);
  background-color: var(--color-bg);
  background-image: radial-gradient(ellipse 50% 31.25% at 50% 50%, rgba(51, 89, 214, 0.14) 0%, rgba(51, 89, 214, 0) 100%);
}
.method .section-title { align-items: center; text-align: center; margin: 0 auto 56px; max-width: 900px; }
.method .lead { max-width: 620px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 32px 28px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.step__top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.step__num { font-size: 52px; line-height: 1; color: var(--color-primary); }
.step__top .ico { --s: 28px; }
.step__bar { width: 48px; height: 4px; border-radius: 2px; background: var(--color-primary); }
.step__title { font-size: 20px; line-height: 1.1; }
.step__text { font-size: 15px; line-height: 1.6; color: var(--color-muted); }

/* Contact & devis */
.contact { padding-top: 40px; padding-bottom: var(--section-y); scroll-margin-top: 80px; }
.contact__card {
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  padding: 56px 52px;
  background-color: var(--color-surface);
  background-image: radial-gradient(ellipse 50% 55.6% at 30% 16.7%, rgba(51, 89, 214, 0.25) 0%, rgba(51, 89, 214, 0) 100%);
}
.contact__title { font-size: clamp(34px, 3.2vw, 46px); line-height: 0.98; }
.contact__info .lead { font-size: 16px; line-height: 1.65; }
.coords { display: flex; flex-direction: column; gap: 20px; width: 100%; padding-top: 6px; }
.coord { display: flex; align-items: center; gap: 16px; }
.coord__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(51, 89, 214, 0.14);
  border: 1px solid rgba(51, 89, 214, 0.3);
}
.coord__icon .ico { --s: 20px; }
.coord__label { font-weight: 500; font-size: 13px; line-height: 18px; color: var(--color-subtle); }
.coord__value { font-weight: 700; font-size: 16px; line-height: 22px; margin-top: 2px; white-space: pre-wrap; }
a.coord:hover .coord__value { color: var(--color-primary-light); }

.socials { display: flex; gap: 10px; }
.contact__info .socials { padding-top: 8px; }
.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color .2s ease, border-color .2s ease;
}
.social:hover { background: rgba(51, 89, 214, 0.25); border-color: var(--color-primary); }
.social .ico { --s: 18px; }

/* Formulaire */
.quote-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 56px 52px;
  background: var(--color-surface-2);
  border-left: 1px solid var(--color-border);
}
.quote-form__head { padding-bottom: 6px; }
.quote-form__title { font-size: 26px; line-height: normal; }
.quote-form__sub { font-weight: 500; font-size: 14px; color: var(--color-muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label,
.field .field__label { font-weight: 600; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.85); }
.field__control { position: relative; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 14px 15px 16px;
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 20px;
  color: var(--color-text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-subtle); opacity: 1; }
.field select:invalid,
.field input[type="date"]:invalid,
.field input[type="date"].is-empty { color: var(--color-subtle); }
.field select option { color: var(--color-text); background: var(--color-surface-2); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(51, 89, 214, 0.25); }
.field textarea { height: 132px; resize: vertical; }
.field__control--select select,
.field__control--select input { padding-right: 44px; cursor: pointer; }
.field__control--select .ico {
  --s: 18px;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 0;
  cursor: pointer;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #e5484d; }

.consent { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: background-color .2s ease, border-color .2s ease;
}
.consent__box .ico { --s: 14px; opacity: 0; transition: opacity .15s ease; }
.consent input:checked + .consent__box { background: var(--color-primary); border-color: var(--color-primary); }
.consent input:checked + .consent__box .ico { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--color-primary-light); outline-offset: 2px; }
.consent__text { font-size: 14px; color: var(--color-muted); }
.consent.is-invalid .consent__box { border-color: #e5484d; }

.form-status { font-size: 14px; color: var(--color-primary-light); min-height: 0; }
.form-status:empty { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding-top: 88px;
  padding-bottom: 36px;
  background: var(--color-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__cols { display: flex; justify-content: space-between; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.footer__brand > a img { width: 160px; height: auto; aspect-ratio: 2.22 / 1; }
.footer__brand p { max-width: 320px; font-size: 15px; line-height: 1.65; color: var(--color-muted); }
.footer__links { display: flex; gap: 88px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col h3 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px; /* espacement + rectangle invisible de la maquette */
}
.footer__col a,
.footer__col span { font-weight: 500; font-size: 15px; line-height: 20px; color: var(--color-muted); white-space: nowrap; transition: color .2s ease; }
.footer__col a:hover { color: var(--color-text); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--color-subtle);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 500; }
.footer__legal a:hover { color: var(--color-text); }

/* ==========================================================================
   Page Réalisations
   ========================================================================== */
.header-bg--page {
  background-image:
    linear-gradient(180deg, rgba(8, 8, 8, 0.9) 0%, rgba(8, 8, 8, 0) 35%),
    radial-gradient(ellipse 40% 70% at 72% 40%, rgba(51, 89, 214, 0.28) 0%, rgba(51, 89, 214, 0) 100%);
}
.page-head { position: relative; display: flex; flex-direction: column; gap: 24px; padding-top: 72px; padding-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 19px; }
.breadcrumb a { font-weight: 500; color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb span[aria-hidden] { font-weight: 500; color: var(--color-subtle); }
.breadcrumb [aria-current] { font-weight: 600; color: var(--color-text); }
.page-head .eyebrow { padding-top: 16px; }
.page-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.page-head__title { font-size: clamp(52px, 6.11vw, 88px); line-height: 0.92; letter-spacing: -0.01em; }
.page-head__aside { max-width: 440px; padding-bottom: 10px; display: flex; flex-direction: column; gap: 12px; }
.page-head__aside strong { font-weight: 700; font-size: 20px; line-height: normal; }
.page-head__aside p { font-size: 16px; line-height: 1.6; color: var(--color-muted); }

.catalog-filters { padding-top: 16px; padding-bottom: 8px; }
.catalog-filters .filters { gap: 10px; }
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.catalog-meta__count { font-weight: 500; font-size: 15px; color: var(--color-muted); }
.catalog-meta__count strong { font-weight: 700; color: var(--color-text); margin-right: 6px; }
.sort {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 14px;
}
.sort label { font-weight: 500; color: var(--color-muted); }
.sort select {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 28px 0 0;
  margin-right: -28px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1;
}
.sort select option { background: var(--color-surface-2); }
.sort .ico { --s: 18px; pointer-events: none; }

.catalog { padding-top: 32px; padding-bottom: 64px; }
.catalog .projects__grid { row-gap: 24px; }
.catalog__empty { text-align: center; color: var(--color-muted); padding: 48px 0; }
.catalog__more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 48px; }
.catalog__more p { font-weight: 500; font-size: 14px; color: var(--color-subtle); }

.cta-band-section { padding-top: 40px; padding-bottom: var(--section-y); }
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  border-radius: 28px;
  overflow: hidden;
  background-color: var(--color-primary);
  background-image: radial-gradient(ellipse 50% 31.25% at 85% 50%, rgba(115, 148, 255, 0.55) 0%, rgba(115, 148, 255, 0) 100%);
}
.cta-band__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.cta-band__title { font-size: clamp(32px, 3.2vw, 46px); line-height: 0.98; }
.cta-band__text p { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn { position: relative; z-index: 1; margin-right: 64px; }

/* ==========================================================================
   Animations d'apparition
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 504px; gap: 40px; }
  .about__inner { gap: 56px; }
  .footer__links { gap: 56px; }
}

@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    padding: 8px var(--gutter) 24px;
    background: rgba(16, 16, 16, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open .nav__mobile { opacity: 1; visibility: visible; transform: none; }
  .nav.is-open { background: rgba(16, 16, 16, 0.97); }
  .nav__mobile a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-weight: 600;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav__mobile a.is-active { color: var(--color-text); }
  .nav__mobile .btn { margin-top: 20px; width: 100%; }

  .hero { padding-top: 56px; }
  .hero__inner { grid-template-columns: 1fr; justify-items: center; }
  .hero__text { justify-self: stretch; }
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { justify-self: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__card { grid-template-columns: 1fr; }
  .quote-form { border-left: 0; border-top: 1px solid var(--color-border); }
  .footer__cols { flex-direction: column; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { margin-right: 0; }
}

@media (max-width: 900px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .projects .section-head .filters { margin-top: 8px; }
  .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head__row { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 760px) {

  .service-card { padding: 28px; }
  .service-card__title { font-size: 24px; }
  .projects { padding-top: var(--section-y); }
  .projects__grid { grid-template-columns: 1fr; }
  .projects__more .btn { white-space: normal; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact__info, .quote-form { padding: 40px 24px; }
  .quote-form__title { font-size: 22px; }
  .footer__links { flex-wrap: wrap; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 40px 28px; }
  .cta-band .sparkle { display: none; }
  .catalog-meta { flex-direction: column; align-items: flex-start; }
}

/* Visuels à taille fixe : on les met à l'échelle sur petits écrans */
@media (max-width: 560px) {
  .hero__title { font-size: 40px; }
  .hero__intro { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .compare-wrap, .about__visual { zoom: 0.68; }
  .quote__text { font-size: 18px; }
  .coord__value { font-size: 15px; }
  .nav__logo img { width: 112px; }
}
@media (max-width: 380px) {
  .compare-wrap, .about__visual { zoom: 0.6; }
}
.coord__label, .coord__value { display: block; }

/* ==========================================================================
   Mises à jour (README) — comparateur, carrousel services, footer
   ========================================================================== */

/* Comparateur : chaque état reconstitué en plein cadre par symétrie */
.compare--mirror .compare__layer img { position: absolute; inset: 0; }
.compare--mirror .compare__mirror { transform: scaleX(-1); }
.compare--mirror .compare__layer--after .compare__src,
.compare--mirror .compare__layer--after .compare__mirror { clip-path: inset(0 0 0 50%); }
.compare--mirror .compare__layer--before .compare__src,
.compare--mirror .compare__layer--before .compare__mirror { clip-path: inset(0 50% 0 0); }
.compare:not(.compare--mirror) .compare__mirror { display: none; }
.compare { cursor: ew-resize; }
.compare__handle { transition: transform .2s ease; }
.compare__handle:hover,
.compare.is-dragging .compare__handle { transform: scale(1.08); }

/* Services : carrousel horizontal avec flèches */
.services__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 440px; }
.carousel-nav { display: flex; align-items: center; gap: 12px; }
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn .ico { --s: 18px; }
.carousel-btn--prev .ico { transform: scaleX(-1); }

.services__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 2);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  outline: none;
}
.services__track::-webkit-scrollbar { display: none; }
.services__track .service-card { scroll-snap-align: start; }
.services__track .service-card:hover { transform: none; }

@media (max-width: 760px) {
  .services__track { grid-auto-columns: 86%; gap: 16px; }
}

/* Footer sans le grand texte : espacement direct avant le bas de page */
.footer__bottom { margin-top: 56px; }

/* Réalisations : carte cliquable + fiche détaillée */
.project-card--clickable { cursor: pointer; }
.project-card--clickable .link-arrow { font-family: inherit; }

html.has-modal { overflow: hidden; }
.project-modal {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  color: var(--color-text);
  overflow: auto;
  overscroll-behavior: contain;
}
.project-modal::backdrop { background: rgba(5, 5, 5, 0.82); backdrop-filter: blur(4px); }
.project-modal[open] { animation: modal-in .25s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.project-modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color .2s ease;
}
.project-modal__close:hover { background: var(--color-primary); border-color: var(--color-primary); }
.project-modal__close span,
.project-modal__close span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.project-modal__close span::before { content: ""; transform: translate(-50%, -50%) rotate(90deg); }

.project-modal__gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #121214;
}
.project-modal__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.project-modal__stage > img { width: 100%; height: 100%; object-fit: cover; animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.project-modal__placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 50% 45%, rgba(51, 89, 214, 0.35) 0%, rgba(51, 89, 214, 0) 100%),
    linear-gradient(143.9deg, #29292b 0%, #121214 83.333%);
}
.project-modal__placeholder .placeholder { top: 50%; transform: translate(-50%, -50%); }
.project-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(16, 16, 16, 0.7);
  transform: translateY(-50%);
}
.project-modal__view { position: relative; }
.project-modal__nav--prev { left: 12px; }
.project-modal__nav--next { right: 12px; }
.project-modal__nav[hidden] { display: none; }
.project-modal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.project-modal__thumbs[hidden] { display: none; }
.project-modal__thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--color-surface-2);
  opacity: 0.55;
  transition: opacity .2s ease, border-color .2s ease;
}
.project-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-modal__thumb .ico { --s: 22px; }
.project-modal__thumb .ico img { width: 80.47%; height: auto; object-fit: contain; }
.project-modal__thumb:hover { opacity: 0.85; }
.project-modal__thumb[aria-current="true"] { opacity: 1; border-color: var(--color-primary); }

.project-modal__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 40px 36px;
}
.project-modal__title { font-size: 32px; line-height: 1.05; padding-right: 48px; }
.project-modal__date { margin-top: -8px; font-size: 14px; color: var(--color-subtle); }
.project-modal__text { display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--color-muted); }
.project-modal__done { width: 100%; padding-top: 16px; border-top: 1px solid var(--color-border); }
.project-modal__done[hidden] { display: none; }
.project-modal__done h3 {
  margin: 0 0 12px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-subtle);
}
.project-modal__done ul { display: flex; flex-direction: column; gap: 8px; }
.project-modal__done li { position: relative; padding-left: 24px; font-size: 15px; }
.project-modal__done li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  background: url("../icons/check.svg") center / contain no-repeat;
}
.project-modal__info .btn { margin-top: auto; }

@media (max-width: 900px) {
  .project-modal__inner { grid-template-columns: 1fr; }
  .project-modal__info { padding: 28px 24px 32px; }
  .project-modal__title { font-size: 26px; }
}
@media (max-width: 560px) {
  .project-modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .project-modal__gallery { padding: 0 0 12px; }
  .project-modal__stage { border-radius: 0; }
  .project-modal__thumbs { padding-inline: 12px; }
  .project-modal__info .btn { width: 100%; white-space: normal; text-align: center; }
}

/* Réalisations : accès discret à l'espace admin */
.admin-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-subtle);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.admin-lock:hover { color: var(--color-text); border-color: var(--color-primary); background: rgba(51, 89, 214, 0.15); }
.projects__error { grid-column: 1 / -1; }
.catalog-meta .sort { margin-left: auto; }
@media (max-width: 760px) {
  .catalog-meta { position: relative; }
  .catalog-meta .sort { margin-left: 0; }
  .catalog-meta .admin-lock { position: absolute; top: 14px; right: 0; }
}
