@charset "utf-8";

/* =========================
   RESET & BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1f2937;
  background: #f4f6f8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   MAIN WRAPPER
========================= */

#template_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  background: #ffffff;
}

/* =========================
   HEADER (BANNER)
========================= */

.header-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}

/* Title under banner */
.header-text {
  text-align: center;
  padding: 14px 12px 10px;
}

.header-text h1 {
  margin: 0;
  font-size: 1.8em;
  font-weight: 600;
  color: #0f3c68;
  line-height: 1.25;
  word-break: break-word;
}

.header-text p {
  margin: 6px 0 0;
  font-size: 1.05em;
  color: #374151;
}

/* =========================
   HEADINGS
========================= */

h1, h2, h3, h4 {
  color: #0f3c68;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  font-size: 1.6em;
  margin: 1em 0 0.5em;
}

h3 {
  font-size: 1.3em;
  margin: 1em 0 0.4em;
}

/* =========================
   LINKS & BUTTONS
========================= */

a {
  color: #1e6fb9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  background: #0f3c68;
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  margin-top: 8px;
}

/* =========================
   MENU (VERTICAL)
========================= */

.menu_niveau_1 a {
  padding: 8px 10px;
}

.menu_niveau_1_on,
.menu_niveau_1 a:hover {
  background-color: #0f3c68;
  color: #ffffff;
}

/* =========================
   CONTENT
========================= */

p {
  margin: 0.6em 0 0.9em;
}

ul {
  padding-left: 20px;
  margin: 0.5em 0 1em;
}

/* =========================
   TABLES (PROGRAM)
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

table th {
  background: #0f3c68;
  color: #ffffff;
  padding: 8px;
  text-align: left;
}

table td {
  border: 1px solid #d1d5db;
  padding: 8px;
  vertical-align: top;
}

/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */

@media (max-width: 1024px) {

  #template_wrapper {
    padding: 14px;
  }

  .header-banner img {
    max-height: 190px;
  }

  .header-text h1 {
    font-size: 1.55em;
  }
}

@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  #template_wrapper {
    padding: 12px;
  }

  .header-banner img {
    max-height: 160px;
  }

  .header-text h1 {
    font-size: 1.3em;
  }

  .header-text p {
    font-size: 0.95em;
  }

  /* Tables become scrollable */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  .header-banner img {
    max-height: 140px;
  }

  .header-text h1 {
    font-size: 1.2em;
  }
}

#template_wrapper,
#content,
#main_content,
.content,
.fieldset {
  max-width: 100%;
  overflow-x: hidden;
}

#template_wrapper * {
  box-sizing: border-box;
}

p, ul, ol, li {
  max-width: 100%;
  overflow-wrap: break-word;
}

table {
  max-width: 100%;
}

/* =========================
   PARTNERS – VISUAL BALANCE
========================= */

.partners-section {
  margin-top: 40px;
  text-align: center;
}

.partners-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #003366;
}

/* Grid simple */
.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* SAME BOX FOR ALL LOGOS */
.partners-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;     /* BOÎTE IDENTIQUE */
  height: 90px;     /* BOÎTE IDENTIQUE */
}

/* Logo inside the box */
.partners-logos img {
  max-width: 160px;
  max-height: 60px;
  object-fit: contain;
}

