.videos-section {
    padding: 2% 1%;
    /* max-width: 1200px; */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card--featured .video-card__media {
    width: 100%;
}

.videos-section .section-title {
    font-size: 2.5rem;
    text-align: center;
    text-transform: uppercase;
    color: white;
    position: relative;
    margin-bottom: 1%;
}

.videos-section .section-title::after {
    display: none;
}

.videos-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 1%;
}

.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card--featured {
    max-width: 800px;
    width: 100%;
    margin: auto;
    grid-column: 1 / -1;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.video-card--featured a {
    text-decoration: none;
}

.video-card__media {
    position: relative;
    /* aspect-ratio: 16/9; */
    background: white;
    overflow: hidden;
    padding: 1%;
}

.video-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-card__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 1rem;
    color: white;
    transition: background 0.3s ease;
    width: 80px;
    height: 80px;
}

.video-card:hover .video-card__play-button {
    background: var(--primary-color, #000);
}

.video-card__content {
    padding: 0.2rem 1.2rem 0.2rem 1rem;
}

.video-card__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color, #333);
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.video-card__title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    color: var(--text-color, #333);
}

.video-card--featured .video-card__title {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: bold;
    margin: 5px 0;
    color: #000;
}

.video-card__excerpt {
    color: var(--text-color-light, #666);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-card__date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-color-light, #666);
}

.video-card__link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #e65e0c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.video-card__link:hover {
    background: var(--primary-color-dark, #222);
}

.video-card__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (max-width: 768px) {
    #specvid {
        padding: 0 15px;
    }

    .video-card__title {
        font-size: 1.1rem;
    }

    .video-card--featured .video-card__title {
        font-size: 1.3rem;
        margin: 0;
    }

    .videos-section .section-title {
        font-size: 1.5em;
        margin-bottom: 6%;
        margin-left: 0;
    }

    .videos-section {
        padding: 2rem 1rem;
        margin-bottom: 0;
    }



    .videos-grid {
        gap: 1.5rem;
        padding: 0 5%;
        margin-bottom: 5%;
    }

    .video-card .video-card__excerpt {
        display: none;
    }
}

/* Image van décorative */
.with-background-decor {
    position: relative;
    overflow: hidden;
}

.decor-van {
    position: absolute;
    top: 30%;
    right: 44px;
    width: 510px;
    height: 155px;
    background-image: url(https://www.fourgonlesite.com/wp-content/uploads/2025/05/fond-voiture-yogi-vec-05.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    /* opacity: 0.25; */
    z-index: 0;
    pointer-events: none;
    transform: scaleX(-1);
    /* transform: scaleX(-1); */
    transform: scaleX(-1);
}

.video-card--featured .video-card__media,
.video-card--featured .video-card__content {
    position: relative;
    z-index: 1;
}

/* Soleil */
.decor-sun {
    position: absolute;
    top: 85px;
    left: 40px;
    width: 120px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}

.videos-section {
    position: relative;
}

/* Image par défaut pour les vignettes manquantes */
.video-card__no-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    min-height: 180px;
    color: #555;
}

/* Amélioration de la vidéo en vedette */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-card__link {
        padding: 0.45rem 1.3rem;
        margin-top: 5px;
    }

    .video-card--featured .video-card__content {
        padding: 15px;
    }

    .video-card__content {
        padding: 0.2rem 0 0.2rem 0;
    }

    .decor-van {
        display: none;
    }

    .decor-sun {
        display: none;
    }
}

.video-featured-wrapper {
    position: relative;
    display: flex;
}

.video-featured-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* ---------------------------- */
@media (min-width:930px) {

    .video-card.video-card--featured,
    .video-card--featured .video-card__media {
        border-color: transparent
    }
}

/* ---------------------------- */