/* Aligné sur Superdesign Accueil v4 / Produits v3 */
/* Fonts chargées via <link> dans _Layout (éviter @import bloquant) */

:root {
  --midnight: #050A18;
  --navy: #0A1128;
  --bolt: #00D2FF;
  --bolt-deep: #0066FF;
  --cycle: #8BC34A;
  --cycle-bright: #A2D149;
  --paper: #F4F7FB;
  --ink: #1B2437;
  --mist: #B0C4DE;
  --sun: #F4D35E;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { background-color: var(--midnight); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "General Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.font-mono, .meta-label, .nav-mono, .chip, .chip-active, .badge-cat, .link-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

::selection {
  background: var(--bolt);
  color: var(--midnight);
}

.container-sky {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* —— Header —— */
.sky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 10, 24, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(176, 196, 222, 0.2);
  color: #fff;
}

.sky-header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand img { height: 40px; width: auto; object-fit: contain; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .brand-name { display: inline; }
}
.brand-name { display: none; }

.nav-mono {
  color: var(--mist);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-mono:hover,
.nav-mono.is-active {
  color: var(--bolt);
  font-weight: 500;
}

.btn-bolt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bolt);
  color: var(--midnight);
  border: none;
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
  transition: background 0.2s, color 0.2s;
}
.btn-bolt:hover {
  background: var(--bolt-deep);
  color: #fff;
}
.btn-bolt-lg { padding: 0.875rem 2rem; }

.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(176, 196, 222, 0.3);
  color: #fff;
  background: transparent;
  border-radius: 2px;
  padding: 0.875rem 2rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: #fff; }

.navbar-toggler {
  border: 1px solid rgba(176, 196, 222, 0.3);
  padding: 0.35rem 0.5rem;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28176, 196, 222, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
@media (min-width: 768px) {
  .nav-toggle { display: none !important; }
  .btn-devis-desktop { display: inline-flex !important; }
}
.btn-devis-desktop { display: none !important; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid rgba(176, 196, 222, 0.15);
}
.nav-mobile.show { display: flex; }
@media (min-width: 768px) {
  .nav-mobile { display: none !important; }
}

/* —— Hero carousel (Superdesign full-bleed) —— */
.sd-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--midnight);
  color: #fff;
}
@media (min-width: 992px) {
  .sd-hero { height: 700px; }
}

.sd-hero .carousel,
.sd-hero .carousel-inner,
.sd-hero .carousel-item {
  height: 100%;
}

.sd-hero .carousel-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  filter: none;
}

.sd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,10,24,0.92) 0%, rgba(5,10,24,0.55) 45%, transparent 100%);
  z-index: 1;
}

.sd-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(176, 196, 222, 0.3);
  background: rgba(5, 10, 24, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 1.5rem;
  color: var(--bolt);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cycle);
}

.sd-hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #fff;
}

.sd-hero .lead {
  color: var(--mist);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

/* Cycle controls + bolt dots */
.sd-hero .carousel-control-prev,
.sd-hero .carousel-control-next {
  width: 2.5rem;
  height: 2.5rem;
  top: auto;
  bottom: 2rem;
  opacity: 1;
  border: 1px solid var(--cycle);
  border-radius: 50%;
  background: transparent;
  color: var(--cycle);
}
.sd-hero .carousel-control-prev { left: auto; right: 7.5rem; }
.sd-hero .carousel-control-next { right: 4.5rem; }
.sd-hero .carousel-control-prev-icon,
.sd-hero .carousel-control-next-icon {
  width: 0.85rem;
  height: 0.85rem;
  filter: none;
  background-size: 100%;
}
.sd-hero .carousel-control-prev:hover,
.sd-hero .carousel-control-next:hover {
  background: var(--cycle);
  color: var(--midnight);
}

.sd-hero .carousel-indicators {
  position: absolute;
  right: 1.5rem;
  bottom: 2.35rem;
  left: auto;
  margin: 0;
  gap: 0.5rem;
  justify-content: flex-end;
}
.sd-hero .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(176, 196, 222, 0.3);
  border: 0;
  opacity: 1;
  text-indent: -9999px;
  margin: 0;
}
.sd-hero .carousel-indicators .active {
  width: 12px;
  height: 12px;
  background: var(--bolt);
}

/* —— Page heroes —— */
.page-hero {
  background: var(--midnight);
  color: #fff;
  padding: 4rem 0;
}
.page-hero .eyebrow {
  color: var(--bolt);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.page-hero p {
  color: var(--mist);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* —— Section —— */
.section-pad { padding: 4rem 0; }
@media (min-width: 768px) {
  .section-pad-lg { padding: 6rem 0; }
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--midnight);
  margin: 0 0 0.75rem;
}
.section-head p { color: rgba(27, 36, 55, 0.7); margin: 0; }
.link-mono {
  color: var(--bolt-deep);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.link-mono:hover { color: var(--bolt); }

/* —— Product cards (accueil style) —— */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.sd-card {
  background: #fff;
  border: 1px solid rgba(27, 36, 55, 0.1);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
}
.sd-card:hover { box-shadow: 0 10px 30px rgba(5, 10, 24, 0.08); color: inherit; }

.sd-card-media {
  height: 16rem;
  overflow: hidden;
  position: relative;
  background: rgba(27, 36, 55, 0.05);
}
.sd-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s, transform 0.4s;
}
.sd-card:hover .sd-card-media img {
  filter: grayscale(0);
  transform: scale(1.05);
}

.badge-cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 10px;
}

.sd-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sd-card-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--midnight);
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}
.sd-card:hover .sd-card-body h3 { color: var(--bolt-deep); }
.sd-card-body p {
  font-size: 0.875rem;
  color: rgba(27, 36, 55, 0.7);
  flex: 1;
  margin: 0 0 1.5rem;
}
.sd-card-cta {
  border-top: 1px solid rgba(27, 36, 55, 0.1);
  padding-top: 1rem;
  color: var(--bolt-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* —— Mosaic list (Produits / Réalisations) —— */
.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(27, 36, 55, 0.1);
  border: 1px solid rgba(27, 36, 55, 0.1);
}
@media (min-width: 576px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }
}

.mosaic-item {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.mosaic-item:hover { color: inherit; }

.mosaic-media {
  height: 13rem;
  overflow: hidden;
  position: relative;
  background: var(--midnight);
}
.mosaic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}
.mosaic-item:hover .mosaic-media img {
  opacity: 1;
  transform: scale(1.05);
}

.badge-bolt {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: rgba(5, 10, 24, 0.9);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--bolt);
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  font-weight: 500;
}

.mosaic-body {
  background: #fff;
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mosaic-body h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--midnight);
  margin: 0 0 0.5rem;
}
.mosaic-item:hover .mosaic-body h3 { color: var(--bolt-deep); }
.mosaic-body p {
  font-size: 0.875rem;
  color: rgba(27, 36, 55, 0.7);
  flex: 1;
  margin: 0 0 1.25rem;
}
.mosaic-body .link-mono {
  border-top: 1px solid rgba(27, 36, 55, 0.1);
  padding-top: 1rem;
  color: var(--bolt);
}

/* —— Filters —— */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.product-search {
  margin-top: 1.75rem;
  max-width: 40rem;
}

.product-search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 196, 222, 0.35);
  border-radius: 2px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
}

.product-search-inner iconify-icon {
  color: var(--mist);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.product-search-inner input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "General Sans", system-ui, sans-serif;
  font-size: 1rem;
  outline: none;
  padding: 0.55rem 0;
}

.product-search-inner input[type="search"]::placeholder {
  color: rgba(176, 196, 222, 0.65);
}

.product-search-inner .btn-bolt {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.8rem;
}

.product-search-clear {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--mist);
}

.product-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px solid rgba(176, 196, 222, 0.35);
  border-radius: 2px;
  color: rgba(27, 36, 55, 0.7);
}

.chip, .chip-active {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
}
.chip {
  border: 1px solid var(--cycle);
  color: var(--cycle);
  background: transparent;
}
.chip:hover {
  background: var(--cycle);
  color: var(--midnight);
}
.chip-active {
  background: var(--bolt);
  color: var(--midnight);
  border: 1px solid var(--bolt);
  font-weight: 700;
}

/* —— CTA band —— */
.cta-navy {
  background: var(--navy);
  color: #fff;
  padding: 5rem 0;
  border-top: 1px solid rgba(176, 196, 222, 0.1);
  text-align: center;
}
.cta-navy h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 1.5rem;
}
.cta-navy p {
  color: var(--mist);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.125rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* —— Reviews —— */
.review-card {
  background: #fff;
  border: 1px solid rgba(27, 36, 55, 0.1);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.star { color: var(--sun); letter-spacing: 0.1em; }

/* —— Footer —— */
.sky-footer {
  background: var(--midnight);
  color: #fff;
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.sky-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.sky-footer a:hover { color: var(--bolt); }
.text-mist { color: var(--mist) !important; }
.text-bolt { color: var(--bolt) !important; }
.meta-label {
  color: var(--mist);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-bottom {
  border-top: 1px solid rgba(176, 196, 222, 0.2);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(176, 196, 222, 0.7);
}
.footer-signature {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-signature strong {
  color: var(--bolt);
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* Forms on dark */
.form-dark .form-control,
.form-dark .form-select {
  background: var(--navy);
  border: 1px solid rgba(176, 196, 222, 0.3);
  color: #fff;
  border-radius: 2px;
}
.form-dark .form-control:focus {
  background: var(--navy);
  border-color: var(--bolt);
  color: #fff;
  box-shadow: none;
}

/* Detail gallery (produits / réalisations) */
.detail-gallery {
  border: 1px solid rgba(176, 196, 222, 0.35);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.detail-gallery .carousel-item img {
  width: 100%;
  height: min(420px, 55vh);
  object-fit: cover;
}

.detail-gallery .carousel-item img.is-zoomable {
  cursor: zoom-in;
}

.detail-gallery .carousel-inner {
  position: relative;
}

.detail-gallery .carousel-item.active::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 2px;
  pointer-events: none;
  background:
    no-repeat center / 1.1rem
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23050A18' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E"),
    var(--bolt);
  box-shadow: 0 2px 8px rgba(5, 10, 24, 0.25);
}

body.sky-lightbox-open {
  overflow: hidden;
}

.sky-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem;
  background: rgba(5, 10, 24, 0.92);
}

.sky-lightbox[hidden] {
  display: none !important;
}

.sky-lightbox-figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  text-align: center;
}

.sky-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: zoom-out;
}

.sky-lightbox-caption {
  margin-top: 0.75rem;
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.sky-lightbox-close,
.sky-lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sky-lightbox-close:hover,
.sky-lightbox-nav:hover {
  background: var(--bolt);
  color: var(--midnight);
}

.sky-lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.75rem;
  line-height: 1;
  border-radius: 2px;
}

.sky-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.35rem;
  border-radius: 2px;
}

.sky-lightbox-prev {
  left: 0.75rem;
}

.sky-lightbox-next {
  right: 0.75rem;
}

@media (max-width: 576px) {
  .sky-lightbox {
    padding: 3.5rem 0.75rem 1.5rem;
  }

  .sky-lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }

  .sky-lightbox-prev {
    left: 1rem;
  }

  .sky-lightbox-next {
    right: 1rem;
  }
}

.detail-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-top: 1px solid rgba(176, 196, 222, 0.3);
  flex-wrap: wrap;
}

.detail-thumb {
  width: 72px;
  height: 52px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  background: #e8eef5;
  cursor: pointer;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-thumb.active,
.detail-thumb:hover {
  border-color: var(--bolt);
}
