/* site.css */

:root {
  --bg-main: #f5f6f8;
  --color-primary: #6495ed;
  --color-accent: #d9534f;
  --color-text: #333;
  --card-bg: #fff;
}

/* ======================================================
   RESET & BASE
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--color-text);
  line-height: 1.5;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ======================================================
   LAYOUT GLOBAL
====================================================== */
.page {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* ======================================================
   CARDS
====================================================== */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ======================================================
   HEADER
====================================================== */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header img {
  max-height: 90px;
}

/* ======================================================
   SCROLLER HORIZONTAL (WOW)
====================================================== */
.scroller-wrapper {
  width: 100%;
  margin: 20px 0 30px;
  overflow: hidden;
}

.scroller {
  width: 100%;
  overflow: hidden;
}

.scroller-track {
  display: flex;
  width: max-content;
  gap: 10px;
  will-change: transform;
}

.scroller-track li {
  list-style: none;
  width: 120px;
  flex-shrink: 0;
  text-align: center;
}

.scroller-track img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.scroller-track a {
  cursor: pointer;
  display: block;
  font-size: 12px;
  color: #000;
}

.scroller-track span {
  display: block;
  margin-top: 4px;
}

/* ======================================================
   RECHERCHE
====================================================== */
.main-search-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto 60px;
  max-width: 900px;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.search-box input {
  width: 360px;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-box button {
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  background: #6495ed;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.search-box button:hover {
  background: #4b7cd8;
}

#search-results {
  width: 100%;
}

.search-result {
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.search-result a {
  font-size: 16px;
  font-weight: 700;
}

.search-path {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

/* ======================================================
   INTRO
====================================================== */
.intro {
  text-align: center;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #555;
}

/* ======================================================
   NAVIGATION PAR ANNÉES
====================================================== */
.year-nav {
  text-align: center;
  margin-bottom: 20px;
}

.year-nav a {
  display: inline-block;
  margin: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  background: #eee;
  font-weight: 600;
}

.year-nav a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ======================================================
   NEWS / HISTORIQUE (Main)
====================================================== */
.year-block {
  margin-bottom: 40px;
}

.year-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--color-accent);
  border-bottom: 2px solid #ddd;
  padding-bottom: 4px;
}

.news-item {
  border-left: 4px solid var(--color-accent);
  padding-left: 16px;
  margin-bottom: 20px;
}

.news-date {
  font-weight: bold;
  color: var(--color-accent);;
  margin-bottom: 6px;
}

.news-item ul {
  margin: 6px 0 0 18px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    text-align: center;
  }
  
  /* side-menu défini dans menu.css */
}

@media (max-width: 600px) {
  .scroller-track li {
    width: 100px;
  }

  .scroller-track img {
    width: 100px;
    height: 80px;
  }
}
