*::-moz-selection,
*::selection {
    background: #dfef21;
    color: #17197A;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #F4F2EF;
    font-family: 'Andale Mono', monospace;
    color: #17197A;
    max-width: 70vw;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    text-align: justify;
}

section {
    justify-content: center;
}

h1, h2 {
    color: #17197A;
}

.hr {
    background-color: #17197A;
    color: #17197A;
}

.trad {
    opacity: 0.7;
}

.insta-wrapper {
    max-width: 540px;
    margin: auto;
}

.instagram-media {
    width: 100% !important;
}

p {
    font-size: large;
}

img {
    image-rendering: auto;
    content-visibility: auto;
    width: 100%;
    height: auto;
    user-select: none;
    stroke-linecap: round;
}

.media-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    gap: 1.5rem;
    max-width: 600px;
}

.media-block img,
.media-block audio {
    width: 100%;
    max-width: 100%;
}

.carousel {
    position: relative;
    width: 500px;
    overflow: hidden;
    margin: auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

#logo1 {
    user-select: none;
    width: 30vw;
    height: auto;
    
}

.sticky {
    top: 0;
    background-color: #F4F2EF;
    text-decoration: none;
    z-index: 997;
    position: sticky;
    height: 8vw;
}

hr {
    border-color: #F4F2EF;
}

#barre {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    top: 10px;
    z-index: 998;
}

li {
    margin: 0 15px;
}

a {
    text-decoration: underline;
    font-weight: bold;
    color: #f43604;
    user-select: none;
}

a:hover {
    color: #4749e2;
}

#bannière {
    left: 0;
    width: 100vw;
    height: auto;
}

.image-container {
  display: flex;
  gap: 3vw;
}

.objet {
  flex: 1;
}


.parent::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    user-select: none;
}

.parent {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background-color: #F4F2EF;
    color: rgba(11, 12, 85, 0.9);
}

.enfant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    user-select: none;
    -moz-user-select: none;
}

.enfant img {
    width: 100%;
    height: 250px;
    object-fit: contain; 
    display: block;
    transition: transform 0.3s ease-in-out;
    gap: 30px;
    margin-bottom: 30px;
    user-select: none;
    -moz-user-select: none;
}

.enfant:hover img {
    transform: scale(1.05) rotate(2deg);
}

.cursor { 
    width: 30px; 
    height: 30px; 
    background-color: rgba(242, 247, 10, 0.8); 
    border-radius: 50%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    pointer-events: none; 
    transform: translate(-50%, -50%); 
    transition: transform 0.1s ease-out; 
    z-index: 1000; 
}

body:active .cursor {
    transform: scale(1.5);
}

footer {
    background-color: #17197A;
    color: #F4F2EF;
    text-align: center;
    width: 100%;
    padding: 2rem 0;
}

h3 {
    margin: 0.5rem 0;
}

.retour {
    color: #F4F2EF;
}

#droits {
    margin-top: 1rem;
    width: 100%;
}

#Apropos1 {
    color: #f43604;
}

#Apropos2 {
    color: #F4F2EF;
}


@media (max-width: 1024px) {
    body {
        max-width: 90vw;
    }

    #sticky {
        height: 6vw;
    }

    .parent {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #logo1 {
        width: 40vw;
        height: auto;
    }
    
    hr {
        top: 8vw;
    }

    #bannière {
    left: 0;
    width: 100vw;
    height: auto;
    }

    #barre {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease-in-out;
        gap: 30px;
        margin-bottom: 30px;
    }

    .media-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1.5rem auto;
        gap: 1rem;
        max-width: 400px;
    }

    .media-block img,
    .media-block audio {
        width: 80%;
        max-width: 80%;
    }

}


@media (max-width: 700px) {
    body {
        max-width: 100vw;
        padding: 0 0.5rem;
    }

    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    #logo1 {
        width: 60vw;
        height: auto;
        background-color: #F4F2EF;
    }

    #bannière {
    left: 0;
    width: 100vw;
    height: auto;
    overflow: visible;
    }

    #barre {
        flex-direction: row;
        gap: 0.5rem;
        top: 5px;
        background-color: #F4F2EF;
    }

    .media-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1rem auto;
        gap: 1rem;
        max-width: 400px;
    }

    .media-block img,
    .media-block audio {
        width: 60%;
        max-width: 60%;
    }
    
    .image-contenaire {
        flex-direction: column;
    }
}
