/* La Pomme d'Or — ambiance auberge familiale, chaleureuse et authentique */

:root {
  --green: #31533d;
  --deep: #263b2e;
  --cream: #faf5ea;
  --soft: #f2e9d9;
  --ink: #3b332b;
  --red: #b65e45;
  --line: #e4d8c7;
  --gold: #d1a96e;
  --paper: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--green);
}

a:hover {
  color: var(--red);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -.025em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.025em;
  color: var(--deep);
}

h3 {
  font-size: 1.45rem;
  color: var(--deep);
}

p {
  margin: 0 0 18px;
}

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 22px;
}

/* En-tête et navigation */

.topbar {
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px #392a1912;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1120px)/2));
  gap: 20px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  color: var(--deep);
}

.brand-logo {
  height: 46px;
  max-width: 145px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 21px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: .94rem;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links .nav-book {
  padding: 9px 19px;
  border-radius: 9px;
  background: var(--green);
  color: white;
  box-shadow: 0 3px 9px #20392319;
}

.nav-links .nav-book:hover {
  background: #25432f;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  color: var(--deep);
}

/* Accueil */

.hero {
  background:
    linear-gradient(
      100deg,
      rgba(26, 37, 27, .82),
      rgba(38, 45, 28, .32)
    ),
    linear-gradient(125deg, #617759, #b49168);
  color: white;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-content {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero h1 {
  color: #fffaf0;
  text-shadow: 0 3px 20px #0005;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
}

.eyebrow {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1d8a9;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 27px 0;
}

/* Boutons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  border-radius: 10px;
  padding: 13px 23px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px #392a1924;
}

.button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button.primary {
  background: var(--red);
  color: white;
}

.button.primary:hover {
  background: #9f4c37;
}

.button.secondary {
  background: var(--green);
  color: white;
}

.button.secondary:hover {
  background: #25432f;
}

.button.ghost {
  border: 1px solid #fff;
  color: white;
  background: #ffffff12;
}

.button.ghost:hover {
  background: #ffffff25;
}

/* Statut d'ouverture */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fffdf4ef;
  color: var(--deep);
  border-radius: 50px;
  padding: 9px 17px;
  font-weight: 700;
  font-size: .92rem;
}

.status.inline {
  background: var(--soft);
  margin-bottom: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: #ad4539;
}

.opened .dot {
  background: #24a662;
}

/* Sections et présentation */

.announcement {
  position: relative;
  z-index: 2;
  background: #f0e5cf;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-weight: 650;
}

.announcement .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.announcement strong {
  color: var(--deep);
}

.section {
  padding: 90px 0;
}

.section.soft {
  background: var(--cream);
  border-top: 1px solid #e9dece;
  border-bottom: 1px solid #e9dece;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.align-start {
  align-items: start;
}

.kicker {
  color: var(--red);
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-size: .76rem;
  display: block;
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 550;
}

.photo-box {
  height: 390px;
  border-radius: 20px;
  background: linear-gradient(125deg, #81927a, #d7b38b);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
  padding: 27px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 12px #0009;
  box-shadow: 0 16px 32px #48341e20;
}

/* Carte du restaurant */

.menu-category {
  margin-top: 30px;
}

.menu-category h3 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 12px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}

.menu-item {
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
}

.menu-item p {
  font-size: .87rem;
  color: #6d6256;
  margin: 4px 0;
}

.menu-item b {
  white-space: nowrap;
  color: var(--green);
}

/* Chambres et cartes */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fffefa;
  box-shadow: 0 12px 30px #48341e12;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px #48341e1f;
}

.card-photo {
  height: 220px;
  background: linear-gradient(120deg, #b6c3ac, #e5cfae);
  background-position: center;
  background-size: cover;
  display: grid;
  place-content: center;
  font-size: 3rem;
}

.card-body {
  padding: 24px;
}

.features {
  color: #72685d;
  font-size: .91rem;
}

.price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 16px;
}

.price small {
  font-size: .86rem;
  font-weight: 400;
}

.text-link {
  font-weight: 700;
}

.intro-width {
  max-width: 760px;
}

/* Horaires */

.hours-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 26px;
  background: #fffefa;
  box-shadow: 0 8px 24px #48341e0c;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.hours-list > div:last-child {
  border-bottom: 0;
}

.hours-list strong {
  text-align: right;
}

.notice {
  padding: 14px;
  border-radius: 9px;
  background: #fff0d2;
  border-left: 3px solid var(--gold);
}

.muted {
  color: #72685d;
}

.small {
  font-size: .84rem;
}

/* Réservations */

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 38px;
  align-items: start;
  margin-top: 28px;
}

.booking-note {
  padding-top: 20px;
}

.booking-note hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

.form-card {
  padding: 28px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 12px 28px #48341e10;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

label {
  display: block;
  font-weight: 650;
  margin-bottom: 14px;
  font-size: .92rem;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #d6cbbb;
  border-radius: 8px;
  padding: 11px 12px;
  margin-top: 5px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b2c1a7;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-error {
  color: #a12620;
  font-weight: 700;
}

/* Cartes PDF */

.pdf-list {
  display: grid;
  gap: 28px;
  margin: 26px 0;
}

.pdf-card {
  background: #fffefa;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px #48341e0e;
}

.pdf-preview {
  width: 100%;
  height: 600px;
  background: #e9e0d2;
  border-radius: 10px;
  overflow: hidden;
}

.pdf-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.pdf-card p {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}

/* Contact et carte Google Maps */

.contact-card {
  margin-top: 36px;
  max-width: 770px;
}

.map iframe {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: 16px;
}

.map iframe:not([src]) {
  display: none;
}

/* Pied de page */

footer {
  background: var(--deep);
  color: #fffaf1;
  padding: 26px 0;
  border-top: 4px solid var(--gold);
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

footer p {
  margin: 0;
}

footer a {
  color: #fff2d7;
}

/* Vacances */

.vacation-announcement {
  background: #fff0d4;
  border-bottom: 1px solid #edcf94;
}

.vacation-announcement strong {
  color: #754d13;
}

.vacation-announcement .container {
  align-items: flex-start;
}

.vacation-announcement .container > div {
  flex: 1;
  min-width: 230px;
}

/* Consentement cookies */

.cookie-banner[hidden],
.map-consent[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  z-index: 10000;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffaf1;
  color: var(--ink);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -8px 30px #0000002e;
  padding: 18px 22px;
}

.cookie-content {
  max-width: 1150px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-content strong {
  font-size: 1.15rem;
}

.cookie-content p {
  margin: 5px 0 0;
  max-width: 760px;
  font-size: .94rem;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .button {
  cursor: pointer;
}

.cookie-link {
  background: none;
  border: 0;
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.cookie-footer {
  margin-top: 10px;
}

.map-consent {
  padding: 28px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 245px;
  background: var(--soft);
  border-radius: 16px;
}

.map-consent p {
  margin: 0;
  max-width: 390px;
}

/* ==========================================
   RESPONSIVE : TABLETTES ET SMARTPHONES
   ========================================== */

@media (max-width: 800px) {

  .topbar {
    padding: 0 20px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 16px 22px;
    box-shadow: 0 8px 16px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links.show {
    display: flex;
  }

  .hero {
    min-height: 520px;
  }

  .section {
    padding: 65px 0;
  }

  .split,
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cards,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .photo-box {
    height: 300px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer .container {
    display: block;
  }
}

/* Petits écrans */

@media (max-width: 700px) {

  .pdf-preview {
    height: 440px;
  }

  .brand {
    font-size: .97rem;
  }

  .brand-logo {
    height: 37px;
    max-width: 85px;
  }

  .pdf-card {
    padding: 12px;
  }

  .cookie-content {
    display: block;
  }

  .cookie-actions {
    margin-top: 15px;
    flex-wrap: wrap;
  }

  .cookie-actions .button {
    flex: 1;
    min-width: 110px;
  }
}

/* Accessibilité : réduire les animations si demandé */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .button,
  .card {
    transition: none;
  }
}

/* ==========================================
   RENFORT RESPONSIVE
   ========================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

.container,
.split > *,
.booking-grid > *,
.cards > *,
.two-col > * {
  min-width: 0;
}

.menu-item {
  min-width: 0;
}

.menu-item > * {
  min-width: 0;
}

.pdf-card,
.form-card {
  min-width: 0;
}

/* Tablettes */

@media (max-width: 800px) {

  .topbar {
    gap: 10px;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    flex: 0 0 auto;
    cursor: pointer;
  }

  .nav-links {
    width: 100%;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 4rem);
    overflow-wrap: break-word;
  }

  .hero p {
    font-size: 1.08rem;
  }

  .section {
    padding: 55px 0;
  }

  .split,
  .booking-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-grid,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .pdf-preview {
    max-width: 100%;
  }
}

/* Smartphones */

@media (max-width: 480px) {

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: .9rem;
  }

  .brand-logo {
    height: 34px;
    max-width: 76px;
    margin-right: 4px;
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero {
    min-height: 460px;
  }

  .hero-content {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .hero-buttons .button {
    max-width: 100%;
  }

  .photo-box {
    height: 250px;
    padding: 18px;
  }

  .form-card {
    padding: 18px;
  }

  .hours-list {
    padding: 15px;
  }

  .hours-list > div {
    gap: 8px;
  }

  .cookie-banner {
    padding: 14px 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions .button {
    min-width: 0;
    padding: 11px 8px;
  }

  .pdf-preview {
    height: 340px;
  }
}