﻿:root {
  --bg-1: #0a1020;
  --bg-2: #141a33;
  --text-main: #e8eeff;
  --text-soft: #bcc8e8;
  --primary: #4e7bff;
  --accent-cyan: #22d3ee;
  --accent-violet: #8b5cf6;
  --accent-pink: #f472b6;
    --border: #2f4269;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 211, 238, 0.24), transparent 38%),
    radial-gradient(circle at 84% 16%, rgba(139, 92, 246, 0.20), transparent 36%),
    radial-gradient(circle at 80% 82%, rgba(244, 114, 182, 0.10), transparent 34%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2)) !important;
  background-attachment: fixed;
  animation: bgShift 16s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 50% 50%;
  }
  100% {
    background-position: 8% 6%, 92% 12%, 84% 90%, 50% 50%;
  }
}

.page {
  display: none;
  animation: fadeIn 0.55s ease-in-out;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.bg-white {
  background: rgba(9, 14, 29, 0.82) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.bg-white {
  background: linear-gradient(160deg, rgba(26, 38, 67, 0.95), rgba(20, 30, 53, 0.96)) !important;
  border: 1px solid rgba(109, 141, 206, 0.34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30) !important;
}

.bg-gray-50,
.bg-gray-100 {
  background: rgba(20, 30, 53, 0.88) !important;
}

.text-gray-800,
.text-gray-700,
.text-gray-600,
.text-gray-500,
.text-secondary {
  color: var(--text-soft) !important;
}

.text-primary,
h1,
h2,
h3,
h4,
.font-bold,
.font-semibold {
  color: var(--text-main);
}

.text-accent {
  color: var(--accent-cyan) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-violet)) !important;
}

.border,
.border-gray-100,
.border-gray-200,
.border-gray-300,
.border-primary {
  border-color: var(--border) !important;
}

button,
.bg-primary.text-white {
  box-shadow: 0 10px 24px rgba(78, 123, 255, 0.30);
  position: relative;
  overflow: hidden;
}

button::before,
.bg-primary.text-white::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 90%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}

button:hover::before,
.bg-primary.text-white:hover::before {
  transform: translateX(120%);
}

button:hover,
.bg-primary.text-white:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.08);
}

.nav-link {
  position: relative;
  cursor: pointer;
  color: var(--text-soft) !important;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.22);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-violet));
  transition: width 0.28s ease;
}

.nav-link.active::after {
  width: 100%;
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow: 0 16px 34px rgba(79, 120, 255, 0.34) !important;
  border-color: rgba(167, 139, 250, 0.5) !important;
}

.fa-check-circle.text-green-500 {
  color: #44f3b2 !important;
}

.table-responsive {
  overflow-x: auto;
}

/* Animations plus visibles */
.reveal-visible {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: revealUp 0.75s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes revealUp {
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.nav-link.nav-pulse {
  animation: navPulse 0.45s ease;
}

@keyframes navPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

#page-accueil .rounded-2xl.shadow-xl {
  animation: cardFloat 4.8s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* Titres par section */
.page h1,
.page h2,
.page h3,
.page h4,
.page h5,
.page h6 {
  text-shadow: none !important;
}

/* Accueil: cyan */
#page-accueil h1,
#page-accueil h2,
#page-accueil h3,
#page-accueil h4 { color: #22d3ee !important; }

/* Presentation: bleu clair */
#page-presentation h1,
#page-presentation h2,
#page-presentation h3,
#page-presentation h4 { color: #38bdf8 !important; }

/* Competences: bleu */
#page-competences h1,
#page-competences h2,
#page-competences h3,
#page-competences h4 { color: #60a5fa !important; }

/* Epreuves: indigo */
#page-epreuves h1,
#page-epreuves h2,
#page-epreuves h3,
#page-epreuves h4,
#page-epreuve-e5 h1,
#page-epreuve-e5 h2,
#page-epreuve-e5 h3,
#page-epreuve-e5 h4,
#page-epreuve-e6 h1,
#page-epreuve-e6 h2,
#page-epreuve-e6 h3,
#page-epreuve-e6 h4 { color: #818cf8 !important; }

/* Veille: ambre */
#page-veille h1,
#page-veille h2,
#page-veille h3,
#page-veille h4 { color: #67e8f9 !important; }

/* Contact: lavande */
#page-contact h1,
#page-contact h2,
#page-contact h3,
#page-contact h4 { color: #c4b5fd !important; }


/* Boutons par section */
#page-accueil .bg-primary,
#page-accueil button[type="submit"] {
  background: linear-gradient(135deg, #06b6d4, #6366f1) !important;
}

#page-presentation .bg-primary,
#page-presentation button[type="submit"] {
  background: linear-gradient(135deg, #7c3aed, #3b82f6) !important;
}

#page-competences .bg-primary,
#page-competences button[type="submit"] {
  background: linear-gradient(135deg, #2563eb, #8b5cf6) !important;
}

#page-epreuves .bg-primary,
#page-epreuves button[type="submit"],
#page-epreuve-e5 .bg-primary,
#page-epreuve-e5 button[type="submit"],
#page-epreuve-e6 .bg-primary,
#page-epreuve-e6 button[type="submit"] {
  background: linear-gradient(135deg, #4f46e5, #a78bfa) !important;
}

#page-veille .bg-primary,
#page-veille button[type="submit"] {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
}

#page-contact .bg-primary,
#page-contact button[type="submit"] {
  background: linear-gradient(135deg, #8b5cf6, #2563eb) !important;
}

/* Accueil enrichi */
.home-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(109, 141, 206, 0.28);
  background: linear-gradient(145deg, rgba(15, 24, 45, 0.72), rgba(18, 28, 53, 0.70));
}

.home-shell::before,
.home-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(20px);
}

.home-shell::before {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35), rgba(34, 211, 238, 0));
}

.home-shell::after {
  width: 280px;
  height: 280px;
  bottom: -110px;
  left: -90px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.30), rgba(139, 92, 246, 0));
}

.home-hero {
  border: 1px solid rgba(106, 227, 255, 0.26);
  background:
    linear-gradient(125deg, rgba(8, 24, 39, 0.78), rgba(17, 38, 60, 0.72)),
    radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.14), transparent 42%);
}

.home-chip {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99f6ff;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(11, 27, 41, 0.72);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.home-tag {
  font-size: 0.78rem;
  color: #c8e6ff;
  border: 1px solid rgba(129, 140, 248, 0.35);
  background: rgba(49, 58, 93, 0.36);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
}

.home-ghost-btn {
  border: 1px solid rgba(105, 160, 255, 0.42);
  background: rgba(40, 57, 94, 0.38);
  color: #cfe1ff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-primary-btn {
  border: 1px solid rgba(34, 211, 238, 0.7);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.92), rgba(59, 130, 246, 0.95));
  color: #071421 !important;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(34, 211, 238, 0.32), 0 2px 8px rgba(8, 24, 39, 0.34);
}

.home-primary-btn:hover {
  border-color: rgba(103, 232, 249, 0.9);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.96), rgba(96, 165, 250, 0.97));
  color: #04101e !important;
}

.home-primary-btn:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.95);
  outline-offset: 2px;
}

.cv-mini-logo {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  border: 1px solid rgba(155, 233, 255, 0.55);
  background: linear-gradient(145deg, rgba(30, 64, 175, 0.92), rgba(14, 116, 144, 0.9));
  box-shadow: 0 4px 10px rgba(8, 24, 39, 0.28);
}

.cv-mini-logo-text {
  font-size: 0.56rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #e0f2fe;
}

.home-ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 176, 255, 0.7);
  background: rgba(48, 68, 111, 0.5);
}

.home-metric {
  position: relative;
  overflow: hidden;
}

.home-metric::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.88), rgba(129, 140, 248, 0.88));
}

.home-timeline {
  border-left: 1px dashed rgba(126, 165, 227, 0.5);
  padding-left: 1rem;
}

.home-step {
  position: relative;
}

.home-step::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22d3ee;
  left: -1.34rem;
  top: 0.4rem;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.home-quick-link {
  border: 1px solid rgba(109, 141, 206, 0.36);
  background: linear-gradient(145deg, rgba(34, 48, 82, 0.46), rgba(25, 36, 62, 0.44));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-quick-link:hover {
  transform: translateX(4px);
  border-color: rgba(134, 164, 235, 0.65);
  box-shadow: 0 10px 22px rgba(68, 104, 182, 0.2);
}

.home-quick-grid {
  align-items: stretch;
}

.home-quick-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(109, 141, 206, 0.34);
  background: linear-gradient(145deg, rgba(34, 48, 82, 0.44), rgba(25, 36, 62, 0.42));
  min-height: 190px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(134, 164, 235, 0.66);
  box-shadow: 0 12px 26px rgba(68, 104, 182, 0.24);
}

.home-quick-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #9be9ff;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(10, 24, 42, 0.64);
}

.home-quick-arrow {
  margin-top: auto;
  color: #7dd3fc;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Header harmonise */
header.bg-white {
  position: sticky;
}

header.bg-white nav {
  position: relative;
}

header.bg-white nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.58), rgba(129, 140, 248, 0.58), rgba(34, 211, 238, 0));
  pointer-events: none;
}

.site-name {
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #dbeafe, #99f6ff 45%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
}

.site-subtitle {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #9fb2de !important;
}

.site-brand {
  text-align: left;
}

.site-logo-wrap {
  overflow: hidden;
  border: 1px solid rgba(125, 176, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(78, 123, 255, 0.16), 0 12px 26px rgba(23, 35, 69, 0.45);
  background: rgba(15, 23, 42, 0.75);
}

.site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

.nav-tabs {
  position: relative;
  padding: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(109, 141, 206, 0.36);
  background: linear-gradient(145deg, rgba(27, 38, 65, 0.82), rgba(19, 28, 51, 0.8));
  box-shadow: inset 0 1px 0 rgba(187, 214, 255, 0.12), 0 10px 24px rgba(6, 12, 29, 0.36);
}

.nav-link {
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-size: 1.02rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: color 0.25s ease, text-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
  background: rgba(56, 76, 117, 0.45);
  border-color: rgba(111, 152, 233, 0.35);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(18, 88, 126, 0.9), rgba(91, 76, 156, 0.86));
  border-color: rgba(130, 168, 255, 0.62);
  box-shadow: 0 8px 18px rgba(34, 211, 238, 0.16);
}

.nav-link::after {
  bottom: -3px;
  left: 14%;
  width: 72%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-link.active::after {
  width: 72%;
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-tabs {
    border-radius: 1.1rem;
    width: 100%;
    justify-content: center;
    padding: 0.5rem;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 0.42rem 0.7rem;
  }

  .site-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 1100px) {
  .nav-tabs {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.4rem !important;
    border-radius: 1rem;
    padding: 0.42rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
  }
}

/* Contact enrichi */
.contact-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(160, 132, 240, 0.24);
  background: linear-gradient(145deg, rgba(22, 18, 45, 0.72), rgba(33, 24, 58, 0.66));
}

.contact-shell::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  top: -90px;
  right: -100px;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.26), rgba(196, 181, 253, 0));
  filter: blur(16px);
  pointer-events: none;
}

.contact-hero {
  border: 1px solid rgba(196, 181, 253, 0.4);
  background:
    linear-gradient(140deg, rgba(30, 38, 126, 0.88), rgba(88, 28, 135, 0.84)),
    radial-gradient(circle at 18% 20%, rgba(196, 181, 253, 0.2), transparent 46%),
    radial-gradient(circle at 86% 14%, rgba(96, 165, 250, 0.2), transparent 40%);
}

.contact-card {
  border: 1px solid rgba(178, 152, 244, 0.36);
  background: linear-gradient(145deg, rgba(58, 41, 98, 0.48), rgba(40, 31, 72, 0.52));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(205, 182, 255, 0.66);
  box-shadow: 0 12px 24px rgba(76, 54, 128, 0.28);
}

.contact-form-wrap {
  border: 1px solid rgba(170, 143, 236, 0.34);
}

.contact-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
  outline: none;
  border-color: rgba(196, 181, 253, 0.78) !important;
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.18);
}

/* Structure visuelle commune des sections */
.section-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(116, 145, 208, 0.24);
}

.section-shell::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  top: -120px;
  right: -120px;
  pointer-events: none;
  filter: blur(18px);
}

.section-shell-presentation {
  background: linear-gradient(145deg, rgba(52, 22, 99, 0.82), rgba(25, 56, 120, 0.78));
}

.section-shell-presentation::before {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.34), rgba(139, 92, 246, 0));
}

.section-shell-competences {
  background: linear-gradient(145deg, rgba(9, 43, 95, 0.82), rgba(52, 22, 99, 0.78));
}

.section-shell-competences::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0));
}

.section-shell-epreuves {
  background: linear-gradient(145deg, rgba(56, 29, 122, 0.82), rgba(30, 64, 175, 0.78));
}

.section-shell-epreuves::before {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.34), rgba(167, 139, 250, 0));
}

.section-shell-veille {
  background: linear-gradient(145deg, rgba(18, 58, 132, 0.82), rgba(76, 29, 149, 0.78));
}

.section-shell-veille::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.34), rgba(59, 130, 246, 0));
}

.section-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 165, 230, 0.28);
  background: linear-gradient(140deg, rgba(20, 33, 64, 0.84), rgba(19, 29, 60, 0.82));
}

.section-banner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -120px;
  right: -80px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.section-banner-presentation {
  border-color: rgba(167, 139, 250, 0.52);
  background:
    linear-gradient(136deg, rgba(30, 58, 138, 0.92), rgba(124, 58, 237, 0.9)),
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.16), transparent 45%);
  box-shadow: inset 0 1px 0 rgba(221, 214, 254, 0.16), 0 14px 28px rgba(52, 27, 108, 0.35);
}

.section-banner-competences {
  border-color: rgba(96, 165, 250, 0.52);
  background:
    linear-gradient(136deg, rgba(7, 89, 133, 0.92), rgba(37, 99, 235, 0.9), rgba(99, 102, 241, 0.88)),
    radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.16), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.16), 0 14px 28px rgba(30, 58, 138, 0.35);
}

.section-banner-epreuves {
  border-color: rgba(167, 139, 250, 0.52);
  background:
    linear-gradient(136deg, rgba(30, 64, 175, 0.92), rgba(79, 70, 229, 0.9), rgba(126, 34, 206, 0.88)),
    radial-gradient(circle at 86% 16%, rgba(129, 140, 248, 0.18), transparent 44%);
  box-shadow: inset 0 1px 0 rgba(221, 214, 254, 0.16), 0 14px 28px rgba(40, 28, 92, 0.35);
}

.section-banner-veille {
  border-color: rgba(96, 165, 250, 0.52);
  background:
    linear-gradient(136deg, rgba(29, 78, 216, 0.92), rgba(79, 70, 229, 0.9), rgba(124, 58, 237, 0.88)),
    radial-gradient(circle at 20% 18%, rgba(34, 211, 238, 0.2), transparent 46%);
  box-shadow: inset 0 1px 0 rgba(191, 219, 254, 0.16), 0 14px 28px rgba(30, 58, 138, 0.34);
}

.section-banner-presentation::after {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.34), rgba(167, 139, 250, 0));
}

.section-banner-competences::after {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32), rgba(34, 211, 238, 0));
}

.section-banner-epreuves::after {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.34), rgba(129, 140, 248, 0));
}

.section-banner-veille::after {
  background: radial-gradient(circle, rgba(45, 212, 191, 0.36), rgba(45, 212, 191, 0));
}

.section-chip {
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #d4dcff;
  border: 1px solid rgba(169, 191, 245, 0.38);
  background: rgba(11, 24, 46, 0.45);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
}

.lift-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.lift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(37, 56, 106, 0.24) !important;
  border-color: rgba(143, 173, 238, 0.5) !important;
}

/* E6: mise en forme type "situations professionnelles" */
#page-epreuve-e6 .e6-hero,
#page-epreuve-e5 .e6-hero {
  border: 1px solid rgba(56, 189, 248, 0.34);
  background:
    linear-gradient(135deg, rgba(9, 35, 72, 0.92), rgba(30, 41, 115, 0.9), rgba(88, 28, 135, 0.86)),
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.14), transparent 42%);
  box-shadow: 0 14px 30px rgba(5, 13, 28, 0.34);
}

#page-epreuve-e5 .e5-hero {
  border: 1px solid rgba(103, 232, 249, 0.42);
  background:
    linear-gradient(135deg, rgba(9, 35, 72, 0.94), rgba(30, 64, 175, 0.9), rgba(91, 33, 182, 0.88)),
    radial-gradient(circle at 86% 14%, rgba(56, 189, 248, 0.2), transparent 44%);
  box-shadow: 0 18px 36px rgba(4, 11, 25, 0.42);
}

#page-epreuve-e5 .e5-hero h2 {
  font-size: 2.15rem;
  line-height: 1.18;
}

#page-epreuve-e5 .e5-hero p {
  font-size: 1.14rem;
  line-height: 1.7;
  color: #d9eeff;
}

#page-epreuve-e6 .e6-case {
  border: 1px solid rgba(56, 189, 248, 0.2);
  background:
    linear-gradient(140deg, rgba(7, 24, 44, 0.9), rgba(10, 30, 52, 0.88)),
    radial-gradient(circle at 92% 16%, rgba(45, 212, 191, 0.08), transparent 38%);
  box-shadow: 0 14px 28px rgba(3, 9, 22, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#page-epreuve-e6 .e6-case:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.42);
  box-shadow: 0 18px 34px rgba(3, 12, 24, 0.42);
}

#page-epreuve-e6 .e6-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(45, 212, 191, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #77f2df;
  background: rgba(6, 45, 51, 0.35);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#page-epreuve-e6 .e6-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(10, 61, 70, 0.52);
  border-color: rgba(103, 232, 249, 0.76);
}

@media (max-width: 768px) {
  #page-epreuve-e6 .e6-case-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Uniformisation typographique des blocs Option SISR/SLAM */
.option-card p,
.option-card ul,
.option-card li,
.option-chip {
  font-size: 0.875rem !important;
  line-height: 1.45rem;
}

