/* Les Terrasses de Scalegiu, aperçu d'accueil d'après le Domaine de Murtoli. */
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Allura"; src: url("fonts/allura-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --signature: #9A4A33;      /* rouge des rochers de granit */
  --signature-fonce: #7E3B28;
  --encre: #1F1C1A;
  --texte: #3B3632;
  --creme: #F6F1EA;
  --trait: rgba(31, 28, 26, .14);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --script: "Allura", cursive;
  --entete: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; color: var(--texte); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-weight: 500; color: var(--encre); margin: 0; }
p { margin: 0 0 1.1em; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--entete); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(20px, 4vw, 56px); color: #fff; transition: background .4s, color .4s, height .4s, box-shadow .4s; }
.entete::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; transition: opacity .4s; z-index: -1; }
.entete.defile { background: #fff; color: var(--encre); height: 74px; box-shadow: 0 1px 0 var(--trait); }
.entete.defile::before { opacity: 0; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 38px); align-items: center; }
.nav a { text-decoration: none; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.nav a:not(.bouton-reserver) { position: relative; padding: 6px 0; }
.nav a:not(.bouton-reserver)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nav a:not(.bouton-reserver):hover::after { transform: scaleX(1); }
.nav-droite { justify-content: flex-end; }
.marque { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.marque-pin { width: 30px; height: 30px; margin-bottom: 4px; }
.marque-petit { font-size: .66rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }
.marque-grand { font-size: 1.7rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; margin-top: 4px; }
.entete.defile .marque-pin { display: none; }
.bouton-reserver { display: inline-block; text-decoration: none; padding: 11px 22px; border: 1px solid currentColor; font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.entete:not(.defile) .bouton-reserver:hover { background: #fff; color: var(--encre); }
.entete.defile .bouton-reserver { background: var(--signature); border-color: var(--signature); color: #fff; }
.entete.defile .bouton-reserver:hover { background: var(--signature-fonce); }
.burger, .bouton-reserver-mobile { display: none; }

/* Menu plein écran (téléphone) */
.menu-plein { position: fixed; inset: 0; z-index: 45; background: var(--signature); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; }
.menu-plein[hidden] { display: none; }
.menu-plein nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.menu-plein a { text-decoration: none; font-size: 1.15rem; letter-spacing: .26em; text-transform: uppercase; }
.menu-pin { width: 46px; height: 46px; opacity: .8; }

/* ---------- Haut de page ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; }
.hero picture, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: 42% 50%; transform: scale(1.1); transition: transform 14s cubic-bezier(.2,.6,.2,1); }
.charge .hero-photo { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.06) 40%, rgba(0,0,0,.42)); }
.hero-texte { position: relative; z-index: 1; padding: 0 24px; max-width: 1100px; opacity: 0; transform: translateY(18px); transition: opacity 1.4s .3s, transform 1.4s .3s; }
.charge .hero-texte { opacity: 1; transform: none; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.6rem); font-weight: 400; letter-spacing: .16em; text-transform: uppercase; line-height: 1.12; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.surtitre { font-size: .8rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; margin: 0 0 22px; }
.hero-sous { font-size: .86rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; margin: 24px 0 0; }
.hero-suite { position: absolute; bottom: 34px; left: 50%; z-index: 1; width: 1px; height: 64px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero-suite span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: descend 2.2s infinite; }
@keyframes descend { to { top: 100%; } }

/* ---------- Sections ---------- */
.bloc { padding: clamp(80px, 11vw, 150px) clamp(20px, 5vw, 64px); }
.bloc-creme { background: var(--creme); }
.intro { max-width: 680px; margin: 0 auto; text-align: center; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: .2em; text-transform: uppercase; line-height: 1.3; }
.accroche { font-size: .76rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--signature); margin: 14px 0 34px; }
.bouton { display: inline-flex; align-items: center; text-decoration: none; background: var(--signature); color: #fff; margin-top: 14px; transition: background .3s; }
.bouton:hover { background: var(--signature-fonce); }
.bouton svg { width: 46px; height: 46px; padding: 9px; border-right: 1px solid rgba(255,255,255,.35); color: #fff; }
.bouton span { padding: 0 24px; font-size: .76rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; line-height: 46px; }
.bouton-clair { background: transparent; color: var(--signature); box-shadow: inset 0 0 0 1px var(--signature); }
.bouton-clair:hover { background: var(--signature); color: #fff; }
.bouton-blanc { background: #fff; color: var(--signature); }
.bouton-blanc:hover { background: var(--creme); }
.boutons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.centre { text-align: center; margin-top: 46px; }

/* Carrousel des casinas */
.carrousel-cadre { max-width: 1280px; margin: clamp(56px, 7vw, 90px) auto 0; }
.carrousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carrousel::-webkit-scrollbar { display: none; }
.carte { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; text-decoration: none; color: #fff; }
.carte img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.carte:hover img { transform: scale(1.06); }
.carte::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.6)); }
.carte-texte { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 1; display: flex; flex-direction: column; }
.carte-nom { font-size: 2.1rem; letter-spacing: .04em; line-height: 1.1; }
.carte-detail { font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; opacity: .92; }
.carte-lien { font-style: italic; font-size: 1.1rem; margin-top: 12px; }
.fleches { display: none; justify-content: center; gap: 12px; margin-top: 26px; }
.fleche { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait); background: #fff; color: var(--encre); font: 1.5rem/1 var(--serif); cursor: pointer; }

/* Photo et texte côte à côte */
.duo { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.duo-inverse .duo-photo { order: 2; }
.duo-photo { aspect-ratio: 5 / 4; overflow: hidden; }
.duo-photo img { width: 100%; height: 100%; object-fit: cover; }
.duo-texte h2 { text-align: left; }
.trio { max-width: 1240px; margin: clamp(56px, 7vw, 90px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.trio img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.trio figure:hover img { transform: scale(1.06); }
.trio figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; color: #fff; font-size: 1.6rem; background: linear-gradient(transparent, rgba(0,0,0,.5)); }

/* Bande photo avec écriture manuscrite */
.bande { position: relative; height: 78vh; min-height: 460px; overflow: hidden; display: grid; place-items: center; text-align: center; color: #fff; }
.bande picture, .bande img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bande::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.22); }
.bande-texte { position: relative; z-index: 1; padding: 0 24px; }
.script { font-family: var(--script); font-size: clamp(3.6rem, 9vw, 7.5rem); line-height: 1; margin: 0 0 18px; text-shadow: 0 2px 24px rgba(0,0,0,.3); }

/* Mosaïque */
.mosaique { max-width: 1240px; margin: clamp(48px, 6vw, 72px) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(160px, 22vw, 300px); gap: 12px; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; }
.mosaique img:nth-child(1) { grid-row: span 2; }
.mosaique img:nth-child(5) { grid-column: span 2; }

/* ---------- Pied de page ---------- */
.pied { background: var(--signature); color: #fff; padding: 80px clamp(20px, 5vw, 64px) 40px; text-align: center; }
.pied-marque { display: flex; flex-direction: column; align-items: center; line-height: 1; margin-bottom: 56px; }
.pied-marque .marque-pin { width: 40px; height: 40px; }
.pied-colonnes { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pied-titre { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.3); }
.pied-liens { display: flex; flex-direction: column; gap: 4px; }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.pied-bas { margin: 64px 0 0; font-size: .95rem; opacity: .85; }

.barre-mobile { display: none; }

/* ---------- Apparition au défilement ---------- */
.js .apparition { opacity: 0; transform: translateY(28px); transition: opacity 1.1s, transform 1.1s; }
.js .apparition.vue { opacity: 1; transform: none; }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 960px) {
  :root { --entete: 72px; }
  .entete { grid-template-columns: 56px 1fr auto; }
  .nav { display: none; }
  .burger { display: flex; flex-direction: column; gap: 7px; background: none; border: 0; padding: 10px 0; cursor: pointer; color: inherit; z-index: 60; }
  .burger span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .3s; }
  .menu-ouvert .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-ouvert .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .menu-ouvert .entete { color: #fff; background: transparent; box-shadow: none; }
  .bouton-reserver-mobile { display: inline-block; padding: 9px 14px; font-size: .68rem; }
  .entete.defile .bouton-reserver-mobile { background: var(--signature); border-color: var(--signature); color: #fff; }
  .marque-pin { width: 24px; height: 24px; }
  .marque-grand { font-size: 1.3rem; }
  .marque-petit { font-size: .56rem; }
  .entete.defile { height: 64px; }
  .carrousel { grid-auto-columns: 78%; gap: 14px; }
  .fleches { display: flex; }
  .duo { grid-template-columns: 1fr; }
  .duo-inverse .duo-photo { order: 0; }
  .duo-texte { text-align: center; }
  .duo-texte h2 { text-align: center; }
  .trio { grid-template-columns: 1fr; gap: 14px; }
  .mosaique { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 8px; }
  .mosaique img:nth-child(1), .mosaique img:nth-child(5) { grid-row: auto; grid-column: auto; }
  .pied-colonnes { grid-template-columns: 1fr; }
  .pied { padding-bottom: 110px; }
  .barre-mobile { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--signature); padding-bottom: env(safe-area-inset-bottom); }
  .barre-mobile a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; color: #fff; text-decoration: none; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .barre-mobile a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .barre-mobile svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
  .hero-suite { bottom: 92px; }
}
@media (max-width: 520px) {
  body { font-size: 1.15rem; }
  .bouton span { padding: 0 18px; font-size: .7rem; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-photo { transform: none; }
}
