/* Riad Ennakhil — « Terre & Palmes » : facade terre cuite, allee de palmiers, patios d'eau.
   Meme ossature que les autres landings (sections, ids, logique), direction visuelle propre. */
:root {
  --clay: #C0623F;
  --clay-d: #9C4A2D;
  --clay-l: #E59A72;
  --sand: #F3E8D8;
  --cream: #FBF6EE;
  --palm: #173B2C;
  --palm-d: #0D2419;
  --sage: #8FA88B;
  --gold: #EDB65C;
  --water: #7CC3BC;
  --ink: #22170F;
  --ink-2: #5B4B3E;
  --line: rgba(34, 23, 15, .14);
  --display: 'Gloock', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: 16px;
  --max: 1240px;
  --r: 22px;
  --arch: 999px 999px var(--r) var(--r);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 60px -30px rgba(60, 25, 8, .45);
}
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1200px) { :root { --gut: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
[lang="ar"] body { font-family: 'Tajawal', var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- en-tete ---------- */
.top { position: fixed; z-index: 40; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--gut); color: var(--cream); transition: background .4s, color .4s, box-shadow .4s; }
.top.solid { background: rgba(251, 246, 238, .86); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; font-size: 15px; }
.brand img { border-radius: 6px; }
.clock { display: none; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .12em; padding: 8px 12px; border: 1px solid currentColor; border-radius: 999px; opacity: .85; font-variant-numeric: tabular-nums; }
.clock .sun { width: 10px; height: 10px; border-radius: 50%; background: var(--sunc, var(--gold)); box-shadow: 0 0 12px var(--sunc, var(--gold)); }
@media (min-width: 768px) { .clock { display: inline-flex; } }
.langs { display: flex; gap: 4px; }
.langs a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 8px; border-radius: 8px; opacity: .7; }
.langs a[aria-current] { opacity: 1; background: rgba(255, 255, 255, .16); }
.top.solid .langs a[aria-current] { background: var(--sand); }

/* ---------- hero : du jour au soir ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(calc(1.08 + var(--p, 0) * .12)) translateY(calc(var(--p, 0) * 4%)); filter: saturate(calc(1 + var(--p, 0) * .2)) brightness(calc(1 - var(--p, 0) * .35)); will-change: transform; }
.dusk { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 24, 54, .85) 0%, rgba(120, 52, 38, .45) 45%, rgba(237, 140, 70, .25) 70%, transparent 100%); opacity: var(--p, 0); mix-blend-mode: multiply; }
.hero-sky::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 36, 25, .55) 0%, rgba(13, 36, 25, 0) 26%, rgba(13, 36, 25, 0) 42%, rgba(13, 36, 25, .82) 100%); }
.fronds { position: absolute; inset: -6%; width: 112%; height: 112%; opacity: .42; mix-blend-mode: multiply; pointer-events: none; }
.hero-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) 48px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .9; display: flex; align-items: center; gap: 12px; }
.hero-eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero h1 { margin: 22px 0 0; }
.hero .pre { display: block; font: 500 italic clamp(1.15rem, 3.6vw, 1.9rem)/1.2 var(--sans); max-width: 26ch; }
.hero .big { display: block; white-space: nowrap; font: 400 clamp(4.2rem, 17vw, 16rem)/.82 var(--display); letter-spacing: -.045em; margin: .1em 0 0 -.04em; color: var(--sand); text-shadow: 0 10px 50px rgba(13, 36, 25, .35); }
.hero .big.whole { letter-spacing: 0; }
.hero-foot { display: grid; gap: 18px; margin-top: 22px; }
.hero-sub { max-width: 46ch; font-size: 16px; opacity: .92; }
.price-pill { display: inline-flex; flex-direction: column; align-self: start; justify-self: start; padding: 12px 20px; border-radius: 18px; background: rgba(251, 246, 238, .14); border: 1px solid rgba(251, 246, 238, .35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.price-pill small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.price-pill b { font: 400 clamp(1.6rem, 5vw, 2.3rem)/1.1 var(--display); color: var(--gold); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.link-wa { font-weight: 700; text-underline-offset: 5px; }
@media (min-width: 1024px) {
  .hero-foot { grid-template-columns: 1.1fr auto auto; align-items: end; gap: 32px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 16px; width: 22px; height: 36px; border: 1.5px solid rgba(251, 246, 238, .7); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--cream); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 767px) { .scroll-cue { display: none; } }

/* ---------- boutons ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 14px 28px; border: 0; border-radius: 999px; font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center; transition: transform .35s var(--ease), box-shadow .35s, background .3s; }
.btn small { font-size: 12px; font-weight: 500; opacity: .85; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-clay { background: var(--clay); color: var(--cream); box-shadow: 0 18px 34px -16px rgba(156, 74, 45, .9); }
.btn-clay:hover { background: var(--clay-d); }
.btn-palm { background: var(--palm); color: var(--cream); }
.btn-palm:hover { background: var(--palm-d); }
.btn-wa { flex-direction: row; gap: 10px; background: #1F8F55; color: #fff; width: 100%; }

/* ---------- preuve : bande terre cuite ---------- */
.proof { background: var(--clay); color: var(--cream); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, .08); }
.proof-track { display: flex; width: max-content; }
.proof-track > div { display: flex; align-items: baseline; gap: 12px; padding: 22px 34px; border-inline-end: 1px solid rgba(251, 246, 238, .25); white-space: nowrap; }
.proof b { font: 400 clamp(2rem, 6vw, 3.2rem)/1 var(--display); }
.proof span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(72px, 11vw, 140px) max(var(--gut), calc((100% - var(--max)) / 2)); }
.sec-sand { background: var(--sand); }
.sec-palm { background: var(--palm); color: var(--cream); }
.sec-palm .lead, .sec-palm .small { color: rgba(251, 246, 238, .78); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--clay-d); margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50% 50% 0 50%; background: currentColor; transform: rotate(45deg); }
.sec-palm .eyebrow, .night .eyebrow { color: var(--gold); }
h2 { font: 400 clamp(2.5rem, 7.4vw, 5.6rem)/.96 var(--display); letter-spacing: -.025em; max-width: 16ch; }
h2 em { font-style: normal; color: var(--clay); position: relative; }
.sec-palm h2 em { color: var(--gold); }
.lead { margin-top: 20px; max-width: 54ch; font-size: 18px; color: var(--ink-2); }
.small { margin-top: 26px; font-size: 13px; color: var(--ink-2); }

/* ---------- situation : cadran ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.near { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 2px; }
.near li { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.near b { flex: 0 0 auto; min-width: 4.6em; font: 400 1.9rem/1 var(--display); color: var(--clay); }
.dial { position: relative; margin: 0 auto; width: min(100%, 520px); aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--clay); stroke-opacity: .35; stroke-dasharray: 2 7; stroke-width: 1.5; transform-origin: 200px 200px; }
.r2 { stroke-opacity: .25; }
.r3 { stroke-opacity: .18; }
.rays path { stroke: var(--palm); stroke-width: 1.2; stroke-dasharray: 3 5; fill: none; }
.core { fill: var(--clay); }
.pt { position: absolute; display: flex; flex-direction: column; padding: 10px 14px; background: var(--cream); border-radius: 16px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; line-height: 1.25; max-width: 150px; transform: translate(-50%, -50%); }
.pt b { font: 400 1.5rem/1 var(--display); color: var(--clay); white-space: nowrap; }
.pt1 { left: 79%; top: 20%; }
.pt2 { left: 14%; top: 29%; }
.pt3 { left: 21%; top: 82%; }
.pt4 { left: 88%; top: 72%; }
.pt0 { left: 50%; top: 50%; margin-top: 38px; background: var(--palm); color: var(--cream); white-space: nowrap; max-width: none; }

/* ---------- projet : galerie en allee ---------- */
.projet-head { margin-bottom: 44px; }
/* allee pleine largeur : la marge de section est rendue par le padding du rail */
.pin { position: relative; overflow-x: clip; margin-inline: calc(max(var(--gut), (100vw - var(--max)) / 2) * -1); --off: max(var(--gut), calc((100vw - var(--max)) / 2)); }
.rail { list-style: none; margin: 0; padding: 8px var(--off) 24px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: 0 0 auto; scroll-snap-align: center; }
.shot { display: block; padding: 0; border: 0; background: none; text-align: start; }
.rail .shot img { width: 72vw; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); transition: transform .8s var(--ease), border-radius .8s var(--ease); }
.rail .g0 .shot img { border-radius: var(--arch); }
.rail .g1 .shot img { aspect-ratio: 4 / 5; margin-top: 48px; }
.rail .g2 .shot img { aspect-ratio: 1; border-radius: 50% 50% var(--r) 50%; }
.rail .shot span { display: block; margin-top: 14px; font: 400 1.35rem/1.15 var(--display); color: var(--sand); }
.rail .shot:hover img { transform: scale(.97); }
@media (min-width: 1024px) {
  .pin.on { height: var(--pin-h, 300vh); }
  .pin.on .rail { position: sticky; top: 0; height: 100vh; align-items: center; overflow: visible; margin: 0; padding: 0 var(--off); transform: translate3d(var(--x, 0), 0, 0); will-change: transform; scroll-snap-type: none; }
  .pin.on .rail { padding-top: 64px; }
  .pin.on .rail .shot img { width: auto; max-width: none; height: min(62vh, 600px); }
  .pin.on .rail .g1 .shot img { height: min(54vh, 520px); margin-top: 0; }
  .pin.on .rail .g2 .shot img { height: min(46vh, 440px); }
}

/* ---------- equipements : accordeon d'arches ---------- */
.amen { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.amen li { position: relative; height: 92px; transition: height .8s var(--ease), flex-grow .8s var(--ease); }
.amen li.on { height: 460px; }
.tile { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--palm); color: var(--cream); text-align: start; isolation: isolate; cursor: pointer; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.12); filter: saturate(.75) brightness(.8); transition: transform 1.2s var(--ease), filter .8s; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 36, 25, .25) 0%, rgba(13, 36, 25, .1) 40%, rgba(13, 36, 25, .9) 100%); }
.amen li.on .tile img { transform: scale(1); filter: none; }
.tile > div { position: absolute; inset: auto 0 0; padding: 22px; }
.tile .n { display: inline-block; font: 400 1.05rem/1 var(--display); color: var(--gold); margin-bottom: 8px; }
.tile h3 { font: 400 clamp(1.4rem, 3vw, 2.2rem)/1.05 var(--display); }
.tile p { margin-top: 8px; font-size: 15px; max-width: 40ch; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.amen li.on .tile p { opacity: .9; transform: none; transition-delay: .35s; }
.tile .zoom { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 246, 238, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.amen li.on .tile .zoom { opacity: 1; }
@media (max-width: 899px) { .amen li:not(.on) .tile > div { padding: 0 22px; top: 0; display: flex; align-items: center; gap: 14px; } .amen li:not(.on) .tile .n { margin: 0; } .amen li:not(.on) .tile h3 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .amen li:not(.on) .tile p { display: none; } }
@media (min-width: 900px) {
  .amen { flex-direction: row; height: min(72vh, 640px); gap: 12px; }
  .amen li, .amen li.on { height: auto; flex: 1 1 0; min-width: 0; }
  .amen li.on { flex-grow: 5.5; }
  .tile { border-radius: var(--arch); }
  .amen li:not(.on) .tile > div { inset: 0; padding: 30px 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
  .amen li:not(.on) .tile h3 { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.35rem; white-space: nowrap; }
  .amen li:not(.on) .tile .n { margin: 0; }
  .amen li:not(.on) .tile p { display: none; }
  .amen li.on .tile > div { padding: 40px 44px; }
  .amen li:not(.on):hover .tile img { filter: saturate(.95) brightness(.95); }
}

/* ---------- le soir ---------- */
.night { position: relative; min-height: 86svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; isolation: isolate; background: #0f1424; }
.night img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; transform: translate3d(0, var(--py, 0), 0); }
.night::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 20, 36, .1) 30%, rgba(15, 20, 36, .9) 100%); }
.night-in { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 8vw, 96px); }
.night-title { font: 400 clamp(2.8rem, 9vw, 7rem)/.92 var(--display); color: var(--gold); max-width: 13ch; letter-spacing: -.02em; }
.night .lead { color: rgba(251, 246, 238, .85); }

/* ---------- biens ---------- */
.tabs { display: inline-flex; gap: 6px; margin-top: 40px; padding: 6px; border-radius: 999px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.tabs button { border: 0; background: none; padding: 12px 24px; border-radius: 999px; font-weight: 700; transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] { background: var(--palm); color: var(--cream); }
.unit { display: grid; gap: 0; margin-top: 22px; background: var(--cream); border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: var(--shadow); }
.unit img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.unit-body { padding: 26px 22px 28px; }
.unit-body > p { font: 400 clamp(1.4rem, 3vw, 2rem)/1.15 var(--display); max-width: 26ch; }
.live { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2C7A4B; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(44, 122, 75, .5); } 50% { box-shadow: 0 0 0 7px rgba(44, 122, 75, 0); } }
.unit dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 24px 0; }
.unit dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.unit dd { margin: 4px 0 0; font: 400 1.6rem/1.1 var(--display); color: var(--clay-d); }
@media (min-width: 900px) { .unit { grid-template-columns: 1fr 1.1fr; } .unit img { max-height: none; min-height: 460px; } .unit-body { padding: 44px; align-self: center; } }

/* ---------- plans ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.seg button { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-weight: 600; font-size: 15px; }
.seg button[aria-pressed="true"] { background: var(--clay); border-color: var(--clay); color: var(--cream); }
.plans-wrap { margin-top: 26px; }
.plans { list-style: none; margin: 0 calc(var(--gut) * -1); padding: 4px var(--gut) 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; }
.plans li { flex: 0 0 auto; scroll-snap-align: start; }
.plans li[hidden] { display: none; }
.plans .shot { width: 250px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.plans .shot img { width: 100%; height: 170px; object-fit: contain; }
.plans .shot span { display: block; margin-top: 10px; font-weight: 700; font-size: 14px; }
.plans li.cur .shot { box-shadow: inset 0 0 0 2px var(--clay); }
.plan-view { display: none; }
@media (min-width: 1024px) {
  .plans-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
  .plan-view { display: block; position: relative; padding: 24px; border: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); cursor: zoom-in; }
  .plan-view img { width: 100%; height: 560px; object-fit: contain; }
  .plan-view span { display: block; margin-top: 12px; font: 400 1.4rem/1.2 var(--display); }
  .plan-view.sw img { animation: swap .6s var(--ease); }
  .plans { flex-direction: column; overflow: auto; max-height: 660px; margin: 0; padding: 4px; }
  .plans .shot { width: 100%; }
}
@keyframes swap { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- paiement : la tige ---------- */
.paybar { display: flex; gap: 4px; height: 64px; margin-top: 40px; border-radius: 16px; overflow: hidden; }
.paybar i { display: flex; align-items: center; justify-content: center; min-width: 46px; color: var(--cream); font-style: normal; transform-origin: left; }
.paybar b { font: 400 1.1rem/1 var(--display); }
.paybar .s0 { background: var(--clay); }
.paybar .s1 { background: var(--clay-l); }
.paybar .s2 { background: var(--sage); }
.paybar .s3 { background: #5E7F5C; }
.paybar .s4 { background: var(--palm); }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 18px 0 18px 34px; border-bottom: 1px solid var(--line); }
.steps li::before { content: ''; position: absolute; left: 6px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 5px rgba(192, 98, 63, .16); }
.steps li::after { content: ''; position: absolute; left: 11px; top: 40px; bottom: -20px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps .pc { font: 400 2rem/1 var(--display); min-width: 2.6em; color: var(--clay-d); }
.steps .wh { font-weight: 600; }
.pay-extra { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; }
.pay-extra dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.pay-extra dd { margin: 2px 0 0; font: 400 1.4rem/1.2 var(--display); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps li { flex-direction: column; gap: 8px; padding: 26px 16px 0 0; border: 0; } .steps li::before { left: 0; top: 0; } .steps li::after { left: 16px; right: 0; top: 5px; bottom: auto; width: auto; height: 2px; } }

/* ---------- investir ---------- */
.cases { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 14px; }
.cases li { padding: 28px; border-radius: var(--r); background: rgba(251, 246, 238, .06); border: 1px solid rgba(251, 246, 238, .12); }
.case-n { font: 400 2.6rem/1 var(--display); color: var(--gold); }
.cases h3 { margin-top: 18px; font: 400 1.6rem/1.15 var(--display); }
.cases p { margin-top: 8px; color: rgba(251, 246, 238, .78); }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.sim { margin-top: 48px; padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--r) + 8px); background: var(--cream); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.sim h3 { font: 400 clamp(1.8rem, 4vw, 2.8rem)/1.05 var(--display); }
.sim-sub { margin-top: 8px; color: var(--ink-2); }
.tiers { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 720px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tiers button { display: grid; gap: 2px; padding: 16px; text-align: start; border-radius: 16px; border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.tiers button[aria-pressed="true"] { border-color: var(--clay); box-shadow: inset 0 0 0 1px var(--clay); }
.tiers b { font-weight: 700; }
.tiers span { font-size: 14px; color: var(--ink-2); }
.tiers em { font-style: normal; font-size: 13px; color: var(--clay-d); font-weight: 600; }
.sim-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 900px) { .sim-grid { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.sim-ctrl label { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-weight: 600; font-size: 15px; }
.sim-ctrl output { font-weight: 700; color: var(--clay-d); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 14px 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--clay) var(--pct, 50%), var(--sand) var(--pct, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); border: 6px solid var(--clay); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 6px solid var(--clay); }
.occ { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.sim-out { padding: 28px; border-radius: var(--r); background: var(--palm); color: var(--cream); }
.out-l { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.out-big { font: 400 clamp(2.4rem, 6vw, 3.6rem)/1.05 var(--display); color: var(--gold); margin-top: 6px; }
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; }
.res dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.res dd { margin: 4px 0 0; font: 400 1.4rem/1.2 var(--display); }
.meter { height: 6px; margin-top: 20px; border-radius: 6px; background: rgba(251, 246, 238, .15); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--water), var(--gold)); transform-origin: left; transition: transform .6s var(--ease); }
.sim .btn { margin-top: 24px; }

/* ---------- MRE ---------- */
.mre { list-style: none; margin: 44px 0 34px; padding: 0; display: grid; gap: 14px; counter-reset: m; }
.mre li { position: relative; padding: 30px 26px 26px; border-radius: var(--arch); background: var(--sand); text-align: center; counter-increment: m; }
.mre li::before { content: counter(m, decimal-leading-zero); display: block; font: 400 2.4rem/1 var(--display); color: var(--clay); margin: 18px 0 14px; }
.mre h3 { font: 400 1.5rem/1.15 var(--display); }
.mre p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 900px) { .mre { grid-template-columns: repeat(3, 1fr); } .mre li { padding-top: 60px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; font: 400 clamp(1.2rem, 2.6vw, 1.5rem)/1.25 var(--display); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); color: var(--clay); font: 600 20px/1 var(--sans); transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--clay); color: var(--cream); }
.faq details p { padding: 0 0 24px; max-width: 70ch; color: var(--ink-2); }

/* ---------- contact ---------- */
.sec-form { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.sec-form { display: grid; gap: 34px; }
@media (min-width: 1000px) { .sec-form { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } .form-side { position: sticky; top: 110px; } }
.bul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.bul li { display: flex; gap: 12px; font-weight: 600; }
.bul li::before { content: ''; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23FBF6EE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.form-card { padding: clamp(22px, 4vw, 40px); border-radius: calc(var(--r) + 6px); background: #fff; box-shadow: var(--shadow); }
#lead label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 15px; }
#lead input, #lead select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); font: 400 16px var(--sans); color: var(--ink); }
#lead input:focus, #lead select:focus { outline: 0; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(192, 98, 63, .15); }
.two { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .two { grid-template-columns: 1fr 1fr; } }
.linkbtn { margin-top: 14px; padding: 0; border: 0; background: none; font-weight: 600; color: var(--clay-d); text-decoration: underline; text-underline-offset: 4px; }
#lead .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; }
#lead .check input { width: 22px; min-height: 22px; height: 22px; margin-top: 2px; accent-color: var(--clay); }
.err { min-height: 1.4em; margin-top: 10px; color: #B3261E; font-weight: 600; }
#lead .btn { width: 100%; margin-top: 6px; }
.ok { padding: 22px; border-radius: 16px; background: #E8F3EA; color: #1E5B36; font-weight: 600; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- pied ---------- */
.foot { position: relative; padding: 40px var(--gut) 120px; background: var(--palm-d); color: rgba(251, 246, 238, .8); text-align: center; overflow: hidden; font-size: 14px; }
.foot-word { font: 400 clamp(5rem, 24vw, 22rem)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(237, 182, 92, .45); letter-spacing: -.04em; margin: 0 -2vw 30px; white-space: nowrap; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--cream); font-size: 16px; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--cream); }

/* ---------- barre collante ---------- */
.bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(13, 36, 25, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transform: translateY(140%); transition: transform .5s var(--ease); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.bar.on { transform: none; }
.bar-ic { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(251, 246, 238, .12); color: var(--cream); }
.bar-wa { background: #1F8F55; }
.bar-cta { flex: 1; min-height: 48px; padding: 10px 16px; font-size: 15px; }
@media (min-width: 1024px) { .bar { left: auto; right: 24px; width: 420px; } }

/* ---------- visionneuse ---------- */
#lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 20, 15, .96); color: var(--cream); }
#lb[open] { display: grid; place-items: center; }
#lb::backdrop { background: rgba(0, 0, 0, .6); }
#lb-img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 12px; }
#lb.is-plan #lb-img { background: #fff; padding: 12px; }
#lb-cap { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font: 400 1.2rem var(--display); }
.lb-x, .lb-n { position: absolute; border: 0; background: rgba(251, 246, 238, .12); color: var(--cream); width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lb-x { top: 16px; right: 16px; }
.lb-p { left: 16px; top: 50%; }
.lb-s { right: 16px; top: 50%; }

[dir="rtl"] .eyebrow::before, [dir="rtl"] .hero-eyebrow::before { order: 0; }
[dir="rtl"] .steps li { padding: 18px 34px 18px 0; }
[dir="rtl"] .steps li::before { left: auto; right: 6px; }
.night-title em { font-style: normal; color: var(--cream); }

/* arabe : Gloock n'a pas de glyphes arabes, les titres passent en Tajawal gras */
[lang="ar"] { --display: 'Tajawal', 'Segoe UI', sans-serif; }
[lang="ar"] h2, [lang="ar"] .hero .big, [lang="ar"] .night-title, [lang="ar"] .proof b, [lang="ar"] .price-pill b,
[lang="ar"] .tile h3, [lang="ar"] .cases h3, [lang="ar"] .sim h3, [lang="ar"] .mre h3, [lang="ar"] .faq summary,
[lang="ar"] .unit-body > p, [lang="ar"] .out-big, [lang="ar"] .rail .shot span { font-weight: 800; letter-spacing: 0; }
[lang="ar"] h2 { line-height: 1.2; }
[lang="ar"] .hero .big { line-height: 1.05; font-size: clamp(4rem, 15vw, 13rem); }
[lang="ar"] .hero .pre { font-style: normal; }
[dir="rtl"] .steps li::after { left: auto; right: 11px; }
@media (min-width: 900px) { [dir="rtl"] .steps li { padding: 26px 0 0 16px; } [dir="rtl"] .steps li::before { right: 0; } [dir="rtl"] .steps li::after { right: 16px; left: 0; } }

/* finitions des interieurs */
.finish { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.finish li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(251, 246, 238, .22); border-radius: 999px; font-size: 14px; color: var(--cream); background: rgba(251, 246, 238, .05); }
.finish li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* equipements sans photo : arches illustrees */
.tile.ill { background: var(--palm); cursor: default; }
.tile.ill::after { background:
  radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .12), transparent 60%),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 26px); }
.tile.t-clay { background: linear-gradient(170deg, #cf7350, var(--clay) 55%, #96472c); }
.tile.t-palm { background: linear-gradient(170deg, #22533f, var(--palm) 60%, #0f281e); }
.tile.t-night { background: linear-gradient(170deg, #2a2f52, #161a30 60%, #0d1020); }
.tile.t-sand { background: linear-gradient(170deg, #e7cfa8, #cfae7c 60%, #b38d5a); color: var(--palm); }
.tile.t-sand .n { color: var(--clay); }
.tile .pic { position: absolute; left: 50%; top: 42%; width: min(46%, 150px); height: auto; translate: -50% -50%; opacity: .9; transition: scale .8s var(--ease), opacity .6s, top .8s var(--ease); }
.amen li:not(.on) .tile .pic { scale: .55; opacity: .55; }
@media (max-width: 899px) { .amen li:not(.on) .tile .pic { opacity: 0; } .amen li.on .tile .pic { top: 38%; width: 130px; } }
@media (min-width: 900px) { .amen li:not(.on) .tile .pic { top: 22%; width: 80px; scale: 1; } }

/* le soir : video courte (photo de repli dessous) */
.night-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity 1.2s; }
.night.has-vid .night-vid { opacity: 1; }
.night.has-vid > img { opacity: 0; transition: opacity 1.2s; }

/* telephone : en-tete compact, cibles tactiles de 44 px, onglets pleine largeur */
@media (max-width: 599px) {
  .top { padding: 6px 12px; gap: 6px; }
  .brand { font-size: 14px; gap: 8px; min-width: 0; }
  .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .langs { gap: 0; flex: none; }
  .langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0 6px; font-size: 12.5px; }
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1 1 0; padding: 12px 6px; font-size: 14px; min-height: 44px; }
  .unit dl { gap: 16px 14px; }
  .unit dd { font-size: 1.35rem; white-space: nowrap; }
  .link-wa { display: inline-block; padding: 10px 0; }
  .linkbtn { padding: 10px 0; margin-top: 6px; }
  .foot a { display: inline-block; padding: 12px 6px; }
}
@media (max-width: 359px) { .brand span { display: none; } }

/* direction : rendus isometriques non recadres (lus comme des plans), photos en arches */
.rail .iso .shot img { aspect-ratio: 4 / 3; object-fit: contain; border-radius: var(--r); background: #F4ECE0; padding: 4%; box-sizing: border-box; }
@media (min-width: 900px) { .pin.on .rail .iso .shot img { height: min(50vh, 470px); width: auto; } }
/* simulateur : gammes en controle segmente, pas de cartes dans la carte */
.tiers { display: flex; gap: 4px; padding: 5px; border-radius: 18px; background: var(--sand); grid-template-columns: none; }
.tiers button { flex: 1 1 0; min-width: 0; padding: 10px 12px; border: 0; border-radius: 14px; background: transparent; box-shadow: none; gap: 1px; }
.tiers button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 6px rgba(40, 24, 12, .12); }
.tiers span { font-size: 12.5px; }
@media (max-width: 599px) { .tiers { flex-direction: column; } .tiers button { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; } }
/* telephone : etiquette du hero empilee, etiquettes du cadran dans l'ecran */
@media (max-width: 599px) {
  .hero-eyebrow { letter-spacing: .16em; line-height: 1.6; }
  .hero-eyebrow::before { display: none; }
  .pt { max-width: 120px; padding: 8px 10px; font-size: 12px; }
  .pt b { font-size: 1.25rem; }
  .pt2 { left: 22%; }
  .pt3 { left: 26%; }
  .pt1 { left: 76%; }
  .pt4 { left: 80%; }
}
