:root {
  --vert: #263a2c;
  --vert-fonce: #1b2a20;
  --sauge: #8da48f;
  --volet: #7f9c8a;
  --ocre: #b8693f;
  --creme: #f6f0e4;
  --pierre: #ece3d2;
  --encre: #1f2420;
  --gris: #5b6158;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --marge: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 300 17px/1.65 var(--sans);
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 24px; color: var(--vert); }
h3 { font-size: 24px; }
p { margin: 0 0 16px; }
figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.conteneur { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--marge); }
.evitement { position: absolute; left: -9999px; }
.evitement:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.surtitre {
  font: 500 12px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.surtitre--ocre { color: var(--ocre); }
.surtitre--sauge { color: var(--sauge); }

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px;
  font: 400 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.bouton--plein { background: var(--ocre); color: #fff; border: 1px solid var(--ocre); }
.bouton--plein:hover { background: #a25a33; border-color: #a25a33; }
.bouton--clair { color: #fff; border: 1px solid rgba(255,255,255,.7); }
.bouton--clair:hover { background: #fff; color: var(--vert); }

/* En-tête */
.entete {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--marge);
  transition: background-color .35s, box-shadow .35s, padding .35s;
}
.entete__logo { position: relative; display: block; width: 150px; flex: none; }
.logo { width: 100%; transition: opacity .35s; }
.logo--vert { position: absolute; inset: 0; opacity: 0; }
.entete__nav { display: flex; gap: 28px; margin-left: auto; }
.entete__nav a {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 400;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.entete__nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.entete__tel { display: none; }
.entete__reserver { min-height: 42px; padding: 0 22px; font-size: 13px; }
.entete__burger { display: none; }

.entete.est-defile { background: rgba(246,240,228,.96); box-shadow: 0 1px 0 rgba(38,58,44,.12); padding-top: 12px; padding-bottom: 12px; }
.entete.est-defile .logo--blanc { opacity: 0; }
.entete.est-defile .logo--vert { opacity: 1; }
.entete.est-defile .entete__nav a { color: var(--vert); text-shadow: none; }
.entete.est-defile .entete__reserver { color: #fff; background: var(--vert); border-color: var(--vert); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--vert-fonce);
}
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 50% 40%; }
.hero__voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,30,22,.45) 0%, rgba(20,30,22,0) 28%),
    linear-gradient(0deg, rgba(20,30,22,.85) 0%, rgba(20,30,22,.4) 45%, rgba(20,30,22,0) 72%);
}
.hero__texte {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 var(--marge) clamp(48px, 9vh, 96px);
}
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); margin-bottom: 22px; }
.hero__chapo { max-width: 560px; font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Les volets provençaux qui s'ouvrent sur la villa */
.volets { position: absolute; inset: 0; z-index: 3; display: flex; perspective: 1800px; pointer-events: none; }
.volet {
  flex: 1; display: flex; gap: 10px; padding: 18px;
  background: var(--volet);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform 1.9s cubic-bezier(.7,0,.2,1), opacity .6s ease 1.5s;
  backface-visibility: hidden;
}
.volet--g { transform-origin: 0 50%; }
.volet--d { transform-origin: 100% 50%; }
.volet span {
  flex: 1; border: 1px solid rgba(0,0,0,.14);
  background:
    repeating-linear-gradient(180deg,
      #91ad9b 0, #91ad9b 9px,
      #6f8c7a 9px, #5d7868 13px,
      #8aa694 13px, #8aa694 14px);
  box-shadow: inset 0 0 0 4px var(--volet), inset 0 0 0 5px rgba(0,0,0,.12);
}
.est-ouvert .volet--g { transform: rotateY(-100deg); opacity: 0; }
.est-ouvert .volet--d { transform: rotateY(100deg); opacity: 0; }
.hero__texte { opacity: 0; transform: translateY(18px); transition: opacity 1s ease 1.1s, transform 1s ease 1.1s; }
.est-ouvert .hero__texte { opacity: 1; transform: none; }
.no-js .volets { display: none; }
.no-js .hero__texte { opacity: 1; transform: none; }

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

/* Intro */
.intro { padding: clamp(80px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.intro__grille { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro__texte p { font-size: 18px; color: var(--gris); max-width: 540px; }
.intro__photo img { border-radius: 220px 220px 4px 4px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(60px, 8vw, 100px); padding-top: 40px;
  border-top: 1px solid rgba(38,58,44,.18);
}
.chiffres dt { font-family: var(--serif); font-size: clamp(38px, 4.4vw, 54px); color: var(--vert); line-height: 1; }
.chiffres dd { margin: 10px 0 0; font-size: 15px; color: var(--gris); }

/* Chambres */
.chambres { padding: clamp(70px, 10vw, 130px) 0; background: var(--pierre); }
.chambres__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.chambres__aide { color: var(--gris); font-size: 15px; margin: 0 12px 0 0; }
.chambres__nav { display: flex; align-items: center; gap: 10px; }
.fleche {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(38,58,44,.35); background: transparent; color: var(--vert);
  font: 300 20px/1 var(--sans); transition: background-color .25s, color .25s;
}
.fleche:hover { background: var(--vert); color: var(--creme); }
.fleche:disabled { opacity: .3; cursor: default; background: transparent; color: var(--vert); }
.carrousel {
  display: flex; gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--marge) 10px;
  scroll-padding: 0 var(--marge);
}
.carrousel::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .carrousel { padding-left: calc((100vw - 1240px) / 2 + var(--marge)); scroll-padding-left: calc((100vw - 1240px) / 2 + var(--marge)); } }
.carte { flex: 0 0 min(82vw, 420px); scroll-snap-align: start; background: var(--creme); border-radius: 4px; overflow: hidden; }
.carte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carte__corps { padding: 24px 26px 28px; }
.carte__type { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ocre); margin-bottom: 8px; }
.carte h3 { font-size: 30px; color: var(--vert); margin-bottom: 6px; }
.carte__infos { font-size: 14px; color: var(--gris); margin-bottom: 14px; }
.carte p:last-child { margin: 0; font-size: 16px; }
.equipements { margin-top: 48px; }
.equipements__titre { font: 500 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--vert); margin-bottom: 16px; }
.equipements ul { display: flex; flex-wrap: wrap; gap: 10px; }
.equipements li { padding: 8px 16px; border: 1px solid rgba(38,58,44,.25); border-radius: 999px; font-size: 14px; }

/* Jardin */
.jardin { padding: clamp(70px, 10vw, 130px) 0; background: var(--vert); color: var(--creme); }
.jardin h2 { color: var(--creme); max-width: 720px; margin-bottom: 44px; }
.mosaique { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 18px; }
.tuile { position: relative; }
.tuile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.tuile--grande { grid-column: span 4; }
.tuile--grande img { aspect-ratio: 21 / 9; }
.tuile figcaption { padding: 16px 2px 0; }
.tuile h3 { font-size: 26px; margin-bottom: 6px; }
.tuile p { margin: 0; font-size: 15px; color: rgba(246,240,228,.88); }
.tuile--grande { overflow: hidden; border-radius: 4px; }
.tuile--grande img { border-radius: 0; }
.tuile--grande figcaption {
  position: absolute; inset: auto 0 0; padding: 120px 32px 28px;
  background: linear-gradient(0deg, rgba(15,24,18,.9) 0%, rgba(15,24,18,.55) 55%, rgba(15,24,18,0));
}
.tuile--grande h3 { font-size: clamp(28px, 3.4vw, 40px); }
.tuile--grande p { max-width: 520px; font-size: 16px; }

/* Engagements */
.engagements { padding: clamp(80px, 12vw, 150px) 0; }
.engagements__grille { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.engagements__photo { position: sticky; top: 110px; }
.engagements__photo img { border-radius: 200px 200px 4px 4px; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.engagements__chapo { font-size: 18px; color: var(--gris); max-width: 560px; margin-bottom: 36px; }
.gestes { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.gestes li { padding-top: 18px; border-top: 1px solid rgba(38,58,44,.18); }
.gestes h3 { color: var(--vert); margin-bottom: 8px; }
.gestes p { margin: 0; font-size: 15px; color: var(--gris); }

/* Juan-les-Pins */
.juan { padding: clamp(70px, 10vw, 130px) 0; background: var(--pierre); }
.juan__grille { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); margin-bottom: clamp(56px, 7vw, 90px); }
.juan__grille > div > p { font-size: 18px; color: var(--gris); }
.juan__adresse { font-style: normal; font-family: var(--serif); font-size: 26px; color: var(--vert); margin: 26px 0 14px; line-height: 1.3; }
.lien-fleche { font: 500 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ocre); text-underline-offset: 6px; }
.acces { align-self: end; }
.acces li { padding: 22px 0; border-top: 1px solid rgba(38,58,44,.18); }
.acces li:last-child { border-bottom: 1px solid rgba(38,58,44,.18); }
.acces h3 { color: var(--vert); margin-bottom: 6px; }
.acces p { margin: 0; color: var(--gris); font-size: 16px; }
.adresses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adresses img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.adresses p { margin: 12px 0 0; font-family: var(--serif); font-size: 21px; color: var(--vert); line-height: 1.25; }

/* Appel final */
.final { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.final__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20,30,22,.55); }
.final__texte { position: relative; z-index: 2; max-width: 680px; padding: 90px var(--marge); }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 30px; }
.final .hero__actions { justify-content: center; }

/* Pied de page */
.pied { background: var(--vert-fonce); color: rgba(246,240,228,.85); padding: 70px 0 30px; font-size: 15px; }
.pied__grille { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.pied__logo { width: 170px; }
.pied address { font-style: normal; line-height: 1.8; }
.pied a { text-decoration: none; }
.pied a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pied__liens { display: flex; flex-direction: column; gap: 8px; }
.pied__bas { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(246,240,228,.15); font-size: 13px; color: rgba(246,240,228,.6); }
.pied__bas a { text-decoration: underline; text-underline-offset: 3px; }

.barre-mobile { display: none; }
.pastille {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; margin: 0;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(31,36,32,.82); color: #fff;
  font: 400 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  pointer-events: none;
}

/* Tablette */
@media (max-width: 1080px) {
  .entete__nav { gap: 20px; }
  .entete__nav a { font-size: 14px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); }
  .tuile--grande { grid-column: span 2; }
  .tuile--grande img { aspect-ratio: 16 / 9; }
  .adresses { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .entete { padding: 14px var(--marge); }
  .entete__logo { width: 118px; }
  .entete__reserver { display: none; }
  .entete__burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 46px; height: 46px; margin-left: auto; padding: 0 10px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .entete__burger span { display: block; height: 1.5px; background: #fff; transition: transform .3s, background-color .3s; }
  .entete.est-defile .entete__burger span { background: var(--vert); }
  .entete__nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 22px;
    padding: 90px var(--marge) 120px; margin: 0;
    background: var(--vert); visibility: hidden; opacity: 0;
    transition: opacity .3s, visibility .3s;
  }
  .entete__nav a, .entete.est-defile .entete__nav a { color: var(--creme); font-family: var(--serif); font-size: 34px; text-shadow: none; }
  .entete__tel { display: block; margin-top: 18px; font-family: var(--sans) !important; font-size: 18px !important; letter-spacing: .08em; }
  .menu-ouvert .entete__nav { visibility: visible; opacity: 1; }
  .menu-ouvert .entete__burger span { background: var(--creme) !important; }
  .menu-ouvert .entete__burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-ouvert .entete__burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu-ouvert .logo--blanc { opacity: 1 !important; }
  .menu-ouvert .logo--vert { opacity: 0 !important; }
  .menu-ouvert .entete__logo { z-index: 2; }

  .volet { padding: 10px; gap: 6px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero__chapo { font-size: 16px; }
  .hero__actions .bouton { flex: 1 1 100%; }
  .hero__reserver { display: none !important; }
  .hero__voile { background: linear-gradient(180deg, rgba(20,30,22,.5) 0%, rgba(20,30,22,0) 22%), linear-gradient(0deg, rgba(20,30,22,.92) 0%, rgba(20,30,22,.55) 45%, rgba(20,30,22,0) 75%); }
  .fleche { display: none; }
  .intro__grille, .engagements__grille, .juan__grille { grid-template-columns: 1fr; }
  .intro__photo { max-width: 420px; }
  .chiffres { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .chambres__tete { display: block; }
  .chambres__aide { margin: 0; }
  .mosaique { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mosaique { gap: 28px 12px; }
  .tuile figcaption { padding-top: 12px; }
  .tuile h3 { font-size: 21px; }
  .tuile p { font-size: 14px; }
  .tuile--grande figcaption { padding: 90px 18px 18px; }
  .tuile--grande img { aspect-ratio: 4 / 5; }
  .tuile--grande p { font-size: 15px; }
  .engagements__photo { position: static; max-width: 420px; }
  .gestes { grid-template-columns: 1fr; gap: 22px; }
  .adresses { gap: 12px; }
  .adresses p { font-size: 18px; }
  .pied__grille { grid-template-columns: 1fr; gap: 28px; }
  .barre-mobile {
    position: fixed; inset: auto 0 0; z-index: 25;
    display: flex; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--creme); box-shadow: 0 -1px 0 rgba(38,58,44,.15);
  }
  .barre-mobile a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 999px; text-decoration: none;
    font: 400 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  }
  .barre-mobile__tel { flex: 0 0 34%; border: 1px solid var(--vert); color: var(--vert); }
  .barre-mobile__reserver { flex: 1; background: var(--ocre); color: #fff; }
  .pastille { top: calc(76px + env(safe-area-inset-top)); bottom: auto; left: 50%; transform: translateX(-50%); }
}
