html,
body {
  margin: 0;
  height: 100%;
}


body {
  background-image: url("/image-client/kit.jpg");

  background-size: cover;

  /* tu descends le focus de l’image */
  background-position: center 0.1%;

  background-repeat: no-repeat;

  /* pas de zoom global */
  transform: none;

  /* stable sur tous les navigateurs */
  background-attachment: fixed;
}


/* =========================================================
   OVERLAY CINÉMA
========================================================= */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.45);

  z-index: 0;

  pointer-events: none;
}


/* contenu au-dessus */

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


/* =========================================================
   HOME / FILM
========================================================= */

.panel {
  height: 100vh;

  display: flex;

  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 120px 30px;

  opacity: 0.25;

  transform: scale(0.92);

  filter: blur(8px);

  transition:
    0.9s cubic-bezier(0.2, 0.8, 0.2, 1);

  position: relative;
}


.panel.active {
  opacity: 1;

  transform: scale(1);

  filter: blur(0);
}


.panel::before {
  content: "";

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.4);
}


.panel > * {
  position: relative;
}


/* =========================================================
   TYPO GLOBAL
========================================================= */

h1 {
  font-size:
    clamp(3rem, 7vw, 6rem);

  letter-spacing: -0.05em;
}


h2 {
  font-size:
    clamp(2rem, 5vw, 4rem);
}


p {
  font-size: 1.1rem;

  opacity: 0.85;

  line-height: 1.6;
}


/* =========================================================
   PAGE
========================================================= */

.page {
  max-width: 1100px;

  margin: 140px auto 100px;

  padding: 0 20px;
}


/* =========================================================
   SECTIONS
========================================================= */

.page-section {
  padding: 80px 0;

  opacity: 1;

  transform: none;

  filter: none;
}


/* =========================================================
   FILM MODE
========================================================= */

.film-mode .page-section {
  min-height: 100vh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 120px 20px;

  opacity: 0.25;

  transform: scale(0.92);

  filter: blur(8px);

  transition:
    0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}


.film-mode .page-section.active {
  opacity: 1 !important;

  transform: scale(1) !important;

  filter: blur(0) !important;
}


/* =========================================================
   TITRES PAGE
========================================================= */

.page h1 {
  font-size:
    clamp(2.8rem, 5vw, 5rem);

  letter-spacing: -0.05em;
}


.page h2 {
  font-size:
    clamp(2rem, 3vw, 3.2rem);

  margin: 60px 0 20px;
}


.page p {
  max-width: 800px;

  line-height: 1.7;
}


/* =========================================================
   FEATURES
========================================================= */

.features {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 20px;
}


.feature {
  padding: 22px;

  border-radius: 18px;

  background:
    rgba(255, 255, 255, 0.05);

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);

  transition: 0.3s ease;
}


.feature:hover {
  transform: translateY(-6px);

  border-color:
    rgba(214, 40, 40, 0.4);
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(400px, 1fr));

  gap: 25px;
}


.gallery img {
  width: 100%;

  height: 320px;

  object-fit: cover;

  border-radius: 18px;

  transition: 0.3s ease;
}


.gallery img:hover {
  transform: scale(1.03);
}


.large-photo {
  height: 350px !important;
}


/* =========================================================
   CTA
   BOUTON ORIGINAL CONSERVÉ
========================================================= */

.cta {
  text-align: center;

  padding: 100px 20px;
}


.cta button {
  padding: 14px 32px;

  border-radius: 999px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  background:
    rgba(255, 255, 255, 0.08);

  color: white;

  cursor: pointer;

  transition: 0.3s ease;
}


.cta button:hover {
  background: #D62828;

  transform: scale(1.05);
}


/* =========================================================
   CARROUSEL LOGOS
========================================================= */

.logos-carousel {
  display: flex;

  align-items: center;

  gap: 20px;

  width: 100%;
}


.logos-wrapper {
  overflow: hidden;

  flex: 1;
}


.logos-track {
  display: flex;

  flex-wrap: nowrap;

  gap: 20px;

  transition: transform 0.5s ease;

  will-change: transform;
}


.logo-item {
  flex: 0 0 160px;

  height: 110px;

  display: flex;

  justify-content: center;
  align-items: center;

  background:
    rgba(255, 255, 255, 0.8);

  border:
    1px solid
    rgba(255, 255, 255, 0.8);

  border-radius: 16px;
}


.logo-item img {
  max-width: 90%;

  max-height: 70px;

  object-fit: contain;

  display: block;
}


/* =========================================================
   VIDÉO
========================================================= */

.video-layout {
  display: flex;

  gap: 40px;

  align-items: center;

  justify-content: space-between;

  margin-top: 40px;
}


.video-text {
  flex: 1;

  max-width: 600px;
}


.video-container {
  flex: 1;

  max-width: 350px;

  aspect-ratio: 9 / 16;
}


.video-container iframe {
  width: 100%;

  height: 100%;

  border-radius: 16px;
}


/* =========================================================
   APPEL
========================================================= */

.call-box {
  margin-top: 30px;
}


.call-button {
  display: inline-block;

  margin-top: 10px;

  padding: 12px 20px;

  border-radius: 999px;

  background: #D62828;

  color: white;

  text-decoration: none;

  font-weight: bold;

  transition: 0.3s ease;
}


.call-button:hover {
  transform: scale(1.05);

  background: #b81f1f;
}


/* =========================================================
   ACCORDÉON
========================================================= */

.accordion {
  display: flex;

  flex-direction: column;

  gap: 12px;
}


.accordion-item {
  border-radius: 16px;

  overflow: hidden;

  background:
    rgba(255, 255, 255, 0.05);

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  transition: 0.2s ease;
}


.accordion-item:hover {
  transform: none;
}


.accordion-header {
  width: 100%;

  padding: 14px 16px;

  background: transparent;

  border: none;

  color: white;

  font-size: 1rem;

  cursor: pointer;

  transition: 0.2s ease;

  text-align: center;
}


.accordion-header:hover {
  background:
    rgba(255, 255, 255, 0.05);
}


.accordion-content {
  max-height: 0;

  overflow: hidden;

  padding: 0 16px;

  opacity: 0;

  transition: 0.3s ease;

  border-left:
    2px solid
    rgba(214, 40, 40, 0.4);

  margin-left: 10px;

  padding-left: 22px;
}


.accordion-item.active
.accordion-content {
  max-height: 1000px;

  padding:
    10px 16px 16px 16px;

  opacity: 1;
}


/* =========================================================
   GALERIE KIT
========================================================= */

.gallery {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 20px;
}


.gallery img {
  width: 100%;

  height: 240px;

  object-fit: cover;

  border-radius: 18px;

  cursor: pointer;

  transition:
    transform 0.3s ease;
}


.gallery img:hover {
  transform: scale(1.03);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.lightbox {
  display: none;

  position: fixed;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.9);

  justify-content: center;
  align-items: center;

  z-index: 9999;
}


.lightbox.active {
  display: flex;
}


.lightbox-image {
  max-width: 90%;

  max-height: 90vh;

  border-radius: 18px;
}


.lightbox-close {
  position: absolute;

  top: 20px;
  right: 30px;

  color: white;

  font-size: 40px;

  cursor: pointer;
}


/* =========================================================
   TARIFS KIT
========================================================= */

.kit-pricing {
  display: flex;

  justify-content: center;

  gap: 30px;

  flex-wrap: wrap;
}


.kit-card {
  flex: 1 1 300px;

  min-width: 260px;

  max-width: 400px;

  padding: 30px;

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.06);

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(20px);

  text-align: center;

  transition: 0.3s ease;

  width: 350px;
}


.kit-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(214, 40, 40, 0.5);
}


.kit-card h3 {
  margin-bottom: 10px;

  font-size: 1.4rem;
}


.kit-card p {
  font-size: 1.1rem;

  opacity: 0.9;
}


/* =========================================================
   BANNIÈRE SSIAP
========================================================= */

.ssiap-banner {
  display: block;

  margin: 40px auto 0;

  padding: 16px 24px;

  max-width: 900px;

  text-align: center;

  background: #D62828;

  color: white;

  font-weight: 700;

  font-size: 1.05rem;

  border-radius: 12px;

  box-shadow:
    0 10px 25px
    rgba(0, 0, 0, 0.3);

  z-index: 10;

  position: relative;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes fadeIn {

  from {
    opacity: 0;

    transform:
      translateY(10px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* =========================================================
   RESPONSIVE MOBILE
========================================================= */

@media (max-width: 768px) {

  /* On retire le background du body uniquement sur mobile */
  body {
    background-image: none;
    background-color: #000;
  }


  /* Image de fond réellement FIXE sur mobile */
  .bg {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100dvh;

    background-image: url("/image-client/kit.jpg");

    /* On conserve le cadrage que tu viens de valider */
    background-size: auto 100dvh;

    background-position: center top;
    background-repeat: no-repeat;

    z-index: -1;

    pointer-events: none;
  }


  .video-layout {
    flex-direction: column;
  }


  .video-container {
    max-width: 100%;

    aspect-ratio: 16 / 9;
  }


  .kit-pricing {
    grid-template-columns: 1fr;
  }

}