/**
 * ElysiaLife site public — thème V26 refondu
 * Atmosphère côtière (teal / emerald), photos full-bleed, pas de cartes plates.
 */

body.landing-body,
body.landing-v26,
body.auth-body,
body.ferry-body,
body.locked-body,
body.maint-body {
  --bg: #07110e;
  --bg-2: #0c1814;
  --panel: rgba(10, 24, 20, 0.72);
  --white: #eef8f3;
  --muted: #9bb0a6;
  --muted-2: #6d857a;
  --green: #3dd68c;
  --green-2: #7aefb2;
  --green-deep: #0f3d2a;
  --green-mid: #1fa86a;
  --line: rgba(255, 255, 255, 0.1);
  --info: #6eb6ff;
  --warn: #f0c14a;
  --danger: #ef6a63;
  --grad-bg:
    radial-gradient(1100px 560px at 0% -8%, rgba(46, 207, 143, 0.14), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(14, 120, 95, 0.16), transparent 52%),
    #07110e;
  --grad: linear-gradient(135deg, #7aefb2 0%, #3dd68c 45%, #1fa86a 100%);
  --grad-btn: linear-gradient(180deg, #4ae09a 0%, #2bbf78 55%, #1a9a5e 100%);
  --grad-btn-hover: linear-gradient(180deg, #63ebb0 0%, #35d089 55%, #1fad6b 100%);
  background: var(--grad-bg);
  color: var(--white);
}

body.landing-body .noise,
body.auth-body .noise {
  opacity: 0.045;
}

/* —— Topbar —— */
body.landing-body .site-topbar,
body.landing-body .topbar,
body.auth-body .site-topbar,
body.auth-body .topbar {
  background: rgba(6, 16, 13, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(1.1);
}

body.landing-body .brand-hero {
  letter-spacing: -0.03em;
}
body.landing-body .hero-stage h1 {
  letter-spacing: -0.02em;
  font-weight: 600;
}
body.landing-body .eyebrow {
  color: var(--green-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.72rem;
}
body.landing-body .dev-pill {
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 74, 0.35);
  background: rgba(240, 193, 74, 0.12);
  color: #ffe29a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Ne plus forcer les sections en cartes plates */
body.landing-body .section-inner,
body.landing-body .ile-plain,
body.landing-body .equipe-inner {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

body.auth-body .auth-card,
body.ferry-body .ferry-card {
  background: rgba(12, 28, 24, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

body.landing-body .section h2 {
  letter-spacing: -0.03em;
  text-transform: none;
  font-family: var(--font-b, "Syne", system-ui, sans-serif);
}

body.landing-body .btn,
body.auth-body .btn,
body.ferry-body .btn {
  border-radius: 12px;
  font-weight: 650;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
body.landing-body .btn-primary:hover,
body.auth-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 168, 106, 0.28);
}
body.landing-body .btn-ghost,
body.auth-body .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

/* —— Sections padding —— */
body.landing-body .section-pad {
  width: min(1180px, calc(100% - 2 * var(--page-gutter, 1.25rem)));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

/* —— Media splits (Île / Framework) —— */
body.landing-body .section-media {
  position: relative;
  overflow: hidden;
}
body.landing-body .section-ile {
  background:
    radial-gradient(800px 420px at 90% 20%, rgba(46, 207, 143, 0.12), transparent 55%),
    linear-gradient(180deg, #07110e 0%, #0a1713 100%);
}
body.landing-body .section-framework {
  background:
    radial-gradient(700px 380px at 10% 80%, rgba(110, 182, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #0a1713 0%, #08120f 100%);
}
body.landing-body .media-split {
  width: min(1180px, calc(100% - 2 * var(--page-gutter, 1.25rem)));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  body.landing-body .media-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  body.landing-body .media-split--flip .media-split-copy { order: 2; }
  body.landing-body .media-split--flip .media-split-visual { order: 1; }
}
body.landing-body .media-split-copy h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0.35rem 0 1rem;
  line-height: 1.05;
}
body.landing-body .media-split-copy .lead {
  margin-bottom: 1.5rem;
}
body.landing-body .media-split-visual {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(46, 207, 143, 0.08);
  transform: translateZ(0);
}
body.landing-body .media-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.04);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
body.landing-body .media-split-visual:hover img {
  transform: scale(1.04);
}
body.landing-body .media-split-glow {
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(61, 214, 140, 0.35), transparent 65%);
  pointer-events: none;
  mix-blend-mode: screen;
}
body.landing-body .media-split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(4, 14, 11, 0.55) 100%),
    linear-gradient(90deg, rgba(4, 14, 11, 0.25), transparent 40%);
  pointer-events: none;
}

body.landing-body .feature-row--inline {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  body.landing-body .feature-row--inline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
body.landing-body .feature-row--inline article {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
}

/* —— Factions with photo headers —— */
body.landing-body .section-factions {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(900px 420px at 8% 0%, rgba(93, 255, 200, 0.1), transparent 55%),
    radial-gradient(700px 380px at 95% 80%, rgba(14, 154, 114, 0.14), transparent 50%),
    linear-gradient(180deg, #08120f, #0a1612);
}
body.landing-body .faction-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  body.landing-body .faction-grid { grid-template-columns: 1fr 1fr; }
}
body.landing-body .faction-card {
  position: relative;
  display: grid;
  grid-template-rows: 140px 1fr;
  overflow: hidden;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c1a16;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
body.landing-body .faction-card::before {
  width: 0;
}
body.landing-body .faction-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
body.landing-body .faction-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 10%, rgba(6, 16, 13, 0.92) 100%),
    linear-gradient(135deg, rgba(46, 207, 143, 0.18), transparent 50%);
}
body.landing-body .faction-card--gendarmerie .faction-photo::after {
  background:
    linear-gradient(180deg, transparent 10%, rgba(6, 12, 20, 0.94) 100%),
    linear-gradient(135deg, rgba(110, 182, 255, 0.22), transparent 50%);
}
body.landing-body .faction-card--police .faction-photo::after {
  background:
    linear-gradient(180deg, transparent 10%, rgba(6, 14, 18, 0.94) 100%),
    linear-gradient(135deg, rgba(122, 212, 255, 0.2), transparent 50%);
}
body.landing-body .faction-card--pompiers .faction-photo::after {
  background:
    linear-gradient(180deg, transparent 10%, rgba(18, 10, 8, 0.94) 100%),
    linear-gradient(135deg, rgba(255, 154, 107, 0.22), transparent 50%);
}
body.landing-body .faction-body {
  padding: 1.15rem 1.25rem 1.35rem;
}
body.landing-body .faction-card .faction-ico { display: none; }
body.landing-body .faction-card .faction-meta { margin: 0; }
body.landing-body .faction-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 239, 178, 0.35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

/* —— Équipe —— */
body.landing-body .section-equipe {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(46, 207, 143, 0.16), transparent 55%),
    radial-gradient(700px 400px at 100% 100%, rgba(14, 120, 95, 0.18), transparent 50%),
    linear-gradient(180deg, #07130f 0%, #0a1914 100%);
}
body.landing-body .section-equipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.45;
}
body.landing-body .equipe-head {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-bottom: 0.5rem;
}
body.landing-body .equipe-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin: 0.35rem 0 0.75rem;
}
body.landing-body .equipe-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  body.landing-body .equipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.landing-body .equipe-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body.landing-body .equipe-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(14, 36, 30, 0.9), rgba(8, 20, 16, 0.96));
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
body.landing-body .equipe-card:hover {
  transform: translateY(-6px);
  border-color: rgba(122, 239, 178, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(46, 207, 143, 0.1);
}
body.landing-body .equipe-cover {
  height: 120px;
  background-size: cover;
  background-position: center;
  position: relative;
}
body.landing-body .equipe-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 20, 16, 0.95) 100%),
    linear-gradient(135deg, rgba(61, 214, 140, 0.25), transparent 55%);
}
body.landing-body .equipe-body {
  padding: 0.2rem 1.15rem 1.25rem;
  margin-top: -0.5rem;
  position: relative;
  z-index: 1;
}
body.landing-body .equipe-role {
  border-radius: 999px;
  letter-spacing: 0.1em;
}
body.landing-body .equipe-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
body.landing-body .equipe-card p {
  line-height: 1.55;
}

/* —— Vote band —— */
body.landing-body .section-vote {
  padding: 0;
  background: #06100d;
}
body.landing-body .vote-band {
  position: relative;
  min-height: clamp(420px, 62vh, 560px);
  display: grid;
  place-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-gutter, 1.25rem);
  background-image: var(--vote-photo);
  background-size: cover;
  background-position: center 40%;
  isolation: isolate;
}
body.landing-body .vote-band-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, rgba(4, 14, 11, 0.92) 0%, rgba(4, 14, 11, 0.72) 42%, rgba(4, 14, 11, 0.45) 100%),
    linear-gradient(180deg, rgba(4, 14, 11, 0.35) 0%, rgba(4, 14, 11, 0.75) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(46, 207, 143, 0.22), transparent 55%);
}
body.landing-body .vote-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-width: 34rem;
  margin: 0;
  margin-right: auto;
  margin-left: max(0px, calc((100% - 1180px) / 2));
  padding: clamp(1.5rem, 3vw, 2rem);
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(160deg, rgba(12, 32, 26, 0.82), rgba(6, 18, 14, 0.9));
  backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}
body.landing-body .vote-panel .vote-form {
  margin: 0;
  max-width: none;
}
body.landing-body .vote-panel h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0.35rem 0 0.75rem;
}
body.landing-body .vote-panel .lead {
  margin-bottom: 1.35rem;
  color: rgba(238, 248, 243, 0.78);
}
body.landing-body .vote-form {
  display: grid;
  gap: 0.85rem;
}
body.landing-body .vote-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
body.landing-body .vote-form input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
}
body.landing-body .vote-form input:focus {
  outline: none;
  border-color: rgba(122, 239, 178, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 207, 143, 0.15);
}
body.landing-body .vote-form .btn {
  width: 100%;
  justify-content: center;
}
body.landing-body .vote-panel .hint {
  margin-top: 0.85rem;
  color: var(--muted);
}
body.landing-body .vote-panel .hint a {
  color: var(--green-2);
}

/* —— Footer —— */
body.landing-body .site-footer {
  background:
    linear-gradient(180deg, #0a1914, #06100d);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* —— Motion —— */
@keyframes site-v26-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes site-v26-soft {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 0.9; transform: translateY(-4px); }
}
body.landing-body .hero-stage {
  animation: site-v26-up 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.landing-body .media-split-copy,
body.landing-body .media-split-visual,
body.landing-body .faction-card,
body.landing-body .equipe-card,
body.landing-body .vote-panel {
  animation: site-v26-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.landing-body .faction-card:nth-child(2),
body.landing-body .equipe-card:nth-child(2) { animation-delay: 0.06s; }
body.landing-body .faction-card:nth-child(3),
body.landing-body .equipe-card:nth-child(3) { animation-delay: 0.12s; }
body.landing-body .faction-card:nth-child(4),
body.landing-body .equipe-card:nth-child(4) { animation-delay: 0.18s; }
body.landing-body .hero-aurora {
  animation: site-v26-soft 8s ease-in-out infinite;
}

@media (max-width: 640px) {
  body.landing-body .faction-card {
    grid-template-rows: 110px 1fr;
  }
  body.landing-body .equipe-cover { height: 100px; }
  body.landing-body .vote-panel {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.landing-body .hero-stage,
  body.landing-body .media-split-copy,
  body.landing-body .media-split-visual,
  body.landing-body .faction-card,
  body.landing-body .equipe-card,
  body.landing-body .vote-panel,
  body.landing-body .hero-aurora,
  body.landing-body .media-split-visual img {
    animation: none !important;
    transition: none !important;
  }
}
