/* La Huchette — styles.css */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.08);
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --card: #ffffff;
  --border: rgba(11,18,32,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius: 18px;

  --primary: #1177ff;
  --primary-2: #0e5fcd;

  --max: 1100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #f6f7fb;
}

img{ max-width:100%; height:auto; display:block; }
/* Ensure HTML hidden attribute actually hides elements */
*[hidden]{ display: none !important; }

a{ color: inherit; text-decoration: none; }
p{ line-height: 1.6; }
.muted{ color: var(--muted); }

.container{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246,247,251,.75);
  border-bottom: 1px solid rgba(11,18,32,.06);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
}
.brand__mark{
  width: 14px; height: 14px;
  border-radius: 5px;
  background: linear-gradient(135deg, #39b5ff, #1177ff);
  box-shadow: 0 6px 18px rgba(17,119,255,.25);
}
.brand__name{ letter-spacing: -0.02em; }

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}
.nav a{
  font-size: 14px;
  color: rgba(11,18,32,.78);
  padding: 8px 10px;
  border-radius: 12px;
}
.nav a:hover{ background: rgba(17,119,255,.08); color: #0b1220; }

.header__actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.burger{ display:none; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: scale(.98); }

.btn--small{ padding: 10px 12px; border-radius: 12px; font-size: 14px; }

.btn--primary{
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 22px rgba(17,119,255,.22);
}
.btn--primary:hover{ background: var(--primary-2); }

.btn--secondary{
  background: rgba(17,119,255,.10);
  color: #0b1220;
  border-color: rgba(17,119,255,.18);
}
.btn--secondary:hover{ background: rgba(17,119,255,.14); }

.btn--ghost{
  background: transparent;
  border-color: rgba(11,18,32,.14);
  color: rgba(11,18,32,.85);
}
.btn--ghost:hover{ background: rgba(11,18,32,.04); }

/* Mobile nav */
.mobile-nav{
  display:none;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(11,18,32,.06);
}
.mobile-nav a{
  display:block;
  padding: 12px 0;
  color: rgba(11,18,32,.82);
}

/* Hero */
.hero{
  position: relative;
  min-height: 72vh;
  display:grid;
  align-items: center;
  overflow:hidden;
  background: #0b1220;
}
.hero{
  position: relative;
  min-height: 72vh;
  display:grid;
  align-items: center;
  overflow:hidden;
  background: #0b1220;
}
.hero__bg{
  position:absolute;
  inset:0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: opacity 900ms ease;
}
.hero__bg--a{ opacity: 1; z-index: 0; }
.hero__bg--b{ opacity: 0; z-index: 0; }

/* Voile sombre pour garder le texte lisible */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(110deg, rgba(11,18,32,.82), rgba(11,18,32,.20));
  z-index: 1;
}
.hero__content{
  position:relative;
  z-index: 2;
  padding: 70px 0;
  color: white;
}

.hero__content{
  position:relative;
  padding: 70px 0;
  color: white;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
  margin: 0 0 18px;
}
.hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.lead{
  margin: 0 0 22px;
  max-width: 62ch;
  color: rgba(255,255,255,.88);
  font-size: 16px;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero__badges{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge{
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
}

/* Sections */
.section{ padding: 62px 0; }
.section--alt{ background: #ffffff; }
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section__head h2{ margin: 0; letter-spacing: -0.03em; }
.section__head p{ margin: 0; color: var(--muted); }

/* Layout helpers */
.grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: start;
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.photo-card img{ width: 100%; height: 100%; object-fit: cover; }
.photo-card__caption{
  padding: 12px 14px;
  border-top: 1px solid rgba(11,18,32,.06);
  font-size: 13px;
  color: rgba(11,18,32,.72);
}

/* Checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display:grid;
  gap: 10px;
}
.checklist li{
  padding-left: 0;
  color: rgba(11,18,32,.86);
}

/* Callout */
.callout{
  margin-top: 18px;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(17,119,255,.08);
  border: 1px solid rgba(17,119,255,.14);
}
.callout h3{ margin:0 0 6px; font-size: 15px; }
.callout p{ margin:0; color: rgba(11,18,32,.78); }

/* Rooms */
.rooms{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.room img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room__body{ padding: 14px; }
.room__body h3{ margin: 0 0 6px; font-size: 16px; }
.room__body p{ margin: 0; color: rgba(11,18,32,.76); font-size: 14px; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.gallery__item{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  outline: none;
}
.gallery__item img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .18s ease;
}
.gallery__item:hover img{ transform: scale(1.06); }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display:grid;
  place-items: center;
  padding: 20px;
}
.modal img{
  max-width: min(980px, 92vw);
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal__close{
  position:absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature{
  padding: 16px;
  border-radius: 18px;
  background: rgba(11,18,32,.03);
  border: 1px solid rgba(11,18,32,.06);
}
.feature h3{ margin:0 0 8px; font-size: 15px; }
.feature p{ margin:0; color: rgba(11,18,32,.74); font-size: 14px; }

.cta{
  margin-top: 18px;
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.cta h3{ margin:0 0 6px; }
.cta p{ margin:0; color: rgba(11,18,32,.72); }

/* Map */
.map iframe{
  width: 100%;
  height: 360px;
  border: 0;
}
.map__hint{
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(11,18,32,.68);
  border-top: 1px solid rgba(11,18,32,.06);
}

/* Footer */
.footer{
  padding: 34px 0;
  background: #0b1220;
  color: rgba(255,255,255,.86);
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
}
.footer__brand{ font-weight: 700; letter-spacing: -0.03em; }
.footer__links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__links a{
  color: rgba(255,255,255,.82);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.footer__links a:hover{ background: rgba(255,255,255,.08); }

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{ display:inline-flex; }
  .mobile-nav{ display:block; }
  .grid2{ grid-template-columns: 1fr; }
  .rooms{ grid-template-columns: repeat(2, 1fr); }
  .gallery{ grid-template-columns: repeat(3, 1fr); }
  .features{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .gallery__item img{ height: 140px; }
}


/* Reservation / form */
.pad{ padding: 18px; }
.form{ display:grid; gap: 12px; }
.form__row{ display:grid; gap: 6px; }
.form__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
label{ font-size: 13px; color: rgba(11,18,32,.72); }
input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.14);
  outline: none;
  font: inherit;
  background: white;
}
input:focus{ border-color: rgba(17,119,255,.55); box-shadow: 0 0 0 4px rgba(17,119,255,.10); }

.small{ font-size: 13px; }

.calendar{
  margin-top: 10px;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 16px;
  overflow: hidden;
}
.legend{
  display:inline-block;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  vertical-align: -2px;
  margin: 0 6px;
}
.legend--blocked{ background: rgba(255, 74, 74, .35); border: 1px solid rgba(255, 74, 74, .55); }

.hint{ margin-top: 10px; }

@media (max-width: 980px){
  .form__grid{ grid-template-columns: 1fr; }
}


/* Galerie : navigation précédent/suivant */
.modal__nav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.modal__prev{ left: 16px; }
.modal__next{ right: 16px; }

#modalImg{ transition: opacity 180ms ease; }

@media (prefers-reduced-motion: reduce){
  .hero__bg{ transition: none; }
  #modalImg{ transition: none; }
}

.status{ margin-top:10px; font-size:13px; }
