/* CERMES Website - Styles Optimisés */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Jura:wght@400;500;600;700&display=swap');

/* ===================
   BASE & RESET
   =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #1F2937;
  background: #F9FAFB;
}

h1, h2 {
  font-family: 'Jura', sans-serif;
  font-weight: 700;
}

/* ===================
   TOP NAVIGATION BAR
   =================== */
.top-nav {
  background: white;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  position: relative;
  z-index: 102;
}

.top-nav a {
  color: #374151;
  margin: 0 0.5rem;
  transition: color 0.3s;
  text-decoration: none;
}

.top-nav a:hover {
  color: #3766CC;
}

/* ===================
   HERO SECTION
   =================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  overflow: hidden;
  margin-bottom: 3rem;
  margin-top: 0.2rem;
}

/* Hero for internal pages - smaller height */
.hero-section.internal-hero {
  min-height: 60vh;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(55, 102, 204, 0.3), rgba(28, 51, 102, 0.1));
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
}

/* ===================
   NAVBAR
   =================== */
.hero-navbar {
  position: fixed;
  top: 3rem;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s ease;
  padding: 1.25rem 2rem;
}

.hero-navbar.in-hero {
  background: transparent;
}

.hero-navbar.scrolled {
  top: 0rem;
  background: white;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  padding: 0.75rem 2rem;
}

.hero-nav-container {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-navbar.scrolled .hero-nav-container {
  background: transparent;
  border-radius: 0;
  padding: 0.5rem 0;
  box-shadow: none;
}

.logo img {
  height: 60px;
  width: auto;
  transition: height 0.3s ease;
}

.hero-navbar.scrolled .logo img {
  height: 50px;
}

/* Menu toggle button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: #374151;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

.menu-items {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.menu-items a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 0.5rem 0;
  position: relative;
}

.menu-items a:hover {
  color: #EA782C;
}

.menu-items a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #EA782C;
  transition: width 0.3s;
}

.menu-items a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  min-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 15px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}

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

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #374151;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background: rgba(234, 120, 44, 0.1);
  color: #EA782C;
}

.dropdown-content a::after {
  display: none;
}

/* ===================
   BREADCRUMB
   =================== */
.breadcrumb {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  z-index: 2;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #EA782C;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.breadcrumb i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content > p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-annonce {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.25rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  margin-top: 2rem;
  max-width: 380px;
}

.hero-annonce h4 {
  color: #EA782C;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-annonce p {
  color: #374151;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.hero-annonce .event-date-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  margin-top: 0.6rem;
}

.hero-annonce h5 {
  color: #1C3366;
  font-weight: 600;
  margin: 0.6rem 0;
  font-size: 0.85rem;
}

.read-more-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3766CC;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
  transition: gap 0.3s;
}

.read-more-hero:hover {
  gap: 1rem;
}

/* ===================
   CONTENT CONTAINER (for internal pages)
   =================== */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-container h1 {
  font-size: 2.5rem;
  color: #1F2937;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.content-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3766CC, #1C3366);
  border-radius: 2px;
}

.content-section {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.content-section h2 {
  color: #3766CC;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.content-section p {
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: #4B5563;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

/* ===================
   ABOUT SECTION
   =================== */
.about-container {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.about-container h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.about-container h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3766CC, #1C3366);
  border-radius: 2px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4B5563;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #3766CC, #1C3366);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(55, 102, 204, 0.3);
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

/* ===================
   NEWS SECTION
   =================== */
.news-container {
  background: #D4D4D4;
  padding: 5rem 2rem;
}

.news-header {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.news-title-section {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2937;
  position: relative;
  padding-bottom: 1rem;
}

.news-title-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3766CC, #1C3366);
  border-radius: 2px;
}

.news-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-form select,
.search-form input {
  padding: 0.75rem 1.25rem;
  border: 2px solid #E5E7EB;
  border-radius: 50px;
  font-size: 0.95rem;
  background: white;
  transition: border-color 0.3s;
}

.filter-form select:focus,
.search-form input:focus {
  outline: none;
  border-color: #3766CC;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form button {
  background: #3766CC;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.search-form button:hover {
  background: #1C3366;
  transform: scale(1.05);
}

.news-scroll-controls {
  display: flex;
  gap: 1rem;
}

.scroll-btn {
  background: #3766CC;
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(55, 102, 204, 0.3);
}

.scroll-btn:hover {
  background: #1C3366;
  transform: scale(1.1);
}

.news-grid {
  display: flex;
  gap: 2rem;
  padding: 0.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #3766CC #E5E7EB;
  padding-bottom: 1rem;
}

.news-grid::-webkit-scrollbar {
  height: 8px;
}

.news-grid::-webkit-scrollbar-track {
  background: #E5E7EB;
  border-radius: 10px;
}

.news-grid::-webkit-scrollbar-thumb {
  background: #3766CC;
  border-radius: 10px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  min-width: 350px;
  max-width: 350px;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.news-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  padding: 8px 8px 0 8px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.3s;
}

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

.news-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #3766CC;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
}

.news-content {
  padding: 1.5rem;
}

.news-category {
  display: inline-block;
  background: #EEF2FF;
  color: #3766CC;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}

.news-excerpt {
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3766CC;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  padding: 0.75rem 1.25rem;
  background: white;
  color: #3766CC;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
  background: #3766CC;
  color: white;
  transform: translateY(-2px);
}

/* ===================
   EVENTS LIST PAGE
   =================== */
.events-list-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.events-list-wrapper {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.events-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid #E5E7EB;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tab-btn:hover {
  color: #3766CC;
}

.tab-btn.active {
  color: #3766CC;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #3766CC;
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.event-card-list {
  background: #F9FAFB;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.event-card-list:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.event-card-list.past-event {
  opacity: 0.9;
}

.event-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

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

.event-card-list:hover .event-image-wrapper img {
  transform: scale(1.1);
}

.event-text-content {
  padding: 1.5rem;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #6B7280;
}

.event-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #6B7280;
}

.empty-state i {
  font-size: 4rem;
  color: #D1D5DB;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  color: #374151;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===================
   EVENT DETAIL PAGE
   =================== */
.event-info-card {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(55, 102, 204, 0.15);
}

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

.info-row:last-child {
  margin-bottom: 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item i {
  font-size: 1.5rem;
  color: #3766CC;
  margin-top: 0.25rem;
}

.info-item > div {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.85rem;
  color: #6B7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1.1rem;
  color: #1F2937;
  font-weight: 600;
  margin-top: 0.25rem;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.speaker-card {
  background: #F9FAFB;
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.speaker-card img,
.speaker-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid #3766CC;
}

.speaker-placeholder {
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9CA3AF;
}

.speaker-card h3 {
  font-size: 1.1rem;
  color: #1F2937;
  margin-bottom: 0.5rem;
}

.speaker-card > p {
  color: #3766CC;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.speaker-bio {
  color: #6B7280;
  font-size: 0.85rem;
  line-height: 1.6;
}

.event-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #F9FAFB;
  border-radius: 15px;
  text-decoration: none;
  color: #1F2937;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.document-item:hover {
  background: #EEF2FF;
  border-color: #3766CC;
  transform: translateX(5px);
}

.document-item > i:first-child {
  font-size: 2rem;
  color: #DC2626;
}

.document-item > i:last-child {
  margin-left: auto;
  color: #3766CC;
  font-size: 1.25rem;
}

.document-item > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doc-title {
  font-weight: 600;
  color: #1F2937;
  font-size: 1.05rem;
}

.doc-desc {
  color: #6B7280;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* ===================
   EVENTS SECTION (for homepage)
   =================== */
.events-container {
  background: linear-gradient(135deg, #3766CC 0%, #1C3366 100%);
  padding: 5rem 2rem;
  position: relative;
}

.events-header {
  max-width: 1400px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.events-title-section {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  position: relative;
  padding-bottom: 1rem;
}

.events-title-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: white;
  border-radius: 2px;
}

.carousel-controls {
  display: flex;
  gap: 1rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.events-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.events-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.event-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  min-width: calc(50% - 1rem);
  display: flex;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
}

.event-image {
  flex: 0 0 45%;
  position: relative;
  overflow: hidden;
}

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

.event-card:hover .event-image img {
  transform: scale(1.1);
}

.event-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #3766CC;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.event-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-category {
  display: inline-block;
  background: #EEF2FF;
  color: #3766CC;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1rem;
}

.event-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.event-excerpt {
  color: #6B7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-participer {
  display: inline-block;
  background: linear-gradient(135deg, #3766CC, #1C3366);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-participer:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(55, 102, 204, 0.4);
}

/* ===================
   CONTACT FORM
   =================== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title {
  font-size: 2.5rem;
  color: #1F2937;
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: #6B7280;
  font-size: 1.1rem;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3766CC;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #3766CC, #1C3366);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(55, 102, 204, 0.3);
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.alert.success {
  background: #D1FAE5;
  color: #065F46;
}

.alert.error {
  background: #FEE2E2;
  color: #991B1B;
}

/* ===================
   TESTIMONIALS SECTION
   =================== */
.testimonial-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.testimonial-wrapper {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 3rem;
  align-items: start;
}

.testimonials-mother-card {
  background: #E0E0E0;
  border-radius: 20px;
  padding: 2rem;
  min-height: 600px;
}

.testimonials-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #EA782C;
  margin-bottom: 2rem;
  text-align: center;
}

.testimonials-carousel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 1rem;
}

.testimonials-carousel::-webkit-scrollbar {
  width: 8px;
}

.testimonials-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.testimonials-carousel::-webkit-scrollbar-thumb {
  background: #3766CC;
  border-radius: 10px;
}

.testimonial {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.3s;
}

.testimonial:hover {
  transform: translateX(5px);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 60px;
  color: rgba(55, 102, 204, 0.15);
  font-family: Georgia, serif;
}

.testimonial p {
  font-style: italic;
  color: #4B5563;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.testimonial-author {
  font-weight: 700;
  color: #1F2937;
  margin-top: 1rem;
  font-size: 1rem;
}

.testimonial-role {
  color: #6B7280;
  font-size: 0.875rem;
}

.director-mother-card {
  background: #B0C2EA;
  border-radius: 20px;
  padding: 2.5rem;
  position: sticky;
  top: 120px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  text-align: center;
}

.director-title-main {
  font-size: 1.75rem;
  font-weight: 700;
  color: #EA782C;
  margin-bottom: 2rem;
  text-align: center;
}

.director-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid #1C3366;
  box-shadow: 0 5px 20px rgba(28, 51, 102, 0.3);
}

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

.director-mother-card p {
  color: #1F2937;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.director-name {
  font-weight: 700;
  color: #1C3366;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  margin-top: 1.5rem;
}

.director-title {
  color: #3766CC;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===================
   PARTNERS SECTION
   =================== */
.partners-section {
  background: white;
  padding: 5rem 2rem;
}

.partners-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #1F2937;
  margin-bottom: 3rem;
}

.partners-slider {
  overflow: hidden;
  position: relative;
}

.partners-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 auto;
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================
   FOOTER
   =================== */
footer {
  background: linear-gradient(135deg, #1C3366 0%, #0F172A 100%);
  color: white;
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: url('/static/images/footer.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  color: rgba(255,255,255,0.8);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* ===================
   RESPONSIVE
   =================== */
@media (max-width: 1024px) {
  .event-card {
    min-width: 100%;
  }
  
  .testimonial-wrapper {
    grid-template-columns: 1fr;
  }
  
  .director-mother-card {
    position: relative;
    top: 0;
  }
  
  .events-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }
  
  .hero-navbar {
    padding: 0.75rem 1rem;
  }
  
  .hero-nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  
  .menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 6rem 0 2rem;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
  }
  
  .menu-items.active {
    right: 0;
  }
  
  .menu-items a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    font-size: 1.1rem;
  }
  
  .menu-items a::after {
    display: none;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dropdown > a::before {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a::before {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background: rgba(234, 120, 44, 0.05);
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
    max-height: 500px;
  }
  
  .dropdown-content a {
    padding: 0.875rem 2rem 0.875rem 3rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
  
  .dropdown-content a:hover {
    background: rgba(234, 120, 44, 0.1);
    padding-left: 3.5rem;
  }
  
  .menu-items.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
  
  .news-card {
    min-width: 320px;
    max-width: 320px;
  }
  
  .news-image {
    height: 200px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-container {
    padding: 8rem 1rem 2rem;
  }
  
  .hero-section {
    border-radius: 15px;
  }
  
  .hero-annonce {
    max-width: 100%;
  }
  
  .about {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-image {
    flex: 0 0 250px;
  }
  
  .testimonials-carousel {
    max-height: none;
  }
  
  .breadcrumb {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .news-controls {
    width: 100%;
    justify-content: space-between;
  }
  
  /* Events page mobile */
  .events-list-wrapper {
    padding: 2rem 1.5rem;
  }
  
  .events-tabs {
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .info-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .event-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .speakers-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-section {
    border-radius: 0 0 20px 20px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .news-card {
    min-width: 280px;
    max-width: 280px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .events-title-section,
  .news-title-section {
    font-size: 2rem;
  }
  
  .testimonials-mother-card,
  .director-mother-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .events-list-wrapper {
    padding: 1.5rem 1rem;
  }
  
  .tab-btn {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  .tab-btn i {
    display: none;
  }
  
  .event-info-card {
    padding: 1.5rem;
  }
  
  .document-item {
    padding: 1rem;
  }
  
  .event-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
  }
  
  .hero-navbar {
    padding: 0.75rem 1rem;
  }
  
  .hero-nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
  }
  
  .menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 6rem 0 2rem;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
  }
  
  .menu-items.active {
    right: 0;
  }
  
  .menu-items a {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    font-size: 1.1rem;
  }
  
  .menu-items a::after {
    display: none;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dropdown > a::before {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
  }
  
  .dropdown.active > a::before {
    transform: rotate(180deg);
  }
  
  .dropdown-content {
    position: static;
    display: none;
    background: rgba(234, 120, 44, 0.05);
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
    max-height: 500px;
  }
  
  .dropdown-content a {
    padding: 0.875rem 2rem 0.875rem 3rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
  
  .dropdown-content a:hover {
    background: rgba(234, 120, 44, 0.1);
    padding-left: 3.5rem;
  }
  
  .menu-items.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
  
  .news-card {
    min-width: 320px;
    max-width: 320px;
  }
  
  .news-image {
    height: 200px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-container {
    padding: 8rem 1rem 2rem;
  }
  
  .hero-section {
    border-radius: 15px;
  }
  
  .hero-annonce {
    max-width: 100%;
  }
  
  .about {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-image {
    flex: 0 0 250px;
  }
  
  .testimonials-carousel {
    max-height: none;
  }
  
  .breadcrumb {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .news-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .hero-section {
    border-radius: 0 0 20px 20px;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .news-card {
    min-width: 280px;
    max-width: 280px;
  }
  
  .news-image {
    height: 180px;
  }
  
  .events-title-section,
  .news-title-section {
    font-size: 2rem;
  }
  
  .testimonials-mother-card,
  .director-mother-card {
    padding: 1.5rem;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}

::selection {
  background: #3766CC;
  color: white;
}

::-moz-selection {
  background: #3766CC;
  color: white;
}

a:focus, button:focus {
  outline: 2px solid #3766CC;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Page news_list - Grille fixe */
.news-container .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  padding: 0.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: visible;
  overflow-y: visible;
}

.news-container .news-card {
  min-width: auto;
  max-width: none;
  flex-shrink: 1;
}
/* Carousel automatique pour la page d'accueil */
.home-news .news-carousel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.home-news .news-carousel {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s ease;
}

.home-news .news-card {
  min-width: calc(33.333% - 1.35rem);
  max-width: calc(33.333% - 1.35rem);
  flex-shrink: 0;
}

/* Indicateurs pour actualités (page d'accueil) */
.carousel-indicators {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.carousel-indicators .indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6B7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-indicators .indicator:hover {
  background: #9CA3AF;
  transform: scale(1.15);
}

.carousel-indicators .indicator.active {
  background: #6B7280;
  transform: scale(1);
}

/* Indicateurs pour événements (style blanc/bleu clair) */
.events-container .carousel-indicators .indicator {
  background: rgba(255, 255, 255, 0.5);
}

.events-container .carousel-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.events-container .carousel-indicators .indicator.active {
  background: #BAD0FF;
}

/* Responsive carousel page d'accueil */
@media (max-width: 1024px) {
  .home-news .news-card {
    min-width: calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .home-news .news-card {
    min-width: 100%;
    max-width: 100%;
  }
}