/* Zakia — week-ends entre femmes à Marrakech
   Palette chaude : terracotta, safran, sable, nuit brune. */
:root {
  --terra: #B4532F;
  --terra-fonce: #8C3B1E;
  --safran: #E0A03C;
  --ocre: #C9843A;
  --sable: #F0DFC6;
  --creme: #FBF4E9;
  --nuit: #2A1B14;
  --encre: #4A3529;
  --olive: #6A7045;
  --titre: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --texte: "Jost", "Helvetica Neue", Arial, sans-serif;
  --couche: linear-gradient(120deg, #E6A63F 0%, #D9722F 45%, #B4532F 100%);
  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23B4532F' stroke-width='1.6'%3E%3Cpath d='M36 6 44.800 14.800H57.200V27.200L66 36 57.200 44.800V57.200H44.800L36 66 27.200 57.200H14.800V44.800L6 36 14.800 27.200V14.800H27.200Z'/%3E%3Cpath d='M0 0 6.400 6.400M72 0 65.600 6.400M0 72 6.400 65.600M72 72 65.600 65.600'/%3E%3C/g%3E%3C/svg%3E");
  --zellige-clair: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23FBF4E9' stroke-width='1.6'%3E%3Cpath d='M36 6 44.800 14.800H57.200V27.200L66 36 57.200 44.800V57.200H44.800L36 66 27.200 57.200H14.800V44.800L6 36 14.800 27.200V14.800H27.200Z'/%3E%3Cpath d='M0 0 6.400 6.400M72 0 65.600 6.400M0 72 6.400 65.600M72 72 65.600 65.600'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 500; color: var(--nuit); line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0; }

.surtitre {
  font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 1rem;
}
.surtitre.clair { color: #FFD79A; }
.hero .surtitre { text-shadow: 0 1px 14px rgba(42, 27, 20, .7); }
.chapeau { font-size: 1.15rem; max-width: 34em; margin-top: 1.3rem; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.9em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--couche); color: #fff; text-decoration: none; cursor: pointer;
  font: 500 .86rem/1 var(--texte); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 10px 26px -12px rgba(140, 59, 30, .75);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(140, 59, 30, .85); }
.bouton-contour { background: transparent; border-color: rgba(255, 255, 255, .75); box-shadow: none; }
.bouton-contour:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.bouton-petit { padding: .75em 1.4em; font-size: .74rem; }
.bouton-whatsapp { background: #1FAF5A; box-shadow: 0 10px 26px -12px rgba(20, 110, 55, .8); }
.bouton-whatsapp:hover { background: #18984D; box-shadow: 0 16px 30px -12px rgba(20, 110, 55, .9); }

/* ---------- En-tête ---------- */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.entete.solide { background: rgba(251, 244, 233, .95); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(42, 27, 20, .08); padding-block: .6rem; }
/* En haut de page, le grand logo centré de l'ouverture tient lieu de marque :
   le petit logo de l'en-tête n'apparaît qu'une fois la page défilée. */
.marque { display: block; width: 0; height: 44px; flex: none; opacity: 0; overflow: hidden; transition: width .35s ease, opacity .35s ease; }
.marque img { width: 172px; max-width: none; height: 100%; object-fit: contain; object-position: left center; }
.entete.solide .marque { width: 172px; opacity: 1; }
.nav { display: flex; gap: 2rem; margin-right: auto; }
.nav a, .langues a {
  color: #fff; text-decoration: none; font-size: .78rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; opacity: .92;
}
.nav a:hover, .langues a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.entete.solide .nav a, .entete.solide .langues a { color: var(--nuit); }
.entete-droite { display: flex; align-items: center; gap: 1.2rem; }
.langues { display: flex; gap: .7rem; }
.langues a.actif { opacity: 1; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* ---------- Ouverture ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.hero-logo {
  position: relative; align-self: center; margin-top: 20px; width: clamp(118px, 12vw, 172px); height: auto;
  filter: drop-shadow(0 3px 16px rgba(42, 27, 20, .5));
}
.hero-image, .hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image img { object-fit: cover; object-position: center 45%; animation: zoom 22s ease-out both; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 27, 20, .5) 0%, rgba(42, 27, 20, 0) 26%),
    linear-gradient(0deg, rgba(42, 27, 20, .92) 0%, rgba(60, 30, 18, .6) 45%, rgba(42, 27, 20, 0) 80%);
}
.hero-contenu { position: relative; width: min(1180px, 100%); margin: 0 auto; padding: 2.5rem clamp(1.2rem, 5vw, 3rem) clamp(3rem, 8vh, 6rem); }
.hero h1 { color: #fff; font-size: clamp(2.7rem, 7.2vw, 5.8rem); max-width: 13em; font-weight: 500; }
.hero-texte { max-width: 36em; margin-top: 1.5rem; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .92); }
.hero-faits { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-faits li {
  padding: .5em 1.1em; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px;
  font-size: .8rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(42, 27, 20, .28); backdrop-filter: blur(4px);
}
.hero-faits li:last-child { background: var(--safran); border-color: var(--safran); color: var(--nuit); font-weight: 500; }
.hero-boutons { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Frise zellige ---------- */
.frise { height: 36px; background: var(--sable) var(--zellige) center / 36px 36px; opacity: .9; }
.frise.sombre { background: var(--nuit) var(--zellige) center / 36px 36px; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) clamp(1.2rem, 5vw, 3rem); }
.section > * { width: min(1180px, 100%); margin-inline: auto; }
.section-tete { text-align: center; }
.section-tete .chapeau { margin-inline: auto; }

.arche { border-radius: 999px 999px 14px 14px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(42, 27, 20, .55); }

/* Esprit */
.esprit-grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.esprit-images { position: relative; padding: 0 0 12% 0; }
.esprit-images .grande { width: 76%; aspect-ratio: 3 / 4.300; }
.esprit-images .petite {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1 / 1;
  border: 8px solid var(--creme); border-radius: 50%;
}
.piliers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.6rem); margin-top: clamp(3.5rem, 8vw, 6rem); }
.pilier { text-align: center; }
.pilier img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 14px 14px; margin-bottom: 1.5rem; }
.pilier h3 { margin-bottom: .6rem; }
.pilier h3::after { content: ""; display: block; width: 40px; height: 2px; margin: .7rem auto 0; background: var(--couche); }

/* Maison */
.maison { background: var(--sable); position: relative; }
.maison::before { content: ""; position: absolute; inset: 0; background: var(--zellige) top left / 72px 72px; opacity: .08; pointer-events: none; }
.maison > * { position: relative; }
.atouts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.atouts li { padding: .5em 1.1em; border-radius: 999px; background: var(--creme); border: 1px solid rgba(180, 83, 47, .3); font-size: .92rem; color: var(--terra-fonce); font-weight: 400; }
.galerie {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(60px, 7.400vw, 92px);
  gap: clamp(.6rem, 1.4vw, 1.1rem); margin-top: clamp(2.5rem, 5vw, 4rem);
}
.galerie figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--nuit); }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.galerie figure:hover img { transform: scale(1.05); }
.galerie figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.4rem 1.1rem .9rem; color: #fff;
  font-family: var(--titre); font-style: italic; font-size: 1.15rem;
  background: linear-gradient(0deg, rgba(42, 27, 20, .78), rgba(42, 27, 20, 0));
}
.g-a { grid-column: 1 / 6; grid-row: span 6; }
.g-b { grid-column: 6 / 10; grid-row: span 3; }
.g-c { grid-column: 10 / 13; grid-row: span 3; }
.g-d { grid-column: 6 / 9; grid-row: span 3; }
.g-e { grid-column: 9 / 13; grid-row: span 3; }
.g-f { grid-column: 1 / 13; grid-row: span 4; }
.g-a img { object-position: center 62%; }
.g-c img { object-position: center 70%; }
.g-e img { object-position: center 45%; }
.g-f img { object-position: center 37%; }

/* Programme */
.jour { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; margin-top: clamp(4rem, 9vw, 7rem); }
.jour.inverse .jour-images { order: 2; }
.jour-images { position: relative; padding: 0 14% 14% 0; }
.jour.inverse .jour-images { padding: 0 0 14% 14%; }
.jour-images .grande { width: 100%; aspect-ratio: 3 / 4; }
.jour-images .vignette {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 14px; border: 8px solid var(--creme); box-shadow: 0 24px 50px -24px rgba(42, 27, 20, .6);
}
.jour.inverse .jour-images .vignette { right: auto; left: 0; }
.jour-numero {
  font-family: var(--titre); font-size: clamp(4.5rem, 10vw, 8rem); line-height: .8; font-weight: 400;
  background: var(--couche); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.2rem; opacity: .9;
}
.etapes { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: etape; }
.etapes li { position: relative; padding: 0 0 1.5rem 2.4rem; border-left: 1px solid rgba(180, 83, 47, .35); margin-left: .5rem; }
.etapes li:last-child { border-left-color: transparent; padding-bottom: 0; }
.etapes li::before {
  content: ""; position: absolute; left: -7px; top: .45em; width: 13px; height: 13px;
  background: var(--couche); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--creme);
}

/* Bandeau image */
.bandeau { height: clamp(260px, 46vw, 520px); overflow: hidden; }
.bandeau img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

/* Prix */
.prix { background: var(--nuit); color: rgba(255, 255, 255, .86); position: relative; margin-top: -1px; }
.prix::before { content: ""; position: absolute; inset: 0; background: var(--zellige-clair) top left / 72px 72px; opacity: .05; pointer-events: none; }
.prix > * { position: relative; }
.prix h2 { color: #fff; }
.prix-carte {
  display: grid; grid-template-columns: minmax(250px, .8fr) 2fr; margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--creme); color: var(--encre); border-radius: 22px; overflow: hidden;
  box-shadow: 0 50px 90px -50px #000;
}
.prix-montant { background: var(--couche); color: #fff; padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.montant { font-family: var(--titre); font-size: clamp(4rem, 8vw, 6.2rem); line-height: 1; font-weight: 500; white-space: nowrap; }
.par { letter-spacing: .2em; text-transform: uppercase; font-size: .82rem; font-weight: 400; margin-top: .4rem; }
.date { margin: 1.8rem 0 2rem; font-family: var(--titre); font-style: italic; font-size: 1.3rem; line-height: 1.3; }
.prix-montant .bouton { background: var(--creme); color: var(--terra-fonce); box-shadow: none; }
.prix-listes { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(2rem, 4vw, 3.2rem); }
.prix-listes h3 { font-size: 1.7rem; margin-bottom: 1.1rem; }
.liste { list-style: none; padding: 0; margin: 0; }
.liste li { position: relative; padding: .42rem 0 .42rem 1.9rem; font-size: 1rem; line-height: 1.45; }
.liste li::before { position: absolute; left: 0; top: .42rem; font-weight: 500; }
.liste.oui li::before { content: "✓"; color: var(--olive); }
.liste.non li { color: #7A665A; }
.liste.non li::before { content: "–"; color: #B49F90; }

/* Réserver */
.reserver-grille { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reserver-texte .arche { width: 100%; aspect-ratio: 3 / 4.200; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-top: 2.2rem; }
.formulaire .large { grid-column: 1 / -1; }
.formulaire label { display: block; font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-fonce); }
.formulaire input, .formulaire select, .formulaire textarea {
  display: block; width: 100%; margin-top: .5rem; padding: .85em 1em;
  font: 300 1.05rem/1.4 var(--texte); color: var(--nuit); letter-spacing: 0; text-transform: none;
  background: #fff; border: 1px solid rgba(180, 83, 47, .3); border-radius: 10px;
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--safran); outline-offset: 1px; border-color: var(--terra); }
.formulaire textarea { resize: vertical; }
.erreur { grid-column: 1 / -1; color: #A32B1B; font-size: .95rem; font-weight: 400; }
.merci { padding: .9em 1.1em; border-radius: 10px; background: rgba(106, 112, 69, .14); color: #4B5130; font-weight: 400; }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mention { font-size: .85rem; color: #8A7568; }

/* Pied */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .78); text-align: center; }
.pied-contenu { padding: 3.5rem 1.2rem 3rem; display: grid; gap: .9rem; justify-items: center; }
.pied-baseline { font-family: var(--titre); font-style: italic; font-size: 1.35rem; color: var(--sable); }
.pied a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.pied a:hover { color: var(--safran); border-color: var(--safran); }
.credits { font-size: .78rem; opacity: .6; max-width: 46em; margin-top: 1rem; }

/* Bouton flottant */
.flottant {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #1FAF5A; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: transform .25s ease;
}
.flottant:hover { transform: scale(1.07); }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.apparait.visible { opacity: 1; transform: none; }
.sans-js .apparait { opacity: 1; transform: none; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .nav { display: none; }
  .esprit-grille, .jour, .reserver-grille, .prix-carte { grid-template-columns: 1fr; }
  .jour.inverse .jour-images { order: 0; }
  .jour-images, .jour.inverse .jour-images { max-width: 460px; }
  .piliers { grid-template-columns: 1fr; max-width: 420px; }
  .prix-listes { grid-template-columns: 1fr; }
  .reserver-texte { max-width: 380px; margin-inline: auto; }
  .galerie { grid-auto-rows: 26vw; }
  .g-a { grid-column: 1 / 13; grid-row: span 4; }
  .g-b, .g-d { grid-column: 1 / 7; grid-row: span 2; }
  .g-c, .g-e { grid-column: 7 / 13; grid-row: span 2; }
  .g-f { grid-column: 1 / 13; grid-row: span 3; }
}
@media (max-width: 560px) {
  .marque { height: 36px; }
  .marque img { width: 132px; }
  .entete.solide .marque { width: 132px; }
  .entete-droite .bouton { display: none; }
  .formulaire { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image img { animation: none; }
  .apparait { opacity: 1; transform: none; transition: none; }
}
