@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Work+Sans:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    scroll-behavior: smooth;
}

.home-container {
    min-height: 100vh;
    background: url(img/bg-modified.webp);
    background-size: cover;
}

.header {
    position: absolute;
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.logo {
    width: 120px;
    margin-top: 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 40px;
    overflow: hidden;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    position: relative;
    display: block;
    transition: transform 0.4s;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
}

.nav-links a:hover {
    transform: translateY(-100%);
}

.burger {
    display: none;
}

.landing {
    line-height: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 100px;
}

.big-title {
    width: 40%;
    color: whitesmoke;
    font-size: 80px;
    font-family: "Playfair Display", cursive;
    font-weight: 100;
}

.categories-link {
    line-height: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 30px;
    width: 70px;
    justify-content: space-between;
    overflow: hidden;
}

.scroll-text {
    color: white;
    position: relative;
    transition: transform 0.4s;
}

.scroll-text::before {
    content: attr(data-text);
    position: absolute;
    top: 100%;
}

.scroll-text:hover {
    transform: translateY(-100%);
}

.scroll-icon {
    font-size: 25px;
    color: white;
}

.delivery-container {
    min-height: 300px;
    background: white;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.categories-container {
    min-height: 80vh;
    background: white;
    padding: 0 100px;
    
}

.section-title {
    position: relative;
    font-family: "Playfair Display", cursive;
    font-size: 50px;
    font-weight: 100;
}

.section-title::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 7px;
    background: #54BAB9;
    bottom: 0;
    box-shadow: 0 2px 2px #0000001F;
}

.best-categories {
    display: flex;
    margin-top: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.categorie1 {
    background: url(img/1.webp);
}

.categorie2 {
    background: url(img/tvo.webp);
}

.categorie3 {
    background: url(img/veille.webp);
}

.categorie4 {
    background: url(img/cybersecurite.webp);
}


.categories-box::before {
    content: "En savoir plus";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FFFFFFDF;
    display: flex;
    justify-content: center;
    align-items: center;
    left: -100%;
    transition: left 0.4s;
    font-size: 25px;
    font-weight: 500;
}

.categories-box:hover::before {
    left: 0;
}

.categories-bio {
    position: absolute;
    bottom: 0;
    display: flex;
    background: #FFFFFFDF;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
}

.category-name {
    font-weight: 500;
    font-size: 30px;
}

.test {
    color: #54BAB9;
    font-weight: 800;
    font-size: 15px;
}

.categories-box {
    position: relative;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    text-decoration: none;
    color: black;
    overflow: hidden;
    transition: background 0.4s;
}

.no-grid {
    height: 500px;
    flex: 1;
    min-width: 350px;
}

.imagedroite {
    float: right;
    width: 60%;
    height: 500px;
    margin-left: 10px;
    margin-top: 0;
}

.imagedroite2 {
    float: right;
    width: auto;
    height: auto;
    margin-left: 10px;
    margin-top: 0;
}

.imagegauche {
    float: left;
    width: auto;
    height: 750px;
    margin-right: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.hidden{
    display: none;
}



.bold{
    font-weight: bold;
}

.blue{
    color: #54BAB9;
}



.texte{
    font-size: 20px;
    color: black;
}

.bigslider{
    z-index: 5;
}

.modal {
    display: none; /* caché par défaut */
    position: fixed; /* positionnement fixe */
    z-index: 1; /* place au-dessus du reste */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* ajoute un scroll si besoin */
    background-color: rgb(0,0,0); /* fond noir */
    background-color: rgba(0,0,0,0.9); /* fond noir semi-transparent */
  }

  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
  }

  
.close:hover,

.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1280px)  {

    .big-title {
        font-size: 50px;
        line-height: 50px;
    }
    
    .imagedroite{
        max-width: 100%;
        height: auto;
    }

    .imagedroite2{
        max-width: 100%;
        height: auto;
    }

    .imagegauche{
        max-width: 100%;
        height: auto;
    }

    .header {
        justify-content: space-between;
    }

    .burger-container {
        width: 35px;
        height: 30px;
        position: relative;
    }

    .burger {
        display: block;
        height: 3px;
        width: 30px;
        background: white;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: background 0.4s;
    }

    .burger-container.active .burger {
        background: transparent;
    }

    .burger::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: white;
        bottom: 8px;
        transition: transform 0.4s,
            bottom 0.4s,
            background 0.4s;
    }

    .burger-container.active .burger::before {
        bottom: 0;
        transform: rotate(-45deg);
        background: black;
    }

    .burger::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: white;
        top: 8px;
        transition: transform 0.4s,
            top 0.4s background 0.4s;
    }

    .burger-container.active .burger::after {
        top: 0;
        transform: rotate(45deg);
        background: black;
    }

    .nav-links {
        position: absolute;
        width: 100%;
        height: 50vh;
        background: white;
        left: 0;
        top: -50vh;
        transition: top 0.4s ease-in-out;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: flex-start;
        padding: 0 50px;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        color: black;
        font-size: 30px;
    }

    .delivery-container {
        flex-direction: column;
        justify-content: center;
        padding: 50px;
    }

    .delivery-container div {
        margin: 30px;
    }

    .grid {
        flex: 1;
        min-width: 350px;
        height: 500px;
    }
}

@media (max-width: 550px) {

    .logo {
        width: 100px;
    }
    
    .landing,
    .header,
    .categories-container,
    .footer {
        padding: 0 7%;
    }

    .header {
        height: 100px;
    }

    .big-title {
        font-size: 50px;
        line-height: 50px;
    }

    .nav-links a {
        font-size: 20px;
    }

    .section-title {
        font-size: 30px;
        text-align: center;
    }

    .categories-box {
        min-width: 300px;
    }

    .category-name,
    .categories-box::before {
        font-size: 20px;
    }

    .test {
        font-size: 10px;
    }

}

@media (max-width: 400px) {

    
    .footer {
        justify-content: center;
    }
}