/* Réinitialisation de base des styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', serif;
}

html{
    scroll-behavior: smooth; /* Effet de défilement lisse */
    background-image: url("../img/fond.png");
    background-repeat: no-repeat;    /* Évite la répétition de l'image */
    background-position: center; /* Place l'image à droite, au centre verticalement */
    background-size: cover;           /* Ajuste la taille de l'image */
    background-attachment: fixed;
}

/* Style global */
body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

body, h1, p, ul, li, a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

p, ul li, a {
    font-size: 1rem;
}

.body{
    font-family: 'Playfair Display', serif;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100%;
    
}
/* En-tête */
header {
    background-color: #b57955;
    color: #fff;
    padding: 30px 0;
    justify-content: center;
}

.header{
    justify-items: center;
}

header .header h1 {
    text-align: center;
    font-size: 45px;
    font-weight: normal;
}

header .header p {
    text-align: center;
    font-size: 24px;
}

/* Grille header */
.container-header {  
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    grid-auto-columns: 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
      "img-left header-center img-right"
      "header-title-center header-title-center header-title-center";
  }
  
  .img-left {
    width: 75%;
    grid-area: img-left; }
  
  .img-right {
    width: 75%;
    grid-area: img-right; }
  
  .header-center{
    justify-items: center; 
    grid-area: header-center; }
  
  .header-title-center{
    justify-items: center;
    grid-area: header-title-center;
  }

.menu-div{
    background-color: #ece4d5;
    position: sticky;
    top: 0;
}

.menu-div ul li a{
    color: #ab8967;
    font-size: 20px;
    font-weight: normal;
}

img.logo-menu{
    justify-items: center;
    width: 200px;
    height: auto;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}


/* Section principale */
main {
    padding: 0px;
}

main ul li{
    list-style-type: none;
}

main .Consultation ul li{
    color: #7e573d;
    font-weight: bold;
}

main ul li::before{
    content: '- ';
}

.titre-theme {
    text-align: center;
}

.container2 {  display: grid;
    grid-template-columns: 25% 50% 25%;
    grid-template-rows: 0.7fr 1.3fr;
    gap: 0px 0px;
    grid-auto-flow: row;
  }
  
  .img2 {
    justify-self: start;
    grid-area: 1 / 3 / 3 / 4;
  }
  
  .text-accueil { grid-area: 1 / 2 / 3 / 3; }
  
  .img1 {
    justify-self: end; 
    grid-area: 1 / 1 / 3 / 2; }
  
  .Title { grid-area: 1 / 2 / 2 / 3; }
  
  .text-accueil { grid-area: 2 / 2 / 3 / 3; }
  
  
.content{
    padding: 0px 80px 0px 80px;
}

.band {
    width: 100%;
    height: auto; /* hauteur de la bande */
}

.band1{
    background-color: #ede5d6;
}

.band2{
    background-color: #b57955;
}

.Accueil {
    background-color: rgb(255, 255, 255);
    color: #805a40;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
}

.Accueil h1 {
    padding-bottom: 0px;
    font-weight: normal;
}

main div h1 {
    color: #8f6f56;
    font-weight: normal;
}

.Quisuisje {
    padding: 0% 5% 4% 5%;
    color: #805a40;
    background-color: #ede5d6 ;
}

.Quisuisje h1{
    text-align: center;
    margin-bottom: 5%;
}

.Quisuisje p {
    text-align: justify;
}

.Quisuisje .no-justify {
    text-align: left;
}

.container-quisuisje {  
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: 0fr 0fr;
    grid-auto-columns: 1fr;
    gap: 0px 0px;
    align-items: center;
  }
  
.content-quisuisje { 
    grid-area: 1 / 2 / 1 / 2; }

.img-quisuisje {
    border-radius: 150px 150px 0px 0px;
    justify-self: center;
    align-self: center;
    width: 75%;
    padding: 5%;
    margin-top: 3%;
    grid-area: 1 / 1 / 2 / 2; }

.content-bottom-quisuisje {
    align-self: start;
    grid-area: 2 / 1 / 3 / 3; }
  
.mobile-only {
    display: none; /* Masquer par défaut */
}

.Consultation{
    background-color: rgb(255, 255, 255);
    color: #805a40;
    padding-top: 20px;
    padding-bottom: 30px;
}

.Consultation ul li, .Consultation ul p{
    text-align: justify;
}

.Cabinet h1{
    color: white;
}

.container {  
    display: grid;
    grid-template-columns: 50% 50% 50%;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
      "Cabinet cabinet-image ."
      "Cabinet cabinet-image .";
  }
  
.Cabinet {
    color: #f3e1d3;
    padding-top: 20px;
    grid-area: Cabinet;
}

.Cabinet h1{
    color: #F3E1D3;
}
  
.cabinet-image {
    padding-top: 40px;
    padding-bottom: 25px;
    padding: 15px;
    justify-self: center;
    grid-area: cabinet-image; 
}
  
div.cabinet-image img{
    border-radius: 20px;
    width: 90%;
    height: auto;
}

.Contact{
    color: #805a40;
    padding-top: 20px;
    padding-bottom: 25px;
}

.phone-link {
    font-size: 1rem;
    padding: 0.5em 1em;
  }
  
  @media (max-width: 768px) {
    .phone-link {
      font-size: 0.9rem;
    }
  }

/* Pied de page */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 0px;
}


/* Flexbox pour la mise en page */
/* .header */ .menu-div, .content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

nav ul {
    display: flex;
    gap: 15px;
    list-style-type: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.container2, .Cabinet, .Contact, .cabinet-image, .menu-div nav ul {
    flex-wrap: wrap;
}


.iframe-container iframe {
    max-width: 100%;
    height: auto;
}

/* Lien boutons (téléphone, email) */
.phone-link {
    color: #805a40;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}



/* RESPONSIVE : Tablettes et petits écrans */
@media (max-width: 768px) {
    .pc-only{
        display: none;
    }
    .mobile-only{
        display: grid;
    }

    .container-quisuisje { 
        grid-template-rows: 1fr 1fr;
    }

    .img-quisuisje{
        width: 90%;
    }
    img.logo-menu{
        width: 25%;
    }

    .header-center{
        text-align: center;
    }

    .img-left,.img-right{
        width: 70%;
    }

    header .header h1 {
        font-size: 1.5rem;
    }

    header .header p {
        font-size: 0.9rem;
    }
    .header-title-center{
        text-align: center;
    }

    .menu-div nav ul {
        flex-direction: row;
        gap: 7px;
    }
    .menu-div nav ul li a {
        font-size: 1rem;
    }

    .content {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    p, ul li {
        font-size: 0.8rem;
    }
    
    .img1, .img2 {
        width: 80%; /* Exemple de réduction pour les tablettes */
    }
      /* Ajustements pour éviter les débordements */
      .container, .content, .container2, .cabinet-image {
        max-width: 100%;
        padding: 10px;
    }

    .Cabinet > ul{
        text-align: justify;
    }

    .Quisuisje {
        padding:0% 5% 5% 5% ;
    }
    .Quisuisje p{
        text-align: left;
    }

}

/* RESPONSIVE : Téléphones */
@media (max-width: 480px) {
    .pc-only{
        display: none;
    }
    .mobile-only{
        display: grid;
    }

    .container-quisuisje { 
        grid-template-rows: 1fr 1.6fr;
    }

    .Quisuisje p{
        text-align: left;
    }

    img.logo-menu{
        width: 45%;
    }

    header .header h1 {
        font-size: 1rem;
    }

    header .header p{
        text-align: center;
        font-size: 0.9rem;
    }

    .menu-div nav ul {
        flex-direction: row;
    }

    .header, .menu-div, .container2, .cabinet-image, .container {
        padding: 5px;
    }

    .phone-link {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    p, ul li {
        font-size: 0.8rem;
    }

    .img1, .img2 {
        width: 100%; /* Taille maximale pour les mobiles */
    }

    footer p {
        font-size: 0.8rem;
    }

    /* Ajustements pour éviter les débordements */
    .container, .content, .container2, .cabinet-image {
        max-width: 100%;
        padding: 10px;
    }

    /* Marges réduites pour les petits écrans */
    .cabinet-image {
        margin-top: 10px;
    }
}
