/* ============================================================
   FAC — FIDELIS Advisory & Consulting
   Design system : sobre, institutionnel, premium
   Primaire #003366 · Accent #008040 · Fond #FFFFFF
   ============================================================ */

:root {
  --navy: #003366;
  --navy-700: #002a52;
  --navy-900: #001c38;
  --green: #008040;
  --green-600: #006f37;
  --ink: #1a2330;
  --muted: #586478;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-navy-soft: #f0f4f9;
  --white: #ffffff;

  --maxw: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,28,56,.06), 0 4px 14px rgba(0,28,56,.05);
  --shadow-md: 0 8px 30px rgba(0,28,56,.10);

  --serif: "Bookman Old Style", "URW Bookman", "TeX Gyre Bonum", Georgia, "Times New Roman", serif;
  --sans: "Bookman Old Style", "URW Bookman", "TeX Gyre Bonum", Georgia, "Times New Roman", serif;

  --space: clamp(3.5rem, 7vw, 6.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--navy); line-height: 1.18; margin: 0 0 .5em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-weight: 600; font-size: 1.18rem; }
p { margin: 0 0 1rem; text-align: justify; text-justify: inter-word; }
a { color: var(--green-600); }

/* Justification propre des paragraphes de lecture (césure pour éviter les "rivières") */
.prose p, .hero-lead, .page-hero p, .lead, .card p, .media-card p, .cta-band p {
  hyphens: auto; -webkit-hyphens: auto;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.2rem); }

/* ---------- Filigrane « cheval » FAC : rotation 3D, décoratif ---------- */
#globalWatermark {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
  perspective: 1600px;
}
#globalWatermark .wm-stage {
  transform-style: preserve-3d;
  animation: facFloat 7s ease-in-out infinite;
  will-change: transform, opacity;
}
#globalWatermark .wm-horse {
  display: block;
  width: min(54vmin, 500px); height: auto;
  opacity: .085;
  transform-style: preserve-3d;
  animation: facSpin 60s linear infinite;
  will-change: transform;
}
/* Rotation 3D lente et majestueuse (360°) */
@keyframes facSpin {
  from { transform: rotateX(8deg) rotateY(0deg); }
  to   { transform: rotateX(8deg) rotateY(360deg); }
}
/* Flottement + pulsation continus -> mouvement toujours perceptible */
@keyframes facFloat {
  0%   { transform: translateY(0) scale(1);      opacity: .8; }
  50%  { transform: translateY(-16px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1);      opacity: .8; }
}
/* Content sits above the watermark; transparent (white) sections reveal it,
   coloured sections (hero, navy, CTA) cover it — keeping it discreet. */
main { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 2; }

.sr-only {
  position: absolute; 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: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; background: var(--navy); color: #fff; padding: .6rem 1.1rem;
  border-radius: 8px; z-index: 200; transition: transform .2s; text-decoration: none;
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: .82rem 1.5rem; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .12s;
  font-family: var(--sans);
}
.btn-sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-600); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green); outline-offset: 2px;
}
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--navy); letter-spacing: .02em; }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav ul { display: flex; list-style: none; gap: .25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav a.nav-link {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem;
  padding: .5rem .62rem; border-radius: 7px; white-space: nowrap; transition: color .15s, background .15s;
}
.primary-nav a.nav-link:hover { color: var(--navy); background: var(--bg-navy-soft); }
.primary-nav a.nav-link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.primary-nav a.nav-link[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--green); border-radius: 2px; margin-top: 3px;
}
.nav-utility { display: flex; align-items: center; gap: .9rem; }
.lang-switch {
  background: none; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--muted);
  padding: .4rem .6rem; display: inline-flex; gap: .28rem; transition: border-color .15s;
}
.lang-switch:hover { border-color: var(--navy); }
.lang-switch .lang-sep { color: var(--line); }
.lang-switch [data-lang-on].active { color: var(--navy); }

/* ---------- Lien « Espace pro » ---------- */
.nav-pro { font-weight: 600; font-size: .88rem; color: var(--navy); text-decoration: none; padding: .42rem .2rem; white-space: nowrap; }
.nav-pro:hover { color: var(--green-600); }
.nav-pro::before { content: "→ "; color: var(--green); }

/* ---------- Sélecteur de langue (6 langues) ---------- */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 7px; padding: .42rem .65rem; font-weight: 600; font-size: .84rem; color: var(--navy); user-select: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::marker { content: ""; }
.lang-menu > summary:hover, .lang-menu[open] > summary { border-color: var(--navy); }
.lang-caret { font-size: .7rem; color: var(--muted); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); min-width: 158px; }
.lang-list li { margin: 0; }
.lang-list a { display: flex; align-items: center; gap: .55rem; padding: .5rem .7rem; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .94rem; }
.lang-list a:hover { background: var(--bg-navy-soft); color: var(--navy); }
/* Drapeaux SVG du sélecteur de langue */
.lang-flag { display: block; width: 21px; height: 14px; border-radius: 2.5px; overflow: hidden;
  flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(10,31,60,.12), 0 1px 2px rgba(10,31,60,.12); }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-menu > summary .lang-flag { width: 20px; height: 13px; }
[dir="rtl"] .lang-list a { flex-direction: row; }
.lang-list a.active { color: var(--navy); font-weight: 700; background: var(--bg-navy-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle-bar { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero::before { /* discreet horse watermark, decorative only */
  content: ""; position: absolute; right: -2%; bottom: -8%; width: min(44vw, 520px); height: min(60vw, 620px);
  background: url("../assets/horse-white.png") right bottom / contain no-repeat;
  opacity: .08; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: var(--space); padding-bottom: var(--space); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #9ec3e8;
  border: 1px solid rgba(255,255,255,.22); padding: .4rem .85rem; border-radius: 100px; margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #dbe7f3; max-width: 60ch; margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* ---------- Sections ---------- */
.section { padding-top: var(--space); padding-bottom: var(--space); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 64ch; margin-bottom: 2.6rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 .8rem; }
.eyebrow.brandcase { text-transform: none; letter-spacing: .03em; font-size: .9rem; }
.section-navy .eyebrow { color: #6fd49b; }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-navy .lead { color: #c9dcef; }

.page-hero { background: var(--bg-navy-soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: clamp(2.6rem, 5vw, 4rem); padding-bottom: clamp(2.6rem, 5vw, 4rem); }
.page-hero .eyebrow { color: var(--green); }
.page-hero p { max-width: 66ch; color: var(--muted); font-size: 1.1rem; margin-top: .4rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9d6e6; }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: var(--green-600); background: #e8f5ee; padding: .25rem .6rem; border-radius: 6px; margin-bottom: .9rem;
}
.card .tag.navy { color: var(--navy); background: var(--bg-navy-soft); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-navy-soft); color: var(--navy); margin-bottom: 1.1rem;
}
.card-icon svg { width: 24px; height: 24px; }

.pillar-card .pillar-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.pillar-card .pillar-list li { position: relative; padding-left: 1.3rem; font-size: .92rem; color: var(--muted); margin-bottom: .35rem; }
.pillar-card .pillar-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- Credibility strip ---------- */
.cred-strip { background: var(--navy); color: #fff; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; padding: 2.4rem 0; }
.cred-item { text-align: center; }
.cred-item .cred-k { font-family: var(--serif); font-size: 1.7rem; color: #fff; font-weight: 600; }
.cred-item .cred-v { font-size: .9rem; color: #b9cee4; margin-top: .2rem; }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.media-card {
  border-radius: var(--radius-lg); padding: 2.2rem; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.media-card::after { content: ""; position: absolute; right: -8%; bottom: -16%; width: 56%; height: 92%;
  background: url("../assets/horse-white.png") center/contain no-repeat; opacity: .10; }
.media-card h3 { color: #fff; }
.media-card p { color: #cfe0f1; }
.media-card .mc-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.media-card .mc-list li { padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.14); color: #e3edf7; font-size: .95rem; }

/* ---------- Checklist / values ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #e8f5ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008040' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/.8rem no-repeat;
}

.values-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.value-chip {
  border: 1px solid var(--line); border-radius: 100px; padding: .5rem 1.1rem; font-weight: 600;
  color: var(--navy); background: #fff; font-size: .92rem;
}

/* ---------- Institutional block ---------- */
.inst-block { background: var(--bg-navy-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.inst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; margin: 0; }
.inst-grid div { display: flex; flex-direction: column; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.inst-grid dt { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.inst-grid dd { margin: .1rem 0 0; font-weight: 600; color: var(--navy); }

/* ---------- Steps (methodology) ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-n {
  counter-increment: step; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif);
}
.step-n::before { content: counter(step); }
.step h3 { margin-bottom: .15rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Packages table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.pack { width: 100%; border-collapse: collapse; min-width: 640px; }
table.pack th, table.pack td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .94rem; }
table.pack thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
table.pack tbody tr:last-child td { border-bottom: 0; }
table.pack tbody tr:nth-child(even) { background: var(--bg-soft); }
table.pack .pk-name { font-weight: 700; color: var(--navy); }
table.pack .pk-price { color: var(--green-600); font-weight: 700; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; left: -4%; top: -25%; width: 38%; height: 150%;
  background: url("../assets/horse-white.png") center/contain no-repeat; opacity: .08; }
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #cfe0f1; max-width: 56ch; margin: .6rem auto 1.8rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Sectors ---------- */
.sector-group { margin-bottom: 1.4rem; }
.sector-group h3 { color: var(--green-600); font-size: 1rem; letter-spacing: .02em; }
.sector-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.sector-tag { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .9rem; font-size: .9rem; color: var(--ink); background: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: .35rem; }
.field .req { color: var(--green-600); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: .75rem .85rem; border: 1.5px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,51,102,.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field.checkbox input { width: auto; margin-top: .25rem; }
.field.checkbox label { font-weight: 400; color: var(--ink); }
.field-error { color: #b3261e; font-size: .85rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .field-error { display: block; }
.error-summary { display: none; border: 1.5px solid #b3261e; background: #fdeceb; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.error-summary.show { display: block; }
.error-summary h3 { color: #b3261e; margin-bottom: .4rem; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: #b3261e; }
.form-success { display: none; border: 1.5px solid var(--green); background: #e8f5ee; color: var(--green-600); padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.4rem; font-weight: 600; }
.form-success.show { display: block; }

.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; }
.contact-aside h3 { margin-bottom: 1rem; }
.contact-line { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-line:last-of-type { border-bottom: 0; }
.contact-line .ci { color: var(--green); flex: 0 0 auto; margin-top: .15rem; }
.contact-line a { color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-line a:hover { color: var(--navy); text-decoration: underline; }
.contact-line .ck { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; }

.map-embed { border: 0; width: 100%; height: 280px; border-radius: var(--radius-lg); margin-top: 1.4rem; filter: grayscale(.15); }

/* ---------- Notice / coming soon ---------- */
.notice { border-left: 4px solid var(--green); background: var(--bg-soft); padding: 1.2rem 1.4rem; border-radius: 0 10px 10px 0; }

/* ---------- Photo + texte (page Cabinet) ---------- */
.photo-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: center; }
.photo-feature.reverse .pf-text { order: 2; }
.photo-feature.reverse .pf-photo { order: 1; }
.pf-photo { margin: 0; }
.pf-photo img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.pf-text p { font-size: 1.06rem; }
.pf-text p:first-child { font-size: 1.14rem; }
@media (max-width: 1023px) {
  .photo-feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .photo-feature.reverse .pf-text, .photo-feature.reverse .pf-photo { order: 0; }
  .pf-photo { max-width: 480px; }
}

/* ---------- Fondateur (photo + bio) ---------- */
.founder-profile { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 5vw, 3.6rem); align-items: start; }
.founder-photo { margin: 0; position: sticky; top: 100px; }
.founder-photo .fp-stage { position: relative; }
/* Petit logo « cheval » FAC en haut à droite de la photo */
.founder-photo .fp-stage::after {
  content: ""; position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 40px; height: 52px;
  background: url("../assets/horse-navy.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 5px rgba(0, 28, 56, .35));
}
.founder-photo .fp-stage img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  filter: drop-shadow(0 16px 26px rgba(0, 28, 56, .22));
}
.founder-photo figcaption { margin-top: 1.1rem; border-left: 3px solid var(--green); padding-left: .9rem; }
.founder-photo .fp-name { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.2rem; }
.founder-photo .fp-role { color: var(--muted); font-size: .92rem; }
.founder-bio p { font-size: 1.06rem; color: var(--ink); }
.founder-bio p:first-child { font-size: 1.15rem; }
@media (max-width: 1023px) {
  .founder-profile { grid-template-columns: 1fr; gap: 1.8rem; }
  .founder-photo { position: static; max-width: 420px; }
}

/* ---------- Prose ---------- */
.prose p { max-width: 70ch; color: var(--ink); }
.prose h2 { margin-top: 2.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9d6e6; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand-name { color: #fff; }
.footer-logo { height: 56px; width: auto; display: block; }
.footer-brand p { color: #9fb6d0; max-width: 42ch; margin-top: 1rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-col a { color: #c9d6e6; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-legal-block { color: #8aa3c0; line-height: 1.8; padding-top: 2rem; }
.footer-legal-block strong { color: #e3edf7; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); color: #8aa3c0; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: #b9cee4; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Chatbox WhatsApp (CSS pur, sans JS) ---------- */
.wa-widget { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: flex; flex-direction: column;
  align-items: flex-end; gap: 12px; font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
.wa-launch { width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid;
  place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); cursor: pointer; transition: transform .15s; }
.wa-launch:hover { transform: scale(1.06); }
.wa-launch svg { width: 31px; height: 31px; }
.wa-dot { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 10px;
  background: #ff3b30; color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff; padding: 0 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: waPulse 2s ease-in-out infinite; }
.wa-cb:checked ~ .wa-launch .wa-dot, .wa-widget.wa-seen .wa-dot { display: none; }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
[dir="rtl"] .wa-dot { right: auto; left: -3px; }
@media (prefers-reduced-motion: reduce) { .wa-dot { animation: none; } }
.wa-cb { position: absolute; opacity: 0; pointer-events: none; }
.wa-panel { width: 300px; max-width: calc(100vw - 36px); background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,28,56,.28); transform: translateY(14px) scale(.95); opacity: 0; pointer-events: none;
  transform-origin: bottom right; transition: transform .2s ease, opacity .2s ease; }
.wa-cb:checked ~ .wa-panel { transform: none; opacity: 1; pointer-events: auto; }
.wa-cb:focus-visible ~ .wa-launch { outline: 3px solid #fff; outline-offset: 3px; }
.wa-head { background: linear-gradient(135deg, #075e54, #128c7e); color: #fff; padding: 13px 15px; display: flex; align-items: center; gap: 10px; }
.wa-head .av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.wa-head .av img { width: 30px; height: 30px; object-fit: contain; }
.wa-head b { font-size: .95rem; line-height: 1.1; }
.wa-head small { font-size: .74rem; color: #d3f3e6; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.wa-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7ef0b0; display: inline-block; }
.wa-head .x { margin-inline-start: auto; color: #fff; font-size: 1.45rem; line-height: 1; cursor: pointer; opacity: .85; }
.wa-head .x:hover { opacity: 1; }
.wa-body { background: #e6ddd4; padding: 18px 14px 20px; }
.wa-bubble { background: #fff; border-radius: 2px 12px 12px 12px; padding: 9px 12px; font-size: .88rem; color: #222;
  box-shadow: 0 1px 1px rgba(0,0,0,.1); max-width: 250px; line-height: 1.45; }
.wa-bubble .nm { color: #128c7e; font-weight: 700; font-size: .76rem; display: block; margin-bottom: 2px; }
.wa-foot { padding: 12px; }
.wa-start { display: flex; align-items: center; justify-content: center; gap: 8px; background: #25d366; color: #fff;
  font-weight: 600; padding: .72rem; border-radius: 11px; text-decoration: none; font-size: .9rem; }
.wa-start:hover { background: #1eb858; }
.wa-start svg { width: 18px; height: 18px; }
[dir="rtl"] .wa-widget { right: auto; left: 18px; align-items: flex-start; }
[dir="rtl"] .wa-panel { transform-origin: bottom left; }
[dir="rtl"] .wa-bubble { border-radius: 12px 2px 12px 12px; }

/* ============================================================
   Assistant IA FAC — chatbox premium (sobre, corporate, inspiration Big Four)
   ============================================================ */
.fac-bot { position: fixed; right: 20px; bottom: 20px; z-index: 96; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-family: var(--sans); }

/* --- Bouton flottant (fermé) --- */
.fac-bot-launch { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy, #003366); display: grid; place-items: center;
  box-shadow: 0 10px 26px -10px rgba(0,28,56,.55); transition: transform .22s var(--fac-ease, cubic-bezier(.22,.61,.36,1)), box-shadow .25s ease, background .2s ease; }
.fac-bot-launch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid rgba(0,128,64,0); transition: border-color .25s ease; }
.fac-bot-launch:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 16px 34px -12px rgba(0,28,56,.6); }
.fac-bot-launch:hover::after { border-color: rgba(0,128,64,.45); }
.fac-bot-launch:active { transform: translateY(0) scale(1); }
.fac-bot-launch:focus-visible { outline: 3px solid var(--green, #008040); outline-offset: 3px; }
.fac-bot-ico { width: 34px; height: 34px; object-fit: contain; }
.fac-bot.open .fac-bot-launch { background: var(--navy-700, #002a52); }
.fac-bot-dot { position: absolute; top: 1px; right: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--green, #008040); box-shadow: 0 0 0 2.5px #fff; font-size: 0; color: transparent; }
.fac-bot.seen .fac-bot-dot, .fac-bot.open .fac-bot-dot { display: none; }

/* --- Fenêtre (ouverte) --- */
.fac-bot-panel { width: 360px; max-width: calc(100vw - 36px); height: 520px; max-height: calc(100vh - 116px);
  background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -22px rgba(0,28,56,.40); border: 1px solid rgba(0,28,56,.10);
  transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none; transform-origin: bottom right;
  transition: transform .26s var(--fac-ease, cubic-bezier(.22,.61,.36,1)), opacity .26s ease; }
.fac-bot.open .fac-bot-panel { transform: none; opacity: 1; pointer-events: auto; }

.fac-bot-head { background: var(--navy, #003366); color: #fff; padding: 15px 16px; display: flex; align-items: center; gap: 12px; }
.fac-bot-av { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fac-bot-av img { width: 28px; height: 28px; object-fit: contain; }
.fac-bot-id { line-height: 1.25; }
.fac-bot-id b { font-family: var(--serif); font-size: 1.04rem; font-weight: 700; letter-spacing: .01em; }
.fac-bot-id small { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: #aabfd8; margin-top: 2px; }
.fac-bot-id small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #57e08e; animation: facPulse 2.4s infinite; }
.fac-bot-x { margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%; background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; opacity: .85; display: grid; place-items: center; transition: background .18s ease, opacity .18s ease; }
.fac-bot-x:hover { opacity: 1; background: rgba(255,255,255,.12); }
@keyframes facPulse { 0% { box-shadow: 0 0 0 0 rgba(87,224,142,.5); } 70% { box-shadow: 0 0 0 6px rgba(87,224,142,0); } 100% { box-shadow: 0 0 0 0 rgba(87,224,142,0); } }

.fac-bot-body { flex: 1; overflow-y: auto; padding: 18px 16px; background: #f7f8fa; display: flex; flex-direction: column; gap: 12px; }
.fac-msg { max-width: 85%; display: flex; }
.fac-msg.bot { align-self: flex-start; }
.fac-msg.user { align-self: flex-end; }
.fac-msg-b { padding: 11px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.55; white-space: normal; }
.fac-msg.bot .fac-msg-b { background: #fff; color: #283443; border: 1px solid rgba(0,28,56,.08); border-bottom-left-radius: 5px; text-align: left; }
.fac-msg.user .fac-msg-b { background: var(--navy, #003366); color: #fff; border-bottom-right-radius: 5px; }
.fac-msg-b a { color: var(--green-600, #006f37); font-weight: 600; word-break: break-word; }
.fac-msg.user .fac-msg-b a { color: #bfe6cf; }
.fac-msg.bot .fac-msg-b strong { color: var(--navy, #003366); }
.fac-msg.typing { background: #fff; border: 1px solid rgba(0,28,56,.08); border-radius: 14px; border-bottom-left-radius: 5px; padding: 13px 15px; gap: 4px; }
.fac-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b4; display: inline-block; animation: facBlink 1.2s infinite both; }
.fac-msg.typing span:nth-child(2) { animation-delay: .2s; }
.fac-msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes facBlink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.fac-bot-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px 6px; background: #f7f8fa; }
.fac-chip { border: 1px solid rgba(0,28,56,.14); background: #fff; color: var(--navy, #003366); border-radius: 100px;
  padding: 7px 13px; font-size: .79rem; font-weight: 600; cursor: pointer; font-family: var(--sans);
  transition: background .18s ease, color .18s ease, border-color .18s ease; }
.fac-chip:hover { background: var(--navy, #003366); color: #fff; border-color: var(--navy, #003366); }

.fac-bot-input { display: flex; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid rgba(0,28,56,.08); background: #fff; }
.fac-bot-input input { flex: 1; border: 1px solid rgba(0,28,56,.14); border-radius: 100px; padding: 11px 16px; font-size: .9rem; font-family: var(--sans); color: #1b2430; background: #fbfcfd; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.fac-bot-input input::placeholder { color: #97a1ad; }
.fac-bot-input input:focus { outline: none; border-color: var(--navy, #003366); background: #fff; box-shadow: 0 0 0 3px rgba(0,51,102,.10); }
.fac-bot-input button { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green, #008040); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .18s ease, transform .18s ease; }
.fac-bot-input button:hover { background: var(--green-600, #006f37); transform: translateY(-1px); }
.fac-bot-input button:active { transform: translateY(0); }
.fac-bot-input button:focus-visible { outline: 3px solid var(--navy, #003366); outline-offset: 2px; }
.fac-bot-input button svg { width: 18px; height: 18px; }

.fac-bot-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 12px 10px; padding: 10px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(0,28,56,.14); color: #1a8a4f; font-size: .84rem; font-weight: 600; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.fac-bot-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.fac-bot-wa svg { width: 17px; height: 17px; }
.fac-bot-note { font-size: .68rem; color: #8a94a2; text-align: center; padding: 0 16px 12px; line-height: 1.45; }

[dir="rtl"] .fac-bot { right: auto; left: 20px; align-items: flex-start; }
[dir="rtl"] .fac-bot-panel { transform-origin: bottom left; }
[dir="rtl"] .fac-bot-dot { right: auto; left: 1px; }

@media (max-width: 480px) {
  .fac-bot { right: 14px; bottom: 14px; }
  .fac-bot-panel { width: calc(100vw - 20px); height: calc(100vh - 92px); }
}
@media (prefers-reduced-motion: reduce) {
  .fac-bot-launch, .fac-bot-launch:hover, .fac-bot-input button:hover { transform: none; }
  .fac-bot-panel { transition: opacity .2s ease; transform: none; }
  .fac-msg.typing span, .fac-bot-id small::before { animation: none; }
}

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .primary-nav {
    position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem clamp(1.1rem, 4vw, 2.2rem) 1.6rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; gap: .15rem; }
  .primary-nav a.nav-link { padding: .8rem .5rem; font-size: 1rem; border-bottom: 1px solid var(--bg-soft); border-radius: 0; }
  .primary-nav a.nav-link[aria-current="page"]::after { display: none; }
  .nav-utility { margin-top: 1.1rem; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .inst-grid, .cred-grid { grid-template-columns: 1fr; }
  .cred-grid { gap: 1.6rem; text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn, .cta-band .btn { width: 100%; justify-content: center; }
}

/* ---------- Polices par langue (CJK / Arabe) ---------- */
html[lang="zh"] {
  --serif: "Bookman Old Style", "Noto Sans SC", Georgia, serif;
  --sans:  "Bookman Old Style", "Noto Sans SC", system-ui, sans-serif;
}
html[lang="ar"] {
  --serif: "Bookman Old Style", "Noto Naskh Arabic", Georgia, serif;
  --sans:  "Bookman Old Style", "Noto Naskh Arabic", system-ui, sans-serif;
}
/* L'arabe : pas de césure, justification conservée */
html[lang="ar"] p { hyphens: manual; -webkit-hyphens: manual; }

/* ---------- Mise en page droite-à-gauche (Arabe) ---------- */
[dir="rtl"] .nav-utility, [dir="rtl"] .header-inner { direction: rtl; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .pillar-card .pillar-list li { padding-left: 0; padding-right: 1.3rem; }
[dir="rtl"] .pillar-card .pillar-list li::before { left: auto; right: 0; }
[dir="rtl"] .sector-group h3, [dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .notice { border-left: 0; border-right: 4px solid var(--green); border-radius: 10px 0 0 10px; }
[dir="rtl"] .founder-photo figcaption { border-left: 0; border-right: 3px solid var(--green); padding-left: 0; padding-right: .9rem; }
[dir="rtl"] .founder-photo .fp-stage::after { right: auto; left: 8px; }
[dir="rtl"] .media-card::after, [dir="rtl"] .hero::before { right: auto; left: -2%; transform: scaleX(-1); }
[dir="rtl"] .inst-grid dt, [dir="rtl"] .step p, [dir="rtl"] .card p { text-align: right; }
[dir="rtl"] .footer-bottom { direction: rtl; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  #globalWatermark .wm-horse { animation: none !important; transform: rotateY(18deg); }
  #globalWatermark .wm-stage { animation: none !important; }
}

/* Lien Itinéraire sous la carte Contact */
.map-link{display:inline-flex;align-items:center;gap:7px;margin-top:10px;font-size:.9rem;font-weight:600;color:var(--green);text-decoration:none}
.map-link:hover{color:var(--navy)}
.map-link svg{width:18px;height:18px;flex:0 0 auto}
[dir="rtl"] .map-link{flex-direction:row-reverse}


/* ============================================================
   Premium UX — micro-interactions raffinées + curseur de marque (additif & sobre).
   N'altère ni la structure, ni les textes, ni les couleurs, ni la hiérarchie.
   Respecte prefers-reduced-motion, la navigation clavier et le tactile.
   ============================================================ */
:root{ --fac-ease: cubic-bezier(.22,.61,.36,1); --fac-dur:.26s; }

/* Défilement fluide des ancres (sauf si l'utilisateur réduit les animations) */
@media (prefers-reduced-motion: no-preference){ html{ scroll-behavior: smooth; } }

/* Boutons — légère élévation au survol (s'ajoute à l'effet d'appui existant) */
.btn{ transition: background-color var(--fac-dur) var(--fac-ease), border-color var(--fac-dur) var(--fac-ease), color var(--fac-dur) var(--fac-ease), transform var(--fac-dur) var(--fac-ease), box-shadow var(--fac-dur) var(--fac-ease); }
.btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,28,56,.14); }
.btn:active{ transform: translateY(0); box-shadow: none; }

/* Cartes — élévation subtile au survol */
.media-card, .pillar-card{ transition: transform var(--fac-dur) var(--fac-ease), box-shadow var(--fac-dur) var(--fac-ease), border-color var(--fac-dur) var(--fac-ease); }
.media-card:hover, .pillar-card:hover{ transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,28,56,.07), 0 20px 44px rgba(0,28,56,.10); }

/* Header — ombre douce qui apparaît au défilement (header déjà collant) */
.site-header{ transition: box-shadow var(--fac-dur) var(--fac-ease); }
.site-header.is-scrolled{ box-shadow: 0 6px 24px rgba(0,28,56,.07); }

/* Focus clavier net (complète l'existant) */
input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .lang-switch:focus-visible{ outline: 3px solid var(--green); outline-offset: 2px; }

/* ---- Curseur de marque (desktop, pointeur fin uniquement) ---- */
.fac-cursor-dot, .fac-cursor-ring{ position: fixed; left:0; top:0; pointer-events:none; z-index:9999; border-radius:50%; opacity:0; will-change: transform, opacity; }
.fac-cursor-dot{ width:7px; height:7px; margin:-3.5px 0 0 -3.5px; background: var(--green); transition: opacity .3s ease; }
.fac-cursor-ring{ width:34px; height:34px; margin:-17px 0 0 -17px; border:1.5px solid var(--navy); transition: width .25s var(--fac-ease), height .25s var(--fac-ease), margin .25s var(--fac-ease), border-color .25s var(--fac-ease), background-color .25s var(--fac-ease), opacity .3s ease; }
.fac-cursor-ring.is-hover{ width:52px; height:52px; margin:-26px 0 0 -26px; border-color: var(--green); background: rgba(0,128,64,.05); }
body.fac-cursor-on, body.fac-cursor-on a, body.fac-cursor-on button, body.fac-cursor-on .btn, body.fac-cursor-on summary, body.fac-cursor-on label, body.fac-cursor-on [role="button"]{ cursor: none; }
body.fac-cursor-on input, body.fac-cursor-on textarea, body.fac-cursor-on select{ cursor: auto; }

/* Tactile : aucun curseur personnalisé */
@media (hover: none), (pointer: coarse){
  .fac-cursor-dot, .fac-cursor-ring{ display: none !important; }
  body.fac-cursor-on, body.fac-cursor-on a, body.fac-cursor-on button, body.fac-cursor-on .btn{ cursor: auto !important; }
}
/* Mouvement réduit : pas d'animation ni de curseur custom */
@media (prefers-reduced-motion: reduce){
  .fac-cursor-dot, .fac-cursor-ring{ display: none !important; }
  body.fac-cursor-on{ cursor: auto !important; }
  .btn:hover, .media-card:hover, .pillar-card:hover{ transform: none; box-shadow: none; }
}
