/* ==========================================================================
   MADAR CONSEIL — feuille de style unique (RTL / LTR via propriétés logiques)
   Identité : bleu nuit #0b1521 · cuivre #cf8b5a · fond #f7f7f7 (cf. logo)
   ========================================================================== */

:root {
  --navy: #0b1521;
  --navy-2: #101c2e;
  --navy-3: #1a2a44;
  --copper: #cf8b5a;
  --copper-hi: #dca071;
  --copper-text: #9a5524;          /* cuivre foncé : texte sur fond clair (contraste AA) */
  --copper-tint: #f6e9dd;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --tint: #efede9;
  --line: #e4e1db;
  --ink: #0b1521;
  --muted: #566070;
  --danger: #b3261e;
  --ok-bg: #e4f3e8;
  --ok: #1d6a39;

  --ff-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --ff-ar-head: "Cairo", "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --ff-fr: "Jost", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 33, .06), 0 4px 14px rgba(11, 21, 33, .05);
  --shadow-md: 0 10px 30px rgba(11, 21, 33, .12);
  --shadow-lg: 0 24px 60px rgba(11, 21, 33, .22);
  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;
}

html:lang(ar) { --ff-body: var(--ff-ar); --ff-head: var(--ff-ar-head); --lh-body: 1.85; --lh-head: 1.4; }
html:lang(fr) { --ff-body: var(--ff-fr); --ff-head: var(--ff-fr); --lh-body: 1.65; --lh-head: 1.18; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.dialog-open { overflow: hidden; }
[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--ff-head); line-height: var(--lh-head); font-weight: 700; letter-spacing: 0; }
html:lang(fr) h1, html:lang(fr) h2 { letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .i-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; transition: transform .18s, background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .18s; }
.btn:hover .i-dir { transform: translateX(3px); }
[dir="rtl"] .btn:hover .i-dir { transform: scaleX(-1) translateX(3px); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--copper); color: var(--navy); }
.btn-primary:hover { background: var(--copper-hi); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(207, 139, 90, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 247, 247, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11, 21, 33, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--ff-fr); line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.3rem; letter-spacing: .2em; color: var(--navy); }
.brand-sub { font-weight: 500; font-size: .68rem; letter-spacing: .62em; color: var(--copper-text); margin-top: 5px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 4px; }
.nav li a {
  display: block; padding: 8px 14px; border-radius: 10px; text-decoration: none;
  font-weight: 500; color: var(--navy); transition: background-color .15s, color .15s;
}
.nav li a:hover { background: var(--tint); }
.nav li a.is-active { color: var(--copper-text); font-weight: 700; }
.nav-cta { min-height: 42px; padding: 0 18px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .95rem;
  background: var(--surface); transition: border-color .15s, background-color .15s;
}
.lang-switch:lang(ar) { font-family: var(--ff-ar); }
.lang-switch:lang(fr) { font-family: var(--ff-fr); }
.lang-switch:hover { border-color: var(--copper); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; inset-inline: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 14px; padding: 14px var(--gutter) 22px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    visibility: hidden; opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; }
  .nav li a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { min-height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(207, 139, 90, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 130%);
  padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 112px);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(207, 139, 90, .22); }
.ring-1 { width: 620px; height: 620px; inset-inline-end: -180px; top: -220px; }
.ring-2 { width: 940px; height: 940px; inset-inline-end: -340px; top: -380px; border-color: rgba(255, 255, 255, .06); }
.hero-mark { position: absolute; width: 420px; inset-inline-end: -60px; bottom: -90px; opacity: .05; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; margin-block: 14px 20px; text-wrap: balance; }
html:lang(ar) .hero h1 { line-height: 1.45; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .78); max-width: 38em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--copper-text);
}
html:lang(fr) .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
.eyebrow-light { color: var(--copper); }
.diamond { width: 9px; height: 9px; background: var(--copper); transform: rotate(45deg); flex: none; display: inline-block; }

.hero-panel {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.panel-title { font-family: var(--ff-head); font-weight: 700; font-size: .95rem; color: var(--copper); padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.hero-panel ul { display: grid; }
.hero-panel li { display: flex; gap: 16px; padding-block: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hero-panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel-num { font-family: var(--ff-fr); font-weight: 600; font-size: 1.35rem; color: var(--copper); min-width: 2ch; line-height: 1.4; }
.hero-panel strong { display: block; font-family: var(--ff-head); font-size: 1.1rem; }
.hero-panel li span:not(.panel-num) { display: block; color: rgba(255, 255, 255, .68); font-size: .95rem; line-height: 1.6; }

@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ring-1 { width: 420px; height: 420px; }
  .ring-2 { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2, .about-copy h2, .booking-copy h2 { font-size: clamp(1.6rem, 3.3vw, 2.5rem); margin-top: 10px; text-wrap: balance; }
.section-head-light h2 { color: #fff; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.note { margin-top: 32px; padding: 14px 18px; border-inline-start: 3px solid var(--copper); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); font-size: .98rem; }
[dir="rtl"] .note { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.note-light { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .75); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.about-copy p:first-of-type { margin-top: 20px; color: var(--ink); }
.mission { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-sm); }
.mission h3 { font-size: 1.25rem; margin-bottom: 8px; }
.values li { display: flex; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.values .check { width: 30px; height: 30px; border-radius: 50%; background: var(--copper-tint); color: var(--copper-text); display: grid; place-items: center; flex: none; margin-top: 2px; }
.values .check .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.values strong { display: block; font-family: var(--ff-head); }
.values span:not(.check) { color: var(--muted); font-size: .98rem; }
.ambition { margin-top: 18px; font-weight: 700; color: var(--navy); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card::before {
  content: ""; position: absolute; inset-inline: 28px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--copper); transform: scaleX(0); transform-origin: center; transition: transform .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9d4cb; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.2rem; margin-block: 18px 8px; }
.card-text { color: var(--muted); font-size: 1rem; }
.card-icon { width: 54px; height: 54px; border-radius: 15px; background: var(--navy); color: var(--copper); display: grid; place-items: center; flex: none; }
.card-icon .icon { width: 26px; height: 26px; }

.mini-list { margin-block: 16px 22px; display: grid; gap: 8px; }
.mini-list li { position: relative; padding-inline-start: 20px; font-size: .95rem; line-height: 1.55; color: var(--ink); }
.mini-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 6px; height: 6px; background: var(--copper); transform: rotate(45deg); }
.link-btn {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  background: none; border: 0; font-weight: 700; color: var(--copper-text); border-bottom: 1.5px solid transparent;
}
.link-btn:hover { border-bottom-color: currentColor; }
.link-btn .icon { width: 1.05em; height: 1.05em; }

.why-card .why-num { font-family: var(--ff-fr); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--copper); opacity: .85; }
.why-card h3 { margin-top: 14px; }

/* Services dialog */
.dialog {
  border: 0; padding: 0; border-radius: 22px; width: min(740px, calc(100% - 24px)); max-height: min(88vh, 820px);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden;
}
.dialog[open] { display: flex; flex-direction: column; animation: pop .25s ease-out; }
.dialog::backdrop { background: rgba(11, 21, 33, .62); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--navy); color: #fff; }
.dialog-head h3 { font-size: 1.2rem; flex: 1; margin: 0; }
.dialog-head .card-icon { background: rgba(255, 255, 255, .08); width: 46px; height: 46px; border-radius: 13px; }
.dialog-close { width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; display: grid; place-items: center; }
.dialog-close:hover { background: rgba(255, 255, 255, .12); }
.dialog-body { overflow-y: auto; padding: 18px 22px 24px; display: grid; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.svc[open] { border-color: #d6cfc4; box-shadow: var(--shadow-sm); }
.svc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; cursor: pointer; line-height: 1.5; }
.svc summary::-webkit-details-marker { display: none; }
.svc .chev { transition: transform .2s; color: var(--copper-text); }
.svc[open] .chev { transform: rotate(180deg); }
.svc-body { padding: 0 18px 18px; }
.svc-label { font-size: .85rem; font-weight: 700; color: var(--copper-text); margin-bottom: 8px; }
.steps { counter-reset: s; display: grid; gap: 10px; margin-bottom: 14px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 1rem; }
.steps li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-family: var(--ff-fr); font-size: .85rem; font-weight: 700;
  background: var(--copper-tint); color: var(--copper-text);
}
.svc-note { margin-bottom: 14px; padding: 10px 14px; background: var(--tint); border-radius: 10px; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) {
  .dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: 92vh; }
}

/* Method (dark) */
.section-dark::before {
  content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(207, 139, 90, .18);
  inset-inline-start: -260px; bottom: -340px; pointer-events: none;
}
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline li { position: relative; padding-top: 26px; border-top: 2px solid rgba(255, 255, 255, .14); }
.timeline li::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 56px; height: 2px; background: var(--copper); }
.t-num { font-family: var(--ff-fr); font-weight: 700; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--copper); }
.timeline h3 { font-size: 1.25rem; margin-block: 14px 8px; color: #fff; }
.timeline p { color: rgba(255, 255, 255, .72); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .timeline { grid-template-columns: 1fr; gap: 26px; }
}

/* Audience */
.chips-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.chip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.chip-card:hover { transform: translateY(-3px); border-color: var(--copper); box-shadow: var(--shadow-sm); }
.chip-card h3 { font-size: 1.08rem; margin-block: 14px 6px; }
.chip-card p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
@media (max-width: 1080px) { .chips-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .chips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .chips-grid { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow-sm); }
.plan-tag { color: var(--copper-text); font-weight: 700; font-size: .9rem; }
.plan h3 { font-size: 1.7rem; margin-block: 6px 20px; }
.plan ul { display: grid; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li .icon { color: var(--copper-text); margin-top: .3em; width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.plan-featured { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow-lg); position: relative; }
.plan-featured .plan-tag, .plan-featured li .icon { color: var(--copper); }
@media (min-width: 901px) { .plan-featured { transform: translateY(-12px); } }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Booking */
.section-booking {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(700px 400px at 0% 0%, rgba(207, 139, 90, .14), transparent 60%), linear-gradient(170deg, var(--navy-2), var(--navy));
}
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.booking-copy h2 { color: #fff; }
.booking-copy .eyebrow { color: var(--copper); }
.booking-copy .section-lead { color: rgba(255, 255, 255, .75); }
.booking-points { margin-top: 28px; display: grid; gap: 14px; }
.booking-points li { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, .9); }
.booking-points li span { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--copper); color: var(--copper); display: grid; place-items: center; font-family: var(--ff-fr); font-weight: 700; flex: none; }
.booking-phone { margin-top: 32px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); text-decoration: none; font-family: var(--ff-fr); font-weight: 600; font-size: 1.15rem; transition: background-color .2s, border-color .2s; }
.booking-phone:hover { background: rgba(255, 255, 255, .08); border-color: var(--copper); }
.booking-phone .icon { color: var(--copper); }

.form-card { background: var(--surface); color: var(--ink); border-radius: 26px; padding: clamp(22px, 3.2vw, 38px); box-shadow: var(--shadow-lg); }
.form-title { font-size: 1.3rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .98rem; }
.field .opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfcfb; transition: border-color .15s, box-shadow .15s, background-color .15s; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #8b93a0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc9be; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px rgba(207, 139, 90, .25); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff8f7; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, .15); }
.field input[type="tel"]:not(:placeholder-shown) { text-align: start; }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer; text-overflow: ellipsis; }
.select-wrap .icon { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field-error { color: var(--danger); font-size: .9rem; min-height: 0; margin-top: 6px; font-weight: 500; }
.field-error:empty { display: none; }
.field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field-foot .field-error { flex: 1; }
.counter { margin-inline-start: auto; font-size: .82rem; color: var(--muted); margin-top: 6px; font-family: var(--ff-fr); }
.counter.is-over { color: var(--danger); font-weight: 700; }
.form-error { margin: 0 0 14px; padding: 12px 14px; background: #fdeceb; border-radius: 10px; }
.privacy { margin-top: 14px; text-align: center; color: var(--muted); font-size: .88rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn .btn-label { display: inline-block; }
.is-loading .btn-label::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-inline-start: .6em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 28px 8px; }
.form-success[hidden], #booking-form[hidden] { display: none; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--copper-tint); color: var(--copper-text); }
.success-icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin-bottom: 22px; max-width: 32em; margin-inline: auto; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-list { display: grid; gap: 16px; align-content: start; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ci { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--copper); display: grid; place-items: center; flex: none; }
.ci-label { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.ci-value { display: block; font-weight: 700; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
a.ci-value:hover { color: var(--copper-text); }
html[dir="rtl"] .ci-value[dir="ltr"] { text-align: right; }
.inline-link { display: inline-block; margin-top: 4px; color: var(--copper-text); font-weight: 700; font-size: .95rem; }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.hours-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hours-head h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.hours-head .icon { color: var(--copper-text); }
.status { font-size: .85rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--muted); }
.status.is-open { background: var(--ok-bg); color: var(--ok); }
.status[hidden] { display: none; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; }
.hours li + li { border-top: 1px dashed var(--line); }
.hours li.is-today { background: var(--copper-tint); font-weight: 700; border-top-color: transparent; }
.hours li.is-today + li { border-top-color: transparent; }
.h-val { font-family: var(--ff-fr); font-weight: 500; }
.hours li:not([data-from]) .h-val { color: var(--muted); font-family: inherit; }
.social-block { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.social-block p { font-weight: 700; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--copper); color: var(--navy); transform: translateY(-3px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 36px; align-items: start; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 56px; height: auto; flex: none; }
.footer-name { font-family: var(--ff-fr); font-weight: 700; letter-spacing: .2em; font-size: 1.15rem; color: #fff; }
.footer-name span { color: var(--copper); font-weight: 500; letter-spacing: .4em; font-size: .8em; }
.footer-text { margin-top: 8px; font-size: .95rem; max-width: 30em; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 28px; justify-content: start; }
.footer-links a { text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--copper); }
.socials-light a { background: rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
.to-top { text-decoration: none; color: var(--copper); font-weight: 700; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* Barre mobile (appel + devis) */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(11, 21, 33, .96); backdrop-filter: blur(8px); box-shadow: 0 -8px 24px rgba(11, 21, 33, .25);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none; }
  .mb-call { flex: 0 0 auto; padding-inline: 20px; border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
  .mb-quote { flex: 1; background: var(--copper); color: var(--navy); }
  body { padding-bottom: 72px; }
}

/* Révélation au scroll (uniquement si JS actif) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Pages annexes */
.notfound { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; }
.notfound h1 { font-size: 2rem; }
.notfound p { color: var(--muted); margin-bottom: 8px; }
.admin { padding-block: 40px; }
.admin h1 small { color: var(--muted); font-weight: 400; }
.table-wrap { overflow-x: auto; margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.admin table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin th, .admin td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.admin th { background: var(--tint); white-space: nowrap; }
