/* ═══════════════════════════════════════════
   QUESTCETENPENSES.FR — CSS Principal
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --vert:      #3a5a40;
  --vert-cl:   #5a7a5f;
  --vert-fonce:#2c4530;
  --creme:     #f7f3ec;
  --brun:      #6b4c35;
  --or:        #c8a96e;
  --or-cl:     #e8c98e;
  --texte:     #2a2118;
  --gris:      #777;
  --gris-cl:   #f0ede8;
  --rouge:     #c0392b;
  --blanc:     #ffffff;
  --ombre:     0 4px 24px rgba(0,0,0,0.08);
  --rayon:     8px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--creme);
  color: var(--texte);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPO ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 0.8rem;
}

.section-titre {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  color: var(--texte);
  margin-bottom: 1rem;
}

.section-sous {
  color: var(--gris);
  font-size: 1rem;
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto;
}

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--rayon);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--vert); color: var(--blanc); }
.btn-primary:hover { background: var(--vert-cl); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(58,90,64,0.3); }
.btn-outline { background: transparent; color: var(--vert); border: 2px solid var(--vert); }
.btn-outline:hover { background: var(--vert); color: var(--blanc); }
.btn-or { background: var(--or); color: var(--blanc); }
.btn-or:hover { background: var(--or-cl); color: var(--texte); }

/* ════════════════════════════════
   COOKIE BANNER
   ════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--texte);
  color: rgba(255,255,255,0.88);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 0.88rem; flex: 1; min-width: 240px; }
#cookie-banner a { color: var(--or); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btns button {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}
#cookie-accept { background: var(--vert); color: #fff; }
#cookie-refuse { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.3); }
#cookie-refuse:hover { color: #fff; }

/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(247,243,236,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200,169,110,0.25);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  transition: box-shadow 0.3s;
}
#navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.1); }

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
  margin: 0 auto;
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--texte);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--vert); background: rgba(58,90,64,0.07); }

.nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-tel {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vert);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-tel:hover { color: var(--vert-fonce); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--creme);
  border-bottom: 1px solid rgba(200,169,110,0.3);
  z-index: 999;
  padding: 1rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a {
  display: block;
  padding: 0.85rem 5vw;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texte);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.2s;
}
.mobile-menu ul li a:hover { background: rgba(58,90,64,0.07); color: var(--vert); }

/* ════════════════════════════════
   HERO
   ════════════════════════════════ */
#accueil {
  min-height: 100vh;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 5vw;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brun);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-titre {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--texte);
  margin-bottom: 1.2rem;
}
.hero-titre em { font-style: normal; color: var(--vert); }

.hero-desc {
  font-size: 1.05rem;
  color: var(--gris);
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--texte);
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--vert); border-radius: 50%; flex-shrink: 0; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visuel {
  position: relative;
  overflow: hidden;
}
.hero-visuel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-visuel .slide.active { opacity: 1; }
.hero-visuel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.hero-slide-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none; cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.hero-slide-dots button.active { background: #fff; width: 24px; border-radius: 4px; }

/* ════════════════════════════════
   SECTION GÉNÉRIQUE
   ════════════════════════════════ */
.section {
  padding: 5rem 5vw;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.divider {
  width: 48px; height: 3px;
  background: var(--or);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ════════════════════════════════
   SECTION MENUS SEMAINE
   ════════════════════════════════ */
#menus { background: var(--blanc); }

.menus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.menu-card {
  background: var(--creme);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid rgba(200,169,110,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.13); }

.menu-card-img {
  aspect-ratio: 21/29.7;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s; }
.menu-card:hover .menu-card-img img { transform: scale(1.02); }

.menu-card-empty {
  aspect-ratio: 21/29.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #bbb;
  background: #fafafa;
}
.menu-card-empty svg { opacity: 0.3; }
.menu-card-empty p { font-size: 0.85rem; }

.menu-card-footer {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-card-label { font-size: 0.85rem; font-weight: 600; color: var(--vert); text-transform: uppercase; letter-spacing: 0.08em; }
.menu-card-zoom {
  background: none; border: none; cursor: pointer;
  color: var(--gris); font-size: 1.1rem;
  padding: 0.3rem;
  transition: color 0.2s;
}
.menu-card-zoom:hover { color: var(--vert); }

/* ════════════════════════════════
   LIGHTBOX
   ════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,10,10,0.94);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lb-close {
  position: absolute; top: 1.5rem; right: 2rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff; font-size: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.2); }

/* ════════════════════════════════
   CARTE / TARIFS
   ════════════════════════════════ */
#carte { background: var(--creme); }

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.tarif-card {
  background: var(--blanc);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ombre);
}
.tarif-head {
  background: var(--vert);
  color: var(--blanc);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.tarif-head h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; }
.tarif-head .ico { font-size: 1.4rem; }
.tarif-body { padding: 1.2rem 1.5rem; }

.tarif-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gris-cl);
  font-size: 0.95rem;
}
.tarif-ligne:last-child { border-bottom: none; }
.tarif-ligne span:first-child { color: var(--texte); }
.tarif-prix {
  font-weight: 700;
  color: var(--vert);
  font-size: 1rem;
  white-space: nowrap;
}

/* ════════════════════════════════
   QUI EST LE CHEF
   ════════════════════════════════ */
#chef { background: var(--blanc); }

.chef-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.chef-img-wrap {
  position: relative;
}
.chef-img-wrap img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--ombre);
  filter: grayscale(20%);
}
.chef-badge {
  position: absolute;
  bottom: -1.2rem;
  right: -1.2rem;
  background: var(--or);
  color: var(--blanc);
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(200,169,110,0.4);
}

.chef-texte h2 { margin-bottom: 1rem; }
.chef-texte p { color: var(--gris); margin-bottom: 1rem; font-size: 0.97rem; }
.chef-valeurs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.chef-valeur {
  background: var(--creme);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.chef-valeur span { font-size: 1.2rem; }

/* ════════════════════════════════
   RÉSERVATION & CONTACT
   ════════════════════════════════ */
#contact { background: var(--creme); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-infos h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--texte);
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.contact-item-ico {
  width: 40px; height: 40px;
  background: var(--vert);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-txt strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gris); margin-bottom: 0.2rem; }
.contact-item-txt a { color: var(--texte); font-size: 0.95rem; transition: color 0.2s; }
.contact-item-txt a:hover { color: var(--vert); }
.contact-item-txt p { font-size: 0.95rem; color: var(--texte); }

.contact-note {
  background: rgba(200,169,110,0.12);
  border-left: 3px solid var(--or);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--brun);
}

/* ── FORMULAIRE ── */
.form-card {
  background: var(--blanc);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--ombre);
}
.form-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--texte);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e0dbd3;
  border-radius: var(--rayon);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--texte);
  background: var(--creme);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--vert);
  box-shadow: 0 0 0 3px rgba(58,90,64,0.1);
}
.form-group input.error, .form-group select.error { border-color: var(--rouge); }
.form-error { font-size: 0.78rem; color: var(--rouge); margin-top: 0.25rem; display: none; }
.form-error.show { display: block; }

.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.honeypot { display: none !important; }

.form-submit { width: 100%; margin-top: 0.5rem; justify-content: center; font-size: 1rem; padding: 1rem; }

.form-msg {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--rayon);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.form-msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-msg.error-msg { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
footer {
  background: var(--texte);
  color: rgba(255,255,255,0.6);
}

.footer-top {
  padding: 3.5rem 5vw 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img { height: 52px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.85); }
.footer-logo p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.5); }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--or);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blanc); }
.footer-col p { font-size: 0.88rem; line-height: 1.8; }

.footer-bottom {
  padding: 1.2rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--or); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--or-cl); }

/* ════════════════════════════════
   SCROLL TO TOP
   ════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: var(--vert);
  color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  opacity: 0; pointer-events: none;
  transition: all 0.3s;
  z-index: 500;
  box-shadow: 0 4px 16px rgba(58,90,64,0.4);
}
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top:hover { background: var(--vert-fonce); transform: translateY(-3px); }

/* ════════════════════════════════
   ANIMATIONS
   ════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════
   RESPONSIVE
   ════════════════════════════════ */
@media (max-width: 900px) {
  #accueil { grid-template-columns: 1fr; }
  .hero-visuel { height: 55vw; min-height: 280px; position: relative; }
  .hero-content { padding: 2.5rem 5vw; }

  .menus-grid { grid-template-columns: 1fr; max-width: 420px; }
  .tarifs-grid { grid-template-columns: 1fr; }
  .chef-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .chef-badge { right: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .nav-links, .nav-tel { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .chef-valeurs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 5vw; }
  .hero-content { padding: 2rem 5vw; }
  #cookie-banner { flex-direction: column; gap: 1rem; }
}

/* ── MESSAGE COMPLET ── */
.form-msg.complet {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    display: none;
}
.form-msg.complet.show { display: block; }

/* ── MENU PRESTIGE ── */
.menu-prestige { border-color: rgba(200,169,110,0.4) !important; }
.menu-prestige .menu-card-img { background: rgba(200,169,110,0.05); }
.label-or { color: var(--or) !important; }
.menus-grid { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 900px) {
    .menus-grid { grid-template-columns: 1fr !important; max-width: 420px; }
}
