Modèle:Infobox personnalité politique/styles.css
Aller à la navigation
Aller à la recherche
/* ============================================================
WikiKabylie — Infobox personnalité politique
Modèle:Infobox personnalité politique/styles.css
============================================================ */
/* ------------------------------------------------------------
CONTENEUR PRINCIPAL
------------------------------------------------------------ */
.wk-infobox {
width: 330px;
float: right;
clear: right;
margin: 0 0 24px 24px;
border: 1px solid #e2e8f0;
border-radius: 16px;
background-color: #ffffff;
color: #1e293b;
box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.5;
overflow: hidden;
transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wk-infobox:hover {
box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}
/* ------------------------------------------------------------
EN-TÊTE (HEADER)
------------------------------------------------------------ */
.wk-infobox-header {
padding: 22px 20px 18px;
border-bottom: 1px solid #f1f5f9;
background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
text-align: left;
}
.wk-infobox-kicker {
margin-bottom: 6px;
color: #16834b; /* Vert Amazigh */
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}
.wk-infobox-name {
color: #0f172a;
font-family: Georgia, "Times New Roman", serif;
font-size: 25px;
font-weight: 700;
line-height: 1.15;
letter-spacing: -.02em;
}
.wk-infobox-subtitle {
margin-top: 6px;
color: #64748b;
font-size: 12px;
font-weight: 500;
}
/* ------------------------------------------------------------
PHOTO & LÉGENDE
------------------------------------------------------------ */
.wk-infobox-image {
padding: 16px 16px 12px;
text-align: center;
background-color: #ffffff;
}
.wk-infobox-image img,
.wk-infobox-image .mw-file-element {
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.wk-infobox-caption {
margin-top: 8px;
color: #64748b;
font-size: 11px;
line-height: 1.45;
}
/* ------------------------------------------------------------
TITRES DE SECTION
------------------------------------------------------------ */
.wk-infobox-section-title {
padding: 8px 16px;
border-top: 1px solid #f1f5f9;
border-bottom: 1px solid #f1f5f9;
background-color: #f8fafc;
color: #0757a6; /* Bleu Azur */
font-size: 10px;
font-weight: 800;
letter-spacing: .12em;
text-transform: uppercase;
}
/* ------------------------------------------------------------
DONNÉES & LIGNES (ROWS)
------------------------------------------------------------ */
.wk-infobox-data {
background-color: #ffffff;
}
.wk-infobox-row {
display: grid;
grid-template-columns: 38% 62%;
border-bottom: 1px solid #f8fafc;
transition: background-color 0.15s ease;
}
.wk-infobox-row:last-child {
border-bottom: 0;
}
.wk-infobox-row:hover {
background-color: #f8fafc;
}
.wk-infobox-label {
padding: 10px 8px 10px 16px;
color: #64748b;
font-size: 11px;
font-weight: 700;
}
.wk-infobox-value {
padding: 10px 16px 10px 8px;
color: #1e293b;
overflow-wrap: break-word;
}
.wk-infobox-value strong {
color: #0f172a;
font-weight: 700;
}
.wk-infobox-muted {
color: #64748b;
font-size: 11px;
}
/* ------------------------------------------------------------
FONCTIONS PRINCIPALES & BLOCS DE MANDAT
------------------------------------------------------------ */
.wk-infobox-row-featured {
background-color: #f0f7ff;
}
.wk-infobox-mandate {
padding: 14px 16px;
border-bottom: 1px solid #e2e8f0;
background-color: #f0f7ff;
}
.wk-infobox-mandate-title {
color: #0f172a;
font-family: Georgia, "Times New Roman", serif;
font-size: 15px;
font-weight: 700;
line-height: 1.3;
}
.wk-infobox-mandate-period {
margin-top: 4px;
color: #64748b;
font-size: 11px;
font-weight: 600;
}
.wk-infobox-mini-row {
display: grid;
grid-template-columns: 43% 57%;
gap: 8px;
margin-top: 8px;
font-size: 11px;
}
.wk-infobox-mini-row span {
color: #64748b;
}
.wk-infobox-mini-row strong {
color: #1e293b;
font-weight: 700;
}
.wk-infobox-row-wide {
grid-template-columns: 32% 68%;
}
/* ------------------------------------------------------------
LISTES & LIENS
------------------------------------------------------------ */
.wk-infobox-value ul {
margin: 2px 0 2px 16px;
padding: 0;
}
.wk-infobox-value li {
margin: 3px 0;
}
.wk-infobox a {
color: #0757a6;
text-decoration: none;
transition: color 0.15s ease;
}
.wk-infobox a:hover {
color: #073763;
text-decoration: underline;
}
.wk-infobox-official {
padding: 12px 16px;
border-top: 1px solid #e2e8f0;
background-color: #f8fafc;
text-align: center;
}
.wk-infobox-official a {
font-weight: 700;
font-size: 12px;
}
/* ------------------------------------------------------------
SIGNATURE
------------------------------------------------------------ */
.wk-infobox-signature {
padding: 12px;
text-align: center;
}
.wk-infobox-signature img,
.wk-infobox-signature .mw-file-element {
max-width: 150px;
height: auto;
}
/* ------------------------------------------------------------
VARIATION POLITIQUE (Accents visuels Amazigh/Kabylie)
------------------------------------------------------------ */
.wk-infobox-politique .wk-infobox-header {
border-top: 4px solid #0757a6; /* Bleu Azur */
}
.wk-infobox-politique .wk-infobox-section-title {
border-left: 3px solid #16834b; /* Vert Nature */
}
/* ------------------------------------------------------------
RESPONSIVE DESIGN (Mobiles & Tablettes)
------------------------------------------------------------ */
@media (max-width: 720px) {
.wk-infobox {
width: 100%;
float: none;
clear: both;
margin: 0 0 24px 0;
border-radius: 12px;
}
.wk-infobox-name {
font-size: 22px;
}
.wk-infobox-row {
grid-template-columns: 36% 64%;
}
.wk-infobox-mini-row {
grid-template-columns: 42% 58%;
}
}
@media (max-width: 480px) {
.wk-infobox-row {
display: block;
}
.wk-infobox-label {
padding: 8px 14px 2px;
color: #64748b;
}
.wk-infobox-value {
padding: 2px 14px 10px;
}
.wk-infobox-mini-row {
display: block;
}
.wk-infobox-mini-row span {
display: block;
margin-bottom: 2px;
}
.wk-infobox-mini-row strong {
display: block;
}
}
/* ------------------------------------------------------------
IMPRESSION (Clean Print)
------------------------------------------------------------ */
@media print {
.wk-infobox {
float: right;
width: 40%;
box-shadow: none;
border: 1px solid #000000;
background-color: #ffffff;
color: #000000;
}
}