/* ==========================================================================
   Créatibois — feuille de styles
   Thèmes : [data-theme="dark"] (navy du logo) / [data-theme="light"]
   RTL : propriétés logiques (inline-start / inline-end) partout
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wood-grad: linear-gradient(120deg, #efcb94 0%, #d39d5e 48%, #a46f36 100%);
}

/* Sombre : le navy du logo */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1528;
  --bg-alt: #111b31;
  --surface: #16213b;
  --surface-2: #1c2846;
  --line: rgba(236, 197, 140, .15);
  --line-strong: rgba(236, 197, 140, .32);
  --text: #edeff4;
  --muted: #a3acbf;
  --accent: #e4b57b;          /* bois, pour le texte */
  --btn-ink: #1b1308;
  --header-bg: rgba(13, 21, 40, .78);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
}

/* Clair : enduit gris-bleu froid, le bois ressort plus sombre */
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f5;
  --bg-alt: #e2e7ee;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --line: rgba(13, 21, 40, .11);
  --line-strong: rgba(13, 21, 40, .22);
  --text: #0d1528;
  --muted: #4b566e;
  --accent: #8a5823;
  --btn-ink: #1b1308;
  --header-bg: rgba(238, 241, 245, .82);
  --shadow: 0 24px 50px -30px rgba(13, 21, 40, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
[lang="ar"] body, [dir="rtl"] body {
  --font: "Readex Pro", "Jost", system-ui, sans-serif;
  line-height: 1.8;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: #d39d5e; color: #1b1308; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: var(--btn-ink); border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn .ico { width: 19px; height: 19px; }
.btn-wood { background: var(--wood-grad); color: var(--btn-ink); box-shadow: 0 10px 28px -14px rgba(211, 157, 94, .9); }
.btn-wood:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(211, 157, 94, 1); }
.btn-line { border-color: var(--line-strong); background: transparent; color: var(--text); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap .2s var(--ease);
}
.link-arrow::after { content: "→"; }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover { gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- En-tête ---------- */
/* Le flou est porté par un pseudo-élément : un backdrop-filter sur l'en-tête lui-même
   enfermerait le menu mobile (position: fixed) dans les 68 px de l'en-tête. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
.menu-open .site-header::before { background: var(--bg); }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 54px; height: auto; aspect-ratio: 148.5 / 78.5; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: "Jost", sans-serif; font-weight: 500; font-size: 1.32rem; letter-spacing: .06em; }
.brand-tag { font-size: .66rem; color: var(--accent); margin-top: 5px; letter-spacing: .04em; white-space: nowrap; }
[dir="rtl"] .brand-text { direction: ltr; text-align: start; }
[dir="rtl"] .brand-tag { direction: rtl; font-size: .72rem; }

.nav { margin-inline-start: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500; transition: color .2s;
}
.nav-list a:hover { color: var(--text); }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--wood-grad);
}
.nav-mobile-extra { display: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  min-width: 36px; height: 36px; display: grid; place-items: center; padding-inline: 8px;
  border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s;
}
.lang-switch a[lang="ar"] { font-family: "Readex Pro", sans-serif; font-size: 1rem; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--surface-2); color: var(--text); }

.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

.menu-toggle { display: none; }
.menu-toggle .ico-close { display: none; }
.menu-open .menu-toggle .ico-close { display: block; }
.menu-open .menu-toggle .ico-menu { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 8vw, 96px) clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-place { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.hero-place .ico { width: 18px; height: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; max-width: 12ch; }
[dir="rtl"] .hero h1 { line-height: 1.25; letter-spacing: 0; max-width: 14ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 54ch; margin-top: 24px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: .92rem; color: var(--muted); }

.hero-visual { position: relative; }
.hero-art { width: 100%; height: auto; overflow: visible; direction: ltr; }
.hero-photo { margin: clamp(24px, 3vw, 36px) 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); animation: fade-in 1.2s ease .9s both; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ha-name { fill: var(--text); letter-spacing: 0; }
.ha-tag { fill: var(--muted); }
.ha-piece { animation: piece-in 1s var(--ease) both; animation-delay: calc(var(--i) * .16s + .15s); }
.ha-text { animation: fade-in 1.2s ease .6s both; }
@keyframes piece-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.1rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head-row > div { max-width: 640px; }
.h-sub { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 20px; }
.small-title { font-size: .95rem; font-weight: 500; color: var(--muted); margin: 24px 0 12px; letter-spacing: 0; }

/* ---------- Liste des services (accueil) ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list li:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.svc-list li:last-child:nth-child(odd) { grid-column: 1 / -1; border-inline-end: 0; }
.svc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: start;
  padding: 28px 24px; height: 100%;
  transition: background-color .25s;
}
.svc:hover { background: var(--surface); }
.svc-ico {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--accent); border: 1px solid var(--line);
}
.svc-ico .ico { width: 26px; height: 26px; }
.svc-name { display: block; font-size: 1.35rem; font-weight: 500; line-height: 1.25; }
.svc-text { display: block; color: var(--muted); margin-top: 6px; font-size: 1rem; }
.svc-arrow { color: var(--accent); margin-top: 4px; opacity: .5; transition: opacity .2s, transform .25s var(--ease); }
[dir="rtl"] .svc-arrow { transform: scaleX(-1); }
.svc:hover .svc-arrow { opacity: 1; transform: translateX(4px); }
[dir="rtl"] .svc:hover .svc-arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Galerie ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-home { grid-auto-rows: 230px; grid-auto-flow: dense; }
.gallery-home .tile:nth-child(1) { grid-row: span 2; grid-column: span 2; }
.gallery-full { grid-auto-rows: 280px; }
.gallery-full .tile:nth-child(6n + 1) { grid-row: span 2; }

.tile {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md);
  background: var(--surface); min-height: 200px;
}
.tile[hidden] { display: none; }
.tile-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.04); }
.tile-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 16px;
  display: flex; flex-direction: column; gap: 2px; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 12, 24, .82), transparent);
  color: #fff;
}
.tile-cat { font-size: .8rem; color: #ecc58c; }
.tile-title { font-size: 1.05rem; font-weight: 500; }

/* Vignette « bois » quand la photo n'est pas encore là */
.tile-empty { --w1: #c99459; --w2: #b07a3f; --w3: rgba(80, 45, 15, .22); }
.tile-empty.wood-1 { --w1: #8c5a33; --w2: #6f4426; --w3: rgba(30, 15, 5, .3); }
.tile-empty.wood-2 { --w1: #dcc29a; --w2: #c7a679; --w3: rgba(110, 75, 35, .2); }
.tile-empty {
  background:
    radial-gradient(ellipse 40px 14px at 70% 38%, var(--w3), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 7px, var(--w3) 7px 8px, transparent 8px 19px, rgba(255, 255, 255, .05) 19px 20px),
    repeating-linear-gradient(98deg, transparent 0 31px, var(--w3) 31px 33px),
    linear-gradient(160deg, var(--w1), var(--w2));
}
.tile-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: rgba(255, 255, 255, .85); font-size: .85rem; padding-bottom: 40px;
}
.tile-ico { width: 44px; height: 44px; opacity: .85; }
.svc-detail-media .tile-ph { padding-bottom: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; cursor: pointer; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.gallery-empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Visionneuse */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(6, 10, 20, .94); color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(6, 10, 20, .6); }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-height: 82dvh; width: auto; border-radius: var(--r-sm); }
.lightbox figcaption { font-size: 1rem; color: #ddd; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer;
}
.lb-btn:hover { border-color: #ecc58c; color: #ecc58c; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { inset-inline-end: 16px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lb-prev { transform: translateY(-50%); }
[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 20px 0 0; }
[dir="rtl"] .step { padding: 0 0 0 20px; }
.step::before {
  content: ""; position: absolute; top: 23px; inset-inline-start: 48px; inset-inline-end: 0; height: 1px; background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step-n {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font-weight: 500; font-size: 1.15rem; background: var(--bg);
}
.step h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Engagements ---------- */
.values { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.values h2 { font-size: clamp(2rem, 4vw, 3rem); }
.values-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.values-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values-list > div { border-top: 2px solid; border-image: var(--wood-grad) 1; padding-top: 18px; }
.values-list dt { font-size: 1.3rem; font-weight: 500; }
.values-list dd { color: var(--muted); margin-top: 8px; }

/* ---------- Bandeau d'appel ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 96px); background: #0d1528; color: #edeff4; position: relative; overflow: hidden; }
[data-theme="dark"] .cta-band { background: var(--surface); }
.cta-logo {
  position: absolute; inset-inline-end: var(--gutter); bottom: 0; width: min(340px, 60vw); height: auto;
  opacity: .14; pointer-events: none;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-text { max-width: 560px; }
.cta-text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-text p { color: #b9c0cf; margin-top: 12px; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-band .btn-line { color: #edeff4; border-color: rgba(236, 197, 140, .4); }
.cta-band .btn-line:hover { color: #ecc58c; border-color: #ecc58c; }
.cta-band .link-arrow { color: #ecc58c; }

/* ---------- En-tête de page ---------- */
.page-head { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.03em; }
[dir="rtl"] .page-head h1 { letter-spacing: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.jump a {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
  font-size: .95rem; transition: color .2s, border-color .2s;
}
.jump a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Services (détail) ---------- */
.svc-detail-list { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px); }
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail-media .tile { aspect-ratio: 4 / 3; height: auto; }
.svc-detail-body h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin: 20px 0 14px; }
.svc-detail-body > p { color: var(--muted); max-width: 56ch; }
.svc-detail-body .link-arrow { margin-top: 28px; }

.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; }
.checks strong { font-weight: 500; }

.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.panel h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.panel p { color: var(--muted); }
.panel .btn { margin-top: 24px; }
/* Cartes de même hauteur, boutons alignés en bas */
.two-cols-equal { align-items: stretch; }
.two-cols-equal .panel { display: flex; flex-direction: column; align-items: flex-start; }
.two-cols-equal .panel .btn { margin-top: auto; }
.two-cols-equal .panel p { margin-bottom: 24px; }
.zone-place { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--accent) !important; font-weight: 500; }

/* ---------- À propos ---------- */
.about-hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); overflow: hidden; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
[dir="rtl"] .about-hero h1 { letter-spacing: 0; line-height: 1.2; }
.about-sign { margin: clamp(32px, 4vw, 48px) 0 0; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); max-width: 400px; }
/* Composition photo : grande image + petite image en chevauchement + cadre filaire bois */
.about-media { position: relative; padding-inline-start: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.about-media::before {
  content: ""; position: absolute; top: -20px; inset-inline-end: -20px; width: 62%; height: 58%;
  border: 1px solid var(--line-strong); border-radius: var(--r-lg);
}
.about-media img { display: block; height: auto; object-fit: cover; }
.about-media-main { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.about-media-second {
  position: absolute; inset-inline-start: 0; bottom: 0; width: 46%; aspect-ratio: 1;
  border-radius: var(--r-md); border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.about-story { border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 96px); }
.about-story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-statement { font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.35; letter-spacing: -.01em; }
[dir="rtl"] .about-statement { letter-spacing: 0; line-height: 1.6; }
.about-statement::before { content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; background: var(--wood-grad); margin-bottom: 28px; }
.about-story-body { padding-inline-start: clamp(0px, 3vw, 40px); border-inline-start: 1px solid var(--line); }
.about-story-body p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.about-story-body p + p { margin-top: 1.2em; }

/* ---------- Instagram ---------- */
.insta { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 32px; align-items: center; }
.insta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.insta p { color: var(--muted); margin-top: 6px; }
.insta-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-lg); background: var(--wood-grad); color: var(--btn-ink); }
.insta-ico .ico { width: 34px; height: 34px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-weight: 500; font-size: .95rem; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line-strong); background: var(--bg); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
}
[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211, 157, 94, .22); }
.field [aria-invalid="true"] { border-color: #e0605a; }
.field ::placeholder { color: var(--muted); opacity: .75; }
.form-note { font-size: .88rem; color: var(--muted); text-align: center; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.alert { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: var(--r-md); margin-bottom: 20px; border: 1px solid; }
.alert ul { list-style: disc; padding-inline-start: 20px; }
.alert .btn { align-self: flex-start; }
.alert-ok { flex-direction: row; align-items: center; border-color: rgba(76, 175, 120, .5); background: rgba(76, 175, 120, .12); }
.alert-ok .ico { color: #4caf78; }
.alert-err { border-color: rgba(224, 96, 90, .5); background: rgba(224, 96, 90, .1); }

.info-list { display: grid; gap: 18px; margin-bottom: 24px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list small { display: block; color: var(--muted); font-size: .85rem; }
.info-list a { font-weight: 500; font-size: 1.08rem; }
.info-list a:hover { color: var(--accent); }
[dir="rtl"] .info-list a[dir="ltr"] { display: inline-block; }
.info-ico { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.map { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
[data-theme="dark"] .map iframe { filter: grayscale(.4) brightness(.85) contrast(1.05); }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding-block: clamp(80px, 14vw, 160px); }
.page-404 .lead { margin-inline: auto; margin-bottom: 32px; }
.big-404 { font-size: clamp(5rem, 18vw, 10rem); line-height: 1; font-weight: 300; background: var(--wood-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Pied de page ---------- */
.site-footer { padding-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin-top: 18px; max-width: 34ch; font-size: .98rem; }
.footer-title { font-size: 1rem; font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: var(--muted); transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 12px; color: var(--muted); }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--accent); }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact li:has(.footer-addr-label) { align-items: flex-start; }
.footer-contact li:has(.footer-addr-label) .ico { margin-top: 2px; flex-shrink: 0; }
.footer-contact a:has(.footer-addr-label) { display: grid; gap: 2px; line-height: 1.45; }
.footer-addr-label { font-size: .78rem; color: var(--accent); }
/* Adresse en caractères latins dans une page arabe : alignée à droite comme le reste */
[dir="rtl"] .footer-contact [dir="ltr"], [dir="rtl"] .info-list a[dir="ltr"] { text-align: right; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text); transition: background-color .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted);
}
.footer-credit { color: var(--muted); font-weight: 500; transition: color .2s; }
.footer-credit:hover { color: var(--accent); }
.to-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top .ico { width: 20px; height: 20px; stroke-width: 2.8; }

/* WhatsApp flottant (mobile) */
.wa-float {
  position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px;
  display: none; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float .ico { width: 28px; height: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .step:nth-child(3)::before { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: 32px;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.6rem; color: var(--text); }
  .nav-list a[aria-current="page"] { color: var(--accent); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-mobile-extra { display: grid; gap: 12px; }
  .menu-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; order: -1; }
  .hero { padding-top: 24px; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-list li:nth-child(odd) { border-inline-end: 0; }
  .values { grid-template-columns: 1fr; gap: 32px; }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail-media { order: 0; }
  .about-hero-grid, .about-story-grid, .contact-grid, .two-cols { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .about-story-body { padding-inline-start: 0; border-inline-start: 0; }
  .about-media::before { top: -10px; inset-inline-end: -8px; }
  .gallery, .gallery-full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-home .tile:nth-child(1) { grid-row: span 1; grid-column: span 2; }
  .wa-float { display: grid; }
  /* La flèche « haut de page » se range à côté du bouton WhatsApp flottant (56px + 18px de marge) */
  .footer-bottom { padding-inline-end: 72px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand-mark { width: 42px; }
  .brand-name { font-size: 1.1rem; }
  .brand-tag { display: none; }
  .header-inner { gap: 10px; }
  .header-tools { gap: 6px; margin-inline-start: auto; }
  .lang-switch a { min-width: 32px; height: 32px; padding-inline: 6px; font-size: .8rem; }
  .icon-btn { width: 40px; height: 40px; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .svc { padding: 22px 4px; gap: 16px; }
  .svc-ico { width: 46px; height: 46px; }
  .svc-arrow { display: none; }

  .gallery, .gallery-full { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-home .tile:nth-child(1), .gallery-full .tile:nth-child(6n + 1) { grid-row: auto; grid-column: auto; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0 0 28px; }
  [dir="rtl"] .step { padding: 0 0 28px; }
  .step::before { display: block !important; top: 48px; bottom: 0; inset-inline-start: 23px; inset-inline-end: auto; width: 1px; height: auto; }
  .step:last-child::before { display: none !important; }
  .step-n { grid-row: span 2; }
  .step h3 { margin: 10px 0 4px; }

  .values-list, .values-3 { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .cta-actions .link-arrow { align-self: center; }
  .insta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: row; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
