/* ═══════════════════════════════════════════════════════
   OPTICIENS CI LE MAG — Webzine Stylesheet
   optiwebzine.ci | OptiMag Sarl
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────── */
:root {
  --navy:       #1a3a5c;
  --navy-dark:  #0f2540;
  --navy-light: #2b5a8e;
  --gold:       #c9a84c;
  --gold-light: #e8c97e;
  --white:      #ffffff;
  --light:      #f0f4f8;
  --light-2:    #e4ecf4;
  --text:       #1a1a1a;
  --text-muted: #6b7280;
  --border:     #d1dbe8;
  --shadow:     0 2px 12px rgba(26,58,92,.10);
  --shadow-md:  0 4px 24px rgba(26,58,92,.15);
  --radius:     6px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --container:  1200px;
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.25; }

/* ─── Utilities ─────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── Topbar ────────────────────────────────────── */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: .75rem;
  letter-spacing: .03em;
  padding: .4rem 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: var(--white); text-decoration: none; }

/* ─── Header ────────────────────────────────────── */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1rem;
}
/* ── Logo D — typographique ── */
.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.site-logo:hover,
.site-logo:focus { text-decoration: none; outline: none; }
.site-logo__row1 { display: flex; align-items: baseline; }
.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 400;
  color: rgba(255,255,255,0.93);
  letter-spacing: 0.3px;
  line-height: 1;
}
.site-logo__row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.site-logo__dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.site-logo__line {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.45), transparent);
  flex-shrink: 0;
}
.site-logo__webzine {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 5.5px;
  text-transform: uppercase;
}
.site-logo__tagline {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.3px;
  margin-top: 5px;
  font-style: italic;
}
.header__nav { display: flex; align-items: center; gap: .5rem; }

/* ── Bouton Espace Pro (header) ── */
.btn-espace-pro {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  padding: .42rem .95rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color .2s, background .2s;
}
.btn-espace-pro:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 480px) { .btn-espace-pro { display: none; } }

/* ── Bouton Newsletter (header) ── */
.btn-newsletter {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: var(--gold);
  border: none;
  padding: .42rem .95rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn-newsletter:hover { background: var(--gold-light); transform: translateY(-1px); }
@media (max-width: 600px) { .btn-newsletter { display: none; } }

/* ── Modal Newsletter ── */
.nl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,17,30,.78);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.nl-overlay.open { opacity: 1; pointer-events: all; }
.nl-card {
  background: var(--navy-dark);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: translateY(16px);
  transition: transform .25s;
}
.nl-overlay.open .nl-card { transform: translateY(0); }
.nl-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  color: rgba(255,255,255,.35);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: .25rem;
  transition: color .2s;
}
.nl-close:hover { color: white; }
.nl-icon {
  width: 44px; height: 44px;
  background: rgba(201,168,76,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.nl-title {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 700;
  color: var(--white); margin-bottom: .5rem;
}
.nl-sub {
  font-size: .875rem; color: rgba(255,255,255,.48);
  line-height: 1.6; margin-bottom: 1.75rem;
}
.nl-form .form-row { margin-bottom: 1rem; }
.nl-form label {
  display: block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: .35rem;
}
.nl-form input {
  width: 100%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px; padding: .65rem .9rem;
  font-family: var(--font-body); font-size: .9rem;
  color: var(--white); outline: none;
  transition: border-color .2s;
}
.nl-form input:focus { border-color: rgba(201,168,76,.5); }
.nl-form input::placeholder { color: rgba(255,255,255,.22); }
.nl-submit {
  width: 100%; background: var(--gold); color: var(--navy-dark);
  border: none; border-radius: 4px; padding: .75rem;
  font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; margin-top: .5rem;
  transition: background .2s, transform .15s;
}
.nl-submit:hover { background: var(--gold-light); transform: translateY(-1px); }
.nl-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.nl-error { font-size: .8rem; color: #e57373; margin-top: .5rem; display: none; }
.nl-success { text-align: center; padding: 1rem 0; display: none; }
.nl-success__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.nl-success__title {
  font-family: var(--font-heading); font-size: 1.2rem;
  color: var(--white); margin-bottom: .5rem;
}
.nl-success__text { font-size: .875rem; color: rgba(255,255,255,.45); }
.header__search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 2rem;
  padding: .3rem .75rem;
  gap: .4rem;
}
.header__search input {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  outline: none;
  width: 160px;
}
.header__search input::placeholder { color: rgba(255,255,255,.5); }

/* ─── Nav rubriques — barre de pills colorées ───── */
.nav-rubriques {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.08);
}

.nav-rubriques__list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: .6rem 1.25rem;
  list-style: none;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-rubriques__list a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .85rem;
  border-radius: 2rem;
  border: 1.5px solid var(--c, rgba(255,255,255,.4));
  color: var(--c, rgba(255,255,255,.8));
  background: color-mix(in srgb, var(--c, #fff) 12%, transparent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s, color .18s;
}
.nav-rubriques__list a:hover {
  background: var(--c, rgba(255,255,255,.2));
  color: var(--white);
  text-decoration: none;
}
.nav-home-pill {
  background: color-mix(in srgb, var(--gold) 18%, transparent) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  font-size: .95rem;
  padding: .22rem .6rem !important;
}
.nav-home-pill:hover {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
}

/* ─── Mobile menu ───────────────────────────────── */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: .25rem;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 200;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu__close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none; border: none;
  color: var(--white); font-size: 1.8rem;
  cursor: pointer;
}
.mobile-menu__list {
  list-style: none;
  margin-top: 3rem;
}
.mobile-menu__list li + li { border-top: 1px solid rgba(255,255,255,.1); }
.mobile-menu__list a {
  display: block;
  padding: .9rem 0;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 600;
}

/* ─── Hero Slider ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero__track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background: var(--navy-dark) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero__slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem;
  max-width: 700px;
}
.hero__titre {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--white);
  margin: .5rem 0 .75rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero__chapeau {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.hero__meta {
  display: flex;
  gap: 1rem;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin-bottom: 1.25rem;
}
/* Flèches */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.hero__arrow:hover { background: rgba(201,168,76,.75); }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }
/* Points */
.hero__dots {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  padding: 0;
}
.hero__dot.active {
  background: var(--gold);
  border-color: var(--gold);
}
.hero--empty {
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--light);
}
.hero__empty { color: var(--text-muted); font-size: 1.1rem; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn--hero {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--hero:hover {
  background: var(--gold-light);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-light); text-decoration: none; }
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

/* ─── Badge ─────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  background: var(--navy);
}

/* ─── Main Layout ───────────────────────────────── */
.main-layout {
  max-width: var(--container);
  margin: 2.5rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ─── Section title ─────────────────────────────── */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Article cards grid ────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.articles-grid .card--large {
  grid-column: span 2;
}

/* B — Zoom hover + D — Scroll reveal */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease, translate .6s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  translate: 0 28px;
}
.card.visible {
  opacity: 1;
  translate: 0 0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26,58,92,.15);
}
.card__img-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--light-2);
}
.card__img-wrap img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .5s ease;
}
.card--large .card__img-wrap img { height: 280px; }
.card:hover .card__img-wrap img { transform: scale(1.08); }
.card__badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 2rem;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
}
.card__body {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__titre {
  font-size: 1rem;
  margin-bottom: .45rem;
  line-height: 1.3;
}
.card--large .card__titre { font-size: 1.25rem; }
.card__titre a { color: var(--text); }
.card__titre a:hover { color: var(--navy); text-decoration: none; }
.card__chapeau {
  font-size: .85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: .75rem;
}
.card__meta {
  display: flex;
  gap: .75rem;
  font-size: .75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: .6rem;
  margin-top: auto;
}

/* card small */
.card--small .card__img-wrap img { height: 150px; }
.card--small .card__titre { font-size: .9rem; }

/* ─── Sidebar ───────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sidebar-widget__title {
  background: var(--navy);
  color: var(--white);
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-widget__body { padding: 1rem; }

.pub-card { border-radius: var(--radius); overflow: hidden; margin-bottom: .75rem; }
.pub-card:last-child { margin-bottom: 0; }
.pub-card img { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* ─── Article page ──────────────────────────────── */
.article-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.article-hero {
  height: 420px;
  background: var(--navy-dark) center/cover no-repeat;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 2rem;
}
.article-hero.has-image {}

.breadcrumb {
  font-size: .8rem;
  color: var(--text-muted);
  margin: 1.5rem 0 1rem;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { text-decoration: underline; }

/* C — Barre de lecture */
#reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gold);
  z-index: 9999;
  transition: width .1s linear;
}

.retour-magazine {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .85rem;
  transition: color .2s;
}
.retour-magazine:hover { color: var(--navy); }

.article-header { margin-bottom: 1.5rem; }
.article-titre {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--text);
  margin: .5rem 0 .75rem;
}
.article-chapeau {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}
.article-meta {
  display: flex;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: .75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.meta-auteur strong { color: var(--navy); }
.meta-num {
  background: var(--gold);
  color: var(--white);
  padding: .1rem .5rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
}

/* ─── Article content ───────────────────────────── */
.article-contenu {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-contenu h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--light-2);
}
.article-contenu h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 1.5rem 0 .5rem;
}
.article-contenu p { margin-bottom: 1.25rem; }
.article-contenu ul, .article-contenu ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-contenu li { margin-bottom: .4rem; }
.article-contenu blockquote {
  border-left: 4px solid var(--gold);
  padding: .75rem 1.25rem;
  background: var(--light);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-contenu a { color: var(--navy-light); text-decoration: underline; }
.article-contenu img { border-radius: var(--radius); margin: 1.5rem 0; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.tag {
  background: var(--light);
  color: var(--navy);
  padding: .25rem .75rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ─── Related articles ──────────────────────────── */
.related-section {
  max-width: var(--container);
  margin: 2rem auto 3rem;
  padding: 0 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── Rubrique page ─────────────────────────────── */
.rubrique-hero {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-bottom: 4px solid var(--navy);
  background: var(--light);
  margin-bottom: 2.5rem;
}
.rubrique-hero__icone { font-size: 2.5rem; display: block; margin-bottom: .5rem; }
.rubrique-hero__nom { font-size: 2rem; }
.rubrique-hero__desc { color: var(--text-muted); margin-top: .5rem; }

.rubrique-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  transition: transform .2s, box-shadow .2s;
}
.rubrique-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.rubrique-card__icone { font-size: 2rem; margin-bottom: .5rem; }
.rubrique-card__nom { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.rubrique-card__desc { font-size: .85rem; color: var(--text-muted); }

.load-more { display: block; margin: 2rem auto 0; }

/* ─── Page title ────────────────────────────────── */
.page-titre {
  font-size: 1.8rem;
  color: var(--navy);
  padding: 2rem 0 1rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 2rem;
}

/* ─── Empty / Error states ──────────────────────── */
.empty-state, .error-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 1rem;
  grid-column: 1/-1;
}
.error-state { color: #c0392b; }
.error-state a { color: var(--navy); display: block; margin-top: 1rem; }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr 1.5fr;
  gap: 2rem;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer__logo { margin-bottom: .75rem; }
.footer__logo-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
}
.footer__logo-name span { color: var(--gold); }
.footer__desc { font-size: .85rem; line-height: 1.6; }
.footer__col-title {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.footer__list { list-style: none; font-size: .85rem; }
.footer__list li + li { margin-top: .4rem; }
.footer__list a { color: rgba(255,255,255,.65); }
.footer__list a:hover { color: var(--white); text-decoration: none; }
.footer__bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 1rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: .5rem;
}

/* ─── Footer partenaires ────────────────────────── */
.footer__partners {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 2rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer__partners-title {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
  text-align: center;
}
.footer__partners-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.partner-logo {
  max-height: 56px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: .5rem .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ─── Bannières publicitaires IAB ───────────────── */
.pub-leaderboard {
  max-width: 728px;
  height: 90px;
  margin: 1.5rem auto;
  background: var(--light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pub-rectangle-inline {
  width: 300px;
  height: 250px;
  background: var(--light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 auto;
}
.pub-skyscraper {
  width: 160px;
  height: 600px;
  background: var(--light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  margin: 0 auto;
}
.pub-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 50px;
  background: var(--light);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,.1);
}

/* ─── Admin pub management ──────────────────────── */
.pub-tabs {
  display: flex;
  gap: .35rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.pub-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: .65rem 1.25rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: color .15s, border-color .15s;
  font-family: var(--font-body);
}
.pub-tab:hover { color: var(--navy); }
.pub-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.pub-tab-content { display: none; }
.pub-tab-content.active { display: block; }

/* Slots grid — tableau de bord */
.pub-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.pub-slot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.pub-slot-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.pub-slot-card__title { font-weight: 700; font-size: .9rem; color: var(--navy); }
.pub-slot-card__dims  { font-size: .72rem; color: var(--text-muted); margin-top: .15rem; }
.pub-slot-indicator {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: .25rem;
}
.pub-slot-indicator--active  { background: #10b981; }
.pub-slot-indicator--planned { background: #f59e0b; }
.pub-slot-indicator--empty   { background: #d1d5db; }
.pub-slot-campaign {
  background: var(--light);
  border-radius: 4px;
  padding: .6rem .85rem;
  font-size: .82rem;
  margin-bottom: .6rem;
}
.pub-slot-campaign__name  { font-weight: 700; color: var(--navy); }
.pub-slot-campaign__dates { color: var(--text-muted); font-size: .75rem; margin-top: .12rem; }
.pub-slot-campaign__clics { color: var(--text-muted); font-size: .72rem; margin-top: .1rem; }
.pub-slot-empty { color: var(--text-muted); font-size: .82rem; font-style: italic; margin-bottom: .75rem; }

/* Alerte expiration */
.pub-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .85rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Annonceurs list */
.annonceur-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.annonceur-item:last-child { border-bottom: none; }
.annonceur-item__info { flex: 1; min-width: 0; }
.annonceur-item__nom  { font-weight: 700; font-size: .9rem; }
.annonceur-item__meta { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; line-height: 1.5; }

/* ─── Admin styles ──────────────────────────────── */
body.admin-body {
  background: #f4f6f9;
  font-family: var(--font-body);
}

/* Login screen */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--navy);
}
.login-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.login-card__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: .25rem;
}
.login-card__logo span { color: var(--gold); }
.login-card__tagline {
  font-size: .75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.login-card h2 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

/* Dashboard layout */
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar-admin {
  width: 240px;
  background: var(--navy-dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
}
.sidebar-admin__logo {
  padding: 1.25rem 1.25rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-admin__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
}
.sidebar-admin__logo-name span { color: var(--gold); }
.sidebar-admin__logo small { color: rgba(255,255,255,.4); font-size: .7rem; display: block; }

.admin-nav { padding: .75rem 0; flex: 1; }
.admin-nav button {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .65rem 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
  font-size: .875rem;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.admin-nav button.active {
  border-left: 3px solid var(--gold);
  padding-left: calc(1.25rem - 3px);
}
.admin-nav button .nav-icon { font-size: 1rem; width: 1.25rem; }
.nav-badge { display:inline-flex; align-items:center; justify-content:center; background:#c0392b; color:#fff; font-size:.65rem; font-weight:700; min-width:18px; height:18px; border-radius:9px; padding:0 .35rem; margin-left:.5rem; }

.sidebar-admin__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-admin__footer button {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.65);
  padding: .4rem .85rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .8rem;
  width: 100%;
}
.sidebar-admin__footer button:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 2rem;
  min-height: 100vh;
}
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.admin-topbar h1 { font-size: 1.4rem; color: var(--navy); }

/* Stats cards */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--navy);
}
.stat-card--gold { border-top-color: var(--gold); }
.stat-card--green { border-top-color: #1a7a5c; }
.stat-card__value {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-card__label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }

/* Admin sections */
.section { display: none; }
.section.active { display: block; }

/* Form */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .55rem .85rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  background: #f0f4f8;
  box-shadow: 0 0 0 4px rgba(26,58,92,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  cursor: pointer;
}
.checkbox-label input { width: auto; }

#quill-editor {
  min-height: 320px;
  background: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-card__title {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--light);
}

/* Articles table */
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left;
  padding: .6rem .85rem;
  background: var(--light);
  color: var(--navy);
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-table td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:hover td { background: #fafbfd; }
.slug-preview {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  margin-top: .2rem;
}
.status-badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
}
.status-publie    { background: #d1fae5; color: #065f46; }
.status-brouillon { background: #fef3c7; color: #92400e; }
.status-programme { background: #dbeafe; color: #1d4ed8; }
.badge-sm {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 2rem;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
}
.actions { display: flex; gap: .35rem; }
.btn-icon {
  background: none;
  border: 1px solid var(--border);
  padding: .25rem .45rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: .85rem;
  transition: all .15s;
}
.btn-icon:hover { background: var(--light); }
.btn-icon--danger:hover { background: #fee2e2; border-color: #fca5a5; }

.search-bar {
  display: flex;
  gap: .75rem;
  margin-bottom: 1rem;
  align-items: center;
}
.search-bar input { max-width: 300px; }

/* Rubriques list */
.rubrique-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .65rem;
}
.rubrique-item__icone { font-size: 1.2rem; }
.rubrique-item__nom { flex: 1; font-weight: 600; }
.rubrique-item__slug { font-size: .75rem; color: var(--text-muted); }

/* Pubs */
.pub-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: .65rem;
}
.pub-item__img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pub-item__info { flex: 1; }
.pub-item__info strong { display: block; font-size: .9rem; }
.pub-item__info small { color: var(--text-muted); font-size: .75rem; display: block; }
.pub-item__info a { color: var(--navy-light); font-size: .75rem; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch span {
  position: absolute; inset: 0;
  background: #ccc;
  border-radius: 20px;
  cursor: pointer;
  transition: .2s;
}
.toggle-switch span::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: .2s;
}
.toggle-switch input:checked + span { background: var(--navy); }
.toggle-switch input:checked + span::before { transform: translateX(16px); }

/* Image preview */
#f-image-preview, .img-preview {
  max-width: 200px;
  border-radius: var(--radius);
  margin-top: .5rem;
  border: 2px solid var(--border);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  background: var(--navy-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all .3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast--success { background: #065f46; }
.toast--error   { background: #991b1b; }
.toast--info    { background: var(--navy); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid .card--large { grid-column: span 2; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__search { display: none; }
  .menu-toggle { display: block; }
  .hero { min-height: 380px; }
  .hero__titre { font-size: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid .card--large { grid-column: span 1; }
  .related-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .pub-mobile-sticky { display: flex; }
  .pub-leaderboard { display: none; }
  .pub-skyscraper { display: none; }
  .article-hero { height: 260px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .sidebar-admin { transform: translateX(-100%); transition: transform .3s; }
  .sidebar-admin.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}

@media (max-width: 480px) {
  .topbar { display: none; }
  .hero { min-height: 300px; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
