/* ============================================================
   CEEAS — Comité Européen d'Évaluation et d'Autorisation
   des Sandwichs. Feuille de style commune à toutes les pages.
   ============================================================ */

:root {
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --eu-gold: #ffcc00;
  --paper: #f7f8fc;
  --card: #ffffff;
  --ink: #1a1f36;
  --muted: #5a627a;
  --border: #dfe3ee;
  --danger: #b3261e;
  --max: 980px;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }

a { color: var(--eu-blue); }

/* ---- Bandeau institutionnel ---- */
.topbar {
  background: var(--eu-blue);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .3px;
}
.topbar div {
  max-width: var(--max);
  margin: 0 auto;
  padding: .4rem 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.topbar .stars { color: var(--eu-gold); letter-spacing: 2px; }

/* ---- En-tête + navigation ---- */
header.site {
  background: #fff;
  border-bottom: 3px solid var(--eu-gold);
}
.site-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand .seal {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--eu-blue);
  color: var(--eu-gold);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
  border: 2px solid var(--eu-gold);
  flex-shrink: 0;
}
.brand b { font-size: 1.15rem; display: block; }
.brand small { color: var(--muted); font-size: .78rem; }

nav.main a {
  text-decoration: none;
  color: var(--ink);
  margin-left: 1.4rem;
  font-size: .95rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover,
nav.main a.active { color: var(--eu-blue); border-bottom-color: var(--eu-gold); }

/* ---- Conteneur générique ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--eu-blue), var(--eu-blue-dark));
  color: #fff;
}
.hero .wrap { padding: 4rem 1.5rem; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 720px; }
.hero p { color: #cdd6f4; font-size: 1.15rem; max-width: 620px; margin-top: 1rem; }
.hero .stars { color: var(--eu-gold); letter-spacing: 4px; font-size: 1.2rem; }

.btn {
  display: inline-block;
  background: var(--eu-gold);
  color: var(--eu-blue-dark);
  padding: .75rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 1.5rem;
}
.btn:hover { filter: brightness(.95); }

/* ---- Grille d'articles ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.article-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.article-card:hover { box-shadow: 0 8px 24px rgba(0,51,153,.12); transform: translateY(-3px); }
.tag {
  display: inline-block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  color: var(--eu-blue);
  background: #e8edfb;
  padding: .2rem .6rem;
  border-radius: 99px;
  align-self: flex-start;
  margin-bottom: .8rem;
}
.tag.danger { color: var(--danger); background: #fbe9e8; }
.article-card h3 { margin-bottom: .5rem; }
.article-card p { color: var(--muted); font-size: .95rem; flex-grow: 1; }
.article-card .date { color: var(--muted); font-size: .8rem; margin-top: 1rem; }

/* ---- Page article ---- */
.prose { max-width: 720px; }
.prose .meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.prose h2 { margin: 2rem 0 .6rem; font-size: 1.4rem; }
.prose p { margin-bottom: 1.1rem; }
.prose blockquote {
  border-left: 4px solid var(--eu-gold);
  background: #fff;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.callout strong { color: var(--danger); }
.back { display: inline-block; margin-top: 2rem; text-decoration: none; font-weight: 600; }

/* ---- Sections internes ---- */
.section-title { margin-bottom: 1.5rem; }
.section-title small { display: block; color: var(--eu-blue); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-family: "Segoe UI", sans-serif; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.panel h3 { margin-bottom: .5rem; }
.panel p { color: var(--muted); font-size: .95rem; }

/* ---- Pied de page ---- */
footer.site {
  background: var(--eu-blue-dark);
  color: #cdd6f4;
  margin-top: 3rem;
  font-size: .9rem;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; padding: 2.5rem 1.5rem; }
footer.site a { color: var(--eu-gold); text-decoration: none; }
footer.site h4 { color: #fff; margin-bottom: .6rem; font-family: "Segoe UI", sans-serif; font-size: .95rem; }
footer.site .disclaimer { width: 100%; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; color: #97a0c4; font-size: .8rem; }
