/* 🎨 Custom CSS for Institut Website - PowerBache Style */

/* Base styles for smooth scrolling and overflow */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Roboto", sans-serif;
}

/* Ensure all elements respect width and box-sizing */
* {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* PowerBache Brand Colors */
:root {
  --brand-primary: #1e40af;
  --brand-secondary: #64748b;
  --brand-gold: #f59e0b;
  --brand-dark: #1f2937;
  --brand-accent: #3b82f6;

  /* ===== COULEURS MÉTIER ===== */
  --informatique-color: #3494d8;
  --sante-color: #0d9641;
  --compta-color: #732182;
  --graphie-color: #ec451c;
  --hotel-color: #d81920;
  --froid-color: #1e627c;
  --stylisme-color: #ee2372;
  --secret-color: #293d9b;
  --coif-color: #c51f70;
  --automobile-color: #723707;
  --agriculture-color: #22844e;
  --bois-color: #8b4513;
  --civil-color: #000000;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item.show {
  animation: fadeInUp 0.5s ease forwards;
}

/* Header specific styles */
.nav-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.brand-logo {
  line-height: 1.1;
}

/* Mobile Menu Drawer Styles */
.mobile-menu-drawer {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-overlay {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-menu-drawer.show {
  transform: translateX(0);
}

.mobile-menu-overlay.show {
  opacity: 1;
}

/* Mobile Navigation Links */
.mobile-nav-link {
  min-height: 56px; /* Zone tactile optimale */
  touch-action: manipulation;
}

.mobile-nav-section {
  margin-bottom: 1.5rem;
}

/* Amélioration de l'accessibilité */
.mobile-menu-btn:focus,
.mobile-menu-close:focus {
  outline: 2px solid #1E40AF;
  outline-offset: 2px;
}

/* Animation du bouton hamburger */
.mobile-menu-btn.active svg path:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active svg path:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active svg path:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-btn svg path {
  transition: all 0.3s ease;
}
.header {
  transition: all 0.3s ease-in-out;
}

/* Navigation link hover effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease-in-out;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-primary);
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Mobile menu transition */
.mobile-menu {
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

/* Card hover effects */
.formation-card,
.actualite-card,
.value-card,
.school-card,
.program-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.formation-card:hover,
.actualite-card:hover,
.value-card:hover,
.school-card:hover,
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form input focus styles */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

/* Gallery specific styles */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.show {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card .gallery-image img {
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  background: linear-gradient(to top, rgba(30, 64, 175, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Accordion icon rotation */
.accordion-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Utility for prose content */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--brand-dark);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.prose p {
  margin-bottom: 1rem;
}
.prose ul {
  list-style-type: disc;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose ol {
  list-style-type: decimal;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.prose a {
  color: var(--brand-primary);
  text-decoration: underline;
}
.prose strong {
  font-weight: 600;
}

/* PowerBache specific styles */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(31, 41, 55, 0.8), rgba(31, 41, 55, 0.6), rgba(31, 41, 55, 0.4));
}

.hero-content {
  text-align: center;
  color: white;
}

.hero-icon {
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
}

.hero-subtitle {
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
  line-height: 1.75;
  font-family: "Lato", sans-serif;
}

.btn-primary {
  background-color: var(--brand-gold);
  color: white;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #d97706;
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Section styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.heading-2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
  color: var(--brand-dark);
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background-color: var(--brand-gold);
  margin: 0 auto;
  border-radius: 9999px;
}

.section-description {
  font-size: 1.25rem;
  font-family: "Lato", sans-serif;
  color: var(--brand-secondary);
  max-width: 48rem;
  margin: 0 auto;
}

/* Footer styles */
.footer {
  background-color: var(--brand-dark);
  color: white;
  padding: 4rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: #d1d5db;
  font-family: "Lato", sans-serif;
  line-height: 1.75;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.25rem;
  background-color: rgba(245, 158, 11, 0.2);
  z-index: 50;
}

.scroll-progress-bar {
  height: 100%;
  background-color: var(--brand-gold);
  transition: width 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle span {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .heading-2 {
    font-size: 2rem;
  }

  .section-description {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle span {
    font-size: 1.25rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===============================
   ANIMATIONS AVANCÉES POUR NOUVELLES FONCTIONNALITÉS
   =============================== */

/* Hero Slider Animations - Version ultra-simple */
.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Les classes prev et next ne sont utilisées que pour la direction, pas pour le style */
.hero-slide.prev,
.hero-slide.next {
  opacity: 0;
  z-index: 1;
}

/* Le premier slide commence visible grâce à la classe active dans le HTML */
/* Pas besoin de forcer avec :first-child car cela empêche les transitions */

/* S'assurer que TOUT le contenu des slides est TOUJOURS visible */
.hero-slide .slide-background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  opacity: 1 !important;
  display: block !important;
}

.hero-slide .slide-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 1 !important;
}

.hero-slide .slide-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2 !important;
  opacity: 1 !important;
  display: block !important;
}

.hero-slide .slide-content {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
}

.hero-slide.active .slide-content,
.hero-slide.active .slide-background,
.hero-slide.active .slide-overlay {
  pointer-events: auto;
}

/* Slider Navigation */
.nav-btn,
.dot {
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-btn:hover {
  transform: scale(1.1);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.dot.active {
  width: 32px;
  border-radius: 6px;
  transform: scale(1.1);
}

.dot:hover {
  transform: scale(1.2);
}

/* Statistiques Counters */
.counter {
  transition: all 0.3s ease;
}

.stat-item {
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* Filtres Avancés */
.filter-btn,
.special-filter-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.special-filter-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Crash Courses */
.crash-course-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.crash-course-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-badge,
.course-duration {
  transition: all 0.3s ease;
}

.crash-course-card:hover .course-badge,
.crash-course-card:hover .course-duration {
  transform: scale(1.05);
}

/* Témoignages */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonials-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.testimonial-nav {
  transition: all 0.3s ease;
}

.testimonial-nav:hover {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.4) !important;
}

/* Galerie */
.gallery-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.gallery-overlay {
  transition: all 0.3s ease;
}

.gallery-filter-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
#galleryLightbox {
  transition: opacity 0.3s ease;
}

#galleryLightbox.hidden {
  opacity: 0;
  pointer-events: none;
}

#lightboxImage {
  transition: all 0.3s ease;
}

/* Scroll Progress */
.scroll-progress-bar {
  transition: width 0.1s ease-out;
}

/* Animations personnalisées */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-2px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(2px);
  }
}

/* Classes utilitaires pour animations */
.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-shake {
  animation: shake 0.5s ease-in-out;
}

/* Hover effects pour les boutons */
.btn-hover-glow {
  position: relative;
  overflow: hidden;
}

.btn-hover-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-hover-glow:hover::before {
  left: 100%;
}

/* Loading states */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced Hero Section Styles */
.hero-enhanced {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Hero Image Styles */
.hero-enhanced img {
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
}

.hero-enhanced:hover img {
  transform: scale(1.05);
}

.hero-enhanced::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-stats-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Enhanced Breadcrumb Styles */
.breadcrumb-enhanced {
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}

.breadcrumb-enhanced::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-gold) 50%, transparent 100%);
}

.breadcrumb-link {
  position: relative;
  transition: all 0.3s ease;
}

.breadcrumb-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.breadcrumb-link:hover::after {
  width: 100%;
}

/* Quick Actions Styles */
.quick-action-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.quick-action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
  transition: left 0.5s ease;
}

.quick-action-btn:hover::before {
  left: 100%;
}

/* View Toggle Styles */
.view-toggle {
  background: #f1f5f9;
  border-radius: 0.5rem;
  padding: 0.25rem;
  display: flex;
  gap: 0.25rem;
}

.view-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  position: relative;
}

.view-toggle-btn.active {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: var(--brand-primary);
}

.view-toggle-btn:not(.active) {
  color: #64748b;
}

.view-toggle-btn:not(.active):hover {
  color: var(--brand-primary);
  background: rgba(30, 64, 175, 0.05);
}

/* Quick Stats Styles */
.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
}

.quick-stat {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.quick-stat:hover {
  color: var(--brand-primary);
  transform: translateX(2px);
}

.quick-stat-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Scroll Indicator Animation */
@keyframes bounce-soft {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

.scroll-indicator {
  animation: bounce-soft 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-slide {
    transform: translateY(50px);
  }

  .hero-slide.active {
    transform: translateY(0);
  }

  .crash-course-card:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .gallery-item:hover {
    transform: translateY(-3px) scale(1.01);
  }

  .hero-enhanced h1 {
    font-size: 2.5rem;
  }

  .hero-stats-card {
    padding: 0.75rem;
  }

  .breadcrumb-enhanced {
    padding: 1rem 0;
  }

  .quick-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .quick-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  transition: all 0.3s ease-in-out;
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-menu:not(.hidden) {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu-open {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile Menu Button Animation */
.mobile-menu-btn {
  transition: all 0.3s ease;
  position: relative;
  z-index: 60;
  display: flex !important; /* Force display on mobile */
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn:hover {
  transform: scale(1.05);
}

.mobile-menu-btn:active {
  transform: scale(0.95);
}

/* Mobile Menu Links */
.mobile-menu a {
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu a:hover {
  transform: translateX(5px);
  color: var(--brand-primary);
}

.mobile-menu a::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.3s ease;
}

.mobile-menu a:hover::before {
  width: 5px;
}

/* ===== HARMONISATION DES COULEURS MÉTIER ===== */

/* Informatique */
.bg-informatik {
  background: var(--informatique-color);
}
.text-informatik {
  color: var(--informatique-color);
}
.border-informatik {
  border: 1px solid var(--informatique-color);
}

/* Santé */
.bg-sante {
  background: var(--sante-color);
}
.text-sante {
  color: var(--sante-color);
}
.border-sante {
  border: 1px solid var(--sante-color);
}

/* Comptabilité */
.bg-compta {
  background: var(--compta-color);
}
.text-compta {
  color: var(--compta-color);
}
.border-compta {
  border: 1px solid var(--compta-color);
}

/* Graphisme */
.bg-graphie {
  background: var(--graphie-color);
}
.text-graphie {
  color: var(--graphie-color);
}
.border-graphie {
  border: 1px solid var(--graphie-color);
}

/* Hôtellerie */
.bg-hotel {
  background: var(--hotel-color);
}
.text-hotel {
  color: var(--hotel-color);
}
.border-hotel {
  border: 1px solid var(--hotel-color);
}

/* Froid */
.bg-froid {
  background: var(--froid-color);
}
.text-froid {
  color: var(--froid-color);
}
.border-froid {
  border: 1px solid var(--froid-color);
}

/* Stylisme */
.bg-stylisme {
  background: var(--stylisme-color);
}
.text-stylisme {
  color: var(--stylisme-color);
}
.border-stylisme {
  border: 1px solid var(--stylisme-color);
}

/* Secrétariat */
.bg-secret {
  background: var(--secret-color);
}
.text-secret {
  color: var(--secret-color);
}
.border-secret {
  border: 1px solid var(--secret-color);
}

/* Coiffure */
.bg-coif {
  background: var(--coif-color);
}
.text-coif {
  color: var(--coif-color);
}
.border-coif {
  border: 1px solid var(--coif-color);
}

/* Automobile */
.bg-automobile {
  background: var(--automobile-color);
}
.text-automobile {
  color: var(--automobile-color);
}
.border-automobile {
  border: 1px solid var(--automobile-color);
}

/* Agriculture */
.bg-agriculture {
  background: var(--agriculture-color);
}
.text-agriculture {
  color: var(--agriculture-color);
}
.border-agriculture {
  border: 1px solid var(--agriculture-color);
}

/* Bois */
.bg-bois {
  background: var(--bois-color);
}
.text-bois {
  color: var(--bois-color);
}
.border-bois {
  border: 1px solid var(--bois-color);
}

/* Civil */
.bg-civil {
  background: var(--civil-color);
}
.text-civil {
  color: var(--civil-color);
}
.border-civil {
  border: 1px solid var(--civil-color);
}

hover:bg-informatik:hover {
  background: var(--informatique-color);
}
hover:bg-sante:hover {
  background: var(--sante-color);
}
hover:bg-compta:hover {
  background: var(--compta-color);
}
hover:bg-graphie:hover {
  background: var(--graphie-color);
}
hover:bg-hotel:hover {
  background: var(--hotel-color);
}
hover:bg-froid:hover {
  background: var(--froid-color);
}
hover:bg-stylisme:hover {
  background: var(--stylisme-color);
}
hover:bg-secret:hover {
  background: var(--secret-color);
}
hover:bg-coif:hover {
  background: var(--coif-color);
}
hover:bg-automobile:hover {
  background: var(--automobile-color);
}
hover:bg-agriculture:hover {
  background: var(--agriculture-color);
}
hover:bg-bois:hover {
  background: var(--bois-color);
}
hover:bg-civil:hover {
  background: var(--civil-color);
}

/* Mobile Menu Responsive */
@media (max-width: 768px) {
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  }
}

/* ===============================
   GALLERY STYLES
   =============================== */

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-actions {
  display: flex;
  gap: 1rem;
}

.gallery-action-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
}

.gallery-action-btn:hover {
  background: white;
  transform: scale(1.1);
  color: #6CA0C0;
}

.gallery-info {
  padding: 1.5rem;
}

.gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.gallery-category {
  color: #6CA0C0;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Gallery Filter Buttons */
.gallery-filter-btn {
  background: white;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.gallery-filter-btn:hover {
  border-color: #6CA0C0;
  color: #6CA0C0;
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  background: #6CA0C0;
  border-color: #6CA0C0;
  color: white;
}

.gallery-filter-btn.active:hover {
  background: #5a8fb0;
  border-color: #5a8fb0;
  transform: translateY(-2px);
}

/* Gallery Search */
#gallerySearch {
  min-width: 250px;
  transition: all 0.3s ease;
}

#gallerySearch:focus {
  box-shadow: 0 0 0 3px rgba(108, 160, 192, 0.1);
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .gallery-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  #gallerySearch {
    min-width: 200px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  #gallerySearch {
    min-width: 150px;
  }
}

/* ===============================
   HEADER DROPDOWN STYLES
   =============================== */

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  min-width: 700px; /* évite les troncatures */
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Header */
.dropdown-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.dropdown-header p {
  font-size: 0.75rem;
  line-height: 1.2;
  margin-top: 0.25rem;
}

/* Dropdown Links */
.dropdown-link {
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Empêche la coupure du texte à l'intérieur des liens et boutons du dropdown */
.dropdown-link span {
  white-space: nowrap;
}

.dropdown-menu a {
  white-space: nowrap;
}

.dropdown-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 160, 192, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-link:hover::before {
  left: 100%;
}

.dropdown-link:hover {
  background-color: rgba(108, 160, 192, 0.05);
  transform: translateX(2px);
}

.dropdown-link svg {
  transition: transform 0.2s ease;
}

.dropdown-link:hover svg {
  transform: translateX(2px);
  color: #6CA0C0;
}

/* Dropdown Columns */
.dropdown-column {
  position: relative;
}

.dropdown-column::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1rem;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #e5e7eb, transparent);
}

.dropdown-column:last-child::after {
  display: none;
}

/* Dropdown Footer */
.dropdown-menu .mt-6 {
  position: relative;
}

.dropdown-menu .mt-6::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* Responsive Dropdown */
@media (max-width: 1024px) {
  .nav-dropdown .dropdown-menu {
    width: 90vw;
    max-width: 500px;
  }
  
  .nav-dropdown .dropdown-menu .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dropdown-column::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-dropdown .dropdown-menu {
    width: 90vw;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animation d'entrée */
@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown:hover .dropdown-menu {
  animation: dropdownFadeIn 0.3s ease-out;
}

/* Amélioration de l'accessibilité */
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link:focus {
  outline: 2px solid #6CA0C0;
  outline-offset: 2px;
}

/* Dropdown Category Styles */
.dropdown-category {
  margin-bottom: 1rem;
}

.category-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.category-count {
  font-size: 0.75rem;
  background-color: #f3f4f6;
  color: #6b7280;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 500;
}

.category-formations {
  margin-top: 0.5rem;
}

.dropdown-link .truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive adjustments for dropdown content */
@media (max-width: 1024px) {
  .dropdown-link .truncate {
    max-width: 150px;
  }
}

@media (max-width: 768px) {
  .dropdown-link .truncate {
    max-width: 120px;
  }
  
  .category-count {
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
  }
}

/* ===============================
   LIGHTBOX STYLES
   =============================== */

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 1200px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  color: #F6B900;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(246, 185, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
}

.lightbox-title {
  color: #fff;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}

/* Amélioration du contenu de l'article */
.article-content {
  line-height: 1.8;
  color: #374151;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: #1f2937;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h1 { font-size: 2.5rem; }
.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.75rem; }
.article-content h4 { font-size: 1.5rem; }

.article-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid #6CA0C0;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.article-content a {
  color: #6CA0C0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: #F6B900;
}

.article-content strong {
  font-weight: 700;
  color: #1f2937;
}

.article-content em {
  font-style: italic;
  color: #4b5563;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    padding: 10px;
  }
  
  .lightbox-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
  
  .lightbox-nav {
    font-size: 24px;
    padding: 15px;
  }
  
  .lightbox-prev {
    left: 20px;
  }
  
  .lightbox-next {
    right: 20px;
  }
}
