/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body général */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inria+Sans:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&family=Rubik+Distressed&display=swap');

.trouheader {
  height: 63px;
  width: 100%;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: black;
  color: #f8f8f8;
  margin: 0;
  padding: 0;
}

/* Titres */
h1 {
  font-family: "Rubik Dirt", system-ui;
  font-weight: 400;
  font-style: normal;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
}

strong {
  color: #FF0004;
}

h2,
h3 {
  color: #FF0004;
  text-transform: uppercase;
  margin: 50px 20px 20px 20px;
}

/* Paragraphes et textes */
p,
main li,
label,
main span {
  font-size: 1.2rem;
  color: white;
  font-family: "Asar", serif;
  font-style: normal;
  margin: 20px
}

hr {
  color: #FF0004;
  width: 100%;
  display: flex;
  margin: 20px auto 20px auto;
}

a {
  color: #FF0004;
}

/*----------------------------HEADER------------------------------------*/
header {
  background-color: #0000009d;
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  font-family: 'Inria Sans', sans-serif;
  color: white;
}

.header-container {
  max-width: 1200px;
  position: relative;
  width: 100%;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Logo */
.logo img,
.logoburger img {
  height: 40px;
}

header .logo {
  margin-right: 20px;
}

header .logoburger {
  display: none;

}

/* Navigation */
header nav {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #FF0004;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 45px 0;
}

.dropdown-menu {
  position: absolute;
  top: 15px;
  left: -20px;
  background-color: #0000009d;
  padding: 20px 0;
  display: none;
  min-width: 160px;
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}


/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}






header .res {
  border: #FF0004 solid 2px;
  padding: 8px 15px;
  border-radius: 2rem;
}

/* Auth section */
header .auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth a {
  color: white;
  text-decoration: none;
  letter-spacing: 1px;
}

.auth a:hover {
  text-decoration: underline;
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #0000009d;
  padding: 15px 20px;
}

.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #333;
  font-size: 1rem;
}

.mobile-menu a:hover,
.dropdown-menu a:hover {
  color: #FF0004;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  header nav {
    display: none;
  }

  header .auth {
    display: none;
  }

  header .logoburger {
    display: block;
  }

  .burger {
    display: flex;
  }

  .mobile-menu .resburger {
    color: #FF0004;
  }

  .mobile-menu.show {
    display: flex;
    position: absolute;
    top: 73px;
    right: 0;
    width: 100%;
  }

  .header-container {
    justify-content: space-between;
    margin: 0 15px;
  }
}

@media (max-width: 950px) {
  header {
    font-size: 0.7rem;
  }

  .social-text {
    font-size: 1rem;
  }

  .social-icons a {
    font-size: 2rem;
  }

}

/*--------------------FOOTER---------------------*/
.footer {
  background-color: #000;
  padding: 20px 0 20px;
  position: relative;
  color: white;
  font-family: 'Inria Sans', sans-serif;
}

.footer-top {
  border-top: 3px solid #FF0004;
  width: 100%;
  margin-bottom: 30px;
}

.footer-content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 60%;
  margin: auto;
}

.social-text {
  text-align: center;
  color: #FF0004;
  font-weight: bold;
  font-size: 1.4rem;
  width: 45%;
  margin: 20px 0;
}

.social-icons {
  width: 45%;
  text-align: center;
  margin: 20px 0;
}

.social-icons a {
  color: white;
  font-size: 2.7rem;
  margin: 0 10px;
}

.social-icons a:hover {
  color: #FF0004;
}

.legal {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
  width: 45%;
  text-align: center;
}

.legal:hover {
  text-decoration: underline;
}

.copyright {
  width: 45%;
  text-align: center;
}

@media screen and (max-width: 600px) {

  .footer-content {
    flex-direction: column;
    width: 90%;
  }

  .social-text,
  .social-icons,
  .legal,
  .copyright {
    width: 100%;
    text-align: center;
  }
}

/* --------------------- Page ACCUEIL --------------------- */

.heroacc {
  position: relative;

}

.heroacc h1 {
  font-size: 4rem;
  margin: 20px;
  position: absolute;
  top: 30%;
}

.heroacc img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.heroacc button a {
  text-decoration: none;
  color: white;
}

.heroacc button {
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  font-size: 2rem;
  background-color: #00000000;
  border: white solid 2px;
  border-radius: 10rem;
  box-shadow: 0px 0px 20px rgba(255, 0, 0, 0.5);
  cursor: pointer;
  position: absolute;
  top: 60%;
  left: 10%;
}

.heroacc p {
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heroacc p:first-of-type {
  position: absolute;
  top: 60%;
  right: 10%;
}

.heroacc p:nth-of-type(2) {
  position: absolute;
  top: 65%;
  right: 10%;
}

.margin20 {
  margin: 0 30px;
}

.margin50 {
  margin: 100px 30px;
}

.pageacc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  margin: 0 auto 100px auto;
  max-width: 1200px;
}

.pageacc p {
  line-height: 1.5em;
}

.pageacc H3 {
  grid-column: 1 / span 2;
}

.buttonacc a {
  text-decoration: none;
  color: white;
}

.buttonacc {
  display: block;
  margin: 150px auto;
  padding: 10px 25px;
  font-size: 1rem;
  background-color: #00000000;
  border: #FF0004 solid 2px;
  border-radius: 10rem;
  cursor: pointer;
}

.avis-section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
  background-image: url(/view/img/placehold_bg.png);
  background-size: 150%;
  background-repeat: no-repeat;
  background-position: center top;
}

.avis-section h2 {
  text-align: start;
  color: white;
  margin-bottom: 40px;
}

.avis-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avis-card {
  border: 2px solid #FF0004;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.85);
  position: relative;
}

.avis-title {
  font-size: 1.2em;
  color: #FF0004;
  font-weight: bold;
  margin-bottom: 10px;
}

.avis-author {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 5px;
  margin-bottom: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.avis-section .stars span{
  color: gold;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.avis-text {
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 10px;
}

.borderred {
  border-top: 2px solid #FF0004 ;
  width: 100%;
}

.section-restaurant, .confirmation {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;

}

.section-restaurant h2 {
  color: #FF0004 ;
  text-transform: uppercase;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.section-restaurant h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: white;
}

.section-restaurant .grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.section-restaurant .grid-container3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.section-restaurant .left-column img, .section-restaurant .grid-container3 img  {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.section-restaurant .right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-restaurant .right-column img{
  width: 100%;
  height: auto;
}

.section-restaurant .grid-container2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  line-height: 1.4;
}

.section-restaurant .grid-container2 p:nth-child(1) {
  margin-right: 30px;
}

.section-restaurant .red {
  border-left: 2px solid #FF0004 ;
  padding-left: 30px;
  color: #eda6a6a2 ;
  margin-left: 0;
}

.reservation-form {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.reservation-form .form-field label {
  flex: 1;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  color: #ccc;
  width: 200px;
}

.form-field input, .form-field select {
  flex: 2;
  padding: 10px;
  border: none;
  border-radius: 15px;
  background-color: #fce3e3;
  font-size: 16px;
  width: 100px;
}

.submit-btn {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid red;
  color: white;
  border-radius: 15px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: red;
  color: black;
}

.panier-link {
  margin-top: 20px;
  display: block;
  font-size: 14px;
  color: red;
  text-decoration: none;
}

.panier-link:hover {
  text-decoration: underline;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: black;
  padding: 20px;
  border: 1px solid #FF0004;
  border-radius: 2rem;
  z-index: 1000;
  text-align: center;
  font-size: 18px;
  color: white;
  width: 300px;
  height: 300px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.conversations-list{
  margin: 20px 50px;
}

.conversation-messages{
  margin: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0 20px 20px 20px;
}

.msg {
  margin: 20px 0;
}

.msg .date {
  font-size: 0.8em;
  color: #adadad;
  margin-top: 5px;
  margin-bottom: 10px;
}

.conversations-list ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.conversations-list li {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.conversations-list a{
  text-decoration: none;
  color: white;
}

.send-message-form {
  text-align: center;
  padding:20px;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.send-message-form textarea {
  flex: 1;
  padding: 5px;
  border: none;
  font-size: 16px;
  width: 100px;
}

.send-message-form button {
  padding: 5px 10px;
  background: transparent;
  border: 2px solid red;
  color: white;
  border-radius: 15px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 500px) {
  .form-field {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-field label {
    margin-bottom: 5px;
  }
}


@media (max-width: 1030px) {
  .heroacc h1 {
    font-size: 2.5rem;
  }

  .heroacc p {
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {

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

  .heroacc button {
    font-size: 1rem;
    padding: 10px;
  }

  .heroacc p {
    font-size: 1rem;
  }

  .heroacc p:nth-of-type(2) {
    top: 80%;
  }

  .section-restaurant .grid-container, .section-restaurant .grid-container3 {
    grid-template-columns: 1fr;
  }

  .section-restaurant .right-column {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .section-restaurant .right-column img {
    flex: 1 1 45%;
  }
  .section-restaurant .grid-container2{
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .section-restaurant .red {
    border-left: none;
    border-top: 2px solid #FF0004;
    padding-top: 20px;
  }

  .form-field label, .form-field input, .form-field select {
    width: 100%;
  }

  .send-message-form button {
    padding: 5px 10px;
    font-size: 0.7rem;
  }

  .send-message-form textarea {
    font-size: 0.7rem;
    width: 100%;
  }
  

  .send-message-form{
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .pageacc {
    margin: auto;
    width: 80%;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    line-height: 1.5em;
  }

.margin20 {
  margin: 0;
}
}