/* Modernized layout, inspired from andreas08 layout by Andreas Viklund - http://andreasviklund.com – improved by myself in 2026 */

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

/**************** Body and tag styles ****************/
body {
  margin: 0;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  line-height: 1.5;
  font-size: 0.9rem;
  color: #303030;
  background: #e8eaec;

  @media (max-width: 800px) {
    font-size: 0.8rem;
  }
}


a {
  color: #2f5e8c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #467aa7;
}


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

}

/*** Container responsive ****/

#container {
  max-width: 1200px;
  margin: 40px auto;
  width: 95%;
  background: #ffffff;
  border: 2px solid #a0a0a0;
  padding: 1px;
}



#banner {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#header {
  width: 100%;
  background: #467aa7;
  color: #ffffff;
  padding: 30px 30px;
}


#header h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  margin: 0;

  @media (max-width: 800px) {
    font-size: 1.7rem;
  }
}

#header h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: #f0f2f4;
  margin-top: 10px;

  @media (max-width: 800px) {
    font-size: 1rem;
  }
}


#banniere_image
{
    width: 100%;
    margin-top: 12px;
    margin: auto;
    height: 215px;
    border-radius: 5px;
    background: url('bord_hesaxgone.png') no-repeat center;
    background-color: black;
    position: relative;
    box-shadow: 0px 4px 4px #1c1a19;
    margin-bottom: 25px;
}
 

#banniere_image_anr
{
    width: 100%;
    margin-top: 12px;
    margin: auto;
    height: 235px;
    border-radius: 5px;
    background: url('Uranus_images_ANR.png') no-repeat center;
    background-color: black;
    position: relative;
    box-shadow: 0px 4px 4px #1c1a19;
    margin-bottom: 25px;
}
 

/* ================= Navigation ================= */

#navigation {
  width: 100%;
  background: #578bb8;
}

#navigation ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

#navigation li {
  float: left;
  list-style-type: none;
  border-right: 1px solid #ffffff;

  /* liseré vertical entre liens */
  @media (max-width: 800px) {
    border-right: none
  }
}

#navigation li a {
  display: block;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: normal;
  text-transform: uppercase;
  text-decoration: underline;
  background-color: inherit;

  @media (max-width: 800px) {
    padding: 4px 10px;
  }
}

#navigation li a:hover,
#navigation .selected {
  background: #80b0da;
  text-decoration: none;
}





/* ============ Main Layout (Flexbox) ============ */

#main {
  display: flex;
  flex-wrap: nowrap;
  /* Empêche la sidebar de se centrer */
  justify-content: flex-start;
  align-items: flex-start;
  padding: 30px 20px;
  gap: 40px;
  /* espace entre contenu et sidebar */
  width: 100%;
}

/* ================= Contenu principal ================= */

#content {
  display:flex;
  flex-direction: column;
  gap:12px;
  flex: 1 1 auto;
  /* occupe tout l’espace restant */
  min-width: 500px;
  /* empêche de devenir trop petit */

  text-align: justify;
  text-justify: inter-word;
  /* standard moderne */
  hyphens: auto;
  /* coupe les mots automatiquement si possible */
}

#content h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.7rem;
  line-height: 2rem;
  font-weight: 600;
  margin: 0;

  @media (max-width: 800px) {
    font-size: 1.5rem;
  }
}

#content h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color:  #505050;
  margin-top: 10px;

  @media (max-width: 800px) {
    font-size: 1.2rem;
  }
}

/*#content h1 {
  margin-top: 0;
  font-size: 2.2rem;
  font-weight: 400;
  color: #505050;
  padding-bottom: 6px;
}

#content h2 {
  margin-top: 0;
  font-size: 1.7rem;
  font-weight: 400;
  color: #505050;
  padding-bottom: 6px;
}*/

#content h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

#content p {
  margin-bottom: 1.4em;
}

#content ul,
#content ol {
  margin-left: 20px;
  margin-bottom: 1.4em;
}

/* ================= Sidebar ================= */

#subcontent {
  flex: 0 0 220px;
  /* largeur fixe, ne se rétrécit pas */
  font-size: 0.95rem;
}


#subcontent h2 {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 0;
}

.logos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.logo {
  min-width: 100px;
  max-width: 180px
}

/* ============ Utility classes ============ */

.textcenter {
  text-align: center;
}

.textright {
  text-align: right;
}

.small {
  font-size: 0.85rem;
}

.medium {
  font-size: 0.95rem;
}

.hide {
  display: none;
}

.box {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #c0c0c0;
  background-color: #fafbfc;
}

.border {
  border: 1px solid #c0c0c0;
}

/* ============ Images ============ */

.img_flex {
  display: flex;
  gap: 10px;
}

/* ============ Footer ============ */

#footer {
  width: 100%;

  background: #467aa7;
  color: #ffffff;
  text-align: center;
  padding: 15px;
  font-size: 0.85rem;
}

#footer a {
  color: #ffffff;
}

#footer a:hover {
  text-decoration: underline;
}


/* ================= Mobile – sidebar passe en dessous ================= */

@media (max-width: 800px) {
  #navigation ul {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #main {
    flex-wrap: wrap;
    /* autorise le wrapping sur petit écran */
    gap: 20px;
    padding: 20px 10px;
  }

  #content,
  #subcontent {
    flex: 1 1 100%;
    /* plein largeur sur mobile */
    min-width: 100%;
  }

}


/* ============ Dark mode ============ */


@media (prefers-color-scheme: dark) {

  body {
    background: #1e1f21;
    color: #e0e0e0;
  }

  #container {
    background: #2a2c2f;
    border-color: #444;
  }

  #header {
    background: #2f5e8c;
  }

  #navigation {
    background: #3b6f9f;
  }

  #navigation a:hover,
  #navigation .selected {
    background: #4c86c0;
  }

  #content h2 {
    color: #8596ae;
    border-bottom: 1px solid #444;
  }

  .box {
    justify-items: center;
    background: #323437;
    border-color: #444;
  }

  #footer {
    background: #2f5e8c;
  }

  a {
    color: #7db4ff;
  }

}
