/* ==========================================================================
   CRITIKMAG — UI PROTOTYPE
   Design system + layout + components
   ========================================================================== */

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
input { border: none; outline: none; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* -------------------- Tokens -------------------- */
:root {
  --orange: #EA5F1B;
  --orange-dark: #C94D12;
  --orange-tint: #FDEEE5;
  --navy: #15243C;
  --navy-soft: #24374F;
  --white: #FFFFFF;
  --grey-light: #F5F5F5;
  --grey-mid: #E7E7E7;
  --text-main: #111111;
  --text-secondary: #666666;

  --font-head: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 18px rgba(21, 36, 60, 0.08);
  --shadow-lift: 0 14px 34px rgba(21, 36, 60, 0.14);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 128px;
}

/* -------------------- Base -------------------- */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

.section-pad { padding: clamp(40px, 6vw, 76px) 0; }
.section-pad-tight { padding: clamp(28px, 4vw, 48px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 6px;
  max-width: 560px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.link-more:hover { color: var(--orange); border-color: var(--orange); }
.link-more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(3px); }

/* -------------------- Icons -------------------- */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }
.icon-fill { fill: currentColor; stroke: none; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(234, 95, 27, 0.28);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(234, 95, 27, 0.36); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--grey-mid);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-ghost-white {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* -------------------- Badges -------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--orange);
  color: var(--white);
}
.badge-navy { background: var(--navy); color: var(--white); }
.badge-light { background: rgba(255,255,255,0.92); color: var(--navy); backdrop-filter: blur(4px); }
.badge-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--grey-mid); }
.badge-soft { background: var(--orange-tint); color: var(--orange-dark); }

/* -------------------- Media placeholders -------------------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph-a, #1c2f4a), var(--ph-b, #33507a));
  border-radius: inherit;
}
.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.16), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(234,95,27,0.28), transparent 50%);
}
.media::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  right: 14px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  z-index: 1;
}
.media-ratio-16-9 { aspect-ratio: 16/9; }
.media-ratio-4-3 { aspect-ratio: 4/3; }
.media-ratio-1-1 { aspect-ratio: 1/1; }
.media-ratio-3-4 { aspect-ratio: 3/4; }
.media-ratio-9-16 { aspect-ratio: 9/16; }
.media-contain::before { background-color: var(--grey-light); background-image: none; }
.media-contain { background: var(--grey-light); display: flex; align-items: center; justify-content: center; }

/* Real featured-image photos (as opposed to empty placeholder divs):
   fill the ratio box and crop centered, at any screen size. */
.media:not(.media-contain) > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-contain img { max-height: 100%; width: auto; max-width: 100%; }

.tone-1 { --ph-a: #16263f; --ph-b: #3a5a86; }
.tone-2 { --ph-a: #2a1810; --ph-b: #c9591f; }
.tone-3 { --ph-a: #1f1430; --ph-b: #5b3a8a; }
.tone-4 { --ph-a: #142418; --ph-b: #2e6b4c; }
.tone-5 { --ph-a: #301418; --ph-b: #8a2e3a; }
.tone-6 { --ph-a: #10202c; --ph-b: #1f4e63; }

/* -------------------- Paperclip pin -------------------- */
.pin {
  position: absolute;
  top: -12px;
  left: 22px;
  width: 30px;
  height: 42px;
  z-index: 3;
  color: var(--navy);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 4px rgba(21,36,60,0.25));
  pointer-events: none;
}
.pin-card { position: relative; }
.pin-light .pin { color: var(--white); }
.pin-orange .pin { color: var(--orange); }

/* -------------------- HEADER -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-mid);
  transition: box-shadow .25s var(--ease), padding .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(21,36,60,0.08); }

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px var(--pad) 8px;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.brand-logo-img {
  display: block;
  height: 38px;
  width: auto;
}
.footer-brand .brand-logo-img { height: 34px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-icon { display: block; height: 32px; width: auto; }
.footer-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  color: #fff;
  line-height: 1;
}
.mobile-menu-head .brand-logo-img { height: 30px; }
.brand-baseline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.header-action-left,
.header-action-right {
  position: absolute;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-action-left { left: var(--pad); }
.header-action-right { right: var(--pad); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--navy);
  transition: background .2s var(--ease);
}
.icon-btn:hover { background: var(--grey-light); }

.menu-toggle { display: none; }

.header-nav {
  border-top: 1px solid var(--grey-mid);
}
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 10px);
  padding: 4px var(--pad);
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--navy);
  padding: 13px 14px;
  border-radius: var(--radius-s);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-link svg { width: 17px; height: 17px; color: var(--orange); }
.nav-link:hover, .nav-item.is-open .nav-link { color: var(--orange); background: var(--orange-tint); }
.nav-link .chev { width: 13px; height: 13px; color: var(--text-secondary); margin-left: -1px; transition: transform .2s var(--ease); }
.nav-item.is-open .nav-link .chev { transform: rotate(180deg); color: var(--orange); }
.nav-item.current .nav-link { color: var(--orange); }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--grey-mid);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 50;
}
.nav-item.is-open .dropdown,
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.dropdown a:hover { background: var(--grey-light); color: var(--orange); }

/* Highlighted CTA item inside a dropdown (e.g. "Contact" under "Plus").
   Needs !important throughout: the generic .dropdown a:hover rule above
   is more specific (matches the "a" element too) and would otherwise
   win on hover, turning this back into light text on a light background. */
.dropdown-cta-btn {
  display: block;
  text-align: center;
  margin-top: 4px;
  background: var(--orange) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(234, 95, 27, 0.28);
}
.dropdown-cta-btn:hover { background: var(--orange-dark) !important; color: var(--white) !important; }

/* -------------------- Ticker "En ce moment" -------------------- */
.ticker-bar {
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--pad);
}
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  padding-right: 14px;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.4; transform:scale(0.8);} }

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.85); }
.ticker-track a:hover { color: var(--white); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------- HERO -------------------- */
.hero {
  padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin: 14px 0 18px;
}
.hero-copy p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card-wrap { position: relative; }
.hero-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
}
.hero-card .media { border-radius: 0; }
.hero-card-body { padding: 26px 26px 28px; }
.hero-card-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hero-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.hero-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.hero-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--grey-mid);
}
.read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.read-time svg { width: 15px; height: 15px; }
.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--orange);
}
.hero-card-link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.hero-card:hover .hero-card-link svg { transform: translateX(3px); }

/* -------------------- Cards: standard article -------------------- */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-media { border-radius: var(--radius-m); overflow: hidden; margin-bottom: 16px; }
.card-media .media { transition: transform .5s var(--ease); }
.card:hover .card-media .media { transform: scale(1.04); }
.card-badges { display: flex; gap: 8px; position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-title {
  font-size: 17px;
  margin-bottom: 8px;
  transition: color .18s var(--ease);
}
.card:hover .card-title { color: var(--orange); }
.card-excerpt { color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; }
.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.card-meta .dot::before { content: "\2022"; margin: 0 2px; }

.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.row-scroll > * { scroll-snap-align: start; }
.row-scroll::-webkit-scrollbar { height: 6px; }
.row-scroll::-webkit-scrollbar-thumb { background: var(--grey-mid); border-radius: 10px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

/* -------------------- Top Critik -------------------- */
.topcritik-section { background: var(--grey-light); }
.topcritik-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.tc-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.tc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tc-number {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  background: rgba(21,36,60,0.55);
  backdrop-filter: blur(6px);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-card.rank-1 .tc-number { background: var(--orange); }
.tc-body { padding: 18px 20px 22px; }
.tc-body h3 { font-size: 17px; margin-bottom: 6px; }
.tc-body p { font-size: 13.5px; color: var(--text-secondary); }
.tc-card .media.media-contain { padding: 10px; }
.tc-card .media.media-contain img { max-height: 100%; }

/* -------------------- Videos -------------------- */
.video-section { background: var(--navy); }
.video-section .section-head h2,
.video-section .eyebrow { color: var(--white); }
.video-section .eyebrow { color: #FF8A4C; }
.video-section .section-sub { color: rgba(255,255,255,0.6); }
.video-section .link-more { color: var(--white); }
.video-section .link-more:hover { color: var(--orange); }

.video-card {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--navy-soft);
}
.video-card .media { border-radius: 0; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.play-btn svg { width: 18px; height: 18px; margin-left: 2px; }
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--orange); color: var(--white); }
.video-source {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.video-source svg { width: 13px; height: 13px; }
.video-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}
.video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}
.video-grid > * { scroll-snap-align: start; }
.video-grid::-webkit-scrollbar { height: 6px; }
.video-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

/* -------------------- Choix de la rédaction -------------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.editorial-main { position: relative; }
.editorial-main .card-media { margin-bottom: 20px; }
.editorial-main h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 12px; }
.editorial-main p.card-excerpt { font-size: 15.5px; }
.editorial-side { display: flex; flex-direction: column; gap: 22px; }
.editorial-side .side-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
}
.editorial-side .card-media { margin-bottom: 0; border-radius: var(--radius-s); }
.editorial-side h4 { font-size: 15px; margin-bottom: 6px; }
.editorial-side .card-meta { font-size: 12px; }

/* -------------------- Formats Critikmag -------------------- */
.formats-section { background: var(--grey-light); }
.formats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.format-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 26px 24px;
  border: 1px solid var(--grey-mid);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.format-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.format-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--orange-tint);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.format-card h4 { font-size: 16px; margin-bottom: 8px; }
.format-card p { font-size: 13.5px; color: var(--text-secondary); }

/* -------------------- Newsletter -------------------- */
.newsletter-block {
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.newsletter-block::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,95,27,0.35), transparent 70%);
  top: -140px;
  right: -100px;
}
.newsletter-copy { position: relative; z-index: 1; }
.newsletter-copy .eyebrow { color: #FF8A4C; margin-bottom: 12px; }
.newsletter-copy h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.newsletter-copy p { color: rgba(255,255,255,0.65); font-size: 15px; max-width: 460px; }
.newsletter-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 12px; position: relative; z-index: 1; }

/* -------------------- Follow us -------------------- */
.follow-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  background: var(--grey-light);
  border-radius: var(--radius-l);
  padding: clamp(26px, 4vw, 36px) clamp(26px, 4vw, 40px);
  margin-top: 20px;
}
.follow-copy .eyebrow { margin-bottom: 8px; }
.follow-copy h3 { font-size: clamp(19px, 2.2vw, 24px); margin-bottom: 6px; }
.follow-copy p { color: var(--text-secondary); font-size: 14.5px; }
.follow-bar {
  display: inline-flex;
  gap: 8px;
  background: var(--navy);
  padding: 9px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.follow-bar a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.follow-bar a:hover { background: var(--orange); transform: translateY(-2px); }
@media (min-width: 640px) {
  .follow-block { grid-template-columns: 1fr auto; }
}

/* -------------------- Events -------------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.event-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.event-body { padding: 20px 22px 24px; }
.event-body h3 { font-size: 17px; margin: 10px 0 10px; }
.event-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.event-meta span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); }
.event-meta svg { width: 15px; height: 15px; color: var(--orange); }
.event-body p.desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 16px; }

.event-card-media { position: relative; }
.event-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-s);
  padding: 7px 10px;
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow-soft);
}
.event-date-badge .month {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
}
.event-date-badge .day { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--navy); }

.event-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.event-price { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--navy); }
.event-price.is-free { color: #1f8a4c; }
.event-footer .btn svg { width: 15px; height: 15px; }

/* -------------------- Events hero + filters -------------------- */
.events-hero { padding: clamp(40px, 6vw, 60px) 0 clamp(24px, 4vw, 32px); text-align: center; }
.events-hero h1 { font-size: clamp(28px, 3.8vw, 42px); margin: 12px 0 14px; }
.events-hero p.lede { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto 28px; }

/* -------------------- Featured event -------------------- */
.event-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--grey-mid);
  box-shadow: var(--shadow-soft);
}
.event-featured-media { position: relative; }
.event-featured-media .media { aspect-ratio: 16/10; }
.event-featured-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; }
.event-featured-body .eyebrow { margin-bottom: 12px; }
.event-featured-body h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.event-featured-body .event-meta { margin-bottom: 16px; }
.event-featured-body p.desc { font-size: 15px; color: var(--text-secondary); margin-bottom: 22px; }
.event-featured-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* -------------------- Organizer CTA -------------------- */
.organizer-cta {
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: clamp(32px, 5vw, 52px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.organizer-cta::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234,95,27,0.32), transparent 70%);
  bottom: -160px;
  left: -100px;
}
.organizer-cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.organizer-cta .eyebrow { color: #FF8A4C; margin-bottom: 12px; justify-content: center; }
.organizer-cta h2 { color: var(--white); font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.organizer-cta p { color: rgba(255,255,255,0.65); font-size: 15px; margin-bottom: 24px; }

/* -------------------- Most read -------------------- */
.mostread-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.mostread-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--grey-mid);
  transition: background .18s var(--ease);
}
.mostread-item:last-child { border-bottom: none; }
.mostread-item:hover { background: var(--grey-light); }
.mostread-rank {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--orange);
  width: 34px;
  flex-shrink: 0;
}
.mostread-thumb { width: 64px; height: 64px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; }
.mostread-info h4 { font-size: 15px; margin-bottom: 4px; }
.mostread-info .card-meta { font-size: 12px; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding-top: clamp(48px, 6vw, 72px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 17px; height: 17px; }

.footer-col h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14.5px; transition: color .18s var(--ease); }

/* Highlighted CTA item in the footer link list (e.g. "Nous contacter") */
.footer-col li.footer-cta { margin-top: 4px; }
.footer-col li.footer-cta a {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(234, 95, 27, 0.28);
}
.footer-col li.footer-cta a:hover { background: var(--orange-dark); color: var(--white); }
.footer-col a:hover { color: var(--white); }

.footer-newsletter-mini { margin-top: 18px; display: flex; gap: 8px; }
.footer-newsletter-mini input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  min-width: 0;
}
.footer-newsletter-mini button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-newsletter-mini button svg { width: 17px; height: 17px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: var(--white); }

/* -------------------- Mobile menu -------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--grey-mid);
}
.mobile-menu-body { padding: 8px var(--pad) 40px; }
.mobile-nav-item { border-bottom: 1px solid var(--grey-mid); }
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 17px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}
.mobile-nav-link svg:first-child { color: var(--orange); margin-right: 10px; }
.mobile-nav-link .chev { width: 16px; height: 16px; transition: transform .2s var(--ease); margin-left: auto; }
.mobile-nav-item.is-open .mobile-nav-link .chev { transform: rotate(180deg); }
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease);
}
.mobile-nav-item.is-open .mobile-submenu { max-height: 400px; }
.mobile-submenu a {
  display: block;
  padding: 12px 4px 12px 34px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.mobile-submenu .dropdown-cta-btn {
  margin: 8px 4px 8px 34px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
}
.mobile-menu-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
body.menu-locked { overflow: hidden; }

/* -------------------- Breadcrumb -------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 20px 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 13px; height: 13px; transform: rotate(-90deg); opacity: .5; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* -------------------- Category page -------------------- */
.category-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.category-hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; }
.category-hero p { color: var(--text-secondary); font-size: 16px; max-width: 560px; }
/* -------------------- Ad unit (image-based, two formats) --------------------
   The theme will let an admin upload one image per format; each ad-unit slot
   picks whichever format fits its placement:
   - ad-unit--vertical   → 1080 × 1350 (4:5, Instagram-post ratio) — sidebars
   - ad-unit--horizontal → 1200 × 630  (~1.9:1, standard banner/OG ratio) — hero banners
*/
.ad-unit {
  position: relative;
  display: block;
  border-radius: var(--radius-l);
  overflow: hidden;
}
.ad-unit .media { border-radius: inherit; }
.ad-unit-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.ad-unit-format {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.3);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}
.media-ratio-ad-vertical { aspect-ratio: 1080 / 1350; }
.media-ratio-ad-horizontal { aspect-ratio: 1200 / 630; }
.tone-ad { --ph-a: #3a3f47; --ph-b: #6b7280; }

.category-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.category-main { min-width: 0; }
.category-featured { margin-bottom: 36px; }
.category-featured .card-media { margin-bottom: 18px; }
.category-featured h3 { font-size: clamp(20px, 2.6vw, 26px); }
.category-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-block {
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-l);
  padding: 22px;
}
.sidebar-block h5 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 18px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  border: 1px solid var(--grey-mid);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* -------------------- Article page -------------------- */
.article-header { padding-top: 8px; padding-bottom: clamp(24px, 4vw, 36px); }
.article-header h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin: 14px 0 20px;
  max-width: 900px;
}
.article-dek { font-size: 18px; color: var(--text-secondary); max-width: 720px; margin-bottom: 24px; }
.article-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--grey-mid);
  border-bottom: 1px solid var(--grey-mid);
}
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3a5a86);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.byline-info a.author-name { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); }
.byline-info a.author-name:hover { color: var(--orange); }
.byline-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-secondary); margin-top: 3px; flex-wrap: wrap; }
.byline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.byline-meta svg { width: 14px; height: 14px; }
.byline-share { margin-left: auto; display: flex; gap: 8px; }
.byline-share a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--grey-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.byline-share a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

.article-media { margin-top: clamp(24px, 4vw, 36px); margin-bottom: clamp(24px, 4vw, 36px); }
.article-media .media { border-radius: var(--radius-l); }
.article-caption { font-size: 13px; color: var(--text-secondary); margin-top: 10px; text-align: center; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.article-body { min-width: 0; max-width: 760px; }
.article-body p { font-size: 17.5px; line-height: 1.75; color: #262626; margin-bottom: 22px; }
.article-body h2 { font-size: 24px; margin: 36px 0 16px; }
.article-body h3 { font-size: 19px; margin: 28px 0 12px; }
.article-body ul { margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { position: relative; padding-left: 22px; font-size: 16.5px; color: #262626; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.article-body figure.wp-block-table { margin: 0 0 28px; }
.article-body .ad-unit { display: block; margin: 32px 0; }

.brief-box {
  background: var(--orange-tint);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-m);
  padding: 22px 26px;
  margin: 28px 0 32px;
}
.brief-box h4 {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange-dark);
  margin-bottom: 12px;
}
.brief-box h4 svg { width: 17px; height: 17px; }
.brief-box ul { gap: 8px; }
.brief-box li { font-size: 15px; color: var(--navy); padding-left: 20px; }
.brief-box li::before { background: var(--orange); top: 8px; width: 6px; height: 6px; }

/* [a_lire_aussi] shortcode — inline "read also" card inside article body.
   Compact single-row treatment, matching the .mostread-item list density
   rather than a full card (was too tall/heavy at 72px). */
.inline-read-also {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 10px;
  background: var(--grey-light);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-m);
  transition: background .18s var(--ease);
}
.inline-read-also:hover { background: var(--grey-mid); }
.inline-read-also-media { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-s); overflow: hidden; }
.inline-read-also-body { min-width: 0; }
.inline-read-also-eyebrow {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-dark);
  margin-bottom: 2px;
}
.inline-read-also-eyebrow svg { width: 12px; height: 12px; }
.inline-read-also-body h4 {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

blockquote.pull-quote {
  margin: 32px 0;
  padding: 6px 0 6px 26px;
  border-left: 3px solid var(--orange);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
blockquote.pull-quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--text-secondary); font-style: normal; }

.article-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.tag-pill {
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--grey-light);
  padding: 8px 16px; border-radius: var(--radius-pill);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.tag-pill:hover { background: var(--orange); color: var(--white); }

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 40px;
  padding: 24px;
  background: var(--grey-light);
  border-radius: var(--radius-l);
}
/* -------------------- Share CTA -------------------- */
.share-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--navy);
  border-radius: var(--radius-l);
  padding: 24px 28px;
  margin-top: 40px;
}
.share-block-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  max-width: 380px;
}
.share-block-label svg { color: var(--orange); flex-shrink: 0; }
.share-block-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-block-icons a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.share-block-icons a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-2px); }

/* -------------------- Comments -------------------- */
.comments-section .comments-wrap { max-width: 760px; }
.comments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.comments-head svg { width: 22px; height: 22px; color: var(--orange); }
.comments-head h2 { font-size: 22px; }
.comments-count { color: var(--text-secondary); font-weight: 600; font-family: var(--font-body); font-size: 17px; }

.comment-form {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--grey-mid);
}
.comment-form .author-avatar { flex-shrink: 0; }
.comment-form-body { flex: 1; min-width: 0; }
.comment-form textarea {
  width: 100%;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-main);
  resize: vertical;
  min-height: 90px;
  transition: border-color .18s var(--ease);
}
.comment-form textarea:focus { border-color: var(--orange); }
.comment-form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 28px; }
.comment-item { display: flex; gap: 14px; }
.comment-item .author-avatar { width: 42px; height: 42px; font-size: 13px; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-author { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); }
.comment-date { font-size: 12.5px; color: var(--text-secondary); }
.comment-text { font-size: 14.5px; line-height: 1.65; color: #2b2b2b; margin-bottom: 10px; }
.comment-actions { display: flex; align-items: center; gap: 18px; }
.comment-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color .18s var(--ease);
}
.comment-actions button svg { width: 15px; height: 15px; }
.comment-actions button:hover { color: var(--orange); }
.comment-actions button.is-liked { color: var(--orange); }
.comment-replies {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 2px solid var(--grey-mid);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* -------------------- Modale de connexion (commentaires) -------------------- */
.oauth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(21, 36, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.oauth-modal-overlay[hidden] { display: none; }
.oauth-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lift);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}
.oauth-modal h3 { font-size: 20px; color: var(--navy); }
.oauth-modal p { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.oauth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--text-secondary);
}
.oauth-modal-close svg { width: 18px; height: 18px; }
.oauth-btn { width: 100%; justify-content: center; }
.oauth-btn svg { color: inherit; }

/* -------------------- Toast (retour de connexion) -------------------- */
.critikmag-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  z-index: 400;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.critikmag-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes critikmag-comment-highlight {
  0%   { background: var(--orange-tint); }
  100% { background: transparent; }
}
.comment-item--new { animation: critikmag-comment-highlight 2.4s ease-out; border-radius: var(--radius-m); }

.related-section { margin-top: 20px; }

/* -------------------- Author page -------------------- */
.author-hero {
  background: var(--grey-light);
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
}
.author-hero-avatar {
  width: 108px; height: 108px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3a5a86);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 34px;
  margin: 0 auto 20px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-soft);
}
.author-hero h1 { font-size: clamp(26px, 3.4vw, 36px); }
.author-hero .role { color: var(--orange); font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.author-hero .bio { max-width: 620px; margin: 18px auto 0; color: var(--text-secondary); font-size: 15.5px; }
.author-stats { display: flex; justify-content: center; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.author-stats div { text-align: center; }
.author-stats strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--navy); }
.author-stats span { font-size: 12.5px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }
.author-social { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.author-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--grey-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.author-social a:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* -------------------- Search page -------------------- */
.search-hero { padding: clamp(40px, 6vw, 60px) 0 clamp(24px, 4vw, 32px); text-align: center; }
.search-hero h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 22px; }
.search-form-big {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.search-form-big input {
  width: 100%;
  padding: 18px 56px 18px 24px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--grey-mid);
  font-size: 16px;
  background: var(--grey-light);
}
.search-form-big input:focus { border-color: var(--orange); background: var(--white); }
.search-form-big button {
  position: absolute;
  right: 6px; top: 6px; bottom: 6px;
  width: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.search-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.filter-pill {
  font-family: var(--font-head);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid var(--grey-mid);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  transition: all .18s var(--ease);
}
.filter-pill.active, .filter-pill:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.search-meta {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 28px 0 8px;
}
.search-meta strong { color: var(--navy); }

/* -------------------- Forms (event submission & contact) -------------------- */
.form-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--orange-tint);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.form-notice svg { width: 22px; height: 22px; color: var(--orange-dark); flex-shrink: 0; margin-top: 2px; }
.form-notice > div > strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--navy); margin-bottom: 4px; }
.form-notice p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; margin: 0; }

.form-card {
  background: var(--white);
  border: 1px solid var(--grey-mid);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 4vw, 40px);
}

.form-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 18px;
}
.form-section-title:not(:first-child) { margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--grey-mid); }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
.form-grid:last-of-type { margin-bottom: 0; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--navy); }
.form-field label .required { color: var(--orange); margin-left: 2px; }
.form-note { font-size: 12px; color: var(--text-secondary); }

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="url"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card input[type="time"],
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1.5px solid var(--grey-mid);
  border-radius: var(--radius-m);
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-main);
  background: var(--white);
  transition: border-color .18s var(--ease);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--orange); }
.form-card textarea { resize: vertical; min-height: 110px; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-chevron { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-secondary); }

.textarea-foot { display: flex; justify-content: flex-end; }
.char-counter { font-size: 12px; color: var(--text-secondary); }
.char-counter.is-limit { color: var(--orange-dark); font-weight: 700; }

.file-drop {
  position: relative;
  border: 1.5px dashed var(--grey-mid);
  border-radius: var(--radius-m);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--orange); background: var(--orange-tint); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { width: 26px; height: 26px; color: var(--orange); margin: 0 auto 8px; }
.file-drop-label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); }
.file-drop-hint { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }
.file-drop-filenames { margin-top: 10px; font-size: 12.5px; color: var(--orange-dark); font-weight: 600; word-break: break-word; }

.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--orange); cursor: pointer; }
.checkbox-row label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; }
.price-field { transition: opacity .18s var(--ease); }
.price-field.is-disabled { opacity: .4; pointer-events: none; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--grey-mid);
}
.form-actions p { font-size: 12.5px; color: var(--text-secondary); margin: 0; flex: 1; min-width: 220px; }

.form-success { text-align: center; padding: clamp(30px, 6vw, 56px) clamp(16px, 4vw, 30px); }
.form-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--orange-tint);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg { width: 30px; height: 30px; color: var(--orange-dark); }
.form-success h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 10px; }
.form-success p { color: var(--text-secondary); font-size: 15px; max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }
.form-success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* -------------------- Contact page -------------------- */
.contact-intro { max-width: 640px; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-layout > * { min-width: 0; }
.contact-stats { display: flex; justify-content: flex-start; gap: 34px; margin: 26px 0 30px; flex-wrap: wrap; }
.contact-stats div { text-align: left; }
.contact-stats strong { display: block; font-family: var(--font-head); font-size: 26px; color: var(--navy); }
.contact-stats span { font-size: 12.5px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; }

.contact-info-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 30px; }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--grey-light);
  border-radius: var(--radius-m);
  padding: 18px 20px;
}
.contact-info-card svg { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.contact-info-card strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--navy); margin-bottom: 3px; }
.contact-info-card span, .contact-info-card a { font-size: 13.5px; color: var(--text-secondary); }
.contact-info-card a:hover { color: var(--orange); }

.logos-marquee {
  overflow: hidden;
  margin-bottom: 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: logos-scroll 30s linear infinite;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logo-item { flex-shrink: 0; height: 44px; display: flex; align-items: center; }
.logo-item img { display: block; height: 100%; width: auto; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------------------- Charte éditoriale / brand page -------------------- */
.brand-hero { text-align: center; padding: clamp(30px, 5vw, 50px) 0 8px; }
.brand-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.brand-hero p { color: var(--text-secondary); font-style: italic; font-size: 15px; }

.brand-section { margin: 44px 0; }
.brand-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  margin-bottom: 22px;
}
.brand-sub-title { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); margin: 30px 0 14px; }
.brand-intro { color: var(--text-secondary); font-size: 14.5px; max-width: 640px; margin-bottom: 18px; }

.logo-card-grid, .usage-grid, .color-grid, .type-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.logo-card, .usage-card, .color-swatch, .type-specimen { border: 1px solid var(--grey-mid); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }

.logo-card-media { display: flex; align-items: center; justify-content: center; padding: 30px 20px; min-height: 120px; }
.logo-card-media.on-white { background: var(--white); }
.logo-card-media.on-navy { background: var(--navy); }
.logo-card-media.on-grey { background: var(--grey-light); }
.logo-card-media img { max-height: 52px; width: auto; max-width: 100%; }
.logo-card-media.icon-only img { max-height: 44px; }
.logo-card-caption, .usage-card-caption { padding: 12px 16px; font-size: 13px; color: var(--text-secondary); border-top: 1px solid var(--grey-mid); }

.usage-card { position: relative; }
.usage-card-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 130px; padding: 20px; background: var(--grey-light); }
.usage-badge {
  position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.usage-badge.bad { background: #E5484D; }
.usage-badge.good { background: #2E9B5D; }
.usage-badge svg { width: 14px; height: 14px; }
.usage-card-media img { max-height: 44px; width: auto; }
.usage-card-media .brand-logo-distorted { transform: scaleX(1.7) scaleY(0.55); }
.usage-card-media .brand-logo-miscolored { filter: hue-rotate(190deg) saturate(2); }
.usage-card-media .brand-cartouche { background: var(--white); border-radius: var(--radius-s); padding: 12px 18px; box-shadow: var(--shadow-soft); }
.usage-card-media .brand-mismatch { display: flex; align-items: flex-end; gap: 4px; }
.usage-card-media .brand-mismatch img { height: 70px; }
.usage-card-media .brand-mismatch span { font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--navy); }

.clearspace-demo { display: inline-block; border: 1.5px dashed var(--grey-mid); border-radius: var(--radius-m); padding: 28px 46px; }
.clearspace-demo img { height: 38px; display: block; }

.minsize-row { display: flex; align-items: flex-end; gap: 36px; flex-wrap: wrap; margin: 16px 0; }
.minsize-item { text-align: center; }
.minsize-item img { display: block; margin: 0 auto 8px; }
.minsize-item span { font-size: 12px; color: var(--text-secondary); }

.color-swatch-fill { height: 84px; }
.color-swatch-label { padding: 10px 14px; }
.color-swatch-label strong { display: block; font-family: var(--font-head); font-size: 14px; color: var(--navy); }
.color-swatch-label span { font-size: 12.5px; color: var(--text-secondary); font-family: monospace; }

.type-specimen { padding: 30px 16px; text-align: center; }
.type-specimen .sample { font-size: 42px; color: var(--navy); margin-bottom: 10px; }
.type-specimen span { font-size: 13px; color: var(--text-secondary); }

/* -------------------- Responsive -------------------- */
@media (min-width: 640px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 16px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .editorial-grid { grid-template-columns: 1.3fr 1fr; }
  .topcritik-grid { grid-template-columns: repeat(2, 1fr); }
  .author-box { grid-template-columns: auto 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .contact-info-grid { grid-template-columns: 1fr 1fr; }
  .logo-card-grid, .usage-grid { grid-template-columns: repeat(3, 1fr); }
  .color-grid { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .category-hero { grid-template-columns: 1.4fr 1fr; }
  .category-layout { grid-template-columns: 1fr 320px; }
  .article-layout { grid-template-columns: 1fr 300px; }
  .footer-top { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .event-featured { grid-template-columns: 1.1fr 1fr; }
  .event-featured-media .media { aspect-ratio: auto; height: 100%; }
  .contact-layout { grid-template-columns: 1fr 1.05fr; }
}

@media (min-width: 1024px) {
  .topcritik-grid { grid-template-columns: repeat(4, 1fr); }
  .nav-list { flex-wrap: nowrap; }
}

@media (max-width: 1023px) {
  .header-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-action-right .btn-primary span { display: none; }
  .header-action-right .btn-primary { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
}

@media (max-width: 859px) {
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
  :root { --header-h: 108px; }
  .header-top { padding: 14px 60px 6px; }
  .brand-logo-img { height: 30px; }
  .brand-baseline { font-size: 9.5px; }
  .icon-btn { width: 36px; height: 36px; }
  .editorial-side .side-item { grid-template-columns: 84px 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn span { white-space: nowrap; }
  .article-byline { flex-direction: column; align-items: flex-start; }
  .byline-share { margin-left: 0; }
}

/* -------------------- Reveal on scroll --------------------
   Visible by default: JS opts an element INTO the hidden/animated
   state via .reveal-armed, so content is never gated behind JS
   loading successfully (blocked/slow/failed script = still readable). */
[data-reveal].reveal-armed { opacity: 0; transform: translateY(18px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
[data-reveal].reveal-armed.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal].reveal-armed { opacity: 1; transform: none; transition: none; }
}

/* -------------------- Utilities -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hide-mobile { display: none; }
@media (min-width: 640px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 640px) { .show-mobile { display: none; } }
