/* static/css/custom.css */
/* Mode clair */
:root {
    --background-color: #f7f7f7;  /* Fond d'écran */
    --heading-color: #2c3e50;    /* Titres */
    --text-color: #080808;       /* Texte principal */
    --link-color: #7a7a7a;       /* Liens */
    --visited-color: #a4a4a4;    /* Liens visités */
    --blockquote-color: #e74c3c; /* Citations */
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #080808;  /* Fond d'écran */
        --heading-color: #f7f7f7;     /* Titres */
        --text-color: #f7f7f7;        /* Texte principal */
        --link-color: #a4a4a4;        /* Liens */
        --visited-color: #d1d1d1;     /* Liens visités */
        --blockquote-color: #d1d1d1; /* Citations */
    }
}

/* Exemple de style supplémentaire pour les boutons et éléments forts */
strong, b {
    color: var(--heading-color);
}

button {
    background-color: var(--link-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
}

/* Centre le lien et le titre */
a.title {
  display: block;          /* Permet de centrer le lien */
  text-align: center;      /* Centre le texte */
  margin-left: auto;       /* Centre le bloc horizontalement */
  margin-right: auto;      /* Centre le bloc horizontalement */
  width: 100%;             /* Prend toute la largeur disponible */
}

/* Optionnel : retire le soulignement et ajuste la marge */
a.title h1 {
  margin: 0 auto;          /* Centre le h1 */
  text-decoration: none;   /* Pas de soulignement */
}

/* Style pour le sous-titre */
.title .subtitle {
  font-size: 0.8em;          /* Taille plus petite */
  color: #666;              /* Couleur plus discrète */
  margin-top: -10px;        /* Réduit l'espace entre le titre et le sous-titre */
  text-align: center;       /* Centre le sous-titre */
  font-weight: normal;      /* Police normale (pas en gras) */
  margin-bottom: 20px;      /* Espace sous le sous-titre */
}

/* Centre les menus */
nav {
  text-align: center;
  margin: 20px auto;
}

nav ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  gap: 15px;
}

nav a {
  margin: 0 8px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

nav a:hover {
  transform: scale(1.1); /* Agrandit de 10% */
  text-decoration: none; 
  
}

}

/* Justification du texte */
main p,
article p {
    text-align: justify;
    hyphens: auto; /* Optionnel : active la césure pour un meilleur rendu */
    word-break: break-word; /* Évite les débordements */
}

/* Police pour le texte général*/
@font-face {
  font-family: 'Inter-Regular';
  src: url('/fonts/Inter-Regular.woff2') format('woff2'),
       url('/fonts/Inter-Regular.woff') format('woff'),
       url('/fonts/Inter-Regular.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
/* Police pour le titre du site */
@font-face {
  font-family: 'DirtyEgo';
  src: url('/fonts/DirtyEgo.woff2') format('woff2'),
       url('/fonts/DirtyEgo.woff') format('woff'),
       url('/fonts/DirtyEgo.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Applique la police UNIQUEMENT au titre du site */
.title h1 {
  font-family: 'DirtyEgo', sans-serif !important;
  /* Optionnel : ajuste la taille ou le style */
  font-size: 6em;
  font-weight: bold;
  margin-bottom:0.1em;
  background: linear-gradient(to right, #080808, #f7f7f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ombre légère */
}

/* Police pour les titres des menus */
@font-face {
  font-family: 'uwch';
  src: url('/fonts/uwch.woff2') format('woff2'),
       url('/fonts/uwch.woff') format('woff'),
       url('/fonts/uwch.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
  
}

/* Applique la police UNIQUEMENT au sous-titre du site */
.subtitle {
  font-family: 'uwch', serif !important;    /* Optionnel : ajuste la taille ou le style */
  font-weight: normal;              /* Optionnel : texte en gras */
  font-size: 1.5em;               /* Optionnel : taille légèrement augmentée */
  margin-bottom: 0.1em;
  background: linear-gradient(to right, #a4a4a4, #f7f7f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2); /* Ombre légère */
}

/* Applique la police UNIQUEMENT au titre des menus */
nav a {
  font-family: 'uwch', serif !important;    /* Optionnel : ajuste la taille ou le style */
  font-weight: bold;              /* Optionnel : texte en gras */
  font-size: 1.2em;               /* Optionnel : taille légèrement augmentée */
  margin-bottom: 0.1em;
}

