/* ======================================= */
/* RESET + STYLES GLOBAUX                  */
/* ======================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #333;
}

a {
  color: #00AEEF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bg-light-gray {
    background-color: #f9f9f9;
}

/* ======================================= */
/* MODAL SCROLL FIX */
/* ======================================= */

body.modal-open {
  overflow: hidden;
}

.modal {
  overflow-y: auto;
  overflow-x: hidden;
}

.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Styles pour les modals */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ======================================= */
/* HEADER & NAVIGATION (VOTRE DESIGN PRÃ‰FÃ‰RÃ‰) */
/* ======================================= */

/* ======================================= */
/* DROPDOWN STYLES - VERSION SIMPLIFIÃ‰E ET FONCTIONNELLE */
/* ======================================= */

/* Structure de base du dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Bouton du dropdown */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------- */
/* Dropdown navigation styles                                                  */
/* These rules unify the look and feel of all dropdown menus in the header.   */
/* They aim to reproduce the modern, polished design shown in the provided    */
/* mockâ€‘up: a pillâ€‘shaped button with a gradient background for the toggles   */
/* and a soft, cardâ€‘like drop down list with icons and subtle hover states.   */
/* --------------------------------------------------------------------------- */

/* Base positioning for each dropdown wrapper */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Toggle button styling for all dropdowns */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #003B5C;
  font-weight: 700;
  font-size: 15px;
  border-radius: 25px;
  border: 1px solid #e0e0e0;
  padding: 12px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: fit-content;
}

/* Hover state for toggle buttons */
.dropdown:hover > .dropdown-toggle {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
  transform: translateY(-1px);
}

/* Active state for toggle buttons (when on the page) */
.dropdown.active > .dropdown-toggle {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

/* Icons become white on hover and active states */
.dropdown:hover > .dropdown-toggle i,
.dropdown.active > .dropdown-toggle i {
  color: #fff;
}

/* Ensure all icons inside the toggle button match text color */
.dropdown-toggle i {
  color: #003B5C;
}

/* Styling specifically for the chevron icon that sits at the end of a toggle */
.dropdown-toggle .fa-chevron-right {
  font-size: 12px;
  transition: transform 0.3s ease;
}

/* Rotate the chevron when the dropdown is hovered to indicate expansion */
.dropdown:hover > .dropdown-toggle .fa-chevron-right {
  transform: rotate(90deg);
}

/* Dropdown menu container */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  /* Center the dropdown relative to its toggle */
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #fff;
  /* Remove the border for a cleaner card look */
  border: none;
  /* Use a slightly larger radius to match the mockâ€‘up */
  border-radius: 20px;
  /* Soften the shadow for a lighter floating effect */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  min-width: 280px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Zone invisible pour combler l'espace entre le bouton et le menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 12px;
  background: transparent;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Remove default list styling when dropdown menus were built with <ul>/<li>.  */
/* When using a simple <div> with anchors inside (new structure), these rules  */
/* are no longer needed. Spacing is now handled directly on the anchors.       */

/* Add vertical spacing between anchors in a dropdown */
.dropdown-menu a:not(:last-child) {
  margin-bottom: 2px;
}

/* Link styling inside dropdowns */
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #003B5C;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin: 0 8px;
  position: relative;
  white-space: nowrap;
}

/* Style for icons inside dropdown links */
.dropdown-menu a i {
  font-size: 16px;
  color: #003B5C;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Highlight the first anchor in each dropdown */
.dropdown-menu a:first-child {
  background: transparent;
  border-radius: 8px;
  color: #003B5C;
}

/* Ensure first child also gets hover effect */
.dropdown-menu a:first-child:hover {
  background: #e9f3ff;
  color: #00AEEF;
  transform: translateX(4px);
}

/* Hover effect for items in the dropdown */
.dropdown-menu a:hover {
  background: #e9f3ff;
  color: #00AEEF;
  transform: translateX(4px);
}

/* Active state for items in the dropdown (when on the current page) */
.dropdown-menu a.active {
  background: #00AEEF;
  color: #fff;
  transform: translateX(4px);
}

/* Active state for icons inside dropdown links */
.dropdown-menu a.active i {
  color: #fff;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  /* DÃ©sactiver le hover sur mobile */
  .dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
  }
  
  .dropdown { 
    width: 100%; 
    margin-bottom: 10px;
  }
  
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .dropdown-toggle:hover {
    background: #f8f9fa;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 5px;
    transform: none;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
  }
  
  /* Supprimer la zone invisible sur mobile */
  .dropdown-menu::before {
    display: none;
  }
  
  /* Ã‰tat fermÃ© par dÃ©faut sur mobile */
  .dropdown .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    padding: 0;
  }
  
  /* Ã‰tat ouvert sur mobile (gÃ©rÃ© par JavaScript) */
  .dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 320px;
    padding: 8px 0;
  }
  
  .dropdown.active .dropdown-toggle {
    background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
    color: #fff;
    border-color: transparent;
  }
  
  .dropdown.active .dropdown-toggle i {
    color: #fff;
  }
  
  /* Rotation du chevron sur mobile */
  .dropdown .fa-chevron-down {
    transition: transform 0.3s ease;
  }
  
  .dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
  }
  
  /* Style des Ã©lÃ©ments du menu sur mobile */
  .dropdown-menu a {
    margin: 0 10px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
  }
  
  .dropdown-menu a:hover {
    background: #e9f3ff;
    transform: none;
  }
  
  /* Bouton Connect mobile */
  .mobile-connect-item {
    display: block;
    margin-top: 20px;
  }
  
  .mobile-connect-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    padding: 15px 20px;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 174, 239, 0.3);
    transition: all 0.3s ease;
  }
  
  .mobile-connect-btn:hover {
    background: linear-gradient(135deg, #008fbf 0%, #007a9e 100%);
    box-shadow: 0 4px 8px rgba(0, 174, 239, 0.4);
    transform: translateY(-1px);
  }
  
  .mobile-connect-btn i {
    color: #fff;
  }
  
  /* Correction du scroll et des clics sur mobile */
  .dropdown-menu {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }
  
  .dropdown-menu a {
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 174, 239, 0.1);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* EmpÃªcher le scroll de la page derriÃ¨re */
  .dropdown.active {
    position: relative;
    z-index: 1001;
  }
  
  /* AmÃ©liorer l'accessibilitÃ© tactile */
  .dropdown-toggle {
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 174, 239, 0.1);
  }
}

/* AmÃ©lioration de l'accessibilitÃ© */
.dropdown-toggle:focus {
  outline: none;
}

/* Supprimer toute bordure de focus */
.dropdown-toggle:focus,
.dropdown-toggle:active,
.dropdown-toggle:focus-visible {
  outline: none;
  border: 1px solid #e0e0e0;
}

/* Supprimer aussi les bordures sur les Ã©tats hover et active */
.dropdown:hover > .dropdown-toggle:focus,
.dropdown:hover > .dropdown-toggle:active,
.dropdown:hover > .dropdown-toggle:focus-visible,
.dropdown.active > .dropdown-toggle:focus,
.dropdown.active > .dropdown-toggle:active,
.dropdown.active > .dropdown-toggle:focus-visible {
  outline: none;
  border: none;
}

/* Animation plus fluide pour le chevron */
.fa-chevron-right {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header {
  background-color: #ffffff;
  padding: 10px 30px;
  border-bottom: 2px solid #eaeaea;
  display: flex;
  position: relative;
  justify-content: center; 
  align-items: center;
  position: relative;

  /* --- CORRECTION POUR LE HEADER QUI RESTE VISIBLE --- */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  /* --- FIN DE LA CORRECTION --- */
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header .logo {
  display: flex;
  flex-direction: column; 
  align-items: center;  
}

header .logo img {
  height: 60px;
  width: auto;
}

header h1 {
  font-size: 1.4em;
  color: #003B5C;
  margin-top: 5px;
}

header h2 {
  font-size: 1.4em;
  color: #003B5C;
  margin-top: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
  height: 40px;
}

nav li {
  margin: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  position: relative;
}

/* Override the flex styles for dropdown list items so their menus can expand vertically */
nav li.dropdown {
  /* Use a block flow direction instead of a horizontal flex layout */
  display: block;
  height: auto;
  position: relative;
}

nav li:not(.dropdown) {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 45px;
  line-height: 1;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  color: #003B5C;
  min-width: fit-content;
  white-space: nowrap;
  box-sizing: border-box;
}



nav li a:hover {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
  height: 40px;
  line-height: 1;
}

nav li a.active {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
  height: 40px;
  line-height: 1;
}

.header-actions {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn {
  background-color: #003B5C;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.login-btn:hover {
  background-color: #00AEEF;
  color: #fff;
  text-decoration: none;
}

.btn-connect {
  background-color: #00AEEF;
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-connect:hover {
  background-color: #008fbf;
  color: #fff;
  text-decoration: none;
}

/* Cacher le bouton Connect mobile sur desktop */
.mobile-connect {
    display: none;
}

/* S'assurer que le bouton Connect reste cachÃ© dans le menu sur desktop */
@media (min-width: 769px) {
    .mobile-connect {
        display: none !important;
    }
    
    nav .mobile-connect {
        display: none !important;
    }
    
    .mobile-connect-item {
        display: none !important;
    }
    
    .header-actions .btn-connect {
        display: flex;
    }
}

/* Cacher le bouton Connect sur la page login */
.login-page .mobile-connect,
.login-page .btn-connect {
    display: none !important;
}

/* Garder le bouton Sign In visible sur la page login */
.login-page #loginBtn {
    display: block !important;
}

/* HERO SECTION */
/* Styles du hero - Exclus pour la page de test */
.hero:not(.test-page) {
  position: relative; 
  height: 400px;
  overflow: hidden;
}

.hero:not(.test-page)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 59, 92, 0.4); 
    z-index: 1; 
}

.hero:not(.test-page) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero:not(.test-page):hover img {
    transform: scale(1.05);
}

.hero-text:not(.test-page) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 2;
  width: 90%; 
}

.hero-text:not(.test-page) h2 {
  font-size: 3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text:not(.test-page) p {
    font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Styles pour les boutons CTA dans la section hero */
.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.hero-cta .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hero-cta .btn-primary:hover {
    background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 174, 239, 0.5);
    text-decoration: none;
    color: #fff;
}

.hero-cta .btn-primary:hover::before {
    left: 100%;
}

.hero-cta .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}



.hero-cta .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 59, 92, 0.3);
}



/* SECTIONS DE CONTENU PRINCIPALES */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2em;
    color: #003B5C;
}

.feature-section {
    padding: 60px 20px;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-content.reverse {
    flex-direction: row-reverse;
}

.feature-section .text-container {
    flex: 1;
}

.feature-section .image-container {
    flex: 1;
}

.feature-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-section h2, .feature-section h3 {
    color: #003B5C;
    margin-bottom: 20px;
}
.feature-section h2 { font-size: 2.2em; }
.feature-section h3 { font-size: 1.8em; }


.feature-section p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #555;
}

.feature-section ul {
    list-style-position: inside;
    padding-left: 10px;
    margin-bottom: 15px;
}

.feature-section li {
    margin-bottom: 8px;
    color: #555;
}

.feature-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-item i {
    font-size: 2em;
    color: #00AEEF;
    margin-top: 5px;
}

.feature-item h3 {
    color: #003B5C;
    margin-bottom: 5px;
    font-size: 1.2em;
}

/* SECTION "COURSES" */
.courses-section {
    padding: 60px 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background: #fff;
  border-radius: 8px; 
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease; 
  display: flex;
  flex-direction: column;
}

.course-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card-content {
    padding: 12px 20px 20px;
    text-align: center;
    flex-grow: 1;
}

.course-card-content h3 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #003B5C;
}

.course-card-content p {
  font-size: 0.95em;
  padding-bottom: 10px;
  line-height: 1.4;
}

.course-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
  flex-wrap: wrap;
}



.course-card .btn {
    /* Les styles de base sont dans buttons.css */
    align-self: center;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
    display: block;
}

/* SECTIONS SPÃ‰CIFIQUES AUX PAGES */
.key-features-section {
    padding: 60px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 20px;
}

.feature-box i {
    font-size: 2.5em;
    color: #00AEEF;
    margin-bottom: 15px;
}

.feature-box h3 {
    color: #003B5C;
    margin-bottom: 10px;
}

.feature-box p {
    color: #555;
    font-size: 0.95em;
}

.cta-section {
    background-color: #ffffff;
    color: #333333;
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #fff;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 25px auto;
    opacity: 0.9;
}

.cta-section .btn {
    background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    transition: all 0.3s ease;
}

.cta-section .btn:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
  text-decoration: none;
}

/* Conteneur CTA avec bords arrondis pour toutes les pages */
.cta-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, #003B5C 0%, #004d7a 100%);
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 59, 92, 0.3);
}

.cta-container h2 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 2.2em;
  font-weight: 600;
}

.cta-container p {
  color: #fff;
  margin-bottom: 25px;
  font-size: 1.1em;
  opacity: 0.9;
  line-height: 1.6;
}

/* .cta-section {
  background: transparent;
  padding: 60px 20px;
} */

/* Package Details Section */
.package-details-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.package-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.package-card i {
  font-size: 2.5em;
  color: #00AEEF;
  margin-bottom: 20px;
  display: block;
}

.package-card h3 {
  color: #003B5C;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: 600;
}

.package-card p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Standard Program Section */
.standard-program-section {
  padding: 60px 20px;
  background: #fff;
}

.program-timeline {
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 30px;
  align-items: flex-start;
}

.timeline-day {
  background: linear-gradient(135deg, #003B5C 0%, #004d7a 100%);
  color: #fff;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1em;
  min-width: 120px;
  text-align: center;
  margin-right: 25px;
  box-shadow: 0 4px 15px rgba(0, 59, 92, 0.3);
}

.timeline-content {
  flex: 1;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 15px;
  border-left: 4px solid #00AEEF;
}

.timeline-content h4 {
  color: #003B5C;
  margin: 0 0 10px 0;
  font-size: 1.2em;
  font-weight: 600;
}

.timeline-content p {
  color: #555;
  margin: 0 0 8px 0;
  line-height: 1.5;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.program-note {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  background: #e9ecef;
  border-radius: 10px;
}

.program-note p {
  margin: 0;
  color: #6c757d;
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .package-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .package-card {
    padding: 25px;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-day {
    margin-right: 0;
    margin-bottom: 15px;
    align-self: flex-start;
  }
  
  .timeline-content {
    border-left: none;
    border-top: 4px solid #00AEEF;
  }
}

.gallery-section {
    padding: 60px 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.downloads-section {
    padding: 60px 20px;
    text-align: center;
}

.downloads-section .section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px 30px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 59, 92, 0.08);
    cursor: pointer;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 174, 239, 0.1), transparent);
    transition: left 0.5s;
}

.download-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 59, 92, 0.15);
    border-color: #00AEEF;
    text-decoration: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    transform: translateY(-3px) scale(1.02);
}

.download-card:hover::before {
    left: 100%;
}

.download-card i {
    font-size: 2.2em;
    color: #00AEEF;
    transition: all 0.3s ease;
}

.download-card:hover i {
    transform: scale(1.1);
    color: #003B5C;
}

.download-card span {
    font-weight: 600;
    color: #003B5C;
    font-size: 1.1em;
    transition: color 0.3s ease;
    position: relative;
}

.download-card span::after {
    content: ' ðŸ“„';
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #00AEEF;
    font-weight: bold;
}

.download-card:hover span {
    color: #00AEEF;
}

.download-card:hover span::after {
    opacity: 1;
}

.contact-section {
    padding: 60px 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #003B5C;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.contact-info p {
    color: #555;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.5em;
    color: #00AEEF;
    margin-top: 5px;
}

.info-item h4 {
    color: #003B5C;
    margin-bottom: 5px;
}

.info-item p, .info-item a {
    color: #555;
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-form-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form-container h3 {
    color: #003B5C;
    font-size: 1.8em;
    margin-bottom: 20px;
}


/* Styles pour le formulaire de contact uniquement */
.contact-form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-container .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-container .form-group.full-width {
    grid-column: 1 / -1;
}

.contact-form-container .form-group label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.contact-form-container .form-group input,
.contact-form-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact-form-container .form-group input:focus,
.contact-form-container .form-group textarea:focus {
    outline: none;
    border-color: #00AEEF;
}

.btn.full-width {
    /* Les styles de base sont dans buttons.css */
    grid-column: 1 / -1;
    width: 100%;
    padding: 15px;
}

/* PARTNERS & FOOTER */
.partners {
    padding: 60px 20px;
}

.partners h2 {
    text-align: center;
    font-size: 2.2em;
    color: #003B5C;
    margin-bottom: 40px;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px; 
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-logos a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s;
    opacity: 0.8;
}

.partner-logos a:hover {
    transform: scale(1.1);
    opacity: 1;
}

.partner-logos img {
    max-width: 150px;
    height: auto;
}

.btn {
  display: inline-block;
  background-color: #00AEEF;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  transition: background-color 0.3s;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
}

.btn:hover {
  background-color: #008fbf;
  color: #fff;
  text-decoration: none;
}

footer {
  background-color: #003B5C;
  color: #fff;
  padding: 30px 20px 15px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 20px;
  align-items: start;
  width: 100%;
  justify-items: stretch;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: #00AEEF;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
}

.footer-section {
  flex: 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.footer-section:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 120px;
  margin-top: 0;
  width: 100%;
  flex: 1;
  min-width: 0;
}



.footer-section ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-section:nth-child(1) ul {
  text-align: left;
}

.footer-section ul li {
  margin-bottom: 8px;
  font-size: 0.85em;
  opacity: 0.9;
}

.footer-section ul li i {
  margin-right: 8px;
  color: #00AEEF;
  width: 16px;
}

.footer-section a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #00AEEF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 12px;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  background-color: #00AEEF;
  transform: scale(1.1);
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.legal-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9em;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.copyright {
  font-size: 0.85em;
  opacity: 0.7;
  margin: 0;
}

/* INTERACTIVITÃ‰ JAVASCRIPT */
.fade-in-section {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #00AEEF;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top-btn:hover {
    background-color: #008fbf;
}

#hamburger-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #003B5C;
    transition: all 0.3s ease-in-out;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions {
        display: flex;
        align-items: center;
    }

    /* Cacher spÃ©cifiquement le bouton Connect dans le header sur mobile */
    .header-actions .btn-secondary {
        display: none !important;
    }

    #hamburger-btn {
        display: block;
        /* AmÃ©lioration du touch target */
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }

    /* Styles pour le bouton Connect dans le menu mobile */
    .mobile-connect {
        margin-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 20px;
        display: block;
    }

    .mobile-connect a {
        background-color: #00AEEF;
        color: white !important;
        text-align: center;
        font-weight: bold;
        display: block;
        padding: 15px 20px; /* Augmentation du padding pour un meilleur touch target */
        border-radius: 6px;
        transition: background-color 0.3s ease;
        min-height: 44px; /* Touch target minimum */
    }

    .mobile-connect a:hover {
        background-color: #0098cc;
        transform: none;
    }

    nav {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding: 20px;
    }

    nav.nav-active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        margin-top: 80px;
        gap: 5px;
        padding: 0 20px;
    }

    nav li {
        margin: 0;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 15px 20px; /* Augmentation du padding */
        font-size: 16px;
        border-radius: 6px;
        transition: all 0.3s ease;
        color: white;
        text-align: left;
        min-height: 44px; /* Touch target minimum */
        display: flex;
        align-items: center;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateX(3px);
    }

    /* AmÃ©lioration des boutons sur mobile */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
    }

    /* AmÃ©lioration des cartes de cours */
    .course-card {
        margin-bottom: 20px;
    }

    .course-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }
    

    
    .course-card .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
        display: block !important; /* S'assurer que les boutons sont visibles */
        margin: 15px auto;
        width: fit-content;
    }

    /* AmÃ©lioration de l'accessibilitÃ© mobile */
    nav a:focus,
    .btn-primary:focus,
    .btn-secondary:focus,
    .carousel-arrow:focus {
        outline: 2px solid #00AEEF;
        outline-offset: 2px;
    }

    /* AmÃ©lioration de la lisibilitÃ© */
    .hero-text h1 {
        font-size: 1.8em;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-text p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Espacement amÃ©liorÃ© pour mobile */
    .feature-section,
    .courses-section,
    .team-section,
    .faq-preview-section {
        padding: 40px 20px;
    }

    .section-title h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Optimisation de la grille des cours sur mobile */
    .course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .courses-section {
        padding: 40px 10px;
    }




    
    #hamburger-btn.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    #hamburger-btn.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #hamburger-btn.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
        .hero-text h2 { font-size: 2em; }
    
    /* Styles pour les boutons du hero sur mobile */
    .hero-cta {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        padding: 16px 24px;
        font-size: 1em;
        text-align: center;
        justify-content: center;
    }
    
    .feature-content, .feature-content.reverse {
        flex-direction: column;
    }

    .feature-section {
        padding: 40px 20px;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Harry Potter Program - Compact Program Details */
.key-features-section .features-grid {
  gap: 20px;
  padding: 10px 0 0 0;
  grid-template-columns: repeat(5, 1fr);
}
.key-features-section .feature-box {
  padding: 18px 10px 14px 10px;
}
.key-features-section .feature-box i {
  font-size: 2.2em;
  margin-bottom: 8px;
}
.key-features-section .feature-box h3 {
  font-size: 1.1em;
  margin-bottom: 4px;
}
.key-features-section .feature-box p {
  font-size: 0.98em;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .key-features-section .features-grid {
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
  }
  .key-features-section .feature-box {
    padding: 12px 4px 10px 4px;
  }
  .key-features-section .feature-box i {
    font-size: 1.5em;
  }
  .key-features-section .feature-box h3 {
    font-size: 1em;
  }
  .key-features-section .feature-box p {
    font-size: 0.93em;
  }
}

/* Timetable Styles */
.timetable-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.timetable {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Remove special centering for last day */

.timetable-day {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timetable-day:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.day-header {
  background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
  color: white;
  padding: 20px;
  text-align: center;
}

.day-header h3 {
  margin: 0;
  font-size: 1.5em;
  font-weight: bold;
}

.day-title {
  display: block;
  font-size: 0.9em;
  opacity: 0.9;
  margin-top: 5px;
}

.day-content {
  padding: 20px;
}

.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity:last-child {
  border-bottom: none;
}

.activity i {
  color: #00aaff;
  font-size: 1.2em;
  width: 20px;
  text-align: center;
}

.activity span {
  color: #333;
  font-size: 0.95em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .timetable {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .timetable-day {
    margin-bottom: 15px;
  }
  
  /* Remove centering on mobile for better layout */
  .timetable-day:last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  
  .day-header {
    padding: 15px;
  }
  
  .day-header h3 {
    font-size: 1.3em;
  }
  
  .day-content {
    padding: 15px;
  }
  
  .activity {
    padding: 10px 0;
  }
  
  .activity span {
    font-size: 0.9em;
  }
}

/* Team Section Styles */
.team-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-member {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.team-member img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 70%;
  margin-bottom: 20px;
  border: 4px solid #00aaff;
  transition: transform 0.3s ease;
}

.team-member:hover img {
  transform: scale(1.05);
}

.team-member h3 {
  color: #333;
  font-size: 1.4em;
  margin-bottom: 8px;
  font-weight: bold;
}

.team-member .role {
  color: #00aaff;
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-member p:not(.role) {
  color: #666;
  font-size: 0.95em;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .team-member {
    padding: 20px 15px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
  
  .team-member h3 {
    font-size: 1.2em;
  }
  
  .team-member .role {
    font-size: 1em;
  }
}

/* FAQ Preview Section Styles */
.faq-preview-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.faq-preview-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.faq-preview-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-preview-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.faq-question {
  padding: 25px 30px 15px 30px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-question i {
  color: #00AEEF;
  font-size: 1.2em;
}

.faq-question h3 {
  color: #003B5C;
  font-size: 1.1em;
  margin: 0;
  font-weight: 600;
}

.faq-preview-item p {
  padding: 0 30px 25px 30px;
  color: #555;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 0;
}

.faq-preview-cta {
  text-align: center;
}

.faq-preview-cta .btn-primary {
  padding: 12px 30px;
  font-size: 1.1em;
  font-weight: 600;
}

@media (max-width: 768px) {
  .faq-preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .faq-question {
    padding: 20px 20px 15px 20px;
  }
  
  .faq-preview-item p {
    padding: 0 20px 20px 20px;
  }
  
  .faq-question h3 {
    font-size: 1em;
  }
  
  .faq-preview-item p {
    font-size: 0.9em;
  }
}

/* Host Family - Centered Hosting Opportunities */
.key-features-section .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.key-features-section .feature-box {
  text-align: center;
  background: white;
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.key-features-section .feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.key-features-section .feature-box i {
  color: #00aaff;
  font-size: 2.5em;
  margin-bottom: 20px;
}

.key-features-section .feature-box h3 {
  color: #333;
  font-size: 1.3em;
  margin-bottom: 15px;
  font-weight: bold;
}

.key-features-section .feature-box p {
  color: #666;
  font-size: 1em;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .key-features-section .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  
  .key-features-section .feature-box {
    padding: 25px 20px;
  }
  
  .key-features-section .feature-box i {
    font-size: 2em;
    margin-bottom: 15px;
  }
  
  .key-features-section .feature-box h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
  }
  
  .key-features-section .feature-box p {
    font-size: 0.95em;
  }
}

/* ======================================= */
/* GOOGLE TRANSLATE WIDGET STYLING */
/* ======================================= */

#google_translate_element {
  margin-right: 15px;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force l'affichage du sÃ©lecteur de langue sur Safari */
#language-selector {
  display: none;
}

#language-selector.show {
  display: inline-block !important;
}

/* Style amÃ©liorÃ© pour le fallback */
#language-selector:hover {
  border-color: #003B5C !important;
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.25) !important;
  transform: translateY(-1px);
}

#language-selector:focus {
  outline: none !important;
  border-color: #003B5C !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2) !important;
  transform: translateY(-1px);
}

#google_translate_element .goog-te-gadget {
  font-family: 'Helvetica Neue', sans-serif !important;
  font-size: 14px !important;
}

#google_translate_element .goog-te-gadget .goog-te-combo {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border: 2px solid #00AEEF;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: #003B5C;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 130px;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15);
}

#google_translate_element .goog-te-gadget .goog-te-combo:hover {
  border-color: #003B5C;
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.25);
  transform: translateY(-1px);
}

#google_translate_element .goog-te-gadget .goog-te-combo:focus {
  outline: none;
  border-color: #003B5C;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
  transform: translateY(-1px);
}

/* Hide Google Translate attribution */
.goog-te-banner-frame {
  display: none !important;
}

.goog-te-gadget {
  color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
  color: #003B5C !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .language-selector-container {
    display: none !important;
  }
  
  #mobile-language-selector {
    display: block !important;
    text-align: center !important;
    margin: 10px 0 !important;
    padding: 0 20px !important;
    position: relative !important;
  }
  
  #google_translate_element {
    display: none !important;
  }
  
  #language-selector {
    display: none !important;
  }
}

/* ======================================= */
/* SÃ‰LECTEUR DE LANGUE PERSONNALISÃ‰ */
/* ======================================= */

/* Styles pour le sÃ©lecteur de langue personnalisÃ© - TOUJOURS APPLIQUÃ‰ */
#desktop-language-selector,
#mobile-language-selector-select {
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  border: 2px solid #00AEEF !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #003B5C !important;
  cursor: pointer !important;
  min-width: 130px !important;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15) !important;
  transition: all 0.3s ease !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  padding-right: 35px !important;
  z-index: 1000 !important;
}

/* Container du sÃ©lecteur de langue */
#google_translate_element {
  z-index: 1000 !important;
  position: absolute !important;
  left: 30px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-block !important;
}

/* S'assurer que notre sÃ©lecteur personnalisÃ© est toujours visible */
#desktop-language-selector {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1001 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* AmÃ©liorer l'interaction tactile sur mobile */
#desktop-language-selector,
#mobile-language-selector-select {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
}

/* Styles spÃ©cifiques pour mobile */
@media (max-width: 768px) {
  #mobile-language-selector-select {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    min-height: 44px !important; /* Taille minimale pour les doigts */
    padding: 12px 15px !important;
  }
}

/* S'assurer que le container est visible */
.language-selector-container {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 30px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1001 !important;
}

/* FORCER L'AFFICHAGE DU SÃ‰LECTEUR DESKTOP SUR PC */
@media (min-width: 769px) {
  #google_translate_element {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #desktop-language-selector {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* FORCER L'AFFICHAGE DES SÃ‰LECTEURS SUR TOUTES LES PAGES */
#google_translate_element {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 30px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 1001 !important;
}

/* CACHER GOOGLE TRANSLATE SUR MOBILE - SEULEMENT LE SÃ‰LECTEUR MOBILE */
@media (max-width: 768px) {
  #google_translate_element {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -9999 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

#desktop-language-selector {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1001 !important;
  pointer-events: auto !important;
}

/* OVERRIDE TOUTES LES RÃˆGLES QUI CACHENT LES SÃ‰LECTEURS */
#google_translate_element[style*="display: none"],
#desktop-language-selector[style*="display: none"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#mobile-language-selector-select {
  font-size: 12px !important;
  padding: 8px 12px !important;
  padding-right: 30px !important;
  min-width: 120px !important;
  background-size: 14px !important;
}

/* POSITIONNEMENT MOBILE CORRIGÃ‰ - SÃ©lecteur discret sous le titre */
@media (max-width: 768px) {
  .language-selector-container {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 10px auto !important;
    text-align: center !important;
    width: fit-content !important;
  }
  
  #mobile-language-selector-select {
    font-size: 14px !important;
    padding: 10px 15px !important;
    padding-right: 35px !important;
    min-width: 140px !important;
    max-width: 200px !important;
    background-size: 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    /* PROTECTION - S'assurer que notre sÃ©lecteur n'est pas confondu avec les popups */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
  }
  
  /* PROTECTION SPÃ‰CIFIQUE - EmpÃªcher que notre sÃ©lecteur soit cachÃ© par les rÃ¨gles Google Translate */
  #mobile-language-selector-select:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* SÃ‰LECTEUR MOBILE DISCRET - Pas d'overlay, juste un petit sÃ©lecteur */
  #mobile-language-selector {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 10px auto !important;
    text-align: center !important;
    width: fit-content !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    padding: 0 20px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  
  /* FORCER L'AFFICHAGE DU SÃ‰LECTEUR MOBILE SUR MOBILE */
  #mobile-language-selector[style*="display: none"] {
    display: block !important;
  }
  
  /* FORCER L'AFFICHAGE DU SÃ‰LECTEUR MOBILE SUR TOUTES LES PAGES */
  @media (max-width: 768px) {
    #mobile-language-selector {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }
  
  /* EMPÃŠCHER LES OVERLAYS - Cacher tous les Ã©lÃ©ments qui crÃ©ent des overlays */
  div[style*="position: fixed"][style*="background"],
  div[style*="position: fixed"][style*="z-index: 2147483647"],
  div[style*="position: fixed"][style*="z-index: 999999"],
  div[style*="position: fixed"][style*="z-index: 99999"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    z-index: -9999 !important;
    height: 0 !important;
    overflow: hidden !important;
    width: 0 !important;
    top: -9999px !important;
    pointer-events: none !important;
  }
}

/* Effet hover */
#desktop-language-selector:hover,
#mobile-language-selector-select:hover {
  border-color: #008fbf !important;
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Effet focus */
#desktop-language-selector:focus,
#mobile-language-selector-select:focus {
  border-color: #008fbf !important;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2) !important;
}

/* Styles pour les options */
#desktop-language-selector option,
#mobile-language-selector-select option {
  background: #ffffff !important;
  color: #003B5C !important;
  padding: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* Forcer le style sur TOUS les Ã©tats - RÃˆGLES RENFORCÃ‰ES */
#desktop-language-selector,
#desktop-language-selector:not(:focus):not(:hover),
#desktop-language-selector:focus,
#desktop-language-selector:hover,
#mobile-language-selector-select,
#mobile-language-selector-select:not(:focus):not(:hover),
#mobile-language-selector-select:focus,
#mobile-language-selector-select:hover {
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  border: 2px solid #00AEEF !important;
  color: #003B5C !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  padding-right: 35px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15) !important;
  font-weight: 500 !important;
  z-index: 1000 !important;
}

/* RÃ¨gle spÃ©cifique pour s'assurer que le style ne change jamais */
select[id*="language-selector"] {
  background: linear-gradient(135deg, #ffffff, #f8f9fa) !important;
  border: 2px solid #00AEEF !important;
  color: #003B5C !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003B5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 16px !important;
  padding-right: 35px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15) !important;
  font-weight: 500 !important;
  z-index: 1000 !important;
}

/* Masquer les messages d'erreur Google Translate */
.goog-te-banner-frame,
.goog-te-banner-frame-skiptranslate,
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame,
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame,
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Masquer les messages d'avertissement Google Translate */
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame,
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Masquer spÃ©cifiquement le message "Formulario no aceptado" */
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame,
.goog-te-banner-frame-skiptranslate .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame .goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Masquer tous les Ã©lÃ©ments Google Translate qui pourraient afficher des messages */
[class*="goog-te-banner"],
[class*="goog-te-banner-frame"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Masquer spÃ©cifiquement les banniÃ¨res d'erreur */
div[style*="position: fixed"],
div[style*="z-index: 2147483647"],
div[style*="background-color: rgb(255, 255, 255)"],
div[style*="border: 1px solid rgb(204, 204, 204)"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  z-index: -9999 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ======================================= */
/* BREADCRUMBS STYLES                      */
/* ======================================= */

.breadcrumbs {
  background: #ffffff;
  padding: 15px 0;
  margin: 20px 0 8px 0;
  text-align: left;
  border: none;
  box-shadow: none;
  position: relative;
}

.breadcrumbs-container {
  /*
   * Conteneur de fil d'Ariane.
   * Utilise un modÃ¨le flexbox pour aligner horizontalement les Ã©lÃ©ments,
   * tout en conservant un habillage et une marge intÃ©rieure adaptÃ©e.
   */
  margin: 0;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0;
  font-size: 18px;
  color: #333;
}

.breadcrumbs a {
  color: #003B5C;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-weight: 500;
  border-radius: 6px;
  font-size: 15px;
}

.breadcrumbs a:hover {
  color: #002a3f;
  text-decoration: none;
  background: #e6f3ff;
  border-color: #b3d9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.15);
}

.breadcrumbs .separator {
  margin: 0 12px;
  color: #64748b;
  font-weight: 500;
  font-size: 18px;
}

.breadcrumbs .current-page {
  color: #333;
  font-weight: normal;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.breadcrumbs .breadcrumb-icon {
  font-size: 16px;
  margin-right: 5px;
  filter: none;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 12px 0;
    margin: 15px 0 5px 0;
  }
  
  .breadcrumbs-container {
    font-size: 16px;
    padding: 0 40px;
  }
  
  .breadcrumbs .separator {
    margin: 0 10px;
  }
}

/* ======================================= */
/* EAST BARNET INTEGRATION STYLES (CORRIGÃ‰) */
/* ======================================= */

.content-section {
  padding: 60px 0;
  background: white;
  text-align: center;
}

.content-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #003B5C;
  font-size: 2.5rem;
  font-weight: 700;
}

.content-section p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.feature-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #003B5C;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 59, 92, 0.15);
}

.feature-card i {
  font-size: 2.5rem;
  color: #003B5C;
  margin-bottom: 20px;
}

.feature-card h3 {
  color: #003B5C;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.feature-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* --- SECTION EMPLOI DU TEMPS AMÃ‰LIORÃ‰E --- */
.timetable-section {
  background: #f8fafc;
  padding: 60px 0;
  margin: 40px 0;
}

.timetable-section .container {
  max-width: 1200px; /* On redÃ©finit une largeur max pour les grands Ã©crans */
  margin: 0 auto;
  padding: 0 20px;
}

.timetable-section h2 {
  text-align: left; /* Titre alignÃ© avec le tableau */
  margin-bottom: 30px;
  color: #003B5C;
  font-size: 2.5rem;
  font-weight: 700;
}

/* Conteneur qui permettra le dÃ©filement horizontal sur mobile */
.timetable-container {
  overflow-x: auto; /* C'est la clÃ© ! Active le scroll si le contenu dÃ©passe */
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 59, 92, 0.1);
  -webkit-overflow-scrolling: touch; /* AmÃ©liore le scroll sur iOS */
}

/* Styles pour le tableau lui-mÃªme */
.timetable {
  /*
   * Ce tableau doit utiliser le modÃ¨le de rendu HTML natif (`display: table`) pour
   * que les enâ€‘tÃªtes et les cellules s'alignent correctement. Sans cette
   * propriÃ©tÃ©, un style dÃ©fini plus haut (`display: grid`) s'applique et
   * perturbe l'alignement.
   */
  display: table;
  width: 100%;
  border-collapse: collapse; /* Fusionne les bordures des cellules */
  background: white;
  /*
   * L'utilisation de `table-layout: fixed` avec des largeurs explicites peut
   * provoquer des dÃ©calages lorsque le contenu est traduit ou lorsque des
   * textes plus longs doivent s'afficher. En laissant le navigateur dÃ©terminer
   * automatiquement la largeur des colonnes (`table-layout: auto`), les titres
   * et les cellules restent alignÃ©s mÃªme si la longueur du contenu varie.
   */
  min-width: 900px; /* Force le tableau Ã  Ãªtre large pour dÃ©clencher le scroll sur les Ã©crans plus petits */
  table-layout: auto;
}

.timetable th, .timetable td {
  padding: 20px 15px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e2e8f0; /* Ajoute des bordures discrÃ¨tes */
  line-height: 1.6;
  word-wrap: break-word; /* Permet la coupure des mots longs */
}

/* En-tÃªte du tableau (jours de la semaine) */
.timetable thead th {
  background: #003B5C;
  color: white;
  font-weight: 600;
  font-size: 16px;
  position: sticky; /* En-tÃªte qui reste visible lors du scroll vertical */
  top: 0;
  z-index: 10;
  text-align: center; /* Centre les en-tÃªtes des jours */
}

/* Cellules d'en-tÃªte de ligne (Matin, AprÃ¨s-midi...) */
.timetable tbody th {
  background: #f8fafc;
  font-weight: 600;
  color: #003B5C;
  text-align: left; /* Aligne Ã  gauche les en-tÃªtes de lignes */
}

/* Largeurs spÃ©cifiques pour chaque colonne pour un alignement parfait */
.timetable th:nth-child(1), .timetable td:nth-child(1) {
  width: 15%; /* Colonne "Time" */
}

.timetable th:nth-child(2), .timetable td:nth-child(2),
.timetable th:nth-child(3), .timetable td:nth-child(3),
.timetable th:nth-child(4), .timetable td:nth-child(4),
.timetable th:nth-child(5), .timetable td:nth-child(5),
.timetable th:nth-child(6), .timetable td:nth-child(6),
.timetable th:nth-child(7), .timetable td:nth-child(7),
.timetable th:nth-child(8), .timetable td:nth-child(8) {
  width: 12.14%; /* Colonnes des jours (100% - 15%) / 7 = 12.14% */
}

/* AmÃ©lioration de la lisibilitÃ© au survol */
.timetable tbody tr:hover {
  background-color: #f1f5f9;
}

.timetable strong {
  color: #003B5C;
  font-weight: 600;
}

.timetable em {
  color: #64748b;
  font-style: italic;
}

.timetable ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.timetable li {
  margin-bottom: 4px;
}

/* Styles pour les Ã©crans plus petits (mobile) */
@media (max-width: 768px) {
  .timetable-section h2 {
    font-size: 2rem;
  }

  .timetable th, .timetable td {
    padding: 12px 10px;
    font-size: 14px; /* Un peu plus grand pour la lisibilitÃ© */
  }
}
/* --- FIN DE LA SECTION EMPLOI DU TEMPS --- */

.school-info-section {
  background: white;
  padding: 60px 0;
  text-align: center;
}

.school-info-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #003B5C;
  font-size: 2.5rem;
  font-weight: 700;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid #003B5C;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 59, 92, 0.15);
}

.info-card h3 {
  color: #003B5C;
  margin-bottom: 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 i {
  color: #003B5C;
  font-size: 18px;
}

.info-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.cta-section {
  background: transparent;
  padding: 60px 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #e2e8f0;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-buttons .btn-primary {
  background: #00AEEF;
  color: white;
  border: 2px solid #00AEEF;
}

.cta-buttons .btn-primary:hover {
  background: #0098d1;
  border-color: #0098d1;
  transform: translateY(-2px);
}

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

.cta-buttons .btn-secondary:hover {
  background: white;
  color: #003B5C;
  transform: translateY(-2px);
}

/* Desktop styles for timetable */
@media (min-width: 769px) {
  .timetable-section .container {
    padding: 0 40px;
  }
}

@media (max-width: 768px) {
  .content-section {
    padding: 40px 0;
  }
  
  .content-section h2 {
    font-size: 2rem;
  }
  
  .content-section p {
    font-size: 1rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .feature-card {
    padding: 25px;
  }
  
  .timetable-section {
    padding: 40px 0;
    margin: 20px 0;
  }
  
  .timetable-section h2 {
    font-size: 2rem;
  }
  
  .timetable-container {
    margin: 20px 0;
  }
  
  .school-info-section {
    padding: 40px 0;
  }
  
  .school-info-section h2 {
    font-size: 2rem;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  
  .info-card {
    padding: 25px;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Adult type button styles */
.adult-type-btn {
  transition: all 0.2s ease;
}

.adult-type-btn:hover {
  border-color: #4fc3f7 !important;
  background-color: #f0f8ff !important;
}

.adult-type-btn.selected {
  border-color: #43a047 !important;
  background-color: #e8f5e8 !important;
  color: #2e7d32 !important;
  font-weight: 500;
}