/*
marron foncé : #541A0E
marron clair : #EFD8B8
fond écran : #F8F3ED

marron chaud bouton pizza : #8b5e3c
marron header/hover : #6f472f
encadré PIZZA TRADIZIONALE : #d2b48c
crème background global : #f5f1eb
*/

/* IMPORT POLICE STYLE LOGO */
  @import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital@1&display=swap');
  
*{
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}
  
body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #d2b48c; /* marron clair */
    color: #541A0E;
}

button {
  appearance: none;
  -webkit-appearance: none;
}

/* Structure globale */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} 
  
/********* section menu ********/
  /* NAVBAR */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #541A0E;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1000;
  }

  .logo img {
    height: 70px;
    object-fit: contain;
  }

  .nav-center {
    display: flex;
    gap: 30px;
  }

  .nav-center a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    position: relative;
  }

  /* Animation underline orange */
  .nav-center a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: orange;
    transition: 0.3s;
  }

  .nav-center a:hover::after {
    width: 100%;
  }

  /* Bouton appel */
  .call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    background: #541A0E; /* vert appel : #00C853 */
    border: 2px solid #EFD8B8;
    color: #EFD8B8;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
  }
  /* Hover */
  .call-btn:hover {
    background: #EFD8B8; 
    border: 2px solid #541A0E;
    color: #541A0E;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  }
  /* Icône */
  .call-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
  }
  .call-btn svg:hover {
    fill: #541A0E;
  }
  
  /* BURGER */
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
  }

  /* MOBILE MENU */
.mobile-menu {
  position: fixed; /* ← change absolute → fixed */
  top: 70px;
  left: 0;
  width: 100%;
  background: #EFD8B8;
  color: #541A0E;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  /* animation */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  max-height: 400px; /* hauteur suffisante */
}

.mobile-menu a {
  width: 100%;
  padding: 15px;
  border-top: 1px solid #222;
  color: #541A0E;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: #541A0E;
  color: #EFD8B8;;
}

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .nav-center,
    .cta {
      display: none;
    }

    .menu-toggle {
      display: flex;
    }
  }
  
/********* section centrale ********/
.content {
    flex: 1;
    display: flex;
    margin-top: 70px;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.panel {
    background-color: #f5deb3;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
}

.panel-small {
    background-color: #f5deb3;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
}

h4, h5 {
    color: #5a2d0c;
    margin: 10px 0;
}

.underline {
    text-decoration: underline;
}

.form-group {
    margin: 15px 0;
    text-align: left;
}

label {
    color: #5a2d0c;
    font-weight: bold;
}

input[type="password"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #5a2d0c;
    margin-top: 5px;
}

.btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #5a2d0c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: orange;
}

.center {
  text-align: center;
  margin-bottom: 20px;
}

.alert {
  color: red;
  text-align: center;
  margin: 20px 0;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.card {
  flex: 1;
  min-width: 250px;
  background-color: #fff3e0;
  padding: 15px;
  border-radius: 8px;
}

.card h4 {
  margin-bottom: 10px;
}

.card a {
  display: block;
  margin: 5px 0;
  color: #5a2d0c;
  text-decoration: none;
}

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

.upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.upload input[type="text"],
.upload input[type="file"] {
  padding: 8px;
  border: 1px solid #5a2d0c;
  border-radius: 5px;
}

.info {
  font-size: 12px;
  color: #5a2d0c;
  margin-top: 10px;
}

/* Champ recherche amélioré */
.search-live {
  width: 100%;
  padding: 12px 15px;
  margin: 20px 0 25px 0; /* espace avec le tableau */
  border: 2px solid #5a2d0c;
  border-radius: 8px;
  font-size: 14px;
  color: #5a2d0c;
  background-color: #fff8f0;
  outline: none;
  transition: all 0.3s ease;
}

/* Texte placeholder */
.search-live::placeholder {
  color: #a67c52;
  font-style: italic;
}

/* Effet focus (quand on clique dedans) */
.search-live:focus {
  border-color: orange;
  box-shadow: 0 0 8px rgba(255,165,0,0.4);
  background-color: #ffffff;
}

/* Texte tapé */
.search-live:focus,
.search-live:not(:placeholder-shown) {
  font-weight: 500;
}

/* Tableau */
.table-container {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff3e0;
}

thead {
  background-color: #5a2d0c;
  color: white;
  cursor: pointer;
}

th, td {
  padding: 10px;
}

tbody tr:nth-child(even) {
  background-color: #f5deb3;
}

tbody tr:hover {
  background-color: orange;
}

td {
  color: #5a2d0c;
}

/* Liens */
.action-link {
  color: #5a2d0c;
  text-decoration: none;
  font-weight: bold;
}

.action-link:hover {
  color: yellow;
}

.danger {
  color: #8b0000;
}

/********* bouton retour ********/
.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60px; 
}

/* Bouton retour à gauche */
.btn-retour {
 /* centrage vertical précis
 position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);  */
  background-color: #5a2d0c;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-retour:hover {
  background-color: orange;
}

/* Bouton nav précédent et suivant */
.btn-nav {
  display: flex;
  top: 50%;
  transform: translateY(-50%); /* centrage vertical précis */
  background-color: #5a2d0c;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.btn-nav:hover {
  background-color: orange;
}

/* Bloc centré */
.top-actions {
  display: flex;
  align-items: center;
}

/* gauche */
.btn-retour {
  background-color: #5a2d0c;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

.btn-retour:hover {
  background-color: orange;
}

/* centre réel */
.nav-centre {
  flex: 1;              /* prend tout l'espace restant */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* boutons nav */
.btn-nav {
  background-color: #5a2d0c;
  color: white;
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
  white-space: nowrap;
}

.btn-nav:hover {
  background-color: orange;
}
@media (max-width: 768px) {
  .top-actions {
    flex-wrap: wrap;
  }

  .btn-retour {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav-centre {
    width: 100%;
    justify-content: center;
  }
}


/* Bouton New */
.btn-new {
  background-color: #5a2d0c;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-new:hover {
  background-color: orange;
}


/********* page modifcarte ********/

/* Image + navigation */
.nav-photo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}


/* Layout 2 colonnes */
.edit-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Image */
.edit-image {
  flex: 0 0 320px;
}

.photo-preview {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Formulaire */
.edit-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Ligne de champ */
.form-row {
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-row label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #5a2d0c;
  text-align: left;
}

/* Inputs modernes */
input[type="text"],
select,
textarea,
input[type="file"] {
  padding: 10px 12px;
  border: 2px solid #5a2d0c;
  border-radius: 8px;
  background-color: #fff8f0;
  color: #5a2d0c;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Focus */
input:focus,
select:focus,
textarea:focus {
  border-color: orange;
  box-shadow: 0 0 8px rgba(255,165,0,0.4);
  outline: none;
  background-color: #fff;
}

/* Textarea */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
  .edit-layout {
    flex-direction: column;
  }

  .edit-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* page suppression */
/* Message warning */
.warning {
  margin: 15px 0;
  color: #8b0000;
  font-weight: bold;
}

/* Succès */
.success {
  color: green;
}

/* Bloc confirmation */
.confirm-box {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff3e0;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Ligne info */
.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #d2b48c;
  color: #5a2d0c;
}

.confirm-row span {
  font-weight: bold;
}

/* Bouton danger */
.btn.danger {
  background-color: #8b0000;
  color: yellow;
}

.btn.danger:hover {
  background-color: orange;
}

/* Conteneur de centrage vertical + horizontal */
.center-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Ton alert */
.alert {
  max-width: 400px;
  width: 100%;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
}

/* Version succès */
.alert.success {
  background-color: #e6ffe6;
  border: 1px solid green;
  color: green;
}

.alert h2 {
  margin: 0;
}



/********* section footer ********/
  /* style footer */

  .footer-luxe {
    background: #0b0b0b;
    color: #cfcfcf;
    font-size: 13px;
    padding: 20px 0;
    position: relative;
  }

  .footer-line {
    position: absolute;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
  }

  .footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
  }

  /* TEXTE LOGO */
  .footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .footer-left img {
    height: 52px;
    filter: brightness(0.9);
  }
  .footer-brand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 22px;
    color: #888;
    letter-spacing: 1px;
  }

  /* ICONES */
  .footer-icons {
    display: flex;
    gap: 25px;
  }

  .footer-icons p {
    color: #888;
  }
  .icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: 0.3s;
  }

  .icon-box svg {
    width: 24px;
    height: 24px;
    fill: #777;
    transition: 0.3s;
  }

  /* Hover luxe */
  .icon-box:hover {
    border: 1px solid #d4af37;
    box-shadow: 0 0 12px rgba(212,175,55,0.6);
  }

  .icon-box:hover svg {
    fill: #d4af37;
  }

  .footer-right {
    color: #888;
    white-space: nowrap;
  }

  /* RESPONSIVE */
  @media (max-width: 700px) {
    .footer-container {
      flex-direction: column;
      gap: 15px;
      text-align: center;
    }
  }


  
/********* annexes ********/
/* pour agrandir une image au clic dessus */
/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* pour agrandir une image au clic dessus */
  /* style pour un champ input disabled */
  .no-interaction {
  pointer-events: none;
  background-color: #d2b48c !important; /* couleur de fond */
  color: #ffffff !important;               /* optionnel : couleur du texte */
}

  
  /* style pour ligne de sépartion horizontale */
  hr {
    border: solid #FFFFF1;
    border-width: 1px 0 0;
    clear: both;
    margin: 1.25rem 0 1.1875rem;
    height: 0; }  
  
  /* ligne de sépartion horizontale simple pointillée */
  hr.style-three {
    border: 0;
    border-bottom: 1px dashed #FFFFF1;
    background: #999;
  } 
  /* ligne de sépartion horizontale dégradée */
  hr.style-two {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(253,205,7,0), rgba(253,205,7,0.75), rgba(253,205,7,0));
    background-image:    -moz-linear-gradient(left, rgba(253,205,7,0), rgba(253,205,7,0.75), rgba(253,205,7,0));
    background-image:     -ms-linear-gradient(left, rgba(253,205,7,0), rgba(253,205,7,0.75), rgba(253,205,7,0));
    background-image:      -o-linear-gradient(left, rgba(253,205,7,0), rgba(253,205,7,0.75), rgba(253,205,7,0));
  }
  /* ligne de sépartion horizontale avec motif à gauche et à droite */
  hr.style-seven {
    height: 30px;
    border-style: solid;
    border-color: #000001;
    border-width: 1px 0 0 0;
    border-radius: 20px;
  }
  hr.style-seven:before { /* Not really supposed to work, but does */
    display: block;
    content: "";
    height: 30px;
    margin-top: -31px;
    border-style: solid;
    border-color: #FFFFF1;
    border-width: 0 0 1px 0;
    border-radius: 20px;
  }