header {

    width: 100%;
    background-color: white;
    height: 60px;
    top: 0;

}

.hero {
    display: flex;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color:black;
    margin: 0;
    padding: 1px 0;


}

nav {


    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;

}

nav a {
    width: 120px;
    text-align: center;
    padding: 8px 0;
    background-color: white;
    color: black;
    top: 0;
}

nav a:hover {
    background-color: #2c3e50;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

h1 {
    font-size: 80px;
    font-weight: bold;
    margin-top: 2px;
    text-align: center;

}

a {
    color: aliceblue;
    padding: 15px;
    border-radius: 12px;
    font-weight: 150px;
    cursor: pointer;
    background: rgba(165, 155, 169, 0.717);
    text-decoration: none;
    transform: scale(1.05);
    margin-left: 200px;
    gap: 10px;
    transition: all 0.3s ease;

}

a:hover {
    background-color: rgba(13, 152, 80, 0.146);
    color: blanchedalmond;
}

img {
    height: 20px;

}

.galerie {

    gap: 50px;
    padding: 50px;
    width: 100%;
    object-fit: cover;
    background-image: url(images/background.jfif);
    height: 90vh;
    margin-top: 2px;
    margin-bottom: 0;
    min-height: max-content;



}

.galerie img {
    width: 100%;
    height: 200px;
    object-fit: cover;


}

.carte {
    background: white;
    border-radius: 16px;
    display: inline-block;
    width: 30%;
    justify-content: space-between;
    margin-bottom: 30px;
    margin-right: 30px;
    border-radius: 20px;
    padding: 4px;


}

.btn-retour {
    position: fixed;
    bottom: 0;
    left: 400px;

}

ul,
ol {
    padding-left: 20px;
    margin-bottom: 1.25em;
}

li {
    margin-bottom: 0.5em;
}

footer {
    color: red;
    text-align: center;
    margin-top: 50px;
}

h1,
h2,
h3 {
    color: rgb(251, 252, 252);
    margin-top: 2px;
}

.title {

    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #4a3728;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);


}

p {
    text-align: center;

}

.fond2 {
    background-image: url(images/fond2.jfif);
    height: 90vh;


}

.acceuil {
    background-image: url(images/background.jfif);
    height: 90vh;
}

.contact {
    background-image: url(images/background.jfif);
    height: 90vh;

}

.acceuil,
.contact,
.fond2 {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: lighten;
     background-color: rgba(255, 255, 255, 0.5); 
    opacity: calc(#D4AF37);

}

h2 {
    font-size: 80px;
    text-align: center;
}

h3 {
    text-align: center;
}

    
    .p-acceuil {
  text-decoration: dotted;
  text-decoration-color: #D4AF37; /* Or métallique */
  text-decoration-thickness: 3px;
  text-underline-offset: 3px; /* Éloigne la ligne pour l'aérer */
  color: black;
  font-family: 'pinyon script';


}
ul{
    padding: 0;
    margin: 0;
    border: 1px solid#ddd;
    border-radius: 8px;
    overflow: hidden;
    }
    ul li{
        display: flex;
        justify-content: space-between;
        padding: 12px 20px;
        border-bottom:1px solid#eee;
        list-style: none;
    }
    ul li:hover {
        background-color: #ffffff;
    }
@media (max-width:768px){
    body{
        width: 89%;
        max-width: 100%;
        overflow-x: hidden;
    }
    header{
         width: 100%; /* Ne jamais laisser un 'width' en px ici */
    max-width: 100%;
    }
    .galerie img{
        height: 100px;
    }
    .carte{
        width: 42%;
        margin-right: 50px;
    }
    .hero{
        width:100%;
    }
    ul li{
        font-size: 13px;
    }
    h2{
        font-size: 67px;
    }
    .acceuil,
.contact,
.fond2 {
    background-size: 158vh;
    background-size: cover;      /* Force l'image à s'étirer sans se déformer */
  background-position: center;  /* Centre l'image pour éviter les zones vides */
  background-repeat: no-repeat;
   width: 100%;
  min-height: 100vh;
}
html, body{
    width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
nav a{
    padding: 10px;
    margin-left: 10px;
    gap: 8px;
}
.btn-retour{
    margin-left: -30px;
}
}
@media (max-width:480px){
    .galerie{
        display: flex;
        flex-direction: column;
        row-gap: 20px;
        width: 100%;
    }
    .hero{
        padding: 15px;
        display:flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: beige;
    }
    h2{
        font-size: 32px;
        margin-left: -70px;
    }
        nav a {
        width: 0px;
        display: contents;
    }
    .title{
        font-size: 10px;
    }
    html, body{
        overflow-y: auto;
    }
    .btn-retour{
        margin-left: -236px;
        
    }
    .carte{
        padding: 8px;
        width: 68%;
    }
 
}
    
    
    
