/* ==============================
   POLICES ET RÉGLAGES GÉNÉRAUX
============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #F4F4F4;
  color: #1A1A1A;
  scroll-behavior: smooth;
}

/* ==============================
   HEADER ET NAVIGATION
============================== */
header {
  background: #333;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Permet au menu de descendre sur mobile */
}

/* --- Bloc logo + note Google --- */
.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo principal (icône + texte) */
.logo a {
  display: flex;
  align-items: center;
  color: #FF8C00;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

.logo i {
  margin-right: 8px;
}

/* Note Google sous le logo */
.rating {
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating .note {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .logo a {
    font-size: 1.5rem;
  }
  .rating .note {
    font-size: 0.85rem;
  }
}

/* Menu principal */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s;
}

.menu li a:hover {
  color: #FF8C00;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  color: #FF8C00;
  cursor: pointer;
}

/* ==============================
   HERO AVEC IMAGE STYLISÉE
============================== */
.hero {
  background: url('images/hero.jpg') center/cover no-repeat fixed;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInDown 1s ease-in-out;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #FF8C00;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: #fff;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 14px 35px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: #FF8C00;
  color: #fff;
}

.btn-primary:hover {
  background: #e07400;
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #FF8C00;
  color: #FF8C00;
}

.btn-secondary:hover {
  background: #FF8C00;
  color: #fff;
  transform: translateY(-3px);
}

.hero-phone {
  margin-top: 25px;
}

.hero-phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: #00A3E8;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.hero-phone a:hover {
  background: #007bb5;
  transform: translateY(-3px);
}

.hero-phone i {
  font-size: 1.2rem;
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: 80px 20px;
  text-align: center;
}

.section.light {
  background: #fff;
}

.section.parallax {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1;
  color: #fff;
}

.section.parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #333333;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #FF8C00;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

p.intro {
  color: #555555;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ==============================
   SERVICES
============================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, #FF8C00, #00A3E8);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.5s;
}

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

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.service-card .icon {
  font-size: 2.5rem;
  color: #FF8C00;
  margin-bottom: 15px;
}

.service-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
  color: #333;
}

.service-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==============================
   RÉALISATIONS
============================== */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 35px;
}

.realisation-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.realisation-card img {
  width: 100%;
  display: block;
}

.realisation-card h4 {
  padding: 15px;
  font-size: 1.3rem;
  color: #333;
}

.realisation-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
}

/* ==============================
   CONTACT
============================== */
.contact {
  position: relative;
  color: #fff;
}

.contact iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  border-radius: 15px;
}

.contact-map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  border-radius: 15px;
}

.contact .container {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

/* ====== FORMULAIRE ====== */
#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre tous les éléments */
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

#contact-form input {
  width: 100%;
  max-width: 400px; /* limite la largeur pour un meilleur rendu */
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
  margin-bottom: 5px;
}
#contact-form textarea {
  width: 100%;
  max-width: 400px; /* limite la largeur pour un meilleur rendu */
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: border 0.3s, box-shadow 0.3s;
  margin-bottom: 5px;
  height: 150px;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #FF8C00;
  box-shadow: 0 0 8px rgba(255,140,0,0.4);
  outline: none;
}

/* ====== BOUTON ENVOYER ====== */
#contact-form button {
  padding: 14px 30px;
  background: #FF8C00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  align-self: center; /* reste centré */
}

#contact-form button:hover {
  background: #e07400;
  transform: translateY(-3px);
}

#contact-form button i {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}

/* ==============================
   FOOTER
============================== */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

footer a {
  color: #FF8C00;
  text-decoration: underline;
}

footer a:hover {
  color: #00A3E8;
}

/* ==============================
   MODAL
============================== */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 30px 40px;
  border-radius: 12px;
  max-width: 700px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  text-align: left;
  color: #333;
  line-height: 1.6;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  z-index: 1001;
}

.close:hover {
  color: #FF8C00;
}

/* ==============================
   ANIMATIONS
============================== */
@keyframes fadeInDown {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}

/* ==============================
   HAMBURGER RESPONSIVE
============================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    display: none;
    margin-top: 10px;
    background: #333;
    border-radius: 8px;
    overflow: hidden;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    padding: 15px 0;
    border-bottom: 1px solid #444;
    text-align: center;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu li a {
    font-size: 1.1rem;
  }
}

/* ==============================
   ANIMATIONS DE SECTION
============================== */
section {
  transition: transform 0.5s, opacity 0.6s;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section.hidden {
  opacity: 0;
  transform: translateY(30px);
}