
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  --bg: #0b0d12;
  --surface: #11141c;
  --surface-hover: #191e29;
  --text: #f4f6fa;
  --muted: #9ca5b5;
  --border: #272d39;
  --accent: #8397ff;
  --accent-strong: #b0bdff;
  --button-bg: #f3f5fa;
  --button-text: #10131b;
  --header-bg: rgba(11, 13, 18, .88);

  margin: 0;
  color: var(--text);
  background: var(--bg);
  transition: background .2s, color .2s;
}

body[data-theme="light"] {
  --bg: #fff;
  --surface: #f6f7fa;
  --surface-hover: #eceef4;
  --text: #171a23;
  --muted: #646c7b;
  --border: #e1e4eb;
  --accent: #435de3;
  --accent-strong: #435de3;
  --button-bg: #171b28;
  --button-text: #fff;
  --header-bg: rgba(255, 255, 255, .9);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -2.6px;
  line-height: 1.1;
  margin: 22px 0;
  font-weight: 750;
}

h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin: 16px 0;
}

.gradient-text {
  background: linear-gradient(
    115deg,
    var(--accent-strong),
    #85b7ff,
    #9f8bff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navigation */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.7px;
}

.brand strong {
  font-weight: 400;
  color: var(--muted);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 650;
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 17px;
}

.menu-toggle {
  display: none;
}

/* En-tête de page */

.page-hero {
  padding-top: 88px;
  padding-bottom: 20px;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63cba1;
  box-shadow: 0 0 12px #63cba180;
}

.page-hero p,
.section-description {
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 620px;
}

/* Sections */

.section {
  padding: 60px 0 95px;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.8;
}

/* Boutons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--button-bg);
  color: var(--button-text);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.text-link {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
  display: inline-block;
  margin-top: 12px;
}

/* Cartes génériques (liens rapides, infos) */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
  display: block;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-hover);
  color: var(--accent-strong);
  font-size: 22px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* Actualités */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-date {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 11px;
}

.news-item h3 {
  font-size: 18px;
  margin-bottom: 9px;
}

.news-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.faq-question .chevron {
  flex-shrink: 0;
  color: var(--accent-strong);
  transition: transform .2s;
}

.faq-item.open .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px 22px;
}

.contact-method .card-icon {
  width: 38px;
  height: 38px;
  font-size: 18px;
  margin-bottom: 0;
}

.contact-method h3 {
  font-size: 14px;
  margin-bottom: 5px;
}

.contact-method p,
.contact-method a {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-method a:hover {
  color: var(--accent-strong);
}

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 10px;
  padding: 20px 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Prose (contenu texte long) */

.prose {
  max-width: 720px;
}

.prose p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 18px;
}

.prose h3 {
  color: var(--text);
  font-size: 18px;
  margin: 34px 0 12px;
}

.prose ul {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  padding-left: 22px;
  margin: 0 0 18px;
}

/* Conclusion */

.closing-section {
  padding: 95px 0;
  text-align: center;
}

.closing-section h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.closing-section p {
  color: var(--muted);
  margin: 18px 0 28px;
}

.closing-section .btn {
  margin: auto;
}

/* Pied de page */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-brand strong {
  font-size: 15px;
}

.footer-brand p,
.copyright {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Tablettes */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobiles */

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav {
    min-height: 68px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 4px;
  }

  .theme-toggle {
    margin-top: 10px;
  }

  .page-hero {
    padding-top: 60px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0 70px;
  }

  .closing-section {
    padding: 70px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
