/* ==========================================================================
   عبد الغني كامل — présence professionnelle
   RTL-first, logical properties throughout.
   Palette rose demandée par le client, mais délibérément décalée de celle du
   parti : rose plus chaud et plus sombre (#b23a5f, pas #c2265f), fond prune au
   lieu du beige, accent cuivré au lieu de l'olive, et aucun emblème floral —
   le logo reste un monogramme.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/cairo-arabic-400.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/cairo-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/cairo-arabic-600.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../assets/fonts/cairo-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/cairo-arabic-700.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../assets/fonts/cairo-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../assets/fonts/cairo-arabic-800.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../assets/fonts/cairo-latin-800.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ----------------------------------------------------------------- tokens */

/* Rose demandé par le client. Volontairement PAS le token du parti (#c2265f) :
   plus chaud, plus sombre, moins magenta — et aucun emblème floral nulle part,
   le logo reste un monogramme. C'est ce qui distingue encore ce site de celui
   de la campagne. */
:root {
  --rose:     #b23a5f;   /* rose principal — PAS le #c2265f du parti */
  --rose-dk:  #8d2b4a;
  --rose-lt:  #cf5f80;
  --plum:     #40222f;   /* neutre chaud profond, fond du héros */
  --plum-dk:  #2a141d;
  --gold:     #c98a5e;   /* accent cuivré, remplace l'ambre */
  --gold-dk:  #a96f47;
  --ink:      #2b1f25;
  --ink-2:    #5f505a;
  --ink-3:    #948792;
  --line:     #ecdfe4;
  --bg:       #ffffff;
  --bg-2:     #fbf6f8;
  --wash:     #fdf1f5;

  --wrap:     1120px;
  --r:        14px;
  --r-lg:     24px;
  --sh:       0 4px 18px rgba(22, 32, 46, .07);
  --sh-lg:    0 20px 52px rgba(22, 32, 46, .14);
  --ease:     cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-block-start: 92px; }
body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px; line-height: 1.85;
  color: var(--ink); background: var(--bg);
  overflow-x: clip;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: 12px; z-index: 99;
  padding: 10px 18px; background: var(--rose); color: #fff; border-radius: 0 0 8px 8px;
}
.skip:focus { inset-block-start: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- helpers */

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sec  { padding-block: clamp(56px, 8vw, 100px); }
.sec--tint { background: var(--bg-2); }
.ctr  { text-align: center; }

.h2 { font-size: clamp(25px, 3.6vw, 36px); font-weight: 800; line-height: 1.3; color: var(--rose); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--gold); text-transform: uppercase;
}
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); font-weight: 500; }

.ic { inline-size: 1.15em; block-size: 1.15em; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.4; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn--rose { background: var(--rose); color: #fff; }
.btn--rose:hover { background: var(--rose-dk); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dk); }
.btn--line { border-color: var(--rose); color: var(--rose); }
.btn--line:hover { background: var(--rose); color: #fff; }

/* ---------------------------------------------------------------- header */

.hdr {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-block-end: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { inline-size: 44px; block-size: 44px; border-radius: 12px; }
.brand strong { display: block; font-size: 17px; font-weight: 800; color: var(--rose); line-height: 1.25; }
.brand span { font-size: 12.5px; color: var(--ink-3); }
.hdr__nav { display: flex; align-items: center; gap: 26px; }
.hdr__nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hdr__nav a:hover { color: var(--rose); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; isolation: isolate; overflow: clip;
  background: linear-gradient(150deg, var(--plum) 0%, var(--plum-dk) 58%, #1d0d14 100%);
  color: #fff;
  padding-block: clamp(48px, 7vw, 76px) 0;
}
/* A soft rose glow behind the portrait. No floral emblem, no party mark. */
.hero::before {
  content: ''; position: absolute; z-index: -1;
  inline-size: 620px; block-size: 620px; border-radius: 50%;
  inset-block-start: 8%; inset-inline-start: -8%;
  background: radial-gradient(circle, rgba(178, 58, 95, .42), rgba(178, 58, 95, 0) 68%);
}
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  align-items: end; gap: clamp(20px, 4vw, 48px);
}
.hero__txt { padding-block-end: clamp(48px, 7vw, 84px); }
.hero__name {
  font-size: clamp(36px, 6vw, 62px); font-weight: 800; line-height: 1.15;
  margin-block: 10px 12px;
}
.hero__roles { font-size: clamp(16px, 2.1vw, 20px); font-weight: 700; color: var(--gold); }
.hero__intro {
  margin-block-start: 18px; max-inline-size: 44ch;
  color: rgba(255, 255, 255, .82); font-size: 16.5px;
}
.hero__cta { margin-block-start: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo { align-self: end; }
.hero__photo img {
  inline-size: min(100%, 420px); max-block-size: 540px;
  object-fit: contain; object-position: bottom; margin-inline: auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, .42));
}

/* ----------------------------------------------------------------- about */

.about { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 5vw, 64px); align-items: start; }
/* Until he supplies the long text, the lead alone would float beside a tall
   fact list — centre it instead of leaving a half-empty column. */
.about--lead-only { align-items: center; }
.about__lead { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; color: var(--ink); line-height: 1.65; }
.about__p { margin-block-start: 18px; color: var(--ink-2); }

.facts {
  padding: 26px 28px; background: var(--wash);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.facts h3 { font-size: 15px; font-weight: 800; color: var(--rose); margin-block-end: 14px; }
.facts li { display: flex; align-items: flex-start; gap: 11px; padding-block: 9px; font-size: 15px; color: var(--ink-2); }
.facts li + li { border-block-start: 1px solid var(--line); }
.facts .ic { color: var(--gold); margin-block-start: 6px; }

/* -------------------------------------------------------------- training */

.train { display: grid; gap: 22px; justify-items: center; text-align: center; max-inline-size: 760px; margin-inline: auto; }
.train__points { display: grid; gap: 10px; }
.train__points li { display: flex; align-items: flex-start; gap: 10px; text-align: start; color: var(--ink-2); }
.train__points .ic { color: var(--rose); margin-block-start: 6px; }

/* ----------------------------------------------------- book notify field */

.notify { display: flex; gap: 10px; flex-wrap: wrap; margin-block-start: 22px; }
.notify input {
  font: inherit; flex: 1 1 220px; min-inline-size: 0;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.notify input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(178, 58, 95, .14); }
.notify__note { display: block; margin-block-start: 10px; font-size: 13px; color: var(--ink-3); }

/* ----------------------------------------------------------------- areas */

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.area {
  padding: 28px 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.area:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.area__ic {
  display: grid; place-items: center;
  inline-size: 50px; block-size: 50px; border-radius: 14px;
  background: var(--wash); color: var(--rose);
  margin-block-end: 16px;
}
.area__ic .ic { inline-size: 24px; block-size: 24px; }
.area h3 { font-size: 18px; font-weight: 800; color: var(--rose); margin-block-end: 6px; }
.area p { font-size: 14.5px; color: var(--ink-2); }

/* ------------------------------------------------------------------ book */

.book {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 56px);
}
.book__cover {
  aspect-ratio: 3 / 4; border-radius: var(--r);
  background: linear-gradient(150deg, var(--rose), var(--plum));
  box-shadow: var(--sh-lg);
  display: grid; place-items: center; padding: 24px; text-align: center;
}
.book__cover .ic { inline-size: 46px; block-size: 46px; color: var(--gold); }
.book__cover span { display: block; margin-block-start: 14px; color: #fff; font-weight: 800; font-size: 20px; }
.book__t { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; color: var(--rose); margin-block: 6px 8px; }
.book__sub { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.book__p { margin-block-start: 16px; color: var(--ink-2); }
.badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--gold); color: #fff; font-size: 13px; font-weight: 700;
}

/* --------------------------------------------------------------- contact */

.ctc { max-inline-size: 720px; margin-inline: auto; }
.ctc__list { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-block: 22px 8px; }
.ctc__list a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: 15px;
}
.ctc__list a:hover { border-color: var(--rose); color: var(--rose); }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 6px; }
.f--full { grid-column: 1 / -1; }
.f label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.f input, .f textarea {
  font: inherit; padding: 12px 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.f input:focus, .f textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(22, 48, 79, .12); }
.f textarea { min-block-size: 150px; resize: vertical; }
.req { color: var(--gold); }
/* Honeypot: off-screen, never display:none — some bots skip hidden fields. */
.hp { position: absolute; inset-inline-start: -9999px; inline-size: 1px; block-size: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-start: 18px; }
.form__note { font-size: 13.5px; color: var(--ink-3); }

.alert { padding: 14px 20px; border-radius: var(--r); margin-block-end: 18px; font-weight: 600; }
.alert--ok  { background: #e9f6ee; color: #1f6b3d; }
.alert--err { background: #fdecec; color: #a12727; }
.alert--err li { list-style: disc; margin-inline-start: 20px; }

/* ----------------------------------------------------------------- legal */

.legal { max-inline-size: 760px; margin-inline: auto; }
.legal h2 { font-size: 19px; font-weight: 800; color: var(--rose); margin-block: 30px 8px; }
.legal p { color: var(--ink-2); }
.legal ul { display: grid; gap: 10px; margin-block: 12px; }
.legal li { display: flex; gap: 10px; color: var(--ink-2); }
.legal li::before { content: '—'; color: var(--gold); flex: none; }
.legal a { color: var(--rose); text-decoration: underline; }
.legal__back { margin-block-start: 40px; }

.ftr a { text-decoration: underline; }

/* ---------------------------------------------------------------- footer */

.ftr { background: var(--plum-dk); color: rgba(255, 255, 255, .72); padding-block: 30px; }
.ftr__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.ftr strong { color: #fff; }
.ftr__soc { display: flex; gap: 12px; }
.ftr__soc a {
  display: grid; place-items: center; inline-size: 38px; block-size: 38px;
  border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff;
}
.ftr__soc a:hover { background: var(--gold); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .book  { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .book__cover { inline-size: 220px; }
}

@media (max-width: 720px) {
  .hdr__nav { display: none; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__txt { padding-block-end: 24px; text-align: center; }
  .hero__intro { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__photo img { max-block-size: 380px; }
  .areas { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .ftr__in { flex-direction: column; text-align: center; }
}
