/* ==========================================================
   HAUTE-LOIRE.CSS
   Partie 1 / 4
========================================================== */

/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    background:#0b0b0b;
    color:#ffffff;
    font-family:'Montserrat',sans-serif;
    line-height:1.6;
    overflow-x:hidden;

}

img{

    display:block;
    max-width:100%;

}

a{

    color:inherit;
    text-decoration:none;

}

/* ===========================
   HEADER
=========================== */

header{

    height:60vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    position:relative;

    background-size:cover;

    background-position:center;

}

header::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        rgba(0,0,0,.35),

        rgba(0,0,0,.82)

    );

}

header>div{

    position:relative;

    z-index:2;

    max-width:900px;

    padding:20px;

}

header h1{

    font-size:4rem;

    font-weight:800;

    margin-bottom:18px;

    text-shadow:

    0 0 20px #000,

    0 0 40px #000;

}

header p{

    font-size:1.35rem;

    color:#eeeeee;

}

/* ===========================
   MENU
=========================== */

.hl-nav{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:16px;

    padding:18px;

    background:#101010;

    border-top:2px solid #00bfff;

    border-bottom:2px solid #00bfff;

    box-shadow:

    0 8px 25px rgba(0,0,0,.35);

}

.hl-nav a{

    display:inline-block;

    padding:12px 24px;

    border-radius:40px;

    background:#1d1d1d;

    color:white;

    font-weight:700;

    transition:.30s;

}

.hl-nav a:hover{

    background:#00bfff;

    transform:translateY(-3px);

    box-shadow:

    0 12px 25px rgba(0,191,255,.45);

}

/* ===========================
   CONTENEUR
=========================== */

.container{

    max-width:1600px;

    margin:auto;

    padding:60px 30px;

}

/* ===========================
   TITRES
=========================== */

h2{

    font-size:2.3rem;

    margin-bottom:25px;

    padding-bottom:12px;

    border-bottom:2px solid #00bfff;

}

.infos-rando,
.compteur{

    color:#8fd3ff;

    font-size:18px;

    font-weight:700;

    margin-bottom:25px;

}

/* ==========================================================
   HAUTE-LOIRE.CSS
   Partie 2 / 4
========================================================== */

/* ===========================
   SECTIONS
=========================== */

section{

    margin-bottom:90px;

}

.rando{

    margin-bottom:90px;

}

.rando h2{

    margin-bottom:20px;

}

/* ===========================
   GALERIES
=========================== */

.gallery{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(260px,1fr));

    gap:20px;

    margin-top:20px;

}

.gallery img{

    width:100%;

    height:220px;

    object-fit:cover;

    border-radius:18px;

    cursor:pointer;

    transition:.35s;

    box-shadow:

    0 0 18px rgba(0,0,0,.45);

}

.gallery img:hover{

    transform:scale(1.04);

    box-shadow:

    0 15px 40px rgba(0,191,255,.25);

}

/* ===========================
   CARTES
=========================== */

.grid{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.card{

    background:#111;

    border-radius:22px;

    overflow:hidden;

    transition:.35s;

    box-shadow:

    0 0 25px rgba(0,0,0,.40);

}

.card:hover{

    transform:translateY(-8px);

    box-shadow:

    0 18px 45px rgba(0,0,0,.55);

}

.card img{

    width:100%;

    height:250px;

    object-fit:cover;

}

.card-body{

    padding:25px;

}

.card-body h2{

    font-size:1.7rem;

    border:none;

    padding:0;

    margin-bottom:18px;

}

.card-body p{

    margin-bottom:10px;

    color:#b9dfff;

    line-height:1.7;

}

/* ===========================
   BOUTONS
=========================== */

.btn,
.btn-retour{

    display:inline-block;

    margin-top:20px;

    padding:14px 34px;

    border-radius:40px;

    background:

    linear-gradient(
        135deg,
        #00bfff,
        #0066ff
    );

    color:white;

    font-weight:700;

    transition:.30s;

}

.btn:hover,
.btn-retour:hover{

    transform:translateY(-3px);

    box-shadow:

    0 15px 35px rgba(0,191,255,.45);

}
/* ==========================================================
   HAUTE-LOIRE.CSS
   Partie 3 / 4
========================================================== */

/* ===========================
   LIGHTBOX
=========================== */

#lightbox{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.96);

    justify-content:center;

    align-items:center;

    z-index:99999;

    cursor:pointer;

    animation:fondu .25s;

}

@keyframes fondu{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

#imageGrande{

    max-width:85vw;

    max-height:85vh;

    width:auto;

    height:auto;

    display:block;

    object-fit:contain;

    border-radius:10px;

    box-shadow:0 0 35px rgba(0,0,0,.8);

    cursor:default;

}




/* ===========================
   FERMETURE
=========================== */

.close{

    position:absolute;

    top:18px;

    right:30px;

    font-size:58px;

    font-weight:bold;

    color:white;

    cursor:pointer;

    transition:.25s;

}

.close:hover{

    color:#00bfff;

}

/* ===========================
   FLECHES
=========================== */

#precedent,
#suivant{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:70px;

    height:70px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:60px;

    font-weight:bold;

    color:white;

    cursor:pointer;

    border-radius:50%;

    background:rgba(0,0,0,.25);

    transition:.30s;

    user-select:none;

}

#precedent{

    left:20px;

}

#suivant{

    right:20px;

}

#precedent:hover,
#suivant:hover{

    background:#00bfff;

    transform:translateY(-50%) scale(1.08);

}

/* ===========================
   COMPTEUR
=========================== */

#compteurPhoto{

    position:absolute;

    bottom:25px;

    left:50%;

    transform:translateX(-50%);

    padding:10px 24px;

    border-radius:30px;

    background:rgba(0,0,0,.55);

    font-size:20px;

    font-weight:700;

    color:white;

    backdrop-filter:blur(6px);

}
/* ==========================================================
   HAUTE-LOIRE.CSS
   Partie 4 / 4
========================================================== */

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:80px;

    padding:60px 20px;

    background:#111;

    text-align:center;

    border-top:2px solid #00bfff;

}

.footer-content{

    max-width:1000px;

    margin:auto;

}

.footer-content h3{

    font-size:2rem;

    margin-bottom:20px;

    color:white;

}

.footer-content p{

    color:#cfcfcf;

    line-height:1.8;

    margin-bottom:25px;

}

/* ===========================
   VIDEOS
=========================== */

video{

    width:100%;

    display:block;

    border-radius:18px;

    background:#000;

    box-shadow:

    0 0 20px rgba(0,0,0,.45);

}

/* ===========================
   ANIMATIONS
=========================== */

.fade-in{

    animation:fadeIn .6s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================
   BARRE DE DEFILEMENT
=========================== */

::-webkit-scrollbar{

    width:12px;

}

::-webkit-scrollbar-track{

    background:#111;

}

::-webkit-scrollbar-thumb{

    background:#00bfff;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#33ccff;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1100px){

    header h1{

        font-size:3rem;

    }

    .gallery{

        grid-template-columns:

        repeat(auto-fit,minmax(220px,1fr));

    }

}

@media(max-width:768px){

    header{

        height:45vh;

    }

    header h1{

        font-size:2.2rem;

    }

    header p{

        font-size:1rem;

    }

    .container{

        padding:35px 15px;

    }

    .gallery{

        grid-template-columns:1fr;

    }

   .gallery img{

    width:100%;

    height:220px;

    object-fit:cover;

    display:block;

    border-radius:18px;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 0 18px rgba(0,0,0,.45);

}



@media(max-width:480px){

    .hl-nav{

        gap:10px;

        padding:12px;

    }

    .hl-nav a{

        width:100%;

        text-align:center;

    }

    header h1{

        font-size:1.8rem;

    }

}

