/* =====================================================
STYLE.CSS - THÈME BIEN RANDONNER
Noir / Gris anthracite / Doré
===================================================== */

/* RESET */

*{
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{
margin:0;
background:#2f2f2f;
color:#f0f0f0;
font-family:Verdana, Arial, sans-serif;
}

/* =====================================================
TITRES
===================================================== */

h1,h2,h3{
color:#c8a85a;
font-weight:normal;
}

h2{
border-bottom:1px solid #666;
padding-bottom:5px;
}

/* =====================================================
HEADER
===================================================== */

header{
background:#1f1f1f;
border-bottom:2px solid #c8a85a;
border-radius:0 0 20px 20px;
padding:25px;
text-align:center;
box-shadow:0 4px 12px rgba(0,0,0,.4);
}

header h1{
margin:0;
font-size:40px;
}

header p{
color:#d5d5d5;
}

/* =====================================================
CONTENEUR PRINCIPAL
===================================================== */

.contenu{
max-width:1200px;
margin:20px auto;
padding:25px;
background:#3b3b3b;
border:1px solid #555;
border-radius:15px;
box-shadow:0 3px 8px rgba(0,0,0,.35);
}

/* =====================================================
BLOCS
===================================================== */

.bloc{
background:#3b3b3b;
border:1px solid #555;
border-radius:15px;
padding:20px;
margin-bottom:25px;
box-shadow:0 3px 8px rgba(0,0,0,.35);
}

.encadre{
background:#444;
border-left:4px solid #c8a85a;
border-radius:10px;
padding:15px;
margin:20px 0;
}

/* =====================================================
TEXTE
===================================================== */

p{
line-height:1.8;
}

a{
color:#d9b96d;
}

a:hover{
color:#f0d48a;
}

/* =====================================================
BOUTONS
===================================================== */

.bouton{
display:inline-block;
padding:10px 16px;
background:#555;
color:white;
text-decoration:none;
border:1px solid #c8a85a;
border-radius:12px;
transition:.3s;
}

.bouton:hover{
background:#666;
}

/* =====================================================
CARDS ACCUEIL
===================================================== */

.categories{
display:grid;
grid-template-columns:
repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.carte{
background:#3b3b3b;
border:1px solid #555;
border-radius:15px;
padding:20px;
box-shadow:0 3px 8px rgba(0,0,0,.35);
transition:.3s;
}

.carte:hover{
border-color:#c8a85a;
transform:translateY(-3px);
}

/* =====================================================
PHOTO CENTRÉE AVEC CADRE ET LÉGENDE
===================================================== */

.photo-cadre{
    text-align:center;
    margin:30px auto;
}

.photo{
    display:block;
    margin:auto;
    width:25%;          /* réduction à 75% */
    height:auto;
    border:4px solid #c8a85a;
    border-radius:15px;
    box-shadow:
        0 4px 12px rgba(0,0,0,.45);
    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.photo:hover{
    transform:scale(1.03);
    box-shadow:
        0 0 20px rgba(200,168,90,.8),
        0 0 40px rgba(200,168,90,.5),
        0 8px 20px rgba(0,0,0,.5);
}

.photo-cadre figcaption{
    margin-top:12px;
    color:#d5d5d5;
    font-size:0.95rem;
    font-style:italic;
    max-width:500px;
    margin-left:auto;
    margin-right:auto;
}

.photo-cadre figcaption{
    margin:15px auto 0;
    max-width:500px;
    padding:12px 18px;
    color:#d5d5d5;
    font-size:0.95rem;
    font-style:italic;
    text-align:center;
    background:#444;
    border:1px solid #c8a85a;
    border-radius:12px;
    box-shadow:
        0 4px 12px rgba(0,0,0,.35);
    transition:
        box-shadow .3s ease,
        transform .3s ease;
}

.photo-cadre figcaption:hover{
    transform:translateY(-2px);
    box-shadow:
        0 0 15px rgba(200,168,90,.6),
        0 0 30px rgba(200,168,90,.35),
        0 4px 12px rgba(0,0,0,.4);
}

/* Mobile */

@media screen and (max-width:768px){
    .photo{
        width:75%;
    }
}
/* =====================================================
GALERIE PHOTOS HORIZONTALES
===================================================== */

.slider-paysage{
display:flex;
overflow-x:auto;
gap:15px;
padding:10px 0;
}

.slider-paysage img{
height:350px;
width:auto;
flex-shrink:0;
border-radius:12px;
border:1px solid #777;
}

/* =====================================================
GALERIE PHOTOS VERTICALES
===================================================== */

.slider-portrait{
display:flex;
overflow-x:auto;
gap:15px;
padding:10px 0;
}

.slider-portrait img{
height:500px;
width:auto;
flex-shrink:0;
border-radius:12px;
border:1px solid #777;
}

/* =====================================================
VIDÉO HORIZONTALE
===================================================== */

.video-horizontal{
position:relative;
width:100%;
padding-bottom:56.25%;
height:0;
overflow:hidden;
border-radius:15px;
border:1px solid #777;
}

.video-horizontal iframe,
.video-horizontal video{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}

/* =====================================================
GALERIE VIDÉOS VERTICALES
===================================================== */

.slider-video{
display:flex;
overflow-x:auto;
gap:20px;
padding:10px 0;
}

.slider-video video{
height:600px;
width:auto;
flex-shrink:0;
border-radius:12px;
border:1px solid #777;
background:black;
}

/* =====================================================
PIED DE PAGE
===================================================== */

footer{
text-align:center;
color:#aaa;
padding:25px;
margin-top:30px;
}

/* =====================================================
HAUT DE PAGE
===================================================== */

.hautpage{
position:fixed;
right:20px;
bottom:20px;
background:#444;
color:white;
text-decoration:none;
border:1px solid #c8a85a;
border-radius:30px;
padding:12px 18px;
box-shadow:0 3px 8px rgba(0,0,0,.4);
}

.hautpage:hover{
background:#666;
}

.boutons{
    position:fixed;
    left:20px;
    bottom:20px;
    z-index:999;
}

/* =====================================================
SCROLLBAR
===================================================== */

::-webkit-scrollbar{
width:10px;
height:10px;

}

::-webkit-scrollbar-thumb{
background:#c8a85a;
border-radius:10px;
}

::-webkit-scrollbar-track{
background:#333;
}

/* =====================================================
MOBILE
===================================================== */

@media screen and (max-width:768px){
header h1{
    font-size:30px;
}

.slider-paysage img{
    height:220px;
}

.slider-portrait img{
    height:350px;
}

.slider-video video{
    height:450px;
}

}

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

.premium-slider{
    position:relative;
    overflow:hidden;
    width:50%;
    height: auto;
    margin: 0 auto;
    border-radius:22px;
    border:1px solid rgba(241,209,138,.35);
    box-shadow:
    0 0 18px rgba(218,165,32,.20),
    inset 0 0 12px rgba(241,209,138,.08);
    background:#111;
}

.slider{
    display:flex;
    height:100%;
    animation: slider1 21s infinite;
}

.slider img{
    flex:0 0 100%;
    width:100%;
    height:100%;
    object-fit:contain;
}

.premium-slider::before{
    content:"";
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.35),
        transparent 35%
    );

    pointer-events:none;
    z-index:2;
}

/* .premium-slider:hover .slider{

    animation-play-state:paused;
} */

.slider1 {
	border: 10px solid#535353;
	box-shadow: 0 0 15px goldenrod /* ombre boite */ 
}

.slider1:hover {
	transform: scale(1.02);
	border: 10px solid#535353;
	box-shadow: 0 0 15px rgba(218,165,32,.5) /* ombre boite */ 
}

@keyframes slider1 {

    0%,12%   { transform:translateX(0); }
    16%,28%  { transform:translateX(-100%); }
    32%,44%  { transform:translateX(-200%); }
    48%,60%  { transform:translateX(-300%); }
    64%,76%  { transform:translateX(-400%); }
    80%,92%  { transform:translateX(-500%); }
    100%     { transform:translateX(-600%); }
}
  /* Fin diaporama à défilement en boucle */

  /* =====================================================
MENU PRINCIPAL
===================================================== */

.menu-principal{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin:25px auto;
    padding:0 20px;
}

.menu-principal a{
    background:#1f1f1f;
    color:#c8a85a;
    text-decoration:none;
    padding:12px 18px;
    border:1px solid #555;
    border-radius:30px;
    transition:.3s;
    box-shadow:
    0 2px 8px rgba(0,0,0,.35);
}

.menu-principal a:hover{
    background:#444;
    border-color:#c8a85a;
    color:#f0d48a;
    transform:translateY(-2px);
}