:root {
  /* Fonds */
  --bg-primary:    #070707;
  --bg-secondary:  #0c0c0c;
  --bg-accent:     #0f0f0f;

  /* Violet */
  --violet-deep:   #3a0080;
  --violet-mid:    #1e0040;
  --violet-light:  #a855f7;

  /* Blancs */
  --white-100:     #ffffff;
  --white-70:      rgba(255,255,255,.7);
  --white-45:      rgba(255,255,255,.62);
  --white-35:      rgba(255,255,255,.52);
  --white-20:      rgba(255,255,255,.38);
  --border:        rgba(255,255,255,.10);

  /* Typographie */
  --font:          'Inter', sans-serif;
  --transition:    all .2s ease;
}


*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-45);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--white-100); }

.label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white-45);
}

.section {
  padding: 80px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}


/* === BOUTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--white-100);
  color: var(--bg-primary);
}
.btn-primary:hover { background: var(--white-70); }

.btn-ghost {
  background: transparent;
  color: var(--white-70);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--white-20); color: var(--white-100); }

.btn:focus-visible {
  outline: 2px solid var(--white-100);
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: var(--bg-primary);
}

.btn:active { transform: scale(0.98); }
.btn-primary:active { background: var(--white-45); }
.btn-ghost:active { background: rgba(255,255,255,.05); color: var(--white-100); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 60px;
  border-bottom: 1px solid var(--border);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7,7,7,.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white-100);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 32px;
  width: 32px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white-45);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white-100); }

.nav-cta { margin-left: 24px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  width: 22px; height: 1px;
  background: var(--white-70);
  transition: var(--transition);
  display: block;
}
.nav-hamburger:focus-visible { outline: 2px solid var(--white-100); outline-offset: 4px; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    z-index: 99;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 24px 5vw;
    gap: 20px;
  }
  .nav-links.open a { font-size: 14px; }
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 5vw 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.footer-logo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--white-100);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--white-45);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white-100); }

.footer-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--white-35);
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 11px;
  color: var(--white-25);
  transition: var(--transition);
}
.footer-legal a:hover { color: var(--white-45); }

@media (max-width: 600px) {
  .footer { grid-template-columns: 1fr; }
}

/* === HERO === */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 120px 5vw 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 60px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 50%, var(--violet-mid) 0%, var(--bg-primary) 60%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--white-100);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 14px;
  color: var(--white-70);
  margin-bottom: 36px;
  letter-spacing: .5px;
  line-height: 1.8;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-img {
  position: relative;
  z-index: 1;
  align-self: stretch;
  overflow: hidden;
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0% 100%);
  background: var(--bg-secondary);
}

.hero-img img,
.hero-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === TRUST STRIP === */
.awards-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 5vw 24px;
}

.awards-section-title {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white-35);
  text-align: center;
  margin-bottom: 16px;
}

.trust-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.trust-strip {
  display: flex;
  gap: 10px;
  width: max-content;
}

.trust-logo {
  flex-shrink: 0;
  display: block;
  width: 192px;
  height: 192px;
  text-decoration: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.trust-logo:hover { border-color: var(--white-20); }
.trust-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  transition: opacity .2s ease;
}
.trust-logo:hover img { opacity: 1; }

.trust-prize {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 192px;
  height: 192px;
  text-decoration: none;
  background: var(--bg-secondary);
  border: 1px solid rgba(251,191,36,.4);
  transition: var(--transition);
}
.trust-prize:hover { border-color:rgba(251,191,36,.06); background: rgba(251,191,36,.1); }
.trust-prize-star { font-size: 28px; color: #fbbf24; line-height: 1; }
.trust-prize-name {
  font-size: 9px;
  font-weight: 700;
  color: rgba(251,191,36,.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  padding: 0 16px;
}

/* === GRILLE RÉFÉRENCES === */
.refs-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
}

.refs-grid .ref-card:first-child { grid-row: 1 / 3; }

.ref-card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg-secondary);
  cursor: pointer;
}

.ref-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
}

.ref-card:hover img { transform: scale(1.03); opacity: .8; }

.ref-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(7,7,7,.85));
}

.ref-card-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white-100);
}

.ref-card-meta {
  font-size: 11px;
  color: var(--white-70);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* === CARTE PROJET (references/ + réalisations associées) === */
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  transition: border-color .2s ease;
}
.project-card:hover { border-color: var(--white-20); }
.project-card-img { height: 220px; overflow: hidden; }
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.project-card:hover .project-card-img img { transform: scale(1.03); }
.project-card-body { padding: 24px; }
.project-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white-100);
  margin-bottom: 8px;
}
.project-card-desc {
  font-size: 14px;
  color: var(--white-45);
  line-height: 1.7;
}

/* === SLIDER RÉALISATIONS ASSOCIÉES === */
.related-slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.related-slider::-webkit-scrollbar { height: 4px; }
.related-slider::-webkit-scrollbar-track { background: transparent; }
.related-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 5+ cartes : scroll horizontal sur 2 rangées */
.related-slider-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: clamp(240px, 44vw, 300px);
  gap: 16px;
}

/* 1-3 cartes : une seule rangée horizontale */
.related-slider-track[data-count="1"],
.related-slider-track[data-count="2"],
.related-slider-track[data-count="3"] {
  grid-template-rows: auto;
}

/* 4 cartes : grille 2×2 */
.related-slider-track[data-count="4"] {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, clamp(240px, 44vw, 300px));
  grid-auto-columns: unset;
}

/* === CARTE LOCALITÉ (video-mapping/index.html) === */
.location-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 24px;
  display: block;
  text-decoration: none;
  transition: var(--transition);
}
.location-card:hover { border-color: var(--white-20); }
.location-card-name { font-size: 14px; font-weight: 700; color: var(--white-100); }
.location-card-sub { font-size: 11px; color: var(--white-35); margin-top: 4px; }

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 32px 24px;
  transition: border-color .2s ease;
}

.service-card:hover { border-color: var(--white-20); }

.service-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white-100);
  margin-bottom: 8px;
}

.service-card-price {
  font-size: 11px;
  color: var(--violet-light);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.service-card-desc { font-size: 14px; color: var(--white-45); }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-70);
  cursor: default;
}

.faq-a {
  font-size: 14px;
  color: var(--white-45);
  margin-top: 12px;
  line-height: 1.7;
}

/* === CTA BAND === */
.cta-band {
  text-align: center;
  padding: 80px 5vw;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band-title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  color: var(--white-100);
  margin-bottom: 12px;
}

.cta-band-sub {
  font-size: 14px;
  color: var(--white-45);
  margin-bottom: 32px;
}

/* === TECH BADGE === */
.tech-badge {
  font-size: 9px;
  color: var(--violet-light);
  border: 1px solid rgba(167,139,250,.2);
  padding: 3px 8px;
  letter-spacing: 1px;
}

/* === STACK TECHNIQUE === */
.stack-table { display: flex; flex-direction: column; }
.stack-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.stack-row:last-child { border-bottom: none; }
.stack-row > :first-child {
  font-size: 13px;
  font-weight: 800;
  color: var(--white-100);
}
.stack-row > :last-child {
  font-size: 13px;
  color: var(--white-35);
  line-height: 1.7;
}

/* === TECH STACK SCROLL === */
.tech-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.tech-scroll-inner { display: flex; gap: 10px; width: max-content; }
.tech-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 20px 16px;
  width: 148px;
  flex-shrink: 0;
  transition: var(--transition);
}
.tech-card:hover { border-color: var(--white-20); }
.tech-card-icon { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.tech-card-name { font-size: 12px; font-weight: 700; color: var(--white-100); margin-bottom: 5px; }
.tech-card-role { font-size: 10px; color: var(--white-35); line-height: 1.5; }

/* === PAGE INTÉRIEURE (nav fixe 60px + espacement 60px) === */
.section--inner { padding-top: 120px; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .related-slider-track {
    grid-auto-columns: clamp(240px, 80vw, 300px);
  }
  .related-slider-track[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 40px;
  }
  .hero-img {
    height: 260px;
    clip-path: none;
  }
  .refs-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .refs-grid .ref-card:first-child { grid-row: auto; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .service-grid-row { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

