/* Réinitialisation des marges/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Police et couleurs globales */
:root{
     /* ===== Couleur principale et ses nuances ===== */
    --color-primary: #86c5f5;          /* Bleu clair (couleur principale : bandeau, pied de page) */
    --color-primary-dark: #001942;     /* Bleu foncé (case "Nous trouver", en-têtes) */
    --color-primary-light: #c1e4ff;    /* Bleu très clair (cases du questionnaire) */
    --color-primary-hover: #6ba8d6;    /* Bleu clair plus foncé (hover) */

    /* ===== Couleur d'accentuation (boutons) ===== */
    --color-accent: #ffa435;           /* Orange (boutons "S’abonner", "Envoyer") */
    --color-accent-hover: #e6952b;     /* Orange plus foncé (hover) */

    /* ===== Couleurs de texte et fond ===== */
    --color-text: #333333;             /* Texte principal (noir) */
    --color-text-light: #ffffff;       /* Texte clair (sur fonds sombres) */
    --color-text-secondary: #6c757d;   /* Texte secondaire (gris) */

    /* ===== Couleurs de bordure et délimitation ===== */
    --color-border: #8296a5;           /* Gris-bleu (traits de délimitation) */
    --color-border-hover: #5a6c7d;     /* Gris-bleu plus foncé (hover) */

    /* ===== Couleurs de fond ===== */
    --color-background: #ffffff;      /* Fond blanc par défaut */
    --color-background-dark: #f8f9fa; /* Fond gris très clair */
    --color-background-alt: #e9ecef;  /* Fond alternatif (zones secondaires) */

    /* ===== Couleurs sémantiques (succès, erreur, etc.) ===== */
    --color-success: #28a745;          /* Vert (validation) */
    --color-error: #dc3545;            /* Rouge (erreur) */
    --color-warning: #ffc107;         /* Jaune (avertissement) */
}

body{
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Liens */
a {
  color: var(--color-text);
  text-decoration: none; 
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700; /* Gras */
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Variante carrée (coins pointus) */
.button--square {
  border-radius: 0; /* Pas d'arrondi */
}

/* Variante arrondie (coins très arrondis) */
.button--round {
  border-radius: 50px; /* Arrondi maximal */
}

/* Variante par défaut (légèrement arrondie) */
.button:not(.button--square):not(.button--round) {
  border-radius: 4px; /* Arrondi léger */
}

.button--small {
  padding: 0.5rem 1rem; /* Taille petite */
}
.button--medium {
  padding: 0.75rem 1.5rem; /* Taille moyenne */
}
.button--large {
  padding: 1rem 2rem; /* Taille grande */
}

/* Styles pour les couleurs (exemple) */
.button--primary {
  background-color: var(--color-accent); 
  color: var(--color-text);
}
.button--bg-dark {
  background-color: var(--color-background-dark);
  color: var(--color-text)
}

ul, li{
  list-style-type: none;
  flex: 0 0 auto
}

input, select, textarea {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    padding: 0.25rem;
}

.icon {
    width: 30px;
    height: auto;
  }

.home-content{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.txt-center {
  text-align: center;
}

.txt-italic {
  font-style: italic;
}

.font-small {
  font-size: 0.875rem;
}

.m0 {
  margin: 0;
}

/** Styles spécifiques au composant pagination **/
.pagination{
  display: flex;
  font-weight: 600;
  letter-spacing: 0.10rem;
  font-size: 1rem;
}
.paginer{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}
.page-number.current{
  color: var(--color-accent);
  font-weight: normal;
}
.pagination>li+li,.next{
  margin-left: 15px;
}
.next, .prev{
  display: inline-flex;
}
.prev{
  margin: 0 15px 0 0;
}

/*Section Tags*/
.section-category-tags {
  width: 70%;
  margin-top: 1rem;
}
.tags{
  border-radius: 50px;
  border: 2px solid var(--color-accent);
  background-color: transparent;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-text);
  padding: 5px;
}
.tags:hover{
  background-color: var(--color-accent);
  color: var(--color-text-light);
}
.tags__category {
  margin: 1.25rem;
}
.tags-list{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
  .show-section-categories{
    display: block;
  }
  .hide-section-categories{
    display: none;
  }
/* Section page */
  .titre-page{
    font-size: 2rem;
  }
  .page-content h3 {
    font-size: 1.5rem;
  }
  .page-content h4 {
    font-size: 1.15rem;
  }
  /* Section Archives */
  .titre-archive{
  margin: 1rem 0 2rem 0;
}

.single-logo-title{
  display: inline;
  width: 20px;
}


/** RESPONSIVE **/
@media (max-width: 600px) {
  body {
    /* background-color: lightpink; */
  }
  .button{
    padding: 0.5rem 0.8rem;
  }
  .icon {
    width: 20px;
  }
  .hide-section-categories{
    display: block;
  }
  .posts-list-old{
    display: none;
  }
  .section-category-tags {
    width: 95%;
    overflow-x: auto;
    overflow-y: hidden; 
    scrollbar-width: none;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding: 20px 0; 
  }
  .tags-list{
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    min-width: max-content;
    width: max-content; 
  }
  .tags {
    border: none;
    padding: 0px;
  }
  .tags__category{
    margin: 0.5rem;
  }
  .tags:hover{
    background-color: transparent;
    color: var(--color-text);
}
}
@media (min-width: 601px) and (max-width: 800px) {
  body {
    /* background-color: #28a745; */
  }
  .hide-section-categories{
    display: block;
  }
  .section-category-tags {
    width: 95%;
    overflow-x: auto; /* Active le défilement horizontal */
    overflow-y: hidden; /* Désactive le défilement vertical */
    scrollbar-width: none;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding: 20px 0; 
  }
  .tags-list{
    display: flex;
    gap: 1rem;
    padding: 0 1rem; /* Espacement horizontal */
    min-width: max-content; /* Force le conteneur à s'étendre */
    width: max-content; 
  }
  .tags {
    border: none;
    padding: 0px;
  }
  .tags__category{
    margin: 0.5rem;
  }
  .tags:hover{
    background-color: transparent;
    color: var(--color-text);
  }
  .posts-list.desktop-only {
    display: none;
  }
  .posts-list.mobile-only {
    display: block;
  }
}
@media (min-width: 801px) and (max-width: 1230px) {
  body {
    /* background-color:#6ba8d6; */
  }
  .hide-section-categories{
    display: block;
  }
  .section-category-tags {
    width: 95%;
    overflow-x: auto; /* Active le défilement horizontal */
    overflow-y: hidden; /* Désactive le défilement vertical */
    scrollbar-width: none;
    border-top: 1px solid var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding: 20px 0; 
  }
  .tags-list{
    display: flex;
    gap: 1rem;
    padding: 0 1rem; /* Espacement horizontal */
    min-width: max-content; /* Force le conteneur à s'étendre */
    width: max-content; 
  }
  .tags {
    border: none;
    padding: 0px;
  }
  .tags__category{
    margin: 0.5rem;
  }
  .tags:hover{
    background-color: transparent;
    color: var(--color-text);
  }
  .posts-list.desktop-only {
    display: none;
  }
  .posts-list.mobile-only {
    display: block;
  }
}
@media (min-width: 1231px) and (max-width: 1700px) {
  body {
    /* background-color: #dc3545; */
  }
}
@media (min-width: 1701px) {
  body {
    /* background-color: #e6952b; */
  }
}