html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #06162f;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 8%;
  background: rgba(4, 17, 40, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.logo img {
  height: 55px;
}

.navbar nav {
  display: flex;
  gap: 28px;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.navbar nav a:hover {
  color: #48b8ff;
}

/* HERO */
.page-hero {
  min-height: 70vh;
  padding: 130px 10% 80px;

  background:
    linear-gradient(135deg, rgba(2,12,30,0.95), rgba(7,35,80,0.75)),
    url("accueil.png");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
}

.page-hero h1 {
  font-size: 72px;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 23px;
  max-width: 750px;
  line-height: 1.6;
}

/* PAGE */
.services-page {
  padding: 100px 8%;
  background: linear-gradient(180deg, #06162f, #0b234a, #020814);
}

/* CARTES SERVICES */
.service-detail {
  min-height: 280px;
  margin-bottom: 70px;

  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 35px;
  align-items: center;

  padding: 45px;
  border-radius: 32px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);

  position: relative;
  overflow: hidden;
}

.service-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(72,184,255,0.28), transparent 35%);
  opacity: 0;
  transition: 0.4s;
}

.service-detail:hover::before {
  opacity: 1;
}

.service-detail:hover {
  transform: scale(1.015);
  transition: 0.35s;
}

.service-number {
  font-size: 70px;
  font-weight: 900;

  color: transparent;
  -webkit-text-stroke: 2px #48b8ff;
}

.service-content {
  position: relative;
  z-index: 1;
}

.service-content h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

.service-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #d9e7ff;
}

/* ANIMATIONS DIFFÉRENTES */
.reveal-left {
  opacity: 0;
  transform: translateX(-120px) rotate(-2deg);
  transition: 0.9s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(120px) rotate(2deg);
  transition: 0.9s ease;
}

.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

/* FOOTER */
footer {
  background: #020814;
  text-align: center;
  padding: 25px;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 35px 25px;
  }

  .service-number {
    font-size: 50px;
  }
}
.service-detail {
    scroll-margin-top: 35vh;
}
/* TRANSITIONS ENTRE PAGES HTML */

body.slide-in-left {
  animation: slideInLeft 0.55s ease;
}

body.slide-in-right {
  animation: slideInRight 0.55s ease;
}

body.page-exit-left {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

body.page-exit-right {
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.logo img {
    height: 55px;
    transition: 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(72,184,255,0.5));
}
@media (max-width: 768px) {

  .navbar {
    position: fixed;
    padding: 12px 5%;
    flex-direction: column;
    gap: 10px;
  }

  .logo img {
    height: 42px;
  }

  .navbar nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 6px;
  }

  .navbar nav a {
    white-space: nowrap;
    font-size: 14px;
  }

  .hero {
    height: 85vh;
    padding: 120px 20px 40px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .section {
    padding: 70px 6%;
  }

  .section h2 {
    font-size: 34px;
  }

  .section p {
    font-size: 16px;
  }

  .service-grid,
  .realisation-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .realisation-card,
  .contact-card {
    border-radius: 18px;
  }

  .realisation-card img {
    height: 220px;
  }

  .contact-grid {
    gap: 18px;
  }

  .map-layout {
    flex-direction: column;
  }

  .map-container {
    height: 300px;
  }

  .google-side-card {
    width: 100%;
  }
}
@media (max-width: 768px) {

  .page-hero {
    min-height: 55vh;
    padding: 120px 6% 60px;
  }

  .service-detail,
  .realisation-item,
  .realisation-item.reverse {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 25px;
  }

  .realisation-item.reverse img,
  .realisation-item.reverse .realisation-text {
    order: unset;
  }

  .service-number {
    font-size: 46px;
  }

  .realisation-item img {
    height: 260px;
  }

  .realisation-text h2,
  .service-content h2 {
    font-size: 28px;
  }
}
.mobile-floating-logo {
  display: none;
}

@media (max-width: 768px) {

  .navbar {
    transition: transform 0.35s ease;
  }

  .navbar.hide-mobile-nav {
    transform: translateY(-100%);
  }

  .mobile-floating-logo {
    display: block;
    position: fixed;
    top: 12px;
    left: 14px;
    z-index: 1001;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-floating-logo img {
    height: 70px;
  }

  .mobile-floating-logo.show-logo {
    opacity: 1;
    pointer-events: auto;
  }
  .navbar {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .navbar nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .service-detail {
    overflow: hidden;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(60px);
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0);
  }
}
}
html,
body {
  overflow-x: hidden;
}
body.page-exit-left,
body.page-exit-right {
  pointer-events: none;
}