/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --rouge:    #1d6fbd;   /* bleu principal */
  --rouge-dk: #155fa0;   /* bleu foncé hover */
  --brun:     #1a2d4a;   /* marine nuit (header, titres) */
  --beige:    #f0f5fb;   /* fond clair bleu-blanc */
  --beige2:   #c8daf0;   /* séparateurs bleu clair */
  --texte:    #1a2535;   /* texte marine foncé */
  --gris:     #5a6a7a;   /* gris-bleu */
  --blanc:    #fff;
  --radius:   8px;
  --shadow:   0 4px 18px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--texte);
  background: var(--beige);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #1a2d4a 0%, #1e3d6a 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  flex-shrink: 0;
}
.logo-icon  { font-size: 1.5rem; }
.logo-text  { font-size: 1.6rem; font-weight: bold; color: var(--blanc); letter-spacing: .04em; }
.logo-sub   { font-size: .8rem; color: #8ab8e0; font-style: italic; }

header nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

header nav a {
  color: #d4c5b0;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
header nav a:hover,
header nav a.active {
  color: var(--blanc);
  border-color: var(--rouge);
}

/* Lien admin discret */
header nav a.nav-admin {
  opacity: .4;
  font-size: 1rem;
  border-bottom: none !important;
  padding: 0 .2rem;
  letter-spacing: 0;
  transition: opacity .2s;
}
header nav a.nav-admin:hover { opacity: 1; }
.mobile-nav a.nav-admin { color: #8ab8e0; opacity: .7; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--brun);
  padding: .5rem 1.5rem 1rem;
}
.mobile-nav a {
  color: #d4c5b0;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .05em;
}
.mobile-nav.open { display: flex; }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  background: var(--rouge);
  color: var(--blanc);
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:hover { background: var(--rouge-dk); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--rouge);
  color: var(--rouge);
}
.btn-outline:hover { background: var(--rouge); color: var(--blanc); }

/* ===== HERO ===== */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(rgba(15,30,60,.65), rgba(20,45,80,.5)),
    url('img/deventure.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  max-width: 700px;
  padding: 2rem 1.5rem;
}
.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--blanc);
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-overlay p {
  color: #f0dfc0;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* ===== ATOUTS ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}
.feature {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.feat-icon { font-size: 2.5rem; margin-bottom: .8rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .6rem; color: var(--brun); }
.feature p  { font-size: .92rem; color: var(--gris); }

/* ===== GALERIE STRIP ===== */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 220px;
}
.gal-item {
  background: #c8a070 center/cover no-repeat;
  transition: transform .3s;
  overflow: hidden;
}
.gal-item:hover { transform: scale(1.04); z-index: 1; }

/* ===== HORAIRES ===== */
.hours {
  max-width: 600px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  text-align: center;
}
.hours h2 { font-size: 1.7rem; margin-bottom: 1.5rem; color: var(--brun); }
.hours table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.hours td {
  padding: .65rem 1rem;
  font-size: .95rem;
  border-bottom: 1px solid var(--beige2);
}
.hours td:first-child { text-align: left; font-weight: bold; }
.hours td:last-child  { text-align: right; color: var(--gris); }

/* ===== PAGE TITLE ===== */
.page-title {
  background: linear-gradient(135deg, #1a2d4a 0%, #1e3d6a 100%);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
}
.page-title h1 { color: var(--blanc); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-title p  { color: #8ab8e0; margin-top: .5rem; font-style: italic; }

/* ===== MENU DU JOUR ===== */
.menu-du-jour {
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.mdj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .5rem;
}
.mdj-header h2 { font-size: 1.5rem; color: var(--brun); }

.btn-edit {
  background: var(--beige2);
  border: 1px solid #c8a070;
  color: var(--brun);
  padding: .4rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .88rem;
  font-family: inherit;
  transition: background .2s;
}
.btn-edit:hover { background: #d4c5b0; }

.mdj-date {
  font-size: .88rem;
  color: var(--gris);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.mdj-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-left: 5px solid var(--rouge);
}
.mdj-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rouge); margin-bottom: .3rem; }
.mdj-col p  { font-size: .95rem; color: var(--texte); }

/* FORMULAIRE MENU DU JOUR */
.mdj-form {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border-top: 4px solid var(--rouge);
}
.form-row { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.form-row label { font-size: .85rem; font-weight: bold; color: var(--brun); }
.form-row input,
.form-row select,
.form-row textarea {
  padding: .55rem .8rem;
  border: 1px solid #c8a070;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--beige);
  color: var(--texte);
  transition: border-color .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: none; border-color: var(--rouge); }

.form-actions { display: flex; gap: 1rem; margin-top: .5rem; }
.form-error { color: var(--rouge); font-size: .88rem; margin-top: .6rem; }
.hidden { display: none !important; }

/* ===== MENUS FIXES ===== */
.menus-fixes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
}

.menu-card {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  position: relative;
  border-top: 4px solid var(--beige2);
  transition: transform .2s;
}
.menu-card:hover { transform: translateY(-4px); }
.menu-card.featured { border-top-color: var(--rouge); }

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}
.menu-card h3 { font-size: 1.2rem; color: var(--brun); }
.price { font-size: 1.3rem; font-weight: bold; color: var(--rouge); }

.menu-card ul { list-style: none; }
.menu-card ul li {
  padding: .4rem 0;
  border-bottom: 1px dashed var(--beige2);
  font-size: .93rem;
  color: var(--texte);
}
.menu-card ul li:last-child { border-bottom: none; color: var(--gris); }

.badge {
  position: absolute;
  top: -1px; right: 1.2rem;
  background: var(--rouge);
  color: var(--blanc);
  font-size: .75rem;
  padding: .2rem .7rem;
  border-radius: 0 0 6px 6px;
  letter-spacing: .05em;
}

/* ===== CONTACT ===== */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: 1.5rem;
  color: var(--brun);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--rouge);
}

.info-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-block strong { display: block; font-size: .9rem; color: var(--brun); margin-bottom: .2rem; }
.info-block p, .info-block a { font-size: .95rem; color: var(--gris); }
.info-block a:hover { color: var(--rouge); }

.map-placeholder { margin-top: 1.5rem; }
.map-placeholder small { display: block; text-align: right; margin-top: .3rem; font-size: .8rem; color: var(--gris); }

.contact-form-wrap {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.two-col { flex-direction: row; gap: 1rem; }
.two-col > div { flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.two-col label { font-size: .85rem; font-weight: bold; color: var(--brun); }

.form-note { font-size: .82rem; color: var(--gris); margin-top: .8rem; font-style: italic; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, #1a2d4a, #1e3d6a);
  color: #a0b8d0;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
}

/* ===== PAGE ADMIN ===== */
.admin-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.admin-box {
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.admin-box--large {
  max-width: 700px;
  text-align: left;
}

.admin-icon { font-size: 2.5rem; margin-bottom: .6rem; }

.admin-box h1 {
  font-size: 1.5rem;
  color: var(--brun);
  margin-bottom: .3rem;
}

.admin-sub {
  color: var(--gris);
  font-size: .88rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.admin-box .form-row { text-align: left; }

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .3rem;
}
.admin-header > div { display: flex; align-items: center; gap: .8rem; }
.admin-header h1 { margin-bottom: 0; }
.admin-header .admin-icon { font-size: 1.8rem; margin-bottom: 0; }

.admin-saved {
  color: #2a7a3a;
  font-size: .9rem;
  margin-top: .8rem;
  font-weight: bold;
}

/* ===== CARTE PHOTO (menus) ===== */
.carte-photo-section {
  max-width: 860px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.carte-photo-section h2 {
  font-size: 1.7rem;
  color: var(--brun);
  margin-bottom: .6rem;
}
.carte-intro {
  color: var(--gris);
  font-style: italic;
  margin-bottom: 1.8rem;
  font-size: .95rem;
}
.carte-photo-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid var(--beige2);
}
.carte-photo {
  width: 100%;
  display: block;
  transition: transform .4s;
  cursor: zoom-in;
}
.carte-photo:hover { transform: scale(1.02); }

/* ===== CARTE DES VINS ===== */
.vins-intro {
  max-width: 860px;
  margin: 2.5rem auto .5rem;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--gris);
  font-style: italic;
  font-size: 1rem;
}

.vins-filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  max-width: 1100px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.5rem;
}

.filtre {
  background: var(--blanc);
  border: 2px solid var(--beige2);
  color: var(--brun);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
}
.filtre:hover  { border-color: var(--rouge); color: var(--rouge); }
.filtre.active { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }

.vins-liste {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.vin-categorie { transition: opacity .3s; }
.vin-categorie.hidden { display: none; }

.cat-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.35rem;
  color: var(--brun);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--beige2);
}

.cat-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rouge-dot     { background: #9b2222; }
.blanc-dot     { background: #e8d9a0; border: 1px solid #c8a070; }
.rose-dot      { background: #e8a0b0; }
.petillant-dot { background: #c8d8e8; border: 1px solid #8899aa; }
.digestif-dot  { background: #c8a070; }

.vin-table-wrap { overflow-x: auto; }

.vin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--blanc);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.vin-table thead tr { background: linear-gradient(135deg, #1a2d4a, #1e3d6a); }
.vin-table th {
  color: #8ab8e0;
  text-align: left;
  padding: .8rem 1rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.vin-table th:last-child,
.vin-table th:nth-last-child(2) { text-align: right; }

.vin-table td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--beige2);
  vertical-align: top;
  color: var(--texte);
}
.vin-table td:last-child,
.vin-table td:nth-last-child(2) { text-align: right; white-space: nowrap; color: var(--rouge); font-weight: bold; }
.vin-table td small { color: var(--gris); font-size: .83rem; }
.vin-table tbody tr:last-child td { border-bottom: none; }
.vin-table tbody tr:hover td { background: var(--beige); }

.vins-note {
  max-width: 860px;
  margin: 0 auto 4rem;
  padding: 1.5rem 2rem;
  background: var(--blanc);
  border-radius: var(--radius);
  border-left: 5px solid var(--rouge);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: .95rem;
  color: var(--gris);
}
.vins-note a { color: var(--rouge); text-decoration: underline; }

/* ===== GALERIE ===== */
.galerie-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gal-card { border-radius: var(--radius); overflow: hidden; }
.gal-card.large { grid-column: span 2; }

.gal-thumb {
  width: 100%; height: 100%;
  background: #c8a070 center/cover no-repeat;
  position: relative;
  cursor: pointer;
  transition: transform .3s;
}
.gal-thumb:hover { transform: scale(1.03); }

.gal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,10,0,.5);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .25s;
}
.gal-thumb:hover .gal-overlay { opacity: 1; }
.gal-overlay span {
  color: var(--blanc);
  font-size: .9rem;
  font-style: italic;
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
}

/* Placeholder coloré quand pas de vraie photo */
.gal-thumb[style*="img/gril"]      { background-color: #6b3a1f; }
.gal-thumb[style*="img/plat"]      { background-color: #4a2c12; }
.gal-thumb[style*="img/salle"]     { background-color: #3d2a1a; }
.gal-thumb[style*="img/terrasse"]  { background-color: #5a3820; }

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lb-img-wrap p {
  color: #d4c5b0;
  margin-top: .7rem;
  font-style: italic;
  font-size: .95rem;
}

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--blanc);
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--rouge); }
.lb-close { top: 1.5rem; right: 1.5rem; font-size: 1.2rem; }
.lb-prev  { left: 1.5rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ===== TRIPADVISOR ===== */
.footer-ta {
  color: #5bc0de;
  text-decoration: none;
  transition: color .2s;
}
.footer-ta:hover { color: #fff; }

.tripadvisor-link {
  display: inline-block;
  margin-top: .4rem;
  color: var(--rouge);
  font-weight: bold;
  font-size: .95rem;
  transition: color .2s;
}
.tripadvisor-link:hover { color: var(--rouge-dk); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header nav { display: none; }
  .nav-toggle { display: block; }

  .gallery-strip { grid-template-columns: repeat(2, 1fr); height: 300px; }

  .contact-body { grid-template-columns: 1fr; }

  .two-col { flex-direction: column; }
}

@media (max-width: 480px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; height: 200px; }
  .menus-fixes   { grid-template-columns: 1fr; }
}
