*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #eef3f9;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: 40px;
  margin: 0 0 10px 0;
  color: #023da5;
  text-align: left;
}

h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 10px;
}

h3 {
  font-size: 18px;
  margin-top: 30px;
}

.subtitle {
  font-size: 18px;
  color: #555;
  margin: 0 0 24px 0;
}

/* Layout Blocks */
.intro {
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 20px auto 0;
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.container.dark {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
}

.section {
  margin-top: 20px;
}

.card,
.partenaires-card {
  background-color: white;
  padding: 10px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  width: 90%;
  max-width: 500px;
  margin: 12px auto 0;
}

/* Lists */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.container ul ul {
  padding-left: 20px;
}

li {
  margin: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}

li:first-child {
  margin-top: 4px;
}

li:last-child {
  margin-bottom: 4px;
  border-bottom: 0;
}

/* Buttons & Links */
.card a,
a.button {
  display: block;
  padding: 15px;
  background: linear-gradient(to bottom, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 18px;
}

.card a:hover,
a.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

a.button.primary {
  background: linear-gradient(to bottom, #007bff, #0056b3);
}

a.button.primary:hover {
  background: linear-gradient(to bottom, #0056b3, #003d80);
}

a.conseiller {
  background: linear-gradient(to bottom, #28a745, #1e7e34);
}

a.conseiller:hover {
  background: linear-gradient(to bottom, #218838, #1c7430);
}

.button svg {
  width: 20px;
  height: 20px;
  fill: white;
  vertical-align: middle;
  margin-right: 8px;
}

.back-link {
  display: block;
  max-width: 800px;
  margin: 20px auto 0; /* même que .container */
  padding: 8px 16px;
  background-color: #dee8f7;
  color: #007bff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
}

.back-link:hover {
  background-color: #c6daf3;
}

/* Popups */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup-conseiller {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border: 2px solid #2a4d69;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 400px;
  text-align: left;
}

.popup-conseiller h3 {
  margin-top: 0;
  color: #2a4d69;
}

.popup-conseiller a {
  color: #2a4d69;
  text-decoration: underline;
  font-weight: bold;
}

.popup-conseiller button {
  padding: 6px 12px;
  background-color: #2a4d69;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

/* Images */
.partenaires-card img {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px;
  background-color: #f9f9f9;
}

.partner-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.header-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 20px auto;
}

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

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

thead tr {
  background: #f2f2f2;
}

/* Misc */
blockquote {
  background: #f2f2f2;
  padding: 12px 20px;
  border-left: 4px solid #007bff;
  margin: 20px 0;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #666;
  margin-top: 20px;
  padding: 16px 20px 10px;
}

.nowrap {
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  table {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 10px;
  }

  h1 {
    font-size: 22px;
  }

  a {
    padding: 12px;
    font-size: 16px;
  }
}

