/* ===================================================== */
/* BASE RESET */
/* ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

/* ===================================================== */
/* CONTAINER */
/* ===================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */

header {
  background: #0b1e35;
  color: white;
  padding: 15px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
header img {
  max-height: 50px;
  width: auto;
  display: block;
}





@media (max-width: 768px) {

  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header img {
    max-height: 38px;
  }

  nav {
    display: none; /* menu hamburger obligatoire */
  }
}




/* NAV */

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #f7c948;
}

/* ===================================================== */
/* HERO */
/* ===================================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 0;
  gap: 40px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #0b1e35;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
}

.hero img {
  width: 100%;
  border-radius: 10px;
}

/* BUTTON */

.btn {
  display: inline-block;
  background: #f7c948;
  color: #0b1e35;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
}

.btn:hover {
  background: #e6b800;
}

/* ===================================================== */
/* TITLES */
/* ===================================================== */

h2 {
  font-size: 30px;
  margin: 40px 0 20px;
  color: #0b1e35;
}

h3 {
  font-size: 22px;
  margin: 20px 0 10px;
  color: #0b1e35;
}

/* ===================================================== */
/* GRID SYSTEM */
/* ===================================================== */

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

/* CARDS */

.card {
  background: #f8f9fb;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ===================================================== */
/* LINKS */
/* ===================================================== */

a {
  color: #0b1e35;
}

a:hover {
  color: #f7c948;
}

/* ===================================================== */
/* TABLES */
/* ===================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

table th {
  background: #0b1e35;
  color: white;
}

/* ===================================================== */
/* IMAGES */
/* ===================================================== */

img {
  max-width: 100%;
  height: auto;
}

/* ===================================================== */
/* SECTIONS */
/* ===================================================== */

section {
  padding: 40px 0;
}

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

footer {
  background: #0b1e35;
  color: white;
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
}

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

@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

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

}


.metrics {
  background: #f8f9fb;
  padding: 20px;
  margin-top: 20px;
  border-left: 5px solid #0b1e35;
  border-radius: 8px;
}

.metrics h4 {
  margin-bottom: 10px;
  color: #0b1e35;
}

.metrics table {
  width: 100%;
}

.metrics td {
  padding: 8px;
}




.menu-toggle {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    background: #0b1e35;
    text-align: center;
    padding: 15px 0;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  nav.active {
    display: block;
  }
}