/* Horatys, site public. Charte : skill « horatys-marque ».
   Rythme clair : Egyptian Blue en aplat pour ouvrir l'accueil, Stone Blue clair pour les en-têtes de page,
   blanc pour lire, Egyptian Blue pour conclure, bleu marine au pied de page. Pas de fond noir.
   Une seule grande page : le menu horizontal, toujours visible, mène aux sections. Jamais de menu à trois traits.
   Le Scarlet Red ne sert qu'au trait de l'onglet actif du menu. Aucun point rouge. */
:root {
  color-scheme: light;
  --egyptian: #1034A6;
  --egyptian-deep: #0B2580;
  --hero-mid: #0D2B92;
  --hero-end: #0A1F6B;
  --stone: #7B9AAB;
  --stone-light: #A9BFCB;
  --stone-soft: #D9E4EA;
  --navy: #0A1230;
  --mist: #F1F5F8;
  --white: #FFFFFF;
  --scarlet: #FF2400;
  --text: #0B1020;
  --muted: #4A586E;
  --line: #D5DEE6;
  --on-dark-soft: #9DB8C8;
  --on-blue: #DCE6F2;
  /* Police du site de référence : la police système de l'appareil. */
  --display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(10, 18, 48, 0.04), 0 14px 34px -14px rgba(10, 18, 48, 0.14);
  --shadow-up: 0 2px 4px rgba(10, 18, 48, 0.05), 0 26px 50px -18px rgba(16, 52, 166, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; flex: none; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--egyptian); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .cta :focus-visible, .footer :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Apparition au défilement (active seulement si le script tourne) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
.js .reveal.d4 { transition-delay: .32s; }
.js .card.reveal { transition: opacity .7s var(--ease), transform .45s var(--ease), border-color .3s, box-shadow .3s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--egyptian) 0%, var(--egyptian-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(16, 52, 166, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(16, 52, 166, 0.4); }
.btn-white { background: var(--white); color: var(--egyptian); box-shadow: 0 10px 26px rgba(10, 18, 48, 0.22); }
.btn-white:hover { background: var(--mist); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.16); }
.btn-line { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-line:hover { border-color: var(--stone); background: var(--mist); }
.btn-small { padding: 10px 18px; font-size: 0.94rem; }

/* ---------- Menu horizontal, toujours visible ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 11px; color: var(--navy);
  font-family: var(--display); font-weight: 800; font-size: 1.42rem; letter-spacing: -0.02em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative; padding: 25px 0;
  font-weight: 500; font-size: 0.96rem; color: var(--muted); white-space: nowrap;
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 17px; height: 2px; border-radius: 2px;
  background: var(--scarlet); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover, .nav a[aria-current] { color: var(--navy); }
.nav a[aria-current]::after { transform: scaleX(1); }

/* ---------- Accueil : ouverture ---------- */
.hero {
  position: relative; padding: clamp(64px, 9vw, 104px) 0 clamp(64px, 8vw, 96px); text-align: center; overflow: hidden;
  color: var(--white);
  background: linear-gradient(160deg, var(--egyptian) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 420px at 88% 8%, rgba(123, 154, 171, 0.55), transparent 70%),
    radial-gradient(560px 400px at 8% 0%, rgba(169, 191, 203, 0.28), transparent 70%),
    radial-gradient(700px 420px at 50% 110%, rgba(123, 154, 171, 0.35), transparent 70%);
}
.hero > .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center;
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem; font-weight: 500; color: var(--white);
}
.hero h1 {
  max-width: 880px; margin: 26px auto 0;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}
.hero h1 .tint { color: var(--stone-light); }
.hero .sub { max-width: 620px; margin: 24px auto 0; color: var(--on-blue); font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--on-blue); }

/* Panneau d'exemple */
.demo {
  max-width: 900px; margin: clamp(48px, 7vw, 76px) auto 0; text-align: left;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(5, 7, 15, 0.45);
}
.demo-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tag { font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; }
.tabs button {
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; color: var(--muted);
  transition: background .2s, color .2s;
}
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { background: var(--egyptian); color: var(--white); }
.demo-body { display: grid; grid-template-columns: 0.72fr 1.28fr; }
.demo-col { padding: 26px 24px; }
.demo-col + .demo-col { border-left: 1px solid var(--line); background: #FAFCFD; }
.demo-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.demo-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.notes { display: grid; gap: 10px; margin-top: 20px; }
.notes span { display: block; height: 7px; border-radius: 4px; background: var(--stone-soft); }
.out { display: grid; gap: 10px; margin-top: 4px; min-height: 168px; align-content: start; }
.out li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  font-weight: 600; font-size: 0.97rem; color: var(--navy);
}
.out li svg { color: var(--egyptian); }
.out li .state { margin-left: auto; font-size: 0.76rem; font-weight: 600; color: var(--egyptian); background: #E7ECFA; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.demo-foot { display: flex; align-items: center; gap: 10px; padding: 15px 24px; background: var(--stone-soft); color: var(--navy); font-weight: 600; font-size: 0.96rem; }
.demo-foot svg { color: var(--egyptian); }

@media (prefers-reduced-motion: no-preference) {
  .out.play li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * .28s + .2s); }
  @keyframes rise { from { opacity: .1; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- En-tête des pages intérieures ---------- */
.page-head {
  text-align: center;
  background: linear-gradient(180deg, var(--stone-soft) 0%, #E4ECF0 100%);
  border-bottom: 4px solid rgba(123, 154, 171, 0.55);
  padding-block: clamp(52px, 8vw, 92px);
}
.page-head .inner { max-width: 780px; margin-inline: auto; }
.page-head h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--navy); }
.page-head h1 span { display: inline-block; }
.page-head .lead { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.page-head .actions { margin-top: 30px; }
.page-head .updated { margin-top: 16px; color: var(--muted); font-size: 0.98rem; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 108px); }
.section-tight { padding-top: 0; }
.section-mist { background: var(--mist); }
.section-stone { background: linear-gradient(180deg, var(--stone-soft) 0%, #E4ECF0 100%); border-block: 4px solid rgba(123, 154, 171, 0.55); }
.head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker {
  display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 999px;
  background: var(--stone-soft); color: var(--egyptian);
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.page-head .kicker, .section-mist .kicker, .section-stone .kicker { background: var(--white); }
.head h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--navy); }
.head p { margin-top: 18px; color: var(--muted); font-size: 1.12rem; }

.card {
  display: block;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  padding: 30px 28px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--stone); box-shadow: var(--shadow-up); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin-inline: auto; }
.card h3 { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.card p { margin-top: 10px; color: var(--muted); }
.card .tag { display: block; margin-bottom: 14px; }
.top-stone { border-top: 4px solid var(--stone); }
.num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px;
  background: var(--stone-soft); color: var(--egyptian);
  font-family: var(--mono); font-weight: 500; font-size: 0.9rem;
}
/* Cartes de l'accueil qui mènent aux pages */
.door .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--egyptian); font-weight: 600; font-size: 0.98rem; }
.door .more svg { transition: transform .2s; }
.door:hover .more svg { transform: translateX(3px); }
/* Liste « donné, préparé » de la page Démonstration */
.gives { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.gives li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.97rem; color: var(--navy); }
.gives li svg { color: var(--egyptian); }

.statement {
  max-width: 16em; margin: clamp(56px, 7vw, 84px) auto 0; text-align: center;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy);
}
.statement span { color: var(--egyptian); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 36px; margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.principle h3 { display: flex; align-items: flex-start; gap: 10px; font-family: var(--body); font-weight: 600; font-size: 1.04rem; line-height: 1.35; letter-spacing: 0; text-wrap: wrap; color: var(--navy); }
.principle h3 svg { color: var(--stone); margin-top: 2px; }
.principle p { margin-top: 8px; padding-left: 30px; color: var(--muted); font-size: 0.98rem; }
.refusals { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.refusals li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--navy); font-weight: 500; }
.refusals li svg { color: var(--stone); margin-top: 3px; }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--mist);
  color: var(--muted); font-size: 0.98rem;
}
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--stone); flex: none; }
.facts li.strong { color: var(--navy); font-weight: 600; border-color: var(--stone-light); background: var(--white); }
.center { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 44px); }

/* ---------- Bandeau final ---------- */
.closing { padding-bottom: clamp(72px, 9vw, 112px); }
.closing.spaced { padding-top: clamp(64px, 9vw, 108px); }
.cta {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(52px, 8vw, 92px) var(--gutter);
  background: linear-gradient(155deg, var(--egyptian) 0%, var(--hero-mid) 55%, var(--hero-end) 100%);
  box-shadow: 0 34px 70px -24px rgba(16, 52, 166, 0.5);
}
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 340px at 85% 0%, rgba(123, 154, 171, 0.55), transparent 70%), radial-gradient(480px 300px at 10% 100%, rgba(169, 191, 203, 0.25), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { margin-inline: auto; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta h2 span { display: inline-block; }
.cta .sub { max-width: 34em; margin: 18px auto 0; color: var(--on-blue); font-size: 1.14rem; }
.contact-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 26px; color: var(--on-blue); font-size: 0.98rem; }
.contact-lines a { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.4); }
.contact-lines a:hover { text-decoration-color: var(--white); }

/* ---------- Pages légales ---------- */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); line-height: 1.65; }
.doc a { color: var(--egyptian); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--egyptian-deep); }
.doc h2 { margin: 2.4em 0 0.6em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-size: 1.45rem; color: var(--navy); }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc ul, .doc dl, .doc .table { margin: 0 0 1em; }
.doc ul { padding-left: 1.2em; list-style: disc; }
.doc li { margin-bottom: 0.4em; }
.doc li::marker { color: var(--stone); }
.doc dl { display: grid; grid-template-columns: minmax(150px, 0.38fr) 1fr; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.doc dt, .doc dd { padding: 12px 16px; border-top: 1px solid var(--line); }
.doc dt { background: var(--mist); font-weight: 600; color: var(--navy); }
.doc dt:first-of-type, .doc dt:first-of-type + dd { border-top: 0; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 560px; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { border-top: 0; background: var(--mist); color: var(--navy); font-weight: 600; }
.note { padding: 16px 18px; border-radius: 14px; border-left: 4px solid var(--stone); background: var(--mist); color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); padding-block: 40px; color: var(--on-dark-soft); font-size: 0.93rem; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.footer .brand { display: grid; gap: 12px; }
.footer .logo { color: var(--white); font-size: 1.25rem; }
.footer .brand p { max-width: 30em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer nav a:hover, .footer .legal a:hover { color: var(--white); }
.footer .legal { display: flex; flex-wrap: wrap; gap: 8px 26px; flex-basis: 100%; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; }

/* ---------- Écrans étroits : le menu reste horizontal, sur une deuxième ligne ---------- */
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; row-gap: 0; padding-top: 12px; min-height: 0; }
  .nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 14px 0 13px; font-size: 0.95rem; }
  .nav a::after { bottom: 7px; }
  section[id] { scroll-margin-top: 108px; }
  .grid-3, .grid-2, .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo { font-size: 1.25rem; }
  .header .btn-small { padding: 9px 14px; font-size: 0.88rem; }
  .eyebrow { font-size: 0.8rem; padding-inline: 14px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--line); }
  .notes span:nth-child(n+4) { display: none; }
  .out { min-height: 0; }
  .tabs { width: 100%; }
  .tabs button { flex: 1 1 auto; padding: 8px 6px; font-size: 0.84rem; white-space: nowrap; }
  .actions .btn { flex: 1 1 100%; }
  .facts li { border-radius: 14px; }
  .doc dl { grid-template-columns: 1fr; }
  .doc dd { border-top: 0; padding-top: 0; }
  .doc dt { background: none; padding-bottom: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .js .reveal { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
