/* =========================================
   1. Reset CSS de base
========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   2. Variables de couleurs
========================================= */
:root {
  /* Gold Palette */
  --gold-100: #fff3e0; /* Teinte plus claire pour les arrière-plans */
  --gold-200: #ffe4b5; /* Couleur secondaire pour l'accentuation */
  --gold-500: #f5b800; /* Couleur dorée principale */
  --gold-600: #dba800; /* Légèrement plus foncée que la principale */
  --gold-700: #b58800; /* Encore plus foncée pour des éléments clés */
  --gold-800: #936d00; /* Pour des accents importants */

  /* Gray Palette */
  --gray-50: #e5e5e5; /* Gris clair, presque blanc */
  --gray-100: #cccccc; /* Gris clair */
  --gray-200: #999999; /* Gris moyen */
  --gray-600: #4b4b4b; /* Gris foncé */
  --gray-700: #2f2f2f; /* Gris très foncé */
  --gray-800: #1b1b1b; /* Gris encore plus sombre */
  --gray-900: #0f0f0f; /* Gris anthracite */

  /* Neutrals */
  --white: #ffffff; /* Blanc pur */
  --black: #000000; /* Noir pur */
}

/* =========================================
   3. Styles de base
========================================= */
body {
  font-family: "Open Sans", sans-serif;
  font-size: 22px; /* Augmenté pour une meilleure lisibilité */
  color: #1b1b1b;
  background-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* =========================================
   4. Layout Principal
========================================= */
.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-content {
  display: -webkit-flex; /* Préfixe pour compatibilité Safari */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo */
.logo img {
  height: 150px;
  width: auto;
}

/* Navigation */
.nav-links {
  list-style: none;
  display: -webkit-flex; /* Préfixe pour compatibilité Safari */
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #2f2f2f;
  transition: color 0.3s;
  -webkit-transition: color 0.3s; /* Préfixe pour compatibilité Safari */
}

.nav-links a:hover {
  color: #dba800;
}

/* =========================================
   5. Sections
========================================= */

/* Accueil */
.accueil-section {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
}

#backgroundVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100vw;
  min-height: 70vh;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(
    -50%,
    -50%
  ); /* Préfixe pour compatibilité Safari */
  filter: brightness(50%); /* Optionnel : pour foncer la vidéo */
  -webkit-filter: brightness(50%); /* Préfixe pour compatibilité Safari */
}

#accueil-container {
  position: relative;
  z-index: 1;
  display: flex; /* Définit le conteneur comme flexbox */
  flex-direction: column; /* Arrange les éléments verticalement */
  justify-content: center; /* Centre les éléments horizontalement */
  align-items: center; /* Centre les éléments verticalement */
  text-align: center;
  color: #ffffff;
  height: 100%; /* Assurez-vous que la hauteur couvre bien l'espace */
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%); /* Préfixe pour compatibilité Safari */
}

.accueil-section h1 {
  font-size: 4rem; /* Augmenté */
  font-weight: bold;
  color: #fff3e0;
  margin-bottom: 1rem;
}

.accueil-section p {
  font-size: 2rem; /* Augmenté */
  color: #fff3e0;
  margin-bottom: 2rem;
}

/* À Propos et Contact */
.a-propos-section,
.contact-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.a-propos-section h2,
.services-section h2,
.contact-section h2 {
  font-size: 3rem; /* Augmenté */
  font-weight: bold;
  color: #936d00;
  text-align: center;
  margin-bottom: 3rem;
}

.a-propos-section p {
  font-size: 1.5rem; /* Augmenté */
  color: #2f2f2f;
  max-width: 30vw;
  margin: 0 auto;
  text-align: center;
}

/* Services */
.services-section {
  padding: 60px 20px; /* Augmenté pour plus d'espace */
  background-color: #ffffff;
}

#services-container {
  max-width: 80vw;
  margin: 0 auto;
}

.services-grid {
  display: -webkit-flex; /* Préfixe pour compatibilité Safari */
  display: flex;
  flex-direction: column;
  gap: 60px; /* Augmenté pour plus d'espace */
}

.service-item {
  display: -webkit-flex; /* Préfixe pour compatibilité Safari */
  display: flex;
  align-items: center;
  gap: 60px;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1;
  background-color: #cccccc;
  min-height: 300px; /* Augmenté */
  width: 407px;
  max-width: 650px;
  border-radius: 8px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-object-fit: cover; /* Préfixe pour compatibilité Safari */
}

.service-text {
  flex: 1;
  display: -webkit-flex; /* Préfixe pour compatibilité Safari */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 40vw; /* Augmenté pour plus de lisibilité */
}

.service-item:nth-child(even) .service-text {
  align-items: flex-end;
  text-align: right;
}

.service-text h3 {
  color: #b58800;
  font-size: 2rem; /* Augmenté */
  margin-bottom: 1rem;
}

.service-text p {
  color: #2f2f2f;
  font-size: 1.5rem; /* Augmenté */
  line-height: 1.6;
}

/* Contact */

.contact-title {
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  color: #936d00;
}

.contact-item-container {
  display: flex;
  justify-content: space-between; /* Espace les éléments à gauche et à droite */
  align-items: flex-start;
  width: 100%;
  margin-top: 15vh;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-left {
  display: flex;
  align-items: center;
  margin-left: 8vw; /* Espace à gauche pour le contact e-mail */
}

.contact-right {
  margin-right: 12vw; /* Espace à droite pour les contacts WhatsApp */
}

.contact-whatsapp {
  display: flex;
  flex-direction: row;
  align-items: center; /* Aligne l'icône et le texte horizontalement */
  margin-bottom: 1rem;
}

.contact-whatsapp img {
  height: 3rem;
  width: 3rem;
  margin-right: 1rem; /* Espacement entre l'icône et le numéro */
}

.contact-item img {
  height: 3rem;
  width: 3rem;
  margin-right: 1rem; /* Espacement entre l'icône et le texte */
}

.contact-link {
  font-size: 1.55rem;
  font-weight: bold;
  text-decoration: none;
  color: #4a4a4a;
}

.contact-link:hover {
  color: #dba800; /* Change la couleur au survol */
}

/* Contact Footer */

#contact-footer {
  position: relative;
  background-image: url(./footer/footer.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 2vw 5vh; /* Centré pour une meilleure adaptabilité */
  width: 100vw; /* Ajusté pour prendre toute la largeur de la fenêtre */
  height: 60vh; /* Prend toute la hauteur de la fenêtre */
  overflow: hidden;
  z-index: 0;
}

#contact-footer h2 {
  margin-bottom: 5vh;
}

/* =========================================
   6. Footer
========================================= */
.footer {
  background: -webkit-linear-gradient(
    to right,
    #b8860b,
    #f0e68c
  ); /* Préfixe pour compatibilité Safari */
  background: linear-gradient(to right, #b8860b, #f0e68c);
  margin-top: 0;
  padding: 5px 5px; /* Ajusté pour ajouter de l'espace approprié */
  color: white;
  text-align: center;
  position: relative; /* Pour s'assurer qu'il se superpose correctement */
  z-index: 1;
}

.footer-container p {
  font-size: 0.7rem;
}

/* =========================================
   7. Media Queries
========================================= */

@media (max-width: 1520px) {
  .contact-item img {
    height: 4rem;
    width: 4rem;
    margin-bottom: 1rem;
  }

  .contact-item a {
    margin: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
  }

  .contact-item {
    display: flex;
    margin: 2vh 0 0rem 11vw;
  }

  .contact-right {
    margin-right: 5vw; /* Espace à droite pour les contacts WhatsApp */
  }

  .contact-links {
    display: flex;
    flex-direction: column; /* Aligne les liens verticalement */
    margin-left: 1rem; /* Espacement entre l'icône et les liens */

    font-weight: bold;
    text-decoration: none;
  }

  .contact-link:hover {
    color: #dba800; /* Change la couleur au survol */
  }

  /* Contact Footer */

  #contact-footer {
    position: relative;
    background-image: url(./footer/footer1520.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 2vw; /* Centré pour une meilleure adaptabilité */
    width: auto; /* Ajusté pour prendre toute la largeur de la fenêtre */
    height: 50vh; /* Prend toute la hauteur de la fenêtre */
    overflow: hidden;
    z-index: 0;
  }

  #contact-footer h2 {
    margin-bottom: 0vh;
  }
}

/* Tablettes et plus (max-width: 1280px) */
@media (max-width: 1280px) {
  #contact-footer {
    height: 45vh; /* Prend toute la hauteur de la fenêtre */
    overflow: hidden;
    z-index: 0;
  }
}

/* Tablettes et plus (max-width: 1024px) */
@media (max-width: 1080px) {
  /* Logo */
  .logo img {
    height: 85px;
  }

  /* Navigation */
  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  /* Accueil */
  .accueil-section h1 {
    font-size: 3rem;
  }

  .accueil-section p {
    font-size: 2rem;
    margin-bottom: 1rem;
    max-width: 90vw;
    text-align: center;
  }

  /* À Propos */
  .a-propos-section p {
    font-size: 2rem;
    max-width: 85vw;
    margin: 0 auto;
    text-align: center;
  }

  .service-text {
    max-width: 85vw;
  }

  /* Contact Footer */
  #contact-footer {
    background-image: none;
    background-position: 0vw 3.5vh;
    height: 45vh;
  }

  .contact-item-container {
    display: -webkit-inline-flex;
    justify-content: center;
    gap: 2vw;
    width: 100vw;
    margin-top: 12vh;
  }

  /* Contact */
  .contact-item {
    flex-direction: column;
  }

  .contact-item img {
    height: 3rem;
    width: 3rem;
    margin-bottom: 1rem;
  }

  .contact-item a {
    font-size: 1.2rem;
    text-align: center;
  }
}

/* Téléphones (max-width: 768px) */
@media (max-width: 768px) {
  /* Services */
  .service-item {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .service-item:nth-child(even) {
    flex-direction: column;
  }

  .service-image {
    min-height: 200px;
    width: 90vw;
    max-width: none;
  }

  .service-text {
    width: 90vw;
    align-items: center;
    text-align: center;
  }

  .service-item:nth-child(even) .service-text {
    align-items: center;
    text-align: center;
  }

  .service-text h3 {
    font-size: 1.75rem;
  }

  .service-text p {
    font-size: 1.5rem;
  }

  /* Contact Footer */
  #contact-footer {
    background-image: none;
    height: 55vh;
  }

  /* Contact */
  .contact-item-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
  }

  .contact-item {
    width: 80%;
    margin: 1.2rem 0 1rem 0;
  }

  .contact-item img {
    margin-bottom: 0.5rem;
  }

  .contact-item a {
    font-size: 1.1rem;
  }

  .contact-item a {
    font-size: 1.2rem;
    text-align: none;
  }

  .contact-whatsapp {
    width: 100%; /* Assurez que les éléments WhatsApp occupent toute la largeur */
    justify-content: center; /* Centre l'icône et le texte */
    align-items: center; /* Aligne les éléments verticalement */
    margin-bottom: 1.2rem; /* Assurez un espacement uniforme */
  }
}

/* Petits Téléphones (max-width: 423px) */
@media (max-width: 423px) {
  /* Logo */
  .logo img {
    height: 80px;
  }

  /* Navigation */
  .nav-links {
    gap: 0.4rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Accueil */
  .accueil-section h1 {
    font-size: 2rem;
  }

  .accueil-section p {
    font-size: 1.55rem;
    max-width: 90vw;
    text-align: center;
  }

  /* À Propos */
  .a-propos-section p {
    font-size: 1.5rem;
    max-width: 85vw;
    text-align: center;
  }

  /* Sections Titres */
  .a-propos-section h2,
  .services-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  /* Services Texte */
  .service-text {
    max-width: 85vw;
  }

  .service-text p {
    font-size: 1.2rem;
  }

  /* Contact Footer */
  #contact-footer {
    background-image: none;
    height: auto;
    min-height: 45vh;
  }

  #contact-footer h2 {
    margin-bottom: 5vh;
  }

  /* Contact */
  .contact-item img {
    height: 3rem;
    width: 3rem;
    margin-bottom: 1rem;
  }

  .contact-item-container {
    display: -webkit-flex; /* Préfixe pour compatibilité Safari */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 80%;
    margin: 1rem 0;
    display: -webkit-flex; /* Préfixe pour compatibilité Safari */
    display: flex;
    margin-left: 0; /* Espacement entre l'icône et les liens */
    align-items: center;
    margin: 0;
    margin-bottom: 3vh;
  }

  .contact-item img {
    margin-bottom: 0.5rem;
  }

  .contact-item a {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Très Petits Téléphones (max-width: 375px) */
@media (max-width: 375px) {
  /* Logo */
  .logo img {
    height: 80px;
  }

  /* Navigation */
  .nav-links {
    gap: 0.4rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Accueil */
  .accueil-section h1 {
    font-size: 2rem;
  }

  .accueil-section p {
    font-size: 1.55rem;
    max-width: 90vw;
    text-align: center;
  }

  /* À Propos */
  .a-propos-section p {
    font-size: 1.5rem;
    max-width: 85vw;
    text-align: center;
  }

  /* Sections Titres */
  .a-propos-section h2,
  .services-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  /* Services Texte */
  .service-text {
    max-width: 85vw;
  }

  .service-text p {
    font-size: 1.2rem;
  }

  /* Contact Footer */
  #contact-footer {
    background-image: none;
    height: auto;
    min-height: 55vh;
  }

  #contact-footer h2 {
    margin-bottom: 2vh;
  }

  .contact-item {
    display: flex;
    align-items: center; /* Aligne les éléments en haut */
    margin: 0;
    margin-bottom: 3vh;
  }

  .contact-links {
    display: flex;
    margin-left: 0; /* Espacement entre l'icône et les liens */
    font-size: 1.55rem;
    font-weight: bold;
    text-decoration: none;
  }

  /* Contact */
  .contact-item-container {
    margin-top: 6vh;
  }

  .contact-item img {
    height: 3rem;
    width: 3rem;
    margin-bottom: 1rem;
  }
}

.footer-container p {
  font-size: 0.9rem;
}

/*Styles*/

/* Styles initiaux pour les sections */
section {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Classe active pour les sections visibles (peut être utilisée pour d'autres effets) */
section.active {
  opacity: 1;
  transform: translateY(0);
}

/* styles.css */

/* Styles initiaux pour les sections */
.section-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section-fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
