:root {
  --bg: #F7F5F0;
  --ink: #0B1F3A;
  --tatami: #2E7D32;
  --belt: #D32F2F;
  --text: #1E293B;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(11, 31, 58, .12);
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

h1,
h2,
h3,
.brand-title {
  font-family: "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11, 31, 58, .10);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 80px;
  width: auto;
  display: block
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(11, 31, 58, .06);
}

.btn-primary {
  background: var(--belt);
  color: white !important;
  box-shadow: 0 8px 18px rgba(211, 47, 47, .25);
}

.btn-primary:hover {
  filter: brightness(.95)
}
@media (max-width: 510px) {
  .navbar-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
  }

  .brand {
    width: auto;
    gap: 8px;
  }

  .logo-frame {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .logo-frame img {
    max-width: 50px;
    max-height: 50px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-links {
    width: auto;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .nav-links a {
    padding: 8px 9px;
    font-size: .9rem;
  }

  .theme-toggle {
    padding: 8px 9px;
  }
}
/* Homepage */
.hero {
  padding: 42px 0 22px;
}

.hero-card {
  background: white;
  border: 1px solid rgba(11, 31, 58, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, .12);
  background: rgba(46, 125, 50, .06);
  color: var(--ink);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  background: white;
  border: 1px solid rgba(11, 31, 58, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

small {
  opacity: .8
}

@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr
  }

  .nav-links {
    gap: 8px
  }
}



/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  padding: -2px;
}

.logo-frame img {
  max-width: 76px;
  max-height: 76px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--tatami);
  font-weight: 600;
}

/* Dark mode */
html[data-theme="dark"] {
  --bg: #0B1220;
  --ink: #E6EDF7;
  --tatami: #3DDC84;
  --belt: #FF4D4D;
  --text: #C9D4E5;
  --shadow: 0 10px 25px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 237, 247, 0.12);
}

html[data-theme="dark"] .navbar {
  background: rgba(11, 18, 32, .78);
  border-bottom: 1px solid rgba(230, 237, 247, 0.10);
}

html[data-theme="dark"] .nav-links a:hover {
  background: rgba(230, 237, 247, .06);
}

html[data-theme="dark"] .logo-frame {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(230, 237, 247, 0.35);
}

html[data-theme="dark"] .badge {
  background: rgba(61, 220, 132, .10);
  border-color: rgba(230, 237, 247, 0.12);
}

html[data-theme="dark"] .site-footer {
  border-top: 1px solid rgba(230, 237, 247, .12);
}

/* Theme toggle button */
.theme-toggle {
  border: 1px solid rgba(11, 31, 58, .15);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .08);
}

.theme-toggle:hover {
  filter: brightness(.98);
}

.theme-icon {
  font-size: 16px;
  line-height: 1
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(230, 237, 247, .18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(11, 31, 58, .12);
  text-align: center;
  background: transparent;
  color: var(--text);
}

.site-footer span {
  font-weight: 600;
  color: var(--ink);
}

.site-footer small {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  opacity: .8;
}



/* Revision */
.revision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.revision-card {
  background: white;
  border: 1px solid rgba(11, 31, 58, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.revision-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.revision-title {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.revision-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.revision-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(11, 31, 58, .12);
  background: rgba(46, 125, 50, .08);
  color: var(--ink);
}

.revision-badge--type {
  background: rgba(211, 47, 47, .08);
}

.revision-image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, .10);
  background: #ffffff;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.revision-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.revision-info {
  margin: 8px 0 12px;
  line-height: 1.5;
}

.revision-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.revision-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr auto;
  gap: 14px;
  align-items: end;
  margin-top: 12px;
}

.revision-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.revision-filter-group label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

.revision-filter-group input,
.revision-filter-group select {
  width: 100%;
  border: 1px solid rgba(11, 31, 58, .14);
  border-radius: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .75);
  color: var(--text);
  font: inherit;
}

.revision-filter-group input:focus,
.revision-filter-group select:focus {
  outline: none;
  border-color: var(--tatami);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

.revision-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.revision-btn--submit {
  cursor: pointer;
}

html[data-theme="dark"] .revision-filter-group select {
  color-scheme: dark;
}

html[data-theme="dark"] .revision-filter-group select option {
  background-color: #1e293b;
  color: #ffffff;
}

html[data-theme="light"] .revision-filter-group select {
  color-scheme: light;
}

html[data-theme="light"] .revision-filter-group select option {
  background-color: #ffffff;
  color: #1e293b;
}
@media (max-width: 980px) {
  .revision-filters {
    grid-template-columns: 1fr;
  }

  .revision-filter-actions {
    justify-content: flex-start;
  }
}

.revision-btn {
  text-decoration: none;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, .15);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}

.revision-btn:hover {
  filter: brightness(.98);
}

body.modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.video-modal.is-open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.video-modal-content {
  position: relative;
  z-index: 1;
  width: min(900px, 92vw);
  margin: 5vh auto 0;
  background: #ffffff;
  color: #1E293B;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11, 31, 58, .08);
}

.video-modal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.video-modal-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #1E293B;
}

.video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

html[data-theme="dark"] .video-modal-content {
  background: #111827;
  color: #E6EDF7;
}

html[data-theme="dark"] .video-modal-header {
  border-bottom: 1px solid rgba(230, 237, 247, .10);
}

html[data-theme="dark"] .video-modal-close {
  color: #E6EDF7;
}

.revision-btn--ghost {
  background: transparent;
}

/* Dark mode */
html[data-theme="dark"] .revision-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 237, 247, 0.12);
}

html[data-theme="dark"] .revision-image {
  border-color: rgba(230, 237, 247, 0.12);
}

@media (max-width: 980px) {
  .revision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .video-modal-content {
    width: 94vw;
    margin: 3vh auto 0;
    border-radius: 14px;
  }

  .video-modal-header {
    padding: 12px 14px;
  }

  .video-modal-header h2 {
    font-size: 1rem;
    line-height: 1.3;
    padding-right: 10px;
  }

  .video-modal-close {
    font-size: 1.2rem;
    flex-shrink: 0;
  }

  .video-modal-body {
    aspect-ratio: 16 / 9;
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .video-modal-content {
    width: 96vw;
    margin: 2vh auto 0;
    border-radius: 12px;
  }

  .video-modal-header {
    padding: 10px 12px;
  }

  .video-modal-header h2 {
    font-size: 0.95rem;
  }

  .video-modal-body {
    max-height: 60vh;
  }
}
/* =========================
   CORRECTION FILTRES DARK MODE
========================= */

html[data-theme="dark"] .revision-filter-group select,
html[data-theme="dark"] .revision-filter-group input {
  background-color: #252c38;
  color: #ffffff;
  border: 1px solid #414b5c;
}

html[data-theme="dark"] .revision-filter-group select option {
  background-color: #252c38;
  color: #ffffff;
}

html[data-theme="dark"] .revision-filter-group select:focus,
html[data-theme="dark"] .revision-filter-group input:focus {
  background-color: #252c38;
  color: #ffffff;
  border-color: #3ddc84;
  outline: none;
}

html[data-theme="light"] .revision-filter-group select,
html[data-theme="light"] .revision-filter-group input {
  background-color: #ffffff;
  color: #1e293b;
}
/* =====================================
   PAGES LÉGALES
===================================== */

.legal-section {
  padding: 40px 20px 60px;
}

.legal-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;

  background: #ffffff;
  color: #1e293b;

  border: 1px solid rgba(11, 31, 58, 0.10);
  border-radius: 16px;

  box-shadow: var(--shadow);
}

/* Titres */

.legal-container h1 {
  font-size: 2rem;
  margin-bottom: 35px;
  color: #0f172a;
}

.legal-container h2 {
  font-size: 1.5rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: #0f172a;
}

.legal-container h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

/* Paragraphes */

.legal-container p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #475569;
}

/* Sources */

.legal-source-card {
  padding: 25px;
  margin: 20px 0;

  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.legal-source-link {
  display: inline-block;
  padding: 12px 20px;

  background: #2e7d32;
  color: #ffffff;

  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.legal-source-link:hover {
  background: #1b5e20;
  color: #ffffff;
}

/* =====================================
   FOOTER
===================================== */

.legal-footer {
  width: 100%;
  margin-top: 40px;
  padding: 30px 20px;

  text-align: center;

  border-top: 1px solid rgba(11, 31, 58, 0.12);
  color: var(--text);
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 12px 25px;
  margin-bottom: 15px;
}

.legal-footer a {
  color: var(--ink);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =====================================
   MODE SOMBRE
===================================== */

html[data-theme="dark"] .legal-container {
  background: #172033;
  color: #e2e8f0;

  border-color: rgba(230, 237, 247, 0.12);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .legal-container h1,
html[data-theme="dark"] .legal-container h2,
html[data-theme="dark"] .legal-container h3 {
  color: #f1f5f9;
}

html[data-theme="dark"] .legal-container p {
  color: #cbd5e1;
}

html[data-theme="dark"] .legal-source-card {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .legal-footer {
  color: #cbd5e1;
  border-top-color: rgba(230, 237, 247, 0.12);
}

html[data-theme="dark"] .legal-footer a {
  color: #cbd5e1;
}

html[data-theme="dark"] .legal-footer a:hover {
  color: #ffffff;
}

/* =====================================
   RESPONSIVE MOBILE
===================================== */

@media (max-width: 768px) {

  .legal-section {
    padding: 20px 12px 40px;
  }

  .legal-container {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .legal-container h1 {
    font-size: 1.7rem;
  }

  .legal-container h2 {
    font-size: 1.3rem;
  }

  .legal-container p {
    font-size: 0.95rem;
  }

  .legal-footer-links {
    gap: 12px 18px;
  }
}