« MediaWiki:Common.css » : différence entre les versions

De Association Linéage de France et d'International
Aller à la navigationAller à la recherche
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
/* ===============================================================
/* ===============================================================
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Optimisée
   =============================================================== */
   =============================================================== */
/* --- 1. STRUCTURE DE L'ARTICLE (Correction du "désastre") --- */
#mw-content-text {
  max-width: 1050px;          /* Empêche le texte de s'étaler à l'infini sur grand écran */
  margin: 40px auto;          /* Centre l'article et ajoute de l'espace en haut/bas */
  line-height: 1.8;            /* Aère les lignes pour un confort de lecture optimal */
  color: #2c2c2c;              /* Gris anthracite pour une lecture reposante */
  padding: 40px;              /* Marges intérieures généreuses */
  background: #ffffff;        /* Fond blanc pur pour le corps de l'article */
  box-shadow: 0 0 25px rgba(0,0,0,0.08); /* Ombre légère pour détacher l'article du fond */
  font-family: 'EB Garamond', 'Garamond', serif; /* Police de caractère royale */
  font-size: 1.15em;          /* Taille de texte légèrement augmentée */
  border-radius: 4px;          /* Arrondi très léger des angles de l'article */
}
/* Harmonisation des Titres (H1, H2, H3) */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', serif;
  color: #3a260b;              /* Brun profond pour un aspect historique */
  border-bottom: 1px solid #d4af37; /* Soulignement doré fin */
  padding-bottom: 8px;
  margin-top: 1.6em;
  font-weight: bold;
}
/* Gestion des images (Thumbnails) et Infobox */
.thumb, .infobox {
  margin: 15px 0 25px 30px !important;
  border: 1px solid #d4af37 !important; /* Bordure dorée rappelant le thème */
  background: #fffdf8 !important;      /* Fond crème très léger */
  padding: 10px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}
/* --- 2. ÉLÉMENTS ALFI ORIGINAUX (Menu Index et Boutons) --- */


#alfi-index {
#alfi-index {
   position: sticky;
   position: sticky;
   top: 0;
   top: 0;
   z-index: 100;
   z-index: 1000;
   text-align: center;
   text-align: center;
   background: #fffdf8e8;
   background: rgba(255, 253, 248, 0.96); /* Fond parchemin quasi-opaque */
   backdrop-filter: blur(6px);
   backdrop-filter: blur(8px);
   border-bottom: 2px solid #d4af37;
   border-bottom: 2px solid #d4af37;
   box-shadow: 0 3px 12px rgba(212,175,55,0.25);
   box-shadow: 0 4px 15px rgba(212,175,55,0.3);
   padding: 25px 15px;
   padding: 20px 15px;
   margin-bottom: 35px;
   margin-bottom: 40px;
  font-family: 'EB Garamond','Garamond',serif;
}
}


Ligne 21 : Ligne 56 :
   border: 1px solid #d4af37;
   border: 1px solid #d4af37;
   border-radius: 6px;
   border-radius: 6px;
   padding: 7px 12px;
   padding: 8px 14px;
   font-size: 17px;
   font-size: 17px;
   font-weight: bold;
   font-weight: bold;
Ligne 27 : Ligne 62 :
   box-shadow: 0 0 5px rgba(212,175,55,0.25);
   box-shadow: 0 0 5px rgba(212,175,55,0.25);
   transition: all 0.3s ease;
   transition: all 0.3s ease;
   text-decoration: none;
   text-decoration: none !important;
   display: inline-block;
   display: inline-block;
  margin: 4px;
}
}
.lettre-alfi:hover {
.lettre-alfi:hover {
   background: linear-gradient(180deg,#fff8cc,#f9e27a);
   background: linear-gradient(180deg,#fff8cc,#f9e27a);
   color: #a40000;
   color: #a40000;
   box-shadow: 0 0 12px rgba(212,175,55,0.6), 0 0 4px #fff8cc inset;
   box-shadow: 0 0 15px rgba(212,175,55,0.6), 0 0 4px #fff8cc inset;
   transform: translateY(-1px);
   transform: translateY(-2px);
}
}


.bouton-footer {
.bouton-footer {
   display: inline-block;
   display: inline-block;
   margin: 0 10px;
   margin: 5px 12px;
   padding: 8px 14px;
   padding: 9px 16px;
   color: #3a260b;
   color: #3a260b;
   font-weight: bold;
   font-weight: bold;
   text-decoration: none;
   text-decoration: none !important;
   border: 1px solid #d4af37;
   border: 1px solid #d4af37;
   border-radius: 8px;
   border-radius: 8px;
   background: linear-gradient(180deg,#f9eeb8,#f6e27f);
   background: linear-gradient(180deg,#f9eeb8,#f6e27f);
   transition: all 0.3s ease;
   transition: all 0.3s ease;
   box-shadow: 0 0 6px rgba(212,175,55,0.25);
   box-shadow: 0 0 6px rgba(212,175,55,0.2);
}
}
.bouton-footer:hover {
.bouton-footer:hover {
   background: linear-gradient(180deg,#fff7c6,#fbe88f);
   background: linear-gradient(180deg,#fff7c6,#fbe88f);
   color: #a40000;
   color: #a40000;
  box-shadow: 0 0 12px rgba(212,175,55,0.6);
   transform: translateY(-1px);
   transform: translateY(-1px);
}
}
Ligne 62 : Ligne 99 :
   left: 0;
   left: 0;
   width: 100%;
   width: 100%;
   background: rgba(255,253,248,0.85);
   background: rgba(255,253,248,0.92);
   backdrop-filter: blur(5px);
   backdrop-filter: blur(6px);
   border-top: 2px solid #d4af37;
   border-top: 2px solid #d4af37;
   box-shadow: 0 -2px 8px rgba(212,175,55,0.25);
   box-shadow: 0 -3px 10px rgba(212,175,55,0.2);
   text-align: center;
   text-align: center;
   padding: 10px 0;
   padding: 12px 0;
  font-family: 'EB Garamond',serif;
   z-index: 1000;
   z-index: 99;
}
}


@media (max-width:600px) {
/* --- 3. ADAPTATION MOBILE (Responsive) --- */
   #recherche-alfi { width:90%; font-size:16px; }
 
   .lettre-alfi { font-size:18px; padding:9px 13px; }
@media (max-width:768px) {
   #mw-content-text {
    width: 92%;
    padding: 20px;
    margin: 20px auto;
    font-size: 1.05em;
  }
 
  .thumb {
    float: none !important;
    display: block;
    margin: 15px auto !important;
    max-width: 100% !important;
  }
 
  #alfi-index { padding: 12px 5px; }
   .lettre-alfi { font-size: 15px; padding: 6px 10px; margin: 2px; }
}
}

Version du 24 mars 2026 à 15:12

/* ===============================================================
   ⚜️ STYLE GLOBAL ROYAL ALFI — Version 2026 Optimisée
   =============================================================== */

/* --- 1. STRUCTURE DE L'ARTICLE (Correction du "désastre") --- */

#mw-content-text {
  max-width: 1050px;           /* Empêche le texte de s'étaler à l'infini sur grand écran */
  margin: 40px auto;           /* Centre l'article et ajoute de l'espace en haut/bas */
  line-height: 1.8;            /* Aère les lignes pour un confort de lecture optimal */
  color: #2c2c2c;              /* Gris anthracite pour une lecture reposante */
  padding: 40px;               /* Marges intérieures généreuses */
  background: #ffffff;         /* Fond blanc pur pour le corps de l'article */
  box-shadow: 0 0 25px rgba(0,0,0,0.08); /* Ombre légère pour détacher l'article du fond */
  font-family: 'EB Garamond', 'Garamond', serif; /* Police de caractère royale */
  font-size: 1.15em;           /* Taille de texte légèrement augmentée */
  border-radius: 4px;          /* Arrondi très léger des angles de l'article */
}

/* Harmonisation des Titres (H1, H2, H3) */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', serif;
  color: #3a260b;              /* Brun profond pour un aspect historique */
  border-bottom: 1px solid #d4af37; /* Soulignement doré fin */
  padding-bottom: 8px;
  margin-top: 1.6em;
  font-weight: bold;
}

/* Gestion des images (Thumbnails) et Infobox */
.thumb, .infobox {
  margin: 15px 0 25px 30px !important;
  border: 1px solid #d4af37 !important; /* Bordure dorée rappelant le thème */
  background: #fffdf8 !important;       /* Fond crème très léger */
  padding: 10px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.1);
}

/* --- 2. ÉLÉMENTS ALFI ORIGINAUX (Menu Index et Boutons) --- */

#alfi-index {
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  background: rgba(255, 253, 248, 0.96); /* Fond parchemin quasi-opaque */
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #d4af37;
  box-shadow: 0 4px 15px rgba(212,175,55,0.3);
  padding: 20px 15px;
  margin-bottom: 40px;
}

.lettre-alfi {
  background: linear-gradient(180deg,#f8f2d0,#f6e27f);
  border: 1px solid #d4af37;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 17px;
  font-weight: bold;
  color: #3a260b;
  box-shadow: 0 0 5px rgba(212,175,55,0.25);
  transition: all 0.3s ease;
  text-decoration: none !important;
  display: inline-block;
  margin: 4px;
}

.lettre-alfi:hover {
  background: linear-gradient(180deg,#fff8cc,#f9e27a);
  color: #a40000;
  box-shadow: 0 0 15px rgba(212,175,55,0.6), 0 0 4px #fff8cc inset;
  transform: translateY(-2px);
}

.bouton-footer {
  display: inline-block;
  margin: 5px 12px;
  padding: 9px 16px;
  color: #3a260b;
  font-weight: bold;
  text-decoration: none !important;
  border: 1px solid #d4af37;
  border-radius: 8px;
  background: linear-gradient(180deg,#f9eeb8,#f6e27f);
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(212,175,55,0.2);
}

.bouton-footer:hover {
  background: linear-gradient(180deg,#fff7c6,#fbe88f);
  color: #a40000;
  transform: translateY(-1px);
}

#alfi-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,253,248,0.92);
  backdrop-filter: blur(6px);
  border-top: 2px solid #d4af37;
  box-shadow: 0 -3px 10px rgba(212,175,55,0.2);
  text-align: center;
  padding: 12px 0;
  z-index: 1000;
}

/* --- 3. ADAPTATION MOBILE (Responsive) --- */

@media (max-width:768px) {
  #mw-content-text {
    width: 92%;
    padding: 20px;
    margin: 20px auto;
    font-size: 1.05em;
  }
  
  .thumb {
    float: none !important;
    display: block;
    margin: 15px auto !important;
    max-width: 100% !important;
  }

  #alfi-index { padding: 12px 5px; }
  .lettre-alfi { font-size: 15px; padding: 6px 10px; margin: 2px; }
}