/* ==========================================================================
   Contour Détour — Solutions Graphiques
   Feuille de style principale — thème corporatif
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Header ---------- */
#site-header.scrolled {
  box-shadow: 0 2px 18px rgba(11, 42, 61, 0.08);
}

.mobile-link {
  font-weight: 600;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(11,42,61,0.06);
}

/* ---------- Hero ---------- */
.hero-image {
  background-image: url('../images/hero-atelier-impression.jpg');
  background-size: cover;
  background-position: center 40%;
}

.hero-gradient {
  background:
    linear-gradient(180deg, rgba(7,27,40,0.55) 0%, rgba(7,27,40,0.55) 40%, rgba(7,27,40,0.92) 100%),
    linear-gradient(100deg, rgba(7,27,40,0.75) 10%, rgba(7,27,40,0.25) 60%, rgba(7,27,40,0.1) 100%);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal-in 0.9s cubic-bezier(.16,.84,.44,1) forwards;
}
.reveal.delay-1 { animation-delay: 0.12s; }
.reveal.delay-2 { animation-delay: 0.26s; }
.reveal.delay-3 { animation-delay: 0.4s; }

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e0592a;
}
.eyebrow-light {
  color: #f0946f;
}

/* ---------- Trusted-by strip ---------- */
.client-mark {
  color: rgba(255,255,255,0.65);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

/* ---------- Stats ---------- */
.stat-item {
  padding: 1rem;
}

/* ---------- Service cards ---------- */
.service-card {
  background: #ffffff;
  border: 1px solid rgba(11,42,61,0.08);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 89, 42, 0.35);
  box-shadow: 0 24px 40px -24px rgba(11, 42, 61, 0.25);
}
.service-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,42,61,0) 55%, rgba(11,42,61,0.35) 100%);
}
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 89, 42, 0.1);
  color: #e0592a;
  font-size: 1.1rem;
}

/* ---------- Process ---------- */
.process-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.85rem;
  padding: 2rem 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.process-step:hover {
  border-color: rgba(224, 89, 42, 0.5);
  transform: translateY(-4px);
}
.process-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.25rem;
  color: rgba(224, 89, 42, 0.35);
  -webkit-text-stroke: 1px rgba(224, 89, 42, 0.8);
}

/* ---------- Projects ---------- */
.project-card {
  position: relative;
  border-radius: 0.85rem;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(11,42,61,0.08);
}
.project-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}
.project-card:hover .project-img {
  transform: scale(1.06);
}
.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(180deg, rgba(7,27,40,0) 30%, rgba(7,27,40,0.92) 100%);
}

/* ---------- Galerie de réalisations (mosaïque photo masonry) ---------- */
.gallery-mosaic {
  column-count: 2;
  column-gap: 0.5rem;
}
@media (min-width: 640px) {
  .gallery-mosaic {
    column-count: 3;
  }
}
@media (min-width: 1024px) {
  .gallery-mosaic {
    column-count: 4;
  }
}
.gallery-mosaic-item {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  break-inside: avoid;
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-mosaic-item:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px -18px rgba(11,42,61,0.35);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7,27,40,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.lightbox.hidden {
  display: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  color: #ffffff;
  font-size: 1.75rem;
  background: rgba(255,255,255,0.1);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ---------- Clients de marque ---------- */
.client-card {
  background: #ffffff;
  border: 1px solid rgba(11,42,61,0.08);
  border-radius: 0.75rem;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.client-card:hover {
  border-color: rgba(224, 89, 42, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px rgba(11,42,61,0.3);
}
.client-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0b2a3d;
  letter-spacing: 0.01em;
}
.client-logo {
  max-height: 48px;
  max-width: 80%;
  width: auto;
  object-fit: contain;
}

/* ---------- Why us ---------- */
.why-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(224, 89, 42, 0.1);
  color: #e0592a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

/* ---------- Contact ---------- */
.contact-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(11,42,61,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0592a;
  flex-shrink: 0;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b2a3d;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(11,42,61,0.15);
  border-radius: 0.55rem;
  padding: 0.75rem 1rem;
  color: #0b2a3d;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: #e0592a;
  box-shadow: 0 0 0 3px rgba(224, 89, 42, 0.12);
}
.form-input::placeholder {
  color: rgba(11,42,61,0.35);
}
select.form-input option {
  background: #ffffff;
  color: #0b2a3d;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f5f7f9;
}
::-webkit-scrollbar-thumb {
  background: #0b2a3d;
  border-radius: 10px;
}
