/* 1. IMPORTATION DES POLICES */

/* Karst - Version Light */
@font-face {
  font-family: 'Karst';
  /* ../ signifie "sortir du dossier actuel (CSS)" pour aller chercher "fonts" */
  src: url('../fonts/Karst-Light.woff2') format('woff2'),
       url('../fonts/Karst-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Karst - Version ExtraBold */
@font-face {
  font-family: 'Karst';
  src: url('../fonts/Karst-ExtraBold.woff2') format('woff2'),
       url('../fonts/Karst-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Import Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* 2. VARIABLES :ROOT */
:root {
  --noir: #000000;
  --gris-sombre: #151515;
  --gris-anthracite: #2B2929;
  --gris-clair: #888888;
  --or: #CDB070;
  --or-clair: #EED16A;
  --creme: #F8F2DE;
  --blanc-casse: #F8F8F8;
  --bordure-sombre: #333333;

  /* Polices */
  --police-corps: 'Montserrat', sans-serif;
  --police-titre: 'Karst', serif;
}












.section-accueil {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center; /* Centrage vertical */
  justify-content: flex-start; /* Alignement à gauche pour dégager l'image */
  padding: 0 8%;
  overflow: hidden;
  color: #ffffff;
}


.image-fond-accueil {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  
  /* Zoom figé à 1.1 (110%) */
  transform: scale(1.1); 
  
  transition: transform 0.1s ease-out;
  will-change: transform; 
}

.contenu-accueil {
  z-index: 10;
  max-width: 700px;
  animation: fadeInUp 1.2s ease-out;
}

/* Optionnel : ajoute un léger filtre sombre pour que le texte blanc soit lisible */
.section-accueil::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Ajustez l'opacité selon le besoin */
  z-index: 2;
}

/* Petit texte au-dessus du titre */
.sur-titre {
  display: block;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #d6d6d6; /* Une couleur d'accentuation */
  font-weight: 600;
}











body {
  font-family: var(--police-corps);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--police-titre);
}

/* * */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;


}




/* body */
body {
  font-family: var(--police-corps);
  background-color: var(--noir);
  color: var(--blanc-casse);
  line-height: 1.7;
  overflow-x: hidden;

}

/* .seo-masque */
.seo-masque {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* .conteneur */
.conteneur {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

/* .entete-principale */
.entete-principale {
  background-color: #000000;
  border-bottom: 1px solid var(--bordure-sombre);
  position: relative;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* .navigation */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* .logo-image */
.logo-image {
  height: 80px; 
  transition: transform 0.3s ease;
}

/* .menu-mobile-bouton */
.menu-mobile-bouton {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--blanc-casse);
}

/* .liens-navigation */
.liens-navigation {
  list-style: none;
  display: flex;
  gap: 35px;
}

/* .liens-navigation a */
.liens-navigation a {
  text-decoration: none;
  color: var(--blanc-casse);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

/* .liens-navigation a:hover */
.liens-navigation a:hover {
  color: var(--or);
}

/* .theme-clair */
.theme-clair {
  background-color: var(--blanc-casse) !important;
  color: var(--gris-anthracite) !important;
}

.theme-clair .titre-section,
.theme-clair .sous-titre-section,
.theme-clair .texte-corps {
  color: var(--noir);
}



/* .etoiles-fond */
.etoiles-fond {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(205, 176, 112, 0.15) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* .contenu-accueil */
.contenu-accueil {
  position: relative;
  z-index: 2;
}

/* .image-drone-conteneur */
.image-drone-conteneur {
    margin-bottom: 20px;
}

/* .image-drone-hero */
.image-drone-hero {
  max-width: 280px;
  height: auto;
  transition: transform 0.1s ease-out;
  animation: flottaison 4s ease-in-out infinite;
  filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.5));
}

@keyframes flottaison {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* .titre-bienvenue */
.titre-bienvenue {
  font-family: var(--police-titre);
  font-size: 80px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
}



.cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}


.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 8px;
  background: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  border-radius: 2px;
  animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* .sous-titre-bienvenue */
.sous-titre-bienvenue {
  font-size: 18px;
  color: var(--blanc-casse);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-weight: 400;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.8);
}

/* .titre-section */
.titre-section {
  font-family: var(--police-titre);
  font-size: 40px; 
  color: var(--blanc-casse);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.titre-section2 {
  font-family: var(--police-titre);
  font-size: 40px; 
  color: var(--noir);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.titre-section.aligne-gauche {
  text-align: left;
}

/* .sous-titre-section */
.sous-titre-section {
  font-size: 18px; 
  font-weight: 400; 
  margin-bottom: 15px;
  color: var(--blanc-casse);
}

/* .ligne-separatrice */
.ligne-separatrice {
  width: 80px;
  height: 1px;
  background-color: var(--or);
  margin: 0 auto 50px auto;
}

.ligne-separatrice.gauche {
  margin: 0 0 30px 0;
}

/* .texte-or */
.texte-or {
  color: var(--noir);
  font-weight: 600; 
}

/* .bouton-primaire */
.bouton-primaire {
  display: inline-block;
  background-color: var(--or);
  color: var(--noir);
  padding: 18px 45px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--or);
  transition: all 0.4s ease;
  margin-top: 20px;
}

.bouton-primaire:hover {
  background-color: transparent;
  color: var(--or);
}

/* .bouton-secondaire */
.bouton-secondaire {
  display: inline-block;
  padding: 15px 40px;
  margin-top: 20px;
  border: 1px solid var(--or);
  text-decoration: none;
  color: var(--or);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

/* .bouton-secondaire 2 */
.bouton-secondaire2 {
  display: inline-block;
  padding: 15px 40px;
  margin-top: 20px;
  border: 1px solid var(--blanc-casse);
  text-decoration: none;
  color: var(--blanc-casse);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.bouton-secondaire:hover {
  background-color: var(--or);
  color: var(--blanc-casse);
}

.theme-clair .bouton-secondaire {
  color: var(--noir);
  border-color: var(--noir);
}

.theme-clair .bouton-secondaire:hover {
  background-color: var(--noir);
  color: var(--blanc-casse);
}

/* .section-a-propos */
.section-a-propos {
  padding: 120px 0;
}

/* .disposition-scindee */
.disposition-scindee {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 80px;
}

/* .image-a-propos img */
.image-a-propos img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 20px 20px 0px var(--or-clair);
}

/* .texte-corps */
.texte-corps {
  font-size: 18px; 
  font-weight: 400; 
  line-height: 1.8; 
  margin-bottom: 40px;

}

/* .section-prestations */
.section-prestations {
  padding: 100px 0;
  background-color: var(--gris-sombre);
  border-top: 1px solid var(--bordure-sombre);
}

/* .grille-prestations */
.grille-prestations {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 25px;
}

/* .carte-lien */
.carte-lien {
  text-decoration: none;
  color: inherit;
}

/* .carte-prestation */
.carte-prestation {
  background-color: var(--gris-anthracite);
  padding: 50px 30px;
  text-align: center;
  border: 1px solid var(--bordure-sombre);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.carte-prestation:hover {
  transform: translateY(-10px);
  border-color: var(--or);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  background-color: #353333;
}

/* .icone-prestation */
.icone-prestation {
  font-size: 35px;
  color: var(--or);
  margin-bottom: 25px;
}

/* .titre-carte */
.titre-carte {
  font-family: var(--police-titre);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--blanc-casse);
}

/* .section-portfolio */
.section-portfolio {
  padding: 100px 0;
}

/* .grille-realisations */
.grille-realisations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* .image-portfolio */
.image-portfolio {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: all 0.5s ease;
  border: 1px solid var(--bordure-sombre);
}

.image-portfolio:hover {

    filter: grayscale(40%) brightness(0.9);
}

.image-portfolio:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.02);
  border-color: var(--or);
  z-index: 2;
  position: relative;
}

/* .conteneur-bouton-centre */
.conteneur-bouton-centre {
  text-align: center;
  margin-top: 50px;
}

/* .section-flotte */
.section-flotte {
  padding: 100px 0;
  background-color: var(--gris-sombre);
  border-top: 1px solid var(--bordure-sombre);
}

/* .grille-flotte */
.grille-flotte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* .carte-drone */
.carte-drone {
  background: var(--gris-anthracite);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--bordure-sombre);
}

/* .image-drone-flotte */
.image-drone-flotte {
  max-width: 220px;
  margin-bottom: 30px;
}

/* .titre-drone */
.titre-drone {
  font-family: var(--police-titre);
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--or);
}

/* .spec-drone */
.spec-drone {
  font-size: 15px; 
  font-weight: 400; 
  margin-bottom: 8px;
  color: var(--blanc-casse);
}

/* .image-classification */
.image-classification {
  margin-top: 25px;
  height: 40px;
}

/* .section-confiance */
.section-confiance {
  padding: 100px 0;
  border-top: 1px solid var(--bordure-sombre);
}

/* .grille-logos */
.grille-logos {
  display: grid;
  grid-template-columns: repeat(8, 1fr); 
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 20px 0;
}

/* .logo-client */
.logo-client {
  width: 100%; 
  max-width: 100px; 
  height: 70px;
  object-fit: contain; 
  filter: grayscale(0%);
  opacity: 1;
  transition: all 0.4s ease;
}

.logo-client:hover {
  filter: grayscale(100%);
  opacity: 0.5;
}

/* .section-appel-action */
.section-appel-action {
  padding: 120px 0;
  background: linear-gradient(-45deg, var(--noir), var(--gris-anthracite), var(--gris-sombre), #111111);
  background-size: 400% 400%;
  animation: degrade-dynamique 12s ease infinite;
  text-align: center;
  border-top: 1px solid var(--or);
}

@keyframes degrade-dynamique {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* .titre-cta */
.titre-cta {
  margin-bottom: 40px;
  text-shadow: 0px 4px 10px rgba(0,0,0,0.8);
}

/* .bouton-pulsation */
.bouton-pulsation {
  animation: pulsation 2s infinite;
}

@keyframes pulsation {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 176, 112, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(205, 176, 112, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(205, 176, 112, 0); }
}

/* .aligne-centre */
.aligne-centre {
  text-align: center;
}

/* ============================================================ */
/* === RESPONSIVE DESIGN COMPLET - V2 (OPTIMISÉ) === */
/* ============================================================ */

/* --- TABLETTES ET GRANDS MOBILES (MAX-WIDTH: 1024PX) --- */
@media (max-width: 1024px) {
  .conteneur {
    padding: 0 30px;
  }

  .grille-prestations,
  .grille-realisations,
  .grille-flotte {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .grille-logos {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* --- MOBILES (MAX-WIDTH: 768PX) --- */
@media (max-width: 768px) {
  
  /* Réinitialisation Sections */
  .section-accueil {
    height: auto !important;
    min-height: 800px !important;
    padding: 100px 20px !important;
  }

  .section-a-propos,
  .section-prestations,
  .section-portfolio,
  .section-flotte,
  .section-confiance {
    height: auto !important;
    padding: 60px 15px !important;
  }

  /* Navigation Mobile */
  .menu-mobile-bouton {
    display: block;
    z-index: 1100;
  }

  .navigation-liste-conteneur {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1050;
  }

  .navigation-liste-conteneur.ouvert {
    display: flex;
  }

  .liens-navigation {
    flex-direction: column;
    gap: 25px;
  }

  .liens-navigation a {
    font-size: 18px;
  }

  /* Titres et Textes */
  .titre-bienvenue {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .titre-section {
    font-size: 24px !important;
    text-align: center;
  }

  /* Section Qui Suis-je (A Propos) */
  .disposition-scindee {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    text-align: center;
  }

  .image-a-propos {
    order: -1;
    width: 50%; /* Image plus petite comme demandé */
    max-width: 160px;
    margin-bottom: 20px;
  }

  .image-a-propos img {
    box-shadow: 5px 5px 0px var(--or-clair);
  }

  /* Grille Prestations & Flotte (Alignement Horizontal 2 colonnes) */
  .grille-prestations,
  .grille-flotte {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Ajustement des cartes pour tenir à deux sur une ligne */
  .carte-prestation {
    padding: 20px 10px !important;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .carte-prestation i, .carte-prestation img, .carte-prestation .icon {
    font-size: 24px !important; /* Icônes plus petites */
    margin-bottom: 10px;
  }

  .carte-prestation h3 {
    font-size: 14px !important; /* Texte compact */
    line-height: 1.3;
    margin: 0;
  }

  .carte-drone {
    padding: 15px 10px !important;
  }

  .carte-drone h3 {
    font-size: 15px !important;
    margin-bottom: 10px;
  }

  .carte-drone p, .carte-drone li {
    font-size: 11px !important; /* Détails techniques plus petits */
    line-height: 1.4;
  }

  /* Portfolio */
  .grille-realisations {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Logos Ils me font confiance (4 par ligne) */
  .grille-logos {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    align-items: center;
  }

  .logo-client {
    max-width: 50px; /* Logos plus petits */
    margin: 0 auto;
  }

  /* Footer */
  .footer-contenu {
    font-size: 12px !important; /* Texte footer plus petit */
    text-align: center;
  }
  
  .footer-liens, .footer-copy {
    font-size: 11px !important;
  }
}

/* --- PETITS MOBILES (MAX-WIDTH: 480PX) --- */
@media (max-width: 480px) {
  .titre-bienvenue {
    font-size: 26px;
  }

  /* On maintient les 2 colonnes même sur petit mobile pour l'esthétique demandée */
  .grille-prestations,
  .grille-flotte,
  .grille-realisations {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .carte-prestation h3 {
    font-size: 13px !important;
  }

  .logo-image {
    height: 40px;
  }

  .bouton-primaire {
    width: 100%;
    font-size: 14px;
  }
}

/* --- ANIMATION --- */
@keyframes apparitionMenu {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.navigation-liste-conteneur.ouvert .liens-navigation {
  animation: apparitionMenu 0.4s ease forwards;
}


/* --- FIX PRESTATIONS & FLOTTE (MOBILES < 768PX) --- */
@media (max-width: 768px) {

  /* Force la grille à 2 colonnes égales pour les deux sections */
  .grille-prestations,
  .grille-flotte {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important; /* Espace réduit entre les boîtes */
    width: 100% !important;
  }

  /* --- AJUSTEMENTS CARTES PRESTATIONS --- */
  .carte-prestation {
    padding: 15px 10px !important;
    min-height: 150px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .carte-prestation i, 
  .carte-prestation img {
    font-size: 22px !important; /* Icônes plus petites */
    margin-bottom: 8px !important;
  }

  .carte-prestation h3 {
    font-size: 13px !important; /* Texte compact pour éviter les retours à la ligne */
    line-height: 1.2;
  }

  /* --- AJUSTEMENTS CARTES FLOTTE --- */
  .carte-drone {
    padding: 15px 5px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
  }

  /* Gestion de l'image du drone (le cercle) */
  .carte-drone img, 
  .carte-drone .image-drone-conteneur {
    width: 100px !important; /* On bride la taille de l'image pour qu'elle tienne à deux */
    height: auto !important;
    margin: 0 auto 10px auto !important;
  }

  .carte-drone h3 {
    font-size: 14px !important;
    margin-bottom: 8px !important;
  }

  /* Liste des caractéristiques techniques */
  .carte-drone ul, 
  .carte-drone p {
    font-size: 10px !important; /* Très petit pour garantir la lisibilité sur une ligne */
    line-height: 1.4;
    padding: 0 !important;
    list-style: none !important;
    text-align: center;
  }

  .carte-drone li {
    margin-bottom: 4px;
  }
}

/* --- OPTIMISATION SUPPLÉMENTAIRE POUR TRÈS PETITS ÉCRANS --- */
@media (max-width: 400px) {
  .grille-prestations,
  .grille-flotte {
    gap: 6px !important;
  }

  .carte-drone img {
    width: 80px !important;
  }

  .carte-prestation h3,
  .carte-drone h3 {
    font-size: 12px !important;
  }
}


/* --- RESPONSIVE TEXTE CORPS --- */
@media (max-width: 768px) {
  .texte-corps {
    font-size: 12px !important; /* Taille légèrement réduite pour mobile */
    line-height: 1.5 !important; /* Espacement équilibré */
    max-width: 90% !important; /* Évite que le texte ne colle aux bords de l'écran */
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center; /* Centrage pour une meilleure esthétique mobile */
  }
}

@media (max-width: 480px) {
  .texte-corps {
    line-height: 1.4 !important;
  }
}


/* --- RESPONSIVE BOUTON SECONDAIRE & PRIMAIRE --- */
@media (max-width: 768px) {
  .bouton-primaire, 
  .bouton-secondaire {
    display: inline-block !important;
    width: auto !important;
    min-width: 150px;
    padding: 12px 15px !important;
    font-size: 14px !important;
    text-align: center;
    margin: 10px 5px !important; /* Espacement si les deux boutons sont côte à côte */
    transition: all 0.3s ease;
  }

  /* Si vos boutons sont l'un au-dessus de l'autre sur mobile */
  .conteneur-boutons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .bouton-primaire, 
  .bouton-secondaire {
    width: auto !important; /* Le bouton s'adapte à son contenu */
    min-width: 160px;       /* Assure une base stable sans être trop large */
    max-width: 200px;
    font-size: 12px !important; /* Légère réduction du texte */
    padding: 12px 20px !important; /* Padding plus fin pour un aspect moins massif */
    display: inline-block;         /* Permet de respecter les dimensions réduites */
    letter-spacing: 1px !important; /* Réduit l'espacement pour gagner de la place */
  }
}


@media (max-width: 480px) {
  .bouton-secondaire2 {
    width: auto !important; /* Le bouton s'adapte à son contenu */
    min-width: 160px;       /* Assure une base stable sans être trop large */
    max-width: 200px;
    font-size: 12px !important; /* Légère réduction du texte */
    padding: 12px 20px !important; /* Padding plus fin pour un aspect moins massif */
    display: inline-block;         /* Permet de respecter les dimensions réduites */
    letter-spacing: 1px !important; /* Réduit l'espacement pour gagner de la place */
  }
}


/* --- RAPPEL DU TEXTE CORPS POUR HARMONIE --- */
@media (max-width: 768px) {
  .texte-corps {

    line-height: 1.6 !important;
    max-width: 95% !important;
    margin-bottom: 20px !important;
  }
}

/* --- MOBILES (MAX-WIDTH: 768PX) --- */
@media (max-width: 768px) {
  .contenu-accueil {
    width: 100%;
    max-width: 100%; /* Utilise toute la largeur disponible moins le padding */
    padding: 0 10px;
  }

  .sur-titre {
    font-size: 0.75rem; /* Réduction pour mobile */
    letter-spacing: 2px; /* Espacement plus serré pour éviter les retours à la ligne */
    margin-bottom: 10px;
  }

  /* Renforcement du filtre sombre sur mobile pour la lisibilité */
  .section-accueil::before {
    background: rgba(0, 0, 0, 0.4); 
  }
}

/* --- PETITS MOBILES (MAX-WIDTH: 480PX) --- */
@media (max-width: 480px) {
  .sur-titre {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
  }
}

/* --- MOBILES (MAX-WIDTH: 768PX) --- */
@media (max-width: 768px) {
  .sous-titre-bienvenue {
    font-size: 13px; /* Réduction de la taille */
    letter-spacing: 3px; /* Espacement plus compact pour éviter les coupures */
    line-height: 1.4;
    display: block;
  }
}

/* --- PETITS MOBILES (MAX-WIDTH: 480PX) --- */
@media (max-width: 480px) {
  .sous-titre-bienvenue {
    font-size: 12px;
    letter-spacing: 2px;
  }
}


/* --- Structure Principale --- */
.section-avis {
  background-color: var(--fond-sombre);
  /* Padding vertical fluide : 60px sur mobile, jusqu'à 120px sur grand écran */
  padding: clamp(60px, 8vw, 120px) 20px; 
  font-family: var(--police-texte);
  color: var(--texte-clair);
  overflow: hidden; /* Sécurité contre les débordements horizontaux */
}

.conteneur {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- En-tête de section --- */
.entete-section {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.titre-section {
  font-family: var(--police-titre);
  /* Typographie fluide : 2rem (mobile) -> 2.8rem (desktop) */
  font-size: clamp(2rem, 5vw, 2.8rem); 
  font-weight: 400;
  color: var(--or-luxe);
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.2;
}

.sous-titre-section {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--texte-secondaire);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.5;
}

.ligne-separatrice {
  width: 50px;
  height: 1px;
  background-color: var(--or-luxe);
  margin: clamp(20px, 4vw, 30px) auto 0;
}

/* --- Grille et Cartes --- */
.grille-avis {
  display: grid;
  /* Grille intelligente : 100% sur mobile, s'adapte automatiquement sur tablette/bureau */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 4vw, 40px);
}

.carte-avis {
  background-color: var(--carte-fond);
  /* Padding intérieur fluide pour respirer sur PC mais ne pas écraser sur mobile */
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 2px;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Flexbox pour forcer une hauteur égale et un alignement parfait */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.carte-avis::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--or-luxe);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transform-origin: center;
}

/* L'animation de survol ne s'active que sur les appareils avec une vraie souris (PC/Mac) 
   Cela évite les bugs visuels au clic sur mobile/tablette */
@media (hover: hover) and (pointer: fine) {
  .carte-avis:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(197, 160, 89, 0.4);
  }

  .carte-avis:hover::before {
    transform: scaleX(1);
  }
}

/* --- Contenu des cartes --- */
.note-etoiles {
  color: var(--or-luxe);
  font-size: clamp(1rem, 2vw, 1.1rem);
  margin-bottom: clamp(20px, 3vw, 30px);
  letter-spacing: 4px;
}

.texte-avis {
  font-family: var(--police-titre);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: var(--texte-clair);
  margin-bottom: clamp(20px, 4vw, 35px);
  flex-grow: 1; /* Pousse le nom du client tout en bas, même si ce texte est court */
}

.nom-client {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--or-luxe);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.note-etoiles {
  display: flex;
  justify-content: center;
  gap: 6px; /* Espacement géométrique et régulier entre les icônes */
  color: var(--or-luxe);
  font-size: clamp(0.85rem, 1.5vw, 1rem); /* Taille subtile pour rester élégant */
  margin-bottom: clamp(20px, 3vw, 30px);
}

/* --- Structure du Carrousel --- */
.wrapper-carrousel {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1000px; /* Légèrement plus resserré pour l'élégance */
  margin: 0 auto;
}

.piste-carrousel {
  display: grid;
  grid-auto-flow: column;
  /* 1 carte par vue sur mobile, 2 sur tablette, 3 sur PC */
  grid-auto-columns: 100%;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 20px; /* Espace pour l'ombre au survol */
  
  /* Cacher la barre de défilement pour un look épuré */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.piste-carrousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Responsivité des colonnes du carrousel */
@media (min-width: 768px) {
  .piste-carrousel { grid-auto-columns: calc(50% - 10px); }
}
@media (min-width: 1024px) {
  .piste-carrousel { grid-auto-columns: calc(33.333% - 14px); gap: 20px; }
}

.carte-avis {
  scroll-snap-align: center; /* L'aimantation au centre */
  /* Le reste du code de la carte reste identique au précédent */
  background-color: var(--carte-fond);
  padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 2px;
  text-align: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* --- Boutons de Navigation (Flèches) --- */
.bouton-carrousel {
  background: none;
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: var(--or-luxe);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.bouton-carrousel:hover {
  background-color: var(--or-luxe);
  color: var(--fond-sombre);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.4);
}

.btn-gauche { left: -60px; }
.btn-droite { right: -60px; }

/* Cacher les boutons sur mobile (on utilise le tactile) */
@media (max-width: 850px) {
  .bouton-carrousel { display: none; }
}

/* --- Boutons sur Mobile / Tablette (Responsive) --- */
@media (max-width: 850px) {
  .bouton-carrousel {
    /* On force l'affichage */
    display: flex; 
    
    /* Passage en blanc */
    color: #FFFFFF; 
    border-color: rgba(255, 255, 255, 0.4);
    
    /* Réduction subtile de la taille pour mobile */
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    
    /* Fond semi-transparent pour garantir la lisibilité au-dessus des cartes */
    background-color: rgba(18, 18, 18, 0.6); 
  }

  /* Survol en version blanche */
  .bouton-carrousel:hover {
    background-color: #FFFFFF;
    color: var(--fond-sombre);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  }

  /* On les rentre à l'intérieur de l'écran pour éviter qu'elles ne soient coupées */
  .btn-gauche { left: 0px; }
  .btn-droite { right: 0px; }
}
