/* La Petite Grenouille — feuille de style
   Palette tirée du film : crépi crème, volets verts, piscine turquoise,
   tuiles terracotta, couchers de soleil dorés. */

:root {
  --creme: #f6f1e7;
  --ecru: #ede5d3;
  --sable: #e3d7bf;
  --vert: #2f5233;
  --vert-doux: #56774f;
  --vert-pale: #d9e2d2;
  --piscine: #2fa8bc;
  --terracotta: #b4643f;
  --or: #e3a24a;
  --nuit: #1f2c20;
  --encre: #2b2f28;
  --encre-douce: #5c614f;
  --blanc: #fffdf8;
  --ombre: 0 10px 30px rgba(31, 44, 32, .12);
  --rayon: 14px;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--encre);
  background: var(--creme);
}
img { max-width: 100%; display: block; }
a { color: var(--vert); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--vert); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 0 0 .4em; }
h3 { font-size: 1.45rem; margin: 0 0 .3em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--vert); color: #fff; padding: .6em 1em;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- entête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .55rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(246, 241, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sable);
}
.site-header__brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.site-header__logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--sable); }
.site-header__title {
  display: block; font-family: var(--serif); font-weight: 700;
  font-size: 1.35rem; letter-spacing: .04em; color: var(--vert);
}
.site-header__sub { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--encre-douce); }
.site-nav { display: flex; gap: clamp(.8rem, 2vw, 1.6rem); }
.site-nav a {
  text-decoration: none; color: var(--encre); font-weight: 400;
  letter-spacing: .06em; font-size: .95rem; padding: .3em 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--vert); border-bottom-color: var(--or); }
.site-nav a[aria-current="page"] { color: var(--vert); border-bottom-color: var(--vert); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .site-header__sub { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; justify-content: center;
    background: none; border: 0; padding: .6rem; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--vert); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 0;
    border-top: 1px solid var(--sable); margin-top: .4rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75em .2em; border-bottom: 1px solid var(--sable); }
}

/* ---------------------------------------------------------------- héros */
.hero {
  position: relative; min-height: min(92vh, 780px);
  display: grid; place-items: center; text-align: center;
  isolation: isolate; overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31,44,32,.25) 0%, rgba(31,44,32,.12) 45%, rgba(31,44,32,.55) 100%);
}
.hero__box { padding: 4rem 1.2rem; color: #fff; }
.hero__kicker {
  font-size: .85rem; letter-spacing: .34em; text-transform: uppercase;
  color: #f3e6cf; margin: 0 0 1rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: .12em;
  text-transform: uppercase; margin: 0;
  text-shadow: 0 2px 24px rgba(31,44,32,.45);
}
.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 300;
  letter-spacing: .05em; margin: 1rem auto 2rem; max-width: 34em;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .8em 1.9em; border-radius: 999px;
  text-decoration: none; font-weight: 400; letter-spacing: .1em; font-size: .92rem;
  text-transform: uppercase; border: 1.5px solid transparent;
  cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s, border-color .2s;
}
.btn--plein { background: var(--or); color: var(--nuit); }
.btn--plein:hover { background: #f0b563; }
.btn--contour { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(31,44,32,.18); }
.btn--contour:hover { background: rgba(255,255,255,.16); }
.btn--vert { background: var(--vert); color: #fff; border: 0; }
.btn--vert:hover { background: var(--vert-doux); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 5vw, 2.6rem); }
.section--etroit { max-width: 1100px; margin: 0 auto; }
.section--ecru { background: var(--ecru); }
.section--vert-pale { background: var(--vert-pale); }
.section__intro { max-width: 46em; }
.kicker {
  font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 .6em; font-weight: 400;
}

.deux-colonnes {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1.15fr .85fr; align-items: center;
  max-width: 1150px; margin: 0 auto;
}
@media (max-width: 820px) { .deux-colonnes { grid-template-columns: 1fr; } }
.deux-colonnes img { border-radius: var(--rayon); box-shadow: var(--ombre); }

/* cartes */
.cartes {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1150px; margin: 2rem auto 0;
}
.carte {
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); display: flex; flex-direction: column;
}
.carte img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.carte__body { padding: 1.3rem 1.4rem 1.6rem; }
.carte__body p { margin: .3em 0 0; color: var(--encre-douce); }

/* bande pleine largeur avec image */
.bande {
  position: relative; min-height: 420px; display: grid; place-items: center;
  text-align: center; isolation: isolate; overflow: hidden;
}
.bande__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.bande::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(31,44,32,.35); }
.bande__box { color: #fff; padding: 3rem 1.2rem; max-width: 42em; }
.bande__box h2 { color: #fff; }
.bande__box p { font-size: 1.1rem; }

/* chambres */
.room-card {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 0;
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); margin: 0 auto 1.8rem; max-width: 980px;
}
.room-card:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.room-card:nth-child(even) .room-card__img { order: 2; }
.room-card__img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.room-card__body { padding: clamp(1.4rem, 3vw, 2.4rem); align-self: center; }
.room-card__line {
  margin: 0 0 .6em; color: var(--terracotta);
  letter-spacing: .22em; text-transform: uppercase; font-size: .8rem;
}
.room-card__details { color: var(--encre-douce); font-size: .92rem; font-style: italic; }
@media (max-width: 720px) {
  .room-card, .room-card:nth-child(even) { grid-template-columns: 1fr; }
  .room-card:nth-child(even) .room-card__img { order: 0; }
}

.note {
  max-width: 980px; margin: 0 auto 2rem; padding: .9rem 1.2rem;
  background: var(--vert-pale); border-left: 4px solid var(--vert);
  border-radius: 6px; color: var(--encre); font-size: .96rem;
}

/* --------------------------------------------------------------- galerie */
.galerie {
  columns: 3 300px; column-gap: 1.1rem;
  max-width: 1250px; margin: 1.6rem auto 0;
}
.galerie figure {
  margin: 0 0 1.1rem; break-inside: avoid;
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre);
  position: relative; background: var(--blanc);
}
.galerie img { width: 100%; cursor: zoom-in; transition: transform .3s; }
.galerie figure:hover img { transform: scale(1.03); }
.galerie figcaption {
  padding: .55rem .9rem .7rem; font-size: .88rem; color: var(--encre-douce);
}
.galerie figcaption strong { color: var(--encre); font-weight: 500; }

.badge-hote {
  display: inline-block; background: var(--or); color: var(--nuit);
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: .1em .7em; margin-left: .4em; vertical-align: 1px;
}

/* --------------------------------------------------------- formulaires */
.formulaire {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: clamp(1.4rem, 4vw, 2.4rem); max-width: 640px;
}
.formulaire label { display: block; font-weight: 400; margin: 1rem 0 .3rem; letter-spacing: .03em; }
.formulaire input[type="text"],
.formulaire input[type="password"],
.formulaire textarea,
.formulaire select {
  width: 100%; padding: .7em .9em; font: inherit; color: var(--encre);
  border: 1px solid var(--sable); border-radius: 8px; background: var(--creme);
}
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire input:focus, .formulaire textarea:focus, .formulaire select:focus {
  outline: 2px solid var(--piscine); outline-offset: 1px;
}
.formulaire .btn { margin-top: 1.4rem; }
.champ-piege { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-retour { margin-top: 1rem; font-weight: 400; }
.form-retour.ok { color: var(--vert); }
.form-retour.erreur { color: var(--terracotta); }

/* livre d'or */
.livredor-liste { max-width: 820px; margin: 2.5rem auto 0; display: grid; gap: 1.2rem; }
.mot {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.4rem 1.6rem; position: relative;
}
.mot::before {
  content: "“"; position: absolute; top: -6px; left: 14px;
  font-family: var(--serif); font-size: 3.4rem; color: var(--or); line-height: 1;
}
.mot__texte { margin: 0 0 .8rem; padding-left: 1.6rem; white-space: pre-line; }
.mot__signature { padding-left: 1.6rem; font-size: .92rem; color: var(--encre-douce); }
.mot__signature strong { color: var(--vert); font-weight: 500; }

/* ------------------------------------------------------------- lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(20, 28, 21, .92);
  display: grid; place-items: center; padding: 2.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 94vw); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox figcaption { color: #d9d2c0; text-align: center; padding-top: .8rem; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.4rem; background: none; border: 0;
  color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* --------------------------------------------------------- pied de page */
.site-footer { background: var(--nuit); color: #cfc9b8; margin-top: 0; }
.site-footer__inner { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.4rem 2.5rem; text-align: center; }
.site-footer__frog { width: 54px; height: 49px; color: var(--or); margin: 0 auto 1rem; display: block; }
.site-footer__name { font-family: var(--serif); font-size: 1.7rem; color: #f2ecdd; margin: 0; letter-spacing: .06em; }
.site-footer__line { margin: .3em 0 1.4em; font-size: .95rem; letter-spacing: .08em; }
.site-footer__nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.site-footer__nav a { color: #cfc9b8; text-decoration: none; font-size: .92rem; letter-spacing: .06em; }
.site-footer__nav a:hover { color: var(--or); }
.site-footer__copy { font-size: .8rem; color: #8d8a77; }

/* --------------------------------------------------------- animations */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------- espace hôtes */
.admin-liste { display: grid; gap: .9rem; max-width: 820px; margin: 1.5rem auto; }
.admin-item {
  display: flex; gap: 1rem; align-items: center;
  background: var(--blanc); border-radius: 10px; box-shadow: var(--ombre);
  padding: .8rem 1rem;
}
.admin-item img { width: 74px; height: 56px; object-fit: cover; border-radius: 6px; }
.admin-item__texte { flex: 1; min-width: 0; }
.admin-item__texte p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.admin-item__meta { font-size: .82rem; color: var(--encre-douce); }
.admin-item.cache { opacity: .45; }
.btn-mini {
  border: 1px solid var(--sable); background: var(--creme); border-radius: 8px;
  padding: .35em .8em; cursor: pointer; font: inherit; font-size: .85rem;
}
.btn-mini:hover { background: var(--sable); }
.btn-mini--danger { color: var(--terracotta); border-color: var(--terracotta); background: none; }
.btn-mini--danger:hover { background: #f7e8e0; }

.hidden { display: none !important; }

/* ------------------------------------------------------------ utilitaires */
.centre { text-align: center; }
.mt-2 { margin-top: 2rem; }
.grand-texte { font-size: 1.15rem; }
.section--sans-haut { padding-top: 0; }
.hero__title--page { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.bande--page { min-height: 340px; }
.lien-clair { color: #f3e6cf; }
.form-marge { margin: 1.5rem auto 0; }
.deux-colonnes--haut { align-items: start; }
.colonne-image { position: sticky; top: 90px; }
