@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Lato:wght@300;400;700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #1f2937;
  background: #f9fafb;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}



a {
  color: #494949;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}



.header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}



.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;       /* prend la hauteur fixe du header */
  padding: 0 1rem;
}

.header .logo img.site-logo {
  max-height: 60px;   /* logo adapté à l'intérieur du header */
  width: auto;
  display: block;
  object-fit: contain;
}

/* Supprimer ou commenter l'ancien code body::before */
/* body::before {...} */

/* Ajouter le nouveau style pour le header */
.header::after {
    content: '';
    position: absolute;
    bottom: -6px;  /* Position juste en dessous du header */
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #b88007 0%, #d4a574 50%, #b88007 100%);
    z-index: 50;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

/* Garder l'animation existante */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


.logo {
  font-weight: 800;
  font-size: 1.1rem;
}

.burger {
  display: none;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
}

.nav {
  position: relative;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a.active,
.nav a:hover {
  background: #f8d470;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  padding: 2rem;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.cta {
  display: flex;
  gap: 12px;
  margin: 10px 0 20px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #01932d;
  color: white;
  border: none;       /* Retire la bordure */
  outline: none;      /* Retire le contour de focus si nécessaire */
}

.btn-primary:hover {
  background: #02c03b;
      /* Retire le contour de focus si nécessaire */
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid #1976d2;
  color: #1976d2;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.link {
  text-decoration: underline;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: .85rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-content {
  padding: 1.5rem;
}

.form {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 10px;
  border-radius: 10px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #e7e7e7;
  box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
  z-index: 1000;
}

.footer-inner {
  padding: 0 6px; /* supprime la hauteur inutile */
  font-size: 0.7rem; /* texte plus petit */
  line-height: 20px; /* force une hauteur basse */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px; /* hauteur fixe */
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials img {
  height: 15px; /* icônes très petites */
  width: auto;
  transition: transform 0.2s;
}

.footer-socials img:hover {
  transform: scale(1.1);
}

/* Taille spécifique pour YouTube */
.footer-socials .youtube-icon img {
  width: 36px;  /* plus grand que Facebook */
  height: 36px;
}



.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.partner {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 8px;
}

.partner img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

/* Styles pour le menu et sous-menu */
.menu-item {
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  /* Délai de 0.2s avant de masquer : laisse le temps de déplacer la souris */
  transition: opacity 0.25s ease 0.2s, visibility 0.25s ease 0.2s, transform 0.25s ease 0.2s;
  z-index: 1000;
  margin-top: 8px;
  margin-left: -18px;
}

.menu-item:hover .submenu,
.menu-item.submenu-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  /* Pas de délai à l'ouverture */
  transition: opacity 0.2s ease 0s, visibility 0.2s ease 0s, transform 0.2s ease 0s;
}

/* Maintenir la brillance du parent quand le sous-menu est ouvert ou qu'une page enfant est active */
.menu-item.submenu-open > a,
.menu-item.has-active-child > a {
  background: #f8d470 !important;
  border-radius: 10px;
}

.submenu li {
  
  border-bottom: 1px solid #eee;
  
  
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 12px 20px;
  display: block;
  color: #2c3e50;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  /* Dégradé discret */
  background: linear-gradient(135deg, #f3e596, #ffffff);
  
  border-radius: 6px;
  margin: 4px 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.submenu a:hover {
  background: linear-gradient(135deg, #ffffff, #f3e596);
  color: #000;
  transform: translateX(4px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Sous-menu item actif (page courante) */
.submenu a.active {
  background: linear-gradient(135deg, #eec624, #f8d470) !important;
  color: #3a2a00 !important;
  font-weight: 700;
  border-left: 3px solid #b88007;
  padding-left: 17px;
  box-shadow: 0 2px 8px rgba(184, 128, 7, 0.25);
  transform: translateX(2px);
}

/* ==================== Fil d'Ariane (Breadcrumb) ==================== */
.breadcrumb-bar {
  background: linear-gradient(90deg, #fdf8e8 0%, #fffef5 100%);
  border-bottom: 1px solid #f0e4b0;
  padding: 7px 0;
  font-size: 0.82rem;
  color: #7a6020;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b88007;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb-link:hover {
  color: #7a5500;
}

.breadcrumb-sep {
  color: #c9a840;
  font-size: 0.7rem;
}

.breadcrumb-parent {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a6020;
  font-weight: 500;
}

.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #3a2a00;
  background: linear-gradient(135deg, #f8d470, #eec624);
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 4px rgba(184, 128, 7, 0.2);
}

/* Style spécial pour le menu Soutenir */
.menu-soutenir {
  position: relative;
  background: linear-gradient(135deg, #ffeb6b, #eec624);
  border-radius: 25px;
  padding: 8px 16px !important;
  margin: 0 5px;
  box-shadow: 0 4px 15px rgba(255, 220, 107, 0.3);
  transition: all 0.3s ease;
  animation: pulse-glow 2s infinite;
}

.menu-soutenir:hover {
  background: linear-gradient(135deg, #ffeb6b, #eec624);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 220, 107, 0.3);
}

.menu-soutenir span {
  color: rgb(63, 62, 62) !important;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.menu-soutenir i {
  margin-right: 8px;
  animation: heartbeat 1.5s infinite;
}

/* Animation de pulsation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(250, 187, 0, 0.8);
  }
  50% {
    box-shadow: 0 4px 25px rgba(254, 207, 98, 0.8);
  }
}

/* Animation du cœur */
@keyframes heartbeat {
  0%, 14%, 28%, 42%, 70% {
    transform: scale(1);
  }
  7%, 21%, 35% {
    transform: scale(1.1);
  }
}

/* Badge "Nouveau" optionnel */
.menu-soutenir::after {
  content: "♥";
  position: absolute;
  top: -5px;
  right: -5px;
  color: #ff0095;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: bold;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* Style responsif pour mobile */
@media (max-width: 768px) {
  .menu-soutenir {
    margin: 5px 0;
    border-radius: 20px;
    padding: 10px 15px !important;
  }
}
/* Gestion responsive du sous-menu */
@media (max-width: 860px) {
  .submenu {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-left: 12px;
    background: #f5f5f5;
    border-radius: 8px;
  }

  .menu-item {
    position: relative;
    font-weight: 500;
  }

  .submenu-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 12px;
    color: #666;
    padding: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .submenu-toggle.active {
    transform: translateY(-50%) rotate(180deg);
  }

  .submenu {
    display: none;
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #e5e7eb;
  }

  .submenu.show {
    display: block;
  }

  .menu-item > a {
    padding-right: 40px;
  }
}

/* Modifier la partie responsive du menu */
@media (max-width: 860px) {
  .burger {
    display: inline-block;
  }

  .nav {
    display: none;
    position: fixed; /* Changed from absolute */
    top: 70px; /* Hauteur du header */
    left: 0; /* Aligné à gauche */
    width: 280px; /* Largeur fixe */
    height: calc(100vh - 70px); /* Hauteur complète moins le header */
    background: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Permet le défilement si le menu est trop long */
    transform: translateX(-100%); /* Cache le menu hors écran */
    transition: transform 0.3s ease;
  }

  .nav.open {
    display: block;
    transform: translateX(0); /* Affiche le menu */
    padding-bottom: 50px;
  }

  .nav ul {
    flex-direction: column;
    padding: 12px;
    gap: 8px;
  }

  .menu-item {
    width: 100%;
  }

  .menu-item > a {
    display: block;
    padding: 12px;
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    max-width: none;
    box-shadow: none;
    margin-left: 12px;
    background: #f5f5f5;
    border-radius: 8px;
  }

  .nav a i {
    margin-right: 15px;
    font-size: 1.1em;
  }

  .submenu a i {
    margin-right: 10px;
    font-size: 0.9em;
  }
}

/* Cacher les icônes par défaut */
.nav a i {
  display: none;
}

/* Afficher les icônes uniquement en mode mobile */
@media (max-width: 860px) {
  .nav a i {
    display: inline-block;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    font-size: 1.1em;
  }

  .submenu a i {
    font-size: 0.9em;
    margin-right: 10px;
  }
}

/* ==================== Modals et Commentaires pour Livres ==================== */

/* Overlay modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  z-index: 1001;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active,
.modal-overlay.active {
  display: block;
}

/* Header modal */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  color: #6b7280;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #374151;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

/* Contenu modal description */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.description-image {
  text-align: center;
  background: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
}

.full-book-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.description-text {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
}

.description-text h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.description-text p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.description-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.description-meta p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: #6b7280;
}

.description-meta strong {
  color: #374151;
}

/* Formulaire commentaire */
.comment-form {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-submit {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background: #1d4ed8;
}

.comments-list {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e8f0;
}

.comments-title {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 600;
}

.comment {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  animation: fadeIn 0.3s ease-out;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-author {
  font-weight: 600;
  color: #2563eb;
  font-size: 1rem;
}

.comment-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.comment-text {
  color: #4b5563;
  line-height: 1.5;
  font-size: 0.95rem;
}



/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width:1024px) {
  .modal {
    max-width: 600px;
  }

  .modal-content {
    flex-direction: column;
  }
}

@media (max-width:640px) {
  .modal {
    padding: 1.5rem;
    max-width: 95%;
  }

  .comment-form {
    padding: 1rem;
  }

  .comment {
    padding: 1rem;
  }

  .description-text {
    padding: 1rem;
  }
}

/* ════════════════════════════════════════════════════
   GLOBAL SCROLL REVEAL — fonctionne sur toutes les pages
════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ════════════════════════════════════════════════════
   PAGE BANNER — bandeau en haut des pages internes
════════════════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b88007' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #b88007, transparent);
}

.page-banner .page-banner-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-banner .page-banner-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════
   PADDING GLOBAL pour le footer fixe
════════════════════════════════════════════════════ */
main, section:last-of-type, .books-layout,
.videos-layout, .brochures-layout, .projects-section,
.contact-page, .vision-section, .support-section,
.partners-showcase {
  padding-bottom: 70px;
}
