* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #63c7b2;
  --accent-light: #9ffff5;
  --text-soft: rgba(255,255,255,.74);
  --panel: rgba(255,255,255,.05);
  --border: rgba(255,255,255,.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: white;
  background:
    linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.88)),
    url("https://images.pexels.com/photos/14541775/pexels-photo-14541775.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* LOADER */

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  overflow: hidden;
  transition: opacity 1s ease, visibility 1s ease;
 } 
#loader-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  }

  .intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #000;
  }


/* HEADER */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5000;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar {
  max-width: 1200px;
  height: 86px;
  padding: 0 22px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  gap: 34px;
}

.nav-desktop a {
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.btn-nav,
.btn-main,
.mobile-cta {
  background: var(--accent);
  color: #061010;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: .3s;
}

.btn-nav {
  padding: 12px 22px;
}

.btn-main {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  min-width: 190px;
}

.btn-main:hover,
.btn-nav:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(99,199,178,.4);
}

.btn-secondary {
  color: white;
  border: 2px solid rgba(255,255,255,.25);
  text-decoration: none;
  border-radius: 12px;
  padding: 15px 30px;
  min-width: 190px;
  font-weight: 800;
  transition: .3s;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(159,255,245,.74);
}

.burger-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.7rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 86px;
  right: 16px;
  width: min(88vw, 320px);
  background: rgba(0,0,0,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: .3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-cta {
  margin: 12px;
  text-align: center;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 120px 20px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  animation: fadeUp .9s ease forwards;
}

.hero-tag,
.section-title p,
.mini-title {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: .85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  font-weight: 900;
}

.hero p {
  color: var(--text-soft);
  max-width: 760px;
  line-height: 1.7;
}

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

/* SECTIONS */

main,
section {
  position: relative;
  z-index: 1;
}

.services,
.about,
.contact,
.cta-section {
  padding: 110px 20px;
}

.section-title {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 55px;
}

.section-title h2,
.about h2,
.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 12px 0;
}

.section-title span,
.about p,
.cta-section p {
  color: var(--text-soft);
  line-height: 1.8;
}

.cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  height: 320px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  border-radius: 26px;
  
}

.card img {
  width: 100%;
  height: 100%;
  display: block;

  /* affichage toute l'image */

  object-fit: contain;
  object-position: center center;

  /* aucun fond ni espace */

  background: transparent;
  padding: 0 ;
  margin: 0 ;

  transition: transform .45s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.26);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: .35s;
}

.card-overlay h3 {
  font-size: 1.6rem;
  transform: translateY(20px);
  transition: .35s;
}

.card:hover {
  transform: translateY(-8px);
}

.card:hover img {
  transform: scale(0.90);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card:hover h3 {
  transform: translateY(0);
}

.about-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.cta-section {
  min-height: 52vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: white;
  outline: none;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.55);
}

.contact-form button {
  justify-self: center;
}

footer {
  text-align: center;
  padding: 35px 20px;
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.7);
}

/* ANIMATIONS */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ============================= */
  /* RESET HEADER FINAL */
/* ============================= */

header {
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 5000 !important;
  background: rgba(0,0,0,.72) !important;
  backdrop-filter: blur(14px) !important;
}

.navbar {
  max-width: 1200px !important;
  height: 86px !important;
  padding: 0 22px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.brand img {
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
}

.nav-desktop {
  display: flex !important;
  gap: 34px !important;
}

.hero {
  padding: 120px 20px 70px !important;
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */

@media (max-width: 900px) {
  .nav-desktop,
  .btn-nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .cards,
  .about-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  body {
    background-attachment: scroll;
  }

  .navbar {
    height: 78px;
  }

  .brand img {
    width: 60px;
    height: 60px;
  }

  .mobile-menu {
    top: 78px;
  }

  .hero {
    padding-top: 105px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .btn-main,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .loader-logo-wrap {
    width: 120px;
  min-width:0;
  }

  .loader-welcome {
    font-size: clamp(24px, 8vw, 46px);
    letter-spacing: .24em;
    text-indent: .24em;
  }

  .loader-line {
    width: min(74vw, 360px);
  }
}

/* force taille logo loader*/


#loader .loader-logo-wrap {
  width: 130px !important;
  min-width: 0 !important;
  max-width: 130px !important;
 } 

 #loader .loader-logo {
  width: 130px !important;
  max-width: 130px !important;
  height: auto !important;
  display: block !important;
 }

 /* RESET FINAL LOADER */


#loader .loader-logo-wrap {
  width: 120px !important;
  max-width: 120px !important;
  min-width: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(18px) scale(.75) !important;
  filter: blur(18px) !important;
  animation: none !important;
  transition: opacity 1s ease, transform 1s ease, filter 1s ease !important;
}

#loader .loader-logo-wrap.show {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  filter: blur(0) !important;
}

#loader .loader-logo {
  width: 120px !important;
  max-width: 120px !important;
  height: auto !important;
  display: block !important;
  animation: none !important;
}

#loader .loader-welcome,
#loader .loader-line {
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
}

#loader .loader-welcome.show,
#loader .loader-line.show {
  opacity: 1 !important;
  visibility: visible !important;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

 
/* ============================= */
/* COOKIE BANNER */
/* ============================= */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .92);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  color: white;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin-top: 6px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  font-size: .95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

#cookie-refuse {
  background: rgba(255,255,255,.12);
  color: white;
}

#cookie-accept {
  background: var(--accent);
  color: #061010;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    width: 100%;
  }





  .cookie-actions button {
    width: 100%;
  }
}

/* ============================= */
         /* fix service */
/* ============================= */

.cards {
  max-width: 1200px;
  margin: 0 auto;

  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
 }
 
 .card { 
  height: 320px;
 border-radius: 26px;
 overflow: hidden;
 position: relative;
 background: #111;
 border: 1px solid rgb(255, 255, 255,.08);
 transition: transform .35s ease, box-shadow .35s ease;
 } 

 .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform .45s ease;

 } 

 .card:hover { 
  transform: translateY(-8px)
 }

 .card:hover img{
  transform: scale(1.6);
  }

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
 }

 .card-overlay h3 {
  font-size: 1.6rem;
  color: white;
  text-align: center;
 }

@media (max-width: 900px ) {
  .card {
    grid-template-columns: 1fr;
    }

  .card {
    height: 285px;
    }
  }


/* FIX CONTACT SECTION */
.contact,
.contact .section-title,
.contact-form {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.contact-form {
  max-width: 760px !important;
  margin: 0 auto !important;
  display: grid !important;
  gap: 16px !important;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.contact-form button {
  display: inline-flex !important;
}

/* FIX SECTIONS APRÈS SERVICES */
.about,
.about-box,
.cta-section,
.contact,
.contact .section-title,
.contact-form,
footer {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.cta-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  align-items: center !important;
  justify-content: center !important;
}

.about-box {
  display: grid !important;
}

.contact-form {
  display: grid !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  gap: 16px !important;
}

.reveal {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* presentation video */ 

.about-video {
  padding: 0 20px 110px;
 }
 
 .about-video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  box-shadow: 
  0 20px 60px rgba(0, 0, 0, 0.45),
  0 0 40px rgba(99,199,178,0.08);
}

.about-video-container video { 
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  }

  /* mobile*/

  @media (max-width: 768px) {
    .about-video { 
      padding: 0 20px 80px;
     }
     .about-video-container {
      border-radius: 22px;
      }
    }

  
    /* titre au dessus de la video */
    .about-video-title {
      max-width: 800px ;
      margin: 0 auto 30px;
      text-align: center;
    }

   .about-video-title h2 {
      font-size: clam(2rem, 4vw, 3rem);
      margin: 12 auto 16px;
    } 


    .about-video-title p:last-child {
      color: rgba(255, 255, 255, 0.74);
      line-height: 1.8;
    }

    @media (max-width: 768px) {
      .about-video-title { 
        margin: 0 auto 24px;
        padding: 0 10px;
      
    }
}

/* video taille */


.about-video-container video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  
  /* afficher toute la video */

  object-fit: contain;
  object-position: center center;

  /* fond noir pour masque zone non occupe*/

  background: #000;
 }
 
 /* centrage de la derniere card */

 .cards .card:last-child { 
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - 28px) / 2);
  max-width: 100%;
 } 

 @media (max-width: 800px) {
  .card .card:last-child { 
    grid-column: auto;
    width: 100%;
    justify-self: stretch;
    }
  }   