/* ========================================
   STRUCTURE GÉNÉRALE
   ======================================== */

p {
    /*font-family: Arial, sans-serif;*/
    font-size: 15px;
}

.parcours-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.parcours-header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

.parcours-header h2 {
    color: #259c3f;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.parcours-sous-titre {
    font-size: 18px;
    color: #666;
}

/* ========================================
   CONTENU & DESCRIPTION
   ======================================== */

.parcours-content h2 {
    margin-top: 30px;
    font-size: 22px;
}

.accordion-item li {
    padding-left: 16px;
}

.accordion-item li::before {
    content: "🟢";
    padding-right: 8px;
    /*color: green;*/
}

.parcours-description p {
    line-height: 1.6;
}

/* ========================================
   INFOS RAPIDES
   ======================================== */

.parcours-infos-quick ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.parcours-infos-quick li {
    margin-bottom: 6px;
}

/* ========================================
   ALERT
   ======================================== */

.parcours-alert {
    background: #f6f6f6;
    padding: 15px;
    border-left: 4px solid #259c3f;
    margin-bottom: 25px;
}

/* ========================================
   SIDEBAR & RÉSERVATION
   ======================================== */

.parcours-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.parcours-icones ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.parcours-icones li {
    margin-bottom: 8px;
}

.parcours-reservation {
    padding-top: 10px;
    width: 100%;
}

.parcours-reservation .regiondo-btn {
    margin-bottom: 15px;
}

/* ========================================
   BOUTON REGIONDO
   ======================================== */

.regiondo-btn {
    display: inline-flex;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 24px;
    background-color: #259c3f;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.regiondo-btn:hover {
    background-color: #145e2b;
}

.regiondo-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
    flex-shrink: 0;
}

/* ========================================
   SLIDER
   ======================================== */

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    /* largeur calculée par le JS selon le nombre d'images */
}

.slider img {
    /* chaque image prend exactement 100% du container visible */
    min-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    /* taille tactile minimale pour mobile */
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.slider-prev {
    left: 8px;
}

.slider-next {
    right: 8px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ========================================
   ONGLETS (TABS)
   ======================================== */

.tabs-container {
    max-width: 1240px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tabs-nav {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 16px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    background-color: #e9ecef;
}

.tab-button.active {
    background-color: #37768a;
    color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #37768a;
}

.tabs-content {
    padding: 30px 20px;
}

/* Forcer la visibilité des tab-panes avec une spécificité suffisante
   pour battre les styles du thème (style.css / responsive.css) */
.tabs-content .tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tabs-content .tab-pane.active {
    display: block !important;
}

.tab-content-text {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.tab-content-text h3 {
    margin-bottom: 15px;
    color: #259c3f;
}

.tab-content-text p {
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MODAL PLEIN ÉCRAN
   ======================================== */

.kv-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.kv-modal-content {
    position: relative;
    width: 65%;
    height: 95%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
}

/* Bouton fermeture */
.kv-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #00A651;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.kv-close:hover {
    background: #008F46;
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.kv-close-icon {
    width: 22px;
    height: 22px;
    fill: #fff;
    transition: transform 0.35s ease, fill 0.25s ease;
}

.kv-close:hover .kv-close-icon {
    transform: rotate(180deg);
    fill: #e8ffe8;
}

/* Animation fade-out modal */
.kv-modal.closing {
    animation: kvFadeOut 0.35s ease forwards;
}

@keyframes kvFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.kv-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   ACCORDÉON
   ======================================== */

.accordion-container {
    max-width: 1240px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #dff1d8;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-header.active {
    background-color: #259c3f;
    color: white;
}

.accordion-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

.accordion-header.active .accordion-title {
    color: white;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #259c3f;
    color: white;
    border-radius: 3px;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.accordion-header.active .accordion-icon {
    background-color: white;
    color: #259c3f;
    transform: rotate(45deg);
}

/* Contenu accordéon — spécificité renforcée pour battre le thème */
.accordion-item .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.accordion-item .accordion-content.active {
    max-height: 1200px;
    padding: 20px;
}

.accordion-content p {
    color: #555;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE — 768px (tablette)
   ======================================== */

@media (max-width: 768px) {

    /* --- Layout : empiler les colonnes du thème --- */
    .panel-body .col_two_third,
    .panel-body .col_one_third {
        width: 100% !important;
        float: none !important;
        clear: both;
    }

    /* --- Modal --- */
    .kv-modal-content {
        width: 95%;
        height: 90%;
    }

    /* --- Slider --- */
    .slider-container {
        /* s'assurer que le container prend la largeur dispo après empilage */
        width: 100%;
    }

    .slider img {
        /* hauteur fixe sur mobile pour éviter les images écrasées/étirées */
        height: 240px;
        object-fit: cover;
    }

    .slider-prev,
    .slider-next {
        padding: 10px 12px;
        font-size: 16px;
        min-width: 36px;
        min-height: 36px;
    }

    /* --- Accordéon --- */
    .accordion-header {
        padding: 15px;
    }

    .accordion-title {
        font-size: 15px;
    }

    .accordion-icon {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }

    .accordion-item .accordion-content.active {
        padding: 15px;
    }

    .accordion-content p {
        font-size: 14px;
    }

    /* --- Onglets --- */
    .tab-button {
        padding: 14px 12px;
        font-size: 14px;
    }

    .tabs-content {
        padding: 20px 15px;
    }

    .tab-content-text {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE — 480px (mobile)
   ======================================== */

@media (max-width: 480px) {

    .parcours-page {
        padding: 10px;
    }

    /* --- Slider --- */
    .slider img {
        height: 200px;
    }

    .slider-prev,
    .slider-next {
        min-width: 32px;
        min-height: 32px;
        padding: 8px 10px;
        font-size: 14px;
    }

    /* --- Accordéon --- */
    .accordion-header {
        padding: 12px;
    }

    .accordion-title {
        font-size: 14px;
    }

    .accordion-item .accordion-content.active {
        padding: 12px;
    }
}