/* ==========================================================================
   WYBE - Efresio — Base globale
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body.efresio {
  margin: 0;
  background: var(--ef-bg);
  color: var(--ef-ink);
  font-family: var(--ef-font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

/* Liens courants — on EXCLUT les boutons (.ef-btn*), sinon `.efresio a`
   (spécificité 0,1,1) écraserait la couleur de texte des boutons-liens
   (.ef-btn--primary, 0,1,0) → texte vert invisible sur fond vert. */
.efresio a:not([class*="ef-btn"]) { color: var(--ef-green); text-decoration: none; transition: color .25s ease; }
.efresio a:not([class*="ef-btn"]):hover { color: var(--ef-teal); }
.efresio a.ef-btn, .efresio a[class*="ef-btn"] { text-decoration: none; }
.efresio button { font-family: inherit; }
.efresio img { max-width: 100%; display: block; }

.efresio ::selection { background: var(--ef-green); color: var(--ef-bg); }

.efresio :focus-visible {
  outline: 2px solid var(--ef-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Titres ---
   NB : on ne fixe PAS de couleur ici. Une règle `.efresio h1` (spécificité
   0,1,1) écraserait les titres clairs `.ef-*__title{color:#fff}` (0,1,0)
   posés sur fond sombre. Chaque composant fixe sa couleur ; sinon le titre
   hérite du contexte. */
.efresio h1, .efresio h2, .efresio h3, .efresio h4 {
  font-family: var(--ef-font-serif);
  font-weight: 400;
  margin: 0;
}

/* --- Layout --- */
.ef-container {
  max-width: var(--ef-maxw);
  margin: 0 auto;
  padding-left: var(--ef-gutter);
  padding-right: var(--ef-gutter);
}

/* --- Surtitre (eyebrow) --- */
.ef-eyebrow {
  font-family: var(--ef-font-sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ef-teal);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ef-num { font-feature-settings: 'tnum'; }

/* --- Boutons --- */
.ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 26px;
  border: none;
  border-radius: var(--ef-r-md);
  font-family: var(--ef-font-sans);
  font-weight: 500;
  font-size: 15.5px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .25s var(--ef-ease);
  white-space: nowrap;
}
.ef-btn--primary { background: var(--ef-green); color: var(--ef-bg); }
.ef-btn--primary:hover { background: var(--ef-green-hover); color: var(--ef-bg); }
.ef-btn--ghost { background: var(--ef-surface); color: var(--ef-ink); border: 1px solid var(--ef-border-strong); }
.ef-btn--ghost:hover { border-color: var(--ef-green); color: var(--ef-green); }
.ef-btn--light { background: var(--ef-bg); color: var(--ef-green); }
.ef-btn--light:hover { background: var(--ef-mint); color: var(--ef-green-deep); }
.ef-btn--ghost-on-dark { background: transparent; color: var(--ef-bg); border: 1px solid rgba(238,240,240,.32); }
.ef-btn--ghost-on-dark:hover { background: rgba(238,240,240,.1); color: var(--ef-bg); border-color: rgba(238,240,240,.6); }
.ef-btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.ef-btn .ef-arrow { font-size: 17px; line-height: 1; }

.ef-link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ef-font-sans); font-weight: 500; font-size: 14px; color: var(--ef-green); white-space: nowrap; }
.ef-link-arrow:hover { color: var(--ef-teal); gap: 10px; }
.ef-link-arrow { transition: gap .25s var(--ef-ease), color .2s; }

/* --- Reveal on scroll --- */
.ef-reveal { opacity: 0; transform: translateY(30px); }
.ef-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .ef-reveal { transition: opacity .8s var(--ef-ease), transform .8s var(--ef-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .ef-reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- Placeholder visuel (asset design manquant) --- */
.ef-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(95,192,166,.20), transparent 60%),
    linear-gradient(150deg, #dfe6e3 0%, #cdd6d2 55%, #bcc7c2 100%);
  color: rgba(27,33,31,.34);
  font-family: var(--ef-font-serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  padding: 14px;
}
.ef-ph::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(27,33,31,.14);
  border-radius: inherit;
  pointer-events: none;
}

/* --- Pages génériques --- */
.ef-page__hero { background: linear-gradient(180deg, #EEF0F0 0%, #E6E9E9 100%); border-bottom: 1px solid var(--ef-border-soft); padding: 66px 0 54px; }
.ef-page__title { font-family: var(--ef-font-serif); font-weight: 400; font-size: 46px; line-height: 1.08; color: var(--ef-ink-strong); margin: 0; text-wrap: balance; }
.ef-page__lead { font-size: 18px; line-height: 1.55; color: var(--ef-ink-60); max-width: 620px; margin: 16px 0 0; }
.ef-page__body { padding: 48px var(--ef-gutter) 90px; max-width: 820px; }
.ef-page__body p { color: var(--ef-ink-60); line-height: 1.7; font-size: 16.5px; margin: 0 0 18px; }
.ef-page__body h2 { font-family: var(--ef-font-serif); font-size: 30px; margin: 32px 0 14px; }
.ef-page__body h3 { font-family: var(--ef-font-serif); font-size: 22px; margin: 26px 0 10px; }
.ef-page__body a { color: var(--ef-green); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .ef-page__title { font-size: 34px; } }

/* --- Utilitaires --- */
.ef-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.ef-no-scroll { overflow: hidden; }
