/*
============================================================
        Main
============================================================
*/

main {
  font-size: 20px;
  transition: font-size 0.3s ease;
  line-height: 1.75;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: #222;
  background-color: #f2f4f8;
  padding: 40px;
  margin: 0 auto;
}

/* -------------------------------
        Texte
 -------------------------------*/
main h1 {
  font-size: 36px;
  color: #005999;
  font-weight: 700;
  margin: 50px 0 25px 0;
  border-bottom: 2px solid #005999;
  padding-bottom: 8px;
}

main h2 {
  margin: 40px 0 20px 30px;
  font-size: 30px;
  color: #003f73;
  font-weight: 600;
}

main h3 {
  margin: 30px 0 15px 50px;
  font-size: 24px;
  color: #002c4e;
  font-weight: 600;
}

main h4 {
  margin: 25px 0 10px 70px;
  font-size: 21px;
  color: #002c4e;
  font-weight: 600;
}

main img {
  display: block;
  margin: 0 auto;
}


main p {
  margin-bottom: 20px;
}

main ul,
main ol {
  margin: 0 0 20px 40px;
  padding-left: 10px;
}

main li {
  margin-bottom: 8px;
}

main strong {
  font-weight: 700;
  color: #0d3b66;
}

main em {
  font-style: italic;
  color: #444;
}

main a {
  color: #0077cc;
  text-decoration: underline;
}

main a:hover {
  color: #005999;
  background-color: #e0f0ff;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 60px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* -------------------------------
        Blog Post
-------------------------------*/
main .divpostBlog {
  margin: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column; /* ← empile les articles verticalement */
  gap: 20px; /* ← espace entre les articles */
}
main ul.listeArticle {
  display: flex;
  flex-direction: column; /* empile les <li> verticalement */
  gap: 20px; /* espace entre les articles */
  list-style: none;
  border: none !important; /* supprime toute bordure */
  outline: none;            /* au cas où */
  margin: 0;
  padding: 0;
}

main ul.postBlog,
main ol.postBlog {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

main .postBlog {
  border: 2px solid rgb(75, 70, 74);
  border-radius: 0.5em;
  padding: 20px 10px;
  display: flex;
}

main .postBlog li {
  margin-bottom: 8px;
  list-style: none;
  padding-left: 0;
}

main .postBlog p {
  line-height: 1.4;
  margin: 0;
}

main .postBlog a {
  border-radius: 21px;
  background-color: #f2f4f8;
  transition: all 0.5s ease-in-out;
}

main .postBlog a:hover {
  background-color: #f2f4f8;
}


main .postBlog a img {
  margin-right: 10px;
  border-radius: 21px;
  background-color: #f2f4f8;
  transition: all 0.5s ease-in-out;
  box-shadow: none;
}

main .postBlog a:hover img {
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
  background-color: transparent; /* pas de blanchiment */
}


main .postBlog a.lien-image:hover {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

main .postBlog .abstract {

  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
}


/* -------------------------------
        Article
------------------------------- */
main .illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

main .Titreprincipal {
  font-size: 70px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin: 0px 10% 30px 10%;
  padding: 24px;
  color: #f5f5f5;
  background-color: #1e3a8a;
  border: 3px solid #93c5fd;
  border-radius: 12px;
  line-height: 1.2;
  display: block;
}

/* Résumé */
main h2.Resume {
  margin-left: 0;
  border: 2px solid white;
  padding: 16px;
  background-color: #333;
  color: white;
  line-height: 1.2;
  border-bottom: 1px solid;
}

/*
============================================================
        modesombre
============================================================
/*
*/
body.mode-sombre main {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

/* -------------------------------
        Texte
------------------------------- */
body.mode-sombre main h1,
body.mode-sombre main h2,
body.mode-sombre main h3,
body.mode-sombre main h4 {
  color: #93c5fd;
  border-color: #374151;
}

body.mode-sombre main strong {
  color: #60a5fa;
}

body.mode-sombre main em {
  color: #aaa;
}

body.mode-sombre main a {
  color: #7dd3fc;
}

body.mode-sombre main a:hover {
  background-color: #1e293b;
  color: #38bdf8;
}


/* -------------------------------
        Blog Post
-------------------------------*/
.mode-sombre .postBlog {
  background-color: #1e1e1e;
  border-color: #444;
  color: #f0f0f0;
}

.mode-sombre .postBlog p,
main.mode-sombre .postBlog li {
  color: #e5e7eb;
}

.mode-sombre .postBlog a,
.mode-sombre .postBlog img,
.mode-sombre .postBlog a:hover
{
  background-color: #1f1f1f;

}

.mode-sombre .postBlog a:hover img {
  box-shadow: 0px 0px 8px 4px rgba(147, 197, 253, 0.8); /* bleu clair */
  transition: all 0.3s ease-in-out;
}

/* -------------------------------
        Article
------------------------------- */
.mode-sombre .Titreprincipal {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #f5f5f5;
}

.mode-sombre .Resume {
  background-color: #2c2c2c;
  border-color: #555;
  color: #f0f0f0;
}


/* ================================
   Navigation style inspiré du sélecteur de langue
================================ */

.div-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    margin: 0 auto;
    width: fit-content;
}

/* Boutons précédent / suivant */
.div-navigation button {
    font-size: 1.3em;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #0080ff;
    color: white;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    min-width: 60px;
    text-align: center;
}

/* Supprimer style des liens internes */
.div-navigation button a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* Hover clair */
.div-navigation button:hover {
    background-color: #005999;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Mode sombre */
body.mode-sombre .div-navigation button {
    background-color: #444;
    color: #eee;
    border: 1px solid #555;
}

body.mode-sombre .div-navigation button:hover {
    background-color: #666;
    color: white;
    box-shadow: 0 3px 6px rgba(147, 197, 253, 0.4);
}

/* Zone de navigation chapitre (details/summary) */
.navigation-chapitre summary {
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: #0080ff;
    color: white;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    list-style: none;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.navigation-chapitre summary:hover {
    background-color: #005999;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Mode sombre */
body.mode-sombre .navigation-chapitre summary {
    background-color: #444;
    color: #eee;
    border: 1px solid #555;
}

body.mode-sombre .navigation-chapitre summary:hover {
    background-color: #666;
    color: white;
    box-shadow: 0 3px 6px rgba(147, 197, 253, 0.4);
}

/* Liste déroulante */
.navigation-chapitre ul {
    margin: 0;
    padding: 0.3em 0;
    list-style: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #0080ff;
}

body.mode-sombre .navigation-chapitre ul {
    background-color: #333;
    border-color: #666;
    box-shadow: 0 3px 8px rgba(147, 197, 253, 0.3);
    color: #eee;
}

/* Items de liste */
.navigation-chapitre li {
    margin: 0;
}

/* Liens */
.navigation-chapitre li a {
    display: block;
    padding: 8px 16px;
    color: #0080ff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation-chapitre li a:hover {
    background-color: #e0f0ff;
    color: #005999;
}

/* Mode sombre liens */
body.mode-sombre .navigation-chapitre li a {
    color: #7db8ff;
}

body.mode-sombre .navigation-chapitre li a:hover {
    background-color: #555;
    color: #cce4ff;
}
/* -------------------------------
      bouton telecharger
------------------------------- */


/* Conteneur centré */
.telecharger-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}

/* Bouton de téléchargement */

.telecharger-wrapper a  {
  background-color: #0080ff;
  border: none;
     color: white;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Survol du bouton entier */

.telecharger-wrapper  a:hover {
    color: white;
  background-color: #005999;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}


/* Icône */
.telecharger-wrapper  a::before {
  content: "📥";
  font-size: 18px;
}


/* Mode sombre */

body.mode-sombre .telecharger-wrapper a  {
  background: #444;
  border: 1px solid #555;
}

body.mode-sombre .telecharger-wrapper a:hover  {
   background: #666;
 transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
 