/* Réinitialisation de base */
body, h1, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style de base pour le body */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px; /* 1rem = 16px par défaut */
    background: url('/images/DSC09657.JPG') no-repeat center center/cover;
    background-attachment: fixed; /* Rend l'image de fond fixe */
    color: #333; /* Couleur de texte foncée pour un meilleur contraste */
    padding-top: 5rem; /* Ajustez cette valeur en fonction de la hauteur du header */
}

/* Style du header et du menu de navigation */
header {
    background-color: rgba(27, 83, 148, 0.8);
    padding: 1.5rem 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Assure que le header reste au-dessus des autres éléments */
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin: 0 0.625rem; /* 10px -> 0.625rem */
    position: relative;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

header nav ul li a {
    color: #f0f0f0; /* Blanc cassé pour le texte non survolé */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

header nav ul li:hover {
    transform: translateY(-3px); /* Légère élévation au survol */
}

header nav ul li a:hover {
    color: #00d9ff; /* Cyan clair pour le texte survolé */
}

header nav ul li::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #00d9ff; /* Ligne cyan clair */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

header nav ul li:hover::after {
    transform: scaleX(1); /* Animation de la ligne sous l'élément */
}

/* Style de base pour le menu */
#nav-links {
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

#nav-links li {
    margin: 0 0.625rem; /* 10px -> 0.625rem */
}

/* MENU HAMBURGER - cachée par défaut */
.menu-icon {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 30px;
    position: absolute;
    right: 1rem; /* Positionne l'icône à droite */
    top: 50%;
    transform: translateY(-50%); /* Centre verticalement l'icône dans le header */
    outline: none;
}

.menu-icon:focus {
    outline: 3px solid #00f0ff; /* Contour visible au focus */
    outline-offset: 2px;
}

.menu-bar {
    width: 25px;
    height: 3px;
    background-color: rgb(172, 17, 146);
    margin: 5px 0;
    transition: 0.3s;
}

/* Transformation pour la croix */
.menu-icon.active .menu-bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-icon.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .menu-bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}


/*STYLE TABLEAU INSCRIPTION ET TARIFS*/

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    padding: 1.25rem; /* 20px en rem */
    margin-bottom: 1.25rem;
    border-radius: 1.25rem 1.25rem 0 0;
    margin: 0;
    font-weight: bold;
}

.price-table {
    background-color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%; /* La table occupe 80% de la largeur de la page */
    margin: 0 auto; /* Centrage horizontal du tableau */
    overflow: hidden;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
}

.price-table th, .price-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.price-table th {
    background-color: #2776aa;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

.price-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

.price-table tr:hover {
    background-color: #e8f4fd;
}

.total-price {
    font-weight: bold;
    color: #1c88b3;
}

.note {
    font-size: 1em;
    color: #ffffff;
    margin-top: 20px;
    text-align: center;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000; /* Ombre pour simuler un contour noir */
}

.download-section {
  max-width: 800px;
  width: 90%;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h2 {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
}

.download-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #3498DB;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-link:hover {
  background-color: #16415e;
  transform: translateY(-2px);
}

.download-icon {
  margin-right: 1rem;
  font-size: 1.5rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.download-link:active {
  animation: pulse 0.3s ease-in-out;
}

@media (max-width: 600px) {

    h1 {
    font-size: 1.5rem;
    }

    .price-table {
        font-size: 14px;
        width: 98%;
    }

    .price-table th, .price-table td {
        padding: 8px 10px;
    }

    .download-section {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .download-link {
    flex-direction: column;
    text-align: center;
    padding: 0.8rem;
  }

  .download-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 400px) {
  .download-link {
    font-size: 0.9rem;
  }
}

/* STYLE POUR LE FOOTER */
footer {
    background-color: #555554;
    color: #fff;
    padding: 0px 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.footer-section {
    margin: 10px;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.footer-section p {
    margin: 0;
}

.social-icon {
    width: 30px;
    height: 30px;
}

.social-icon2 {
    width: 60px;
    height: 70px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section p {
    margin-top: 15px;
    font-size: 0.9em;
}

/* Styles pour la popup */
.popup {
    display: none; /* Cachée par défaut */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fond noir avec opacité */
}

.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    text-align: left;
    text-align: center;
}

.close-popup {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.popup-content p {
    text-align: right;
    text-align: justify;
}

.close-popup:hover,
.close-popup:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        background-color: transparent; /* Rendre le header transparent */
    }

    .menu-icon {
        display: block;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 3.75rem;
        right: 0;
        width: 100%;
        transform: translateY(-100%);
        top: 0rem; /* Ajustez cette valeur pour rapprocher le menu du haut */
    }

    #nav-links.active {
        display: flex;
        transform: translateY(0); /* Le menu apparaît du haut vers le bas */
    }

    #nav-links li {
        margin: 1.25rem 0;
    }

    #nav-links li a:focus, 
    #nav-links li a:hover {
        outline: 3px solid #00f0ff; /* Contour visible au focus */
        outline-offset: 2px;
    }
}