/* ---------- Polices (hébergées localement) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Amiri"; font-weight: 700; font-display: swap; src: url("/fonts/amiri-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("/fonts/tajawal-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("/fonts/tajawal-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("/fonts/tajawal-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

/* ---------- Variables ---------- */
:root {
  --navy: #0f2a43;
  --navy-deep: #0a1e31;
  --gold: #b8935a;
  --gold-light: #d3b483;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --ink: #1b2733;
  --muted: #566272;
  --line: #e7dfd2;
  --font-title: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(15, 42, 67, 0.08);
  --header-h: 72px;
}

html[lang="ar"] {
  --font-title: "Amiri", "Traditional Arabic", "Times New Roman", serif;
  --font-body: "Tajawal", "Source Sans 3", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 1.125rem; line-height: 1.85; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--font-title); font-weight: 600; line-height: 1.15; color: var(--navy); text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.45; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
html[lang="ar"] h3 { font-size: 1.3rem; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 0.95rem; font-weight: 700; }
.eyebrow--light { color: var(--gold-light); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 6px 16px; font-size: 0.95rem; }

/* ---------- En-tête ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
}
.brand__mark svg { width: 28px; height: 28px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name { font-family: var(--font-title); font-size: 1.45rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
html[lang="ar"] .brand__name { font-weight: 700; font-size: 1.35rem; line-height: 1.3; }
.brand__role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
html[lang="ar"] .brand__role { letter-spacing: 0; font-size: 0.85rem; }

.nav { display: flex; gap: 28px; }
.nav a { position: relative; padding: 6px 0; font-size: 0.98rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.2s ease; }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.lang:hover { border-color: var(--gold); }
.lang[lang="ar"] { font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif; }
.lang[lang="fr"] { font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif; }

/* ---------- Bandeau d'accueil ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(78vh, 680px);
  padding-block: 96px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 30, 49, 0.94) 0%, rgba(10, 30, 49, 0.8) 48%, rgba(10, 30, 49, 0.45) 100%),
    url("/images/hero.jpg") center / cover no-repeat,
    var(--navy-deep);
}
html[dir="rtl"] .hero {
  background:
    linear-gradient(270deg, rgba(10, 30, 49, 0.94) 0%, rgba(10, 30, 49, 0.8) 48%, rgba(10, 30, 49, 0.45) 100%),
    url("/images/hero.jpg") center / cover no-repeat,
    var(--navy-deep);
}
.hero__inner { max-width: 1140px; }
.hero h1 { max-width: 17em; font-size: clamp(2.3rem, 5.2vw, 4rem); color: #fff; }
html[lang="ar"] .hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.hero__lead { max-width: 36em; margin: 22px 0 34px; font-size: 1.2rem; color: rgba(255, 255, 255, 0.86); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Valeurs ---------- */
.values { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value { display: flex; gap: 16px; padding: 30px 28px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.value:first-child { border-inline-start: 0; padding-inline-start: 0; }
.value__icon { color: var(--gold-light); font-size: 1.5rem; line-height: 1; padding-top: 4px; }
.value__title { margin-bottom: 4px; font-size: 1.35rem; color: #fff; }
.value p { margin: 0; font-size: 0.98rem; line-height: 1.5; }
html[lang="ar"] .value p { line-height: 1.7; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section--tint { background: var(--cream); }
.section--dark { background: var(--navy-deep); color: rgba(255, 255, 255, 0.84); }
.section--dark h2 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: 48px; }
.section__lead { margin: 14px 0 0; font-size: 1.12rem; color: var(--muted); }

/* ---------- L'étude ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media::before {
  content: "";
  position: absolute;
  inset-block: 18px -18px;
  inset-inline: -18px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
.about__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__body h2 { margin-bottom: 20px; }
.about__body p { color: var(--muted); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; font-weight: 600; color: var(--navy); }
.checks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: 0.38em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
html[lang="ar"] .checks li { font-weight: 500; }
html[lang="ar"] .checks li::before { top: 0.55em; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  font-size: 1.35rem;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
html[lang="ar"] .card p { font-size: 1.02rem; line-height: 1.75; }

/* ---------- Photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); }
.gallery img { width: 100%; height: clamp(180px, 26vw, 340px); object-fit: cover; }

/* ---------- Déroulement ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step__num {
  display: block;
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--gold);
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: stretch; }
.contact__lead { margin: 16px 0 32px; max-width: 32em; }
.infos { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 22px; }
.infos li { display: flex; align-items: flex-start; gap: 16px; }
.infos__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(211, 180, 131, 0.45);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.1rem;
}
.infos__label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
html[lang="ar"] .infos__label { letter-spacing: 0; font-size: 0.92rem; }
.infos__value { display: inline-block; font-size: 1.2rem; font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
a.infos__value:hover { color: var(--gold-light); }
.contact__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.contact__map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Pied de page ---------- */
.footer { background: #07131f; color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-block: 22px; }
.footer p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }

/* ---------- Tablette ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .container { width: min(1140px, 100% - 32px); }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 24px; height: 24px; }
  .brand__name { font-size: 1.2rem; }
  html[lang="ar"] .brand__name { font-size: 1.15rem; }
  .brand__role { font-size: 0.64rem; letter-spacing: 0.1em; }
  .header__actions { gap: 8px; }
  .lang { padding: 6px 10px; }
  .btn--sm { padding: 6px 12px; }
  .btn--sm .btn__label { display: none; }

  .hero { min-height: 0; padding-block: 72px; background-position: 60% center; }
  .hero__lead { font-size: 1.08rem; }
  .hero__cta .btn { flex: 1 1 auto; padding-inline: 18px; white-space: nowrap; }

  .values__grid { grid-template-columns: 1fr; }
  .value { padding: 20px 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .value:first-child { border-top: 0; }

  .about, .contact { grid-template-columns: 1fr; }
  .about__media { margin-inline-start: 18px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .gallery img { height: 150px; }
  .section__head { margin-bottom: 32px; }
  .contact__map, .contact__map iframe { min-height: 300px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
