.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin: 50px 0;
    padding: 0 10px;
}

.sponsor-card-jeune-montagne {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 260px;
    padding: 30px;
    background: #ffffff; /*#ff914d, */
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.sponsor-card-oreal {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 260px;
    padding: 30px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.sponsor-card-oreal:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}
.sponsor-card-jeune-montagne:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
}
.sponsor-logo {
    width: 70%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
    transform: translateZ(18px);
}

.sponsor-name {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-top: 10px;
    transform: translateZ(10px);
}

.sponsor-overlay {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    opacity: 0; 
    transform: translateY(20px);
    transition: 0.35s ease;
    border-radius: 22px;
    background: none;
}
/* Overlay Decathlon */
.sponsor-card-jeune-montagne .sponsor-overlay {
    background: #ffffff;
    color: rgb(0, 0, 0);
}

/* Overlay L'Oréal */
.sponsor-card-oreal .sponsor-overlay {
    background: #ffffff;
    color: black;
}



.sponsor-card-jeune-montagne:hover .sponsor-overlay {
    opacity: 1;
    transform: translateY(0);
}

.sponsor-card-oreal:hover .sponsor-overlay {
    opacity: 1;
    transform: translateY(0);
}
.justifie {
    text-align: justify;
}

.newsponsor {
    text-align: center;
    margin-top:15px;
    font-size: 1.35rem;
    font-weight: 700;
    
}

iframe {
    width: 100%;
    max-height: 500px; /* hauteur adaptée au mobile */
    border: 1px solid #ccc;
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .sponsor-grid {
        grid-template-columns: 1fr; /* une colonne sur mobile */
        gap: 15px;
    }

    .sponsor-card-oreal {
        font-size: 14px;
    }
    .sponsor-card-decathlon {
        font-size: 14px;
    }

    .sponsor-overlay p {
        font-size: 12px;
    }
    main p {
        font-size: 14px;
    }
}