/* ===========================================================
   i.H.Y.Inspiration — site vitrine. Design CLAIR, épuré, style Apple.
   Blanc + gris #f5f5f7, typo SF/Inter, accent bleu Apple, pilules.
   Trilingue EN/FR/AR. RTL via [dir="rtl"] + propriétés logiques.
   =========================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;          /* gris clair Apple (bandeaux) */
  --card: #ffffff;
  --line: #d2d2d7;          /* filet Apple */
  --line-soft: #e8e8ed;
  --txt: #1d1d1f;           /* presque noir Apple */
  --muted: #6e6e73;         /* gris secondaire Apple */
  --accent: #0071e3;        /* bleu Apple */
  --accent-press: #0077ed;
  --radius: 18px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[lang="ar"] body, [dir="rtl"] body { font-family: 'Cairo', var(--font); letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: 'Cairo', var(--font); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
section { max-width: var(--maxw); margin: 0 auto; padding: 110px 24px; }

/* Header — barre translucide façon Apple, contenu centré sur --maxw */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 52px;
  padding-inline: max(22px, calc((100% - var(--maxw)) / 2));
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--txt); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .2px;
}
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-size: 15px; font-weight: 400; color: var(--txt); }
.nav a { opacity: .85; transition: .2s; }
.nav a:hover { opacity: 1; color: var(--accent); }
.lang-switch { display: flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: 980px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 6px 13px; border-radius: 980px; font: 500 13px var(--font); transition: .2s;
}
.lang-switch button.active { background: #fff; color: var(--txt); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Hero — blanc, centré, large */
.hero { text-align: center; padding-top: 92px; padding-bottom: 64px; position: relative; }
.hero-glow { display: none; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: clamp(17px, 2vw, 21px); letter-spacing: 0; margin-bottom: 6px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 80px); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--txt); margin: 6px auto 18px; max-width: 16ch;
}
.hero-about { color: var(--txt); font-size: clamp(19px, 2.4vw, 28px); font-weight: 400; line-height: 1.35; max-width: 46ch; margin: 0 auto; }
.hero-cta { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.hero-mission { display: none; }

/* Boutons */
.btn { font-weight: 500; transition: .2s; font-size: 17px; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 980px;
}
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { color: var(--accent); padding: 12px 4px; }
.btn-ghost::after { content: " ›"; }
.btn-ghost:hover { text-decoration: underline; }

/* Sections */
.section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -0.02em; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: clamp(17px, 2vw, 21px); }

/* Applications — bandeau gris pleine largeur, tuiles blanches */
.apps {
  max-width: none; width: 100%; margin: 0; background: var(--bg-2);
  padding: 110px max(24px, calc((100% - var(--maxw)) / 2));
}
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 50px; }
.app-card {
  position: relative; background: var(--card); border-radius: var(--radius);
  padding: 28px; transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.app-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #fff; flex: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--app-accent, var(--accent)) 35%, transparent);
}
.app-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.app-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip { font-size: 12px; padding: 5px 11px; border-radius: 980px; background: var(--bg-2); color: var(--muted); }
.chip.status {
  background: color-mix(in srgb, var(--app-accent, var(--accent)) 12%, #fff);
  color: color-mix(in srgb, var(--app-accent, var(--accent)) 78%, #000);
  font-weight: 500;
}
.app-tagline { font-weight: 600; font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.app-desc { color: var(--muted); font-size: 15px; line-height: 1.5; }
.app-features { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.app-features li { color: var(--muted); font-size: 14.5px; line-height: 1.45; padding-inline-start: 22px; position: relative; }
.app-features li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--app-accent, var(--accent)); font-weight: 700; font-size: 13px;
}

/* À propos */
.about { text-align: center; }
.about-text { color: var(--muted); max-width: 62ch; margin: 22px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }

/* Footer — bandeau gris clair, petit texte */
.site-footer {
  max-width: none; width: 100%; margin: 0; background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 44px max(24px, calc((100% - var(--maxw)) / 2));
  display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.footer-brand strong { display: block; font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--txt); text-decoration: underline; }
.copyright { width: 100%; text-align: center; color: var(--muted); margin-top: 8px; }

/* Pages légales (privacy.html) */
.legal h1 { color: var(--txt); }
.legal .back { color: var(--accent); }
.legal .back:hover { color: var(--accent-press); text-decoration: underline; }
.legal-body { color: var(--muted); }

@media (max-width: 720px) {
  .nav { display: none; }
  section, .apps, .site-footer { padding-top: 64px; padding-bottom: 64px; }
  .hero { padding-top: 64px; }
}
