MediaWiki:Common.css

    De Observatoire du Langage

    Note : après avoir publié vos modifications, il se peut que vous deviez forcer le rechargement complet du cache de votre navigateur pour voir les changements.

    • Firefox / Safari : maintenez la touche Maj (Shift) en cliquant sur le bouton Actualiser ou appuyez sur Ctrl + F5 ou Ctrl + R (⌘ + R sur un Mac).
    • Google Chrome : appuyez sur Ctrl + Maj + R (⌘ + Shift + R sur un Mac).
    • Internet Explorer / Edge : maintenez la touche Ctrl en cliquant sur le bouton Actualiser ou pressez Ctrl + F5.
    • Opera : appuyez sur Ctrl + F5.
    /* Le CSS placé ici sera appliqué à tous les habillages. */
    
    /* Définition des variables de couleurs pour une gestion facile */
    :root {
    	--bg-main: #FFFBF9;         /* Fond du site (clair) */
        --text-main: #171716;       /* Texte principal (sombre) */
        --accent-primary: #A8885B;  /* Couleur Ocre/Or */
        --accent-links: #5B98A8;    /* Nouvelle couleur d'accentuation pour les liens */
        --bg-secondary: #222221;    /* Fond pour les boîtes, menus, et le contenu encadré */
        --border-color: #333333;    /* Couleur de bordure subtile */
    }
    
    
    body,h1,h2,h3,h4,p,a,li,span, section{
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: subpixel-antialiased !important;
      -moz-osx-font-smoothing: auto !important;
    
    }
    body {
      font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
      background-color: var(--bg-main);
      color: var(--text-main);
      font-size: 16px;
      font-weight: 400;
      line-height: 1.6;
    }
    .mw-page-container {
    	background-color: var(--bg-main);
    }
    
    #content, #globalWrapper, #mw-page-base, #mw-head-base {
        background-color: var(--bg-main) !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* En-têtes (H1, H2, etc.) */
    h1, h2, h3, h4, h5, h6 {
        color: var(--text-main);
        border-bottom: 1px solid var(--border-color); /* Ligne de séparation subtile */
        padding-bottom: 0.3em;
    }
    
    
    .mw-logo-icon, .mw-logo-container {
        display: none !important;
    }
    .mw-logo {
        background-image: url("https://mywikis-eu-wiki-media.s3.eu-central-2.wasabisys.com/observatoiredulangage/Observatoire-du-langage-logo-01.svg") !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        width: 160px;  /* ajuste selon ton logo */
        height: 120px;
    }
    
    
    a[title="Element_Langage_Modele_fiche"] {
      display: none !important;
    }
    a[title="Element Langage Modele fiche"] {
      display: none !important;
    }
    
    a{
    }
    .reference{
    	color: var(--accent-links); !important;
    }
    .mw-sidebar {
    	border-radius : 0.5rem;
        box-sizing: border-box;
        box-shadow: 0 8px 16px #00000029;
        background-color: #fff;
    }
    
    /* ====== Titres ====== */
    h1, h2, h3, h4 {
      font-weight: 600;
      line-height: 1.3;
      margin-top: 1.5em;
      margin-bottom: 0.8em;
    }
    
    h1 {
      font-size: 2rem;
    }
    
    h2 {
      font-size: 1.6rem;
      
      border-left: 0px solid #0056a3;
      padding-left: 0.5rem;
    }
    
    h3 {
      font-size: 1.3rem;
    }
    
    h4 {
      font-size: 1.1rem;
    }
    
    
    /* ====== Encadrés ====== */
    .box {
      background-color: #f5f7fa;
      border: 1px solid #dce1e6;
      padding: 1rem 1.5rem;
      margin: 1.5rem 0;
      border-radius: 6px;
    }
    
    .intro-box {
      background-color: #eef2f6;
      border-left: 5px solid #0056a3;
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      border-radius: 6px;
    }
    
    .note {
      background-color: #fff4e5;
      border-left: 4px solid #ff9800;
      padding: 1rem 1.5rem;
      margin: 1.5rem 0;
      border-radius: 6px;
    }
    
    
    /* ====== Navigation / Menu ====== */
    .navbar {
      background-color: #003366;
      padding: 0.8rem 1rem;
    }
    
    .navbar a {
      color: white;
      font-weight: 500;
      margin-right: 1rem;
    }
    
    .navbar a:hover {
      text-decoration: underline;
    }
    
    
    /* ====== Infobox / Wiki ====== */
    .infobox {
      background-color: #eef2f6;
      border: 1px solid #dce1e6;
      padding: 1rem 1.5rem;
      margin: 1.5rem 0;
      border-radius: 6px;
    }
    
    .infobox h3 {
      color: #003366;
      margin-top: 0;
    }
    
    .infobox p {
      margin-bottom: 0.5em;
    }
    
    
    /* Boîtes d'informations (classes par défaut de MediaWiki) */
    .box, table.wikitable, .mw-code, pre {
        background-color: var(--bg-main);
        border: 1px solid var(--border-color);
        padding: 10px;
        border-radius: 4px;
    }
    
    /* Mettre en évidence les boutons (par ex. pour l'édition) */
    .mw-ui-button, input[type="submit"] {
        background-color: var(--accent-primary);
        color: var(--bg-main) !important; /* Texte sombre sur le bouton ocre */
        border: none;
        border-radius: 4px;
        padding: 8px 12px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .mw-ui-button:hover, input[type="submit"]:hover {
        background-color: #C0A06B; /* Légèrement plus clair au survol */
    }
    
    
    /* Barre d'outils et pieds de page */
    #footer, .mw-indicators {
        color: #888; /* Texte gris plus doux */
        border-top: 1px solid var(--border-color);
        padding-top: 15px;
        font-size: 0.9em;
    }