/* ==========================================================================
   United Consulting - landing page
   Couleurs et polices reprises de brand/united-consulting/theme.css
   ========================================================================== */

:root {
  --uc-font-display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --uc-font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --uc-red: #D91F26;
  --uc-red-bright: #F24A3F;
  --uc-red-deep: #C4161F;
  --uc-burgundy: #8E1019;
  --uc-ink: #15181D;
  --uc-slate: #4B525C;
  --uc-silver: #C9CED6;
  --uc-mist: #F3F4F6;
  --uc-white: #FFFFFF;
  --uc-border: #E2E5EA;
  --uc-green: #1F7A4D;
  --uc-gradient: linear-gradient(135deg, var(--uc-red-bright) 0%, var(--uc-red-deep) 100%);

  --uc-radius-sm: 6px;
  --uc-radius: 12px;
  --uc-radius-lg: 22px;
  --uc-shadow: 0 1px 2px rgba(21, 24, 29, .06), 0 8px 24px rgba(21, 24, 29, .08);
  --uc-shadow-lg: 0 2px 4px rgba(21, 24, 29, .06), 0 24px 60px rgba(21, 24, 29, .14);

  --wrap: 1160px;
  --gutter: 24px;
}

/* Arabe : Cairo pour titres et texte */
html[lang="ar"] {
  --uc-font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --uc-font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--uc-white);
  color: var(--uc-ink);
  font: 400 16px/1.65 var(--uc-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
svg { direction: ltr; } /* le logo reste en latin sur la page arabe */
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--uc-font-display); margin: 0; letter-spacing: -.015em; line-height: 1.15; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--uc-slate); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(217, 31, 38, .45); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1 var(--uc-font-display); letter-spacing: .2em; text-transform: uppercase;
  color: var(--uc-red); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--uc-radius-sm); border: 1.5px solid transparent;
  font: 700 14px/1 var(--uc-font-display); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--uc-red); color: #fff; }
.btn-primary:hover { background: var(--uc-red-deep); }
.btn-ghost { color: var(--uc-ink); border-color: var(--uc-ink); background: transparent; }
.btn-ghost:hover { background: var(--uc-ink); color: #fff; }
.btn-light { background: #fff; color: var(--uc-ink); }
.btn-light:hover { background: var(--uc-mist); }

/* -- En-tete --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--uc-border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand-link { display: block; flex-shrink: 0; }
.brand-link svg { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font: 600 14px var(--uc-font-display); color: var(--uc-slate); text-decoration: none; }
.nav a:hover { color: var(--uc-ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  font: 700 13px var(--uc-font-display); color: var(--uc-ink); text-decoration: none;
  padding: 8px 12px; border: 1px solid var(--uc-border); border-radius: 999px;
}
.lang-switch:hover { border-color: var(--uc-ink); }
.lang-switch .ar { font-family: "Cairo", Tahoma, sans-serif; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--uc-ink); }

@media (max-width: 920px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 72px; inset-inline: 0; background: #fff;
    border-bottom: 1px solid var(--uc-border); padding: 8px var(--gutter) 20px; box-shadow: var(--uc-shadow);
  }
  .site-header.open .nav a { padding: 14px 0; border-bottom: 1px solid var(--uc-border); font-size: 16px; }
  .site-header.open .nav .btn { margin-top: 16px; display: inline-flex; border-bottom: 0; color: #fff; }
}
.nav .btn { display: none; }

/* -- Hero ------------------------------------------------------------------ */
.hero { position: relative; padding: 72px 0 88px; background: linear-gradient(180deg, #fff 0%, var(--uc-mist) 100%); overflow: hidden; }
.hero::after {
  /* rappel de la pastille du logo */
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 110px;
  background: var(--uc-gradient); opacity: .07; transform: rotate(-40deg);
  inset-inline-end: -180px; top: -160px; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--uc-red); }
.hero .lead { font-size: 18px; color: var(--uc-slate); max-width: 560px; margin-bottom: 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .reassure { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 32px; font-size: 14px; color: var(--uc-slate); }
.hero .reassure span { display: inline-flex; align-items: center; gap: 8px; }
.hero .reassure svg { width: 18px; height: 18px; color: var(--uc-green); flex-shrink: 0; }

/* Carte "tableau de bord" illustrative */
.dash {
  background: #fff; border-radius: var(--uc-radius-lg); box-shadow: var(--uc-shadow-lg);
  padding: 24px; border: 1px solid var(--uc-border); position: relative;
}
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dash-title { font: 700 15px var(--uc-font-display); }
.dash-sub { font-size: 12px; color: var(--uc-slate); }
.dash-pill { font: 600 11px var(--uc-font-display); padding: 5px 10px; border-radius: 999px; background: var(--uc-mist); color: var(--uc-slate); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--uc-mist); border-radius: var(--uc-radius); padding: 12px; }
.kpi .k-label { font-size: 11px; color: var(--uc-slate); }
.kpi .k-value { font: 800 19px var(--uc-font-display); margin-top: 2px; }
.kpi .k-trend { font-size: 11px; font-weight: 600; color: var(--uc-green); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; border-bottom: 1px solid var(--uc-border); }
.bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--uc-silver); }
.bars span.hi { background: var(--uc-gradient); }
.bars-labels { display: flex; gap: 8px; margin-top: 6px; }
.bars-labels span { flex: 1; text-align: center; font-size: 10px; color: var(--uc-slate); }
.dash-note {
  position: absolute; inset-inline-start: -28px; bottom: -62px; background: var(--uc-ink); color: #fff;
  border-radius: var(--uc-radius); padding: 12px 16px; box-shadow: var(--uc-shadow-lg); font-size: 13px; max-width: 240px;
  display: flex; gap: 10px; align-items: center;
}
.dash-note .dot { width: 30px; height: 30px; border-radius: 9px; background: var(--uc-gradient); flex-shrink: 0; display: grid; place-items: center; }
.dash-note .dot svg { width: 16px; height: 16px; color: #fff; }
.dash-caption { text-align: end; font-size: 12px; color: var(--uc-slate); margin-top: 76px; }

@media (max-width: 920px) {
  .hero { padding: 48px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .dash-note { inset-inline-start: 12px; }
}
@media (max-width: 480px) {
  .dash { padding: 18px; }
  .kpis { gap: 8px; }
  .kpi { padding: 10px; }
  .kpi .k-value { font-size: 16px; white-space: nowrap; }
  .dash-head { align-items: flex-start; gap: 10px; }
  .dash-pill { white-space: nowrap; }
  .dash-note { position: static; max-width: none; margin-top: 16px; box-shadow: none; }
  .dash-caption { margin-top: 14px; }
  .site-header .btn-ghost { white-space: nowrap; padding: 10px 14px; }
}

/* -- Bandeau d'engagements ---------------------------------------------------- */
.pledges { background: var(--uc-ink); color: #fff; padding: 36px 0; }
.pledges .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pledge { display: flex; gap: 14px; align-items: flex-start; }
.pledge .ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex-shrink: 0; }
.pledge .ico svg { width: 20px; height: 20px; color: var(--uc-red-bright); }
.pledge b { display: block; font: 700 15px var(--uc-font-display); margin-bottom: 2px; }
.pledge span { font-size: 13.5px; color: var(--uc-silver); line-height: 1.5; }
@media (max-width: 920px) { .pledges .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pledges .wrap { grid-template-columns: 1fr; } }

/* -- Sections ---------------------------------------------------------------- */
section.block { padding: 96px 0; }
section.block.alt { background: var(--uc-mist); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--uc-slate); }
.section-head.center { margin-inline: auto; text-align: center; }
@media (max-width: 720px) { section.block { padding: 64px 0; } .section-head { margin-bottom: 32px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  background: #fff; border: 1px solid var(--uc-border); border-radius: var(--uc-radius);
  padding: 26px 22px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.service:hover { box-shadow: var(--uc-shadow); transform: translateY(-2px); border-color: transparent; }
.service .ico { width: 46px; height: 46px; border-radius: 13px; background: rgba(217, 31, 38, .08); display: grid; place-items: center; margin-bottom: 18px; }
.service .ico svg { width: 22px; height: 22px; color: var(--uc-red); }
.service h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.service p { font-size: 14.5px; color: var(--uc-slate); line-height: 1.6; }
@media (max-width: 1020px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* Parcours */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: step; }
.journey::before {
  content: ""; position: absolute; top: 23px; inset-inline: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--uc-silver), var(--uc-red));
}
html[dir="rtl"] .journey::before { background: linear-gradient(270deg, var(--uc-silver), var(--uc-red)); }
.step { position: relative; text-align: center; padding: 0 16px; }
.step .num {
  counter-increment: step; width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 14px;
  background: #fff; border: 2px solid var(--uc-red); display: grid; place-items: center;
  font: 800 18px var(--uc-font-display); color: var(--uc-red); position: relative; transform: rotate(-40deg);
}
.step .num::after { content: counter(step); transform: rotate(40deg); }
.step:last-child .num { background: var(--uc-gradient); border-color: transparent; color: #fff; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--uc-slate); }
@media (max-width: 820px) {
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .journey::before { top: 0; bottom: 0; inset-inline-start: 23px; inset-inline-end: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--uc-silver), var(--uc-red)); }
  html[dir="rtl"] .journey::before { background: linear-gradient(180deg, var(--uc-silver), var(--uc-red)); }
  .step { text-align: start; display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; padding: 0; }
  .step .num { margin: 0; grid-row: span 2; }
}

/* Specialisation officine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.checklist li .tick { width: 28px; height: 28px; border-radius: 8px; background: rgba(217, 31, 38, .08); display: grid; place-items: center; }
.checklist li .tick svg { width: 15px; height: 15px; color: var(--uc-red); }
.checklist li b { display: block; font: 700 16px var(--uc-font-display); margin-bottom: 2px; }
.checklist li span { font-size: 14.5px; color: var(--uc-slate); }
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audience { background: #fff; border: 1px solid var(--uc-border); border-radius: var(--uc-radius); padding: 18px; display: flex; gap: 14px; align-items: center; }
.audience.main { grid-column: 1 / -1; background: var(--uc-ink); color: #fff; border-color: var(--uc-ink); padding: 24px; }
.audience.main span { color: var(--uc-silver); }
.audience .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--uc-mist); display: grid; place-items: center; flex-shrink: 0; }
.audience.main .ico { background: var(--uc-gradient); }
.audience .ico svg { width: 21px; height: 21px; color: var(--uc-red); }
.audience.main .ico svg { color: #fff; }
.audience b { display: block; font: 700 15px var(--uc-font-display); }
.audience span { font-size: 13px; color: var(--uc-slate); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .audiences { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--uc-border); }
.faq details:first-child { border-top: 1px solid var(--uc-border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px;
  font: 700 17px/1.4 var(--uc-font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--uc-mist);
  display: grid; place-items: center; color: var(--uc-red); font-size: 20px; line-height: 1; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--uc-slate); max-width: 720px; }

/* Contact */
.contact { background: var(--uc-ink); color: #fff; position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 100px; background: var(--uc-gradient);
  opacity: .14; transform: rotate(-40deg); inset-inline-start: -200px; bottom: -220px;
}
.contact .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact .eyebrow { color: var(--uc-red-bright); }
.contact h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 16px; }
.contact .intro { color: var(--uc-silver); font-size: 17px; margin-bottom: 36px; }
.coords { display: grid; gap: 20px; }
.coord { display: flex; gap: 14px; align-items: flex-start; }
.coord .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; flex-shrink: 0; }
.coord .ico svg { width: 20px; height: 20px; color: var(--uc-red-bright); }
.coord small { display: block; font-size: 12px; color: var(--uc-silver); text-transform: uppercase; letter-spacing: .12em; font-family: var(--uc-font-display); font-weight: 600; }
html[lang="ar"] .coord small { letter-spacing: 0; font-size: 13px; }
.coord a, .coord address { font-style: normal; color: #fff; text-decoration: none; font-weight: 500; }
.coord a:hover { text-decoration: underline; }
.coord a[dir="ltr"] { unicode-bidi: isolate; }

.form-card { background: #fff; color: var(--uc-ink); border-radius: var(--uc-radius-lg); padding: 32px; box-shadow: var(--uc-shadow-lg); }
.form-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.form-card > p { font-size: 14px; color: var(--uc-slate); margin-bottom: 24px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 13px var(--uc-font-display); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 15px var(--uc-font-body); color: var(--uc-ink);
  padding: 12px 14px; border: 1.5px solid var(--uc-border); border-radius: var(--uc-radius-sm); background: #fff;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--uc-red); }
.field textarea { resize: vertical; min-height: 110px; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--uc-slate); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--uc-red); flex-shrink: 0; }
.form-card .btn { width: 100%; margin-top: 20px; padding: 15px; }
.form-status { margin-top: 14px; font-size: 14px; display: none; padding: 12px 14px; border-radius: var(--uc-radius-sm); background: rgba(31, 122, 77, .08); color: var(--uc-green); }
.form-status.show { display: block; }
.form-status.error { background: rgba(217, 31, 38, .08); color: var(--uc-red-deep); }
.form-card button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 920px) { .contact .wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }

/* -- Pied de page ------------------------------------------------------------ */
.site-footer { background: #0E1014; color: var(--uc-silver); padding: 48px 0 32px; font-size: 13.5px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-top svg { width: 160px; height: auto; --uc-word: #fff; --uc-sub: var(--uc-silver); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--uc-silver); }
.footer-links a:hover { color: #fff; }
.footer-legal { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #8A919C; }
.footer-legal .ids { unicode-bidi: isolate; }

/* -- Page mentions legales ---------------------------------------------------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--uc-slate); margin-bottom: 10px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; }
.legal dt { font: 600 14px var(--uc-font-display); }
.legal dd { margin: 0; color: var(--uc-slate); }
.legal .todo { background: #FFF6D6; color: #6B5300; padding: 1px 6px; border-radius: 4px; font-size: .92em; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* Apparition douce au defilement */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
