/* WEVAL WEVIA EM Flagship Overlay v107 — 2026-04-18
   Additive, non-invasive.
   - Ribbon WEVIA EM on homepage
   - Flagship section on homepage
   - Client logo masking (doctrine 108 : pas de logos clients publics)
*/

/* ═══════════════════ EM RIBBON (top-fixed) ═══════════════════ */

.wv-em-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #6f5cff 0%, #8b6fff 45%, #0d9488 100%);
  color: #ffffff;
  padding: 0.55rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(111, 92, 255, 0.18);
  transition: transform 0.35s ease, opacity 0.35s ease;
  flex-wrap: wrap;
}

.wv-em-ribbon.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.wv-em-ribbon-badge {
  background: rgba(255, 255, 255, 0.18);
  padding: 0.16rem 0.55rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wv-em-ribbon-txt { font-weight: 500; }
.wv-em-ribbon-txt strong { font-weight: 700; }

.wv-em-ribbon-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.32rem 0.85rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.wv-em-ribbon-link:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
  color: #ffffff;
}

.wv-em-ribbon-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}
.wv-em-ribbon-close:hover { color: #ffffff; }

body.wv-em-ribbon-active { padding-top: 42px; }

/* ═══════════════════ FLAGSHIPS SECTION ═══════════════════ */

.wv-em-section {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  padding: 4rem 4%;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  border-top: 1px solid rgba(26, 31, 58, 0.06);
  border-bottom: 1px solid rgba(26, 31, 58, 0.06);
  color: #1a1f3a;
}

html[data-theme="dark"] .wv-em-section {
  background: linear-gradient(180deg, #05080f 0%, #080c18 100%);
  border-color: rgba(255, 255, 255, 0.06);
  color: #edf2f7;
}

.wv-em-section-wrap { max-width: 1200px; margin: 0 auto; }
.wv-em-section-head { text-align: center; margin-bottom: 3rem; }

.wv-em-stag {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6f5cff;
  margin-bottom: 1rem;
}

html[data-theme="dark"] .wv-em-stag { color: #7c5cfc; }

.wv-em-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
  margin: 0 auto 0.9rem !important;
  max-width: 760px;
  color: inherit !important;
}

.wv-em-section h2 em {
  font-style: normal;
  background: linear-gradient(135deg, #6f5cff, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wv-em-section-sub {
  color: rgba(26, 31, 58, 0.65);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

html[data-theme="dark"] .wv-em-section-sub { color: rgba(237, 242, 247, 0.7); }

.wv-em-flag-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.wv-em-flag {
  background: #ffffff;
  border: 1px solid rgba(26, 31, 58, 0.08);
  border-radius: 14px;
  padding: 1.6rem 1.3rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(26, 31, 58, 0.04);
  display: block;
  position: relative;
  overflow: hidden;
}

.wv-em-flag::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--wv-accent);
}

.wv-em-flag:hover {
  transform: translateY(-3px);
  border-color: var(--wv-accent);
  box-shadow: 0 12px 30px rgba(26, 31, 58, 0.08);
  color: inherit;
  text-decoration: none;
}

html[data-theme="dark"] .wv-em-flag {
  background: #0c1222;
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .wv-em-flag:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.wv-em-flag.p { --wv-accent: #6f5cff; }
.wv-em-flag.t { --wv-accent: #0d9488; }
.wv-em-flag.g { --wv-accent: #b88a2e; }
.wv-em-flag.c { --wv-accent: #dc3e3e; }

html[data-theme="dark"] .wv-em-flag.p { --wv-accent: #7c5cfc; }
html[data-theme="dark"] .wv-em-flag.t { --wv-accent: #00c9a7; }
html[data-theme="dark"] .wv-em-flag.g { --wv-accent: #f0c674; }
html[data-theme="dark"] .wv-em-flag.c { --wv-accent: #ff6b6b; }

.wv-em-flag-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wv-accent);
  margin-bottom: 0.9rem;
}
.wv-em-flag-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--wv-accent);
  border-radius: 50%;
}

.wv-em-flag h3 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 0.35rem !important;
  color: inherit !important;
  font-family: inherit !important;
}

.wv-em-flag-tagline {
  font-size: 0.8rem;
  color: var(--wv-accent);
  font-weight: 600;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 0.75rem;
  display: block;
}

.wv-em-flag p {
  font-size: 0.85rem !important;
  line-height: 1.55 !important;
  color: rgba(26, 31, 58, 0.7) !important;
  margin: 0 !important;
}

html[data-theme="dark"] .wv-em-flag p { color: rgba(237, 242, 247, 0.75) !important; }

.wv-em-suites-wrap {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(26, 31, 58, 0.06);
  text-align: center;
}
html[data-theme="dark"] .wv-em-suites-wrap { border-color: rgba(255, 255, 255, 0.06); }

.wv-em-suites-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 31, 58, 0.55);
  margin-bottom: 1.2rem;
}
html[data-theme="dark"] .wv-em-suites-label { color: rgba(237, 242, 247, 0.55); }

.wv-em-suites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.wv-em-suite-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  background: #ffffff;
  border: 1px solid rgba(26, 31, 58, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a1f3a;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.wv-em-suite-chip:hover {
  border-color: #6f5cff;
  color: #6f5cff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(111, 92, 255, 0.12);
}

html[data-theme="dark"] .wv-em-suite-chip {
  background: #0c1222;
  border-color: rgba(255, 255, 255, 0.1);
  color: #edf2f7;
}
html[data-theme="dark"] .wv-em-suite-chip:hover {
  border-color: #7c5cfc;
  color: #7c5cfc;
}

.wv-em-section-cta { margin-top: 2.5rem; text-align: center; }

.wv-em-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #5b4cdb;
  color: #ffffff !important;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(91, 76, 219, 0.25);
  font-family: inherit;
}
.wv-em-btn-primary:hover {
  background: #4a3dc4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 76, 219, 0.3);
  color: #ffffff !important;
  text-decoration: none;
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */

@media (max-width: 900px) {
  .wv-em-flag-grid { grid-template-columns: repeat(2, 1fr); }
  .wv-em-ribbon { font-size: 0.74rem; padding: 0.5rem 0.75rem; gap: 0.5rem; }
  .wv-em-ribbon-badge { display: none; }
  body.wv-em-ribbon-active { padding-top: 58px; }
}

@media (max-width: 600px) {
  .wv-em-flag-grid { grid-template-columns: 1fr; }
  .wv-em-section { padding: 3rem 1.5rem; }
  .wv-em-ribbon-txt { font-size: 0.7rem; line-height: 1.3; }
  body.wv-em-ribbon-active { padding-top: 68px; }
}

@media print {
  .wv-em-ribbon, .wv-em-section { display: none !important; }
}
