body {
    background-color: #121217;
    overflow-x: hidden;
}




.block1 {
    background-image: url("https://cdn.prod.website-files.com/661cd595f8a2284e8183248a/66201829834155c7cd056a86_background1.webp");
    border-radius: 48px;
    flex-flow: row wrap;
    width: 100%;
    max-width: 1312px;
    margin-top: 9rem;
    padding: 48px;
    display: flex;
    transform: translateX(20%);
    
}

.headb1 {
    color: white;
    font-family: "Raleway", sans-serif;
    font-size: medium;
}

.heading-wrapper {
    color: #333;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
    max-width: 600px;
    margin-top: -20px;
    margin-bottom: -10px;
}

h1 {
    box-sizing: border-box;
    margin: .67em 6;
    color: white;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 48px;
    font-weight: lighter;
    line-height: 64px;
}

.paragraphb1 {
    box-sizing: border-box;
    margin-top: 25px;
    max-width: 600px;
    font-family: Arial, Helvetica, sans-serif;
    color: #b3b3b3;
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}



.bg-image {
    position: absolute;
    top: auto;
    left: 70%;
}

.imgb1 {
    border-radius: 24px;
}

.startingbutton {
    color: white;
    font-family: "Rethink Sans", sans-serif;;
    background-color: #af4401;
    border-radius: 1000px;
    flex: 0 auto;
    justify-content: center;
    align-items: center;
    padding: 12px 24px; 
    font-size: 20px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    transition: background-color .4s ease-in-out;
    display: flex;
    width: 50%;
    height: 20%;
    margin-top: 50px;
    margin-left: 10rem;
    cursor: pointer;
}

.startingbutton:hover {
    background-color: #ff6200;
}

.titlepres {
    font-family: "Bricolage Grotesque", sans-serif;
    transform: translateX(14%);
    font-size: 40px;
    color: white;
    margin-top: 7rem;
}

.grid-section {
    padding: 0 0;
    color: #fff;
}

.news-card {
    background-color: #222;
    border-radius: 48px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(255, 98, 0, 0.2);
}

.news-img img {
    background-position: 50%;
    background-size: cover;
    border-radius: 24px;
    width: 95%;
    transform: translate(0, 6%);
    height: auto;
    min-height: 300px;
}

.news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex-grow: 1;
}

.news-content h3 {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 10px;
}

.news-content .description {
    font-size: 1rem;
    margin-bottom: 15px;
}

.news-content a {
    background-color: #ff6200;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: auto;  /* Pousse le bouton vers le bas */
    align-self: center; /* Centre le bouton horizontalement */
}

.news-content a:hover {
    background-color: #ff6200;
}

.news-content a.btn-success {
    font-size: 0.9rem;
    padding: 10px 18px;
    margin-top: 15px;
}

/* Menu Hamburger pour les petits écrans */
.menu-toggle {
    display: none; /* Cacher par défaut sur les grands écrans */
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    margin-right: 20px;

    position: absolute; /* Positionner absolument */
    top: 50%; /* Positionner verticalement au centre */
    left: 50%; /* Positionner horizontalement au centre */
    transform: translate(-50%, -50%); /* Ajuster le positionnement pour bien centrer */
}


@media (max-width: 768px) {
    .news-card {
        margin-bottom: 20px;
    }
}


/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .block1 {
        transform: translateX(10%);
        padding: 32px;
    }

    .titlepres {
        font-size: 32px;
        transform: translateX(10%);
        margin-top: 5rem;
        text-align: center;
    }

    h1 {
        font-size: 36px;
        line-height: 48px;
        text-align: center;
        word-wrap: break-word; /* Permet de couper les mots trop longs */
        overflow-wrap: break-word; /* Support pour plus de navigateurs */
    }

    .paragraphb1 {
        font-size: 18px;
        line-height: 24px;
        text-align: center;
    }

    .startingbutton {
        font-size: 18px;
        padding: 10px 20px;
        margin: 20px auto;
        display: block; /* Centre horizontalement */
        text-align: center;
        width: 70%;
    }

    .news-img img {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .footer {
        padding: 15px 0;
        text-align: center;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.8rem;
        margin: 0 5px; /* Réduit l'espacement entre les liens */
    }
}

@media (max-width: 768px) {
    .block1 {
        flex-direction: column;
        transform: translateX(0);
        padding: 24px;
        margin-top: 6rem;
    }

    .imgb1 {
        display: none; /* L'image est cachée */
    }

    .titlepres {
        font-size: 28px;
        transform: translateX(0);
        text-align: center;
    }

    h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .paragraphb1 {
        font-size: 16px;
        line-height: 22px;
        margin-top: 15px;
    }

    .startingbutton {
        font-size: 16px;
        padding: 8px 16px;
        width: 100%;
    }

    .news-card {
        margin-bottom: 20px;
    }

    .news-img img {
        width: 100%;
        transform: translate(0, 0);
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .block1 {
        padding: 16px;
        margin-top: 4rem;
    }

    .titlepres {
        font-size: 24px;
        margin-top: 3rem;
    }

    h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .paragraphb1 {
        font-size: 14px;
        line-height: 20px;
    }

    .startingbutton {
        font-size: 14px;
        padding: 8px 12px;
    }

    .news-card {
        flex-direction: column;
        padding: 10px;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .news-content .description {
        font-size: 0.9rem;
    }

    .news-content a {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .footer p {
        font-size: 0.8rem;
    }

    .footer-links a {
        font-size: 0.7rem;
    }
}

@media (max-width: 360px) {
    h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .paragraphb1 {
        font-size: 12px;
        line-height: 18px;
    }

    .startingbutton {
        font-size: 14px;
        padding: 8px 12px;
        width: 80%;
    }

    .footer p, .footer-links a {
        font-size: 0.7rem;
    }
}


/*/


