/* ==========================================================================
   3AH ARCHITECTURE — feuille de style unique
   Direction « le lieu porte tout » : les rendus en grand, le texte en retrait.
   Papier chaud, encre presque noire, un seul accent bronze (celui du logo) réservé aux actions.
   Deux familles : Cormorant Garamond (titres) et Jost (texte), comme le logo (STUDIO / BIA).
   Les surfaces se séparent par un pas de ton, jamais par un filet ni une ombre.
   ========================================================================== */
:root {
  --bg: #F4F1EC;
  --surface: #ECE7DF;
  --surface-2: #DCD5CA;
  --ink: #1F1E1C;
  --muted: #5E5A54;
  --accent: #8A6848;
  --accent-ink: #FFFFFF;
  --bronze: #B08B66;
  --night: #161513;
  --on-night: #F2F1EE;
  --on-night-soft: #CFC8BC;
  --sea: #2A2B28;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', -apple-system, 'Segoe UI', sans-serif;

  --t-small: 15px;
  --t-body: 17px;
  --t-lead: 22px;
  --t-h2: clamp(40px, 5vw, 72px);
  --t-h3: clamp(34px, 3.4vw, 50px);
  --t-h1: clamp(44px, 5.4vw, 88px);

  --margin: clamp(20px, 3.4vw, 56px);
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(104px, 13vw, 200px);
  --top-h: 40px;
  --head-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 180ms ease;
}
@media (max-width: 760px) { :root { --head-h: 64px; --t-lead: 19px; } }

/* Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
[id] { scroll-margin-top: calc(var(--head-h) + 24px); }
.wrap { max-width: 1600px; margin: 0 auto; padding-left: var(--margin); padding-right: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 900; padding: 12px 18px; background: var(--accent); color: #fff; }
.skip:focus { top: 16px; }
.lead { font-size: var(--t-lead); line-height: 1.45; max-width: 46ch; }
main { display: block; outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  background: var(--surface-2); color: var(--ink); font: 500 15px/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  transition: background var(--fast), color var(--fast), transform var(--fast); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: #2B2925; color: var(--on-night); }
.btn-ghost:hover { background: var(--on-night); color: var(--night); }
.btn-full { width: 100%; }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color var(--fast); }
.text-link:hover { color: var(--ink); }

/* Barre d'adresse --------------------------------------------------------- */
.topbar { background: var(--night); color: var(--on-night); font-size: 15px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--top-h); max-width: 1600px; margin: 0 auto; padding: 0 var(--margin); }
.topbar a { display: inline-flex; align-items: center; gap: 10px; transition: color var(--fast); }
.topbar a:hover { color: #E4D3B4; }
.topbar svg { width: 16px; height: 16px; flex-shrink: 0; color: #C9B48F; }
.tb-short { display: none; white-space: nowrap; }
.tb-tel span { white-space: nowrap; }
.tb-tel { font-weight: 500; letter-spacing: .02em; }

/* En-tête ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 300; display: flex; align-items: center; gap: 32px; height: var(--head-h); padding: 0 var(--margin); background: var(--bg); transition: transform 260ms var(--ease); }
.site-header.away { transform: translateY(-100%); }
.brand img { width: clamp(170px, 15vw, 230px); height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 34px; }
.main-nav a { position: relative; font-size: 15px; color: var(--muted); padding: 8px 0; transition: color var(--fast); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.head-cta { min-height: 46px; }
.burger { display: none; width: 48px; height: 48px; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.burger i { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform var(--fast); }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 290; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--head-h) + 24px) var(--margin) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); opacity: 0; visibility: hidden; transition: opacity var(--fast), visibility var(--fast); overflow-y: auto; }
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav a { display: block; padding: 6px 0; font: 500 clamp(40px, 11vw, 56px)/1.1 var(--serif); }
.mobile-menu nav a[aria-current] { color: var(--accent); }
.mm-foot { display: grid; gap: 10px; margin-top: 32px; }
.mm-foot p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 280; display: flex; gap: 6px; padding: 6px; background: var(--night); transform: translateX(-50%); transition: transform 280ms var(--ease), opacity 280ms ease; }
.dock.away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.dock a { display: flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 18px; background: #26241F; color: var(--on-night); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background var(--fast), color var(--fast); }
.dock a:hover { background: var(--on-night); color: var(--night); }
.dock svg { width: 18px; height: 18px; flex-shrink: 0; }
.dock .dock-main { background: var(--accent); color: #fff; }
.dock .dock-main svg { fill: currentColor; }
.dock .dock-main:hover { background: var(--on-night); color: var(--night); }
.tb-acts { display: flex; align-items: center; gap: 22px; }
.tb-call { display: none; }
.logo-night { display: none; }
html.dark .logo-day { display: none; }
html.dark .logo-night { display: block; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--surface); color: var(--ink); transition: background var(--fast); }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn svg { width: 19px; height: 19px; }
.i-sun, html.dark .i-moon { display: none; }
html.dark .i-sun { display: block; }
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); }
.lang-sw a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px; font-size: 15px; font-weight: 500; color: var(--muted); transition: background var(--fast), color var(--fast); }
.lang-sw a[lang="ar"] { font: 700 17px/1 'Tajawal', sans-serif; }
.lang-sw a:hover { color: var(--ink); }
.lang-sw a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.mm-foot .lang-sw { margin-top: 12px; justify-self: start; }

/* Héros : un rendu plein cadre, le nom en bas comme un titre de film ------------ */
.hero { position: relative; height: calc(100svh - var(--top-h) - var(--head-h)); min-height: 600px; max-height: 1100px; overflow: hidden; background: var(--night); color: #fff; }
.hero-media, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { /* taste-skill-ignore : voile neutre sous le texte */ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(180deg, rgba(10,10,9,0), rgba(10,10,9,.62)); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end;
  max-width: 1600px; margin: 0 auto; padding: 0 var(--margin) clamp(28px, 4vw, 56px); }
.hero h1 { grid-column: 1 / span 7; font-size: var(--t-h1); font-weight: 500; line-height: .98; letter-spacing: -.03em; color: #fff; }
.hero-side { grid-column: 8 / -1; justify-self: end; max-width: 440px; }
.hero-side p { font-size: var(--t-body); line-height: 1.55; color: rgba(255,255,255,.94); }
.hero-act { display: flex; align-items: center; gap: 20px 24px; flex-wrap: wrap; margin-top: 24px; }
.hero-cap { font-size: 15px; color: rgba(255,255,255,.9); }
.hero-cap:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Intro : le titre déborde sur le rendu -------------------------------------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: var(--section); padding-bottom: var(--section); }
.intro h2 { grid-column: 1 / span 9; grid-row: 1; position: relative; z-index: 2; font-size: var(--t-h1); font-weight: 400; line-height: .98; letter-spacing: -.03em; }
.intro-lead { grid-column: 1 / span 5; grid-row: 2; margin-top: 40px; font-size: var(--t-lead); line-height: 1.45; }
.intro-tall { grid-column: 7 / -1; grid-row: 1 / span 3; margin-top: clamp(80px, 9vw, 150px); margin-right: calc(-1 * var(--margin)); aspect-ratio: 4 / 5; overflow: hidden; }
.intro-small { grid-column: 1 / span 4; grid-row: 3; margin-top: 64px; aspect-ratio: 9 / 10; overflow: hidden; }
.intro-note { grid-column: 1 / span 5; grid-row: 4; margin-top: 32px; max-width: 44ch; }
.intro-tall img, .intro-small img { width: 100%; height: 100%; object-fit: cover; }

/* Projets à la une : des planches plein écran ---------------------------------- */
.work { position: relative; }
.panel { position: relative; display: block; height: 100svh; overflow: hidden; background: var(--night); color: #fff; }
.panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.panel:hover img { transform: scale(1.1); }
.panel-row { position: absolute; left: 0; right: 0; top: 50%; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 24px; min-height: 96px; margin-top: -48px;
  padding: 0 var(--margin); background: rgba(14,13,12,.55); }
.pr-kind, .pr-place { font-size: var(--t-small); color: rgba(255,255,255,.92); }
.pr-place { text-align: right; }
.pr-title { font: 500 var(--t-h3)/1 var(--serif); letter-spacing: -.01em; }
.pr-title::after { content: ' →'; opacity: 0; transition: opacity var(--fast); }
.panel:hover .pr-title::after, .panel:focus-visible .pr-title::after { opacity: 1; }

/* Jour / nuit : le geste de la page ---------------------------------------------- */
.dn-sec { padding-top: var(--section); }
.dn-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: 48px; }
.dn-head h2 { grid-column: 1 / span 6; font-size: var(--t-h2); font-weight: 400; }
.dn-head p { grid-column: 8 / -1; font-size: var(--t-body); max-width: 46ch; }
.dn { --pos: 50%; }
.dn-view { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: calc(100svh - var(--head-h) - 48px); margin: 0 auto; overflow: hidden; background: var(--night); user-select: none; -webkit-user-select: none; }
@supports (aspect-ratio: 4 / 3) { .dn-view { width: min(100%, calc((100svh - var(--head-h) - 48px) * 4 / 3)); } }
.dn-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dn-night { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.dn-tag { position: absolute; top: 16px; z-index: 3; padding: 7px 12px; background: rgba(14,13,12,.7); color: #fff; font-size: 15px; pointer-events: none; }
.dn-tag-d { left: 16px; } .dn-tag-n { right: 16px; }
.dn-line { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.dn-line i { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: #fff; transition: transform var(--fast); }
.dn-line i::before, .dn-line i::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; }
.dn-line i::before { left: 15px; transform: rotate(45deg); }
.dn-line i::after { right: 15px; transform: rotate(-135deg); }
.dn-view:hover .dn-line i, .dn-range:focus-visible ~ .dn-line i { transform: scale(1.08); }
.dn-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.dn-view:has(.dn-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.dn-foot { margin-top: 24px; }

/* Toutes les échelles : une bande de rendus inégaux ---------------------------------- */
.scales { padding-top: var(--section); }
.scales h2 { margin: 0 0 56px calc(100% / 12 * 2); font-size: var(--t-h2); font-weight: 400; }
.band { display: flex; height: 68svh; min-height: 420px; }
.bp { position: relative; flex: 2 1 0; min-width: 0; overflow: hidden; background: var(--night); transition: flex-grow 500ms var(--ease); }
.bp:nth-child(1) { flex-grow: 5; } .bp:nth-child(3) { flex-grow: 3; }
@media (hover: hover) { .band:hover .bp { flex-grow: 2; } .band .bp:hover { flex-grow: 6; } }
.bp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bp:hover img { transform: scale(1.04); }
.bp-lab { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; background: var(--bg); color: var(--ink); font: 500 22px/1.1 var(--serif); }
.band-cap { margin-top: 20px; font-size: var(--t-body); }

/* Méthode : trois rendus en diagonale ------------------------------------------------- */
.method { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-top: var(--section); }
.method h2 { grid-column: 7 / -1; grid-row: 1; margin-bottom: 64px; font-size: var(--t-h2); font-weight: 400; }
.m-step { display: grid; column-gap: var(--gap); align-items: start; }
.m-step img { width: 100%; height: 100%; object-fit: cover; }
.m-step p { max-width: 36ch; }
.m-step strong { font-weight: 500; }
.m1 { grid-column: 1 / span 8; grid-row: 2; grid-template-columns: 1fr 1fr; }
.m1 picture img, .m1 > img { aspect-ratio: 3 / 4; }
.m2 { grid-column: 5 / span 7; grid-row: 3; margin-top: 120px; grid-template-columns: 4fr 3fr; }
.m2 img { aspect-ratio: 1 / 1; }
.m3 { grid-column: 3 / -1; grid-row: 4; margin-top: 120px; grid-template-columns: 3fr 6fr; }
.m3 img { aspect-ratio: 16 / 10; grid-column: 2; grid-row: 1; }
.m3 p { grid-column: 1; grid-row: 1; justify-self: end; text-align: left; }
.m1 p, .m2 p { padding-top: 8px; }

/* L'agence : grand rendu, carte, repères ------------------------------------------------- */
.about { padding-top: var(--section); }
.about h2 { font-size: var(--t-h2); font-weight: 400; }
.about .lead { margin-top: 24px; max-width: 52ch; }
.about-tiles { display: grid; grid-template-columns: 8fr 4fr; gap: 16px; margin-top: 72px; align-items: start; }
.about-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-over { position: absolute; top: 0; right: 0; width: 340px; padding: 22px 24px; background: var(--bg); font-size: 17px; }
.about-map { background: var(--surface-2); }
.map { display: block; width: 100%; height: auto; }
.map-sea { fill: var(--sea); }
.map-dot { fill: var(--accent); stroke: var(--surface-2); stroke-width: 3; transition: r var(--fast), fill var(--fast); }
.map-dot.on { fill: var(--ink); }
.map a:hover .map-dot, .map a:focus-visible .map-dot { fill: var(--ink); r: 12; }
.map-lab { font: 500 17px var(--sans); fill: var(--ink); }
.map-lab-s { font-weight: 500; fill: var(--accent); }
.map-studio { fill: var(--ink); }
.map-city { font: 500 22px var(--serif); fill: var(--ink); }
.map-sea-lab { fill: var(--on-night-soft); font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px var(--gap); margin-top: 40px; }
.facts dt { font-size: var(--t-small); color: var(--muted); }
.facts dd { margin-top: 4px; font: 500 22px/1.2 var(--serif); }
.facts a { color: var(--accent); }

/* Questions à côté d'un grand rendu ---------------------------------------------------- */
.faq-sec { margin-top: var(--section); background: var(--surface); overflow: hidden; }
.faq-grid { display: grid; grid-template-columns: 5fr 1fr 6fr; padding-top: 120px; padding-bottom: 120px; }
.faq-col { grid-column: 1; }
.faq-col h2 { font-size: var(--t-h3); font-weight: 400; }
.faq-facts { display: grid; gap: 6px; margin-top: 24px; font-size: 17px; }
.faq-facts a { color: var(--accent); }
.faq { display: grid; gap: 4px; margin-top: 36px; }
.faq details { padding: 4px 0; }
.faq summary { position: relative; display: block; min-height: 44px; padding: 14px 44px 14px 0; cursor: pointer; list-style: none; font: 500 22px/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: absolute; right: 8px; top: 22px; width: 12px; height: 12px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--fast); }
.faq details[open] summary i { transform: rotate(-135deg); top: 28px; }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 0 18px; font-size: var(--t-body); color: var(--muted); max-width: 56ch; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.faq-act { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.faq-pics { grid-column: 3; position: relative; margin-top: -120px; margin-bottom: 80px; margin-right: calc(-1 * var(--margin)); }
.fp-tall { aspect-ratio: 3 / 4; overflow: hidden; }
.fp-tall img, .fp-sq img { width: 100%; height: 100%; object-fit: cover; }
.fp-sq { position: absolute; left: -40px; bottom: -40px; width: 34%; aspect-ratio: 1; overflow: hidden; border: 8px solid var(--surface); }

/* Venir à l'agence : la carte de visite sur un rendu -------------------------------------- */
.visit { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); }
.visit-media, .visit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit-card { position: absolute; top: 60px; right: var(--margin); z-index: 2; display: grid; gap: 18px; width: 400px; padding: 34px; background: var(--bg); }
.visit-card h2 { font-size: 36px; font-weight: 400; }
.visit-card p { font-size: 17px; }
.visit-card dl, .ct-card dl { display: grid; gap: 8px; }
.visit-card dl div, .ct-card dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; }
.visit-card dt, .ct-card dt { color: var(--muted); }
.visit-card dd a, .ct-card dd a { font-weight: 500; font-variant-numeric: tabular-nums; }
.visit-card .btn { margin-top: 6px; }

/* Appel final --------------------------------------------------------------------------- */
.cta { background: var(--night); color: var(--on-night); }
.cta-in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px var(--gap); align-items: end; padding-top: 140px; padding-bottom: 140px; }
.cta h2 { font-size: clamp(38px, 4.4vw, 72px); font-weight: 400; color: var(--on-night); }
.cta p { font-size: var(--t-body); color: var(--on-night); max-width: 44ch; }
.cta-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.main-nav a, .cta, .visit { -webkit-tap-highlight-color: transparent; }
.p-accueil .visit + .site-footer, main > .cta:last-child + * { margin-top: 0; }

/* Pied de page ------------------------------------------------------------------------- */
.site-footer { background: var(--night); color: var(--on-night); padding-top: 120px; overflow: hidden; }
main > :last-child:not(.cta):not(.visit):not(.faq-sec) { margin-bottom: var(--section); }
.cta + .site-footer, .visit + .site-footer { padding-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 48px var(--gap); padding-top: 40px; }
.foot-sign { font: 500 36px/1.1 var(--serif); }
.foot-msg p:not(.foot-sign) { margin: 16px 0 28px; color: var(--on-night-soft); max-width: 40ch; }
.foot-addr { display: grid; gap: 14px; align-content: start; font-style: normal; font-size: 17px; }
.foot-addr a:hover, .foot-nav a:hover { color: #E4D3B4; }
.foot-nav { display: grid; gap: 10px; align-content: start; font-size: 15px; color: var(--on-night-soft); }
.foot-word { margin: 96px 0 0; padding: 0 var(--margin); font: 500 clamp(80px, 19.5vw, 380px)/.8 var(--serif); letter-spacing: -.04em; color: var(--bronze); white-space: nowrap; text-align: center; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--on-night-soft); }

/* Pages intérieures --------------------------------------------------------------------- */
.page-head { padding-top: clamp(56px, 7vw, 112px); padding-bottom: 56px; }
.page-head h1 { font-size: var(--t-h1); font-weight: 400; letter-spacing: -.03em; }
.page-head .lead { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: var(--t-small); color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.fbtn { min-height: 46px; padding: 0 20px; background: var(--surface); font-size: 15px; transition: background var(--fast), color var(--fast); }
.fbtn:hover { background: var(--surface-2); }
.fbtn.on { background: var(--ink); color: var(--bg); }
#count { margin-left: auto; font-size: var(--t-small); color: var(--muted); }

.plist { display: grid; gap: clamp(72px, 9vw, 140px); padding-top: 40px; padding-bottom: var(--section); }
.prow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.prow[hidden] { display: none; }
.prow-pic { grid-column: 1 / span 8; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.prow-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.prow:hover .prow-pic img { transform: scale(1.03); }
.prow-txt { grid-column: 9 / -1; display: grid; gap: 14px; align-content: end; }
.prow.rev .prow-pic { grid-column: 5 / -1; grid-row: 1; }
.prow.rev .prow-txt { grid-column: 1 / span 4; grid-row: 1; }
.prow h2 { font-size: var(--t-h3); font-weight: 400; }
.prow h2 a:hover { color: var(--accent); }
.prow-meta { font-size: var(--t-small); color: var(--muted); }

.ph { position: relative; height: calc(100svh - var(--top-h) - var(--head-h)); min-height: 560px; overflow: hidden; background: var(--night); color: #fff; }
.ph-media, .ph-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph::after { /* taste-skill-ignore : voile neutre sous le texte */ content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(180deg, rgba(10,10,9,0), rgba(10,10,9,.6)); }
.ph-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding-bottom: clamp(28px, 4vw, 56px); }
.ph h1 { font-size: var(--t-h1); font-weight: 500; letter-spacing: -.03em; color: #fff; }
.ph-text > p { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,.94); }
.ph .crumbs { color: rgba(255,255,255,.9); margin-bottom: 18px; }
.ph .crumbs a { color: #fff; }
.pinfo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; padding-top: var(--section); }
.pi-head { grid-column: 1 / span 5; }
.pi-head h2 { font-size: 22px; font-weight: 500; color: var(--accent); }
.pi-lead { margin-top: 18px; font: 400 clamp(26px, 2.5vw, 36px)/1.25 var(--serif); }
.pi-text { grid-column: 7 / -1; display: grid; gap: 18px; }
.pi-links { font-size: 15px; }
.pi-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px var(--gap); padding: 32px 36px; background: var(--surface); }
.pi-facts dt { font-size: var(--t-small); color: var(--muted); }
.pi-facts dd { margin-top: 4px; font: 500 22px/1.25 var(--serif); }
.gallery { display: grid; gap: clamp(48px, 6vw, 96px); padding-top: var(--section); }
.gfig { display: grid; gap: 14px; }
.g-left { width: 70%; }
.g-right { width: 70%; justify-self: end; }
.gi { display: block; width: 100%; overflow: hidden; cursor: zoom-in; background: var(--night); }
.gi img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.gi:hover img { transform: scale(1.02); }
.gfig figcaption { font-size: var(--t-small); color: var(--muted); }
.next { padding-top: var(--section); }
.next-link { display: grid; grid-template-columns: 1fr; gap: 8px 24px; align-items: end; padding: 48px 0; transition: color var(--fast); }
.next-link span { font-size: var(--t-small); color: var(--muted); }
.next-link span { grid-column: 1; }
.next-link strong { font: 400 var(--t-h1)/1 var(--serif); letter-spacing: -.03em; }
.next-link:hover strong { color: var(--accent); }
.related { padding-top: 40px; padding-bottom: var(--section); }
.related h2 { font-size: var(--t-h3); font-weight: 400; margin-bottom: 40px; }
.rel-grid { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gap); align-items: start; }
.rel { display: grid; gap: 14px; }
.rel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.rel:nth-child(2) img { aspect-ratio: 1; }
.rel:nth-child(3) img { aspect-ratio: 3 / 4; }
.rel span { display: grid; gap: 2px; font-size: var(--t-small); color: var(--muted); }
.rel strong { font: 500 22px/1.2 var(--serif); color: var(--ink); }
.rel:hover strong { color: var(--accent); }

.xlist { display: grid; gap: clamp(88px, 10vw, 160px); padding-top: 40px; padding-bottom: var(--section); }
.xrow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.x-pic { grid-column: 1 / span 7; aspect-ratio: 4 / 3; overflow: hidden; }
.x-pic img { width: 100%; height: 100%; object-fit: cover; }
.x-txt { grid-column: 9 / -1; display: grid; gap: 20px; }
.xrow.rev .x-pic { grid-column: 6 / -1; grid-row: 1; }
.xrow.rev .x-txt { grid-column: 1 / span 4; grid-row: 1; }
.x-txt h2 { font-size: var(--t-h3); font-weight: 400; }
.x-txt ul { display: grid; gap: 8px; }
.x-txt li { position: relative; padding-left: 26px; }
.x-txt li::before { content: ''; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--accent); }

.strip { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: var(--gap); align-items: end; padding-top: var(--section); }
.strip figure { display: grid; gap: 12px; }
.strip img { width: 100%; object-fit: cover; }
.s1 img { aspect-ratio: 4 / 5; } .s2 img { aspect-ratio: 1; } .s3 img { aspect-ratio: 3 / 4; }
.strip figcaption { font-size: var(--t-small); color: var(--muted); }
.ct-rel { padding-top: var(--section); }
.ag-wide { height: 76svh; min-height: 420px; overflow: hidden; }
.ag-wide img { width: 100%; height: 100%; object-fit: cover; }
.ag-text { padding-top: var(--section); row-gap: 32px; }
.ag-text h2 { grid-column: 1 / span 5; font-size: var(--t-h2); font-weight: 400; }
.ag-cols { grid-column: 7 / -1; display: grid; gap: 20px; font-size: 17px; }
.ag-cols p:first-child { font-size: var(--t-lead); line-height: 1.45; }

.ct { display: grid; grid-template-columns: 7fr 5fr; gap: 64px var(--gap); padding-bottom: 40px; }
.brief { display: grid; gap: 22px; align-content: start; }
.brief fieldset { margin: 0; padding: 0; border: 0; }
.brief legend { margin-bottom: 14px; font: 500 36px/1.2 var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; background: var(--surface); cursor: pointer; transition: background var(--fast), color var(--fast); }
.chip span:hover { background: var(--surface-2); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gap); }
.field label { display: block; margin-bottom: 8px; font-size: var(--t-small); font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: 0; background: var(--surface); font-size: 17px; transition: background var(--fast), box-shadow var(--fast); }
.field select { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236E5A3C' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { /* taste-skill-ignore : champ de formulaire */ outline: none; background-color: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.field [aria-invalid="true"] { /* taste-skill-ignore */ box-shadow: inset 0 -2px 0 #A3392C; }
.ferr { display: none; color: #A3392C; font-size: var(--t-small); }
.ferr.show { display: block; }
.fok { display: none; padding: 18px 20px; background: var(--surface); }
.fok.show { display: block; }
.ct-card { display: grid; gap: 18px; align-content: start; padding: 0 32px 32px; background: var(--surface); }
.ct-pic { aspect-ratio: 16 / 10; overflow: hidden; margin: 0 -32px; }
.ct-pic img { width: 100%; height: 100%; object-fit: cover; }
.ct-logo { display: flex; align-items: center; justify-content: center; padding: 40px 56px; background: var(--surface-2); }
.ct-pic.ct-logo img { width: min(78%, 340px); height: auto; object-fit: contain; }
html.dark .ct-logo .logo-night { display: block; }
.ct-card h2 { margin-top: 10px; font-size: 36px; font-weight: 400; }
.ct-card p a:hover { color: var(--accent); }
.nf-links { margin-top: 28px; }

/* Galerie plein écran ----------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 64px 96px; background: rgba(12,11,10,.96); opacity: 0; visibility: hidden; transition: opacity var(--fast), visibility var(--fast); }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { display: grid; gap: 14px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 80svh; width: auto; object-fit: contain; }
.lightbox figcaption { color: var(--on-night-soft); font-size: 15px; text-align: center; }
.lb-close { position: absolute; top: 16px; right: 20px; min-height: 44px; padding: 0 12px; color: #fff; }
.lb-nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; transition: background var(--fast); }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-nav.prev { left: 20px; } .lb-nav.next { right: 20px; }

/* Mouvement -------------------------------------------------------------------------- */
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.on img { animation: drift 8s ease-out both; }
  .js .hero h1, .js .hero-side, .js .ph-text { opacity: 0; transform: translateY(24px); animation: rise .9s .15s var(--ease) forwards; }
  .js .hero-side { animation-delay: .32s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; } }

/* Tablette ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .main-nav, .head-cta, .site-header > .lang-sw { display: none; }
  .theme-btn { margin-left: auto; }
  .burger { margin-left: 4px; }
  .burger { display: inline-flex; }
  .topbar .tb-addr { display: none; }
  .tb-acts { margin-left: auto; }
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / -1; justify-self: start; margin-top: 24px; max-width: 560px; }
  .intro h2 { grid-column: 1 / -1; }
  .intro-lead, .intro-note { grid-column: 1 / span 6; }
  .intro-small { grid-column: 1 / span 5; }
  .dn-head h2 { grid-column: 1 / -1; }
  .dn-head p { grid-column: 1 / span 9; margin-top: 20px; }
  .method h2 { grid-column: 1 / -1; margin-bottom: 48px; }
  .m1 { grid-column: 1 / -1; grid-row: 2; }
  .m2 { grid-column: 3 / -1; grid-row: 3; margin-top: 72px; }
  .m3 { grid-column: 1 / -1; grid-row: 4; margin-top: 72px; }
  .about-tiles { grid-template-columns: 1fr 1fr; }
  .about-photo { aspect-ratio: auto; height: 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-pics { grid-column: 1; grid-row: 1; width: 82%; margin: -120px 0 72px auto; margin-right: calc(-1 * var(--margin)); }
  .fp-tall { aspect-ratio: 4 / 3; }
  .faq-col { grid-row: 2; }
  .visit-card { width: 380px; }
  .cta-in { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-nav { grid-column: 1 / -1; grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
  .prow-pic, .prow.rev .prow-pic { grid-column: 1 / -1; grid-row: 1; }
  .prow-txt, .prow.rev .prow-txt { grid-column: 1 / span 9; grid-row: 2; margin-top: 28px; }
  .xrow .x-pic, .xrow.rev .x-pic { grid-column: 1 / -1; grid-row: 1; }
  .xrow .x-txt, .xrow.rev .x-txt { grid-column: 1 / span 9; grid-row: 2; margin-top: 32px; }
  .ag-text h2, .ag-cols { grid-column: 1 / -1; }
  .pi-head, .pi-text { grid-column: 1 / -1; }
  .pi-facts { grid-template-columns: repeat(2, 1fr); }
  .ct { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .rel:nth-child(3) { display: none; }
}
/* Tablette en portrait : le héros garde un cadrage serré sur le bâtiment */
@media (max-width: 1100px) and (orientation: portrait) {
  .hero, .ph { height: min(calc(100svh - var(--top-h) - var(--head-h)), 1000px); min-height: 520px; }
}

/* Téléphone --------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .strip { grid-template-columns: 1fr 1fr; }
  .s1 { grid-column: 1 / -1; }
  .s1 img { aspect-ratio: 4 / 3; }
  .topbar .tb-addr { display: none; }
  .topbar { font-size: 14px; }
  .topbar-in { gap: 12px; }
  .brand img { width: 158px; }
  .dock { left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 5px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .dock.away { transform: translateY(110%); }
  .dock a { flex-direction: column; gap: 3px; height: 54px; padding: 0 4px; font-size: 13px; }
  .dock .dock-main { font-size: 14px; }
  .tb-acts { gap: 18px; margin-left: auto; }
  .tb-num { display: none; }
  .tb-call { display: inline; }
  .hero { height: calc(100svh - var(--top-h) - var(--head-h) - 70px); min-height: 520px; }
  .hero-media::after { height: 70%; }
  .hero-text { display: block; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); }
  .hero-side { margin-top: 16px; }
  .hero-side p { font-size: 16px; }
  .hero-act { margin-top: 18px; gap: 14px; }
  .hero-act .btn { width: 100%; }
  .intro { display: block; }
  .intro h2 { font-size: clamp(38px, 10vw, 56px); }
  .intro-lead { margin-top: 24px; font-size: 19px; }
  .intro-tall { width: 78%; margin: 40px calc(-1 * var(--margin)) 0 auto; }
  .intro-small { width: 56%; margin-top: -60px; position: relative; border: 6px solid var(--bg); border-left: 0; }
  .intro-note { margin-top: 28px; }
  .panel { height: 76svh; }
  .panel img { object-position: 50% 72% !important; }
  .panel-row { top: auto; bottom: 20px; margin: 0; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 16px var(--margin); }
  .pr-title { grid-column: 1 / -1; grid-row: 1; font-size: 30px; }
  .pr-kind, .pr-place { grid-row: 2; font-size: 14px; }
  .dn-head { display: block; margin-bottom: 28px; }
  .dn-head h2 { font-size: 40px; }
  .dn-view { aspect-ratio: 4 / 3; width: auto; margin: 0 calc(-1 * var(--margin)); max-height: none; }
  .dn-line i { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .scales h2 { margin-left: 0; margin-bottom: 32px; font-size: 40px; }
  .band { flex-wrap: wrap; height: 84svh; min-height: 0; }
  .bp, .bp:nth-child(n) { flex: none; height: 50%; }
  .bp:nth-child(1), .bp:nth-child(4) { width: 64%; }
  .bp:nth-child(2), .bp:nth-child(3) { width: 36%; }
  .bp-lab { left: 12px; bottom: 12px; font-size: 18px; padding: 6px 10px; }
  .method { display: block; }
  .method h2 { font-size: 40px; margin-bottom: 32px; }
  .m-step { display: block; }
  .m-step p { margin-top: 18px; padding: 0; font-size: 16px; }
  .m1 img { aspect-ratio: 4 / 3; }
  .m2 { width: 64%; margin: 56px 0 0 auto; }
  .m3 { width: 82%; margin-top: 56px; }
  .m3 img { aspect-ratio: 4 / 3; }
  .about h2, .page-head h1 { font-size: clamp(38px, 10vw, 56px); }
  .about-tiles { grid-template-columns: 1fr; margin-top: 40px; }
  .about-photo { aspect-ratio: 4 / 3; height: auto; }
  .about-over { position: static; width: auto; padding: 18px 0 0; background: none; }
  .about-map { margin: 24px calc(-1 * var(--margin)) 0; }
  .facts { gap: 20px 16px; }
  .facts dd { font-size: 20px; }
  .faq-grid { padding-top: 0; padding-bottom: 72px; }
  .faq-pics { width: auto; margin: 0 calc(-1 * var(--margin)) 64px; }
  .fp-tall { aspect-ratio: 4 / 5; }
  .fp-sq { left: auto; right: 20px; bottom: -32px; width: 38%; }
  .faq-col h2 { font-size: 36px; }
  .faq summary { font-size: 20px; }
  .faq-act .btn { width: 100%; }
  .visit { height: auto; min-height: 0; background: var(--bg); }
  .visit-media { position: relative; height: 70svh; }
  .visit-card { position: relative; top: auto; right: auto; width: auto; margin: -80px 16px 0; }
  .visit-card .btn { min-height: 56px; }
  .cta-in { padding-top: 88px; padding-bottom: 88px; }
  .cta-act .btn { width: 100%; }
  .site-footer { padding-top: 72px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-nav { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .foot-word { margin-top: 56px; font-size: 22vw; }
  .filters { margin-top: 32px; }
  #count { display: none; }
  .prow-txt, .prow.rev .prow-txt, .xrow .x-txt, .xrow.rev .x-txt { grid-column: 1 / -1; margin-top: 20px; }
  .prow-pic { margin: 0 calc(-1 * var(--margin)); aspect-ratio: 4 / 3; }
  .x-pic { margin: 0 calc(-1 * var(--margin)); }
  .ph { height: calc(100svh - var(--top-h) - var(--head-h) - 70px); }
  .ph h1 { font-size: clamp(38px, 10.5vw, 56px); }
  .pinfo { display: block; }
  .pi-text { margin-top: 32px; }
  .pi-facts { grid-template-columns: 1fr 1fr; margin-top: 40px; padding: 24px 20px; }
  .g-left, .g-right { width: 86%; }
  .gallery .g-wide .gi { margin: 0 calc(-1 * var(--margin)); width: auto; }
  .rel-grid { grid-template-columns: 1fr; }
  .rel:nth-child(3) { display: grid; }
  .rel img, .rel:nth-child(n) img { aspect-ratio: 4 / 3; }
  .ag-wide { height: 60svh; }
  .row2 { grid-template-columns: 1fr; }
  .ct-card { padding: 0 20px 28px; }
  .ct-pic { margin: 0 -20px; }
  .pi-lead { font-size: 22px; }
  .lightbox { padding: 56px 0 96px; }
  .lb-nav { top: auto; bottom: 20px; margin: 0; }
  .lb-nav.prev { left: calc(50% - 68px); } .lb-nav.next { right: calc(50% - 68px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero, .ph { height: 100svh; min-height: 380px; }
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* Mode nuit -------------------------------------------------------------------------- */
html.dark {
  --bg: #141311; --surface: #1A1916; --surface-2: #2C2A26; --ink: #EDE8E0; --muted: #A8A196;
  --accent: #C9A27E; --accent-ink: #141311; --sea: #2E2C28; --night: #070707; --on-night-soft: #BAB4A9;
  color-scheme: dark;
}
html.dark .btn-accent, html.dark .dock .dock-main, html.dark .fbtn.on { color: var(--accent-ink); }
html.dark .btn-accent:hover { background: var(--ink); color: var(--bg); }
html.dark .btn-light { background: var(--ink); color: #0D0D0D; }
html.dark .topbar, html.dark .site-footer, html.dark .cta { background: #070707; }
html.dark .dock { background: #1B1A17; }
html.dark ::selection { color: #0D0D0D; }

/* Langues ---------------------------------------------------------------------------- */
html[lang="ar"] { --serif: 'Tajawal', sans-serif; --sans: 'Tajawal', sans-serif; }
html[lang="ar"] body, html[lang="ar"] button, html[lang="ar"] input, html[lang="ar"] select, html[lang="ar"] textarea { font-family: 'Tajawal', sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; letter-spacing: 0; line-height: 1.2; }
html[lang="ar"] .faq summary, html[lang="ar"] .pi-lead, html[lang="ar"] .facts dd, html[lang="ar"] .pr-title, html[lang="ar"] .bp-lab, html[lang="ar"] .rel strong, html[lang="ar"] .foot-sign, html[lang="ar"] .mobile-menu nav a, html[lang="ar"] .next-link strong { font-weight: 500; letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .foot-word { font-family: 'Cormorant Garamond', Georgia, serif; direction: ltr; }
[dir="rtl"] .dn-view, [dir="rtl"] .map, [dir="rtl"] .brand, [dir="rtl"] .lang-sw { direction: ltr; }
[dir="rtl"] .dn-tag { direction: rtl; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] .tb-num { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .x-txt li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .x-txt li::before { left: auto; right: 0; }
[dir="rtl"] .faq summary { padding: 14px 0 14px 44px; }
[dir="rtl"] .faq summary i { right: auto; left: 8px; }
[dir="rtl"] .about-over { right: auto; left: 0; }
[dir="rtl"] .fp-sq { left: auto; right: -40px; }
[dir="rtl"] .visit-card { right: auto; left: var(--margin); }
[dir="rtl"] .field select { background-position: left 16px center; padding-right: 16px; padding-left: 44px; }
[dir="rtl"] .pr-place { text-align: left; }
[dir="rtl"] .crumbs li + li::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .scales h2 { margin-left: 0; margin-right: calc(100% / 12 * 2); }
[dir="rtl"] .intro-tall, [dir="rtl"] .faq-pics { margin-right: 0; margin-left: calc(-1 * var(--margin)); }
@media (max-width: 1100px) { [dir="rtl"] .theme-btn { margin-left: 0; margin-right: auto; } }
@media (max-width: 760px) { [dir="rtl"] .tb-acts { margin-left: 0; margin-right: auto; } [dir="rtl"] .scales h2 { margin-right: 0; } }

@media (max-width: 760px) { html[lang="ar"] .hero h1 { font-size: 34px; } }
@media (max-width: 1100px) { [dir="rtl"] .tb-acts { margin-left: 0; margin-right: auto; } }

/* Tunnel « Votre projet » ------------------------------------------------------------- */
.funnel { position: fixed; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,10,9,.78); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms; }
.funnel.open { opacity: 1; visibility: visible; }
.fn-box { position: relative; width: 100%; max-width: 680px; max-height: 92svh; overflow-y: auto; padding: 44px 48px 40px; background: var(--bg); transform: translateY(16px); transition: transform 300ms var(--ease); }
.funnel.open .fn-box { transform: none; }
.fn-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font-size: 18px; color: var(--muted); }
.fn-close:hover { color: var(--ink); }
.fn-bar { height: 4px; margin: 0 52px 30px 0; background: var(--surface-2); }
.fn-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(.25); transition: transform 300ms var(--ease); }
.fn-count { font-size: var(--t-small); color: var(--muted); }
.fn-title { margin: 8px 0 26px; font-size: 36px; font-weight: 400; }
.fn-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fopt { display: grid; gap: 4px; padding: 18px 20px; text-align: start; background: var(--surface); transition: background var(--fast), color var(--fast), transform var(--fast); }
.fopt:hover { background: var(--surface-2); }
.fopt:active { transform: scale(.98); }
.fopt strong { font-weight: 500; font-size: 17px; }
.fopt span { font-size: var(--t-small); color: var(--muted); }
.fopt[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fopt[aria-pressed="true"] span { color: inherit; }
.fn-step .field { margin-bottom: 18px; }
.fn-step .btn { margin-top: 6px; }
.fn-back { min-height: 44px; margin-top: 14px; font-size: var(--t-small); color: var(--muted); }
.fn-back:hover { color: var(--ink); }
.fn-step .fok { margin-top: 14px; }
@media (max-width: 760px) {
  .funnel { align-items: flex-end; padding: 0; }
  .fn-box { max-width: none; max-height: 92svh; padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
  .fn-title { font-size: 30px; margin-bottom: 20px; }
  .fn-opts { grid-template-columns: 1fr 1fr; gap: 6px; }
  .fopt { padding: 14px; }
  .fopt strong { font-size: 16px; }
  .fopt span { font-size: 14px; }
}
[dir="rtl"] .fn-close { right: auto; left: 12px; }
[dir="rtl"] .fn-bar { margin: 0 0 30px 52px; }
[dir="rtl"] .fn-bar i { transform-origin: right; }

/* 3AH */
.about-map picture, .about-map img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-map { min-height: 320px; overflow: hidden; }
.brand img { width: clamp(190px, 17vw, 260px); }
@media (max-width: 760px) { .brand img { width: 170px; } }

/* Animation d'entrée : le logo se révèle, puis le rideau se lève (une fois par visite) */
.splash { display: none; }
html.splash-on .splash { display: flex; position: fixed; inset: 0; z-index: 999; align-items: center; justify-content: center; background: var(--bg); animation: splash-out .9s cubic-bezier(.77,0,.18,1) 1.9s forwards; }
html.splash-on body { overflow: hidden; }
.splash-in { position: relative; width: min(62vw, 420px); }
.splash-in img { width: 100%; height: auto; clip-path: inset(0 100% 0 0); animation: splash-logo 1.1s cubic-bezier(.2,.7,.2,1) .25s forwards; }
.splash-in .logo-night { position: static; }
.splash-in i { display: block; height: 1px; margin-top: 22px; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: splash-line 1.2s cubic-bezier(.2,.7,.2,1) .55s forwards; }
@keyframes splash-logo { to { clip-path: inset(0 0 0 0); } }
@keyframes splash-line { to { transform: scaleX(1); } }
@keyframes splash-out { to { transform: translateY(-100%); visibility: hidden; } }
