/* ==========================================================
   Alsace Irak — feuille de style principale
   ========================================================== */
:root {
  --teal: #1f6f6d;
  --teal-d: #134a4a;
  --teal-l: #e3efec;
  --terra: #c8643b;
  --terra-d: #a94f2b;
  --gold: #e8b04a;
  --cream: #fbf6ee;
  --sand: #f1e4cf;
  --ink: #1f2a30;
  --muted: #5b6770;
  --line: #e7dccb;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 42, 48, .08);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "Cairo", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--terra); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }

/* ---------- Language switching ---------- */
html:not([data-lang="en"]) .i[lang="en"],
html:not([data-lang="ar"]) .i[lang="ar"],
html[data-lang="en"] .i[lang="fr"],
html[data-lang="ar"] .i[lang="fr"] { display: none !important; }

html[data-lang="ar"] body,
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3, html[data-lang="ar"] h4,
html[data-lang="ar"] .btn, html[data-lang="ar"] input, html[data-lang="ar"] textarea, html[data-lang="ar"] select {
  font-family: var(--font-ar);
}
html[data-lang="ar"] body { line-height: 1.85; }
html[data-lang="ar"] h1 { letter-spacing: 0; line-height: 1.35; }
html[data-lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }

/* ---------- Layout ---------- */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tint { background: var(--white); }
.section--sand { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: .75em;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-d); color: #fff; }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--light { background: #fff; color: var(--teal-d); }
.btn--light:hover { background: var(--gold); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
[dir="rtl"] .link-arrow::after { content: "←"; }
.link-arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, .92); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
html[data-lang="ar"] .brand-name small { font-family: var(--font-ar); }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .98rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--teal-l); color: var(--teal-d); }
.main-nav a[aria-current="page"] { color: var(--terra); }
.main-nav a.nav-cta { background: var(--teal); color: #fff; margin-inline-start: 6px; }
.main-nav a.nav-cta:hover { background: var(--teal-d); }
.lang-switch { display: flex; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lang-switch button {
  border: 0; background: transparent; padding: 6px 10px; border-radius: 999px; font-weight: 700;
  font-size: .82rem; cursor: pointer; color: var(--muted); font-family: var(--font-body); line-height: 1.2;
}
.lang-switch button[lang="ar"] { font-family: var(--font-ar); }
.lang-switch button[aria-pressed="true"] { background: var(--terra); color: #fff; }
.nav-toggle {
  display: none; border: 0; background: var(--teal); color: #fff; width: 44px; height: 44px;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .lang-switch { margin-inline-start: auto; }
  .main-nav {
    position: absolute; inset-inline: 0; top: 100%; background: var(--cream);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; margin: 0;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 16px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 420px) {
  .brand-name small { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; }
  .lang-switch button { padding: 6px 8px; }
  .header-inner { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--terra); }
.hero .lead { max-width: 34em; margin-bottom: 1.6em; }
.hero-art { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--teal-d); color: #fff; padding: clamp(44px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: var(--terra); opacity: .25;
}
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d7ebe7; font-size: 1.15rem; max-width: 40em; margin: 0; position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--gold); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border: 1px solid var(--line);
}
.card-img { aspect-ratio: 10 / 7; background: var(--sand); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card { text-decoration: none; color: inherit; transition: transform .2s ease; }
a.card:hover { transform: translateY(-4px); color: inherit; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-body .link-arrow { margin-top: auto; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: var(--teal-l); color: var(--teal-d); margin-bottom: 12px; align-self: flex-start;
}
.tag--terra { background: #f8e2d6; color: var(--terra-d); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .9rem; color: var(--muted); margin: -4px 0 12px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; color: var(--terra); }

.icon-card { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.icon-card p { color: var(--muted); margin: 0; }
.icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teal-l); color: var(--teal); margin-bottom: 18px;
}
.icon svg { width: 28px; height: 28px; }
.icon--terra { background: #f8e2d6; color: var(--terra); }
.icon--gold { background: #fbefd4; color: #9a6a12; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 88px); }
.split--rev .split-img { order: 2; }
.split-img { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6f6d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split-img { order: 0; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--terra); color: #fff; font-weight: 800; margin-bottom: 14px; font-family: var(--font-body);
}
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--teal); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: var(--gold); opacity: .18; inset-inline-end: -60px; bottom: -120px;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #d7ebe7; margin: 0; font-size: 1.1rem; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Quote / note ---------- */
.note {
  background: #fff7e8; border-inline-start: 5px solid var(--gold); border-radius: 12px;
  padding: 18px 22px; margin: 1.6em 0; color: #5a4a2a;
}
.note strong { color: var(--ink); }

/* ---------- Article ---------- */
.article-head { padding: clamp(36px, 6vw, 64px) 0 24px; }
.article-head .meta { margin-top: 10px; }
.article-cover { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; background: var(--sand); }
.prose { font-size: 1.12rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .5em; }
.back-link { display: inline-flex; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.emergency { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 1em 0 1.6em; }
.emergency li { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: center; }
.emergency b { display: block; font-size: 1.8rem; color: var(--terra); font-family: var(--font-body); line-height: 1.1; }
.emergency span { font-size: .92rem; color: var(--muted); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 16px; background: var(--white); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form label { font-weight: 700; font-size: .95rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream);
  font: inherit; font-size: 1rem; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--teal); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.mail-box { display: flex; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; word-break: break-all; }
.mail-box a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-d); color: #cfe3df; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand span { font-family: var(--font-head); font-size: 1.4rem; color: #fff; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

.skip-link {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip-link:focus { clip-path: none; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.brand:hover { color: var(--ink); }
