* {
    margin: 0; 
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container1 {
    max-width: 1400px;
    margin: 0 auto;
     padding: 0 15px; /* ← ajoute cette ligne pour créer de l’espace sur les côtés */
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    margin-top: 200px;
    color: #2563eb;
}

.section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(0,0,0,0.8);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.cards-grid {
    display: grid;
    gap: 70px;
    margin-bottom: 80px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ✅ cartes adaptatives */
}

.card {
    background-color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s, box-shadow 0.5s, border-color 0.5s;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
}

.card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;

    transition: transform 0.7s;
}

.card-content {
    padding: 25px; /* un peu plus de padding pour le confort */
}

.card-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 8px;
    transition: color 0.3s;
    background: linear-gradient(to right, #2563eb, #22c55e);
    border-radius: 5px;
    color: white;
    text-align: center;
}

.card:hover .card-title {
    color: white;
    text-align: center;
}

.card-desc {
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-features {
    list-style: none;
    padding-left: 0;
}

.card-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(to right, #60a5fa, #c084fc);
    margin-right: 10px;
    flex-shrink: 0;
}

/* Responsive images pour petits écrans */
@media (max-width: 480px) {
    .card-image {
        height: auto; /* supprime la hauteur fixe */
    }

    .card-image img {
        height: auto;
        object-fit: contain; /* empêche le débordement */
    }

    .card-content {
        padding: 20px;
    }

    .section-title {
        font-size: 2.2rem;
        margin-top: 120px;
    }

    .section-desc {
        font-size: 1rem;
        max-width: 90%;
    }
}
