/* =====================================================================
   EDERLÉ FORMATION — Vitrine publique
   CSS minimal indépendant de Bulma (page indexable, légère).
   ===================================================================== */

/* --- Reset html (fallback no-js : tout reste visible) --- */
html.no-js .efv-hero .efv-badge,
html.no-js .efv-hero .efv-h1,
html.no-js .efv-hero .efv-lead,
html.no-js .efv-hero .efv-cta,
html.no-js .efv-stat,
html.no-js .efv-eyebrow,
html.no-js .efv-section .efv-h2,
html.no-js .efv-feature,
html.no-js .efv-formation,
html.no-js .gq-hero__badges,
html.no-js .gq-hero__title,
html.no-js .gq-hero__lead,
html.no-js .gq-tabs__link,
html.no-js .gq-criterion__badge,
html.no-js .gq-criterion__heading,
html.no-js .gq-principle,
html.no-js .gq-section,
html.no-js .gq-practice,
html.no-js .gq-cycle__step,
html.no-js .gq-cta__title,
html.no-js .gq-cta p,
html.no-js .gq-cta__buttons { opacity: 1; transform: none; }

/* --- Avec JS : on cache les éléments avant entrée dans le viewport --- */
html.js-motion .efv-hero .efv-badge,
html.js-motion .efv-hero .efv-h1,
html.js-motion .efv-hero .efv-lead,
html.js-motion .efv-hero .efv-cta,
html.js-motion .efv-stat,
html.js-motion .efv-eyebrow,
html.js-motion .efv-section .efv-h2,
html.js-motion .efv-feature,
html.js-motion .efv-formation,
html.js-motion .gq-hero__badges,
html.js-motion .gq-hero__title,
html.js-motion .gq-hero__lead,
html.js-motion .gq-tabs__link,
html.js-motion .gq-criterion__badge,
html.js-motion .gq-criterion__heading,
html.js-motion .gq-principle,
html.js-motion .gq-section,
html.js-motion .gq-practice,
html.js-motion .gq-cycle__step,
html.js-motion .gq-cta__title,
html.js-motion .gq-cta p,
html.js-motion .gq-cta__buttons { opacity: 0; will-change: opacity, transform; }

/* --- prefers-reduced-motion : on rétablit tout, pas d'anim --- */
html.reduced-motion .efv-hero .efv-badge,
html.reduced-motion .efv-hero .efv-h1,
html.reduced-motion .efv-hero .efv-lead,
html.reduced-motion .efv-hero .efv-cta,
html.reduced-motion .efv-stat,
html.reduced-motion .efv-eyebrow,
html.reduced-motion .efv-section .efv-h2,
html.reduced-motion .efv-feature,
html.reduced-motion .efv-formation,
html.reduced-motion .gq-hero__badges,
html.reduced-motion .gq-hero__title,
html.reduced-motion .gq-hero__lead,
html.reduced-motion .gq-tabs__link,
html.reduced-motion .gq-criterion__badge,
html.reduced-motion .gq-criterion__heading,
html.reduced-motion .gq-principle,
html.reduced-motion .gq-section,
html.reduced-motion .gq-practice,
html.reduced-motion .gq-cycle__step,
html.reduced-motion .gq-cta__title,
html.reduced-motion .gq-cta p,
html.reduced-motion .gq-cta__buttons { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --emerald:       #0A3D2F;
  --emerald-light: #12664E;
  --lime:          #C8E64A;
  --orange:        #F26522;
  --orange-light:  #FF8A50;
  --cream:         #FAF7F2;
  --sand:          #EDE8DF;
  --charcoal:      #1A1A1A;
  --slate:         #4A5568;
  --white:         #FFFFFF;
  --green:         #38A169;
  --red:           #E53E3E;

  --font-heading:  'Bebas Neue', 'Arial Black', sans-serif;
  --font-body:     'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* --- Skip link (RGAA AA) : masqué visuellement, visible au focus clavier --- */
.efv-skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--emerald); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 6px 0;
  font-weight: 600; text-decoration: none;
  z-index: 100000;
}
.efv-skip-link:focus,
.efv-skip-link:focus-visible {
  position: absolute; left: 0; top: 0;
  width: auto; height: auto; overflow: visible;
  outline: 3px solid var(--lime); outline-offset: 0;
}
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}
::selection { background: var(--lime); color: var(--emerald); }
img { max-width: 100%; height: auto; }
a { color: var(--emerald); }

.efv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Brand --- */
.efv-brand        { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.efv-brand__mark  {
  width: 32px; height: 32px;
  background: var(--lime); color: var(--emerald);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 18px; font-weight: 700;
  transform-origin: center;
}
.efv-brand__text { font-family: var(--font-heading); font-size: 22px; letter-spacing: 2px; color: var(--white); }

.efv-badge {
  display: inline-block; padding: 3px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--lime); color: var(--emerald);
}
.efv-badge--orange { background: var(--orange);       color: var(--white); }
.efv-badge--lime   { background: rgba(200,230,74,.2); color: var(--emerald); }
.efv-badge--green  { background: var(--green);        color: var(--white); }

/* --- Scroll progress (lime fill in top of viewport) --- */
.efv-scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}

/* --- Header --- */
.efv-header {
  background: var(--emerald);
  border-bottom: 3px solid var(--lime);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.efv-header.is-scrolled {
  background: rgba(10, 61, 47, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.efv-header__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
  transition: height 0.25s ease;
}
.efv-header.is-scrolled .efv-header__inner { height: 56px; }
.efv-nav {
  display: flex; align-items: center; gap: 18px;
}
.efv-nav a {
  color: rgba(255,255,255,0.78);
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.efv-nav a:hover { color: var(--lime); }

/* --- Buttons --- */
.efv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase;
  background: transparent; color: var(--emerald);
  border: 2px solid var(--emerald);
  cursor: pointer; text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  position: relative; overflow: hidden;
  will-change: transform;
}
.efv-btn:hover    { transform: translateY(-1px); }
.efv-btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.efv-btn--primary:hover { background: var(--orange-light); }
.efv-btn--ghost {
  border-color: rgba(255,255,255,0.3); color: var(--white); background: transparent;
}
.efv-btn--ghost:hover { background: rgba(255,255,255,0.08); }
.efv-btn--small  { padding: 8px 14px; font-size: 12px; }
.efv-btn--large  { padding: 14px 32px; font-size: 15px; }

/* --- Typo --- */
.efv-h1 {
  font-family: var(--font-heading); font-size: 56px; line-height: 1.05;
  letter-spacing: 3px; color: var(--white); margin: 16px 0 0;
}
.efv-h1__accent {
  color: var(--lime); display: inline-block;
  background-image: linear-gradient(120deg, rgba(200,230,74,0.22) 0%, rgba(200,230,74,0.22) 100%);
  background-repeat: no-repeat;
  background-size: 100% 12px;
  background-position: 0 88%;
  padding: 0 4px;
}
html.js-motion .efv-h1__accent { background-size: 0% 12px; }
html.reduced-motion .efv-h1__accent { background-size: 100% 12px !important; }
.efv-h2 {
  font-family: var(--font-heading); font-size: 36px;
  letter-spacing: 2px; color: var(--emerald); margin: 12px 0 32px;
}
.efv-eyebrow {
  display: inline-block; font-family: var(--font-heading);
  font-size: 13px; letter-spacing: 3px; color: var(--orange);
  border-left: 28px solid var(--orange); padding-left: 12px; margin-left: -40px;
}
.efv-lead {
  font-size: 17px; color: rgba(255,255,255,0.75);
  max-width: 580px; line-height: 1.65; margin-top: 20px;
}
.efv-lead--center { color: var(--slate); margin: 20px auto 32px; text-align: center; }
.efv-muted { color: var(--slate); font-size: 13px; }

/* --- Hero --- */
.efv-hero {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-light) 60%, var(--emerald) 100%);
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
  isolation: isolate;
}
/* Halo lumineux animé en fond du hero */
.efv-hero::before,
.efv-hero::after {
  content: ""; position: absolute; z-index: 0;
  border-radius: 50%; filter: blur(60px); opacity: 0.55;
  pointer-events: none;
}
.efv-hero::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -180px; right: -120px;
  animation: efv-float-a 18s ease-in-out infinite;
}
.efv-hero::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  bottom: -160px; left: -80px; opacity: 0.35;
  animation: efv-float-b 22s ease-in-out infinite;
}
@keyframes efv-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes efv-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -30px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .efv-hero::before, .efv-hero::after { animation: none; }
}
.efv-hero__inner { position: relative; z-index: 1; max-width: 900px; }
.efv-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --- Stats bar --- */
.efv-stats {
  background: var(--sand);
  border-bottom: 1px solid var(--sand);
}
.efv-stats__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--sand);
}
.efv-stat {
  background: var(--white); padding: 24px 20px;
  border-bottom: 3px solid var(--lime);
  text-align: left;
  transition: transform 0.25s ease, border-bottom-color 0.25s ease;
}
.efv-stat:hover { transform: translateY(-3px); border-bottom-color: var(--orange); }
.efv-stat i {
  font-size: 22px; margin-right: 8px; vertical-align: middle;
}
.efv-stat strong {
  font-family: var(--font-heading); font-size: 28px;
  color: var(--emerald); letter-spacing: 1px;
  display: block; margin-top: 4px;
}

/* --- Sections --- */
.efv-section { padding: 80px 0; }
.efv-section--alt { background: var(--white); }

/* --- Features --- */
.efv-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.efv-feature {
  background: var(--white); padding: 28px 24px;
  border-left: 3px solid var(--lime);
  position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-left-width 0.25s ease;
}
.efv-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(200,230,74,0.12) 100%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.efv-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(10, 61, 47, 0.12);
  border-left-width: 6px;
}
.efv-feature:hover::after { opacity: 1; }
.efv-feature:nth-child(2n) { border-left-color: var(--orange); }
.efv-feature:nth-child(2n):hover::after {
  background: linear-gradient(135deg, transparent 60%, rgba(242,101,34,0.10) 100%);
}
.efv-feature__icon {
  font-size: 28px; margin-bottom: 12px;
  display: inline-block; transform-origin: center;
}
.efv-feature h3 {
  font-family: var(--font-heading); font-size: 17px;
  color: var(--emerald); letter-spacing: 1.5px; margin: 0 0 8px;
}
.efv-feature p { font-size: 13px; color: var(--slate); line-height: 1.6; margin: 0; }

/* --- Catalogue --- */
.efv-catalogue {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.efv-formation {
  background: var(--white); padding: 24px;
  border-left: 4px solid var(--lime);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.efv-formation:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(10, 61, 47, 0.10);
}
.efv-formation h3 {
  font-family: var(--font-heading); font-size: 18px;
  color: var(--emerald); letter-spacing: 1px; margin: 8px 0 4px;
}
.efv-formation__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--slate);
}
.efv-formation__financ { display: flex; gap: 6px; }

/* --- Footer --- */
.efv-footer {
  background: var(--charcoal); color: var(--white);
  padding: 32px 0;
}
.efv-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.efv-footer__meta { color: rgba(255,255,255,0.4); font-size: 11px; }

/* --- Menu hamburger mobile (checkbox hack) : invisible en desktop --- */
.efv-nav__toggle-input { position: absolute; left: -9999px; opacity: 0; }
.efv-nav__toggle { display: none; }
@media (max-width: 768px) {
  .efv-nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: space-between;
    width: 32px; height: 24px; cursor: pointer; background: none; border: 0; padding: 0;
  }
  .efv-nav__toggle span {
    display: block; width: 100%; height: 3px; background: var(--white); border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .efv-nav { display: none; width: 100%; flex-direction: column; gap: 8px; padding: 16px 0; }
  .efv-nav__toggle-input:checked ~ .efv-nav { display: flex; }
  .efv-nav__toggle-input:checked ~ .efv-nav__toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .efv-nav__toggle-input:checked ~ .efv-nav__toggle span:nth-child(2) { opacity: 0; }
  .efv-nav__toggle-input:checked ~ .efv-nav__toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
}
.efv-footer__legal {
  display: flex; flex-wrap: wrap; gap: 18px 24px; justify-content: center;
  padding: 18px 0 0; margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
}
.efv-footer__legal a,
.efv-footer__legal button {
  color: rgba(255,255,255,0.7); text-decoration: none;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12px;
}
.efv-footer__legal a:hover,
.efv-footer__legal a:focus-visible,
.efv-footer__legal button:hover,
.efv-footer__legal button:focus-visible {
  color: var(--lime); text-decoration: underline; outline: 0;
}
.efv-footer__inner--stacked { flex-direction: column; align-items: stretch; text-align: center; }
.efv-footer__inner--stacked .efv-brand { justify-content: center; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .efv-h1 { font-size: 38px; letter-spacing: 2px; }
  .efv-h2 { font-size: 28px; letter-spacing: 1px; }
  .efv-nav { gap: 8px; }
  .efv-nav a:not(.efv-btn) { display: none; }
  .efv-hero { padding: 48px 0; }
}
