:root {
  --blue: #005b95;
  --blue-dark: #00385e;
  --grey-light: #f4f4f4;
  --text: #222222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid #e5e5e5;
  backdrop-filter: blur(8px);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  height: 40px;
  width: auto;
  display: block;
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}
.logo-text span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--blue);
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-left: 36px; /* espace entre logo et "Services" */
}
nav li {
  position: relative;
  cursor: pointer;
}
nav li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.2s ease;
}
nav li:hover::after {
  width: 100%;
}
/* Empêche les libellés du menu de passer sur deux lignes */
header nav a {
  white-space: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: #0070c0;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}
.btn-outline {
  border: 1px solid #ffffff;
  color: #ffffff;
  background: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

/* Icônes réseaux sociaux */
.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-icon svg {
  width: 16px;
  height: 16px;
}
.social-icon--facebook svg {
  fill: #1877f2;
}
.social-icon--linkedin svg {
  fill: #0a66c2;
}
.social-icon--instagram .social-img {
  height: 16px;      /* hauteur fixe */
  width: auto;       /* largeur auto, pas de déformation */
  display: block;
  border-radius: 4px;
  object-fit: contain;
}

.social-icon:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile {
  display: none;
  border-top: 1px solid #eee;
  background: #fff;
}
.nav-mobile.open {
  display: block;
}
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 16px 14px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/585043862_122105935935115312_4558842390730890492_n.jpg") center/cover no-repeat;
  filter: brightness(0.5);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,56,94,0.9), rgba(0,91,149,0.85));
  mix-blend-mode: multiply;
  z-index: -1;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 16px 60px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 24px;
  opacity: 0.95;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-phone {
  font-size: 14px;
  opacity: 0.9;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
}
.hero-card ul {
  list-style: none;
  font-size: 14px;
}
.hero-card li {
  margin-bottom: 6px;
}

/* SECTIONS */

section {
  padding: 64px 16px;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.section-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 20px;
}
.section-intro {
  max-width: 550px;
  font-size: 14px;
  color: #555;
  margin-bottom: 28px;
}
.section-grey {
  background: var(--grey-light);
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #ebebeb;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.06);
}
.service-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--blue-dark);
}
.service-card p {
  font-size: 14px;
  color: #555;
}

/* ABOUT / A PROPOS */

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text .about-list {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
}
.about-text .about-list li {
  margin-bottom: 10px;
  font-size: 15px;
  color: #444;
}
.about-btn {
  margin-top: 10px;
}
.about-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* CARROUSEL RÉALISATIONS – VERSION LARGE */

#realisations .section-inner {
  max-width: 1300px;
}

.carousel {
  position: relative;
  margin-top: 24px;
}

.carousel-window {
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  margin: 0 70px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  max-width: 100%;
  position: relative;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(15,23,42,0.2);
  background: rgba(255,255,255,0.95);
  color: var(--blue-dark);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.18);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  z-index: 5;
}
.carousel-btn-prev { left: 24px; }
.carousel-btn-next { right: 24px; }

.carousel-btn:hover {
  transform: translateY(-50%) translateY(-1px);
  background: #f3f4f6;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.carousel-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, width 0.2s ease;
}
.carousel-dot.active {
  background: var(--blue);
  transform: scale(1.1);
  width: 16px;
}

/* ZONE D’INTERVENTION */

.zone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}
.zone-text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}
.zone-text ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
  column-gap: 24px;
  margin-top: 6px;
}
.zone-text li {
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
}
.zone-text li::before {
  content: "• ";
  color: var(--blue);
}
.zone-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  font-size: 14px;
  color: #555;
}
.zone-card strong {
  color: var(--blue-dark);
}

/* CONTACT */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: flex-start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.contact-form .full {
  grid-column: 1 / -1;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #555;
}
input, textarea, select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid #d5d5d5;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(0,91,149,0.18);
}
textarea {
  min-height: 130px;
}
.contact-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
  color: #555;
}
.contact-info-block {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 14px 16px;
  box-shadow: 0 10px 26px rgba(15,23,42,0.04);
}
.contact-info-block strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}
.contact-info-block a {
  color: var(--blue-dark);
}
.contact-info-block a:hover {
  text-decoration: underline;
}
.rgpd-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}
.rgpd-field input[type="checkbox"] {
  margin-top: 2px;
  width: 14px;
  height: 14px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }
  .hero-card {
    order: -1;
    margin-bottom: 10px;
  }
  .about-layout,
  .zone-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .zone-text ul {
    columns: 1;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav-right .btn-primary {
    display: none;
  }
  section {
    padding: 52px 16px;
  }
  .hero {
    min-height: 60vh;
  }
  .carousel-window {
    margin: 0 40px;
  }
  .carousel-slide img {
    max-height: 320px;
  }
  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }
  .hero-text p {
    font-size: 14px;
  }
  .service-card {
    padding: 16px;
  }
}
