@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --blanc: #FFFFFF;
  --rouge: #7E1B31;
  --gris: #707173;
  --gris-clair: #f5f5f5;
  --max-width: 1200px;
}

/* Reset / base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: var(--blanc);
  color: var(--gris);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-weight: 500; }
h2{text-align:left;}
h1{margin:0;}
button { font-size: 1em; font-weight: 400; }
.hidden{display:none;}
/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  width: 100%;
  background: var(--blanc);
  position: sticky; top: 0;
  z-index: 1000;
  border-bottom: 10px solid var(--rouge);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px;
}
.logo img { height: 80px;}
.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a {
  color: var(--gris);
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--rouge); }
.header-right { display: flex; align-items: center; gap: 15px; }
.btn-call, .btn-facebook {
  display: flex; align-items: center; gap: 5px;
  border-radius: 5px; cursor: pointer;
}
.btn-call { background: var(--rouge); color: #fff; padding: 8px 15px; }
.btn-facebook { padding: 8px 12px; font-size: 16px; }

/* Burger menu */
.burger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 25px; height: 18px; cursor: pointer;
}
.burger span {
  display: block; height: 3px; background: var(--gris); border-radius: 2px;
  transition: 0.3s;
}
.burger span.rotate1 { transform: rotate(45deg) translate(5px,5px); }
.burger span.rotate2 { transform: rotate(-45deg) translate(5px,-5px); }
.burger span.fade { opacity: 0; }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--rouge);
  color: #fff;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 15px 0; }
.mobile-nav a {
  color: #fff;
  display: block; padding: 12px 20px; font-size: 18px;
  text-decoration: none;
  transition: background 0.3s;
}
.mobile-nav a:hover { background-color: #6b172a; }

/* Responsive Header */
@media (max-width:768px){
  .main-nav { display: none; }
  .burger { display: flex; }
  .mobile-nav.active { display: block; }
  .logo img { height: 40px;}
  .btn-call{margin-left:10px;}
}

/* Slider */
.slider {
  width: 100%; height: 450px;
  position: relative; overflow: hidden;
  background: #eaeaea; margin-bottom: 40px;
}
.slide {
  position: absolute; inset:0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover; background-position: center;
}
.slide.active { opacity:1; }
.slide-text {
  position: absolute; left:50%; bottom:30px; transform: translateX(-50%);
  background: rgba(0,0,0,0.45); color:#fff;
  padding:18px; border-radius:10px; text-align:center;
  max-width:90%;
}
.slide-text h1 { margin:0; font-size:28px; }
.slide-text p { margin:8px 0 0 0; }
.slider-pagination {
  position: absolute; left:50%; bottom:10px; transform: translateX(-50%);
  display: flex; gap:8px;
}
.slider-pagination span {
  width:12px; height:12px; border-radius:50%;
  background:#fff; opacity:0.5; cursor:pointer;
}
.slider-pagination span.active { opacity:1; }

/* Prestations / Cards */
.prestations-wrapper { position: relative; margin: 40px 0; }
.prestations-slider-container { max-width: var(--max-width); margin:0 auto; position: relative; }
.prestations-viewport { overflow:hidden; width:100%; padding-left:20px; }
.prestations-slider { display:flex; gap:30px; transition: transform 0.5s ease; }
.card {
  flex:0 0 calc((1180px - 80px)/3);
  max-width: calc((1180px - 80px)/3);
  background: var(--gris-clair); border-radius:10px;
  padding:20px; margin:20px 0;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow:0 10px 24px rgba(0,0,0,0.12); }
.card img { width:100%; border-radius:6px; margin-top:10px; }
.card h3 { display:flex; gap:8px; margin:6px 0; font-size:1.15rem; color: var(--rouge);}
.card p { font-size:0.95rem; color:#333; margin:6px 0; }
.prev, .next {
  position:absolute; top:50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color:#fff;
  border:none; width:44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  z-index:15;
}
.prev { left:-56px; } .next { right:-56px; }

/* Drone Section */
.drone-section {
  background: var(--rouge);
  padding: 40px 20px;
  color: #fff;
}

.drone-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
}

.drone-text {
  text-align: justify;
  position: relative;
}

.drone-text h2 {
  margin: 0 0 15px;
}

/* --- VIDÉO --- */
.video-container video {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  border: 3px solid #fff; /* cadre blanc */
  box-shadow: 0 8px 20px rgba(0,0,0,0.5); /* ombre portée */
  display: block;
}

/* --------------------------
   DRONE ANIMÉ COMPLET
---------------------------*/

.drone-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  pointer-events: none;
  margin: 0 auto; /* centre horizontalement */
  margin-top:-25px;
}

/* Ombre qui suit le drone */
.drone-shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 90px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.25), transparent);
  border-radius: 50%;
  transform: translateX(-50%) scale(0.9);
  animation: shadowMove 8s ease-in-out infinite alternate;
}

@keyframes shadowMove {
  0% { transform: translateX(calc(-50% - 100px)) scale(0.8); }
  50% { transform: translateX(-50%) scale(0.95); }
  100% { transform: translateX(calc(-50% + 100px)) scale(0.8); }
}

/* Drone avec parallaxe */
.drone-fly {
  width: 120px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation:
    droneFloat 3s ease-in-out infinite alternate,
    droneMoveParallax 8s ease-in-out infinite alternate,
    droneTilt 2s ease-in-out infinite alternate;
}

/* Flottement vertical */
@keyframes droneFloat {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) translateY(-18px) scale(1); }
}

/* Mouvement horizontal + parallaxe */
@keyframes droneMoveParallax {
  0% { transform: translate(-50%, -50%) translateX(-100px) scale(0.95); }
  50% { transform: translate(-50%, -50%) translateX(0) scale(1); }
  100% { transform: translate(-50%, -50%) translateX(100px) scale(0.95); }
}

/* Inclinaison */
@keyframes droneTilt {
  0% { rotate: 0deg; }
  50% { rotate: 3deg; }
  100% { rotate: 0deg; }
}

/* Desktop */
@media (min-width: 768px) {
  .drone-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }

  .drone-text,
  .video-container {
    flex: 1;
  }
}

/* Responsive : mobile */
@media (max-width: 767px) {
  .drone-container {
    display: block; /* supprime flex pour vidéo plus grande */
  }

  .video-container video {
    width: 100%;
    max-width: none;
  }

  .drone-text {
    margin-bottom: 30px; /* espace entre texte et vidéo */
  }
}

/* Contact */
#contact { background: var(--blanc); padding:30px 20px; }
.contact-form {
  max-width: var(--max-width); width:100%; margin:0 auto;
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
.contact-form .full-width { grid-column: 1 / -1; }
.contact-form input, select, textarea {
  padding:10px; border-radius:6px; border:1px solid #ccc;
  width:100%; font-size:1rem;
  box-sizing:border-box;
}
.contact-form textarea { font-family:'Montserrat',sans-serif; font-weight:400; grid-column:1/-1; }
.contact-form .form-footer { grid-column:1/-1; display:flex; justify-content:flex-end; margin-top:10px; }
.contact-form button {
  display:flex; align-items:center; gap:8px;
  padding:14px 20px; background: var(--rouge); color:#fff;
  border:none; border-radius:6px; cursor:pointer; font-size:1rem;
}
.contact-form button i { font-size:1rem; }

.contact-form .hidden-field {display:none;}

.success-message {
      background: #d4edda;
      color: #155724;
      padding: 15px;
      border: 1px solid #c3e6cb;
      border-radius: 5px;
      margin-bottom: 20px;
      text-align: center;
    }
.error-message{
      background: #f8d7da;
      color: #721c24;
      padding: 15px;
      border: 1px solid #f5c6cb;
      border-radius: 5px;
      margin-bottom: 20px;
      text-align: center;
    }

@media (max-width:768px){ .contact-form { grid-template-columns:1fr; } }

/* Partners */
.partners-section { padding:40px 20px; background:#fff; text-align:center; }
.partners { display:flex; justify-content:center; align-items: center; flex-wrap:wrap; gap:25px; margin-top:30px;}
.partners img { display:block; max-height:30px; width:auto; object-fit:contain;transition:transform .2s ease;}

/* Footer */
footer { background: var(--gris); color:#fff; padding:40px 20px 0px 20px;}
.footer-inner { max-width: var(--max-width); margin:0 auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:20px; }
.footer-inner .footer-block { min-width:200px; }
.footer-inner img { max-width:120px; }
.qualifications-logos{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap;margin-top:10px;}
.qualifications-logos img{height:60px;object-fit:contain;transition:transform .2s ease;}
.qualifications-logos img:hover{transform:scale(1.05);}
.footer-bottom{text-align:center;padding:15px 0;color:#fff;font-size:14px;}
footer a:hover{text-decoration: underline;}

/* Back to top */
#backToTop {
  position:fixed; right:40px; bottom:40px;
  background: var(--rouge); color:#fff;
  border:none; width:48px; height:48px;
  border-radius:50%; display:none;
  align-items:center; justify-content:center;
  cursor:pointer; z-index:999;
}

/* Cookie Banner */
#cookieBanner {
  position:fixed; bottom:20px; left:50%;
  transform:translateX(-50%) translateY(100%);
  width:90%; max-width:800px;
  background: rgba(255,255,255,0.98); color:#333;
  padding:18px 24px; border-radius:20px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:16px; box-shadow:0 12px 32px rgba(0,0,0,0.12);
  font-family:'Montserrat',sans-serif; font-size:1rem;
  z-index:999; opacity:0; transition: transform 0.5s, opacity 0.5s;
}
#cookieBanner.show { transform: translateX(-50%) translateY(0); opacity:1; }
#cookieBanner .cookie-text { display:flex; align-items:center; gap:12px; flex:1 1 400px; line-height:1.4; }
#cookieBanner .cookie-text i { font-size:1.6rem; color: var(--rouge); }
#cookieBanner button {
  background: var(--rouge); color:#fff; border:none; padding:10px 22px;
  border-radius:14px; cursor:pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
#cookieBanner button:hover { transform:translateY(-2px); box-shadow:0 6px 14px rgba(0,0,0,0.15); background:#9c203c; }
#cookieBanner a { color: var(--rouge); text-decoration:underline; }

@media(max-width:600px){
  #cookieBanner { flex-direction:column; align-items:flex-start; padding:16px 18px; }
  #cookieBanner .cookie-text { flex:1 1 auto; width:100%; }
  #cookieBanner button { width:100%; text-align:center; }
}

/* Réalisations */
.realisations-section { padding:60px 20px; }
.realisations-filters {
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:30px;
}
.realisations-filters button {
  padding:10px 20px; border:none; background: var(--gris-clair); cursor:pointer;
  border-radius:6px; transition:0.3s;
}
.realisations-filters button.active, .realisations-filters button:hover {
  background: var(--rouge); color:#fff;
}

#realisationsGrid {
  display:grid; grid-template-columns:repeat(5,1fr);
  justify-items:center; gap:10px;
}
@media(max-width:768px){ #realisationsGrid { grid-template-columns:repeat(2,1fr); } }

.real-item { position:relative; overflow:hidden; border-radius:10px; cursor:pointer; }
.real-item img { width:100%; height:100%; object-fit:cover; transition: transform 0.35s ease; }
.real-item:hover img { transform:scale(1.05); }

.realisations-pagination {
  display:flex; justify-content:center; margin-top:20px; gap:8px;
}
.realisations-pagination button {
  border:none; background:#ddd; padding:8px 12px; border-radius:5px; cursor:pointer;
}
.realisations-pagination button.active { background: var(--rouge); color:#fff; }

/* Lightbox */
.lightbox.hidden { display:none; }
.lightbox {
  position:fixed; top:0; left:0; width:100%; height:100%;
  background:rgba(0,0,0,0.8);
  display:flex; justify-content:center; align-items:center; z-index:2000;
}
.lightbox img { max-width:90%; max-height:80vh; }
.lightbox-close { position:absolute; top:20px; right:40px; font-size:40px; color:white; cursor:pointer; }
.lightbox-nav span { position:absolute; top:50%; font-size:40px; color:white; cursor:pointer; padding:20px; }
#lightbox-prev { left:10px; } #lightbox-next { right:10px; }

/* Responsive Cards & Slider */
@media(max-width:1200px){
  .card { flex:0 0 calc((100% - 60px)/3); max-width:calc((100% - 60px)/3); }
}
@media(max-width:1024px){
  .card { flex:0 0 100%; max-width:100%; }
  .prev, .next { display:none; }
  .prestations-viewport { padding:0; }
}
@media(max-width:480px){
  .slide-text h1 { font-size:1.3rem; }
  .slider { height:320px; }
}
