/* ==========================================================================
   Huilerie Mohamed Ben Elfalah & Fils — feuille de style
   Direction : « seule l'huile garde sa couleur ».
   Prune (olive mûre), chaux (murs de la huilerie), huile nouvelle (accent).
   ========================================================================== */

/* ---------- Polices (auto-hébergées, licence OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-roman.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-sans.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-arabic-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Plex";
  src: url("../fonts/plex-arabic-600.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Ruqaa";
  src: url("../fonts/aref-ruqaa-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Ruqaa";
  src: url("../fonts/aref-ruqaa-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Jetons ---------- */
:root {
  --plum: #2A1B27;        /* olive noire */
  --plum-2: #3A2836;
  --plum-3: #54404F;
  --chalk: #F1F2EC;       /* chaux */
  --chalk-2: #E6E8DE;
  --paper: #FBFBF7;
  --leaf: #566035;        /* feuille d'olivier */
  --oil: #D4C34A;         /* huile nouvelle : seul accent */
  --oil-hover: #E3D463;
  --silver: #C8CCBC;      /* revers de feuille */
  --muted: #6B5E67;
  --muted-d: #BDB1B9;

  --f-latin: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-arabic: "Ruqaa", "Fraunces", "Amiri", "Traditional Arabic", serif;
  --f-text: "Plex", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  --display: var(--f-latin);
  --echo-font: var(--f-arabic);
  --lead-font: var(--f-latin);

  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 72px);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --focus: var(--plum);
}
html[lang="ar"] {
  --display: var(--f-arabic);
  --echo-font: var(--f-latin);
  --lead-font: var(--f-text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--plum);
  font: 400 17px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { font-size: 18px; line-height: 1.9; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--oil); color: var(--plum); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.icon { width: 1.2em; height: 1.2em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 168px); }
.skip { position: fixed; z-index: 100; inset-inline-start: 16px; top: -80px; padding: 12px 18px; background: var(--oil); color: var(--plum); font-weight: 500; border-radius: 999px; }
.skip:focus { top: 12px; }

/* Les sections sombres changent la couleur du focus */
.hero, .savoir, .galerie, .site-footer, .menu, dialog { --focus: var(--oil); }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 500 16px/1.2 var(--f-text); letter-spacing: .005em; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--oil { background: var(--oil); color: var(--plum); }
.btn--oil:hover { background: var(--oil-hover); }
.btn--line { border: 1px solid rgb(241 242 236 / .45); color: var(--chalk); }
.btn--line:hover { border-color: var(--chalk); background: rgb(241 242 236 / .08); }
.btn--line-dark { border: 1px solid var(--silver); color: var(--plum); }
.btn--line-dark:hover { border-color: var(--plum); }
.btn--plum { background: var(--plum); color: var(--chalk); }
.btn--plum:hover { background: var(--plum-2); }
.btn--chalk { background: var(--chalk); color: var(--plum); }
.btn--chalk:hover { background: #fff; }
.btn .icon { width: 18px; height: 18px; }
html[lang="ar"] .btn { font-size: 17px; }

.link {
  display: inline-block; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .35em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: currentColor; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
    animation: ping 2.4s var(--ease) infinite;
  }
}
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Bichromie : seule l'huile garde sa couleur ---------- */
.duo { position: relative; isolation: isolate; overflow: hidden; background: var(--plum); }
.duo img { filter: grayscale(1) contrast(1.12) brightness(1.04); transition: filter .8s var(--ease), transform 1.2s var(--ease); }
.duo::before, .duo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .8s var(--ease); }
.duo::before { background: #EDE6D8; mix-blend-mode: multiply; }
.duo::after { background: #3B2434; mix-blend-mode: screen; }
@media (hover: hover) {
  .mosaic__btn.duo:hover img, .film-card:hover .duo img, .contact__map:hover .duo img { filter: none; }
  .mosaic__btn.duo:hover::before, .mosaic__btn.duo:hover::after,
  .film-card:hover .duo::before, .film-card:hover .duo::after,
  .contact__map:hover .duo::before, .contact__map:hover .duo::after { opacity: 0; }
}
.mosaic__btn.duo:focus-visible img { filter: none; }
.mosaic__btn.duo:focus-visible::before, .mosaic__btn.duo:focus-visible::after { opacity: 0; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--chalk);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
  --focus: var(--oil);
}
.site-header.is-solid {
  background: rgb(241 242 236 / .92); color: var(--plum); box-shadow: 0 1px 0 rgb(42 27 39 / .12);
  -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px);
  --focus: var(--plum);
}
.site-header__inner { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand__name { font: 400 19px/1.1 var(--display); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="ar"] .brand__name { font-weight: 700; font-size: 21px; line-height: 1.5; }
.brand__short { display: none; }
@media (max-width: 440px) { .brand__full { display: none; } .brand__short { display: inline; } }
.nav ul { display: flex; gap: clamp(14px, 1.9vw, 30px); }
.nav a {
  display: block; padding: 10px 0; font-size: 15px; font-weight: 450; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 4px) / 0 1px;
  transition: background-size .35s var(--ease);
}
html[dir="rtl"] .nav a { background-position: 100% calc(100% - 4px); }
html[lang="ar"] .nav a { font-size: 16.5px; }
.nav a:hover, .nav a.is-current { background-size: 100% 1px; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.langs { display: flex; gap: 12px; font-size: 14px; }
.langs a { padding: 6px 2px; opacity: .72; transition: opacity .2s; }
.langs a:hover, .langs a[aria-current] { opacity: 1; }
.langs a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--oil); text-decoration-thickness: 2px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px; font-size: 15px; font-weight: 500; }
.menu-btn__bars { width: 22px; height: 9px; border-block: 1.5px solid currentColor; }
@media (max-width: 1180px) {
  .nav, .langs { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 16px; }
  html[lang="ar"] .brand__name { font-size: 17px; }
  .header-tools .btn--sm { display: none; }
}

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: var(--plum); color: var(--chalk);
  display: flex; flex-direction: column; padding-bottom: 32px;
}
.menu:not([hidden]) { animation: menuIn .45s var(--ease); }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.menu-close { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 500; }
.menu__nav { flex: 1; display: flex; align-items: center; padding-block: 32px; }
.menu__nav li + li { margin-top: 4px; }
.menu__nav a { display: inline-block; font: 350 clamp(2.1rem, 8vw, 3.4rem)/1.18 var(--display); padding-block: 4px; }
html[lang="ar"] .menu__nav a { font-weight: 700; line-height: 1.6; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; border-top: 1px solid var(--plum-3); padding-top: 24px; }
.menu__phone { font-size: 18px; }
.menu__langs { display: flex; gap: 18px; margin-inline-start: auto; }
.menu__langs a { opacity: .7; }
.menu__langs a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--oil); }
body.has-menu { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  background: var(--plum); color: var(--chalk);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(42 27 39 / .97) 0%, rgb(42 27 39 / .8) 30%, rgb(42 27 39 / .28) 62%, rgb(42 27 39 / .55) 100%),
    linear-gradient(to right, rgb(42 27 39 / .72) 0%, rgb(42 27 39 / 0) 62%);
}
html[dir="rtl"] .hero::before {
  background:
    linear-gradient(to top, rgb(42 27 39 / .97) 0%, rgb(42 27 39 / .8) 30%, rgb(42 27 39 / .28) 62%, rgb(42 27 39 / .55) 100%),
    linear-gradient(to left, rgb(42 27 39 / .72) 0%, rgb(42 27 39 / 0) 62%);
}
.hero__inner {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  align-content: end; padding-top: calc(var(--header-h) + clamp(16px, 4vh, 40px)); padding-bottom: clamp(24px, 4.5vh, 64px);
}
.hero__echo {
  grid-column: 7 / -1; grid-row: 1; align-self: start; justify-self: end; text-align: end;
  font: 700 min(clamp(1.9rem, 1rem + 2.6vw, 3.9rem), 6.6vh)/1.55 var(--f-arabic);
  color: var(--oil); margin-bottom: clamp(20px, 7vh, 140px); max-width: 12em;
}
html[lang="ar"] .hero__echo { font: italic 400 clamp(1.15rem, .9rem + 1vw, 1.75rem)/1.3 var(--f-latin); color: var(--oil); max-width: 24em; }
.hero__title {
  grid-column: 1 / span 10; grid-row: 2;
  font: 330 min(clamp(3.1rem, 1.2rem + 7.4vw, 8.6rem), 14.5vh)/.96 var(--display);
  letter-spacing: -.025em; margin-bottom: clamp(20px, 3vw, 34px);
}
html[lang="ar"] .hero__title { font-weight: 700; font-size: min(clamp(2.9rem, 1.3rem + 6vw, 7rem), 11.5vh); line-height: 1.3; letter-spacing: 0; }
.line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.line > span { display: inline-block; }
.hero__lead { grid-column: 1 / span 6; grid-row: 3; max-width: 36em; font-size: clamp(1.05rem, .95rem + .35vw, 1.28rem); line-height: 1.55; color: rgb(241 242 236 / .86); }
html[lang="ar"] .hero__lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.85; }
.hero__ctas { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: clamp(18px, 3.4vh, 40px); }
.hero__bar {
  display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  border-top: 1px solid rgb(241 242 236 / .2); padding-block: clamp(12px, 2.2vh, 18px) clamp(14px, 2.6vh, 22px);
  font-size: 14px; color: rgb(241 242 236 / .72);
}
.hero__place { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-inline-end: auto; }
.hero__coords { font-variant-numeric: tabular-nums; white-space: pre; }
.hero__live { display: flex; align-items: center; gap: 10px; color: var(--chalk); }
.hero__live .live-dot { color: var(--oil); }
.hero__live a { text-decoration: underline; text-decoration-color: rgb(241 242 236 / .3); text-underline-offset: .3em; }
.hero__live a:hover { text-decoration-color: currentColor; }
.hero__live strong { color: var(--oil); font-weight: 600; font-variant-numeric: tabular-nums; margin-inline-start: 4px; }
.video-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(241 242 236 / .3); color: var(--chalk); }
.video-toggle:hover { border-color: var(--chalk); }
.video-toggle .icon { width: 16px; height: 16px; }
.video-toggle .icon--play { display: none; }
.video-toggle.is-paused .icon--play { display: block; }
.video-toggle.is-paused .icon--pause { display: none; }

/* Le moment orchestré : l'ouverture du hero */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line > span { transform: translateY(104%); animation: rise 1.15s var(--ease) .15s forwards; }
  .js .hero__title .line:nth-child(2) > span { animation-delay: .3s; }
  .js .hero__echo { opacity: 0; filter: blur(10px); animation: echoIn 1.6s var(--ease) .55s forwards; }
  .js .hero__lead, .js .hero__ctas { opacity: 0; transform: translateY(14px); animation: fadeUp 1s var(--ease) .75s forwards; }
  .js .hero__ctas { animation-delay: .9s; }
  .js .hero__bar { opacity: 0; animation: fade 1.2s var(--ease) 1.1s forwards; }
  .js .hero__media > picture img { animation: settle 2.4s var(--ease) both; }
}
@keyframes rise { to { transform: none; } }
@keyframes echoIn { to { opacity: 1; filter: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

/* Écrans d'ordinateur peu hauts (portables 1366×768, barres d'outils) : tout le hero reste visible */
@media (min-width: 901px) and (max-height: 760px) {
  .hero__echo { font-size: min(clamp(1.9rem, 1rem + 2.6vw, 3.9rem), 6vh); margin-bottom: 3vh; }
  .hero__title { font-size: min(clamp(3.1rem, 1.2rem + 7.4vw, 8.6rem), 13vh); margin-bottom: 2.4vh; }
  html[lang="ar"] .hero__title { font-size: min(clamp(2.9rem, 1.3rem + 6vw, 7rem), 10vh); }
  .hero__lead { font-size: 1.02rem; }
  .hero__ctas { margin-top: 2.6vh; }
  .hero__ctas .btn { min-height: 46px; }
}
@media (max-width: 900px) {
  .hero__echo { grid-column: 1 / -1; justify-self: end; margin-bottom: auto; }
  .hero__title, .hero__lead { grid-column: 1 / -1; }
  .hero__inner { grid-template-rows: 1fr auto auto auto; }
}
@media (max-width: 560px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__bar { font-size: 13px; }
  .hero__road { display: none; }
}

/* ---------- En-têtes de section bilingues ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 3.6vw, 48px); }
.sec-head__title { font: 350 clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem)/1.02 var(--display); letter-spacing: -.018em; text-wrap: balance; }
html[lang="ar"] .sec-head__title { font-weight: 700; font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.8rem); line-height: 1.4; letter-spacing: 0; }
.sec-head__echo { font: 400 clamp(1.5rem, 1rem + 1.5vw, 2.4rem)/1.5 var(--echo-font); color: var(--leaf); padding-bottom: .25em; }
html[lang="ar"] .sec-head__echo { font: italic 400 clamp(1.05rem, .9rem + .6vw, 1.45rem)/1.3 var(--f-latin); padding-bottom: .5em; }
.sec-head--dark .sec-head__echo { color: var(--oil); }

.lead { font: 350 clamp(1.3rem, 1.05rem + .8vw, 1.72rem)/1.45 var(--lead-font); letter-spacing: -.005em; text-wrap: pretty; }
html[lang="ar"] .lead { font-weight: 400; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.9; }
.body-text, .services__intro, .contact__intro, .galerie__intro > p, .savoir__lead { color: var(--muted); max-width: 38em; text-wrap: pretty; }

/* ---------- La maison ---------- */
.maison__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 128px); align-items: center; }
.maison__fig { position: relative; }
.olive { aspect-ratio: 4 / 5; border-radius: 50%; max-width: 520px; margin-inline: auto; }
.olive img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.maison__fig figcaption { margin-top: 18px; text-align: center; font: italic 400 15px/1.4 var(--f-latin); color: var(--muted); }
html[lang="ar"] .maison__fig figcaption { font: 400 15px/1.6 var(--f-text); }
.maison__text .lead { margin-bottom: 22px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--silver); }
.facts dt { font: 380 clamp(1.5rem, 1.15rem + 1vw, 2.2rem)/1.15 var(--f-latin); letter-spacing: -.01em; }
.facts dd { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
html[lang="ar"] .facts dd { font-size: 16px; line-height: 1.7; }
@media (max-width: 900px) {
  .maison__grid { grid-template-columns: 1fr; }
  .olive { max-width: 380px; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 18px; } .facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; align-items: baseline; } .facts dd { margin: 0; } }

/* ---------- Savoir-faire (procédé) ---------- */
.savoir { background: var(--plum); color: var(--chalk); }
.savoir .sec-head__title { max-width: 11ch; }
.savoir__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(48px, 7vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.savoir__intro .sec-head { margin: 0; }
.savoir__lead { color: var(--muted-d); font-size: 18px; }
.savoir__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.savoir__stage {
  position: sticky; top: calc(var(--header-h) + 32px);
  height: min(68vh, 640px); overflow: hidden; background: var(--plum-2);
}
.stage__img { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.stage__img.is-active { opacity: 1; }
.stage__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 2.4s var(--ease); }
.stage__img.is-active img { transform: none; }
.steps { position: relative; }
.steps__track { position: absolute; inset-block: 24px; inset-inline-start: 23px; width: 1px; background: var(--plum-3); }
.steps__fill { position: absolute; inset: 0; background: var(--oil); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; padding-inline-start: 84px; min-height: min(56vh, 520px); display: flex; flex-direction: column; justify-content: center; padding-block: 24px; }
.step:first-of-type { justify-content: flex-start; min-height: min(48vh, 440px); }
.step__num {
  position: absolute; inset-inline-start: 0; top: 50%; translate: 0 -50%;
  width: 47px; height: 47px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); border: 1px solid var(--plum-3); color: var(--muted-d);
  font: 400 15px/1 var(--f-latin); font-variant-numeric: lining-nums;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.step:first-of-type .step__num { top: 24px; translate: 0 0; }
.step.is-past .step__num, .step.is-active .step__num { background: var(--oil); border-color: var(--oil); color: var(--plum); }
.step h3 { font: 380 clamp(1.7rem, 1.25rem + 1.3vw, 2.6rem)/1.1 var(--display); letter-spacing: -.012em; margin-bottom: 14px; transition: color .5s; }
html[lang="ar"] .step h3 { font-weight: 700; line-height: 1.5; }
.step p { color: var(--muted-d); max-width: 30em; }
.step:not(.is-active) h3 { color: rgb(241 242 236 / .55); }
.step__fig { display: none; }
@media (max-width: 900px) {
  .savoir__intro, .savoir__grid { grid-template-columns: 1fr; }
  .savoir__stage { display: none; }
  .step, .step:first-of-type { min-height: 0; padding-block: 0 56px; justify-content: flex-start; }
  .step__num, .step:first-of-type .step__num { top: 0; translate: 0 0; }
  .step:not(.is-active) h3 { color: var(--chalk); }
  .step__fig { display: block; margin-top: 22px; aspect-ratio: 3 / 2; }
  .step__fig img { width: 100%; height: 100%; object-fit: cover; }
}
@media (max-width: 560px) { .step { padding-inline-start: 64px; } }

/* ---------- Notre huile ---------- */
.huile__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 128px); align-items: start; }
.huile__fig { position: sticky; top: calc(var(--header-h) + 32px); overflow: hidden; aspect-ratio: 3 / 4; background: var(--plum); }
.huile__fig img { width: 100%; height: 100%; object-fit: cover; }
.huile__text .lead { max-width: 30em; }
.label-card {
  position: relative; margin-top: clamp(36px, 4vw, 52px); padding: 30px clamp(22px, 3vw, 36px) 26px;
  background: var(--paper); border: 1px solid var(--silver);
  outline: 1px solid var(--silver); outline-offset: -8px;
}
.label-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--plum); }
.label-card__head [lang="fr"] { font: 400 clamp(1.25rem, 1rem + .6vw, 1.6rem)/1.2 var(--f-latin); }
.label-card__head [lang="ar"] { font: 700 clamp(1.4rem, 1.1rem + .7vw, 1.8rem)/1.4 var(--f-arabic); color: var(--leaf); }
.label-card__rows div { display: grid; grid-template-columns: minmax(8em, 1fr) 2fr; gap: 16px; padding-block: 11px; border-bottom: 1px dotted var(--silver); }
.label-card__rows dt { color: var(--muted); font-size: 15px; }
.label-card__rows dd { font-weight: 500; }
.label-card__foot { padding-top: 14px; text-align: center; font: italic 400 15px/1.4 var(--f-latin); color: var(--muted); }
html[lang="ar"] .label-card__foot { font: 400 15px/1.7 var(--f-text); }
.tips__title { margin-top: clamp(40px, 5vw, 64px); font: 400 clamp(1.4rem, 1.15rem + .7vw, 1.9rem)/1.2 var(--display); }
html[lang="ar"] .tips__title { font-weight: 700; line-height: 1.5; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.tips li { border-top: 2px solid var(--plum); padding-top: 14px; }
.tips strong { display: block; font-weight: 600; margin-bottom: 4px; }
.tips span { color: var(--muted); font-size: 15.5px; line-height: 1.55; display: block; }
.note { margin-top: 36px; padding-inline-start: 18px; border-inline-start: 3px solid var(--oil); font: italic 400 clamp(1.1rem, 1rem + .3vw, 1.3rem)/1.5 var(--f-latin); color: var(--leaf); max-width: 34em; }
html[lang="ar"] .note { font: 400 18px/1.9 var(--f-text); }
@media (max-width: 900px) {
  .huile__grid { grid-template-columns: 1fr; }
  .huile__fig { position: relative; top: 0; aspect-ratio: 4 / 5; max-height: 76vh; width: 100%; }
}
@media (max-width: 640px) { .tips { grid-template-columns: 1fr; } .label-card__rows div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Services et prix du jour ---------- */
.services { background: var(--chalk-2); }
.services__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.services__intro { margin-bottom: clamp(28px, 3vw, 40px); }
.service { display: grid; grid-template-columns: 1fr auto; gap: 10px 32px; padding-block: 30px; border-top: 1px solid var(--silver); }
.service:last-child { border-bottom: 1px solid var(--silver); }
.service h3 { font: 400 clamp(1.45rem, 1.15rem + .8vw, 2rem)/1.2 var(--display); letter-spacing: -.008em; grid-column: 1; }
html[lang="ar"] .service h3 { font-weight: 700; line-height: 1.5; }
.service p:not(.service__price) { color: var(--muted); grid-column: 1; max-width: 34em; }
.service .link { grid-column: 1; justify-self: start; margin-top: 4px; }
.service__price { grid-column: 2; grid-row: 1 / span 3; align-self: start; text-align: end; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.service__price b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.service__today { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.service__unit { font-size: 13px; color: var(--muted); }

.ticket-wrap { position: sticky; top: calc(var(--header-h) + 32px); scroll-margin-top: calc(var(--header-h) + 24px); padding-block: 10px; }
.ticket {
  --edge: 9px;
  position: relative; background: var(--paper); color: var(--plum);
  padding: 34px clamp(22px, 2.6vw, 34px) 30px; font-size: 15px;
  filter: drop-shadow(0 26px 30px rgb(42 27 39 / .14)) drop-shadow(0 2px 3px rgb(42 27 39 / .08));
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; inset-inline: 0; height: var(--edge);
  background: conic-gradient(from 135deg at 50% 0, var(--paper) 90deg, transparent 0) 50% 0 / calc(var(--edge) * 2) var(--edge) repeat-x;
}
.ticket::before { top: calc(var(--edge) * -1 + 1px); transform: rotate(180deg); }
.ticket::after { bottom: calc(var(--edge) * -1 + 1px); }
.ticket__head { text-align: center; padding-bottom: 20px; border-bottom: 1px dashed var(--silver); }
.ticket__head img { width: 64px; height: 64px; margin: 0 auto 10px; }
.ticket__brand { font-size: 13px; color: var(--muted); }
.ticket__title { font: 400 clamp(1.7rem, 1.4rem + .8vw, 2.2rem)/1.15 var(--display); margin-top: 6px; }
html[lang="ar"] .ticket__title { font-weight: 700; line-height: 1.5; }
.ticket__date { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ticket__rows { padding-block: 8px; }
.ticket__row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; padding-block: 14px; border-bottom: 1px dashed var(--silver); }
.ticket__row dt { font-weight: 500; line-height: 1.35; }
.ticket__row dt small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ticket__row dd { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket__v { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.ticket__u { font-size: 12.5px; color: var(--muted); }
.ticket__trend { display: block; font-size: 12.5px; color: var(--leaf); margin-top: 2px; }
.ticket__trend:empty { display: none; }
.ticket__trend[data-dir="up"]::before { content: "▲ "; font-size: .8em; }
.ticket__trend[data-dir="down"]::before { content: "▼ "; font-size: .8em; }
.ticket__note { font-size: 12.5px; color: var(--muted); padding-top: 16px; line-height: 1.5; }
.ticket__fallback { display: none; padding-block: 18px 4px; }
.ticket__fallback p:first-child { line-height: 1.55; }
.ticket__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ticket__code {
  height: 40px; margin-top: 22px; opacity: .88;
  background: repeating-linear-gradient(90deg, var(--plum) 0 2px, transparent 2px 4px, var(--plum) 4px 5px, transparent 5px 8px, var(--plum) 8px 11px, transparent 11px 13px, var(--plum) 13px 14px, transparent 14px 17px);
}
.ticket[data-state="loading"] .ticket__v { color: transparent; background: linear-gradient(90deg, var(--chalk-2), var(--chalk), var(--chalk-2)) 0 0 / 200% 100%; border-radius: 3px; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ticket[data-state="error"] .ticket__rows, .ticket[data-state="error"] .ticket__note { display: none; }
.ticket[data-state="error"] .ticket__fallback { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .ticket.is-printed { animation: print 1.1s var(--ease); }
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(-20px -40px -60px -40px); transform: none; } }
@media (max-width: 1000px) {
  .services__grid { grid-template-columns: 1fr; }
  .ticket-wrap { position: relative; top: 0; max-width: 460px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) { .service { grid-template-columns: 1fr; } .service__price { grid-column: 1; grid-row: auto; text-align: start; } }

/* ---------- Galerie et film ---------- */
.galerie { background: var(--plum); color: var(--chalk); }
.galerie__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(48px, 7vw, 120px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.galerie__intro .sec-head { margin: 0; }
.galerie__intro > p { color: var(--muted-d); font-size: 18px; }
.film-card { position: relative; display: block; width: 100%; aspect-ratio: 21 / 9; overflow: hidden; color: var(--chalk); text-align: start; }
.film-card__media { position: absolute; inset: 0; }
.film-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.film-card:hover .film-card__media img { transform: scale(1.02); }
.film-card__body { position: absolute; z-index: 2; inset: auto 0 0; display: flex; align-items: center; gap: 20px; padding: clamp(20px, 3vw, 40px); background: linear-gradient(to top, rgb(42 27 39 / .85), transparent); }
.film-card__play { width: clamp(56px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--oil); color: var(--plum); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.film-card__play .icon { width: 42%; height: 42%; translate: 6% 0; }
.film-card:hover .film-card__play { transform: scale(1.06); }
.film-card__text strong { display: block; font: 400 clamp(1.4rem, 1.1rem + 1vw, 2.2rem)/1.15 var(--display); }
html[lang="ar"] .film-card__text strong { font-weight: 700; line-height: 1.5; }
.film-card__text span { font-size: 14px; color: var(--muted-d); }
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; margin-block: clamp(48px, 5vw, 72px) 26px; }
.filters button { padding: 8px 0; font-size: 16px; color: var(--muted-d); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.filters button:hover { color: var(--chalk); }
.filters button[aria-pressed="true"] { color: var(--chalk); border-color: var(--oil); }
.filters__count { margin-inline-start: auto; font-size: 14px; color: var(--muted-d); font-variant-numeric: tabular-nums; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 250px); grid-auto-flow: dense; gap: 10px; }
.mosaic__item--w { grid-column: span 2; }
.mosaic__item--t { grid-row: span 2; }
.mosaic__btn { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; background: var(--plum-2); }
.mosaic__btn img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__btn:hover img { transform: scale(1.025); }
.mosaic__cap {
  position: absolute; z-index: 2; inset: auto 0 0; padding: 32px 14px 12px; text-align: start;
  font: italic 400 14.5px/1.35 var(--f-latin); color: var(--chalk);
  background: linear-gradient(to top, rgb(42 27 39 / .82), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
html[lang="ar"] .mosaic__cap { font: 400 14.5px/1.6 var(--f-text); }
.mosaic__btn:hover .mosaic__cap, .mosaic__btn:focus-visible .mosaic__cap { opacity: 1; transform: none; }
@media (hover: none) { .mosaic__cap { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .galerie__intro { grid-template-columns: 1fr; } .film-card { aspect-ratio: 16 / 10; } }
@media (max-width: 600px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 6px; }
  .mosaic__item--t { grid-row: span 1; grid-column: span 2; }
  .film-card { aspect-ratio: 4 / 5; }
  .film-card__media img { object-position: 30% 30%; }
}

/* ---------- Dialogues : visionneuse et film ---------- */
dialog { padding: 0; border: 0; color: var(--chalk); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(28 18 26 / .94); }
.lightbox { width: 100vw; height: 100dvh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__frame { display: grid; justify-items: center; gap: 14px; max-width: min(92vw, 1500px); }
.lightbox__frame img { max-width: min(92vw, 1500px); max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; background: var(--plum-2); }
.lightbox__cap { display: flex; gap: 18px; align-items: baseline; font: italic 400 16px/1.4 var(--f-latin); }
html[lang="ar"] .lightbox__cap { font: 400 16px/1.7 var(--f-text); }
.lightbox__count { font: 400 13px var(--f-text); color: var(--muted-d); font-variant-numeric: tabular-nums; }
.lightbox__btn, .dialog-close {
  position: fixed; z-index: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  color: var(--chalk); background: rgb(42 27 39 / .6); border: 1px solid rgb(241 242 236 / .25);
  transition: background-color .25s, border-color .25s;
}
.lightbox__btn:hover, .dialog-close:hover { background: var(--plum-2); border-color: var(--chalk); }
.lightbox__prev { inset-inline-start: clamp(10px, 2vw, 32px); top: 50%; translate: 0 -50%; }
.lightbox__next { inset-inline-end: clamp(10px, 2vw, 32px); top: 50%; translate: 0 -50%; }
html[dir="rtl"] .lightbox__btn .icon { transform: scaleX(-1); }
.dialog-close { top: clamp(10px, 2vw, 28px); inset-inline-end: clamp(10px, 2vw, 28px); }
.film { width: min(92vw, 1280px); }
.film[open] { display: block; }
.film video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialogIn .4s var(--ease); }
  dialog[open]::backdrop { animation: fade .4s var(--ease); }
}
@keyframes dialogIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
body.has-dialog { overflow: hidden; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact__intro { margin-bottom: 28px; }
.contact__map { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--plum); margin-bottom: 34px; }
.contact__map .duo, .contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.contact__map figcaption { position: absolute; z-index: 2; inset: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 18px; background: linear-gradient(to top, rgb(42 27 39 / .78), transparent); color: var(--chalk); font-size: 13px; }
.contact__map.is-loaded figcaption { display: none; }
.contact__address { display: grid; gap: 6px; }
.contact__address strong { font: 400 clamp(1.35rem, 1.1rem + .7vw, 1.75rem)/1.25 var(--display); }
html[lang="ar"] .contact__address strong { font-weight: 700; line-height: 1.6; }
.contact__address span { color: var(--muted); }
.contact__hint { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.contact__hint [lang="ar"] { white-space: nowrap; unicode-bidi: isolate; font-family: var(--f-text); }
.contact__links { margin-top: 26px; display: grid; gap: 4px; }
.contact__links a { display: inline-flex; align-items: center; gap: 12px; padding-block: 7px; font-weight: 500; }
.contact__links a span { text-decoration: underline; text-decoration-color: var(--silver); text-underline-offset: .3em; transition: text-decoration-color .25s; }
.contact__links a:hover span { text-decoration-color: var(--plum); }
.contact__links .icon { width: 20px; height: 20px; color: var(--leaf); }

.form { background: var(--paper); border: 1px solid var(--silver); padding: clamp(26px, 3.6vw, 48px); }
.form__title { font: 400 clamp(1.6rem, 1.3rem + .9vw, 2.3rem)/1.15 var(--display); margin-bottom: 26px; }
html[lang="ar"] .form__title { font-weight: 700; line-height: 1.5; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.req { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--silver);
  border-radius: 0; background: transparent; outline: none; transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232A1B27' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 4px center; }
html[dir="rtl"] .field select { background-position: left 4px center; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--plum); box-shadow: 0 2px 0 0 var(--plum); }
.field [aria-invalid="true"] { border-color: #A3352B; box-shadow: 0 2px 0 0 #A3352B; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form__hint { font-size: 13.5px; color: var(--muted); margin: -4px 0 22px; }
.form__status { min-height: 1.6em; margin-top: 14px; font-weight: 500; }
.form__status[data-tone="ok"] { color: var(--leaf); }
.form__status[data-tone="err"] { color: #A3352B; }
.form__status a { text-decoration: underline; }
.form__privacy { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 1000px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--plum); color: var(--chalk); padding-block: clamp(72px, 9vw, 120px) 32px; }
.footer__top { display: flex; align-items: center; gap: clamp(20px, 3vw, 36px); }
.footer__top img { width: clamp(72px, 8vw, 96px); height: auto; }
.footer__name { font: 350 clamp(1.8rem, 1.3rem + 1.8vw, 3.2rem)/1.05 var(--display); letter-spacing: -.015em; }
html[lang="ar"] .footer__name { font-weight: 700; line-height: 1.45; }
.footer__echo { font: 400 clamp(1.2rem, 1rem + .8vw, 1.8rem)/1.6 var(--echo-font); color: var(--oil); }
html[lang="ar"] .footer__echo { font: italic 400 clamp(1rem, .9rem + .4vw, 1.25rem)/1.4 var(--f-latin); margin-top: 4px; }
.footer__tagline { color: var(--muted-d); margin-top: 4px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; border-top: 1px solid var(--plum-3); }
.footer__cols h2 { font: 500 13.5px/1.4 var(--f-text); color: var(--muted-d); margin-bottom: 14px; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { opacity: .9; }
.footer__cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }
.footer__cols a[aria-current] { text-decoration: underline; text-decoration-color: var(--oil); text-underline-offset: .3em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--plum-3); font-size: 13px; color: var(--muted-d); }
.footer__bottom a { text-decoration: underline; text-decoration-color: var(--plum-3); text-underline-offset: .3em; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--chalk); }
.footer__up .icon { width: 16px; height: 16px; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__cols > :last-child { grid-column: 1 / -1; } .footer__top { align-items: flex-start; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; z-index: 40; inset-inline-end: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: var(--oil); box-shadow: 0 14px 30px -12px rgb(42 27 39 / .7), 0 0 0 1px rgb(212 195 74 / .35);
  opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease); --focus: var(--oil);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--plum-2); }

/* ---------- Page 404 ---------- */
.nf { background: var(--plum); color: var(--chalk); min-height: 100vh; display: grid; place-items: center; --focus: var(--oil); }
.nf__main { display: grid; justify-items: center; gap: 22px; text-align: center; padding: 48px 20px; }
.nf__code { font: 330 clamp(5rem, 3rem + 10vw, 11rem)/1 var(--f-latin); color: var(--oil); letter-spacing: -.03em; }
.nf__main > div { display: grid; justify-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--plum-3); width: min(100%, 520px); }
.nf__msg { font-size: 18px; }
.nf [lang="ar"] .nf__msg { font-family: var(--f-text); }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Impression ---------- */
@media print {
  .site-header, .menu, .hero__media, .wa-float, .film-card, .filters, .mosaic, .form, .contact__map, dialog { display: none !important; }
  .hero, .savoir, .galerie, .site-footer { background: none !important; color: #000 !important; }
  .hero { min-height: 0; }
  .section { padding-block: 24px; }
}
