/* ==========================================================================
   Faseeh — Base globale (reset léger + composants partagés)
   Dépend de : tokens.css, fonts.css
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
.fsh-img { flex: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; }
p { margin: 0; }

/* ---- Conteneur ---- */
.fsh-container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.fsh-container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }

/* ---- Eyebrow / badge pill ---- */
.fsh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-line-2);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  line-height: 1;
  white-space: nowrap;
}
.fsh-eyebrow--dark {
  background: var(--c-dark-card);
  border-color: var(--c-dark-border);
  color: var(--c-dark-100);
}
.fsh-eyebrow svg { width: 14px; height: 14px; }

/* ---- Boutons ---- */
.fsh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  min-height: 40px;          /* même hauteur pour toutes les CTA, avec ou sans icône */
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 0.9;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.fsh-btn:hover { transform: translateY(-1px); }
.fsh-btn:active { transform: translateY(0); }
.fsh-btn svg { width: 20px; height: 20px; }

.fsh-btn--dark  { background: var(--c-ink); color: #fff; }
.fsh-btn--dark:hover { background: #000; }
.fsh-btn--gold  { background: var(--c-gold); color: #fff; border-color: var(--c-gold-border); }
.fsh-btn--gold:hover { background: #b3822f; }
.fsh-btn--white { background: #fff; color: var(--c-ink); }
.fsh-btn--white:hover { background: #f2f2f2; }

/* Bouton compact "Get started" (nav) */
.fsh-btn--nav {
  min-width: 100px;
  padding: 9px 12px;
  min-height: 0;             /* le bouton compact du header garde sa hauteur */
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 0.9;
}

/* ---- Texte arabe (versets) ---- */
.fsh-arabic {
  font-family: var(--font-arabic);
  font-weight: 700;
  direction: rtl;
  unicode-bidi: plaintext;
}

/* ---- Accessibilité ---- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--c-ink); color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---- Rythme vertical entre sections (blocs) ---- */
.fsh-section { position: relative; }

/* ---- Réglages éditeur : neutralise la marge par défaut des blocs ---- */
.fsh-section > * { box-sizing: border-box; }

/* ==========================================================================
   Composants partagés : cartes claires + visuel « radar »
   ========================================================================== */
.fsh-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 24px 29px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
}
.fsh-card__text { display: flex; flex-direction: column; gap: 12px; }
.fsh-card__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-card-title);
  line-height: 1.335;
  color: var(--c-ink);
}
.fsh-card__body {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-muted);
}

/* Visuel sombre avec anneaux concentriques + icône dorée */
.fsh-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 341.33 / 290.84;
  background: var(--c-dark);
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  isolation: isolate;
}
/* Anneaux concentriques : position/taille/opacité fournies en style inline (iso maquette). */
.fsh-radar__ring {
  position: absolute;
  border-style: solid;
  border-radius: 14px;
}
.fsh-radar--circle .fsh-radar__ring { border-radius: 50%; }
.fsh-radar__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: var(--c-gold-border);
  z-index: 1;
}
.fsh-radar__icon svg { width: 30px; height: 30px; }
