/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* === VARIABLES === */
:root {
  --blue:       #1a3a6b;
  --blue-light: #2255a4;
  --blue-pale:  #e8eef7;
  --accent:     #d32f2f;
  --text:       #1a1a1a;
  --muted:      #666666;
  --border:     #d0d0d0;
  --bg:         #f5f5f5;
  --white:      #ffffff;
}

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

body {
  font-family: 'Garamond', 'EB Garamond', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.25;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent); }

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

/* === DATE BAR & EDITION LABEL === */
.date-bar {
  background: var(--blue-light);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #cce;
  padding: 4px 0;
}
.edition-label { color: #aec6e8; font-family: 'Courier New', Courier, monospace; font-size: .75rem; }
/* === HEADER === */
header {
  background: var(--blue);
  color: var(--white);
  border-bottom: 4px solid var(--accent);
}

header .site-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
}

header .site-tagline {
  font-size: 0.85rem;
  color: #aec6e8;
  font-style: italic;
}

/* === NAV === */
nav {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
}

nav .nav-link {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--blue);
  padding: 10px 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

nav .nav-link:hover,
nav .nav-link.active {
  color: var(--white);
  background: var(--blue);
  text-decoration: none;
}

/* === BREAKING BAR === */
.breaking-bar {
  background: var(--accent);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  padding: 6px 0;
}

.breaking-bar .label {
  background: #8b0000;
  padding: 2px 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === MAIN === */
main { background: var(--white); }

/* === ARTICLE CARDS === */
.article-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 4px 16px rgba(26,58,107,0.12); }

.article-card .card-category {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  background: var(--blue-light);
  padding: 2px 8px;
  display: inline-block;
}

.article-card .card-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 8px 0 6px;
}

.article-card .card-summary {
  font-size: 0.88rem;
  color: var(--muted);
  font-family: 'Garamond', Georgia, serif;
}

.article-card .card-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 6px;
}

/* === IMAGES LOCALES === */
.img-hero    { width: 100%; height: 260px; object-fit: cover; }
.img-card    { width: 100%; height: 130px; object-fit: cover; }
.img-article { width: 100%; height: 320px; object-fit: cover; margin-bottom: 20px; }
.img-preview { width: 100%; height: 160px; object-fit: cover; margin-bottom: 14px; }
.lire-article { font-family: 'Open Sans', sans-serif; font-size: .8rem; }
.card-title-sm { font-size: .88rem; }
.pdf-desc { font-size: .82rem; color: #555; }
.article-main-title { font-size: 2rem; }

/* === HERO ARTICLE === */
.hero-article { border: none; border-bottom: 3px solid var(--blue); }

.hero-article .hero-title {
  font-size: 2rem;
  color: var(--blue);
}

/* === SECTION TITLES === */
.section-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--white);
  background: var(--blue);
  padding: 6px 14px;
  margin-bottom: 12px;
}

/* === PAGE ARTICLE === */
.article-header { border-bottom: 3px solid var(--blue); padding-bottom: 16px; }

.article-summary {
  font-size: 1.15rem;
  color: var(--blue);
  font-style: italic;
  border-left: 4px solid var(--accent);
  padding-left: 14px;
  margin: 16px 0;
}

.article-body p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.article-body h2 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.6rem;
  border-bottom: 2px solid var(--blue-pale);
  padding-bottom: 4px;
}

.article-meta {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--blue-pale);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.article-meta span { margin-right: 16px; }
/* === ASIDE / SIDEBAR === */
aside {
  background: var(--blue-pale);
  border-left: 3px solid var(--blue);
  padding: 14px;
}

aside h5 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--blue);
}

.btn-pdf {
  background: var(--blue);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  padding: 8px 14px;
  border: none;
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
}

.btn-pdf:hover {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

/* === FORMULAIRE === */
.form-layout { height: calc(100vh - 160px); overflow: hidden; }
.sidebar-panel { overflow-y: auto; height: 100%; padding: 14px; font-family: 'Open Sans', sans-serif; }
.sidebar-panel.left  { background: #e8f0e8; border-right: 2px solid #7aaa7a; }
.sidebar-panel.right { background: #fce8e8; border-right: 2px solid #e07070; }
.preview-panel { overflow-y: auto; height: 100%; padding: 16px; background: var(--white); }
.sidebar-panel label { font-size: 0.8rem; font-weight: 600; color: var(--blue); margin-bottom: 2px; display: block; }
.sidebar-panel .form-control,
.sidebar-panel .form-select,
.sidebar-panel input[type=range] { font-size: 0.8rem; margin-bottom: 10px; }
.sidebar-panel .btn-reset { background: var(--muted); color: var(--white); border: none; font-size: 0.78rem; padding: 4px 12px; font-family: 'Courier New', monospace; cursor: pointer; width: 100%; margin-top: 6px; }
.sidebar-panel .btn-reset:hover { background: var(--blue); }
.widget-group { border-bottom: 1px solid #ccc; padding-bottom: 10px; margin-bottom: 10px; }
.sidebar-heading { font-family: 'Open Sans', sans-serif; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid; padding-bottom: 6px; margin-bottom: 12px; }
.sidebar-panel.left  .sidebar-heading { color: #2a6a2a; border-color: #7aaa7a; }
.sidebar-panel.right .sidebar-heading { color: #8b2a2a; border-color: #e07070; }
.preview-label { font-family: 'Open Sans', sans-serif; font-size: .75rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.preview-h1 { font-size: 1.5rem; color: var(--blue); margin-bottom: 10px; }
.preview-h2 { font-size: 1.1rem; color: var(--blue); margin: 12px 0 6px; }
.label-xs { font-size: .78rem; }

/* === FOOTER === */
footer {
  background: var(--blue);
  color: #aec6e8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  padding: 20px 0;
  border-top: 4px solid var(--accent);
}

footer h6 {
  font-family: 'Open Sans', sans-serif;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

footer a { color: #aec6e8; }
footer a:hover { color: var(--white); text-decoration: none; }

footer .footer-bottom {
  border-top: 1px solid #2255a4;
  margin-top: 14px;
  padding-top: 10px;
  font-size: 0.75rem;
  color: #7a9bbf;
}
