/* Global Styles */
*{
    font-family: "Chelsea Market", system-ui;
    transition: all 0.3s;
}
html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    background-color: #f9f9f9;
    width: 100% !important;
}
.mt-4{
    margin-top: 0 !important;
}
h1{
    margin-top: 0;
}
header {
    margin: 0;
    min-height: 10vh;
    background-color: #e8dccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Burger Menu */
.burger {
    display: block;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.burger div {
    width: 100%;
    height: 4px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.burger.open div:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.burger.open div:nth-child(2) {
    opacity: 0;
}
.burger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Menu */
#menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: rgba(255, 247, 239, 0.95);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    padding: 20px;
}

#menu.open {
    left: 0;
}

#menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#menu ul li a {
    font-family: "Playbill", serif;
    font-style: normal;
    font-size: 2.5em;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    transition: background 0.3s;
    border-radius: 5px;
}

#menu a:hover {
    background-color: #e8dccc;
    color: white;
}
.hero{
    background-color: #4E342E;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.hero img{
    width:100%;
    height: auto;
}
.hero-concept{
    z-index: 100000;
    background-color: #4E342E;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.hero-concept h1{
    padding: 7vh;
    padding-top:16vh;
    font-family: "Sancreek", serif;
    font-size: 8em;
    color: #E5D9CA;
    text-align: center;
}
.resa{
    font-weight: 400;
    font-style: normal;
    position: absolute;
    bottom: 10%;
    right: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 60px;
    background-color: #E5D9CA;
    color: #333;
    text-align: center;
    border:solid #333;
    border-radius: 8px;
}
.transi1{
    z-index: 10;
    margin-bottom: -100px;
}
.transi2{
    background-color:#4E342E;
}
.transi2 img,.transi1 img{
    width:100vw;
    z-index: -1;
}

main{
    background-color: #E5D9CA;
    background-image: url(../../images/chpobk.png);
    background-position: center;
    background-size: cover;
}
.grande_img{
    position: relative;
    width:100%;
    height:500px;
    background-color: #4E342E;
}
.content{
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.content-concept{
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20vh;
    padding-bottom: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.content-info{
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5vh;
    display: flex;
    min-height: 75vh;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.panneau{
    max-width: 800px;
    margin: 0 auto;
}
.cordes{
    margin-top: -100px;
    display: flex;
    justify-content: space-around;
}
.tableau-info{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    margin-top: -50px;
    width:800px;
    height:400px;
    background-color: #C1B1A4;
    border: solid 15px #4E342E;
    rotate: -8deg;
}
.chapeau{
    scale: 2;
    position: absolute;
    top: -130px;
    left: -40px;
}
.pistol{
    position: absolute;
    top: 150px;
    left: 540px;
}
.tableau-info :nth-child(2){
    text-align: center;
     grid-area: 1 / 1 / 2 / 3; 
}
.tableau-info :nth-child(3){
    text-align: center;
 grid-area: 2 / 1 / 3 / 3; 
}

.content-concept h1{
    font-family: "Playbill", serif;
    font-size: 5em;
    color: #4E342E;
}
.content h2{
    font-family: "Playbill", serif;
    font-size: 3em;
    color: #4E342E;
    text-align: center;
}
.info-wrapper {
      width: 300px;
      padding: 20px;
    }
    .info-heading {
      font-weight: bold;
      font-size: 5em;
      color: #823D34;
      font-family: "Playbill", serif;
      margin-top: 30px;
      text-transform: uppercase;
    }
    .info-text {
      margin-top: 5px;
      font-size: 1em;
    }
.cards{
    width: 700px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    column-gap: 25px;
    row-gap: 25px;
    margin-bottom: 10vh;
}
.card {
    background-color: #C1B1A4;
    padding: 15px;
    border:solid 4px #4e342e;
    width: 300px;
    height: 500px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
  }

  .card-title {
    border: 1px dashed #5c2e2e;
    text-align: center;
    padding: 8px;
    margin-bottom: 15px;
    font-weight: bold;
  }

  .image-container {
    text-align: center;
    height: 200px;
    width: 295px;
    margin-bottom: 15px;
  }

  .image-container img {
    width: 100%;
    border: 2px solid #5c2e2e;
  }

  .subtitle {
    font-weight: bold;
    margin-top: 10px;
  }

  .description {
    font-size: 14px;
    margin: 10px 0;
    line-height: 1.4em;
  }

  .info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
  }

  .info i {
    color: #000;
  }

  .infos {
    margin-top: 20px;
  }


.mmeconcept{
    display: none;
}
.tono{
    display: none;
}

.comments{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
.review-card {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 10px;
}

.profile-pic {
  background-color: #5b2c24;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.review-content {
  color: #2a0000;
  font-size: 1.5rem;
  line-height: 1.3;
}

.username {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.stars {
  color: #5b2c24;
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.quote {
  font-weight: bold;
  font-size: 1.6rem;
}
.more-comments {
    background-color: #823D34;
    padding: 20px 40px;
    text-align: center;
    text-decoration: underline;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #e8dccc !important;
    cursor: pointer;
}

.text{
    position: relative;
}
.groud{
    display: none;
}
/* Retour Button */
.retour {
    display: block;
    width: max-content;
    margin: 30px auto;
    padding: 12px 24px;
    background-color: #ff99cc;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}


h1 {
    font-family: Playbill, serif;
    font-size: 4em;
    text-align: center;
    color: #4E342E;
    margin-bottom: 20px;
}

.tabletitre{
    margin-top: 100px;
    text-align: center;
}

a:hover {
    text-decoration: underline;
}
.menubizzare {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    gap : 20px;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
}
table{
    margin: 0 auto;
    margin-top: 100px;

    
}
.table-container{
    overflow-x: auto;
    width: 100%;
}
.center{
    display: flex;
    justify-self: center;
}
.recherche {
    margin: 0 auto;
}
.footer {
  background-color: #4E342E; /* brun foncé */
  color: #f5eadd; /* beige clair */
  text-align: center;
  padding: 30px 10px;
  font-family: 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.5rem;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #f5eadd;
  text-decoration: none;
  margin: 0 5px;
  position: relative;
}

.footer-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: #f5eadd;
}

/* Responsive for Desktop */
@media (min-width: 576px) {
    .burger {
        display: none;
    }

    .auth-buttons-burger{
        display:none;
    }
    .comments{
            grid-template-columns: repeat(2, 1fr);
    }
    .mmeconcept{
        display: block;
        position: absolute;
        top:-475px;
        right:-35px;
    }
    .groud{
        display: block;
        position: absolute;
        top: 0px;
        right:-400px;
    }
    .tono{
        display: block;
        position: absolute;
        bottom:-205px;
        left:-75;
    }
    
    #menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
    }

    #menu ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
}
@media (max-width: 400px) {
    td {
        font-size: 12px;
        padding: 5px;
    }
    td h4{
        font-size: 12px;
    }
    table {
        margin:0 auto!important;
    }
}

/* Styles pour les boutons d'authentification */
.auth-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
}
.auth-buttons-burger{
    width: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.login-btn, .register-btn {
    background-color: #823D34;
    font-family: "Playbill", serif;
    font-style: normal;
    font-size: 2em;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    border: 2px solid #333;
    color: #ffffff;
}

.login-btn:hover {
    background-color: transparent;
    color: #333;
}

.register-btn {
    color: white;
    border: 2px solid #333;
}

.register-btn:hover {
    background-color: transparent;
    color: #333;
}

/* Ajustement pour le responsive */
@media screen and (max-width: 768px) {
    .info-wrapper{
        width: 100%;
        padding: 0;
    }
    .content-concept, .grande_img, .text{
        position: static;
    }
    map{
        width:92% !important;
    }
    h1{
        font-size: 2em !important;
    }
    .chapeau{
        display: none;
    }
    .tableau-info{
        rotate: 0deg;
        max-width: 93%;
    }
    .content-info{
        flex-direction: column;
    }
    .auth-buttons{
        display: none;
    }
    .cards{
        width: auto;
        grid-template-columns: repeat(1, 1fr);
        align-content: center;
    }
    .login-btn, .register-btn {
        font-size: 14px;
        padding: 10px 25px;
    }
}

/* Chapeau Logo */
.chapeau-logo {
    display: none;
    position: absolute;
    top: 0px;
    left: 20px;
    z-index: 5;
}

.chapeau-logo img {
    width: 100px;
    height: auto;
}
.chapeau-logo-burger {
    display: block;
    z-index: 5;
}

.chapeau-logo img {
    width: 100px;
    height: auto;
}
@media screen and (min-width: 768px) {

    .chapeau-logo {
        display: block;
    }
    .chapeau-logo-burger {
        display: none;
    }
    .auth-buttons-burger {
        display: none;
    }

}

/* --- Style inscription & connexion --- */
.form-contact{
    margin-top: 150px;
    justify-self: center;
    align-self: center;
}
.form-auth {
    width: 450px;
    max-width: 450px;
    margin: 0px auto;
    padding: 60px 70px 50px 70px;
    background-image: url('/images/form.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-auth h1 {
    text-align: center;
    color: #823D34;
    margin-bottom: 10px;
}
.form-auth label {
    font-weight: bold;
    margin-bottom: 4px;
    color: #4E342E;
}
.form-auth input[type="text"],
.form-auth input[type="email"],
.form-auth input[type="password"],
.form-auth input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1bfa7;
    border-radius: 5px;
    background: #f9f9f9;
    margin-bottom: 10px;
    font-size: 1rem;
    transition: border 0.2s;
}
.form-auth input:focus {
    border: 1.5px solid #823D34;
    outline: none;
}
.form-auth button[type="submit"] {
    background: #823D34;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.form-auth button[type="submit"]:hover {
    background: #4E342E;
}
.form-auth .message-success {
    color: #2e7d32;
    background: #eafbe7;
    border: 1px solid #b2dfdb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}
.form-auth .message-error {
    color: #c62828;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: center;
}
@media (max-width: 600px) {
    .form-auth {
        padding: 15px 5vw;
    }
}
.star-rating {  
    font-size: 1.5em;
    color: gold;
    text-align: left;
    direction: rtl;
}

.star-rating input[type="radio"] {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: lightgray;
    cursor: pointer;
    transition: color 0.2s;
    font-family: Arial, sans-serif;     
}

.star-rating input[type="radio"]:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: gold;
}


.comments {
    margin-bottom: 2rem;
}

.commentaire {
    background: #785246;
    color: #f5eadd;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.star-rating i {
    color: gold;
    font-size: 1.2em;
    margin-right: 3px;
}

.btn-valider, .btn-supprimer {
    background-color: #4CAF50; /* vert */
    border: none;
    padding: 5px 10px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    margin-right: 5px;
}

.btn-supprimer {
    background-color: #f44336; /* rouge */
}

.btn-valider:hover {
    background-color: #45a049;
}

.btn-supprimer:hover {
    background-color: #d32f2f;
}


details summary {
    list-style: none;
    cursor: pointer;
    padding: 6px 12px;
    background-color: #007BFF;
    color: white;
    border-radius: 4px;
    border: none;
    display: inline-block;
    font-size: 14px;
    appearance: none; /* Retire le triangle sur certains navigateurs */
    outline: none;
    user-select: none;
}

details summary::-webkit-details-marker {
    display: none; /* Retire le triangle sur Chrome/Safari */
}


.message-form textarea {
    width: 100%;
    max-width: 600px;
    margin-bottom: 10px;
}

.message-list {
    list-style-type: none;
    padding: 0;
}

.message-list li {
    margin-bottom: 10px;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.admin-message-list {
    max-width: 800px;
    margin: 0 auto;
}

.admin-message-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
}

.admin-message-header {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background-color: #e8e8e8;
    font-weight: bold;
}

.admin-message-body {
    padding: 15px;
    display: none;
    border-top: 1px solid #ccc;
}

.admin-message-body p {
    margin-bottom: 10px;
}

.delete-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #cc0000;
}

.success-message {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}