body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: white;
}

header{
    position: sticky;
    top: 0;
    padding: 30px;
    height: 40px;
    background: -o-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: -webkit-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: -Moz-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    z-index: 1;
}

nav{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

nav img, footer .logo{
    width: 65px;
    height: 65px;
    position: relative;
    border-radius: 15px;
    border: 5px solid yellow;
}

nav ul{
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 30px;
}
ul, section li {
    list-style: none;
}


nav .items {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 5px -10px;
    padding: 5px 15px;
    transition: color 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    border: 2px solid white;
}

nav .items::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #D90707;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
    z-index: -1;
}

nav .items:hover::before {
    transform: scaleX(1);
}

nav .items a {
    color: black;
    font-weight: bold;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-in-out;
    display: inline-block;
    width: 100%;
    text-align: center;
    color: white;
}

nav .items:hover a {
    color: white;
}

nav ul li a{
    color: white;
    font-weight: bold;
}

nav select{
    background-color: #D90707;
    color: black;
    border: 1px solid #D90707;
}

nav option{
    background-color: #D90707;
    color: black;
}

/* Styles appliqués UNIQUEMENT aux pages */
section {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* Espacement entre les sections */
section ol li {
    margin-bottom: 30px;
}

/* Espacement et design des divs internes */
section div {
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
    background-color: rgb(230, 240, 250);
    border-radius: 5px;
    line-height: 1.5;
}

section h1 {
    text-align: center;
    font-weight: bold;
    font-size: 2rem;
    margin-top: 10px;
}

section h2{
    margin-top: 40px;
}


/* Séparateur entre grandes sections */
section hr {
    border: none;
    height: 2px;
    background: #007bff;
    margin: 40px 0;
}

/* Mise en forme de la FAQ */
section details {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

section details[open] {
    background: #f0f8ff;
    border-left: 4px solid #007bff;
}

section summary {
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
}

section summary:hover {
    color: #007bff;
}


a{
    text-decoration: none;
    font-size: 16px;
}





/* Style général */
.mediateque {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mediateque h1 {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    font-size: 27px;
    color: #007bff;
    margin-top: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* Galerie d'images */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
    height: 300px;
    padding-bottom: 40px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Vidéos */
.videos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.videos video {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}



footer{
    display: flex;
    flex-direction: column;
    padding: 5px;
    background: -o-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: -webkit-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: -Moz-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    background: linear-gradient(left, #5204BF, #0460D9, #05C7F2);
}

footer .links_container{
    display: flex;
    justify-content: center;
    gap: 120px;
    padding: 5px;
    height: 250px;
}

footer .links_contents{
    display: flex;
    gap: 40px;
}

footer .overview{
    padding: 5px;
}

footer .logo{
    position: relative;
    left: 94px;
}

footer img{
    width: 80px;
    height: 60px;
}

footer .download img{
    width: 100px;
    height: 30px;
}
footer #app-store{
    height: 7%;
    position: relative;
    top: 5px;
    right: 5px;
}

footer .container{
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

footer .privacy_policy{
    display: flex;
    position: relative;
    left: -30px;
}

footer .privacy_policy ul {
    display: flex;
    gap: 40px;
    padding-right: 30px;
}


footer .social ul{
    display: flex;
    width: 200px;
    gap: 20px;
    padding: 10px 0px 10px 80px
}

footer ul li{
    margin-bottom: 8px;
}

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

footer .social img{
    width: 30px;
    height: 30px;
}

footer .copyright{
    display: flex;
    justify-content: center;
    padding: 11px;
    color: white;
}

footer a, footer .text, footer #year{
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

footer p span{
    border: 1px solid white;
    color: white;
    font-weight: bold;
    position: relative;
    left: 5px;
}

footer #year{
    position: relative;
    left: 5px;
    top: -10px;
    color: white;
}

footer a{
    font-size: 14px;
}

footer .arrow{
    margin-left: 10px;
    font-weight: normal;
}

@media  screen and (max-width: 768px){

    body{
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }

    header{
        position: sticky;
        top: 0;
        padding: 18px;
        height: 24px;
        z-index: 1;
    }
    
    nav{
        display: flex;
        align-items: center;
        justify-content: center;
        height: 18px;
    }
    
    nav img, footer .logo{
        width: 39px;
        height: 39px;
        position: relative;
        border-radius: 9px;
        border: 3px solid yellow;
    }

    a{
        font-size: 9.6px;
    }
    
    nav ul{
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        gap: 18px;
    }
    ul {
        list-style: none;
    }
    
    
    nav .items {
        position: relative;
        overflow: hidden;
        border-radius: 6px;
        margin: 3px -6px;
        padding: 3px 9px;
        transition: color 0.5s ease-in-out;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 48px;
        border: 1.2px solid white;
    }


    .mediateque {
        max-width: 540px;
        margin: 12px auto;
        padding: 12px;
        background: #f8f9fa;
        border-radius: 6px;
        box-shadow: 0 2.4px 4.8px rgba(0, 0, 0, 0.1);
    }
    
    .mediateque h1 {
        text-align: center;
        font-size: 16.8px;
        color: #333;
        margin-bottom: 12px;
    }
    
    h2 {
        font-size: 16.2px;
        color: #007bff;
        margin-top: 12px;
        border-bottom: 1.2px solid #007bff;
        padding-bottom: 3px;
    }

    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 9px;
        margin-top: 6px;
        height: 300px;
        padding-bottom: 24px;
    }
    
    .gallery img {
        width: 100%;
        height: auto;
        border-radius: 4.8px;
        box-shadow: 0 1.2px 3px rgba(0, 0, 0, 0.2);
        transition: transform 0.3s ease-in-out;
    }
    
    .gallery img:hover {
        transform: scale(1.05);
        z-index: -1;
    }

    .videos {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 9px;
        margin-top: 6px;
    }
    
    .videos video {
        width: 100%;
        max-width: 180px;
        border-radius: 4.8px;
        box-shadow: 0 1.2px 3px rgba(0, 0, 0, 0.2);
    }

    footer{
        display: flex;
        flex-direction: column;
        padding: 3px;
        background: -o-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
        background: -webkit-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
        background: -Moz-linear-gradient(left, #5204BF, #0460D9, #05C7F2);
        background: linear-gradient(left, #5204BF, #0460D9, #05C7F2);
    }
    
    footer .links_container{
        display: flex;
        justify-content: center;
        gap: 72px;
        padding: 3px;
        height: 150px;
    }
    
    footer .links_contents{
        display: flex;
        gap: 24px;
    }
    
    footer .overview{
        padding: 3px;
    }
    
    footer .logo{
        position: relative;
        left: 40px;
    }
    
    footer img{
        width: 48px;
        height: 36px;
    }
    
    footer .download img{
        width: 60px;
        height: 18px;
    }

    footer #app-store{
        height: 7%;
        position: relative;
        top: 3px;
        right: 3px;
    }
    
    footer .container{
        display: flex;
        justify-content: space-between;
        padding: 12px;
    }
    
    footer .privacy_policy{
        display: flex;
        position: relative;
        left: -18px;
    }
    
    footer .privacy_policy ul {
        display: flex;
        gap: 24px;
        padding-right: 30px;
    }
    
    
    footer .social ul{
        display: flex;
        width: 120px;
        gap: 12px;
        padding: 6px 0px 6px 48px
    }
    
    footer ul li{
        margin-bottom: 4.8px;
    }
    
    footer a:hover{
        text-decoration: underline;
    }
    
    footer .social img{
        width: 18px;
        height: 18px;
    }
    
    footer .copyright{
        display: flex;
        justify-content: center;
        padding: 6.6px;
    }
    
    footer a, footer .text, footer #year{
        color: white;
        margin-bottom: 6px;
        font-size: 8.4px;
        font-weight: bold;
    }
    
    footer p span{
        border: 0.6px solid black;
        color: black;
        font-weight: bold;
        position: relative;
        left: 3px;
    }
    
    footer #year{
        position: relative;
        left: 3px;
        top: -6px;
        color: black;
    }
    
    footer .arrow{
        margin-left: 5px;
        font-weight: normal;
    }

    footer a{
        font-size: 5.5px;
    }

}