/* ============================================================
   Fatima Ouissaden — portfolio
   One token layer, mobile-first, logical properties throughout.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --paper: #faf8fb;
  --field: #f1eff4;
  --ink: #1a181c;
  --ink-2: #4c4750;
  --ink-3: #6e6a73;
  --line: rgba(26, 24, 28, 0.12);

  --red: #e31b23;
  --pink: #d10068;
  --purple: #7b2cbf;
  --pink-soft: #fbe9f1;
  --purple-soft: #f0e9fa;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --sh-card: 0 30px 70px -32px rgba(26, 24, 28, 0.32), 0 2px 8px rgba(26, 24, 28, 0.05);
  --sh-pop: 0 18px 40px -20px rgba(26, 24, 28, 0.3);

  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.16s;
  --t: 0.26s;

  --gutter: clamp(1.125rem, 4.2vw, 2.5rem);
  --wrap: 1220px;
  --header-h: 68px;
  --sec: clamp(4.25rem, 9vw, 8.5rem);

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lh-body: 1.62;

  --fs-h1: clamp(2.25rem, 6.1vw, 4.5rem);
  --fs-h2: clamp(1.8rem, 4.3vw, 3rem);
  --fs-h3: clamp(1.2rem, 2.3vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
}

:root:lang(ar) {
  --font-display: "Cairo", system-ui, sans-serif;
  --font-text: "Cairo", system-ui, sans-serif;
  --lh-body: 1.8;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 {
  letter-spacing: 0;
  line-height: 1.32;
  font-weight: 700;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--pink); color: #fff; }

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

.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: #fff; }

.section-head { display: grid; gap: 1rem; max-width: 62ch; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--ink-2); font-size: var(--fs-lead); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-start { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split--wide-end { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split--top { align-items: start; }
}

.grid-auto {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.grid-auto--wide { grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); }

.stack { display: grid; gap: 1.1rem; }
.stack--sm { gap: 0.65rem; }
.stack--lg { gap: 1.8rem; }

/* ---------- Type helpers ---------- */
.lead { font-size: var(--fs-lead); color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.1vw, 2.25rem);
  line-height: 1.25;
  max-width: 26ch;
}
:lang(ar) .statement { line-height: 1.45; }
.prose p + p { margin-block-start: 1rem; }
.prose { max-width: 68ch; color: var(--ink-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease),
    color var(--t) var(--ease), opacity var(--t) var(--ease);
}
.btn:hover { background: var(--pink); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn--primary { background: var(--pink); }
.btn--primary:hover { background: var(--purple); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { background: var(--field); color: var(--ink); }

.btn--sm { min-height: 44px; padding: 0.6rem 1.05rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn__spinner {
  width: 15px;
  height: 15px;
  flex: none;
  border: 2px solid currentColor;
  border-block-start-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-block-end: 2px solid var(--pink);
  padding-block-end: 2px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.link-arrow:hover { color: var(--pink); border-color: var(--purple); }
.link-arrow svg { flex: none; }

.icon-btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn:active { transform: scale(0.96); }

.icon { width: 20px; height: 20px; stroke-width: 1.7; }
.icon--sm { width: 17px; height: 17px; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -14px;
  height: 14px;
  background: linear-gradient(to bottom, rgba(26, 24, 28, 0.07), rgba(26, 24, 28, 0));
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.site-header[data-scrolled="true"]::after { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  text-decoration: none;
  margin-inline-end: auto;
}
.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand__text { display: grid; min-width: 0; }
.brand__name { font-size: 0.9rem; font-weight: 700; line-height: 1.2; }
.brand__role { font-size: 0.72rem; color: var(--ink-3); line-height: 1.2; }

.nav { display: none; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--field);
  border-radius: var(--r-pill);
}
.lang__btn {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  min-height: 40px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.lang__btn:hover { color: var(--ink); }
.lang__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(26, 24, 28, 0.16);
}

.burger {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  gap: 0;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  cursor: pointer;
}
.burger__bars { display: grid; gap: 4px; width: 18px; }
.burger__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed;
  inset-block: var(--header-h) 0;
  inset-inline: 0;
  z-index: 55;
  background: var(--white);
  padding: 1.25rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.menu[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
  min-height: 54px;
  font-size: 1.12rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.menu__link[aria-current="page"] { color: var(--pink); }
.menu__foot { display: grid; gap: 1rem; margin-block-start: 1.25rem; }
.menu__langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.menu__langs .lang__btn {
  background: var(--field);
  min-height: 44px;
  padding-inline: 1rem;
  font-size: var(--fs-sm);
}
.menu__langs .lang__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

@media (min-width: 1080px) {
  .site-header__inner { gap: 1.5rem; }
  .brand { margin-inline-end: 0.5rem; }
  .brand__role { display: block; }
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1.1vw, 1rem);
    margin-inline-start: auto;
    flex-wrap: wrap;
  }
  .nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.55rem;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: color var(--t) var(--ease);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    inset-block-end: 2px;
    inset-inline-start: 50%;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--pink);
    transform: translateX(-50%) scaleX(0);
    transition: transform var(--t) var(--ease);
  }
  [dir="rtl"] .nav__link::after { transform: translateX(50%) scaleX(0); }
  .nav__link:hover { color: var(--ink); }
  .nav__link:hover::after,
  .nav__link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
  [dir="rtl"] .nav__link:hover::after,
  [dir="rtl"] .nav__link[aria-current="page"]::after { transform: translateX(50%) scaleX(1); }
  .nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .site-header__actions { display: flex; align-items: center; gap: 0.7rem; }
  .burger { display: none; }
  .menu { display: none; }
}

.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.site-header__actions .lang { display: none; }
@media (min-width: 1080px) {
  .site-header__actions .lang { display: inline-flex; }
  .site-header__actions .icon-btn--mail { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero__glow {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  width: 100%;
  max-width: 100%;
  height: min(720px, 130vw);
  z-index: -1;
  overflow: clip;
  pointer-events: none;
}
.hero__glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__glow span:nth-child(1) {
  width: 46%; aspect-ratio: 1; inset-block-start: 4%; inset-inline-end: 2%;
  background: radial-gradient(circle, var(--pink), transparent 68%);
}
.hero__glow span:nth-child(2) {
  width: 42%; aspect-ratio: 1; inset-block-start: 22%; inset-inline-start: 4%;
  background: radial-gradient(circle, var(--purple), transparent 68%);
  opacity: 0.38;
}
.hero__glow span:nth-child(3) {
  width: 30%; aspect-ratio: 1; inset-block-start: 52%; inset-inline-end: 24%;
  background: radial-gradient(circle, var(--red), transparent 70%);
  opacity: 0.3;
}

.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.25rem); align-items: center; }
.hero__col { display: grid; gap: 1.35rem; align-content: center; }
.hero__title { font-size: var(--fs-h1); }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; }
.hero__socials { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hero__figure {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-block-start: 0.35rem;
}
.hero__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero__figure figcaption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 2.5rem 1rem 0.85rem;
  color: #fff;
  font-size: var(--fs-xs);
  background: linear-gradient(to top, rgba(20, 18, 22, 0.72), rgba(20, 18, 22, 0));
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2.5rem, 5vw, 4.5rem); }
}

/* ---------- Device frame + contact card (the reference) ---------- */
.device {
  width: min(420px, 100%);
  margin-inline: auto;
  border-radius: 34px;
  background: var(--white);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: #0e0d10;
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.device__bar-left, .device__bar-right { display: flex; align-items: center; gap: 0.4rem; }
.device__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffd9e6;
  font-weight: 600;
}
.device__live .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.device__screen { background: var(--field); padding-block-end: 0.9rem; }
.device__close-row { display: flex; justify-content: flex-end; padding: 0.45rem 0.6rem 0.15rem; }
.device__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.device__close:hover { background: rgba(26, 24, 28, 0.07); color: var(--ink); }

.ccard {
  margin-inline: 0.75rem;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1rem 0.95rem;
  box-shadow: 0 12px 26px -20px rgba(26, 24, 28, 0.4);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.device[data-collapsed="true"] .ccard { opacity: 0.55; }
.ccard__row { display: flex; align-items: center; gap: 0.85rem; }
.ccard__avatar { position: relative; width: 72px; height: 72px; flex: none; }
.ccard__avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 55%;
}
.ccard__edit {
  position: absolute;
  inset-block-end: -3px;
  inset-inline-end: -3px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2a2730;
  color: #fff;
  border: 2px solid var(--white);
}
.ccard__id { min-width: 0; flex: 1; display: grid; gap: 0.1rem; }
.ccard__name { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.ccard__mail { font-size: 0.92rem; color: var(--ink-3); overflow-wrap: anywhere; }
.ccard__toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--field);
  color: #3a3740;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.ccard__toggle:hover { background: #e4e1e9; color: var(--ink); }
.ccard__toggle svg { transition: transform var(--t) var(--ease); }
.ccard__toggle[aria-expanded="false"] svg { transform: rotate(180deg); }

.ccard__panel {
  overflow: hidden;
  transition: height 0.46s var(--ease), opacity 0.3s var(--ease);
}
.ccard__panel-inner { padding-block-start: 0.85rem; display: grid; gap: 0.1rem; }
.ccard__fact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding-block: 0.4rem;
}
.ccard__fact svg { flex: none; color: var(--purple); }
.ccard__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block-start: 0.7rem; }

/* ---------- Scroll story ---------- */
.story { position: relative; }
.chapter {
  position: relative;
  padding-block: var(--sec);
  display: grid;
  align-content: center;
  gap: 1.5rem;
  background: var(--paper);
}
.chapter--white { background: var(--white); }
.chapter__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.chapter__body { display: grid; gap: 1rem; align-content: center; }
.chapter h2 { font-size: var(--fs-h2); }
.chapter p { color: var(--ink-2); max-width: 52ch; }

@media (min-width: 1024px) {
  .chapter__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .chapter__inner--flip > .chapter__body { order: 2; }
}

/* Story: pinned on desktop when motion is allowed */
@media (min-width: 1024px) {
  .story[data-pinned="true"] .story__stage { height: 320vh; }
  .story[data-pinned="true"] .chapter {
    position: sticky;
    top: var(--header-h);
    min-height: calc(100svh - var(--header-h));
    padding-block: clamp(2rem, 4vw, 3.5rem);
  }
  .story[data-pinned="true"] .chapter__inner { min-height: calc(100svh - var(--header-h) - 4rem); }
}

/* Route map (chapter 1) */
.map { width: 100%; max-width: 620px; margin-inline: auto; }
.map__route {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 0.2s linear;
}
.map__node circle { fill: var(--white); stroke: var(--purple); stroke-width: 3; }
.map__node--start circle { fill: var(--pink); stroke: var(--white); stroke-width: 3; }
.map__node text { font-family: var(--font-text); font-size: 13px; font-weight: 600; fill: var(--ink); }
.map__node .map__sub { font-size: 11px; font-weight: 500; fill: var(--ink-3); }
.map__grid { stroke: rgba(26, 24, 28, 0.09); stroke-width: 1; }

/* Editor mock (chapter 2 + skills) */
.editor {
  background: #16141a;
  border-radius: var(--r-md);
  padding: 0.75rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: var(--sh-pop);
}
.editor__top { display: flex; align-items: center; gap: 0.5rem; padding: 0.1rem 0.25rem 0.35rem; }
.editor__dot { width: 9px; height: 9px; border-radius: 50%; background: #3d3944; }
.editor__title {
  margin-inline-start: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  color: #b9b3c2;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}
:root:lang(ar) .editor__title { letter-spacing: 0; }
.editor__name { color: #f2eff5; font-weight: 600; }
.editor__desc { color: #b9b3c2; }
.editor__preview {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #0d0c10;
}
.editor__preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.editor__badge {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  background: rgba(14, 13, 16, 0.75);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-pill);
}
.editor__tracks { display: grid; gap: 0.4rem; }
.editor__track {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.45rem;
  align-items: center;
}
.editor__label { color: #8d8798; font-size: 0.64rem; font-weight: 600; text-transform: none; }
.editor__lane {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background: #221f27;
  overflow: hidden;
}
.editor__clip {
  position: absolute;
  inset-block: 3px;
  border-radius: 5px;
  opacity: 0.95;
}
.editor__clip--pink { background: linear-gradient(90deg, var(--pink), #e0447f); }
.editor__clip--purple { background: linear-gradient(90deg, var(--purple), #9a56d6); }
.editor__clip--red { background: linear-gradient(90deg, var(--red), #f0555c); }
.editor__wave { position: absolute; inset: 0; opacity: 0.5; }
.editor__playhead {
  position: absolute;
  inset-block: -2px;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}
.editor__playhead::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: 50%;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--white);
  transform: translateX(-50%);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  align-content: start;
  transition: transform var(--t) var(--ease);
}
.card__media { position: relative; overflow: hidden; }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: 0.45rem; }
.card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.card__meta { font-size: var(--fs-xs); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; }
.card__text { font-size: var(--fs-sm); color: var(--ink-2); }
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--pink);
}
.card--flat { background: var(--field); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); }

/* ---------- Figures ---------- */
.figure { border-radius: var(--r-md); overflow: hidden; background: var(--field); }
.figure img { width: 100%; object-fit: cover; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--square img { aspect-ratio: 1 / 1; }
.figure--wide img { aspect-ratio: 16 / 10; }
.figure figcaption { padding: 0.7rem 0.9rem; font-size: var(--fs-xs); color: var(--ink-3); background: var(--white); }

.figures-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- Facts / lists ---------- */
.fact-list { display: grid; gap: 0; }
.fact {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 0.9rem;
  min-height: 56px;
}
.fact + .fact { box-shadow: inset 0 1px 0 var(--line); }
.fact svg { flex: none; color: var(--purple); margin-block-start: 3px; }
.fact__label { font-size: var(--fs-xs); color: var(--ink-3); }
.fact__value { font-size: var(--fs-body); font-weight: 500; }

.tick-list { display: grid; gap: 0.7rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--ink-2); }
.tick-list svg { flex: none; color: var(--pink); margin-block-start: 4px; }

/* ---------- Timeline (education) ---------- */
.timeline { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.tl-item { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .timeline { gap: 0; }
  .tl-item { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 2.25rem; }
  .tl-item + .tl-item { box-shadow: inset 0 1px 0 var(--line); }
  .tl-item__aside { display: grid; gap: 0.6rem; align-content: start; }
}
.tl-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: start;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #fff;
  background: var(--purple);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.75rem;
}
.tl-item:nth-child(2) .tl-item__badge { background: var(--pink); }
.tl-item:nth-child(3) .tl-item__badge { background: var(--red); }
.tl-item h3 { font-size: var(--fs-h3); }
.tl-item__body { display: grid; gap: 0.7rem; }
.tl-item__logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
}
.tl-item__logo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- Skills ---------- */
.tool-group { display: grid; gap: 1.1rem; }
.tool {
  display: grid;
  gap: 0.35rem;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.tool:hover { transform: translateY(-2px); }
.tool[aria-current="true"] { background: var(--ink); color: #fff; }
.tool[aria-current="true"] .tool__use { color: #cfc9d6; }
.tool__top { display: flex; align-items: center; gap: 0.65rem; }
.tool__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: var(--purple);
}
.tool:nth-child(2n) .tool__mark { background: var(--pink); }
.tool:nth-child(3n) .tool__mark { background: var(--red); }
.tool[aria-current="true"] .tool__mark { background: #fff; color: var(--ink); }
.tool__name { font-weight: 700; font-size: var(--fs-body); }
.tool__use { font-size: var(--fs-sm); color: var(--ink-2); }
button.tool {
  border: 0;
  text-align: start;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
}

.suite { display: grid; gap: 1rem; }
.suite__scrub { display: flex; align-items: center; gap: 0.9rem; }
.suite__scrub input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--pink), var(--purple));
  cursor: pointer;
}
.suite__scrub input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  cursor: grab;
}
.suite__scrub input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--ink);
  cursor: grab;
}
.suite__time { font-size: var(--fs-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 4.5rem; }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.steps li { display: grid; gap: 0.5rem; padding-inline-start: 3.1rem; position: relative; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink);
  font-weight: 700;
  font-size: 0.9rem;
}
.steps h3 { font-size: 1.08rem; font-family: var(--font-text); font-weight: 700; }
.steps p { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- Chips / filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  border: 0;
  background: var(--white);
  color: var(--ink-2);
  border-radius: var(--r-pill);
  padding: 0.6rem 1.05rem;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { background: var(--field); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip:active { transform: scale(0.98); }

.gallery { display: grid; gap: clamp(1rem, 2.4vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.gallery__empty { padding: 3rem 1rem; text-align: center; color: var(--ink-3); }
[hidden] { display: none !important; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .form__row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field__hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 0.95rem;
  min-height: 50px;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26, 24, 28, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(123, 44, 191, 0.16);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--red); background: #fff6f6; }
.field[data-invalid="true"] .field__error { display: flex; }
.field__error {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--red);
  font-weight: 600;
}
.field input:disabled, .field textarea:disabled, .field select:disabled { background: var(--field); color: var(--ink-3); }
.field input[dir="ltr"], .field textarea[dir="ltr"] { text-align: start; }

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__note { font-size: var(--fs-xs); color: var(--ink-3); max-width: 52ch; }
.form-status {
  display: none;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: var(--r-md);
  padding: 0.95rem 1.1rem;
  font-size: var(--fs-sm);
}
.form-status[data-state="success"] { display: flex; background: #eaf7ef; color: #17603a; }
.form-status[data-state="error"] { display: flex; background: #fdecec; color: #8f1116; }
.form-status svg { flex: none; margin-block-start: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.6rem; }
.faq details {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--pink);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-block-start: 0.6rem; color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.4rem;
}
.band h2 { font-size: var(--fs-h2); }
.band p { color: #cfc9d6; max-width: 52ch; }
.band .btn { background: var(--pink); }
.band .btn:hover { background: #fff; color: var(--ink); }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; align-items: center; }
.band .link-arrow { color: #fff; border-color: var(--pink); }
.band .link-arrow:hover { color: #ffd9e6; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding-block: clamp(2.75rem, 6vw, 4.5rem) 2rem; }
.footer__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.4vw, 5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
:lang(ar) .footer__name { letter-spacing: 0; }
.footer__cols {
  display: grid;
  gap: 2rem;
  margin-block-start: clamp(2rem, 5vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}
.footer__col { display: grid; gap: 0.55rem; align-content: start; }
.footer__col h2, .footer__col h3 {
  font-family: var(--font-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #9d97a6;
  letter-spacing: 0.02em;
  margin-block-end: 0.25rem;
}
.footer__col a, .footer__col span {
  font-size: var(--fs-sm);
  color: #e7e4ec;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-block-start: clamp(2rem, 5vw, 3rem);
  padding-block-start: 1.25rem;
  font-size: var(--fs-xs);
  color: #9d97a6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.footer__bottom a { color: #cfc9d6; }

/* ---------- Prose pages (privacy, 404) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 2vw, 1.5rem); }
.page-head h1 { font-size: var(--fs-h1); }
.page-head p { margin-block-start: 1rem; font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; align-items: center; margin-block-start: 1.5rem; }
.legal { max-width: 68ch; }
.legal h2 { font-size: var(--fs-h3); margin-block-start: 2rem; }
.legal p, .legal li { color: var(--ink-2); margin-block-start: 0.6rem; }
.legal ul { display: grid; gap: 0.5rem; margin-block-start: 0.6rem; }
.legal li { display: flex; gap: 0.6rem; align-items: flex-start; }
.legal li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); flex: none; margin-block-start: 0.6rem; }

/* ---------- Motion layer (JS adds html.has-motion) ---------- */
html.has-motion .reveal { opacity: 0; transform: translateY(22px); }
html.has-motion .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.has-motion .reveal[data-delay="1"].is-in { transition-delay: 0.08s; }
html.has-motion .reveal[data-delay="2"].is-in { transition-delay: 0.16s; }
html.has-motion .reveal[data-delay="3"].is-in { transition-delay: 0.24s; }
html.has-motion .reveal[data-delay="4"].is-in { transition-delay: 0.32s; }

.hero__col > *, .device { will-change: auto; }

/* Scroll progress */
.progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 70;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--red));
  transition: width 0.1s linear;
}

/* Back to top */
.to-top {
  position: fixed;
  inset-block-end: calc(1rem + env(safe-area-inset-bottom));
  inset-inline-end: 1rem;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-pop);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.to-top[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pink); }

.skip-link {
  position: absolute;
  inset-inline-start: 0.5rem;
  inset-block-start: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  /* Off-screen without ever being wider than the phone: clipped, never translated. */
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  transform: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.has-motion .reveal { opacity: 1; transform: none; }
}

/* ---------- RTL refinements ---------- */
[dir="rtl"] .editor__playhead::before { transform: translateX(50%); }
[dir="rtl"] .hero__glow span:nth-child(1) { inset-inline-end: auto; inset-inline-start: 2%; }
[dir="rtl"] .hero__glow span:nth-child(2) { inset-inline-start: auto; inset-inline-end: 4%; }

/* ---------- contact card facts, chapter headings, track, suite ---------- */
.ccard__fact-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.ccard__fact-label { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-3); }
.ccard__fact-value { font-weight: 600; overflow-wrap: anywhere; }

.chapter__h {
  font-size: clamp(1.55rem, 5.4vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-weight: 700;
}
:root:lang(ar) .chapter__h { letter-spacing: 0; line-height: 1.35; }

.editor__stage { position: relative; }
.map__route { --len: 0; }

.suite__groupTitle {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-3);
  margin-block-end: 0.7rem;
}
.suite__badge {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

/* horizontal swipe on phones, three-up on desktop */
.track {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-block-end: 0.6rem;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.track > * { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
.form-status[data-state="sending"] { display: flex; background: #f4f1f9; color: var(--ink-2); }
.form__note a { color: var(--purple); font-weight: 600; text-decoration: underline; }
.form__note a:hover { color: var(--pink); }
.fact-list .fact__value[dir="ltr"], .fact-list a[dir="ltr"] { overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .track > * { flex: none; }
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
:root:lang(ar) .map__sub { text-anchor: end; }

/* ---------- Accounts: create an account, sign in, member area ---------- */
html.cf-gate .private { visibility: hidden; }
[data-cf-loading] { font-size: var(--fs-sm); color: var(--ink-3); }

.auth-panel {
  padding: clamp(1.15rem, 4vw, 1.9rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.auth-switch { font-size: var(--fs-sm); color: var(--ink-2); }
.auth-switch a { color: var(--pink); font-weight: 600; }
.auth-switch a:hover { color: var(--purple); }
.auth-note { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-xs); color: var(--ink-3); }
.auth-note svg { flex: none; color: var(--purple); margin-block-start: 2px; }

.account-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem; }
.account-head__hi { font-family: var(--font-display); font-size: clamp(1.5rem, 5.6vw, 2.1rem); font-weight: 600; overflow-wrap: anywhere; }
.account-head__who { font-size: var(--fs-sm); color: var(--ink-3); overflow-wrap: anywhere; }

.brief-list { display: grid; gap: 1rem; }
.brief {
  display: grid;
  gap: 0.5rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  animation: brief-in 0.32s var(--ease) both;
}
@keyframes brief-in { from { opacity: 0; transform: translateY(8px); } }
.brief__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 0.8rem; }
.brief__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.brief__status {
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: var(--field);
  color: var(--ink-2);
  white-space: nowrap;
}
.brief__status[data-status="nouveau"] { background: #fdeaf3; color: #8d0b47; }
.brief__status[data-status="encours"] { background: #f1eafb; color: #5b1c94; }
.brief__status[data-status="livre"] { background: #eaf7ef; color: #17603a; }
.brief__meta { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; font-size: var(--fs-xs); color: var(--ink-3); }
.brief__meta b { color: var(--ink-2); font-weight: 600; }
.brief__text { font-size: var(--fs-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block-start: 0.15rem; }
.btn--danger { background: transparent; color: var(--red); border-color: rgba(227, 27, 35, 0.35); }
.btn--danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.empty-note {
  padding: 1.15rem 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--ink-3);
  font-size: var(--fs-sm);
}
.brief-form[data-editing="true"] { box-shadow: 0 0 0 2px var(--pink) inset; }
:root:lang(ar) .brief__status { letter-spacing: 0; }

/* ---------- Member area: the request list, its states, phone fit ---------- */
.brief__status--nouveau { background: #fdeaf3; color: #8d0b47; }
.brief__status--encours { background: #f1eafb; color: #5b1c94; }
.brief__status--livre { background: #eaf7ef; color: #17603a; }
.brief__dot { color: var(--ink-3); }
.brief[data-busy="true"] { opacity: 0.55; pointer-events: none; }
.btn--danger.is-armed { background: var(--red); color: #fff; border-color: var(--red); }
.brief-legend { display: grid; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink-2); }
.brief-legend li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.brief-legend span:last-child { color: var(--ink-3); font-size: var(--fs-xs); }
.empty-note--error { border-style: solid; border-color: rgba(227, 27, 35, 0.32); color: #8d0b1a; }
.auth-panel[data-editing="true"] { box-shadow: 0 0 0 2px var(--pink) inset; }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-block-end: 1.1rem;
}
.section__head h2 { margin: 0; }
.section__head .muted { font-size: var(--fs-sm); color: var(--ink-3); }
.account-head__mail { font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.account-head__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* The header keeps the logo and the burger on a phone: the member links live in
   the menu and the footer there, so the row never gets wider than the screen. */
.icon-btn--account { display: none; }
@media (min-width: 768px) { .icon-btn--account { display: inline-flex; } }
.footer__col a[hidden] { display: none !important; }
