/*
  styles1.css – Styles principaux du site
  - Accueil: deux grandes cartes plein écran (Restaurant / Traiteur)
  - À propos: photo à gauche + texte à droite
  - Réservation: formulaire + carte Google Maps
  NOTE: Le JS fixe deux variables CSS (--header-h, --footer-h) pour calculer la
        hauteur visible entre l'en‑tête fixe et le pied de page.
*/

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Base */
body { font-family: Arial, sans-serif; background: #FFD5A3; color: #222; line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.lead { font-size: 1.05rem; color: #333; margin-bottom: 18px; }
[hidden] { display: none !important; }

/* Messages réutilisables */
.form-message { margin-top: 10px; font-weight: 700; }
.form-message--ok { color: #2f7a2f; }
.form-message--ko { color: #b00020; }

/* Header */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(248,244,240,0.95); border-bottom: 1px solid #e2d9cf; backdrop-filter: blur(6px); }
.header-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 0; }
.logo {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 0;
}
/* Taille du logo responsive (garde la même box) */
.logo img {
  height: clamp(78px, 12vw, 140px);
  display: block;
  /* Agrandit visuellement le logo sans augmenter la hauteur du header */
  transform: scale(1.85);
  transform-origin: center;
}
.logo-tagline {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c1810;
  letter-spacing: 0.4px;
  line-height: 1.25;
}
.logo-tagline span { display: block; }

@media (max-width: 640px) {
  .logo img { transform: scale(1.55); }
}
nav { grid-column: 3; justify-self: end; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav a { text-decoration: none; color: #222; font-weight: 700; padding: 6px 12px; border-radius: 10px; }
nav a.active, nav a:hover { background: #b58b671a; color: #b58b67; }

@media (max-width: 720px) {
  .header-content {
    display: block;
    text-align: center;
    padding: 12px 0;
  }
  .logo {
    margin: 0 auto 8px;
    align-items: center;
    gap: 4px;
  }
  .logo picture { display: flex; justify-content: center; }
  .logo img {
    margin: 0 auto;
    transform: scale(1.45);
  }
  nav {
    margin: 0 auto;
  }
  nav ul {
    gap: 14px;
    justify-content: center;
  }
  .logo-tagline { font-size: 0.9rem; }
}

/* Main */
main { margin-top: var(--header-h, 92px); padding-bottom: var(--footer-h, 36px); }
.page { display: none; padding: 10px 0 42px; }
.page.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page#accueil { padding: 0; }
/* Accueil (landing) */
/* Zone d'accueil: centrée et dimensionnée entre header et footer */
.landing { display: grid; place-items: center; gap: 0; padding: 0 16px; min-height: calc(100vh - var(--header-h, 92px) - var(--footer-h, 36px)); }
.landing-split { display: flex; gap: 0; width: 100%; max-width: 1400px; height: 100%; max-height: 100%; border-radius: 16px; overflow: hidden; }
.landing-card { appearance: none; border: 0; background: #000; color: #2c1810; height: auto; min-height: 100%; cursor: pointer; display: grid; place-items: center; transition: flex-basis .35s ease, transform .35s ease, filter .35s ease, box-shadow .35s ease; position: relative; overflow: hidden; flex: 1 1 50%; }
.landing-card:first-child { border-right: 1px solid #e9e1d8; }
.landing-card:last-child { border-left: 1px solid #e9e1d8; }
.landing-card:hover, .landing-card:focus-visible { transform: scale(1.02); box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.02); outline: none; }
.landing-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.landing-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: brightness(0.88) saturate(1.05); transition: transform .35s ease, filter .35s ease; }
.landing-card:hover .landing-media img,
.landing-card:focus-visible .landing-media img { transform: scale(1.12); }
.landing-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.1)); }
.landing-title { position: relative; z-index: 2; font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; color: #ffffff; letter-spacing: .4px; text-shadow: 0 3px 16px rgba(0,0,0,.55); }

/* Effet de survol/pression façon split-screen */
.landing-split[data-hover="restaurant"] .landing-card.restaurant-card { flex: 1 1 65%; }
.landing-split[data-hover="restaurant"] .landing-card:not(.restaurant-card) { flex: 1 1 35%; filter: brightness(.93); }
.landing-split[data-hover="traiteur"] .landing-card:not(.restaurant-card) { flex: 1 1 65%; }
.landing-split[data-hover="traiteur"] .landing-card.restaurant-card { flex: 1 1 35%; filter: brightness(.93); }

/* Ajuste la tonalité des visuels par carte */
.restaurant-card .landing-media img { filter: brightness(0.9) saturate(1.08); }
.traiteur-card .landing-media img { filter: brightness(0.9) saturate(1.02); }

/* Animation de zoom */
.zoom-clone {
  transition:
    left .45s cubic-bezier(0.25, 0.1, 0.25, 1),
    top .45s cubic-bezier(0.25, 0.1, 0.25, 1),
    width .45s cubic-bezier(0.25, 0.1, 0.25, 1),
    height .45s cubic-bezier(0.25, 0.1, 0.25, 1),
    border-radius .45s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform .45s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 1px solid #e9e1d8;
  background: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}
.zoom-clone.zooming {
  left: 50% !important;
  top: 50% !important;
  width: 102vw !important;
  height: 102vh !important;
  transform: translate(-50%, -50%) scale(1.02);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.25);
}

/* Overlay menu plein écran */
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; z-index: 3000; }
.menu-overlay[hidden] { display: none; }
.menu-modal {
  position: relative;
  width: min(96vw, 1280px);
  max-height: 92vh;
  background: #fff;
  border-radius: 18px;
  padding: clamp(18px, 2.2vw, 32px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  overflow: auto;
}
.menu-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: stretch;
  justify-items: center;
  min-height: min(82vh, 100%);
}
.menu-images.single { grid-template-columns: 1fr; }
.menu-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: min(82vh, 100%);
  border-radius: 14px;
  background: #f8f5f1;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  object-fit: contain;
}
.menu-image.menu-extra { object-fit: cover; }
@media (min-width: 960px) {
  .menu-images:not(.single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.menu-close { position: absolute; top: clamp(8px, 1.4vw, 18px); right: clamp(8px, 1.4vw, 18px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffffffcc; color: #333; font-size: 28px; line-height: 1; cursor: pointer; }
.menu-close:hover { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.no-scroll { overflow: hidden; }

/* Titres */
h2 { color: #E06320; margin-bottom: 10px; letter-spacing: .2px; }
.page h2:focus { outline: none; }
.page h2:focus-visible {
  outline: 2px solid #E06320;
  outline-offset: 4px;
}

/* À propos simplifié */
.about-layout { display: grid; grid-template-columns: minmax(260px, 520px) 1fr; gap: 24px; align-items: start; }
#a-propos h2 { font-size: 2.1rem; margin-bottom: 14px; }
.about-media { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #e9e1d8; background: #fff; justify-self: start; }
.about-media img { display: block; width: 100%; height: auto; }
.about-text { color: #333; }
.about-text p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
}
.about-text .about-list {
  margin: 12px 0 20px;
  padding-left: 20px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
}
.about-text .about-list li { margin-bottom: 8px; }

@media (max-width: 820px) {
  .about-layout { grid-template-columns: 1fr; }
}
/* Réservation */
.reservation-section { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 14px; }
.form-container, .location-info { background: #fff; border: 1px solid #e9e1d8; border-radius: 14px; padding: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 800; margin-bottom: 8px; color: #333; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1px solid #cdb49d; border-radius: 10px; background: #fff; color: #2c1810; }
.form-group textarea { resize: vertical; }

.form-group select.time-select--picked {
  background: #e8e3dd;
  border-color: #bfa48a;
  color: #2c1810;
}

.time-selection {
  margin-top: 6px;
  font-size: .9rem;
  color: #6a5643;
  background: #f0ece7;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
}

/* Visibilité des listes déroulantes */
.form-group select { background-color: #ffffff; color: #2c1810; font-size: 1.05em; font-weight: 700; }
.form-group select option { background-color: #ffffff; color: #2c1810; font-size: 1.05em; }

.submit-btn { display: inline-block; width: 100%; padding: 12px 18px; background: #E06320; color: #fff; border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
.submit-btn:hover { filter: brightness(0.95); }
/* Honeypot visuellement caché mais accessible */
.hp-field-wrap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.location-photo{
  aspect-ratio: 16 / 9;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
.location-photo iframe{
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}
.location-details h3 { color: #E06320; margin-bottom: 8px; }
.location-details p { margin-bottom: 8px; }

/* Footer */
footer { position: fixed; left: 0; right: 0; bottom: 0; border-top: none; background: #FFD5A3; z-index: 1000; box-shadow: none; }
.footer-content { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; min-height: 36px; padding: 4px 0; font-size: .9rem; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.footer-links a { color: #222; text-decoration: none; font-weight: 600; }
.footer-links a:hover,
.footer-links a:focus { text-decoration: underline; color: #b58b67; }

/* Responsive */
@media (max-width: 900px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .reservation-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .landing { min-height: calc(100vh - var(--header-h, 92px) - var(--footer-h, 36px)); }
  .landing-split { flex-direction: column; }
  .landing-card { min-height: 50vh; border: 0; border-top: 1px solid #e9e1d8; }
  .landing-card:first-child { border-top: 0; }
  .menu-overlay { padding: 12px; }
  .menu-modal {
    width: 100%;
    max-height: 88vh;
    padding: 14px;
    border-radius: 14px;
  }
  .menu-images { gap: 14px; min-height: auto; }
  .menu-image { max-height: 72vh; }
  .about-layout { gap: 18px; }
  .about-media { border-radius: 12px; }
  .form-container, .location-info { padding: 16px; }
  nav ul { gap: 12px; }
}

@media (max-width: 540px) {
  body { font-size: 0.98rem; line-height: 1.6; }
  .container { padding: 0 18px; }
  header { border-bottom-width: 0; }
  .header-content { padding: 6px 0 10px; }
  nav ul { gap: 10px; }
  nav a { padding: 5px 10px; font-size: 0.97rem; }
  .landing { padding: 0 8px; }
  .landing-split { gap: 12px; }
  .landing-card { min-height: 46vh; border: 0; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.12); overflow: hidden; }
  .landing-card::after { background: linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,.2)); }
  .landing-title { font-size: clamp(2rem, 8vw, 3rem); }
  .menu-modal { max-height: 84vh; }
  .form-container, .location-info { padding: 14px; }
  .form-group label { font-size: 0.95rem; }
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 1rem; padding: 11px 12px; }
  .submit-btn { font-size: 1rem; padding: 12px 14px; }
  .location-details p { font-size: 0.95rem; }
  footer { position: static; }
  main { padding-bottom: 48px; }
}
