/* =========================================================
   🎯 DESIGN TOKENS (VARIABLES GLOBALES)
========================================================= */
:root {
  --bg: #f0e6d2;
  --bg2: #e0d4b8;
  --txt: #000000;
  --deco-hover: rgba(0, 0, 0, 0.2);
  --overlay-width-desktop: 40%;
  --overlay-width-mobile: 100%;
}

/* =========================================================
   🌗 DARK MODE VARIABLES
========================================================= */
html {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg2: #1e1e1e;
    --txt: #efefef;
  }

  body {
    --deco-hover: rgba(255, 255, 255, 0.2);
  }
}

/* =========================================================
   🧱 BASE
========================================================= */
body {
  margin: 0;
  padding: 0;
  font-family: "Crimson Text", serif;
  font-size: 1.15em; /* Un poil plus grand pour le confort de lecture */
  color: var(--txt);
  background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("assets/wood_texture.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* On s'assure que le contenu pousse le footer vers le bas */
main, .account-container, .auth-container {
  flex: 1;
}

h1,
h2,
h3 {
  font-family: "Parisienne", cursive;
  font-size: 2.5em;
  margin: 0 0 10px 0;
}

/* =========================================================
   🧭 NAVIGATION
========================================================= */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  height: 140px;
  position: sticky;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  background-color: var(--bg);
  color: var(--txt);
}

/* LOGO */
.logo img {
  height: 125px;
  transition: opacity 0.3s ease;
}

.logo-light {
  display: inline;
}
.logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none;
  }
  .logo-dark {
    display: inline;
  }
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-size: 1.3em;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  border-radius: 3px;
  transition:
    background 0.3s,
    transform 0.2s;
}

.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* BURGER */
.nav-toggle {
  display: none;
  font-size: 2.5em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  transition:
    background 0.3s,
    transform 0.2s;
}

.logo {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

/* 👤 logo compte */
.nav-logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

/* ☰ burger */
.nav-toggle {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

/* =========================================================
   🎞 SLIDESHOW
========================================================= */
.super-slides {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  z-index: 1;
}

.super-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.super-slide.active {
  opacity: 1;
  z-index: 2;
}

.super-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* images spécifiques */
.Terrasse {
  object-position: 100% 80%;
}
.Intérieur {
  object-position: 100% 60%;
}
.Comptoir {
  object-position: 0% 30%;
}

/* =========================================================
   🧾 OVERLAY SLIDES
========================================================= */
.super-slide .overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--overlay-width-desktop);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  color: inherit;
  z-index: 3;
  background: linear-gradient(
    to right,
    var(--bg) 30%,
    rgba(255, 255, 255, 0) 100%
  );
}

@media (prefers-color-scheme: dark) {
  .super-slide .overlay {
    background: linear-gradient(
      to right,
      var(--bg) 30%,
      rgba(18, 18, 18, 0) 100%
    );
  }
}

/* =========================================================
   🔘 BUTTONS (GLOBAL)
========================================================= */
button,
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1.2em;
  font-weight: 600;
  font-family: "Parisienne", cursive;
  color: #fff;
  background: linear-gradient(135deg, #ff8a65, #ff5722);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff7043, #f4511e);
}

/* hitbox */
.super-slide .overlay button a {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   📐 SPLIT SECTIONS
========================================================= */
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 10px 5%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.split.reverse {
  flex-direction: row-reverse;
}

.split-text {
  flex: 1;
}
.split-text h2 {
  margin-bottom: 20px;
}

.split-image {
  flex: 1;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   🏠 ABOUT PAGE
========================================================= */
main.about {
  background: var(--bg);
  min-height: 100vh;
  width: 100%;
}

/* =========================================================
   📄 CONTACT PAGE
========================================================= */
.contact-page {
  background: var(--bg);
  min-height: 100vh;
  width: 100%;
}

.hero-contact {
  position: relative;
  height: 60vh;
  background: url("assets/hero.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-contact .overlay {
  position: absolute;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  color: var(--txt);
}

.hero-content h1 {
  font-family: "Parisienne", cursive;
  font-size: 4rem;
}

.hero-content p {
  font-family: "Crimson Text", sans-serif;
  font-size: 1.2rem;
}

/* MAP */
.map-section {
  padding: 60px 20px;
  text-align: center;
}

.map-container {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  padding-bottom: 20px;
}

/* INFOS */
.infos {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

iframe {
  margin-bottom: 50px;
}

.info-card {
  background: var(--bg2);
  padding: 25px;
  border-radius: 15px;
  width: 250px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--txt);
}

.info-card:hover {
  transform: translateY(-8px);
}

.hours p {
  margin: 10px 0;
  font-family: "Inter", sans-serif;
}

.hours strong {
  font-weight: 600;
}

/* SOCIAL */
.socials {
  text-align: center;
  padding: 60px 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  margin: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  background: black;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
  background: #ff4d6d;
}

.open-status {
  margin-top: 10px;
  font-weight: 600;
  font-family: "Crimson Text", sans-serif;
}

/* =========================================================
   🧾 HOME + RESERVATION
========================================================= */
.home {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--bg);
}

.home h1 {
  color: var(--txt);
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-align: center;
}

/* FORM */
#reservationForm {
  background: var(--bg2);
  padding: 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(10px);
}

#reservationForm input {
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: var(--bg);
  color: var(--txt);
  font-size: 1rem;
  transition: 0.2s;
}

#reservationForm input::placeholder {
  color: var(--txt);
}

#reservationForm input:focus {
  background: var(--bg2);
  box-shadow: 0 0 0 2px #ff4d6d;
}

#reservationForm button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ff4d6d;
  color: var(--txt);
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

#reservationForm button:hover {
  background: #ff2e55;
  transform: translateY(-2px);
}

#message {
  margin-top: 20px;
  color: var(--txt);
  font-size: 1.1rem;
  text-align: center;
}

/* =========================================================
   🦶 FOOTER
========================================================= */
footer {
  display: grid;
  text-align: center;
  padding: 15px 0;
  background-color: inherit;
  color: inherit;
}

footer a {
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

footer a:hover {
  opacity: 0.7;
}

/* =========================================================
   📱 RESPONSIVE
========================================================= */
@media (max-width: 600px) {
  .main-nav {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    align-items: center;
    padding: 10px 15px;
    height: auto;
  }

  /* 🍽 LOGO RESTO */
  .logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .logo img {
    height: 90px;
  }

  /* 👤 LOGO CLIENT */
  .nav-logo {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .nav-logo-img {
    height: 40px;
  }

  /* ☰ BURGER */
  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav-links {
    grid-column: 1 / 3;
    grid-row: 2;
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 12px 0;
  }

  .super-slides {
    height: calc(100vh - 80px);
  }

  .super-slide .overlay {
    width: 100%;
    padding: 20px;
    align-items: flex-start;
    text-align: left;
    background: linear-gradient(
      to bottom,
      var(--bg) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  @media (prefers-color-scheme: dark) {
    .super-slide .overlay {
      background: linear-gradient(
        to bottom,
        var(--bg) 0%,
        rgba(18, 18, 18, 0) 100%
      );
    }
  }

  .split,
  .split.reverse {
    flex-direction: column;
  }

  .hero-contact {
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* =========================================================
   ✨ DESIGN DES FORMULAIRES RETRO / CHIC (Login, Signup, Profil)
========================================================= */
.auth-container, .account-container {
  max-width: 450px;
  margin: 60px auto;
  padding: 40px;
  background: rgba(26, 22, 16, 0.85); /* Fond sombre semi-transparent style bistrot */
  border: 1px solid rgba(240, 230, 210, 0.15);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px); /* Flou moderne en arrière-plan */
  text-align: center;
}

/* Pour la page admin qui a besoin de plus de largeur (Tableaux + colonnes) */
.account-container.admin-wide {
  max-width: 950px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .account-container.admin-wide {
    grid-template-columns: 1fr;
    margin: 20px;
    padding: 20px;
  }
}

/* Typographies des formulaires */
.auth-container h1, .account-container h2, .account-container h3 {
  font-family: "Parisienne", cursive;
  color: #f0e6d2;
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 2.5em;
}

.account-container h2 { font-size: 2.3em; }
.account-container h3 { font-family: "Inter", sans-serif; font-size: 1.3em; font-weight: 500; letter-spacing: 0.05em; }

/* Éléments de champs de saisie */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e0d4b8;
  margin-bottom: 8px;
}

.auth-container input, .account-container input, .account-container select {
  width: 100%;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(240, 230, 210, 0.25);
  border-radius: 6px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 0.95em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.auth-container input:focus, .account-container input:focus, .account-container select:focus {
  border-color: #f0e6d2;
  background: rgba(0, 0, 0, 0.6);
  outline: none;
  box-shadow: 0 0 8px rgba(240, 230, 210, 0.2);
}

/* Boutons Gastronomiques */
.btn-premium {
  width: 100%;
  padding: 15px;
  background: #f0e6d2;
  color: #121212;
  border: none;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-premium:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(240, 230, 210, 0.3);
}

.auth-switch-link {
  margin-top: 25px;
  font-family: "Inter", sans-serif;
  font-size: 0.9s;
  color: #e0d4b8;
}

.auth-switch-link a {
  color: #f0e6d2;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border 0.3s;
}

.auth-switch-link a:hover {
  border-color: #f0e6d2;
}

/* Design du tableau d'administration */
.admin-table-wrapper {
  overflow-x: auto;
  margin-top: 15px;
}

.account-container table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  font-size: 0.9em;
  text-align: left;
}

.account-container th {
  background: rgba(240, 230, 210, 0.1);
  color: #f0e6d2;
  padding: 12px;
  font-weight: 500;
  border-bottom: 2px solid rgba(240, 230, 210, 0.2);
}

.account-container td {
  padding: 12px;
  border-bottom: 1px solid rgba(240, 230, 210, 0.1);
  color: #e0d4b8;
}

.account-container tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Boutons d'action secondaires (Suppression, déconnexion) */
.btn-danger-outline {
  background: transparent;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.85em;
  transition: all 0.3s;
}

.btn-danger-outline:hover {
  background: #e74c3c;
  color: #fff;
}

/* Nettoyage des formulaires */
form {
    display: flex;
    flex-direction: column;
    max-width: 400px; /* La largeur de ta boîte */
    margin: 20px auto;
    padding: 20px;
    background: var(--bg2); /* Utilise la couleur de fond du site */
    border-radius: 8px;
}

/* Style du sous-titre de la boîte */
.auth-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
  text-align: center;
}

/* Petit séparateur élégant avant la date */
.form-divider {
  text-align: center;
  border-bottom: 1px solid #eee;
  line-height: 0.1em;
  margin: 25px 0 20px;
  width: 100%;
}
.form-divider span {
  background: #fff; /* À adapter selon le fond de ton auth-box */
  padding: 0 10px;
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* On force le select à copier EXACTEMENT le look de tes inputs de login */
.auth-input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #333;
  appearance: none; /* Enlève la flèche moche du navigateur */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-input-group select:focus {
  border-color: #333; /* Ou ta couleur principale de focus */
  background-color: #fff;
  outline: none;
}

/* Harmonisation du champ date */
.auth-input-group input[type="date"] {
  font-family: 'Inter', sans-serif;
  color: #333;
  cursor: pointer;
}