/* Baleal Happiness Surf House : bleu océan doux, blanc, bois clair, sable. Mobile d'abord. */

:root {
  --ocean: #1f5f7a;        /* boutons, liens (contraste 7:1 sur blanc) */
  --ocean-dark: #164759;
  --ocean-light: #e8f2f6;
  --sand: #f4ede1;
  --wood: #d8bf98;
  --text: #1d2a30;
  --muted: #4d5d64;        /* texte secondaire (contraste > 4.5:1) */
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(29, 42, 48, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

body:has(.mobile-bar) {
  padding-bottom: 4.5rem; /* place pour la barre de réservation mobile (accueil seulement) */
}

h1,
h2 {
  line-height: 1.25;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

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

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* En-tête : sur mobile, le menu défile horizontalement (pas besoin de JavaScript). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--sand);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-list {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-list a {
  display: inline-block;
  padding: 0.25rem 0;
  text-decoration: none;
}

.nav-cta {
  font-weight: 700;
}

/* Galerie : une photo sur mobile, mosaïque sur ordinateur. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gallery {
  position: relative;
}

.gallery img {
  display: none;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

.gallery .g-main {
  display: block;
}

.all-photos {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* Grilles de photos de la page « the house » */
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
}

/* Mise en page : contenu puis encadré de réservation. */
.layout {
  display: grid;
  gap: 2rem;
  margin-top: 1.5rem;
}

.content section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sand);
}

.facts {
  margin: 0;
  font-weight: 600;
}

.rating {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.highlights,
.amenities,
.distances,
.rooms {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.highlights li,
.amenities li,
.distances li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.highlights li::before,
.amenities li::before,
.distances li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--wood);
}

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.rooms li {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--sand);
}

.room-name {
  display: block;
  font-weight: 700;
}

.reviews {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.review {
  margin: 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ocean-light);
}

.review blockquote {
  margin: 0;
}

.review blockquote p {
  margin: 0 0 0.5rem;
}

.review figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.map {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
}

details {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

/* Encadré de réservation */
.booking {
  padding: 1.25rem;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  align-self: start;
}

.price {
  margin: 0;
  font-size: 1.2rem;
}

.small {
  font-size: 0.9rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field input {
  padding: 0.6rem;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: 8px;
}

.button {
  display: inline-block;
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--ocean);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--ocean-dark);
}

/* Barre de réservation collée en bas, mobile uniquement */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--sand);
  box-shadow: var(--shadow);
}

.mobile-bar .button {
  width: auto;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 0;
  background: var(--sand);
  font-size: 0.9rem;
}

/* Ordinateur */
@media (min-width: 900px) {
  body:has(.mobile-bar) {
    padding-bottom: 0;
  }

  h1 {
    font-size: 2rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .gallery {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 440px;
  }

  .gallery img {
    display: block;
    height: 100%;
    aspect-ratio: auto;
    min-height: 0;
  }

  .gallery .g-main {
    grid-row: 1 / 3;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
  }

  .booking {
    position: sticky;
    top: 5rem;
  }

  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-bar {
    display: none;
  }
}

/* Pages intérieures (réservation, privacy) */
.page {
  padding-top: 1.5rem;
}

.lead {
  font-size: 1.1rem;
  max-width: 65ch;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 2rem;
}

.field textarea {
  padding: 0.6rem;
  font: inherit;
  border: 1px solid var(--muted);
  border-radius: 8px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.checkbox input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
}

.gdpr {
  margin-top: 1rem;
}

/* Champ anti-robots : jamais affiché */
.hp {
  display: none;
}

.stay-facts {
  margin: 0;
  padding-left: 1.2rem;
}

.stay-facts li {
  padding: 0.25rem 0;
}

.faq-cta {
  margin-top: 2rem;
}

.faq-cta .button {
  width: auto;
}

/* Page « the house » */
.key-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
  padding: 0;
  list-style: none;
  text-align: center;
}

.key-numbers li {
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius);
  background: var(--ocean-light);
}

.key-numbers strong {
  display: block;
  font-size: 1.5rem;
  color: var(--ocean);
}

.floor {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--sand);
}

.amenity-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem 2rem;
}

.amenity-groups h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.amenity-groups ul {
  margin: 0;
  padding-left: 1.2rem;
}
