/* style.css */
/* === HEADER RESPONSIVE === */
.main-header {
  position: relative;
  background-color: #222;
  padding: 15px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 40px;
}

.main-header h1 {
  font-size: 1.2rem;
  color: #ff9900;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

.nav-links {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-200%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    border-radius: 0 0 16px 16px;
    padding: 0.8rem 1rem;
  }

  .nav-links.active {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 0.2rem 0;
    text-align: center;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    transition: background 0.3s;
  }

  .nav-links a:hover {
    background-color: rgba #ff990021(255, 255, 255, 0.05);
  }
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}
header {
    background: #222;
    color: #fff;
    padding: 20px 0;  
    text-align: left;
    margin-bottom: 2rem;
}

header img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;

    display: flex;
    width: 50px;
    margin: 0;
    padding-left: 20px;
}

.header-logo {
    width: 50px; /* Ajuste la largeur de ton logo */
    height: auto; /* Maintient le ratio d'aspect */
}

header h1 {
    color: #ff9900;
    margin: 0;
    padding-left: 20px;
    font-size: 24px;
}

nav {
    text-align: right;
    padding-right: 20px;
}

nav {
    display: flex;
    justify-content: right;
    background-color: none;
    flex-wrap: wrap;
    text-align: right;
    padding-right: 20px;
}

nav a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
    
}

nav a:hover {
    background-color: #ff9900;
    border-radius: 05px;
    box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
    font-weight: bold;
    color: #000;
}

section {
  margin-bottom: 1rem;
}


.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 1rem 0;
}

.carousel img {
  display: none;
  width: 100%;
  border-radius: 5px;
}

.carousel img.active {
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel .prev { left: 5px; }
.carousel .next { right: 5px; }

.buy-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #006c74;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
}

.member-card {
  display: inline-block;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 5px;
  padding: 1rem;
  margin: 1rem;
  width: 220px;
  
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.member-card img {
  width: 100px;
  border-radius: 50%;
}

#member-info {
  margin-top: 1rem;
  text-align: center;
}

#member-info img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

#visit-counter {
  margin-top: 2rem;
  text-align: center;
  font-style: italic;
}

.message-alert {
  border: 1px solid #e74c3c;
  background-color: #fcecec;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 500px;
  text-align: center;
  border-radius: 5px;
  color: #c0392b;
}

.message-alert a {
  display: inline-block;
  margin-top: 10px;
  background-color: #c0392b;
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

.message-alert a:hover {
  background-color: #992d22;
}

/* Grid pour catalogue */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product {
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.product h2 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #006c74
}

.product p {
  margin-bottom: 10px;
}

.product .description {
  max-height: 100px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.product .description.expanded {
  max-height: none;
}

.read-more {
  background: #e1a409;
  color: #fff;
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 4px;
  margin-top: 5px;
  align-self: start;
}

.read-more:hover {
  background:  #007bff;
}

/* Carousel toujours pareil */
.carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.carousel img {
  display: none;
  width: 100%;
  height: auto;
}

.carousel img.active {
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 5px 10px;
  cursor: pointer;
}

.carousel .prev {
  left: 5px;
}

.carousel .next {
  right: 5px;
}


.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  padding: 20px;
}

.card {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin: 10px;
  color: #007bff;
}

.card p {
  padding: 0 10px;
}

.card button {
  margin: 10px;
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Carousel CSS déjà fourni + footer déjà validé */
/* --- AOS default override (optional) --- */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* --- Hover zoom pour images de produit --- */
.product img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* --- Hover sur boutons d'action --- */
.buy-link {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.buy-link:hover {
  background-color: #007bff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

/* --- Intro section style --- */
#intro {
  background: #f9f9f9;
  border-left: 5px solid #007bff;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  animation: fadeInMove 1s ease forwards;
}

/* --- Fade-in simple (if you want custom keyframes) --- */
@keyframes fadeInMove {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Option slide-in from left --- */
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 1s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --- Option fade-up class (manual alternative) --- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*Footer et son contenu */
footer {
  background-color: #f8f8f8;
  padding: 20px 10px;
  border-top: 2px solid #007bff;
  font-size: 0.95em;
  color: #333;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 50px;
  max-width: 120px;
  object-fit: contain;
}

.footer-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.footer-logo img:hover {
  transform: scale(1.3);
  opacity: 1;
}

.partner-logos img {
  height: 40px;
  max-width: 100px;
  margin-right: 10px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.partner-logos img:hover {
  opacity: 1;
}

.footer-center {
  flex: 1 1 300px;
  text-align: center;
  margin-top: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.social-icons img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.social-icons img:hover {
  transform: scale(1.3);
  opacity: 1;
}

footer p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #555;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    margin-bottom: 15px;
  }
}

/*Case des produits et leurs détails */
.product .description {
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 10px;
}

.product .description ul {
  padding-left: 20px;
  margin: 10px 0;
}

.product .description li {
  margin-bottom: 5px;
  list-style-type: "✅ ";
}

.product .description strong {
  display: block;
  margin-top: 10px;
  color: #007bff;
}

/*Bouton Bact-To-Top pour le retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e98e0f;
    color: rgb(255, 255, 255);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 77, 64, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    display: flex;
    align-items:baseline;
    justify-content: center;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #00796B;
    box-shadow: 0 6px 20px rgba(0, 77, 64, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* Flèche CSS pure */
.arrow-icon {
    width: -20px;
    height: -20px;
    position: absolute;
    bottom: 35px;

}

.arrow-icon::before,
.arrow-icon::after {
    content: '';
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 2px;
    height: 15px;
    top: 5px;
    border-radius: 2px;
}

.arrow-icon::before {
    left: 10px;
    transform: rotate(-45deg);
    transform-origin: bottom left;
}

.arrow-icon::after {
    right: 10px;
    transform: rotate(45deg);
    transform-origin: bottom right;
}

/* Section intro générique */
#intro {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Cas : intro avec conseiller valide */
.intro-refer {
  background-color: #e9f6ee;
  border-left: 6px solid #38a169;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-refer h2 {
  color: #2f855a;
}

.intro-refer p {
  color: #22543d;
  line-height: 1.6;
}

/* Cas : pas encore choisi de conseiller */
.intro-non-refer {
  background-color: #fef8e7;
  border-left: 6px solid #d69e2e;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-non-refer h2 {
  color: #b7791f;
}

.intro-non-refer p {
  color: #744210;
  line-height: 1.6;
}

/* Cas : lien invalide */
.intro-invalid {
  background-color: #fde8e8;
  border-left: 6px solid #c53030;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-invalid h2 {
  color: #9b2c2c;
}

.intro-invalid p {
  color: #742a2a;
  line-height: 1.6;
}

.highlight {
  font-weight: bold;
  color: #d69e2e;
}

#intro p {
  font-size: 1.05rem;
  margin-top: 0.05rem;
  margin-bottom: 0;
}

#intro h2 {
  margin-top: 0;
  margin-bottom: 0.05rem;
  font-size: 1.05rem;
}

/* Les introduction de texte sur les pages : cas de Acueil */
.intro-texte {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

.call-video {
  background: #f5faff;
  padding: 15px;
  border-left: 4px solid #007bff;
  font-weight: 500;
  font-size: 1em;
}

/* Les texte en liste dans la classe video conteneur : annonce et Call To Action */
p.call-video ul {
  padding-left: 20px;
  margin: 10px 0;
}

p.call-video li {
  margin-bottom: 5px;
  list-style-type: "✅ ";
}

/* Les introduction de texte sur la balise A Propos */
.Àpropos-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

#Àpropos p {
  font-size: 1.05rem;
  margin-top: 0.05rem;
  margin-bottom: 0;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#Àpropos h2 {
  margin-top: 0;
  margin-bottom: 0.05rem;
  font-size: 1.05rem;
}

/* Les textes pour la balise video */
#call-video ul {
  padding-left: 30%;
  margin-left: 25px;

}

#call-video li {
  margin-bottom:auto;
  list-style-type: "✅ ";
  
}

#call-video strong {
  display: block;
  margin-top: 10px;
  color: #007bff;
}
#call-video  {
  font-size: 1.05rem;
  
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: auto  ;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
} 

/* Les textes pour les titres de la balise Evenements & Blog */
#evenements h2, #blog h2 {
  margin: 10px;
  color: #d69e2e;
}

#detail-download{
  display: inline-block;
  margin-top: 1rem;
  background-color: #ff9900;
  padding: 0.5rem 1rem;
  border-radius: 05px;
  box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
  font-weight: bold;
  color: #000;
}

#detail-download:hover{
  background-color: #ff990015;
  border-radius: 05px;
  box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
  font-weight: bold;
  color: #000;
}

/* la balise bouton de liens vers les pages */
.btn {
    display: inline-block;
    margin-top: 1rem;
    background: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    text-align:center;
}
.btn:hover {
    background-color: #ff990015;
    border-radius: 05px;
    box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
    font-weight: bold;
    color: #000;
}




/* === HEADER + NAVIGATION RESPONSIVE FIX === */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background-color: #222;
  padding: 20px;
  color: #fff;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  width: 50px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.1);
}

header h1 {
  color: #ff9900;
  font-size: 1.5rem;
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

nav a:hover {
  background-color: #ff9900;
  color: #000;
  box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
  font-weight: bold;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  nav {
    justify-content: center;
    margin-top: 10px;
  }

  header h1 {
    font-size: 1.2rem;
  }
}

/* === FOOTER STYLE === */
footer {
  background-color: #f8f8f8;
  padding: 20px 10px;
  border-top: 2px solid #007bff;
  font-size: 0.95em;
  color: #333;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 50px;
  max-width: 120px;
  object-fit: contain;
}

.footer-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.footer-logo img:hover {
  transform: scale(1.3);
  opacity: 1;
}

.partner-logos img {
  height: 40px;
  max-width: 100px;
  margin-right: 10px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.partner-logos img:hover {
  opacity: 1;
}

.footer-center {
  flex: 1 1 300px;
  text-align: center;
  margin-top: 15px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.social-icons img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.social-icons img:hover {
  transform: scale(1.3);
  opacity: 1;
}

footer p {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #555;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
    margin-bottom: 15px;
  }
}



/* === AOS ANIMATIONS === */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

@keyframes fadeInMove {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 1s forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === INTRO GENERIQUE === */
#intro {
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.intro-refer {
  background-color: #e9f6ee;
  border-left: 6px solid #38a169;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-refer h2 {
  color: #2f855a;
}

.intro-refer p {
  color: #22543d;
  line-height: 1.6;
}

.intro-non-refer {
  background-color: #fef8e7;
  border-left: 6px solid #d69e2e;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-non-refer h2 {
  color: #b7791f;
}

.intro-non-refer p {
  color: #744210;
  line-height: 1.6;
}

.intro-invalid {
  background-color: #fde8e8;
  border-left: 6px solid #c53030;
  padding: 1rem;
  border-radius: 6px;
  text-align: left;
}

.intro-invalid h2 {
  color: #9b2c2c;
}

.intro-invalid p {
  color: #742a2a;
  line-height: 1.6;
}

/* === CALL VIDEO === */
#call-video {
  font-size: 1.05rem;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#call-video ul {
  padding-left: 20px;
  margin: 10px 0;
}

#call-video li {
  margin-bottom: 5px;
  list-style-type: "✅ ";
}

#call-video strong {
  display: block;
  margin-top: 10px;
  color: #007bff;
}

/* === A PROPOS === */
#Àpropos p {
  font-size: 1.05rem;
  padding: 2rem 1rem;
  background-color: #f9f9f9;
  text-align: center;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#Àpropos h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #d69e2e;
}

/* === EVENEMENTS ET BLOG TITRES === */
#evenements h2,
#blog h2 {
  margin: 10px;
  color: #d69e2e;
}

/* --- ALIGNEMENT GLOBAL DES PARAGRAPHES ET TEXTES --- */
section p,
#intro p,
#Àpropos p,
.intro-texte,
.Àpropos-text,
.call-video,
#call-video p {
  max-width: 700px;
  margin: 1rem auto;
  padding: 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: justify;
  color: #333;
}

/* --- CORRECTION TITRES SECTIONS --- */
section h2,
#intro h2,
#Àpropos h2,
#evenements h2,
#blog h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 1.5rem auto 1rem auto;
  max-width: 700px;
  padding: 0 1rem;
  color: #d69e2e;
}

/* --- UL / LI DE SECTIONS TEXTES --- */
section ul,
#intro ul,
#call-video ul,
#Àpropos ul {
  max-width: 700px;
  margin: 1rem auto;
  padding-left: 2rem;
  line-height: 1.7;
}

section li,
#intro li,
#call-video li,
#Àpropos li {
  margin-bottom: 0.5rem;
  list-style-type: "✅ ";
}

/* --- TEXTE SPÉCIFIQUE DES SECTIONS 'CALL-VIDEO' --- */
#call-video {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  text-align: justify;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* -------- Section vidéo générique -------- */
#video-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  text-align: center;
}

#video-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #007bff;
}

/* ---- Conteneur responsive 16:9 ---- */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  background-color: #000;
}

/* ---- Iframe plein écran dans conteneur ---- */
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ---- Thumbnail de remplacement ---- */
.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  border-radius: 12px;
}

.video-thumbnail:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: rgba(0,123,255,0.85);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.play-button::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 17px;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
}

.play-button:hover {
  background: rgba(0,123,255,1);
}


#intro {
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 900px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333;
}

.intro-refer,
.intro-invalid,
.intro-non-refer {
  padding: 1.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  background-color: #fff;
  border-left: 6px solid #ccc;
  text-align: left;
  color: #333;
}

.intro-refer {
  background-color: #e9f6ee;
  border-left-color: #38a169;
}

.intro-refer h2 {
  color: #2f855a;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.intro-refer p {
  color: #22543d;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-non-refer {
  background-color: #fef8e7;
  border-left-color: #d69e2e;
}

.intro-non-refer h2 {
  color: #b7791f;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.intro-non-refer p {
  color: #744210;
  font-size: 1rem;
  line-height: 1.7;
}

.intro-invalid {
  background-color: #fde8e8;
  border-left-color: #c53030;
}

.intro-invalid h2 {
  color: #9b2c2c;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.intro-invalid p {
  color: #742a2a;
  font-size: 1rem;
  line-height: 1.7;
}

#intro h2,
#intro p {
  margin: 0.5rem 0;
}
/* LA BALISE DES IMAGES EN ARRIERE-PLAN AVEC ANIMATION ZOOM-IN */
.hero-carousel {
  position: relative;
  height: 75vh;
  width: 100%;
  max-width: 9760px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Slides en arrière-plan */
.carousel-slides {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1s ease-in-out, transform 10s ease-in-out;
  z-index: 0;
  filter: brightness(0.7); /* rend les images moins éblouissantes */
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1.09);
  z-index: 1;
}

/* Couche floutée + sombre pour renforcer lisibilité */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;

  /* filtre semi-transparent au-dessus des images */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px); /* floute légèrement le fond */
}

.hero-overlay h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.7);
}

.hero-overlay p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.6);
}

.btn-shop {
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
    
}

.btn-shop:hover {
  background-color: #ff99003a;
  border-radius: 05px;
  box-shadow: 0 2px 10px rgba(9, 26, 181, 0.406);
  font-weight: bold;
  color: #000;
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .btn-shop {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 75vh;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }

  .hero-overlay p {
    font-size: 0.95rem;
  }

  .btn-shop {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

.nav-links {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.menu-toggle span {
  transition: all 0.4s ease-in-out;
}

.main-header {
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* À ajouter seulement si vous voulez améliorer l'affichage des nouveaux champs */
.quote-preview {
  font-style: italic;
  font-size: 0.9em;
  color: #555;
  margin: 0.5rem 0;
}

.story-preview {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.member-photo {
  width: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
}
.member-role {
  font-style: italic;
  color: #5a5a5a;
  margin-bottom: 10px;
}
.story-photos {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.story-photos img {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
}
.story-details ul {
  margin-left: 20px;
  list-style: disc;
}
.member-quote {
  margin: 20px 0;
  font-style: italic;
  background: #f0f0f0;
  padding: 10px;
  border-left: 4px solid #009688;
}

/* CARTE GRILLE PAGE PERSONNELLE MEMBRES */
/* Correction de la carte existante */
#member-info .member-card {
  min-width: 300px;
  max-width: 900px;
  padding: 25px;
  margin-top: 20px auto;
  box-shadow: 0 4px 12px rgba(O,O,0,0.1);
  width: 90%;
  border-radius: 12px;
  background: #fff;
}

/* En-tête */
#member-info .member-photo{
  width: 120px;
  height: 120px; 
  border-radius: 50%;
  border: 4px solid #b7791f;
  margin: 0 auto 1.5rem;
  display: block;
}

#member-info .member-header {
  text-align: center;
  margin-bottom: 2rem;
}

#member-info .member-name {
  font-size: 1.1rem;
  color: #7f8c8d;
  font-style: italic;
}

#member-info .member-resume {
  line-height: 1.6;
  color: #34495e;
}

/* Liens spécifiques */
#member-info .member-buy-link {
  padding: 0.8rem;
  background: #3498db;
  color: white;
  border-radius: 6px;
  text-align: center;
  display: block;
  
}
#member-info .member-copy-link {
  padding: 0.8rem;
  background: #2ecc71;
  color: white;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
}

/* Section Histoire*/
#member-info .member-story {
  margin-top: 2rem;
}
#member-info .member-story-resume {
  line-height: 1.6;
  color: #34495e;
}

/* Alignement des textes */
#member-info .member-role {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  margin: 1.5rem auto 1rem auto;
}

#member-info .member-role p {
  text-align: center;
  margin: 0.5rem 0
}

/* Empecher le debordement */
#member-info .member-link a,
#member-info .story-details,
#member-info .member-quote {
  word-break: break-word;
  max-width: 100%;
}

#member-info .story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem O;
}

#member-info .story-photos img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#member-info .member-card p,
#member-info .member-nom p,
#member-info .member-ville p,
#member-info .member-email p,
#member-info .member-annee_dentree p,
#member-info .member-facebook p {
  margin: 0.2rem 0 !important;
}

/* Responsive */
@media (max-with: 768px) {
  #member-info .member-card {
    padding: 15px;
  }
  #member-info .story-photos {
    grid-template-columns: 1fr;
  }
  p {
    margin: 0.3em 0; /* espacement plus encore serré sur mobile */
    line-height: 1.3;
  }
  #member-info .story-details ul {
    margin: 0.3em 0;
    line-height: 1.3;    
  }
}

/* Case des details html membres */
#member-info .story-details {
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 10px;
  max-width: 700px;
    margin: 1rem auto;
    padding: 0 1rem;
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

#member-info .story-details ul {
  padding-left: 20px;
  margin: 10px 0;
  display: list-item;

   
  
}

#member-info .story-details li {
  margin-bottom: 5px;
  list-style-type: "✅ ";
}

#member-info .story-details strong {
  display: block;
  margin-top: 10px;
  color: #007bff;
}

.fb-page a {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
  word-break: break-word
}
.fb-page {
  margin: 1rem auto;
  padding: 0 1rem
}
/* ——————————————————————— */
/* Harmonisation globale du texte (p, h2, ul, li) */
/* ——————————————————————— */

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
}

p {
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
  word-break: break-word;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1em 0 0.5em;
  color: #000;
}

ul {
  padding-left: 1.5rem;
  margin: 0 0 1em 0;
  font-size: inherit;
  line-height: inherit;
}

li {
  margin-bottom: 0.5em;
  font-size: inherit;
  line-height: inherit;
  list-style-type: disc;
}

/* Responsive typographie */
@media (min-width: 1025px) {
  p {
    font-size: 1.125rem;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 15px;
  }

  p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  h2 {
    font-size: 20px;
    text-align: center;
  }
}



/* CORRECTIF RESPONSIVE MOBILE CIBLÉ */
@media screen and (max-width: 768px) {
    /* Correction du conteneur principal */
    body {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    /* Correction des sections de contenu */
    section:not(.hero-carousel):not(.carousel):not(.main-header):not(footer):not(.footer-content) {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Correction spécifique pour l'intro et le contenu texte */
    #intro, 
    #call-video, 
    #Àpropos, 
    .intro-texte, 
    .Àpropos-text, 
    .call-video,
    .product .description,
    #member-info .member-card,
    #member-info .story-details {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Correction des textes pour éviter les débordements */
    h1:not(.main-header h1), 
    h2:not(.main-header h2), 
    h3, 
    h4, 
    h5, 
    h6, 
    p, 
    li, 
    span, 
    a:not(.nav-links a) {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Correction des grilles et flexbox */
    .card-grid, 
    #products, 
    .footer-content,
    .footer-left {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Correction spécifique pour les produits */
    .product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Correction pour les éléments vidéo */
    .video-container,
    #video-section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
    }
    
    /* Ajustement des marges et paddings excessifs sur mobile */
    .py-5, .py-4, .my-5, .my-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 480px) {
    body {
        padding: 0 2px !important;
    }
    
    section:not(.hero-carousel):not(.carousel):not(.main-header):not(footer):not(.footer-content) {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    #intro, 
    #call-video, 
    #Àpropos, 
    .intro-texte, 
    .Àpropos-text, 
    .call-video,
    .product .description,
    #member-info .member-card,
    #member-info .story-details {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .card-grid, 
    #products, 
    .footer-content,
    .footer-left {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .video-container,
    #video-section {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* Correction spécifique pour les éléments qui créent des débordements */
@media screen and (max-width: 768px) {
    /* Empêche le débordement horizontal */
    html, body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }
    
    /* Assure que tous les éléments respectent les limites */
    * {
        max-width: 100%;
    }
    
    /* Correction spécifique pour les images dans les conteneurs */
    .product img,
    .card img,
    .member-photo,
    .story-photos img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Correction pour les iframes vidéo */
    .video-container iframe {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* CORRECTIF RESPONSIVE SANS BLOQUER LES SCRIPTS */
@media screen and (max-width: 768px) {
    /* Correction uniquement pour les conteneurs de contenu */
    body > section:not(.main-header):not(footer):not(.hero-carousel):not(.carousel),
    #intro,
    #call-video,
    #Àpropos,
    #products,
    .product,
    .card-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Correction spécifique pour les textes */
    #intro p,
    #call-video p,
    #Àpropos p,
    .product .description,
    .card p {
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
    
    /* Correction des images dans les conteneurs de produits */
    .product img,
    .card img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ajustement des grilles pour mobile */
    .card-grid,
    #products {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* Pour les très petits écrans */
@media screen and (max-width: 480px) {
    body > section:not(.main-header):not(footer):not(.hero-carousel):not(.carousel),
    #intro,
    #call-video,
    #Àpropos,
    #products {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .product,
    .card {
        padding: 10px !important;
    }
}
