/* ==========================================================================
   Le Gîte de Penhoat — Feuille de style
   ========================================================================== */

:root {
  --green: #33523f;
  --green-dark: #24382b;
  --green-soft: #e7efe6;
  --cream: #faf6ee;
  --sand: #f1e9d8;
  --accent: #c17a3f;
  --accent-dark: #a5602c;
  --text: #2b2b26;
  --text-soft: #5d5d52;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(36, 56, 43, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-dark);
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.section__intro {
  max-width: 640px;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(51, 82, 63, 0.12);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 4px 20px rgba(36, 56, 43, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav a:not(.lang-switch a) {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: color 0.2s;
}

.nav a:not(.lang-switch a):hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  border: 1px solid rgba(51, 82, 63, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
}

.lang-switch a {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

.lang-switch a:hover {
  color: var(--green);
}

.lang-switch a[aria-current="true"] {
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--outline {
  border-color: var(--green);
  color: var(--green);
}

.btn--outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn--ghost {
  background: var(--white);
  color: var(--green-dark);
  border-color: rgba(51, 82, 63, 0.2);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--green-dark);
  border-radius: 2px;
  content: "";
  position: relative;
  transition: transform 0.25s, top 0.25s;
}

.nav-toggle span::before {
  position: absolute;
  top: -8px;
}

.nav-toggle span::after {
  position: absolute;
  top: 8px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #dcead9 0%, #eef3e4 55%, var(--cream) 100%);
  overflow: hidden;
  padding: 4rem 0 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 0.4rem;
}

.hero__location {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero__text {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.8rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.stat svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.stat b {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.stat span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero__visual {
  position: relative;
}

.hero__visual svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero__badge {
  position: absolute;
  top: -1.2rem;
  right: 1rem;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__badge .stars {
  color: #f4c95d;
  letter-spacing: 0.05em;
}

.photo-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  font-style: italic;
  text-align: center;
}

/* --------------------------------------------------------------------------
   À propos
   -------------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__content p + p {
  margin-top: 1rem;
}

.about__highlight {
  margin-top: 1.6rem;
  background: var(--green-soft);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
}

.about__visual {
  position: relative;
}

.about__visual svg {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Équipements
   -------------------------------------------------------------------------- */

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.amenity {
  background: var(--cream);
  border: 1px solid rgba(51, 82, 63, 0.1);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.amenity:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.amenity svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
}

.amenity b {
  display: block;
  font-size: 0.98rem;
}

.amenity--included {
  background: var(--green-soft);
  border-color: transparent;
}

.amenity--included b {
  color: var(--green-dark);
}

.amenity--included span {
  font-size: 0.78rem;
  color: var(--text-soft);
  display: block;
}

/* --------------------------------------------------------------------------
   Alentours
   -------------------------------------------------------------------------- */

.around__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.distances {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.distances li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid rgba(51, 82, 63, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
}

.distances li span {
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent);
  font-size: 0.92rem;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
  line-height: 0;
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* --------------------------------------------------------------------------
   Avis
   -------------------------------------------------------------------------- */

.rating-summary {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.4rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.8rem;
  box-shadow: var(--shadow);
}

.rating-summary__score {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.rating-summary__score small {
  font-size: 1.2rem;
  color: var(--text-soft);
}

.rating-summary__stars {
  color: #e8b64c;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
}

.rating-summary__count {
  color: var(--text-soft);
  font-weight: 700;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.review__stars {
  color: #e8b64c;
  letter-spacing: 0.12em;
}

.review h3 {
  font-size: 1.15rem;
}

.review p {
  color: var(--text-soft);
  font-size: 0.98rem;
  flex: 1;
}

.review__author {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--green);
}

.review__note {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Infos pratiques + CTA
   -------------------------------------------------------------------------- */

.practical {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3.5rem;
}

.practical__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.practical__card svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--accent);
}

.practical__card b {
  display: block;
  margin-bottom: 0.2rem;
}

.practical__card p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.cta-band {
  position: relative;
  background: var(--green-dark);
  border-radius: calc(var(--radius) + 6px);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(193, 122, 63, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(193, 122, 63, 0.25), transparent 40%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .btn--primary {
  background: var(--accent);
}

.cta-band .btn--primary:hover {
  background: var(--white);
  color: var(--green-dark);
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band__note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
  color: #f4c95d;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Bandeau CTA mobile
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--green-dark);
  padding: 0.7rem 1rem;
  box-shadow: 0 -6px 20px rgba(36, 56, 43, 0.25);
}

.mobile-cta a {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .around__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.2rem 1.2rem;
    border-bottom: 1px solid rgba(51, 82, 63, 0.12);
    display: none;
    box-shadow: 0 12px 20px rgba(36, 56, 43, 0.08);
  }

  .nav--open {
    display: flex;
  }

  .nav > a {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(51, 82, 63, 0.08);
  }

  .nav .btn,
  .nav .lang-switch {
    margin-top: 0.9rem;
    align-self: flex-start;
  }

  .nav .lang-switch {
    align-self: center;
  }

  .nav-toggle {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .mobile-cta {
    display: block;
  }

  body {
    padding-bottom: 4.2rem;
  }

  .section {
    padding: 3.4rem 0;
  }
}

/* --------------------------------------------------------------------------
   Photos (hero, à propos)
   -------------------------------------------------------------------------- */

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Galerie
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  background: var(--green-soft);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 1rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(36, 56, 43, 0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Photos de la région (alentours)
   -------------------------------------------------------------------------- */

.region-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.region-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-soft);
}

.region-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.region-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.9rem 0.6rem;
  background: linear-gradient(180deg, transparent, rgba(36, 56, 43, 0.85));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 26, 22, 0.92);
  padding: 2rem;
}

.lightbox--open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__caption {
  position: absolute;
  bottom: 1.4rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive photos
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .gallery,
  .region-photos {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Navigation de la visionneuse */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 999px;
  width: 52px;
  height: 52px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__nav--prev {
  left: 1.2rem;
}

.lightbox__nav--next {
  right: 1.2rem;
}

.lightbox__counter {
  position: absolute;
  top: 1.6rem;
  left: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .lightbox__nav {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
}

/* Légendes photos désactivées (demande du propriétaire) */
.gallery__item figcaption,
.region-card figcaption,
.lightbox__caption {
  display: none;
}

/* --------------------------------------------------------------------------
   Pages légales
   -------------------------------------------------------------------------- */

.legal-page {
  max-width: 760px;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
  margin-bottom: 0.5rem;
  padding-top: 0.3rem;
}

.legal-page p,
.legal-page ul {
  color: var(--text-soft);
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.6rem;
  display: grid;
  gap: 0.6rem;
  margin: 0.8rem 0;
}

.legal-page a {
  text-decoration: underline;
}
