/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
}

body {
    background-color: rgb(247, 246, 246);
    color: black;
}
header {
    margin-top: 7px; 
  }
/* Bannière */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: clamp(40vh, 65vh, 80vh);
    position: relative;
    overflow: hidden;
}

.slides {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 40, 70, 0.5);
    backdrop-filter: blur(3px);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 85%;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: bold;
}

.slide-content p {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    margin-bottom: 15px;
}



.ressource {
    background: #f8f9fc;  /* 🌟 Fond demandé */
    padding: 20px 4%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.slide-content h1 {
    font-size: 30px;
    margin-bottom: 8px;
    text-align: center;
}

.resource-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 95%;
    margin: auto;
}

.resource-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 260px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.resource-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.resource-box h2 {
    color: #0073e6;
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
}

.resource-box p {
    margin: 10px;
    font-size: 15px;
    opacity: 0.85;
    text-align: center;
}

.resource-box ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

.resource-box li {
    margin: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.resource-box li i {
    margin-right: 8px;
    color: #0073e6;
}

.resource-box a {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
    display: block;
    text-align: center;
}

.resource-box a:hover {
    color: #005bb5;
    text-decoration: underline;
}
/* 
footer {
    text-align: center;
    margin-top: 30px;
    padding: 12px;
    background: #0073e6;
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
} */

/* 🌍 Responsive Design */

/* 📱 Petits écrans (Téléphones) */
@media screen and (max-width: 600px) {
    .ressource {
        padding: 15px;
    }

    .slide-content h1 {
        font-size: 26px;
    }

    .resource-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .resource-box {
        padding: 15px;
    }

    .resource-box h2 {
        font-size: 18px;
    }

    .resource-box p {
        font-size: 14px;
    }

    .resource-box li {
        font-size: 14px;
        flex-direction: column;
        text-align: center;
    }

    footer {
        padding: 10px;
        font-size: 14px;
    }
}

/* 📱📟 Tablettes (iPad, écrans moyens) */
@media screen and (max-width: 1024px) {
    .slide-content h1 {
        font-size: 28px;
    }

    .resource-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .resource-box {
        padding: 18px;
    }

    .resource-box h2 {
        font-size: 20px;
    }

    .resource-box p {
        font-size: 15px;
    }

    .resource-box li {
        font-size: 15px;
    }
}
