
/* ============================================================
   UPDATES — CAROUSEL, HERO TITLE, SIDE BUTTONS, FOOTER MOBILE
   ============================================================ */

/* ── Hero Carousel ── */
.hero-carousel { position: relative; }

.hero-slide { display: none; }
.hero-slide--active { display: block; animation: heroFadeIn .5s ease; }
@keyframes heroFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Category badge above title */
.hero-cat-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  text-decoration: none;
}
.hero-cat-badge:hover { opacity: .85; }

/* ── Picture-1111 style: bordered box title ── */
.hero-title-block {
  position: relative;
  z-index: 2;
  background: transparent;
  padding-bottom: 100px;
  margin-bottom: -100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.3px;
  text-align: center;
  display: inline-block;
  background: #fff;
  border: 4px solid var(--red);
  border-radius: 4px;
  padding: 14px 20px;
  max-width: 680px;
  box-shadow: 0 4px 20px rgba(0,174,239,.18);
}
.hero-title a { color: var(--black); text-decoration: none; display: block; }
.hero-title a:hover { color: var(--red); }

@media (max-width: 900px) { .hero-title { font-size: 26px; padding: 10px 14px; } }
@media (max-width: 600px) { .hero-title { font-size: 18px; padding: 8px 10px; } }

/* Carousel dots */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.hero-dot--active { background: var(--red); transform: scale(1.3); }

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 36px; height: 52px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  border-radius: 3px;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: var(--red); }
.hero-arrow--prev { left: 0; border-radius: 0 3px 3px 0; }
.hero-arrow--next { right: 0; border-radius: 3px 0 0 3px; }
@media (max-width: 600px) {
  .hero-arrow { width: 28px; height: 40px; font-size: 22px; }
}

/* ── Side buttons: taller + narrower ── */
.side-btn {
  width: 54px !important;
  height: 110px !important;
  border-radius: 6px 0 0 6px !important;
  gap: 6px !important;
  font-size: 10px !important;
  writing-mode: horizontal-tb;
}
.side-btn span {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 9px;
  letter-spacing: .5px;
}
.side-btn:hover {
  width: 54px !important;
}
.side-btns { gap: 4px !important; }

/* ── Footer: 2-column links on mobile (A1 → A2) ── */
@media (max-width: 768px) {
  .footer-top { padding: 32px 0 20px; }
  .footer-cols {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px 16px;
  }
  .footer-col ul {
    columns: 2;
    column-gap: 12px;
  }
  .footer-col ul li { break-inside: avoid; }
  .footer-col:last-child ul { columns: 1; } /* newsletter col stays single */
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr !important; }
  .footer-col ul { columns: 2; }
}

/* ── Mobile homepage: fil info panel (B1 → B2) ── */
@media (max-width: 768px) {
  /* Show fil-info prominently on mobile */
  .une-sidebar-left {
    order: 2;
    width: 100%;
    background: #f8f9fc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
  }
  .widgets-row {
    display: flex;
    gap: 20px;
    padding: 10px 0 14px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 14px;
  }
  .widget { flex: 1; }
  .widget-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #999;
    margin-bottom: 2px;
  }
  .widget-value { font-size: 20px; font-weight: 700; color: var(--black); }
  .widget-value--up { color: #00a84f; font-size: 16px; }
  .fil-title { font-size: 16px; font-weight: 700; }
  .live-timeline { max-height: 280px; overflow-y: auto; }
  .timeline-item { padding: 8px 0; }
  .timeline-time { font-size: 13px; font-weight: 700; color: var(--red); min-width: 46px; }
  .timeline-link { font-size: 14px; line-height: 1.4; }
  .fil-more-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
  }
}

/* ── "Plus d'infos" button consistent style ── */
.triptych-more-btn,
.sosoir-more,
.section-more,
.vendez-more,
.fil-more-btn {
  /* already styled — just ensure text is correct */
}

/* ── Journal button in header ── */
.btn-journal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #00AEEF;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none !important;
  border-radius: 4px;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-journal:hover {
  background: #0090c8;
  transform: translateY(-1px);
}
.btn-journal svg { flex-shrink: 0; }
@media (max-width: 600px) { .btn-journal span { display: none; } .btn-journal { padding: 8px; border-radius: 50%; } }

/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES — Politique de confidentialité, CGU, Gestion cookies
   ══════════════════════════════════════════════════════════════ */
.legal-page { background: #f8f9fa; min-height: 60vh; }

.legal-hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #0a1628 100%);
  padding: 52px 0 44px;
  border-bottom: 4px solid #00AEEF;
}
.legal-hero-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.legal-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6b7280; margin-bottom: 18px;
  font-family: 'Source Sans 3', sans-serif;
}
.legal-breadcrumb a { color: #6b7280; text-decoration: none; }
.legal-breadcrumb a:hover { color: #00AEEF; }
.legal-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 32px; font-weight: 900; color: #fff;
  margin: 0 0 10px; line-height: 1.2;
}
.legal-updated {
  font-size: 12px; color: #6b7280;
  font-family: 'Source Sans 3', sans-serif; margin: 0;
}

.legal-wrap {
  max-width: 860px; margin: 0 auto;
  padding: 40px 24px 60px;
  display: flex; flex-direction: column; gap: 0;
}

.legal-section {
  padding: 28px 0;
  border-bottom: 1px solid #e5e7eb;
}
.legal-section:last-of-type { border-bottom: none; }
.legal-section h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 17px; font-weight: 900; color: #0d1a2e;
  margin: 0 0 14px;
}
.legal-section p {
  font-size: 15px; color: #4b5563; line-height: 1.8;
  font-family: 'Source Sans 3', sans-serif; margin: 0 0 12px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  padding-left: 20px; margin: 10px 0;
}
.legal-section ul li {
  font-size: 14px; color: #4b5563; line-height: 1.75;
  font-family: 'Source Sans 3', sans-serif; margin-bottom: 6px;
}
.legal-section a { color: #00AEEF; text-decoration: underline; }
.legal-section a:hover { color: #0090c8; }

/* Cookie table */
.legal-cookie-table {
  border: 1px solid #e5e7eb; border-radius: 8px;
  overflow: hidden; margin-top: 16px;
}
.legal-cookie-row {
  display: grid; grid-template-columns: 220px 1fr 120px;
  gap: 0; border-bottom: 1px solid #f0f0f0;
}
.legal-cookie-row:last-child { border-bottom: none; }
.legal-cookie-header {
  background: #0d1a2e;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .8px; color: #9ca3af;
  font-family: 'Source Sans 3', sans-serif;
}
.legal-cookie-row span {
  padding: 12px 14px;
  font-size: 13px; color: #374151;
  font-family: 'Source Sans 3', sans-serif;
  line-height: 1.55;
  border-right: 1px solid #f0f0f0;
}
.legal-cookie-row span:last-child { border-right: none; }
.legal-cookie-header span { color: #9ca3af; }

/* Reset cookies button */
.legal-reset-cookies-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 4px;
  background: #0d1a2e; color: #fff;
  font-size: 14px; font-weight: 700;
  font-family: 'Source Sans 3', sans-serif;
  border: none; cursor: pointer;
  transition: background .2s;
}
.legal-reset-cookies-btn:hover { background: #1a3a5c; }

/* Contact box */
.legal-contact-box {
  background: #f0faff; border: 1px solid #bae6fd;
  border-left: 4px solid #00AEEF;
  border-radius: 8px; padding: 20px 22px;
  margin-top: 32px;
}
.legal-contact-box strong {
  display: block; font-size: 14px; font-weight: 800;
  color: #0d1a2e; margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}
.legal-contact-box p {
  font-size: 14px; color: #4b5563;
  font-family: 'Source Sans 3', sans-serif;
  margin: 0 0 4px; line-height: 1.6;
}
.legal-contact-box a { color: #00AEEF; text-decoration: none; font-weight: 600; }
.legal-contact-box a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .legal-title { font-size: 24px; }
  .legal-cookie-row { grid-template-columns: 1fr; }
  .legal-cookie-row span { border-right: none; border-bottom: 1px solid #f0f0f0; }
  .legal-cookie-row span:last-child { border-bottom: none; }
}

/* ── Footer visibility guarantee — always shown on every page ── */
.site-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  clip: auto !important;
  clip-path: none !important;
}

/* ── Header account button — relative for subscription dot ── */
.btn-account { position: relative; }

/* ── Subscription modal body scroll lock ── */
body.sub-modal-open { overflow: hidden; }

/* ── Subscription page responsive tweaks ── */
@media (max-width: 480px) {
  .sub-methods { gap: 6px; }
  .sub-method-btn { padding: 7px 10px; font-size: 12px; }
  .sub-modal { border-radius: 12px 12px 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: 100%; max-height: 85vh; margin: 0; }
  .sub-modal-overlay { align-items: flex-end; padding: 0; }
}

/* ── Account page: sidebar sticky on desktop ── */
@media (min-width: 721px) {
  .acc-sidebar { position: sticky; top: 90px; }
}

/* ── Ensure subscription/account pages use white background ── */
.page-template-page-sabonner .site-main,
.page-template-page-mon-compte .site-main { background: #f8f9fa; min-height: 60vh; }
