:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 34, 0.85);
  --cyan: #00d2ff;
  --magenta: #e024c3;
  --gradient: linear-gradient(135deg, var(--cyan), var(--magenta));
  --text-white: #ffffff;
  --text-muted: #94a3b8;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(224, 36, 195, 0.08) 0%, transparent 40%);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 14, 0.88);
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-container img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}

nav a:hover, nav a.active {
  color: var(--cyan);
}

.btn-devis {
  background: transparent;
  border: 1px solid var(--cyan);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s all ease;
}

.btn-devis:hover {
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
}

.gradient-cyan {
  color: var(--cyan);
}

.gradient-magenta {
  color: var(--magenta);
}

.barcode-line {
  letter-spacing: 4px;
  font-family: monospace;
  color: var(--text-muted);
  opacity: 0.45;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

/* HERO BANNER ACCUEIL (DÉGAGÉ AU CENTRE) */
.hero {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Pousse le titre vers le haut et la phrase vers le bas */
  text-align: center;
  padding: 35px 20px 20px;       /* Padding haut réduit pour remonter le titre */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  margin-bottom: 45px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.45) 0%,
    rgba(7, 9, 14, 0.20) 50%,    /* Centre très transparent pour laisser briller le faisceau */
    rgba(7, 9, 14, 0.70) 85%,
    var(--bg-dark) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;               /* Calé tout en haut */
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* PHRASE DU BAS : FINE, CENTRÉE SUR UNE LIGNE */
.hero-tagline-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

@media (max-width: 992px) {
  .hero-tagline-bottom {
    white-space: normal;
    font-size: 0.85rem;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 320px;
    padding: 25px 16px 15px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
}

/* PHRASE DU BAS : FINE & CENTRÉE */
.hero-tagline-bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.8px;
  color: #e2e8f0;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* SECTIONS GLOBALES */
.section-container {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.section-title span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: none;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

/* CARTES SERVICES */
.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 22px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: #fff;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 35px rgba(0, 210, 255, 0.18);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =========================================
   BANDEAU DÉFILANT LOGOS CLIENTS
   ========================================= */
.clients-section {
  padding: 40px 0;
  background: rgba(12, 16, 26, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 60px;
  overflow: hidden;
  text-align: center;
}

.clients-title {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 25px;
  font-weight: 700;
}

.clients-title span {
  color: var(--cyan);
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 40px;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
  animation: scrollMarquee 25s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.client-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  transition: all 0.3s ease;
}

.client-logo-item span {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #cbd5e1;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 10px 20px;
  border-radius: 10px;
  background: rgba(18, 22, 34, 0.6);
  white-space: nowrap;
}

.client-logo-item:hover span {
  border-color: var(--cyan);
  color: #fff;
  transform: scale(1.05);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - 40px)); }
}

/* =========================================
   GALERIE SHOWCASE DÉFILANTE (RÉALISATIONS)
   ========================================= */
.showcase-section {
  max-width: 1200px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.showcase-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 15px 5px 25px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.05);
}

.showcase-slider::-webkit-scrollbar {
  height: 6px;
}

.showcase-slider::-webkit-scrollbar-thumb {
  background: var(--gradient);
  border-radius: 10px;
}

.showcase-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: all 0.35s ease;
  text-decoration: none;
  color: #fff;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.2);
}

.showcase-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #111420;
}

.showcase-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.showcase-content {
  padding: 16px;
}

.showcase-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.showcase-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =========================================
   FORMULAIRE DE DEVIS
   ========================================= */
.devis-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.devis-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.devis-header {
  text-align: center;
  margin-bottom: 35px;
}

.devis-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.devis-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.services-choice-label {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  color: #fff;
}

.services-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
  color: var(--text-muted);
}

.chip:hover {
  border-color: var(--cyan);
  color: #fff;
}

.chip.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.devis-actions {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.btn-submit-wa {
  flex: 1;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn-submit-mail {
  flex: 1;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 36, 195, 0.35);
}

/* BANNIÈRES PAGES SERVICE */
.service-hero-banner {
  position: relative;
  width: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: none;
  margin-bottom: 50px;
}

.service-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 14, 0.70) 0%,
    rgba(7, 9, 14, 0.85) 65%,
    var(--bg-dark) 100%
  );
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
}

.service-hero-content p {
  color: #cbd5e1;
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 45px 20px 35px;
  text-align: center;
  background: rgba(4, 6, 10, 0.95);
}

.footer-tagline {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-tagline span {
  color: var(--cyan);
}

.footer-contacts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.3s;
}

.contact-item i {
  color: var(--cyan);
}

.contact-item:hover {
  color: #fff;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: 0.3s all ease;
}

.social-btn:hover {
  border-color: var(--magenta);
  background: var(--magenta);
  transform: scale(1.1);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.12);
}

@media (max-width: 992px) {
  .hero-tagline-bottom {
    white-space: normal;
    font-size: 0.85rem;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  nav { display: none; }
  .hero { min-height: 280px; padding: 45px 16px 35px; }
  .hero h1 { font-size: 1.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .devis-actions { flex-direction: column; }
  .service-hero-banner { min-height: 320px; padding: 60px 18px 40px; }
  .service-hero-content h1 { font-size: 1.95rem; }
  .service-hero-content p { font-size: 0.98rem; }
}