/* ================================
   STYLE GLOBAL DU SITE
   ================================ */

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f0f0f0;
}

.container {
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* ================================
   JOUR
   ================================ */
.jour {
    border-top: 4px solid transparent;
    background-image: linear-gradient(to right, #ccc, #333, #ccc);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: top;
    margin-top: 20px;
    padding-top: 20px;
}

.jour h2 {
    color: #0275d8;
    margin-top: 0;
    text-align: left;
    font-size: 1.6rem;
}

.jour p {
    text-align: left;
    line-height: 1.6;
    font-size: 1rem;
}

/* ================================
   LIEU
   ================================ */
.lieu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
}

.lieu h3 {
    margin: 10px 0 5px;
    color: #333;
    text-align: left;
    font-size: 1rem; /* même taille que trajet-detail p */
    font-weight: bold;
}

.lieu > p {
    margin: 0;
    font-size: 1rem;
    color: #666;
    text-align: left;
}

/* ================================
   IMAGE DU LIEU
   ================================ */
.lieu-image-block {
    margin: 20px 0;
    text-align: center; /* image centrée */
    width: 100%;
}

.lieu-image {
    max-width: 80%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin: 0 auto 10px;
}

/* Commentaire sous l’image */
.lieu-image-block p {
    text-align: left !important;
    margin: 0 auto;
    width: 80%;
    font-size: 0.9em !important; /* comme trajet-detail li */
    line-height: 1.6;
}

/* ================================
   COMMENTAIRE DE LIEU
   ================================ */
.lieu-commentaire {
    margin-top: 10px;
    font-size: 0.9em !important; /* comme trajet-detail li */
    color: #333;
    text-align: left;
    line-height: 1.6;
}

/* ================================
   TRAJET
   ================================ */
.trajet-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 5px;
    max-height: 600px;
}

.trajet-detail p,
.trajet-global-details p {
    margin: 5px 0;
    font-weight: bold;
    text-align: left;
    font-size: 1rem !important; /* base de référence */
}

.trajet-detail ul,
.trajet-global-details ul {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.trajet-detail li,
.trajet-global-details li {
    font-size: 0.9em;
    color: #666;
    text-align: left;
}

.trajet-global {
    margin-bottom: 40px;
    text-align: left;
}

.trajet-detail + .lieu {
    margin-top: 20px;
}

/* ================================
   COMMENTAIRES GÉNÉRAUX
   ================================ */
.commentaire {
    margin: 15px 0;
    text-align: left;
}

.commentaire h3 {
    font-size: 1rem; /* comme trajet-detail p */
    margin-bottom: 5px;
    text-align: left;
    color: #222;
}

.commentaire p {
    line-height: 1.6;
    text-align: left;
    font-size: 0.9em !important; /* comme trajet-detail li */
}

/* Garde les retours à la ligne */
.preserve-nl {
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

/* ================================
   RESPONSIVE MOBILE
   ================================ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    /* Ajustement des tailles sur mobile */
    .jour h2 {
        font-size: 1.8rem; /* titres de jour plus visibles */
    }

    .lieu h3 {
        font-size: 1.2rem !important; /* titres de lieu plus grands */
    }

    .lieu-commentaire,
    .lieu-image-block p,
    .commentaire p {
        font-size: 1.1rem !important; /* commentaires plus lisibles */
        line-height: 1.7;
    }

    .trajet-detail p {
        font-size: 1rem !important; /* base */
    }

    .trajet-detail li {
        font-size: 0.95rem !important; /* légèrement plus lisible */
    }

    .lieu-image-block p {
        width: 100% !important;
    }
}

/* ================================
   FIN DU STYLE
   ================================ */

