/* Chez Isabelle et Guy — design « fait maison » : papier crème, bordeaux, touches manuscrites */

@font-face { font-family: "Caveat"; src: url(/static/fonts/caveat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fjalla One"; src: url(/static/fonts/fjalla-one-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/static/fonts/nunito-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/static/fonts/nunito-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/static/fonts/nunito-latin-400-italic.woff2) format("woff2"); font-style: italic; font-display: swap; }

:root {
  --bg: #f5ede0;
  --paper: #fffcf6;
  --ink: #3d302a;
  --muted: #84736a;
  --accent: #9b2420;
  --accent-dark: #7a1915;
  --olive: #6e7a4a;
  --sand: #e6d7bf;
  --line: #d9c7aa;
  --shadow: 0 2px 6px rgba(61, 48, 42, .12), 0 8px 24px rgba(61, 48, 42, .08);
  --hand: "Caveat", "Segoe Print", cursive;
  --title: "Fjalla One", "Arial Narrow", sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.6em; color: var(--accent); line-height: 1.2; }
h2.hand, h3.hand { font-size: 1.9rem; margin-bottom: .3em; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.warn { font-weight: 700; color: var(--accent-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 480px; }
main { min-height: 50vh; }
main > .wrap, main > article { padding-top: 24px; padding-bottom: 32px; }

/* --- En-tête --- */
.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding: 12px max(16px, calc((100vw - 1120px) / 2));
  position: relative;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.brand-name { font-family: var(--hand); font-weight: 600; font-size: 2.6rem; color: var(--accent); line-height: 1; transform: rotate(-2deg); transform-origin: left; }
.brand-sub { font-family: var(--title); letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin-top: 4px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-family: var(--title); text-transform: uppercase; letter-spacing: .04em; font-size: .92rem;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current] { background: var(--accent); color: #fff; }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > ul {
  display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 200px;
  flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px; box-shadow: var(--shadow);
}
.site-nav .has-sub:hover > ul, .site-nav .has-sub:focus-within > ul { display: flex; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .brand-name { font-size: 2.1rem; }
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span { width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
  .site-nav { display: none; width: 100%; }
  .nav-toggle[open] + .site-nav { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav .has-sub > ul { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: none; }
}

/* --- Titres --- */
.page-title {
  font-family: var(--title); font-weight: 400; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin: 8px 0 20px;
}
.page-title::after {
  content: ""; display: block; width: 120px; height: 10px; margin: 8px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6 Q 15 1 30 5 T 60 5 T 90 5 T 118 4' fill='none' stroke='%239b2420' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.section-title { font-family: var(--title); font-weight: 400; font-size: 1.5rem; letter-spacing: .03em; margin-top: 1.6em; }
.section-title a { color: inherit; }
.lead { font-size: 1.15rem; }
.lead.hand { text-align: center; font-size: 1.8rem; }

/* --- Boutons --- */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent);
  padding: 8px 18px; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 0 var(--accent-dark);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: none; }
.btn-ghost:hover { background: var(--accent); }

/* --- Notes « papier » --- */
.note {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 20px; box-shadow: var(--shadow); position: relative;
}
.note p:last-child { margin-bottom: 0; }

/* --- Accueil --- */
.hero { position: relative; }
.slideshow { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--sand); }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.slideshow img.active { opacity: 1; }
.hero-text {
  position: relative; max-width: 760px; margin: -60px auto 0; z-index: 2; text-align: center;
  background: var(--paper); padding: 18px 24px; box-shadow: var(--shadow); transform: rotate(-.6deg);
}
.hero-text h1 { font-family: var(--title); font-weight: 400; font-size: clamp(1.4rem, 3.2vw, 2rem); margin: 0; }
.hero-text p { margin: 4px 0 0; }
.star { text-decoration: none; margin-left: 1px; }
@media (max-width: 700px) {
  .slideshow { aspect-ratio: 4 / 3; }
  .hero-text { margin: -30px 12px 0; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.card {
  background: var(--paper); padding: 12px 12px 18px; box-shadow: var(--shadow); text-align: center;
  text-decoration: none; color: var(--ink); transition: transform .2s ease;
}
.card:nth-child(1) { transform: rotate(-1.2deg); }
.card:nth-child(3) { transform: rotate(1deg); }
.card:hover { transform: rotate(0) translateY(-4px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card h3 { font-family: var(--hand); font-weight: 600; font-size: 2rem; color: var(--accent); margin: 10px 0 0; }
.card p { margin: 0 0 12px; color: var(--muted); }

.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 36px; }
.no-pets { display: flex; align-items: center; gap: 12px; justify-content: center; color: var(--muted); padding-top: 24px; }

/* --- Photos & galeries --- */
.gallery { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px; }
.gallery a { display: block; }
.gallery .caption { display: block; font-size: .9rem; text-align: center; }

.gallery.polaroids { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 20px; margin: 20px 0 32px; }
.polaroids li { background: #fff; padding: 10px 10px 6px; box-shadow: var(--shadow); transition: transform .2s ease; }
.polaroids li:nth-child(4n+1) { transform: rotate(-1.8deg); }
.polaroids li:nth-child(4n+2) { transform: rotate(1.2deg); }
.polaroids li:nth-child(4n+3) { transform: rotate(-.6deg); }
.polaroids li:nth-child(4n) { transform: rotate(2deg); }
.polaroids li:hover { transform: rotate(0) scale(1.03); z-index: 1; }
.polaroids img { border-radius: 0; }
.polaroids .caption { font-family: var(--hand); font-weight: 600; font-size: 1.4rem; color: var(--ink); min-height: 1.6em; }

.photo { margin: 0; background: #fff; padding: 10px 10px 8px; box-shadow: var(--shadow); }
.photo figcaption { font-family: var(--hand); font-weight: 600; font-size: 1.35rem; text-align: center; }
.photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(1.6deg); }

/* --- Chambres --- */
.room-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.room-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); border: 8px solid #fff; }
.room-text { background: var(--paper); padding: 20px 24px; box-shadow: var(--shadow); }
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--olive); font-weight: 700; }
@media (max-width: 800px) { .room-grid { grid-template-columns: 1fr; } }

.tariffs { text-align: center; }
.tariffs table, .tariff-form table { border-collapse: collapse; margin: 16px auto; background: var(--paper); box-shadow: var(--shadow); min-width: min(100%, 520px); }
.tariffs th, .tariffs td { padding: 10px 18px; border-bottom: 1px dashed var(--line); }
.tariffs th { background: var(--olive); color: #fff; font-family: var(--title); font-weight: 400; letter-spacing: .04em; }
.tariffs td + td { font-weight: 700; color: var(--accent); white-space: nowrap; }
.tariffs tr:last-child td { border-bottom: 0; }

.calendar { margin-top: 24px; }
.calendar .hand { text-align: center; margin: 0; }
.iframe-box { background: #fff; box-shadow: var(--shadow); padding: 6px; }
.iframe-box iframe { width: 100%; height: 330px; border: 0; display: block; }
.cta { text-align: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* --- Infos --- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 28px; align-items: center; margin: 44px 0; }
.feature .section-title { margin-top: 0; }
.feature.love { grid-template-columns: 1fr 1.5fr; background: var(--paper); padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 800px) {
  .feature, .feature.love { grid-template-columns: 1fr; }
  .feature > div { order: -1; }
}

/* --- Accès --- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.route { padding-left: 1.4em; }
.route li { margin-bottom: 6px; }
.map-box iframe { width: 100%; height: 440px; border: 8px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 800px) { .access-grid { grid-template-columns: 1fr; } .map-box iframe { height: 320px; } }

/* --- Marchés --- */
.markets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.market-day { background: var(--paper); padding: 14px 18px; box-shadow: var(--shadow); border-top: 5px solid var(--accent); }
.market-day:nth-child(even) { border-top-color: var(--olive); }
.market-day p { margin: 0; }

.banner-link { display: block; position: relative; text-align: center; text-decoration: none; margin-top: 12px; }
.banner-link img { width: 100%; max-height: 260px; object-fit: cover; box-shadow: var(--shadow); }
.banner-link .btn { position: relative; margin-top: -24px; }

/* --- Livre d'or --- */
.gb-layout { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.gb-form { position: sticky; top: 16px; }
@media (max-width: 900px) { .gb-layout { grid-template-columns: 1fr; } .gb-form { position: static; } }
.gb-entries .section-title { margin-top: 0; }
.gb-entry {
  margin: 0 0 22px; background: var(--paper); padding: 18px 22px 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--sand); font-style: italic;
}
.gb-entry:nth-child(odd) { transform: rotate(-.3deg); }
.gb-entry:nth-child(even) { transform: rotate(.3deg); border-left-color: var(--line); }
.gb-entry footer { font-style: normal; font-size: 1.5rem; text-align: right; }

/* --- Formulaires --- */
form label { display: block; margin-bottom: 12px; font-weight: 700; }
input, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 400 1rem var(--body); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.req { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: #fbe4e1; color: var(--accent-dark); padding: 8px 12px; border-radius: 6px; }
.ok { background: #e9eedc; color: #46512b; padding: 8px 12px; border-radius: 6px; }
p.ok.hand { font-size: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-grid aside { display: grid; gap: 24px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Admin --- */
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin .pending { margin-bottom: 16px; }
.admin .actions { display: flex; gap: 10px; }
.tariff-form { margin-bottom: 24px; overflow-x: auto; }
.tariff-form td { padding: 4px; }
.tariff-form input { margin: 0; }
.tariff-form input.price { width: 110px; }
.tariff-form tr.new input { background: #faf6ee; }

/* --- Pied de page --- */
.site-footer { background: var(--ink); color: #eadfcd; margin-top: 40px; padding: 28px 16px 96px; } /* bas : place pour la barre de contact */
.site-footer a { color: #fff; }
.site-footer .hand { color: #f0c9a0; margin: 0 0 6px; }
.site-footer p { margin: 2px 0; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-reviews a { display: inline-block; margin-right: 10px; vertical-align: middle; background: #fff; padding: 4px; border-radius: 6px; }
.footer-reviews img { height: 56px; width: auto; }
.footer-small { text-align: center; font-size: .85rem; color: #b9a995; margin-top: 20px !important; }

/* --- Barre de contact flottante --- */
.quick-contact {
  position: fixed; z-index: 50; bottom: 16px; right: 16px;
  display: flex; gap: 10px; background: var(--paper); padding: 8px; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(61, 48, 42, .25); border: 1px solid var(--line);
}
.qc-btn {
  display: flex; align-items: center; gap: 0; height: 48px; min-width: 48px; padding: 0 12px;
  border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700;
  transition: background .2s ease, gap .2s ease;
}
.qc-btn:nth-child(2) { background: var(--olive); }
.qc-btn:nth-child(3) { background: #1877f2; }
.qc-btn:nth-child(4) { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
.qc-btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.qc-btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease; }
.qc-btn:hover, .qc-btn:focus-visible { color: #fff; gap: 8px; }
.qc-btn:hover span, .qc-btn:focus-visible span { max-width: 120px; }
@media (max-width: 700px) {
  .quick-contact { left: 0; right: 0; bottom: 0; border-radius: 0; gap: 6px; padding: 6px; border-width: 1px 0 0; }
  .qc-btn { flex: 1; justify-content: center; }
  /* sur téléphone : icônes seules (4 boutons) */
}

/* --- Lightbox --- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30, 22, 18, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; border: 8px solid #fff; }
.lightbox figcaption { font-family: var(--hand); font-weight: 600; color: #fff; font-size: 1.6rem; min-height: 1.5em; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; font-size: 2.4rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
