/* ============================================================
   ETHIKA · charte 2.0 appliquée aux landing pages /formations/
   Même identité que le site : Poppins (la voix), Inter (le texte),
   Forest pour les surfaces sombres, Émeraude pour l'action sur clair,
   Ambre pour l'appel principal sur Forest, Or réservé au logo.
   Polices auto-hébergées : aucune requête vers un service tiers.
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --emerald: #076A3B;
  --emerald-deep: #05542E;
  --amber-deep: #7D5A11;
  --sand: #6A5E4D;
  --card: #FFFDF8;
}

body {
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: clip;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  letter-spacing: -0.025em;
}

/* Titre en deux temps (charte, principe 2) : la seconde moitié change de couleur, sans italique. */
h1 em,
h2 em,
h3 em {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

::selection {
  background: #F2C35A;
  color: #1C281E;
}

/* ---------- Bandeau ETHIKA : Forest + logo officiel inversé ---------- */
.topbar {
  background: var(--forest);
  padding: 12px 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.topbar-brand .eth-logo {
  display: block;
  height: 26px;
  width: auto;
}

.topbar-back {
  font-family: var(--font-display);
  font-weight: 500;
  color: rgba(255, 253, 248, 0.82);
}

.topbar-back:hover {
  color: #F2C35A;
}

.topbar :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.ftr-lp :focus-visible {
  outline-color: #F2C35A;
}

/* ---------- Héros : voile Forest (charte : inversé sur Forest) ---------- */
.hero,
.page-hero {
  background-color: var(--forest);
}

.hero::before {
  display: none;
}

.hero h1 em,
.page-hero h1 em {
  color: #F2C35A;
}

.hero-badge,
.page-hero-badge {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
}

.hero-stat-n,
.institution-fact-n {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Boutons ---------- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 10px;
  min-height: 48px;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

/* Appel principal : Ambre, texte Encre (5,4:1), comme la barre d'appel de la charte. */
.btn--primary {
  background: var(--accent);
  color: #1C281E;
}

.btn--primary:hover {
  background: #B47F14;
  box-shadow: none;
}

/* Action sur fond clair : Émeraude (Forest et Émeraude ne se touchent jamais). */
.btn--forest {
  background: var(--emerald);
  color: #fff;
}

.btn--forest:hover {
  background: var(--emerald-deep);
}

.btn--dark {
  background: #1C281E;
}

/* ---------- Surtitres et étiquettes ---------- */
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--amber-deep);
}

.hero .kicker,
.page-hero .kicker {
  color: #F2C35A;
}

/* ---------- Pied de page ---------- */
.ftr-lp {
  background: var(--forest);
}

.ftr-lp-brand {
  display: inline-flex;
  align-items: center;
}

.ftr-lp-brand .eth-logo {
  display: block;
  height: 22px;
  width: auto;
  opacity: 1;
}

.ftr-lp-brand svg {
  opacity: 1;
}

/* ---------- Mouvement (ethika-motion-v1.js) ----------
   Le contenu est visible par défaut. Le script ne met en attente que les blocs encore
   sous la ligne de flottaison, puis les révèle une fois ; rien sans JavaScript. */
[data-eth-reveal='pending'] {
  opacity: 0;
  transform: translateY(22px);
}

[data-eth-reveal='in'] {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--eth-delay, 0ms);
}

.eth-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  pointer-events: none;
}

.eth-progress span {
  display: block;
  height: 100%;
  background: #C88F1B;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-eth-reveal='pending'] {
    opacity: 1;
    transform: none;
  }

  .eth-progress {
    display: none;
  }
}

/* Titres : Poppins n'a pas d'italique chargée (une italique simulée déforme les lettres) ;
   la mise en valeur passe par la couleur, comme le veut la charte. */
.hero h1 em,
.page-hero h1 em,
h1 em,
h2 em,
h3 em,
[class*='title'] em,
[class*='band'] em {
  font-style: normal !important;
}

/* Surfaces sombres : Forest (charte p. 6), jamais l'Encre en aplat. */
.promise,
.momentum-band-media,
.outcomes-band-media {
  background-color: var(--forest);
}

.promise .kicker {
  color: #F2C35A;
}
