/* ==========================================================================
   VOLET COULISSANT - FICHE COMPLÈTE RELAIS
   ========================================================================== */
.modal-relais {
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.4); 
}

.modal-relais .modal-content {
    position: absolute;
    right: 0;
    top: 0;
    left: auto; 
    width: 500px; 
    max-width: 100%; 
    height: 100%;
    background-color: #fefefe;
    border: none;
    border-left: 1px solid #ddd;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
    transform: none; 
    animation: slideInRelais 0.3s ease-out forwards;
	margin: 0;
}

.modal-relais .close {
    color: #333;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    left: -45px; 
    top: 15px;
    cursor: pointer;
    background: #fff;
    width: 35px;
    height: 35px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}

.modal-relais .close:hover {
    color: #ff0f0f;
}

@keyframes slideInRelais {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

/* Adaptation Mobile */
@media (max-width: 768px) {
    .modal-relais {
        padding-top: 0;
    }
    .modal-relais .modal-content {
        width: 100%; 
        height: 100%; 
        border-left: none;
        padding: 10px; 
    }
    .modal-relais .close {
        left: auto;
        right: 15px; 
        top: 15px;
        background: rgba(255, 255, 255, 0.9); 
        width: 40px;  
        height: 40px;
        line-height: 36px;
    }
}

/*-----------------------------------------------------*/
.com-gmapfp-item p, .list-texte p strong {
	color: #000;
}

/* ==========================================================================
   DESIGN DES BLOCS ROAD-TRIP & RELAIS POSTEUR (2 COLONNES)
   ========================================================================== */

/* Conteneur global en Grid (2 colonnes égales par défaut) */
.rt-et-relais {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Deux colonnes de largeur identique */
    gap: 30px; /* Espace entre les deux colonnes */
    margin-top: 30px;
    align-items: start; /* Aligne les blocs par le haut s'ils n'ont pas la même hauteur */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Si le bloc Relais n'existe pas (ex: autre catégorie), le bloc ITINÉRAIRE prend toute la largeur */
.rt-bloc-itineraire:only-child {
    grid-column: span 2;
}

/* Styles des blocs d'information */
.rt-bloc-itineraire, 
.rt-bloc-relais {
    background: #ffffff;
    border: 1px solid #eef2f5;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    height: 100%; /* Permet aux deux blocs d'avoir exactement la même hauteur visuelle */
}

/* Bloc Relais spécifique : fond très légèrement teinté */
.rt-bloc-relais {
    background: #fafbfc;
    border-left: 4px solid #ff9800; 
}

/* Titres des sections graphiques */
.rt-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
}

/* Liseré dynamique sous le titre */
.rt-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff9800, #ff5722);
    border-radius: 2px;
}

.rt-icon {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* Contenu des descriptions */
.com-gmapfp-item__body,
.relais-posteur-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.relais-posteur-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* --- ADAPTATION MOBILE & TABLETTE --- */
@media (max-width: 992px) {
    /* Sur tablette et mobile, on repasse les blocs l'un en dessous de l'autre */
    .rt-et-relais {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    
    .rt-bloc-itineraire, 
    .rt-bloc-relais {
        padding: 20px;
        height: auto; /* Libère la hauteur fixe sur mobile */
    }
    
    .rt-section-title {
        font-size: 1.25rem;
    }
}