.parentTextExplications{
    width: 100%;
    padding-top: 60px;
    scrollbar-color: grey transparent;
    /* margin-top: -35px; */
}

.parentTextExplications {
    display: grid;
    grid-template-columns: repeat(5, 20%);
    grid-template-rows: repeat(5, 17.9em);
    overflow-y: scroll; 
}

.image1 {
    grid-area: 2 / 3 / 3 / 4;
    /* background-image: url("https://catacombes.xyz/assets/images/porteClose_ruePinel_catacombes.jpg"); */

}

.image2 {
    grid-area: 1 / 3 / 2 / 4;
    /* background-image: url("https://catacombes.xyz/assets/images/crypte_atlasCatacombes_catacombes.jpg"); */

}

.image3 {
    grid-area: 2 / 4 / 3 / 5;
    /* background-image: url("https://catacombes.xyz/assets/images/salleDesRadios_ValDeGrace_catacombes.jpg"); */
}

.image4{
    grid-area: 2 / 5 / 3 / 6;
    /* background-image: url("https://catacombes.xyz/assets/images/escalierCimetiereMontparnasseEtageInferieur_catacombes.jpg"); */
}

.image5{
    grid-area: 3 / 5 / 4 / 6;
    /* background-image: url("https://catacombes.xyz/assets/images/acqueducArcueil_catacombes.jpg"); */

}

.image6{
    grid-area: 4 / 4 / 5 / 5;
    /* background-image: url("https://catacombes.xyz/assets/images/bunker_catacombes.png"); */

}

.image7{
    grid-area: 1 / 4 / 2 / 5;
    /* background-image: url("https://catacombes.xyz/assets/images/doubleEscalier_CabinetMineralogieLHuillier_catacombes.jpg"); */

}

.image10{
    grid-area: 2 / 2 / 3 / 3;
    /* background-image: url("https://catacombes.xyz/assets/images/acqueducArcueil_catacombes.jpg"); */
}

.image11{
    grid-area: 2 / 1 / 4 / 2; 
    /* background-image: url("https://catacombes.xyz/assets/images/couloirCatacombes_catacombes.jpg"); */
}

.image12{
    grid-area: 4 / 2 / 6 / 3;
    /* background-image: url("https://catacombes.xyz/assets/images/salleApero_chauxAssas_catacombes.jpg"); */
}

.image13{
    grid-area: 4 / 1 / 5 / 2; 
    /* background-image: url("https://catacombes.xyz/assets/images/rueHonoreChevalierCatacombes_catacombes.jpg"); */
}

.image14{
    grid-area: 3 / 5 / 5 / 6;
    /* background-image: url("https://catacombes.xyz/assets/images/salleCube_catacombes.jpg"); */
}

.image15{
    grid-area: 5 / 1 / 6 / 2;
    /* background-image: url("https://catacombes.xyz/assets/images/fontaineDesChartreux_catacombes.jpg"); */
}

.image16{
    grid-area: 5 / 3 / 6 / 5;
    /* background-image: url("https://catacombes.xyz/assets/images/tombePhilibertAspairt_catacombes.jpg"); */
}

.image17{
    grid-area: 1 / 5 / 2 / 6;
    /* background-image: url("https://catacombes.xyz/assets/images/passeMuraille_catacombes.jpg"); */
}

.image18{
    grid-area: 3 / 2 / 4 / 3;
    /* background-image: url("https://catacombes.xyz/assets/images/SalleSarko_catacombes.jpg"); */
}

.image19{
    grid-area: 5 / 5 / 6 / 6;
    background-image: url("https://catacombes.xyz/assets/images/salleApero_chauxAssas_catacombes.jpg");
}

.image20{
    grid-area: 3 / 3 / 4 / 5;
    /* background-image: url("https://catacombes.xyz/assets/images/archeValDeGrace_catacombes.jpg"); */
}

.image21{
    grid-area: 5 / 5 / 6 / 6;
    /* background-image: url("https://catacombes.xyz/assets/images/SalleChateau_catacombes.jpg"); */
}

.image22{
    grid-area: 1 / 1 / 2 / 3;
    /* background-image: url("https://catacombes.xyz/assets/images/reservoirEauVanne_catacombes.jpg"); */
}

.image23{
    grid-area: 4 / 3 / 5 / 4;
    background-image: url("https://catacombes.xyz/assets/images/passeMuraille_catacombes.jpg");
}

.image24{
    grid-area: 4 / 3 / 5 / 4;
    /* background-image: url("https://catacombes.xyz/assets/images/salleSolcarlus_catacombes.jpg"); */
}

.image25 { 
    grid-area: 2 / 4 / 3 / 5; 
    /* background-image: url("https://catacombes.xyz/assets/images/salleSolcarlus_catacombes.jpg"); */
}

.imageOnClick {
  position: fixed;
  display: none;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Supprime cette ligne : */
  /* max-width: 90vw; */
  /* max-height: 90vh; */
  padding: 1rem;
  box-shadow: 0px 0px 48px 11px rgba(13, 13, 13, 0.86);
  opacity: 0;
  background-color: #000;
  border-radius: 13px;
}

.imageOnClick img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  z-index: 99;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


#bigThanks{
    text-align: center;
    grid-area: 6 / 2 / 7 / 5;
}

#iconLinkDuval{
    margin-top: -1rem;
}

#facebookDuvalIcon {
    display: inline-block;
    width: 24px;
    height: 24px;
}

#facebookDuvalIcon:hover svg {
    background: #e7881d;
    fill: #000; 
    border-radius: 5px;
    stroke: none;
}

#facebookDuvalIcon svg {
    stroke: #000;
    transition: stroke 0.2s ease-in-out;
}

#instagramDuvalIcon:hover svg{
    /* background: linear-gradient(to bottom, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); */
    background: linear-gradient(to bottom, #01258f 0%, #0561e9 25%, #29d689 50%, #69d040 75%, #b0a42a 100%);
    stroke: #000;
    stroke-width: 2px;
    border-radius: 5px;
}

#instagramVIcon:hover svg{
    /* background: linear-gradient(to bottom, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); */
    background: linear-gradient(to bottom, #01258f 0%, #0561e9 25%, #29d689 50%, #69d040 75%, #b0a42a 100%);
    stroke: #000;
    stroke-width: 2px;
    border-radius: 5px;
}

.icon-tabler-xbox-x{
    display: block;
    position: absolute;
    right: 2px;
    top: 2px;
    z-index: 999;
    transition: fill .5s ease-out;
}

.icon-tabler-xbox-x:hover{
    fill: #ffffff60;
}

.icon-tabler-chevron-left, .icon-tabler-chevron-right{
    position: fixed;
    z-index: 0;
    top: 41%;
    mix-blend-mode: hard-light;
}

.icon-tabler-chevron-left{
    left: -80px;
    background: #000;
    border-radius: 50% 0 0 50%;
}

.icon-tabler-chevron-right{
    right: -80px;
    background: #000;
    border-radius: 0 50% 50% 0;
}

.lazy {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0; 
}

.lazy.loaded {
    opacity: 1;
}

/* Portrait - jusqu'au 14 Pro Max inclus (430px) */
@media (max-width: 432px) and (orientation: portrait) {
    #bigThanks {
        grid-area: 6 / 3 / 6 / 1;
    }
}
/* Paysage - jusqu'au 14 Pro Max (932px) */
@media (max-width: 940px) and (orientation: landscape) {
    #bigThanks{ grid-area: 6 / 2 / 7 / 5; width: 100%;margin-top: 5px;}
}


/* ===== Mobile portrait fixes (e.g., iPhone 12) ===== */
@media (max-width: 432px) and (orientation: portrait) {
    .parentTextExplications {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-template-rows: repeat(5, 8.5em);
        grid-auto-rows: auto;
        gap: 8px;
        padding: 12px;
        box-sizing: border-box;
        width: 100%;
        overflow-x: hidden; 
        padding-top: 8vh;
        height: 100vh!important;
        padding-bottom: 10vh!important;
    }

    .parentTextExplications > * {
        grid-area: auto !important;
        width: 100%;
        max-width: 100%;
    }

    .parentTextExplications img {
        display: block;
        width: 100%;
        height: auto; 
        border-radius: 8px;
    }

    .parentTextExplications .lazy {
        aspect-ratio: 4 / 3; 
        width: 100%;
        height: auto;
        background-size: cover;
        background-position: center;
        border-radius: 8px;
    }

    .icon-tabler-chevron-left { left: 0; }
    .icon-tabler-chevron-right { right: 0; }

    #bigThanks{
        left: 46%;
    }
}