*{
  margin:0px;
  padding: 0px;
  box-sizing: border-box;
}

/* === STYLE GLOBAL === */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f8fafc;
  color: #111;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  display: none;
}
/* scrolbar */

  /* Pour Chrome, Edge, Safari */
  ::-webkit-scrollbar {
    width: 0px; /* largeur de la barre */
  }
  
  ::-webkit-scrollbar-track {
    background: #fff; /* couleur de l'arrière-plan */
  }
  
  ::-webkit-scrollbar-thumb {
    background: red; /* couleur de la barre */
    border-radius: 6px; /* coins arrondis */
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: darkred; /* couleur au survol */
  }
  
  /* Pour Firefox */
  html {
    scrollbar-width: thin;
    scrollbar-color: red white; /* premier = barre, second = arrière-plan */
  }
  
  ::-webkit-scrollbar-y{
    display: none;
  }
  

/* === HEADER === */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-weight: bold;
  font-size: 25px;
 /* color: #2563eb;*/
}

.burger {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

nav a {
  padding: 4px 4px;
  text-decoration: none;
  color: #444;
  margin: 0 1rem;
  transition: 0.6s ease-out;
  margin:0 1rem;
  -webkit-transition: 0.6s ease-out;
  -moz-transition: 0.6s ease-out;
  -ms-transition: 0.6s ease-out;
  -o-transition: 0.6s ease-out;
}

nav a:hover,
nav a:focus {
  color: white;
  background-color:#2563eb ;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

/* === MENU MOBILE === */
.mobile-menu {
  display: flex;
}
@media (max-width: 768px) {
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    border: 1px solid #ddd;
  }

  .mobile-menu.show {
    display: flex;
  }

  .burger {
    display: block;
  }
}

 h2{
  margin-top: 20px;
  text-align: center;
}

@media (max-width:768px) {
  h2{
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 0;
    text-align: center;
  }
}

main{
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
}


  
/* === GRID DES CARTES === */
.courses-grid {
  width: 80%;
  margin-left: 10%;
  margin-right: 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/*@media (max-width:1535px){
  .courses-grid{
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}*/

@media (max-width:768px) {
  .courses-grid{
    width: 100%;
    margin:0px;
    padding: 0px;
  }
}
/* === CARTE DE COURSE === */
.course-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.course-card h3 {
  color: #2563eb;
  margin-bottom: 8px;
  font-size: 18px;
}

.course-card p {
  margin: 4px 0 12px;
  color: #444;
}

/* === BOUTON === */
.btn-view {
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-view:hover {
  background-color: #1d4ed8;
}

/* === MODALE === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-content {
  background: white;
  border-radius: 4px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
  box-shadow: 2px 6px 1px 2px rgba(17, 17, 18, 0.809);
  max-height: 80%;
  scrollbar-width: none;
  overflow: auto;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}
 
@media (max-width: 768px) {
  .modal-content{
    /*display: flex;
    flex-direction: column;*/
    max-height: 400px;
    padding: 0px;
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  cursor: pointer;
}

.close-btn:hover {
  color: red;
}

/* === TABLE === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  text-align: left;
  padding: 6px;
}

tr:nth-child(even) {
  background-color: #f3f4f6;
}

@media (max-width:900px){
   
  table td {
    width:100%;
    margin-top:10px;
    margin-bottom: 10px;
    display:flex;
    flex-direction: column;
  }
  
  th {
    display:none;
  }
}

footer {
  text-align: center;
  width: 100%;
  padding: 15px;
  background: #222;
  color: white;
  margin-top: 20px;
}