/* === ACTIVITES === */
.hero-section.entrainement {
    background-image: url('../images/activites/sejours_excursions_a_tahiti_iti_et_entrainements_de_pirogue_vaa_legacy.png');
    height: 450px;
    min-height: 450px;
    background-position: center 69%;
}

.placeholder-activites {
    width: 100%;
    height: 50px;
}

.hero-section.entrainement h1 {
    text-align: center;
}

#excursions h1, #excursions h2, #excursions h3, #excursions p, #excursions ul, #excursions li {
    color: #000;
}

/* Base heading style for activities sections (cards and training blocks). */
#excursions h3,
#cours h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 700;
    color: #222;
}

#excursions {
    position: relative;
    z-index: 999;
}

.entrainement p {
    color: #000;
}

/* PASS */
.day-pass {
    display: grid;
    grid-template-columns: 2rem 350px 2rem 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 0 2rem;


    background-color: #f4f1de;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-inline: 2rem;

    max-height: 100%;
    max-width: 100%;
}

/* image */
.day-pass img {
    grid-column: 2;
    grid-row: 1 / 3;

    border-radius: 1rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* header */
.pass-header {
    grid-column: 4;
    grid-row: 1;
}
.pass-header h2 {
    font-weight: 300;
}
.button-reserver {
    grid-column: 5;
    grid-row: 1;

    background-color: #f2cc8f;
    color: white;
    font-weight: 700;
    border-radius: 2rem;
    padding: 10px 20px;
    text-decoration: none;

    align-self: start;
    justify-self: end;
    transition: all 0.2s ease;
}
.button-reserver:hover {
    background-color: #f2cc8f;
    color: white;
    font-weight: 700;
}

/* content */
.pass-content {
    grid-column: 4 / 6;
    grid-row: 2;
}
.pass-content h3 {
    margin-bottom: 0.5rem;
}
.pass-content ul {
    padding-left: 0;
}
.pass-content li {
    list-style: none;
}

/* excursions */
.excursions-list {
    margin-top: 0.5rem;
    padding-left: 1rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0;
}
.excursions-list li {
    list-style: none;
}
.checked::before{
    content:"✔️ ";
}
.unchecked::before{
    content:"❌ ";
}

/* --- BLOC ISOLÉ : SECTION SÉJOURS --- */

/* Conteneur principal */
.row-activites {
    /* max-width: 1100px; */
    margin: 40px auto;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f1de;
    padding: 30px;
    border-radius: 20px;
    color: #333;
}

.row-activites.fond-blanc {
    background-color: #fff;
}

/* Partie haute (Image + Description rapide) */
.row-activites .row-flex-3 {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
    font-family: "Source Sans Pro", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}

.row-activites#sejour6-7,
.row-activites#sejour3-4 {
    scroll-margin-top: 100px;
    scroll-behavior: smooth;
}

.row-activites .details {
    max-height: 0px;
    overflow: hidden;
    transition: all 1s ease-in-out;
}

.row-activites .details.active {
    max-height: 2000px;
}

.row-activites .image {
    width: 380px;
    height: 240px;
    background-color: #ddd;
    background-image: url('votre-image.jpg'); /* À remplacer */
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    flex-shrink: 0;
}

.row-activites .content h2 {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    color: #222;
}

.row-activites .content p {
    margin-top: 10px;
}

.row-activites .content p .icones-activites {
    border: solid red !important;
    width: 100px !important;
}

.row-activites .content .icones-activites {
    border: solid purple !important;
    width: 50px !important;
}

.row-activites .icones-activites {
    border: solid blue !important;
    width: 32px !important;
}

.row-activites h3 {
    margin-bottom: 0;
}

.row-activites .icone-act {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
}

.row-activites .amenities-list {
    margin-top: 10px;
}

.row-activites .amenity-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.row-activites p, .row-activites ul li {
    color: #000;
}

/* Boutons Réserver (Haut et Bas) */

.row-activites .reserver {
    margin-left: auto;
}

/*.row-activites .reserver a, 
.row-activites .details .content a {
    display: inline-block;
    background-color: #f2cc8f;
    color: #fff;
    padding: 10px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

.row-activites .reserver a:hover, 
.row-activites .details .content a:hover {
    opacity: 0.8;
}*/

.row-activites .reserver a, 
.row-activites .details .content a {
    position: relative;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: #f2cc8f;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.row-activites .reserver a:hover, 
.row-activites .details .content a:hover {
    background-color: #E07A5F;
    color: #fff;
}

/* Section Détails (Partie qui s'affiche au clic) */
.row-activites .details {
    display: flex;
    /* padding-top: 30px; */
    gap: 30px;
    align-items: stretch;
}

.row-activites .details > div {
    margin-top: 30px;
}

/* Carte blanche à gauche (Activités) */
.row-activites .details .content {
    background: #fff;
    padding: 30px;
    border-radius: 25px;
    flex: 1;
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); */
}

.row-activites.fond-blanc .details .content {
    background: #f4f1de;
}

.row-activites .details h3 {
    color: #000;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.row-activites .lieu-tarifs span {
    /* display: inline-block; */
    color: #000;
}

.row-activites .lieu-tarifs .label-bold {
    width: 120px;
}

.row-activites .label-bold {
    font-weight: bold;
    /* flex-shrink: 0;  */
}

.row-activites .row {
    display: flex;
    margin-bottom: 10px;    /* Espacement entre les lignes */
    flex-wrap: wrap;
}

/* Listes à puces avec coches vertes */
.row-activites ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.row-activites ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.row-activites .a-propos .row-flex-2 ul li {
    font-size: 14.4px;
}

.row-activites ul li::before {
    content:"✔️";
    position: absolute;
    left: 0;
    color: #2d8a37;
    font-weight: bold;
}

.row-activites ul li.unavailable::before {
    content:"❌";
    color: #d9534f;
}

/* Colonne de droite (Caractéristiques Villa + Tarifs) */
.row-activites .a-propos {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
}

.row-activites .a-propos .row-flex-2 {
    display: flex;
    gap: 50px;
}

/* Mise en page des tarifs et RDV */
.row-activites .infos-bas {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    font-size: 0.95rem;
}

.row-activites .label-bold {
    font-weight: bold;
}

/* Liens En savoir plus/moins */
.row-activites .en-savoir-plus, 
.row-activites .en-savoir-moins {
    color: #333;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    display: block;
    margin: 15px auto 0;
    width: fit-content;
}

/*
    PASS
*/
.pass-journee .row-flex-3 {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
.pass-journee#pass-journee,
.pass-journee#pass-demi-journee{
    scroll-margin-top: 100px;
    scroll-behavior: smooth;
}
.pass-journee .content {
    flex: 1;
}

/* DETAIL */
.pass-journee .en-savoir-plus {
    flex-basis: 100%;
    text-align: center;
    margin: 0;
}

/* bloc gauche */
.pass-journee .details .content {
    background: #FFF;
    padding: 20px;
    border-radius: 20px;
    flex: 0 0 300px;
}
.pass-journee .details .content h4 {
    font-size: small;
    font-weight: 800;
    color: #000;
}
.row-activites .details .content a,
.pass-journee .details .content a {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* bloc droite */
.lieu-tarifs .info-table > li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}
.lieu-tarifs .tarifs-list li {
    display: flex;
    justify-content: space-between;
    padding-left: 0;
    margin-bottom: 6px;
}
.lieu-tarifs .tarif-value {
    flex-shrink: 0;
    white-space: nowrap;
}
.pass-journee .details .a-propos ul li::before {
    content: none;
}
.tarifs-list li {
    max-width: 60ch;
    word-wrap: break-word;
}

/*
    COURS
*/
.entrainement .custom-block-info {
    position: relative;
}
.entrainement .row#cours-adultes,
.entrainement .row#camps-scolaires,
.entrainement .row#cours-scolaires {
    scroll-margin-top: 100px;
    scroll-behavior: smooth;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0px;
    padding-right: 0px;
}
/* detail */
.entrainement .en-savoir-plus {
    text-decoration: underline;
    margin-block: 20px;
    cursor: pointer;
}
.entrainement .vaa-details {
    max-height: 0;
    overflow: hidden;
    margin-bottom: 3rem;
    transition: all 1s ease-in-out;
    color: #000;
}
.entrainement .vaa-details.active {
    display: block;
    opacity: 1;
    max-height: 2000px;
}
/* contenu */
.entrainement .info-table {
    list-style: none;
    padding: 0;
    margin: 0;
}
.entrainement .label-bold {
    font-weight: 700;
}
.entrainement .info-table li:nth-child(2) {
    margin-left: 140px;
    margin-bottom: 20px;
}
.entrainement .details a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #f2cc8f;
    color: white !important;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    float: right;
    transition: opacity 0.3s;
}
.entrainement .details a:hover {
    background-color: #d6a45e;
}

/* --- RESPONSIVE : TABLETTE & MOBILE --- */

/* 1. TABLETTE (Moins de 1024px) */
@media screen and (max-width: 1024px) {
    .row-activites .row-flex-3 {
        flex-direction: column; /* L'image passe au-dessus du texte */
        align-items: center;
        /* text-align: center; */
    }

    .row-activites .image {
        width: 100%; /* L'image prend toute la largeur disponible */
        max-width: 500px;
        height: 300px;
    }

    .row-activites .details {
        flex-direction: column; /* La carte blanche passe au-dessus des infos techniques */
    }

    .row-activites .reserver {
        position: static;
        margin: 0 auto;
    }
}

/* 2. MOBILE (Moins de 768px) */
@media screen and (max-width: 768px) {
    .row-activites {
        padding: 15px;
        margin: 10px;
    }

    .row-activites .content h2 {
        font-size: 1.4rem;
    }

    /* On empile les deux colonnes de la villa (Wifi, Clim, etc.) */
    .row-activites .a-propos .row-flex-2 {
        flex-direction: column;
        gap: 0;
    }

    /* Ajustement de la grille des tarifs pour mobile */
    .row-activites .infos-bas {
        grid-template-columns: 1fr; /* Une seule colonne : Libellé au-dessus de la valeur */
        gap: 5px;
        margin-top: 20px;
        background: rgba(255,255,255,0.5);
        padding: 15px;
        border-radius: 15px;
    }

    .row-activites .details .content {
        padding: 20px;
    }

    /* On centre le bouton de réservation final */
    .row-activites .details .content a {
        display: block;
        text-align: center;
    }
}

.row-activites#sejour6-7 .content {
    /*border: solid 1px purple;*/
    /*width: 90%;*/
}

.p_icon {
    font-size: 14.4px;
    }

.p_card{
    font-size: 16px;
    font-weight: bold;
    }

.fix-css-activites {
    width: 50%;
    max-width: 450px;
}

.fix-css-activites a, .fix-css-activites img {
    height: 100%;
    display: block;
}

@media (max-width: 991px) {
    .fix-css-activites {
        width: 100%;
        max-width: none;
    }

    .navbar-toggler {
        width: 55px;
    }

    .row-activites p {
        text-align: left;
    }

    .entrainement .align-items-center {
        width: 100%;
    }

    .hero-section.entrainement {
        height: 260px;
        min-height: 260px;
    }
    .placeholder-activites {
        height:20px;
    }
    .row-activites#sejour6-7, .row-activites#sejour3-4 {
        margin-top: 20px;
    }

    .order-1 {
        order: unset !important;
    }

    .row-activites ul {
        margin-bottom: 0;
    }

    .row-activites .details {
        gap: 0;
        width: 100%;
    }

    .row-activites .details .content {
        margin-top:0;
    }

    .entrainement .vaa-details {
        margin-bottom: 0;
    }

    .col-md-8 {
        width: 100%;
    }

    .row-activites .row-flex-3 .content {
        align-self : baseline;
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .row-activites .row-flex-3 {
        --row-flex-3-gap: 40px;
        gap: var(--row-flex-3-gap);
    }

    .row-activites .row-flex-3 > .fix-css-activites {
        flex: 0 0 calc(40% - (var(--row-flex-3-gap) * 0.8));
        max-width: calc(40% - (var(--row-flex-3-gap) * 0.8));
        width: calc(40% - (var(--row-flex-3-gap) * 0.8));
    }

    .row-activites .row-flex-3 > .content {
        flex: 0 0 calc(40% - (var(--row-flex-3-gap) * 0.8));
        max-width: calc(40% - (var(--row-flex-3-gap) * 0.8));
    }

    .row-activites .row-flex-3 > .reserver {
        flex: 0 0 calc(20% - (var(--row-flex-3-gap) * 0.4));
        max-width: calc(20% - (var(--row-flex-3-gap) * 0.4));
        margin-left: 0;
        display: flex;
        justify-content: flex-end;
    }
}

@media (min-width: 1200px) {
    .row-activites .row-flex-3 {
        --row-flex-3-gap: 40px;
        gap: var(--row-flex-3-gap);
    }

    .row-activites .row-flex-3 > .fix-css-activites {
        flex: 0 0 calc(40% - (var(--row-flex-3-gap) * 0.8));
        max-width: calc(40% - (var(--row-flex-3-gap) * 0.8));
        width: calc(40% - (var(--row-flex-3-gap) * 0.8));
    }

    .row-activites .row-flex-3 > .content {
        flex: 0 0 calc(40% - (var(--row-flex-3-gap) * 0.8));
        max-width: calc(40% - (var(--row-flex-3-gap) * 0.8));
    }

    .row-activites .row-flex-3 > .reserver {
        flex: 0 0 calc(20% - (var(--row-flex-3-gap) * 0.4));
        max-width: calc(20% - (var(--row-flex-3-gap) * 0.4));
        margin-left: 0;
        display: flex;
        justify-content: flex-end;
    }
}