:root {
  --bg: #0f172a;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --accent: #10b981;
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(0, 3, 10, 0.989); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .4px; color: var(--text); text-decoration: none; }
.logo-image { height: 88px; width: auto; display: block; }
.site-footer .logo-image { height: 24px; opacity: .95; }
.nav { display: flex; gap: 16px; }
.nav-link { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.06); }

.hero { padding: 96px 0 72px; background: radial-gradient(1200px 600px at 10% -20%, rgba(37,99,235,.25), transparent), radial-gradient(1000px 500px at 100% 0%, rgba(16,185,129,.2), transparent); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.hero-photo { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 16px; }
.hero-subtitle { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.12); }
.btn-primary { background: var(--gold); color: rgb(0, 0, 0); border-color: transparent; }
.btn-primary:hover {background: var(--primary); color: #fff; transform: translateY(-2px);box-shadow: 0 12px 20px rgba(37,99,235,.45);}
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,.06); }

.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)); }
.section-title { font-size: 28px; margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); }
.card-title { font-size: 20px; margin: 0; }
.card-text { color: var(--muted); margin: 0; }
.card-list { margin: 0; padding-left: 18px; color: var(--muted); }
.card-cta { align-self: start; margin-top: 8px; color: white; background: var(--primary); text-decoration: none; padding: 10px 14px; border-radius: 10px; }
.card-cta:hover { background: var(--primary-600); }

.trust { display: grid; grid-template-columns: 1.5fr .5fr; gap: 24px; align-items: center; }
.trust-copy p { color: var(--muted); max-width: 720px; }
.metrics { display: flex; gap: 16px; margin-top: 18px; }
.metric { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; display: grid; justify-items: center; }
.metric-number { color:#c8a96b ; font-weight: 700; font-size: 24px; }
.metric-label { color: var(--muted); font-size: 12px; }

.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(17,24,39,.7);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-block: 40px;
}
.footer-info { flex: 1 1 auto; min-width: 0; }
.footer-info h3 {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  line-height: 1.4;
}
.footer-contact {
  display: grid;
  gap: 8px;
  color: #c8a96b;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
}
.footer-contact a { color: inherit; text-decoration: none; width: fit-content; }
.footer-contact a:hover { color: #e1c58c; text-decoration: underline; }
.footer-links {
  flex: 0 0 auto;
  min-width: 150px;
  margin-inline-start: auto;
  display: grid;
  justify-items: end;
  gap: 18px;
  text-align: end;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 28px; padding-block: 32px; }
  .footer-links {
    width: 100%;
    min-width: 0;
    margin-inline-start: 0;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    justify-items: start;
    text-align: start;
  }
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info p { color: var(--muted); }
.info-block { display: grid; gap: 6px; color: var(--muted); }
.carte{display: grid; height:60%; gap:20px; border: solid 1px; border-radius: 20%; width: 100%; }
.contact-form form { background: var(--surface); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px; }
.form-field { display: grid; gap: 8px; margin-bottom: 14px; }
.form-field label { font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: var(--text); border-radius: 10px; padding: 12px 12px; outline: none; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.field-error { min-height: 18px; color: #fca5a5; font-size: 13px; }
.form-result { margin-top: 12px; font-weight: 600; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.person-card { background: var(--surface); border: 2px solid rgba(255,255,255,.08); border-radius: 14px; padding-top: 50px; display: grid; justify-items:center; gap: 10px; }
.avatar { width: 110px; height: 105px; border-radius: 35%; border: 2px solid rgba(255,255,255,.14); }
.person-name { font-weight: 700; font-size: 18px; }
.person-role { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #c8a96b ; padding: 6px 10px; border-radius: 999px; font-size: 15px; }
.bio { color: var(--muted); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 48px; }
  .cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Interactive legal expertise sections */
:root { --gold: #c8a96b; --gold-soft: rgba(200,169,107,.15); }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 32px; }
.section-heading > div { max-width: 650px; }
.section-heading .section-title { margin-bottom: 0; font-size: clamp(30px,4vw,44px); line-height: 1.12; }
.eyebrow, .domain-kicker { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 18px; font-weight: 780; margin-bottom: 12px; }
.section-intro { color: var(--muted); line-height: 1.9; max-width: 440px; margin: 0; font-size: large; }

.domains-section { position: relative; background: linear-gradient(180deg, #0f172a, #0b1120); }
.domain-carousel { position: relative; }
.carousel-viewport { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: #111827; }
.carousel-track { display: flex; transition: transform .72s cubic-bezier(.22,.75,.22,1); will-change: transform; }
.domain-slide { min-width: 100%; display: grid; grid-template-columns: minmax(280px,.82fr) minmax(0,1.18fr); min-height: 510px; }
.domain-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; isolation: isolate; }
.domain-visual::before, .domain-visual::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.domain-visual::before { width: 380px; height: 380px; inset: -80px auto auto -100px; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 0 70px rgba(255,255,255,.035),0 0 0 140px rgba(255,255,255,.025); }
.domain-visual::after { width: 180px; height: 180px; inset: auto -45px -45px auto; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.domain-visual span { font-size: 20px; letter-spacing: .2em; color: rgba(255,255,255,.72); }
.domain-visual strong { font-family: Georgia,serif; font-size: clamp(46px,7vw,82px); line-height: .9; font-weight: 400; letter-spacing: -.05em; }
.domain-visual--business { background: linear-gradient(145deg,#19365f,#2b6cb0); }
.domain-visual--family { background: linear-gradient(145deg,#694c59,#b27077); }
.domain-visual--criminal { background: linear-gradient(145deg,#27272a,#52525b); }
.domain-visual--work { background: linear-gradient(145deg,#254a50,#3f7b78); }
.domain-visual--property { background: linear-gradient(145deg,#54442f,#9a7248); }
.domain-visual--tax { background: linear-gradient(145deg,#30433c,#567762); }
.domain-visual--public { background: linear-gradient(145deg,#3b3b54,#65658e); }
.domain-visual--migration { background: linear-gradient(145deg,#23485c,#3f8193); }
.domain-visual--digital { background: linear-gradient(145deg,#26365c,#525da8); }
.domain-visual--idea { background: linear-gradient(145deg,#60462a,#aa7840); }
.domain-visual--health { background: linear-gradient(145deg,#2a4f4b,#4b8e82); }
.domain-visual--insurance { background: linear-gradient(145deg,#403557,#766495); }
.domain-visual--international { background: linear-gradient(145deg,#20405e,#3878a8); }
.domain-visual--environment { background: linear-gradient(145deg,#304b36,#5f8459); }
.domain-content { padding: clamp(32px,5vw,64px); display: flex; flex-direction: column; justify-content: center; }
.domain-content h3, .service-copy h3 { font-family: Georgia,serif; font-weight: 400; font-size: clamp(30px,4vw,48px); line-height: 1.08; margin: 0 0 18px; }
.domain-content > p, .service-copy > p { color: var(--muted); line-height: 1.75; font-size: 19px; margin: 0 0 24px; }
.domain-content h4 { margin: 0 0 10px; font-size: 17px; text-transform: uppercase; letter-spacing: .12em; }
.domain-content ul, .service-copy ul { margin: 0; padding-inline-start: 20px; color: #c8ccd3; line-height: 2; font-size: large; }
.carousel-controls { position: absolute; inset: auto 28px 26px auto; display: flex; align-items: center; gap: 14px; z-index: 2; }
.carousel-button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(15,23,42,.82); color: #fff; font-size: 20px; cursor: pointer; transition: .2s ease; }
.carousel-button:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.carousel-status { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.carousel-status [data-current-slide] { color: #fff; font-weight: 700; }
.status-line { width: 32px; height: 1px; background: rgba(255,255,255,.28); }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.carousel-dot { width: 24px; height: 4px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.18); cursor: pointer; transition: .3s ease; }
.carousel-dot.is-active { width: 44px; background: var(--gold); }

.service-showcase { background: #f6f3ed; color: #172033; }
.service-showcase .section-intro { color: #646a73; }
.service-stage { display: grid; grid-template-columns: 1fr 1fr; min-height: 630px; background: #fff; border: 1px solid #dedbd4; border-radius: 16px; overflow: hidden; }
.service-media { position: relative; min-height: 560px; background: #1a2435; overflow: hidden; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 45%,rgba(4,9,17,.66)); pointer-events: none; }
.service-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit:fill; opacity: 0; transform: scale(1.045); transition: opacity .8s ease, transform 1.2s ease; }
.service-image.is-active { opacity: 1; transform: scale(1); }
.service-index { position: absolute; inset: auto auto 28px 30px; z-index: 2; font-size: 14px; letter-spacing: .16em; color: white; }
.service-panel { position: relative; padding: clamp(32px,5vw,62px); padding-bottom: 118px; }
.service-copy { position: absolute; inset: clamp(32px,5vw,62px); bottom: 116px; opacity: 0; visibility: hidden; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.service-copy.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.service-copy > p { color: #646a73; }
.service-copy ul { color: #424955; }
.service-tabs { position: absolute; inset: auto clamp(24px,4vw,48px) 28px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #dedbd4; }
.service-tab { min-height: 68px; padding: 14px 6px 0; border: 0; border-top: 2px solid transparent; background: transparent; color: #747a83; font: inherit; font-size: 12px; cursor: pointer; text-align: start; }
.service-tab span { display: block; font-size: 10px; margin-bottom: 4px; }
.service-tab.is-active { color: #172033; border-top-color: var(--primary); font-weight: 700; }
.carousel-button:focus-visible, .carousel-dot:focus-visible, .service-tab:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }

@media (max-width: 820px) {
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .domain-slide, .service-stage { grid-template-columns: 1fr; }
  .domain-visual { min-height: 260px; }
  .domain-content { padding-bottom: 96px; }
  .carousel-controls { inset: auto 18px 18px auto; }
  .service-media { min-height: 340px; }
  .service-panel { min-height: 570px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .section { padding: 56px 0; }
  .domain-slide { min-height: auto; }
  .domain-visual { min-height: 220px; padding: 24px; }
  .domain-content { padding: 30px 24px 92px; }
  .domain-content > p, .service-copy > p { font-size: 16px; }
  .carousel-dots { display: none; }
  .service-media { min-height: 270px; }
  .service-panel { min-height: 620px; padding: 28px 22px 112px; }
  .service-copy { inset: 28px 22px 108px; }
  .service-tabs { inset-inline: 18px; bottom: 20px; }
  .service-tab { font-size: 11px; }
  .nav { gap: 2px; }
  .nav-link { padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track, .service-image, .service-copy { transition: none; }
}


/* Section Présentation — accepte un texte court ou long */
.presentation-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(200,169,107,.12), transparent 28%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  border-block: 1px solid rgba(255,255,255,.06);
}
.presentation-layout {
  display: grid;
  grid-template-columns: minmax(220px,.72fr) minmax(0,1.55fr);
  gap: clamp(40px,7vw,96px);
  align-items: start;
}
.presentation-heading { position: sticky; top: 120px; }
.presentation-heading .section-title {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(33px,5vw,50px);
  font-weight: 350;
  line-height: 1.05;
}
.presentation-line {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 24px;
  background: var(--gold);
}
.presentation-content {
  max-width: 760px;
  padding: clamp(28px,4vw,48px);
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  
}
.presentation-content p {
  margin: 0;
  color: #c8ccd3;
  font-size: clamp(17px,1.8vw,19px);
  line-height: 1.85;
  text-align: start;
  overflow-wrap:break-word;
  
  
}
.presentation-content p + p { margin-top: 1.25em; }
.presentation-content h3 {
  margin: 1.8em 0 .6em;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}
.presentation-content ul {
  margin: 1.25em 0 0;
  padding-inline-start: 1.3em;
  color: #c8ccd3;
  line-height: 1.75;
}

@media (max-width: 820px) {
  .presentation-layout { grid-template-columns: 1fr; gap: 28px; }
  .presentation-heading { position: static; }
}

@media (max-width: 560px) {
  .presentation-content { padding: 24px 20px; }
}

/* Navigation mobile */
@media (max-width: 640px) {
  .header-inner {
    height: auto;
    min-height: 88px;
    padding-block: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .logo { align-self: center; max-width: 100%; }
  .logo-image { height: 42px; max-width: 100%; }
  .nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 2px;
  }
  .nav-link {
    min-width: 0;
    padding: 8px 3px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
  }
}

/* Typographie des titres */
h1,
h2,
h3,
h4,
h5,
h6,
.hero-title,
.section-title,
.card-title,
.person-name {
  font-family: Georgia, serif;
}

/* Sélecteur de langue et adaptation bidirectionnelle */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: .75rem;
  padding: .3rem .45rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}
.language-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: .25rem .4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.language-button.is-active { background: var(--gold); color: #111827; }
.language-button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }

html[dir="rtl"] body { font-family: "Noto Sans Arabic", Inter, Arial, sans-serif; }

html[dir="rtl"] .hero-inner,
html[dir="rtl"] .presentation-layout,
html[dir="rtl"] .trust,
html[dir="rtl"] .footer-inner { direction: rtl; }
html[dir="rtl"] .nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .metrics,
html[dir="rtl"] .carousel-controls { flex-direction: row-reverse; }
html[dir="rtl"] .carousel-controls { inset: auto auto 26px 28px; }
html[dir="rtl"] .domain-slide { direction: rtl; }
html[dir="rtl"] .domain-content,
html[dir="rtl"] .service-copy,
html[dir="rtl"] .contact-info,
html[dir="rtl"] .contact-form,
html[dir="rtl"] .footer-info { text-align: start; }
html[dir="rtl"] .service-index { inset: auto 30px 28px auto; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"] { direction: ltr; text-align: right; }
html[dir="rtl"] .footer-links { margin-inline-start: 0; margin-inline-end: auto; justify-items: start; text-align: start; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .language-switcher { margin-inline-start: auto; }
  html[dir="rtl"] .language-switcher { margin-inline-start: 0; margin-inline-end: auto; }
}
@media (max-width: 560px) {
  .language-switcher { order: 2; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  html[dir="rtl"] .carousel-controls { inset: auto auto 18px 18px; }
}

/* Bouton d'appel flottant sous le header */
.floating-call {
  position: absolute; top: calc(100% + 14px); inset-inline-end: 24px; z-index: 9;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--gold); color: #111827; font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.floating-call:hover, .floating-call:focus-visible {
  background: var(--primary); color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,99,235,.45);
}
.floating-call:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
@media (max-width: 640px) {
  .floating-call { inset-inline-end: 12px; padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .floating-call { transition: none; } }

/* Fenêtre de confirmation du formulaire */
.form-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(0,3,10,.72); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s ease; }
.form-modal.is-open { opacity: 1; }
.form-modal__box { width: min(440px, 100%); text-align: center; background: var(--surface);
  border: 1px solid var(--gold); border-radius: 16px; padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); transform: translateY(14px) scale(.97); transition: transform .25s ease; }
.form-modal.is-open .form-modal__box { transform: none; }
.form-modal__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); }
.form-modal--error .form-modal__box { border-color: #ef4444; }
.form-modal--error .form-modal__icon { background: rgba(239,68,68,.14); color: #f87171; border-color: #ef4444; }
.form-modal__title { margin: 0 0 10px; font-size: 22px; color: var(--text); }
.form-modal__text { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.form-modal__close { min-width: 140px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .form-modal, .form-modal__box { transition: none; } }
