#logo {
    width: 8rem;
}

body {
    background-color: #1c2942;
    margin: 0;
    font-family: "lato", "Sans serif";
}

#corp {
    width: 80rem;
    margin: auto;
    background-color: #1c2942;
}

.bare-nav {
    display: flex;
    align-items: center;
    background-color: #e6ebf5;
}

.header-nav {
    text-align: right;
    margin-left: auto;
}

nav {
    display: flex;
}

nav a {
    margin-right: 3rem;
    text-decoration: none;
    font-size: x-large;
    color: #0b161c;
}

.back-whithe {
    background-color: #e6ebf5;
}

#Baniere {
    width: 80em;
}

section {
    background-color: #3b556d;
}

.colorW {
    color: #e6ebf5;
}

.apropos {
    width: 75rem;
    margin: auto;
    display: flex;
    align-items: center
}

#PORTRAIT-comp {
    width: 25rem;
    margin-top: 2em;
    margin-bottom: 2em;
}

.h1txt {
    display: flex;
    flex-direction: column;
    margin-left: 2rem;
}

.h1txt h1 {
    font-size: xx-large;
}

.h1txt p {
    font-size: large;
}

.h1raw {
    padding-left: 5rem;
}

.galeriefont {
    font-family: Arial;
    font-size: xx-large;
    padding: auto;
    padding: 0 5rem;
}

#galerie {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
}

footer {
    background-color: #000000;
    color: #e6ebf5;
}

footer #block-footer {
    display: flex;
    width: 80rem;
    margin: auto;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;           /* Prend toute la largeur du parent */
    box-sizing: border-box;
}

.carousel-images {
    position: relative;
    width: 100%;           /* Prend toute la largeur du parent */
    max-width: 100%;       /* Empêche de dépasser */
    height: 400px;         /* Plus grand en hauteur, ajuste si besoin */
    overflow: hidden;
    background: #222;
    display: block; /* <-- change flex en block */
}

.carousel-image {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Affiche toute l'image sans la couper */
    position: absolute;
    left: 0;
    top: 0;
    background: transparent;
    margin: 0 auto;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    padding: 0 1rem;
    user-select: none;
}

footer {
    background: linear-gradient(90deg, #1c2942 0%, #000 100%);
    color: #e6ebf5;
    padding: 2rem 0 0 0;
    font-family: "Lato", Arial, sans-serif;
}

footer #block-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 80rem;
    max-width: 98vw;
    margin: auto;
    padding: 2rem 0;
    gap: 2rem;
}

footer #block-footer > div:first-child {
    flex: 1 1 300px;
}

footer #block-footer > div:last-child {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer h1 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e6ebf5;
    letter-spacing: 1px;
}

footer ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

footer ul li a img {
    width: 36px;
    height: 36px;
    filter: grayscale(30%) brightness(0.95) drop-shadow(0 2px 6px #222);
    transition: filter 0.2s, transform 0.2s;
    border-radius: 8px;
    background: #222;
    padding: 4px;
}

footer ul li a img:hover {
    filter: none;
    transform: scale(1.1) rotate(-5deg);
    background: #5865F2; /* Discord color for hover */
}

footer a {
    color: #e6ebf5;
    text-decoration: underline;
    transition: color 0.2s;
}

footer a:hover {
    color: #8ab4f8;
    text-decoration: none;
}

footer p {
    margin: 0 0 0.7rem 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    #corp, footer #block-footer {
        width: 98vw;
        max-width: 100vw;
        padding: 0 1rem;
    }
    .apropos, .galeriefont {
        width: 98vw !important;
        padding: 0 1rem !important;
    }
    #PORTRAIT-comp {
        width: 12rem;
    }
    .carousel-images {
        height: 220px;
    }
}

@media (max-width: 600px) {
    footer #block-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    .apropos {
        flex-direction: column;
        align-items: center;
    }
    #PORTRAIT-comp {
        width: 8rem;
    }
    .carousel-images {
        height: 140px;
    }
}