body {
    font-family: 'sans-serif';
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

h2 {
    color: #ffffff;
    font-family: sans-serif;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.content-with-margin {
    margin-top: 150px; /* Add margin to account for the fixed header */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 60px;
}

.logo:hover img {
    transform: scale(1.1); /* Slightly enlarge the logo on hover */
    transition: transform 0.3s;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: #555;
    transform: scale(1.1); /* Slightly enlarge the link on hover */
}

nav ul li a.active {
    background-color: #ffcc00;
    color: #333;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 160px;
    z-index: 1;
    white-space: nowrap;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
    background-color: #555;
}

.dropdown.open .dropdown-content {
    display: block;
}

/* Styles for the arrow */
.dropbtn::after {
    content: ' ▼';
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

/* Custom hover styles for each dropdown item */
.dropdown-content a.barrette:hover {
    background-color: #555; /* Default hover color */
}

.dropdown-content a.ceinture-blanche:hover {
    background-color: white;
    color: black;
}

.dropdown-content a.ceinture-verte:hover {
    background-color: green;
    color: white;
}

.dropdown-content a.ceinture-rouge:hover {
    background-color: red;
    color: white;
}

.dropdown-content a.ceinture-noire:hover {
    background-color: black;
    color: white;
}

/* Styles for the accordion */
.accordion {
    margin: 20px 0;
}

.accordion-item {
    border: 1px solid #ccc;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    width: 100%;
    text-align: center;
    outline: none;
    font-size: 16px;
    position: relative;
}

.accordion-header .accordion-icon {
    position: absolute;
    right: 10px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: #2c2c2c;
    color: #ffffff;
    display: flex;
    align-items: center;
    flex-direction: column;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.accordion-content p {
    margin: 7px 0;
}

.accordion-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.accordion-item.open .accordion-content {
    max-height: 500px;
    padding: 10px;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    z-index: -1; /* Place the video behind other content */
}

#myVideo {
    padding-top: 80px;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire container */
}

.overlay {
    position: absolute;
    width: 100%;
    height: 112vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Darken the video */
    opacity: 0; /* Start hidden */
    transform: translateY(100px); /* Start below the view */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

.overlay.show {
    opacity: 1; /* Show the text */
    transform: translateY(0); /* Move to the original position */
}

.overlay.hide {
    opacity: 0; /* Hide the text */
    transform: translateY(-100px); /* Move above the view */
}

#overlay1 {
    top: 0;
}

#overlay2 {
    top: 0; /* Position below the first overlay */
}

#overlay3 {
    top: 0; /* Position below the second overlay */
}

.overlay ul {
    margin-bottom: 10px;
}

.overlay p {
    margin: 10px 0;
    font-family: 'sans-serif';
    font-size: 25px;
}

.overlay li {
    margin: 5px 0;
    font-family: 'sans-serif';
    font-size: 20px;
}

.overlay h1 {
    font-size: 50px;
    font-family: 'sans-serif';
}

footer {
    background-color: #333; /* Same color as the navbar */
    color: white;
    padding: 5px;
    text-align: center;
    position: relative;
    margin-top: 300vh; /* Position below the third overlay */
    width: 100%;
    z-index: 1;
}

footer a {
    margin: 0 10px; /* Add horizontal spacing between logos */
}

footer a img {
    transition: transform 0.3s;
}

footer a img:hover {
    transform: scale(1.1); /* Slightly enlarge the logo on hover */
}

.barrette-title {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.ceinture-verte-title {
    background: linear-gradient(to right, #008000, #00FF00); /* Green gradient */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.ceinture-blanche-title {
    background: linear-gradient(to right, #FFFFFF, #E0E0E0); /* White gradient */
    color: black;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.ceinture-rouge-title {
    background: linear-gradient(to right, #FF0000, #8B0000); /* Red gradient */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.ceinture-noire-title {
    background: linear-gradient(to right, #000000, #434343); /* Black gradient */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.barrette-title {
    background: linear-gradient(to right, #333, #444); /* Example gradient colors (SlateBlue to DarkSlateBlue) */
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

a[href*="google.com/maps"] {
    color: white;
    text-decoration: none;
}

a[href*="google.com/maps"]:hover {
    text-decoration: underline;
}

/* Style for h2 elements */
h2 {
    color: white;
}

/* sub-menu */

.nav-button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.nav-button:hover {
    background-color: #555;
    transform: scale(1.1); /* Slightly enlarge the button on hover */
    transition: transform 0.3s;
}

/* Active styles for each button */
.nav-button.blanche.active {
    background-color: white;
    color: black;
}

.nav-button.verte.active {
    background-color: green;
    color: white;
}

.nav-button.rouge.active {
    background-color: red;
    color: white;
}

.nav-button.jaune.active {
    background-color: yellow;
    color: black;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Responsive styles */
.menu {
    --s: 25px; /* control the size */
    --c: white; /* the color */
    
    height: var(--s);
    aspect-ratio: 1;
    border: none;
    padding: 0;
    border-inline: calc(var(--s)/2) solid #0000; 
    box-sizing: content-box;
    --_g1: linear-gradient(var(--c) 20%,#0000 0 80%,var(--c) 0) 
           no-repeat content-box border-box;
    --_g2: radial-gradient(circle closest-side at 50% 12.5%,var(--c) 95%,#0000) 
           repeat-y content-box border-box;
    background: 
      var(--_g2) left  var(--_p,0px) top,
      var(--_g1) left  calc(var(--s)/10 + var(--_p,0px)) top,
      var(--_g2) right var(--_p,0px) top,
      var(--_g1) right calc(var(--s)/10 + var(--_p,0px)) top;
    background-size: 
      20% 80%,
      40% 100%;
    position: relative;
    clip-path: inset(0 25%);
    -webkit-mask: linear-gradient(90deg,#0000,#000 25% 75%,#0000);
    cursor: pointer;
    transition: 
      background-position .3s var(--_s,.3s), 
      clip-path 0s var(--_s,.6s);
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
}

.menu:before,
.menu:after {
    content:"";
    position: absolute;
    border-radius: var(--s);
    inset: 40% 0;
    background: var(--c);
    transition: transform .3s calc(.3s - var(--_s,.3s));
}

.menu:checked {
    clip-path: inset(0);
    --_p: calc(-1*var(--s));
    --_s: 0s;
}

.menu:checked:before {
    transform: rotate(45deg);
}

.menu:checked:after {
    transform: rotate(-45deg);
}

.menu:focus-visible {
    clip-path: none;
    -webkit-mask: none;
    border: none;
    outline: 2px solid var(--c);
    outline-offset: 5px;
}

@media (max-width: 768px) {
    .menu {
        display: inline-block; /* Show only on small screens */
    }

    .nav-links {
        display: none; /* Hide the nav-links by default on small screens */
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 80px; /* Adjust this value to position the links below the menu icon */
        right: 0;
        background-color: #292929;
        width: 100%;
        padding: 10px;
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 10px;
        color: white;
        text-decoration: none;
    }

    .nav-links.active {
        display: flex; /* Show the nav-links when active */
    }
}

@media (min-width: 769px) {
    .menu {
        display: none; /* Hide on larger screens */
    }
}

/* Styles for the login page */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    margin-bottom: 5px;
}

.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

.login-container button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #45a049;
}

#error-message {
    color: red;
    text-align: center;
}