@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@400;600;700&family=Source+Code+Pro:wght@400;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Playfair Display', Georgia, serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 700;
}
p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

/* ── HEADER ── */
header {
    background: #FFD700;
    border-bottom: 3px solid #1a1a1a;
}
header a.brand {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
header small {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}
header time {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.8rem;
    color: #555;
}

/* ── NAV ── */
nav {
    background: #1a1a1a;
    border-bottom: 3px solid #FFD700;
}
nav a {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.85rem;
    color: #ccc;
    text-decoration: none;
    padding: 0.6rem 1rem;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}
nav a:hover, nav a.active {
    color: #FFD700;
    background: #333;
}

/* ── MAIN ── */
main { padding: 1.5rem 0; }
.label {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

/* ── ARTICLES ── */
article { margin-bottom: 1rem; }

article h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.2rem;
}
article h2 a { color: #1a1a1a; text-decoration: none; }

article h2 a:hover { color: #cc0000; }

#indeximg img{height:200px; object-fit:cover;}

article .meta {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 0.2rem;
}

article .summary { font-size: 0.9rem; color: #555; }

article.featured h2 { font-size: 1.8rem; line-height: 1.2; }

article.featured .summary { font-size: 1rem; }

hr { border: none; border-top: 1px solid #ddd; margin: 0.8rem 0; }

aside { border-left: 3px solid #FFD700; padding-left: 1rem; }

/* ── PAGE D'ARTICLE ── */
.cat {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cc0000;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
h1.title { font-size: 2.2rem; line-height: 1.2; margin-bottom: 0.8rem; }

#articleimg img{max-height:380px; object-fit:cover;}

p.artmeta {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.8rem;
    color: #555;
    border-top: 2px solid #FFD700;
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
    margin-bottom: 1.2rem;
}
p.lead {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    border-left: 4px solid #FFD700;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}
section h2 {
    font-size: 1.2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.3rem;
    margin: 1.2rem 0 0.5rem;
}
figcaption {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.3rem;
}

/* ── CALCULATRICE ── */
.calc {
    background: #f5f5f0;
    border: 1px solid #ddd;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
}
.calc h4 {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 0.5rem;
}
.calc output {
    display: block;
    width: 100%;
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 1.2rem;
    text-align: right;
    border: 1px solid #ddd;
    padding: 0.3rem 0.5rem;
    background: #fff;
    margin-bottom: 0.4rem;
}
.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }

.calc-grid span {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.9rem;
    padding: 0.4rem;
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    display: block;
}
.calc-grid .op { background: #1a1a1a; color: #fff; }
.calc-grid .eq { background: #FFD700; font-weight: 700; }
.calc-grid .wide { grid-column: span 2; }

/* ── PAGE PERSONNALISER ── */
.panel-green {
    background: #c8f5c8;
    border: 1px solid #aaa;
    padding: 1rem;
}
.panel-red {
    background: #f5c8c8;
    border: 1px solid #aaa;
    padding: 1rem;
}
.panel-blue {
    background: #c8e8f5;
    border: 1px solid #aaa;
    padding: 1rem;
    overflow-y: auto;
    max-height: 72vh;
}
legend {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    font-weight: 600;
    padding: 0 0.4rem;
}
label {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    color: #444;
    display: block;
    margin-top: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
select, input[type="range"], input[type="color"] {
    display: block;
    width: 100%;
    margin-bottom: 0.2rem;
}
.preview { border: 1px solid #ddd; padding: 1rem; background: #fff;}

.preview h3{ font-size:1.1rem; font-family:'Open Sans',Arial,sans-serif; margin-bottom:0.5rem;}

/* ── FOOTER ── */
footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 2rem 0 1rem;
    border-top: 4px solid #FFD700;
}
footer h5 {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFD700;
    margin-bottom: 0.8rem;
}
footer a { color: #aaa; text-decoration: none; font-size: 0.9rem; }

footer a:hover { color: #FFD700; }

footer ul { list-style: none; padding: 0; }

footer ul li { margin-bottom: 0.3rem; }

footer strong.brand {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1.5rem;
    color: #FFD700;
}
footer input[type="email"] {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid #555;
    background: #222;
    color: #ccc;
    width: 100%;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}
footer .btn-newsletter {
    background: #FFD700;
    border: none;
    padding: 0.3rem 1rem;
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}
footer p{ font-size:0.85rem;}

footer p.copy {
    font-family: 'Source Code Pro', Courier, monospace;
    font-size: 0.7rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}