:root {
  --background: #07111f;
  --surface: #0d1b2d;
  --surface-hover: #12243a;
  --text: #edf5ff;
  --muted: #a6b6ca;
  --cyan: #4adfff;
  --blue: #258cff;
  --border: rgba(115, 190, 255, 0.18);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(37, 140, 255, 0.18), transparent 38rem),
    radial-gradient(ellipse at 90% 30%, rgba(74, 223, 255, 0.08), transparent 35rem),
    var(--background);
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.65;
}

/* MENU PRINCIPAL */

.site-header {
  width: min(1160px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 750;
  white-space: nowrap;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(74, 223, 255, 0.75);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.2s;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(74, 223, 255, 0.1);
}

/* LARGEUR DU CONTENU */

main {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

/* ACCUEIL */

.hero {
  padding: 100px 0 88px;
  max-width: 790px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
}

.hero h1 span {
  color: var(--cyan);
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

/* BOUTON */

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 19px;
  border-radius: 9px;
  color: #04111e;
  background: linear-gradient(110deg, var(--cyan), #60a9ff);
  box-shadow: 0 8px 24px rgba(37, 140, 255, 0.25);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 140, 255, 0.4);
}

/* RUBRIQUES */

.section-block {
  padding: 34px 0 72px;
  border-top: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2,
.about-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

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

/* CARTES */

.menu-card {
  min-height: 205px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, #102237, #091727);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}

.menu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 223, 255, 0.58);
  background: var(--surface-hover);
}

.menu-card > span:first-child {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.menu-card h3 {
  margin: 12px 0 6px;
  font-size: 1.22rem;
}

.menu-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.card-arrow {
  display: inline-flex;
  gap: 9px;
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

/* À PROPOS */

.about-section {
  max-width: 800px;
  padding: 34px 0 76px;
  border-top: 1px solid var(--border);
}

.about-section h2 {
  margin-bottom: 13px;
}

.about-section p:last-child {
  color: var(--muted);
}

/* PIED DE PAGE */

.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

/* PAGES DES RUBRIQUES */

.page-heading {
  padding: 68px 0 30px;
}

.page-heading h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
}

.page-heading p {
  margin-top: 9px;
  color: var(--muted);
}

.page-content {
  padding-bottom: 76px;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.content-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(145deg, #102237, #091727);
  box-shadow: var(--shadow);
}

.content-card h2,
.content-card h3 {
  margin-bottom: 10px;
}

.content-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* ADAPTATION AUX MOBILES */

@media (max-width: 850px) {
  .site-header {
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
  }

  .hero {
    padding: 70px 0 65px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: calc(100% - 28px);
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 7px 8px;
  }

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

  .hero {
    padding: 58px 0;
  }

  .hero-text {
    font-size: 1rem;
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}
