html {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body,
html {
  min-height: 100vh;
  height: 100vh;
  background-color: #f4f4f4;
  color: #333;
}

/*------------------------------------------------------------------------------------------------*/
/* tous les messages*/

.msg {
  padding: 0.5em 1em;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: bold;
}

.msg.erreur {
  background-color: lightcoral;
  color: darkred;
}

.msg.succes {
  background-color: lightgreen;
  color: green;
}

/*------------------------------------------------------------------------------------------------*/
/* tous les boutons */

.btn-envoyer {
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  margin-top: 20px;
  cursor: pointer;
  display: inline-block;
  border: none;
}

.btn-admin-index {
  font-size: 1.6rem;
  padding: 18px 40px;
  border-radius: 15px;
  margin-top: 30px;
  width: 250px;
  align-self: center;
}

.btn-ajouter {
  background-color: #2e7d32;
  color: white;
  padding: 10px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-ajouter:hover {
  background-color: #246427;
}

/*------------------------------------------------------------------------------------------------*/
/* HEADER PAGE PRINCIPAL */

header {
  background-image: url(../img/photo-header.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  position: relative;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  gap: 60px;
  padding: 0 20px;
}

/* Liens */
.nav-links {
  list-style: none;
  display: flex;
  gap: 60px;
  align-items: baseline;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 2.4rem;
  font-weight: bold;
}

.nav-links li .menu {
  font-size: 4.4rem;
  border: none;
}

/* Logo */
.logo {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
}

/*------------------------------------------------------------------------------------------------*/
/* HEADER PAGE SECONDAIRE */

.header-secondaire {
  background-color: #2F3131;
  color: white;
  position: relative;
}

/* Navbar */
.navbar-secondaire {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
  gap: 60px;
  padding: 0 20px;
}

/* Liens */
.nav-links-secondaire {
  list-style: none;
  display: flex;
  gap: 80px;
  align-items: baseline;
}

.nav-links-secondaire li a {
  text-decoration: none;
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links-secondaire li .menu-secondaire {
  font-size: 2.4rem;
}

.logo-secondaire {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.logo-secondaire img {
  height: 80px;
  width: auto;
}


/* -----------------------------------------------------------------------------------*/
/* section notre cuisine et notre service */

.section-double {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1200px;
  margin: auto;
  font-size: 1.5rem;
}

/* Blocs */
.bloc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 150px;
}

.bloc-droite,
.bloc-gauche {
  flex-direction: row;
}

.image-1,
.image-2 {
  width: 300px;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.texte {
  flex: 1;
  max-width: none;
}

.texte h2 {
  color: #8A5E3C;
  margin-bottom: 20px;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
}

.texte p {
  line-height: 1.6;
  color: #333;
  text-align: justify;
}

/*-------------------------------------------------------------------*/
/* section notre emplacement */

.emplacement {
  text-align: center;
  padding: 6rem 2rem;
}

.emplacement h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #8A5E3C;
}

.div-emplacement {
  width: 100%;
  max-width: 1100px;
  height: 400px;
  margin: 0 auto 2rem;
  background-image: url(../img/plan.png);
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.container-carte {
  position: relative;
  overflow: hidden;
  width: 100%;;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20%;
  max-width: 1100px; 
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/*----------------------------------------------------------------------*/
/* section avis clients */

.avis {
  background-color: #f9f9f9;
  padding: 6rem 2rem;
  text-align: center;
}

.avis h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
}

.avis-div {
  max-width: 1000px;
  margin: 0 auto;
  font-style: italic;
  color: #555;
  border: 3px solid black;
  padding: 25px;
  border-radius: 8px;
}

.avis-div p:first-child {
  font-size: 2rem;
  margin: 10px;
  quotes: "«" "»";
}

.avis-div p:first-child::before {
  content: open-quote;
  margin-right: 4px;
}

.avis-div p:first-child::after {
  content: close-quote;
  margin-left: 4px;
}

.avis-div p:last-child {
  font-size: 1.5rem;
  color: #777;
  text-align: center;
  margin-top: 15px;
}

/* ---------------------------------------------------------------*/
/* section infolettre */

.infolettre {
  background: url(../img/infolettre.jpg) no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  background-position: center 60%;
  position: relative;
}

/* Overlay pour améliorer la lisibilité */
.infolettre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.infolettre>* {
  position: relative;
  z-index: 2;
}

.infolettre h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.infolettre p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-infolettre .infolettre-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.champ-saisie {
  width: 100%;
  max-width: 400px;
  padding: 12px 15px;
  font-size: 1rem;
  border: none;
  outline: none;
  text-align: center;
  background-color: transparent;
  border-bottom: 3px solid white;
  color: white;
}

.champ-saisie::placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.champ-saisie option {
  color: black;
  background-color: white;
}

/*------------------------------------------------------------------------------*/
/* footer */

.footer {
  background-color: #2F3131;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 300px;
  padding: 20px;
}

.footer-logo {
  max-width: 150px;
  margin: 0 auto 20px;
  display: block;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-socials img {
  width: 30px;
  height: 30px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
}

/*-------------------------------------------------------------------------------*/
/* Reste du CSS */

.section-presentation {
  background-color: #f4f4f4;
  padding: 190px 20px;
  font-family: Arial, sans-serif;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.section-presentation h1 {
  font-size: 2.8rem;
  color: #222;
  margin-bottom: 30px;
}

.section-presentation p {
  font-size: 1.2rem;
  color: #444;
  max-width: 900px;
  margin: 0 auto;
}

/*----------------------------------------------------------------------------*/
/* section menu  */

.menu {
  max-width: 1000px;
  margin: 0 auto;
  padding: 75px 100px;
  border: 2px solid black;
  margin-top: 50px;
  margin-bottom: 50px;
}

h2 {
  text-align: center;
  font-size: 28px;
  margin-top: 40px;
  font-weight: bold;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.item p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

.prix {
  font-size: 16px;
  font-weight: bold;
}

/*----------------------------------------------------------------------------------*/
/* page accueil admin  */
.container {
  display: flex;
  height: 100vh;
}

.section-gauche {
  flex: 1;
  background-image: url(../img/logo-t.png);
  background-color: #2E3030;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-droite {
  flex: 1;
  background-color: #2E3030;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.section-droite h2 {
  margin-bottom: 10px;
  font-size: 4rem;
  color: white;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-droite form label {
  font-size: 1.6rem;
  color: white;
  text-align: center;
  margin: 10px 0 5px;
}

.section-droite form input {
  padding: 15px;
  font-size: 0.8rem;
  border-radius: 10px;
  width: 350px;
  height: 60px;
  margin-bottom: 15px;
  border: none;
  text-align: center;
}

.page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #2E3030;
}

.bouton-admin {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn-admin-2 {
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 20px 50px;
  font-size: 3rem;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  min-width: 250px;
  text-align: center;
}

/*------------------------------------------------------------------------------*/
/* liste employés */
.page-employes {
  /* background-color: #2F3131; */
  color: #333;
  background-color: #2F3131;
  margin: 0;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenu {
  max-width: 800px;
  margin: 0 auto;
}

.titre-principal {
  text-align: center;
  margin-bottom: 2rem;
}

/* Cartes */
.liste-employes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.carte-employe {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.nom-employe {
  margin: 0 0 0.5rem 0;
}

.actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.form-suppression {
  margin: 0;
}

/* Boutons */
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.btn.modifier {
  background-color: #e6fc26;
  color: #000000;
}

.btn.supprimer {
  background-color: #b60012;
  color: #ffffff;
  max-width: 140px;
}

.btn.ajouter {
  background-color: #c3e6cb;
  color: #155724;
}

.btn.retour {
  background-color: #bee5eb;
  color: #0c5460;
}

.boutons-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}


/*-------------------------------------------------------------------------------*/
/* section création d'employés */

.form-container {
  text-align: center;
}

.h1-create {
  margin-bottom: 25px;
  color: white;
  margin-bottom: 100px;
  font-size: 3rem;
}

input {
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  width: 250px;
  font-size: 16px;
}

.button-group {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.body-employe {
  min-height: 100vh;
  height: 100vh;
  background-color: #2F3131; 
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.form-container {
  background-color: #444747; 
  padding: 40px 30px; 
  border-radius: 10px; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px; 
  text-align: center;
}

.h1-create {
  margin-bottom: 40px;
  color: #E0E0E0;
  font-size: 2.5rem;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
  background-color: #666A6A; 
  color: #fff;
  border: 1px solid #777B7B; 
  padding: 15px 20px; 
  margin: 15px 0;
  border-radius: 8px;
  width: calc(100% - 40px);
  max-width: 350px;
  font-size: 1rem;
}

.form-container input::placeholder {
  color: #C0C0C0; 
  opacity: 0.8;
}

.form-container .btn-envoyer {
  background-color: #27c500;
  color: white; 
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 8px; 
  margin-top: 30px; 
  cursor: pointer;
  display: inline-block;
  border: none;
  text-decoration: none; 
  transition: background-color 0.3s ease; 
  width: 100%; 
  max-width: 200px;
}

.form-container .btn-envoyer:hover {
  background-color: #0a5300;
}
.form-container .btn-envoyer + .btn-envoyer {
    margin-top: 15px; 
    background-color: #666A6A;
}

.form-container .btn-envoyer + .btn-envoyer:hover {
    background-color: #505353;
}

/* --- Media Queries --- */

/* Pour les écrans de 768px et moins */
@media (max-width: 768px) {

  /* Header principal */
  .navbar {
    height: 100px;
    gap: 30px;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links li a {
    font-size: 1.8rem;
  }

  .nav-links li .menu {
    font-size: 3rem;
  }

  .logo {
    top: 35%;
  }

  /* Header secondaire */
  .navbar-secondaire {
    height: 100px;
    gap: 40px;
  }

  .nav-links-secondaire {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links-secondaire li a {
    font-size: 1.4rem;
  }

  .nav-links-secondaire li .menu-secondaire {
    font-size: 1.8rem;
  }

  .logo-secondaire {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }

  .logo-secondaire img {
    height: 60px;
  }

  /* Section double (cuisine et service) */
  .section-double {
    padding: 2rem 1rem;
    gap: 3rem;
    font-size: 1.2rem;
  }

  .bloc {
    flex-direction: column;
    text-align: center;
    margin-top: 100px;
    gap: 2rem;
  }

  .bloc-droite {
    flex-direction: column-reverse;
  }

  .image-1,
  .image-2 {
    width: 100%;
    max-width: 350px;
    height: 250px;
    margin: 0 auto;
  }

  .texte {
    width: 100%;
  }

  .texte h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .texte p {
    font-size: 1rem;
    text-align: center;
  }

  /* Section emplacement */
  .emplacement {
    padding: 4rem 1rem;
  }

  .emplacement h2 {
    font-size: 1.6rem;
  }

  .div-emplacement {
    height: 300px;
  }

  .emplacement p {
    font-size: 1rem;
  }

  /* Section avis clients */
  .avis {
    padding: 4rem 1rem;
  }

  .avis h2 {
    font-size: 1.8rem;
  }

  .avis-div {
    padding: 20px;
    border-width: 2px;
  }

  .avis-div p:first-child {
    font-size: 1.4rem;
  }

  .avis-div p:last-child {
    font-size: 1.2rem;
  }

  /* Section infolettre */
  .infolettre {
    padding: 50px 15px;
  }

  .infolettre h2 {
    font-size: 2rem;
  }

  .infolettre p {
    font-size: 1.1rem;
  }

  .form-infolettre .infolettre-div {
    max-width: 400px;
  }

  .champ-saisie {
    max-width: 350px;
    padding: 10px 12px;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    flex: none;
    padding: 15px;
  }

  .footer-logo {
    max-width: 120px;
  }

  /* Section présentation */
  .section-presentation {
    padding: 100px 20px;
  }

  .section-presentation h1 {
    font-size: 2.2rem;
  }

  .section-presentation p {
    font-size: 1.1rem;
  }

  /* Section menu */
  .menu {
    padding: 50px 30px;
    margin: 30px 15px;
  }

  h2 {
    font-size: 24px;
    margin-top: 20px;
  }

  /* Page accueil admin */
  .container {
    flex-direction: column;
  }

  .section-gauche {
    height: 200px;
  }

  .section-droite {
    flex: 1;
    padding: 30px 20px;
  }

  .section-droite h2 {
    font-size: 2.5rem;
  }

  .section-droite form input {
    width: 280px;
    height: 50px;
  }

  .bouton-admin {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .btn-admin-2 {
    font-size: 24px;
    padding: 12px 25px;
  }

  /* Liste employés */
  .employes section {
    padding: 20px;
    margin-top: 50px;
  }

  .employes section div {
    max-width: 500px;
  }
}

/* pour les écrans de 480px et moins */
@media (max-width: 480px) {

  /* Header principal */
  .navbar {
    height: 80px;
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links li a {
    font-size: 1.4rem;
  }

  .nav-links li .menu {
    font-size: 2.2rem;
  }

  /* Section double (cuisine et service) */
  .section-double {
    padding: 1.5rem 1rem;
    gap: 2rem;
    font-size: 1rem;
  }

  .bloc {
    margin-top: 50px;
    gap: 1.5rem;
  }

  .image-1,
  .image-2 {
    height: 200px;
  }

  .texte h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .texte p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Section emplacement */
  .emplacement {
    padding: 3rem 1rem;
  }

  .emplacement h2 {
    font-size: 1.4rem;
  }

  .div-emplacement {
    height: 250px;
    margin-bottom: 1rem;
  }

  .emplacement p {
    font-size: 0.9rem;
  }

  /* Section avis clients */
  .avis {
    padding: 3rem 1rem;
  }

  .avis h2 {
    font-size: 1.5rem;
  }

  .avis-div {
    padding: 15px;
  }

  .avis-div p:first-child {
    font-size: 1.2rem;
    margin: 5px;
  }

  .avis-div p:last-child {
    font-size: 1rem;
  }

  /* Section infolettre */
  .infolettre {
    padding: 40px 15px;
  }

  .infolettre h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
  }

  .infolettre p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .form-infolettre .infolettre-div {
    gap: 12px;
  }

  .champ-saisie {
    max-width: 300px;
    font-size: 0.9rem;
  }

  .btn-envoyer {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  /* Section présentation */
  .section-presentation {
    padding: 80px 15px;
  }

  .section-presentation h1 {
    font-size: 1.8rem;
  }

  .section-presentation p {
    font-size: 1rem;
  }

  /* Section menu */
  .menu {
    padding: 30px 20px;
    margin: 20px 10px;
  }

  h2 {
    font-size: 20px;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .prix {
    align-self: flex-end;
  }

  /* Page accueil admin */
  .section-droite h2 {
    font-size: 2rem;
  }

  .section-droite form label {
    font-size: 1.3rem;
  }

  .section-droite form input {
    width: 250px;
    height: 45px;
  }

  .btn-admin-2 {
    font-size: 20px;
    padding: 10px 20px;
  }

  /* Liste employés */
  .employes h1 {
    padding-top: 50px;
    font-size: 1.5rem;
  }

  .employes section {
    padding: 15px;
    margin-top: 30px;
  }

  .employes section div {
    padding: 12px;
  }

  /* Section création d'employés */
  .h1-create {
    padding-top: 50px;
    margin-bottom: 50px;
    font-size: 1.5rem;
    color: white;
  }

  input {
    width: 200px;
    font-size: 14px;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }


  

  
}