﻿/* ============================================================
   Imran Zarif | Interprète pachto, dari, farsi
   Feuille de style principale
   ============================================================ */

:root {
  --ink: #1A2230;
  --paper: #FAF9F6;
  --white: #FFFFFF;
  --lapis: #2F50B0;
  --lapis-d: #26418F;
  --lapis-soft: #5E79D6;
  --text: #20242E;
  --muted: #6E7480;
  --line: #E6E5E0;

  --radius: 3px;
  --container: 1140px;
  --header-h: 74px;

  --font-title: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow: 0 1px 2px rgba(26, 34, 48, .06), 0 8px 24px rgba(26, 34, 48, .06);
}

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-title);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .4em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

main > section {
  padding-block: clamp(56px, 8vw, 104px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }

/* Eyebrows / mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lapis-soft);
  margin: 0 0 1rem;
}
.eyebrow-dark { color: var(--lapis); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-lapis { background: var(--lapis); color: #fff; }
.btn-lapis:hover { background: var(--lapis-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; }

/* Header (sticky) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}
.brand-name { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.brand-role { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: 26px; }
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-size: .96rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--lapis);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .96rem;
  white-space: nowrap;
}
.phone-link .ico { width: 18px; height: 18px; fill: var(--lapis); }
.phone-cta .ico { width: 18px; height: 18px; fill: currentColor; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-bar { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1. Héro */
.hero { background: var(--ink); color: #fff; }
.hero-inner { max-width: 880px; }
.hero .eyebrow { color: var(--lapis-soft); }
.hero-title { color: #fff; font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 700; margin-bottom: .25em; }
.hero-subtitle {
  display: block;
  font-family: var(--font-title);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: rgba(255,255,255,.82);
  margin-top: .35em;
  min-height: 1.35em;
}
.hero-rule { width: 64px; height: 4px; background: var(--lapis); border-radius: 2px; margin: 28px 0; }
.hero-langs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-langs .lang-arrow { color: var(--lapis-soft); font-size: 1.3em; }
.hero-langs .lang-fr { color: rgba(255,255,255,.86); }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 58ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.stream-text { display: inline; padding-right: .08em; }
.stream-text.is-streaming::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .9em;
  margin-left: .08em;
  background: currentColor;
  transform: translateY(.1em);
  animation: caretBlink .75s steps(1) infinite;
}
.stream-text.is-complete::after { content: ""; }

.hero .eyebrow,
.hero-title,
.hero-langs,
.hero-lead,
.hero-cta {
  animation: fadeRise .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero .eyebrow { animation-delay: .05s; }
.hero-title { animation-delay: .16s; }
.hero-rule { transform-origin: left center; animation: ruleGrow .72s cubic-bezier(.2, .7, .2, 1) .36s both; }
.hero-langs { animation-delay: .52s; }
.hero-lead { animation-delay: .66s; }
.hero-cta { animation-delay: .78s; }
.hero-langs .lang-arrow { animation: arrowPulse 2.6s ease-in-out 1.2s infinite; }

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleGrow {
  from { opacity: 0; transform: scaleX(.25); }
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes caretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@keyframes arrowPulse {
  0%, 100% { opacity: .72; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.js .motion-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease var(--motion-delay, 0ms), transform .55s ease var(--motion-delay, 0ms);
}
.js .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Bandeau crédibilité */
.trust { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust { padding-block: clamp(32px, 4vw, 48px); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; border-left: 2px solid var(--lapis); }
.trust-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-value { font-family: var(--font-title); font-size: 1.12rem; color: var(--ink); font-weight: 500; }

/* 3. Services */
.services { background: var(--white); }

.req-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px;
  background: rgba(47, 80, 176, .05);
  border: 1px solid rgba(47, 80, 176, .18);
  border-left: 6px solid var(--lapis);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 36px;
}
.req-title { color: var(--lapis-d); margin-bottom: .25em; font-size: 1.4rem; }
.req-text { max-width: 56ch; }
.req-text p { margin: 0; color: var(--text); }
.req-venues { display: flex; flex-wrap: wrap; gap: 10px; }
.req-venues li {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--white); color: var(--lapis-d);
  border: 1px solid rgba(47, 80, 176, .3);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.service-title { font-size: 1.35rem; }
.service-card > p { color: var(--muted); }
.service-list { margin-top: 16px; display: grid; gap: 10px; }
.service-list li { position: relative; padding-left: 22px; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px; background: var(--lapis); border-radius: 50%;
}

/* 4. Langues */
.langs { background: var(--paper); }
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lang-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lapis);
  border-radius: var(--radius);
  padding: 28px;
}
.lang-name { font-size: 1.5rem; margin-bottom: .15em; }
.lang-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.lang-note { color: var(--text); margin: 0; }
.lang-aside {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .96rem;
}

/* 5. À propos */
.about { background: var(--white); }
.about-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--text); }
.about-text p:first-child { font-size: 1.12rem; }
.principles { display: grid; gap: 12px; align-content: start; }
.principle {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .06em;
  color: var(--ink);
  padding: 12px 16px;
  background: var(--paper);
  border-left: 2px solid var(--lapis);
  border-radius: var(--radius);
}

/* 6. Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }

.form {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--lapis);
  box-shadow: 0 0 0 3px rgba(47, 80, 176, .14);
}
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

.contact-direct { display: grid; gap: 14px; align-content: start; min-width: 0; }
.direct-item {
  display: flex; flex-direction: column; gap: 4px;
  text-decoration: none;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.direct-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.direct-value { font-family: var(--font-title); font-size: 1.18rem; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
a.direct-item:hover { border-color: var(--lapis-soft); }
.direct-item.urgent { background: var(--lapis); border-color: var(--lapis); }
.direct-item.urgent .direct-label { color: rgba(255,255,255,.8); }
.direct-item.urgent .direct-value { color: #fff; }
a.direct-item.urgent:hover { background: var(--lapis-d); }

/* 7. FAQ */
.faq { background: var(--white); }
.faq-list { max-width: 860px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.5rem; line-height: 1;
  color: var(--lapis);
  flex: none;
  transition: transform .2s ease;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 0 24px; color: var(--text); max-width: 72ch; }
.faq-a p { margin: 0; }

/* 8. Pied de page */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px;
  padding-block: 56px 28px;
}
.footer-name { display: block; font-family: var(--font-title); font-size: 1.3rem; color: #fff; font-weight: 600; }
.footer-role { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lapis-soft); }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-contact a { text-decoration: none; color: rgba(255,255,255,.86); }
.footer-contact a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,.78); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.6); }

/* Accessibilité */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--lapis); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  z-index: 200; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--lapis-soft); outline-offset: 2px; border-radius: 2px; }

/* Responsive */
@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    margin: 0;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-list li { padding-inline: 24px; }
  .nav-link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child .nav-link { border-bottom: none; }
  .nav-link::after { display: none; }

  .header-actions .btn-lapis { display: none; }
  .phone-text { display: none; }

  .lang-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .req-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .form { padding: 22px; }
  .direct-item { padding: 16px 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .motion-reveal { opacity: 1 !important; transform: none !important; }
  .stream-text::after { display: none !important; }
}

/* Pages légales */
.legal { background: var(--white); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4em; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.2em; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.header-inner .back-home { margin-left: auto; text-decoration: none; font-weight: 500; color: var(--text); }
.header-inner .back-home:hover { color: var(--lapis); }

/* Pages langues */
.service-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.lang-name a { color: inherit; text-decoration: none; }
.lang-name a:hover { color: var(--lapis); }
.lang-more {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; color: var(--lapis); text-decoration: none;
}
.lang-more:hover { color: var(--lapis-d); }
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.eyebrow a:hover { border-bottom-color: currentColor; }
.cta-band { text-align: center; }
.cta-center { max-width: 640px; margin-inline: auto; }
.prose { max-width: 70ch; }
.prose p { color: var(--text); margin-bottom: 1rem; }

@media (max-width: 860px) {
  .service-grid.cols-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
