:root {
  --navy: #061a36;
  --navy2: #0b2b54;
  --gold: #d79b16;
  --gold2: #f0c24a;
  --ink: #172033;
  --muted: #687386;
  --paper: #f6f8fb;
  --white: #fff;
  --line: #e6eaf0;
  --green: #1d8f5a;
  --red: #c0392b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; display: block; }

.topline {
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 68%, var(--gold) 68%);
}

header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
}
.brand-link { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo { height: 72px; width: auto; object-fit: contain; }
.brand h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: .12em;
  color: var(--navy);
}
.brand p {
  margin: 4px 0 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.search-form {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.search-form input {
  border: 0;
  padding: 10px 12px;
  outline: none;
  min-width: 160px;
  width: 180px;
}
.btn-search {
  border: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

nav { border-top: 1px solid #f0f2f5; background: #fff; }
.nav-inner {
  max-width: 1240px;
  margin: auto;
  padding: 0 22px;
  display: flex;
  gap: 4px;
  overflow: auto;
}
.nav-link {
  padding: 13px 12px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  color: #314057;
  border-bottom: 3px solid transparent;
}
.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.ticker { background: var(--navy); color: #fff; }
.ticker-inner {
  max-width: 1240px;
  margin: auto;
  padding: 10px 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.breaking {
  background: var(--gold);
  color: var(--navy);
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  flex-shrink: 0;
}
.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 22px 50px;
}

.hero {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.hero-main,
.card,
.ad-box,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(11, 35, 65, .05);
}
.hero-main {
  overflow: hidden;
  position: relative;
  min-height: 400px;
  background: linear-gradient(135deg, #071c38, #12375e);
  display: block;
}
.hero-main.has-image {
  background-size: cover;
  background-position: center;
}
.hero-main .overlay {
  position: absolute;
  inset: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 28%, rgba(2, 10, 22, .9) 100%);
  color: #fff;
}
.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold2);
  font-weight: 900;
  margin-bottom: 8px;
}
.card .kicker { color: var(--gold); }
.hero h2 {
  font-size: clamp(27px, 4vw, 45px);
  line-height: 1.04;
  margin: 0 0 10px;
  max-width: 760px;
}
.hero p {
  margin: 0;
  color: #d9e1eb;
  max-width: 700px;
  line-height: 1.6;
}
.hero-side { display: grid; gap: 18px; }
.mini { padding: 20px; }
.mini h3 { margin: 8px 0; font-size: 19px; line-height: 1.2; }
.meta { color: var(--muted); font-size: 12px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 14px;
  gap: 12px;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
}
.section-head span { font-size: 12px; color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(11, 35, 65, .08);
}
.thumb {
  height: 160px;
  background: linear-gradient(135deg, #dce5ef, #f5f7fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a7890;
  font-weight: 800;
  letter-spacing: .08em;
  background-size: cover;
  background-position: center;
}
.card-body { padding: 17px; }
.card h3 { font-size: 18px; line-height: 1.25; margin: 7px 0 9px; }
.card p { margin: 0; color: #657085; font-size: 13px; line-height: 1.55; }

.ad-box {
  min-height: 105px;
  margin: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c8ced8;
  background: #fff;
}
.ad-box span {
  font-size: 11px;
  color: #9aa4b4;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 155px;
  gap: 10px;
}
.photo {
  border-radius: 12px;
  overflow: hidden;
  background: #dfe5ec;
  position: relative;
}
.photo:first-child { grid-row: span 2; }
.photo .thumb {
  height: 100%;
  min-height: 100%;
  letter-spacing: .1em;
  font-size: 13px;
}
.photo .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 11px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}

.newsletter {
  margin-top: 28px;
  background: linear-gradient(135deg, var(--navy), #123a69);
  color: #fff;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}
.newsletter h2 { margin: 0 0 6px; }
.newsletter p { margin: 0; color: #cbd7e5; font-size: 13px; }
.newsletter form { display: flex; gap: 8px; min-width: 320px; }
input, textarea, select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 13px;
  outline: none;
  width: 100%;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  font-weight: 850;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: #edf1f6; color: var(--navy); }
.btn.danger { background: #fdecea; color: var(--red); }

footer {
  background: #041226;
  color: #c7d1df;
  padding: 38px 22px;
}
.footer-inner {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
footer h3 { color: #fff; margin-top: 0; }
footer p { font-size: 13px; line-height: 1.6; }
.footer-links a { color: var(--gold2); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social-links a {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold2);
  border: 1px solid #1b2d45;
  padding: 6px 10px;
  border-radius: 8px;
}
.copyright {
  border-top: 1px solid #1b2d45;
  margin-top: 26px;
  padding-top: 17px;
  font-size: 12px;
  color: #8998ad;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Article page */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}
.article-cover {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  max-height: 420px;
  background: #dfe5ec;
}
.article-cover img { width: 100%; height: 420px; object-fit: cover; }
.article-body h1 {
  color: var(--navy);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 0 0 12px;
}
.article-content {
  font-size: 17px;
  line-height: 1.75;
  color: #243247;
}
.article-content p { margin: 0 0 1.1em; }
.article-content img { border-radius: 12px; margin: 1.2em 0; }
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.share-bar a {
  background: #edf1f6;
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}
.share-bar a:hover { background: var(--gold); }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sidebar .panel { padding: 18px; margin-bottom: 18px; }
.sidebar h3 { margin: 0 0 12px; color: var(--navy); font-size: 16px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-list a { font-weight: 700; font-size: 14px; color: var(--navy); }
.side-list .meta { display: block; margin-top: 4px; }

/* Pages génériques */
.page-hero {
  background: linear-gradient(135deg, var(--navy), #123a69);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.page-hero h1 { margin: 0 0 8px; }
.page-hero p { margin: 0; color: #cbd7e5; }
.panel { padding: 22px; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert.success { background: #e8f7ef; color: var(--green); }
.alert.error { background: #fdecea; color: var(--red); }
.alert.info { background: #eef3fb; color: var(--navy2); }
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.pagination a, .pagination span {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.pagination .current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.filters select { width: auto; min-width: 160px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .newsletter { display: block; }
  .newsletter form { min-width: 0; margin-top: 15px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .menu-btn { display: block; }
  nav { display: none; }
  nav.open { display: block; }
  .header-inner { padding: 10px 15px; }
  .logo { height: 58px; }
  .brand h1 { font-size: 19px; }
  .search-form input { width: 120px; min-width: 100px; }
}
@media (max-width: 560px) {
  main { padding: 18px 14px 35px; }
  .grid { grid-template-columns: 1fr; }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
  }
  .photo:first-child { grid-row: span 1; grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-main { min-height: 360px; }
  .header-actions .search-form { display: none; }
}
