@font-face {
    font-family: 'EC';
    src: url('../font/AME.ttf');
}

@font-face {
    font-family: 'Poppins';
    src: url('../font/Poppins-Regular.ttf');
}

* {
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, and Opera */
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    color: white;
    background-image: url('../img/EC-vector.svg');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto;
    line-height: normal;
    background-color: rgb(5, 5, 5);
}
.padding {
padding: 24px;
}

header {
    align-items: center;
    display: flex;
    align-items: center;
    margin: 24px;
}

.logo {
    width: 100%;
    height: auto;
}


.logoa {
    width: 33%;
    height: auto;
}

.floating-button {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background-color:black;
    border: 1px solid white;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

main {
    flex: 1;
}

section {
    margin: 2rem 0;
}

h1 { 
font-size: 40px;
font-weight: 500;
}

h3 {font-family: 'EC';
font-size: 80px;
text-align: center;
}

h4 {font-family: 'EC';
    font-weight: 400;
    font-size: 16px;
    }

mark {
    background-color: white;
    color: black;
    padding: 0.1rem;
}

p {
    font-size: 12px;
    margin: 0;
    padding: 0;
}

ul {
    font-size: 12px;
}

.head {
    padding: calc(25vh - 48px) 24px calc(35vh - 48px) 24px;
 width: 100%;
 height: auto;
    }

.link-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%; 
    max-width: 400px; 
    margin: auto;
  padding:12px
}

.title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    background-color: black;
    border: 1px solid white;
    border-radius: 5px;
    padding: 16px 10px;
    width: 100%; /* Pleine largeur sur mobile */
}

.btn:hover { 
    color: black;
    background-color: white;

}

footer {
    display: flex;
    justify-content: space-between;
    align-items: left;
    padding: 24px;
    flex-direction: row;
}

.footer-icon {
    width: 360px;
}

footer a {
    color: inherit;
    text-decoration: none;
    cursor: pointer; 
}

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

.flex-container {
    display: flex;
    padding: 0 12px;
    height: calc(70vh - 48px);
}

.box {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    justify-content:center;
    border: 0.5px solid white;
    padding: 12px;
    align-items: center;
}

.flex-box a {
    color: inherit;
    text-decoration: none; 
    cursor: pointer;
}

.flex-box a:hover {
    text-decoration: underline;
}

.overflow {
    overflow: scroll;
}

.num-box {
    flex-grow: 0;
    min-width: 120px;
    height: 100%;
}

.image-box {
    height: 100%;
}

.flex-box {
    flex-grow: 1;
    flex-basis: 0;
    display: flex;
    flex-direction: column;
    justify-content: 8px;
}

.inner-box {
    padding: 24px;
    flex-grow: 0.5;
    display: flex;
    justify-content: left;
    border: 0.5px solid white;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-size {
    width: 30vw; /* Largeur basée sur la largeur de la fenêtre */
    height: 30vw; /* Hauteur pour maintenir le ratio 1:1 */
    object-fit: cover; 
}

.row {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    padding: 24px;
    gap: 24px;
}


.row h1 h4 {
    margin: 0; 
    text-decoration: none;
}
.row h1 {
    font-size: 20px;
}
.row h4 {
    font-size: 40;
}

.row a, .row a:visited {
    text-decoration: none;
color: white;
}

.row a:hover{
    text-decoration: underline;
}


.mentions{
    display: flex;
    flex-direction: column;
    justify-content: left;
    gap: 16px;
    width: 100%;
    max-width: 400px; 
    margin: auto;
    border: 0.5px solid white;
    padding: 24px;
}

.mentions a {
    color: inherit;
    text-decoration: none; 
    cursor: pointer; 
}

.mentions a:hover {
    text-decoration: underline; 
}

.gris {
    font-style: italic;
    font-size: 8px;
    color: gray;
}

/* Style pour la pop-up */
#imagePopup {
    display: none;
    position: fixed;
    z-index: 100;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%; 
    height: 80%; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#popupImg {
    width: 100%; 
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

/* Responsive */

@media (max-width: 768px) {
    .footer-icon {
        width: 100%;
    }
    .logo {
        width: 100%; 
        height: auto;
    }
    .logoa {
        width: 100%; 
        height: auto;
    }


    .head {
        width: 100%; 
        padding: calc(40vh - 48px) 24px;
        }

    .btn {
        width: auto; /* Largeur auto pour les boutons sur les écrans plus larges */
    }

    .flex-container {
        height: auto;
        flex-direction: column;
    }

    .box, .title-box {
        flex-basis: auto; /* Réinitialisez la base flexible */
        height: auto; /* Hauteur flexible basée sur le contenu */
        flex-grow: 1; /* Permet aux boîtes de grandir pour remplir l'espace disponible */
    }

    .box, .inner-box {
        padding: 24px;
    }

    footer {
        flex-direction: column;
    }
    
    .overflow {
        overflow:visible;
    }

    .num-box {
        min-width: none;}

    .row {
        padding: 24px;
        gap:8px;
        justify-content: left;
    }

    #imagePopup {
            width: calc(100% - 48px); /* Largeur de la pop-up avec 24px de marge de chaque côté */
            height: calc(100% - 48px); /* Hauteur de la pop-up avec 24px de marge de chaque côté */
            max-width: 100%; /* Assure que la pop-up ne dépasse pas l'écran */
            max-height: 100%; /* Assure que la pop-up ne dépasse pas l'écran */
        }

}