/* Hôtel Bristol*** Montbéliard — design system */

:root {
  --header-h: 64px;
  --braise: #7C2D26;
  --braise-deep: #5E211C;
  --laiton: #B08A47;
  --creme: #F6F1E7;
  --encre: #241D16;
  --sombre: #1E1812;
  --sable: #E9DFCB;
}
@media (min-width: 768px) {
  :root { --header-h: 113px; }
}

html { scroll-behavior: smooth; }

:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

/* Grain très léger, ambiance papier */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Navigation ---------- */
.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--encre);
  opacity: .82;
  transition: color .2s ease, opacity .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--laiton);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--braise); opacity: 1; }
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--braise); opacity: 1; font-weight: 500; }
#dd-montbeliard[data-current-parent] { color: var(--braise); opacity: 1; font-weight: 500; }

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 10px;
  min-width: 236px;
  padding: 10px 0;
  background: var(--creme);
  border: 1px solid rgba(36, 29, 22, .08);
  box-shadow: 0 26px 50px -18px rgba(36, 29, 22, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, translate .22s ease, visibility .22s;
}
[data-dropdown]:hover .dropdown-panel,
[data-dropdown]:focus-within .dropdown-panel,
[data-dropdown].open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  translate: -50% 0;
}
.dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--encre);
  transition: color .18s ease, background .18s ease;
}
.dropdown-link:hover, .dropdown-link[aria-current="page"] { color: var(--braise); background: rgba(176, 138, 71, .08); }

[data-menu-toggle] .icon-close { display: none; }
[data-menu-toggle][aria-expanded="true"] .icon-burger { display: none; }
[data-menu-toggle][aria-expanded="true"] .icon-close { display: block; }

#menu-mobile { opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease; }
#menu-mobile.open { opacity: 1; transform: none; }
#menu-mobile .nav-link, #menu-mobile a { color: inherit; }
#menu-mobile [aria-current="page"] { color: var(--laiton); }

.site-header.scrolled [data-navbar] { box-shadow: 0 12px 34px -20px rgba(36, 29, 22, .45); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 500;
  padding: 1rem 2rem;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn-primary { background: var(--braise); color: var(--creme); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--braise-deep); }
.btn-outline-light { border: 1px solid rgba(246, 241, 231, .65); color: var(--creme); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { background: rgba(246, 241, 231, .14); border-color: var(--creme); }
.btn-ghost { border: 1px solid rgba(36, 29, 22, .28); color: var(--encre); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--braise); color: var(--braise); }

/* ---------- Surfaces & ornements ---------- */
.ornament { display: flex; align-items: center; gap: 16px; color: var(--laiton); }
.ornament::before, .ornament::after { content: ""; height: 1px; flex: 1; }
.ornament::before { background: linear-gradient(90deg, transparent, var(--laiton)); }
.ornament::after { background: linear-gradient(90deg, var(--laiton), transparent); }
.ornament-diamond {
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--laiton); flex-shrink: 0;
}

.surtitre {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--laiton);
  font-weight: 500;
}

.zoom { overflow: hidden; }
.zoom img { transition: transform .8s cubic-bezier(.2, .6, .2, 1); }
.zoom:hover img { transform: scale(1.045); }

.hero-full {
  height: calc(100svh - var(--header-h));
  min-height: 560px;
  margin-top: var(--header-h);
}
.hero-page {
  height: 54svh;
  min-height: 420px;
  margin-top: var(--header-h);
}

/* ---------- Motion ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
.hero-anim > * { opacity: 0; animation: fadeUp .9s cubic-bezier(.2, .6, .2, 1) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: .15s; }
.hero-anim > *:nth-child(2) { animation-delay: .32s; }
.hero-anim > *:nth-child(3) { animation-delay: .5s; }
.hero-anim > *:nth-child(4) { animation-delay: .68s; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .6, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-anim > * { opacity: 1; transform: none; animation: none; transition: none; }
  .zoom img { transition: none; }
}

/* ---------- Divers ---------- */
.footer-link { transition: color .2s ease; color: rgba(246, 241, 231, .72); }
.footer-link:hover, .footer-link:focus-visible { color: var(--laiton); }

.link-laiton { color: var(--braise); font-weight: 500; text-decoration: underline; text-decoration-color: var(--laiton); text-underline-offset: 4px; transition: color .2s ease; }
.link-laiton:hover { color: var(--braise-deep); }

.table-tarifs th, .table-tarifs td { padding: 14px 16px; text-align: left; }
.table-tarifs thead th { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--laiton); font-weight: 500; }
.table-tarifs tbody tr { border-top: 1px solid rgba(36, 29, 22, .1); }
.table-tarifs tbody tr:hover { background: rgba(176, 138, 71, .06); }

input, textarea, select {
  width: 100%;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(36, 29, 22, .22);
  padding: 12px 14px;
  color: var(--encre);
  font-size: 15px;
  transition: border-color .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--braise); outline: none; }
label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(36, 29, 22, .65); }
