body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f8f8;
  color: #333;
  padding-top: 68px; /* navbar fixe */
}

/* HEADER */
header {
  background: linear-gradient(to right, #008000, #ffffff, #ff0000);
  color: #111;
}
header h1 {
  font-size: 2.8em;
}
header p {
  color: #444;
}

/* Correction pour les ancres de la barre de navigation fixe */
section::before {
    content: "";
    display: block;
    height: 70px; /* Ajustez cette valeur si la hauteur de votre barre de navigation change */
    margin-top: -70px;
    visibility: hidden;
}
/* GALLERY */
.gallery img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 5px #ccc;
  cursor: pointer;
}

/* MODAL ZOOM */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}
.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}
.close {
    background: #00000073;
    padding: 0px 0px 2px;
    border-radius: 100px;
    width: 40px;
    z-index: 1;
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    text-align: center;
    font-size: 30px;
    cursor: pointer;
}

/* CONTACT */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  overflow: hidden;
}
.contact-info {
  flex: 1;
  padding: 25px;
  text-align: center;
}
.contact-info h3 {
  color: #008000;
}
.contact-title {
  color: #008000;
}
.subtitle {
  font-size: 0.95em;
  color: #555;
  font-style: italic;
}
.contact-item {
  margin-bottom: 13px;
  font-size: 1.05em;
} 
/* --- Business Card --- */
h1 {
  font-size: 1px; /* très petit mais visible */
  height: 0px;
  width: 10%;
  float: center;
 /* overflow: hidden;*/
}

/* Taille réelle carte de visite */
.business-card {
  width: 140mm;
  height: 98mm;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* RECTO */
.front {
  display: flex;
  padding: 6px 8px;
  align-items: center;
  font-size: 10pt;
}
.contact-logo-container {
  flex: 0 0 32%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-right: 8px;
  border-right: 1px solid #e0e0e0;
  gap: 6px;
}
.contact-logo {
  max-width: 100%;
  max-height: 35%;
  object-fit: contain;
}
.contact-qr {
  max-width: 80%;
  border: 2px solid #ccc;
  border-radius: 4px;
  padding: 2px;
  background: white;
  object-fit: contain;
}
.contact-item {
  display: flex;
  flex-wrap: wrap;     /* autorise retour à la ligne */
  gap: 5px;            /* petit espace entre éléments */
}

.contact-label {
  white-space: nowrap; /* évite que le nom se coupe en 2 */
}

.contact-value {
  flex: 1 1 auto;      /* autorise retour à la ligne si pas de place */
}
.contact-info {
  flex: 1;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-title {
  font-size: 10.5pt;
  font-weight: 600;
  margin-bottom: 2px;
  color: #333;
}
.subtitle {
  font-size: 8pt;
  text-align: center;
  margin-bottom: 5px;
  color: #666;
  line-height: 1.2;
}
.contact-item {
  font-size: 10pt;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
}
.contact-item i {
  color: #888;
  font-size: 10pt;
  min-width: 16px;
  text-align: center;
}

/* VERSO */
.back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd, #004aad);
  color: white;
  text-align: center;
  padding: 6px 40px;
  font-size: 8pt;
}
.back-logo {
  max-width: 30%;
  margin-bottom: 6px;
  object-fit: contain;
}
.back p {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}
.social-row {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;      /* centre verticalement */
  gap: 18px;                /* espace entre les icônes */
  margin: 15px auto;        /* ajoute de l’air autour */
  width: 100%;              /* prend toute la largeur */
}

.social-item i {
  font-size: 30pt;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  color:#252121;
}

.social-item i:hover {
  transform: scale(1.2);
   color: #dc3545; /* rouge Bootstrap par exemple */
}

.social-label {
  text-align: center;
  margin-top: 8px;
  font-weight: bold;
}

.navbar-brand img {
  max-height: 60px;
  width: auto;
}

/* Slide */
.carousel-item img {
  height: 40vh; /* pleine hauteur visible */
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.5); /* fond transparent sombre */
  border-radius: 8px;
  padding: 20px;
}

/* Impression */
@media print {
  body {
    margin: 0;
  }
  .business-card {
    box-shadow: none;
    border: none;
  }
}
/* Stile per il contenitore delle FAQ per implementare la barre de défilement */
.faq-scroll-container {
    max-height: 500px; /* HAUTEUR MAXIMALE : 500px, vous pouvez ajuster cette valeur */
    overflow-y: scroll; /* Ajoute la barre de défilement verticale */
    /* Ces styles sont neutres pour préserver l'apparence Bootstrap de l'accordéon intérieur */
    padding: 0;
    border: none; 
}

/* Stile de la barre de défilement (Navigateurs basés sur WebKit: Chrome, Safari) */
.faq-scroll-container::-webkit-scrollbar {
    width: 8px; /* Largeur de la barre */
}

.faq-scroll-container::-webkit-scrollbar-thumb {
    background: #dc3545; /* Couleur de la barre (Rouge de Bootstrap, style par défaut) */
    border-radius: 10px;
}

.faq-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #b02a37; /* Couleur au survol */
}