/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

/* ===== HEADER (comme au début) ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #000, #666);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
}

.logo-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
}

.brand {
  font-size: 1.5em;
  font-weight: bold;
}

nav a,
nav button {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

nav a:hover,
nav button:hover {
  text-decoration: underline;
}

/* --- bouton hamburger --- */
#nav-toggle {
  display: none;              /* caché sur desktop */
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
#nav-toggle span {
  width: 100%;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: .3s;
}

/* --- liste de liens --- */
#nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* --- version mobile --- */
@media (max-width: 768px) {
  #nav-toggle { display: flex; }   /* on affiche le bouton */
  #nav-menu {
    position: absolute;
    top: 60px;             /* ajustez selon la hauteur réelle de votre header */
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
  }
  #nav-menu.open { max-height: 400px; }
  #nav-menu li { padding: 1rem 1.5rem; }
}

/* ===== SLIDER PLEIN ÉCRAN ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  animation: slide 18s infinite;
}

.slider img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

@keyframes slide {
  0%   { transform: translateX(0); }
  16.66% { transform: translateX(-100%); }
  33.33% { transform: translateX(-200%); }
  50%  { transform: translateX(-300%); }
  66.66% { transform: translateX(-400%); }
  83.33% { transform: translateX(-500%); }
  100% { transform: translateX(0); }
}

.overlay {
  position: absolute;
  top: 50%;                     /* centré verticalement */
  left: 50%;                    /* centré horizontalement */
  transform: translate(-50%, -50%);
  background: #dadbdc;          /* gris clair */
  color: #000;
  padding: 2rem 3rem;
  border-radius: 8px;
  text-align: center;
  max-width: 90vw;              /* ne dépasse pas 90 % de la largeur écran */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #000;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  margin-bottom: 30px;
  text-align: center;
  font-size: 2em;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.service h3 {
  margin-top: 10px;
  font-size: 1.2em;
}

.service p {
  color: #666;
  margin-top: 5px;
}

/* ---------- section Contact ---------- */
.contact-wrap {
  text-align: center;
  padding: 4rem 0 0 0;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}
.contact-inner h2 {
  margin-bottom: 2.5rem;
  font-size: 2rem;
}

/* Grille gauche / droite */
.contact-grid {
  display: flex;
  gap: 3rem;
  text-align: left;
}
.contact-infos {
  flex: 1 1 40%;
}
.contact-form {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form label {
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .75rem;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  align-self: flex-start;
  padding: .75rem 2rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #0050a0;
}

/* Carte 100 % largeur */
.map-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* Responsive : passe en colonne sur mobile */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}