    /* ==========================================================================
   SECTIONS SINGLE - FOOTER
   ========================================================================== */

/* ===== TITRE COMMUN ===== */
.single-section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-left: 15px;
    text-transform: uppercase;
    color: #333;
}

.single-section-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    background-color: #01a29a;
    position: absolute;
    left: -5px;
    height: calc(100% - 0.4em);
    top: 50%;
    transform: translateY(-50%);
}

.single-section-title a {
    color: inherit;
    text-decoration: none;
}

.single-section-title a:hover {
    color: #01a29a;
}

/* ===== LEADERBOARD ===== */
.single-leaderboard-section {
    padding: 2% 0;
    margin-top: 10px;
}

.single-leaderboard-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 2%;
}

.single-leaderboard-desktop {
    display: flex !important;
    justify-content: center;
}

.single-leaderboard-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .single-section-title {
        font-size: 1.5rem;
    }
    .single-leaderboard-section {
        padding: 3%;
    }
    .single-leaderboard-desktop {
        display: none !important;
    }
    .single-leaderboard-mobile {
        display: flex !important;
        justify-content: center;
    }
}

/* ===== PAVÉ ===== */
.single-pave-section {
    padding: 2% 0;
    margin-top: 10px;
}

.single-pave-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    padding: 2%;
}

.single-pave-desktop {
    display: flex !important;
    justify-content: center;
}

.single-pave-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .single-pave-section {
        padding: 3%;
    }
    .single-pave-desktop {
        display: none !important;
    }
    .single-pave-mobile {
        display: flex !important;
        justify-content: center;
    }
}

/* ===== BLOCS CATÉGORIE (grille 3 colonnes) ===== */
.single-cat-section {
    padding: 40px 20px;
}

.single-cat-container {
    max-width: 100%;
    margin: 0 auto;
}

.single-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.single-cat-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.single-cat-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.single-cat-image {
    aspect-ratio: 1600 / 1067;
    overflow: hidden;
}

.single-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.single-cat-title {
    font-size: 1.1rem;
    margin: 15px;
    color: #333;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .single-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== VIDÉOS ===== */
.single-videos-section {
    padding: 40px 20px;
    background-color: #1a1a1a;
}

.single-videos-container {
    max-width: 100%;
    margin: 0 auto;
}

.single-videos-section .single-section-title,
.single-videos-section .single-section-title a {
    color: #fff;
}

.single-videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: stretch;
}

.single-video-featured {
    grid-row: span 1;
}

.single-video-featured a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}


.single-video-featured-image {
    aspect-ratio: 1600 / 1067;
    overflow: hidden;
    position: relative;
}

.single-video-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(1, 162, 154, 0.9);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}


.single-video-featured-content {
    padding: 20px;
}

.single-video-featured-content h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #fff;
    line-height: 1.4;
}

.single-video-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: space-between;
}

.single-video-item {
    flex: 1;
}

.single-video-item a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}


.single-video-item-image {
    width: 140px;
    min-width: 140px;
    overflow: hidden;
    position: relative;
}

.single-video-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-video-play-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(1, 162, 154, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-video-item-content {
    padding: 10px 15px 10px 0;
    display: flex;
    align-items: center;
    flex: 1;
}

.single-video-item-content h4 {
    font-size: 0.9rem;
    margin: 0;
    color: #fff;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .single-videos-grid {
        grid-template-columns: 1fr;
    }
    .single-video-featured {
        grid-row: auto;
    }
    .single-video-featured-image {
        height: 200px;
        flex: none;
        min-height: auto;
    }
    .single-video-item {
        flex: none;
    }
    .single-video-item a {
        height: auto;
    }
    .single-video-item-image {
        height: 90px;
        min-height: 90px;
    }
}

/* ===== CARTE DES AMÉNAGEURS ===== */
.single-map-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.single-map-container {
    max-width: 100%;
    margin: 0 auto;
}

.single-map-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.single-map-wrapper {
    position: relative;
    height: 350px;
    background-color: #d4e8d7;
}

.single-amenageurs-map {
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2026/01/Capture-decran-2026-01-21-a-11.55.54.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.single-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.7) 50%, transparent 100%);
    display: flex;
    align-items: center;
}

.single-map-text {
    padding: 40px;
    max-width: 400px;
}

.single-map-text p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.single-map-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #01a29a;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.single-map-button:hover {
    background-color: #017c76;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .single-map-wrapper {
        height: 300px;
    }
    .single-map-overlay {
        background: linear-gradient(to bottom, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.9) 100%);
        align-items: flex-end;
    }
    .single-map-text {
        padding: 25px;
        max-width: 100%;
        text-align: center;
    }
    .single-map-text p {
        font-size: 1rem;
    }
}

/* ===== ÉVÉNEMENTS ===== */
.single-events-section {
    padding: 40px 20px;
    background-color: #fff;
}

.single-events-container {
    max-width: 100%;
    margin: 0 auto;
}

.single-events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.single-event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.single-event-image {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.single-event-image a {
    display: block;
}

.single-event-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}


.single-event-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #01a29a;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.single-event-cta:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(1, 162, 154, 0.3);
    color: #fff;
}

@media (max-width: 768px) {
    .single-events-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .single-event-cta {
        width: 45%;
        justify-content: center;
    }
}
/* ===== FIX SAFARI - VIDÉOS HAUTEURS FIXES ===== */

/* Grille vidéos - hauteur fixe - RECETTAGE: ajusté pour items 150px */
.single-videos-grid {
    display: -webkit-flex;
    display: flex;
    gap: 25px;
    height: 480px;
}

/* Featured vidéo - hauteur 100% du parent */
.single-video-featured {
    width: calc(50% - 12.5px);
    height: 100%;
}

.single-video-featured a {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

.single-video-featured-image {
    aspect-ratio: 1600 / 1067;
    overflow: hidden;
}

.single-video-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
}

/* Liste vidéos - hauteur fixe divisée en 3 */
.single-video-list {
    width: calc(50% - 12.5px);
    height: 100%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 15px;
}

/* Items vidéos - hauteur égale - RECETTAGE: harmonisé 150px */
.single-video-item {
    height: 150px;
    min-height: 150px;
    max-height: 150px;
}

.single-video-item a {
    display: -webkit-flex;
    display: flex;
    height: 100%;
    gap: 15px;
}

/* Images des items vidéos - RECETTAGE: harmonisé avec À lire absolument (150x150) */
.single-video-item-image {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 150px;
    overflow: hidden;
}

.single-video-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-object-fit: cover;
}

/* Contenu des items vidéos */
.single-video-item-content {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
}

/* ===== TABLETTE VIDÉOS - RECETTAGE: harmonisé 130x130 ===== */
@media (max-width: 1024px) {
    .single-videos-grid {
        height: 420px;
    }

    .single-video-item {
        height: 130px;
        min-height: 130px;
        max-height: 130px;
    }

    .single-video-item-image {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        height: 130px;
    }
}

/* ===== MOBILE VIDÉOS - RECETTAGE: harmonisé 120x120 ===== */
@media (max-width: 768px) {
    .single-videos-grid {
        -webkit-flex-direction: column;
        flex-direction: column;
        height: auto;
    }

    .single-video-featured,
    .single-video-list {
        width: 100%;
        height: auto;
    }

    .single-video-featured-image {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
    }

    .single-video-item {
        height: 120px;
        min-height: 120px;
        max-height: 120px;
    }

    .single-video-item-image {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 120px;
    }
}

/* ===== CONTENU SPONSO MOBILE (footer article) ===== */
.single-sponso-mobile-section {
    display: none;
}

@media (max-width: 767px) {
    .single-sponso-mobile-section {
        display: block;
        background-color: #f5f5f5;
        padding: 15px;
    }
    .single-sponso-mobile-container {
        max-width: 100%;
    }
    .single-sponso-mobile-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 8px;
        margin-bottom: 15px;
        position: relative;
        padding-left: 15px;
        text-transform: uppercase;
        color: #000;
    }
    .single-sponso-mobile-title::before {
        content: "";
        display: inline-block;
        width: 5px;
        background-color: #01a29a;
        position: absolute;
        left: -5px;
        height: calc(100% - 0.4em);
        top: 50%;
        transform: translateY(-50%);
    }
    .single-sponso-mobile-badge {
        display: inline-block;
        background-color: black;
        color: white;
        padding: 4px 10px;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 5px;
    }
    .single-sponso-mobile-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    .single-sponso-mobile-card .a2t-link::after,
    .single-sponso-mobile-card .adv-link::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
    .single-sponso-mobile-card img {
        display: block;
        width: 100%;
        height: auto;
    }
    /* RECETTAGE Nathalie : le lien ressortait en bleu souligne, style par
       defaut du navigateur, faute de regle sur ce <a>. */
    .single-sponso-mobile-card a,
    .single-sponso-mobile-link {
        color: inherit;
        text-decoration: none;
    }

    .single-sponso-mobile-text {
        padding: 1rem;
    }
    .single-sponso-mobile-text p {
        font-size: 1.1rem;
        color: #333;
        margin: 0;
        line-height: 1.4;
        font-weight: 700;
    }
}

#ailleurs2 .sponsored-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: black;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}
@media (max-width: 767px) {
    #ailleurs2 .sponsored-badge {
        position: static;
        display: inline-flex;
        margin: 10px 0 0 -6px;
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    #ailleurs2 .article-content,
    #ailleurs2 .ailleurs-ad-card .article-content {
        padding-bottom: 1.5rem;
    }
}
