/* ═══════════════════════════════════════════════════════════
   L'Auberge du Chant du Coq — Shared Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:       #22180d;
  --bg-2:     #3b2817;
  --bg-3:     #1a1007;
  --accent:   #e4bb79;
  --accent-2: #cfa15b;
  --text:     #f7e8c0;
  --muted:    #f0d498;
  --muted-2:  #c9a870;
  --card:     #2c1c11;
  --card-2:   #47311b;
  --border:   #875b24;
  --border-2: #5c3f1e;
  --shadow:   0 10px 32px #00000038;
  --glass:    rgba(34,24,13,.76);
  --header:   rgba(18,11,5,.88);
  --footer:   #131009;
  --focus:    #fff2cc;
  --radius:   14px;
  --radius-lg:20px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--text);
  background: var(--bg);
  font-family: 'Spectral', serif;
  letter-spacing: .02em;
  line-height: 1.6;
  min-width: 320px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.container      { max-width: 1140px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.container-wide { max-width: 1380px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: saturate(140%) blur(14px);
  background: var(--header);
  border-bottom: 1px solid #885f2640;
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 100px; gap: clamp(1rem, 4vw, 3rem);
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--accent);
  text-shadow: 0 2px 8px #321e0c40;
  white-space: nowrap; user-select: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.25em; line-height: 1; }
.nav-links { display: flex; gap: clamp(.8rem, 1.5vw, 1.6rem); list-style: none; flex-wrap: nowrap; }
.nav-links a {
  display: inline-block; padding: .4rem 0;
  font-family: 'IM Fell French Canon', serif;
  font-weight: 700; font-size: clamp(.85rem, 1.1vw, 1rem);
  color: #f0ddbf; border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .22s, border-color .22s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-color: var(--accent); }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; background: none; border: none;
  cursor: pointer; padding: 8px; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.burger span {
  width: 24px; height: 2.8px; background: var(--accent);
  border-radius: 2px; transition: transform .25s, opacity .25s;
  display: block;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Écrans moyens : réduire l'espacement pour que 7 liens tiennent */
@media (min-width: 1280px) and (max-width: 1480px) {
  .nav-links { gap: .5rem; }
  .nav-links a { font-size: .82rem; }
  .logo { font-size: clamp(.9rem, 1.3vw, 1.1rem); }
}

@media (max-width: 1280px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed; inset: 100px 0 auto 0;
    background: var(--header); backdrop-filter: blur(14px);
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    border-bottom: 1px solid #885f2650;
    z-index: 199;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; }
  .nav-links li { border-top: 1px solid #3b2a19; }
  .nav-links a { padding: .9rem 1.4rem; display: block; text-align: center; font-size: 1.05rem; }
}

/* ── LOGO IMAGE ── */
.logo-img { height: 90px; width: auto; object-fit: contain; }
@media (max-width: 600px) {
  .logo-img { height: 52px; }
  nav { min-height: 68px; gap: .5rem; padding: 0 .8rem; }
  .nav-links { inset: 68px 0 auto 0 !important; }
}

/* ── PAGE HERO (sous-pages) ── */
.page-hero {
  position: relative; min-height: clamp(300px, 50vh, 520px);
  display: grid; place-items: center; text-align: center;
  background-size: cover; background-position: center;
  isolation: isolate;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(12,6,2,.58) 0%, rgba(12,6,2,.75) 100%);
}
.page-hero-content {
  position: relative; z-index: 1;
  max-width: 740px; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}
.page-hero-eyebrow {
  font-size: clamp(.75rem, 1.5vw, .88rem); letter-spacing: 4px;
  text-transform: uppercase; color: var(--accent-2);
  margin-bottom: .6rem; font-style: italic;
}
.page-hero h1 {
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(1.9rem, 5.5vw, 3.5rem);
  color: var(--accent); letter-spacing: 3px;
  text-shadow: 0 3px 16px #2a1a0870; line-height: 1.12;
}
.page-hero p {
  margin-top: .7rem; color: #fae2be;
  font-style: italic; font-size: clamp(.9rem, 2vw, 1.18rem);
}

/* ── SECTIONS ── */
.section      { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt  { background: linear-gradient(160deg, #1b1107 0%, #281a0c 100%); }
.section-dark { background: var(--bg-3); }

.section-header { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-title {
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #ffdfa8; letter-spacing: 3px;
  text-shadow: 0 2px 12px #271b0f70;
}
.section-deco {
  display: block; width: 80px; height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #ab8053, #ffd6a4, #ab8053);
  border-radius: 3px; box-shadow: 0 2px 10px #a3782c50;
}
.section-sub {
  margin-top: .7rem; color: var(--muted-2);
  font-style: italic; font-size: clamp(.9rem, 1.8vw, 1.05rem);
  line-height: 1.65; max-width: 640px; margin-left: auto; margin-right: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(.88rem, 1.5vw, 1rem);
  padding: .7rem 1.5rem; border-radius: 40px;
  border: 1.5px solid var(--accent); cursor: pointer;
  transition: transform .15s, box-shadow .22s, filter .2s, background .2s;
  white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(90deg, #7a4e1a, #b07a36);
  color: #fff9eb; box-shadow: 0 6px 22px #a3782c70;
}
.btn-primary:hover { box-shadow: 0 10px 30px #d29d4370; filter: saturate(110%); color: #fff9eb; }
.btn-outline { background: transparent; color: var(--muted); }
.btn-outline:hover { background: rgba(140,90,30,.28); color: var(--accent); }
.btn-sm { font-size: .85rem; padding: .5rem 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── CARDS ── */
.card {
  background: linear-gradient(145deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px #00000042; }
.card-img-wrap { overflow: hidden; position: relative; }
.card-img { width: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(18,10,4,.82); border: 1px solid #c6995660;
  color: var(--accent); border-radius: 20px;
  padding: .2rem .65rem; font-size: .74rem; letter-spacing: .4px;
  backdrop-filter: blur(4px);
}
.card-body { padding: 1rem 1.2rem 1.3rem; }
.card-body h3 {
  font-family: 'IM Fell French Canon', serif;
  color: var(--accent); font-size: 1.1rem; margin-bottom: .4rem;
}
.card-body p { color: var(--muted); font-size: .94rem; line-height: 1.6; }

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(.8rem, 1.8vw, 1.4rem); }

/* ── SPLIT (2 colonnes) ── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .split.reverse { direction: ltr; }
}
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 12px 40px #00000045; border: 1px solid var(--border-2); }
.split-img img { width: 100%; height: clamp(220px, 35vw, 400px); object-fit: cover; }
.split-text { display: flex; flex-direction: column; gap: 1.1rem; }
.split-text h2 {
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--accent); letter-spacing: 2px;
}
.split-text p { color: var(--muted); line-height: 1.75; font-size: clamp(.92rem, 1.5vw, 1.02rem); }
.split-text .quote {
  font-family: 'IM Fell French Canon', serif; font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--accent-2); border-left: 3px solid var(--accent-2);
  padding-left: 1rem; font-style: italic; line-height: 1.5;
}

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(180,130,50,.14); border: 1px solid #9a7032;
  color: var(--muted); border-radius: 8px;
  padding: .3rem .8rem; font-size: clamp(.78rem, 1.2vw, .88rem);
}

/* ── IMAGE BANNER ── */
.img-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 40px #00000048; border: 1px solid var(--border-2);
}
.img-banner img { width: 100%; object-fit: cover; }
.img-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,6,2,.80) 0%, rgba(10,6,2,.12) 65%);
  display: flex; align-items: center; padding: clamp(1.2rem, 4vw, 2.8rem);
}
.img-banner-text h3 {
  font-family: 'IM Fell French Canon', serif;
  font-size: clamp(1.2rem, 3vw, 2rem); color: var(--accent); margin-bottom: .45rem;
}
.img-banner-text p {
  color: #fae2be; font-style: italic;
  max-width: 400px; line-height: 1.6;
  font-size: clamp(.85rem, 1.5vw, 1rem);
}
@media (max-width: 520px) {
  .img-banner-overlay {
    background: linear-gradient(0deg, rgba(10,6,2,.88) 0%, rgba(10,6,2,.4) 100%);
    align-items: flex-end;
  }
}

/* ── GALERIE CARROUSEL ── */
.gallery-wrap { position: relative; overflow: hidden; background: #0f0904; }
.gallery-wrap .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.gallery-wrap .slide.active { opacity: 1; position: relative; }
.gallery-wrap .slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(22,12,5,.62); color: #ffe9c8;
  border: 1px solid #7a5520; border-radius: 50%;
  width: clamp(38px, 6vw, 50px); height: clamp(38px, 6vw, 50px);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s; backdrop-filter: blur(4px);
}
.gallery-nav-btn:hover { background: #b08040; }
.gallery-nav-btn:active { transform: translateY(-50%) scale(.93); }
.gallery-nav-btn.prev { left: clamp(8px, 2vw, 16px); }
.gallery-nav-btn.next { right: clamp(8px, 2vw, 16px); }
.gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 5;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(215,196,154,.38); border: 1px solid #c19a5878; cursor: pointer;
  transition: background .2s, transform .2s;
}
.gallery-dot.active { background: #ffd9a0; transform: scale(1.3); }
.gallery-caption-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 1.1rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(0deg, rgba(8,4,1,.72) 0%, transparent 100%);
  font-family: 'IM Fell French Canon', serif;
  color: #ffd9a0; font-style: italic;
  font-size: clamp(.85rem, 1.5vw, 1rem);
}

/* ── CONTACT ── */
.contact-box {
  background: linear-gradient(130deg, #34261c, #5c4229);
  border: 1.5px solid #bfa46f; border-radius: var(--radius-lg);
  box-shadow: 0 10px 32px #00000030;
  padding: clamp(1.4rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 1rem; margin-top: 1.3rem;
}
@media (max-width: 400px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-item {
  text-align: center;
  background: rgba(60,40,18,.85); border: 1px solid #8a683d;
  border-radius: var(--radius); padding: clamp(.9rem, 2vw, 1.2rem) .9rem;
  color: #ffe7aa;
}
.contact-item h4 {
  margin-bottom: .45rem;
  font-family: 'IM Fell French Canon', serif;
  color: #ffde97; font-size: 1rem;
}
.contact-item p { font-size: clamp(.88rem, 1.5vw, 1rem); line-height: 1.6; }
.contact-item a { color: #ffe7aa; }
.contact-item a:hover { color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--footer); color: var(--accent);
  text-align: center; padding: clamp(1.8rem, 4vw, 2.4rem) 0 clamp(1.2rem, 3vw, 1.6rem);
  font-family: 'IM Fell French Canon', serif;
  border-top: 1px solid #2e1d0c;
}
.footer-logo { font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: 1.2px; margin-bottom: .4rem; }
.footer-address { color: var(--muted-2); font-size: clamp(.82rem, 1.3vw, .9rem); margin-bottom: .3rem; }
.footer-copy { font-size: clamp(.76rem, 1.2vw, .82rem); color: #9a7840; margin-top: .5rem; }
.footer-nav {
  display: flex; justify-content: center; gap: clamp(.8rem, 2vw, 1.5rem);
  flex-wrap: wrap; margin-top: .8rem;
}
.footer-nav a { color: var(--muted-2); font-size: clamp(.82rem, 1.3vw, .9rem); transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── UTILITAIRES ── */
.text-center { text-align: center; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.flex-center { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .8rem; }
.flex-gap    { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ── WIDE CARD ── */
.wide-card {
  display: grid; grid-template-columns: 280px 1fr;
  background: linear-gradient(145deg, var(--card), #3a2615);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.wide-card-img { overflow: hidden; flex-shrink: 0; }
.wide-card-img img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block; }
.wide-card-body { padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem); display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.wide-card-body h3 { font-family: 'IM Fell French Canon', serif; color: var(--accent); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.wide-card-body p { color: var(--muted); line-height: 1.72; font-size: clamp(.88rem, 1.5vw, .98rem); }
@media (max-width: 640px) {
  .wide-card { grid-template-columns: 1fr; }
  .wide-card-img img { height: 200px; }
}

/* ── DIVIDER VERTICAL (flex-center separators) ── */
@media (max-width: 520px) {
  .divider-v { display: none !important; }
  .private-box .flex-center,
  .resa-box .flex-center { flex-direction: column; gap: .6rem; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, .reveal, .btn, .card, .gallery-nav-btn { transition: none !important; }
  html { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
