/**
 * ATLAS Loom — Design System CSS
 * Source of truth: homepage-v5.45, article-template-v4, a-propos-v2
 * All shared components. Page-specific overrides in home.css.
 */

/* ═══════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════ */
:root {
  --fond: #F6F1E8;
  --beige: #EDE6DA;
  --terracotta: #C46A2E;
  --vert: #2F5D50;
  --noir: #1A1A1A;
  --blanc: #FAFAF7;
  --gris: #8A8578;
  --nuit: #1F1A17;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Manrope', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --margin: 120px;
}

@media (max-width: 1440px) { :root { --margin: 60px; } }
@media (max-width: 1024px) { :root { --margin: 32px; --gutter: 20px; } }
@media (max-width: 768px) { :root { --margin: 20px; --gutter: 16px; } }

/* ═══════════════════════════════════════
   BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--fond);
  color: var(--noir);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(196,106,46,0.15); }

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

/* Reset WordPress block gap + global heading overrides */
.wp-site-blocks > * { margin-block-start: 0 !important; }

/* Reset WordPress heading margins inside our wireframe sections */
.portes h2, .portes h3,
.editorial h2, .editorial h3, .editorial h4,
.matieres h2, .matieres h4,
.rupture h2,
.villes h2, .villes h3,
.guide h2,
.newsletter h2 {
  margin: 0; padding: 0;
}
/* Hero: force white on headings (WordPress global h1{color:noir} overrides inherit) */
.hero-content h1 { color: var(--blanc) !important; }
.hero-content p { color: rgba(255,255,255,0.8); }

/* Wireframe components: images fill containers */
.hero-image img,
.porte-card img,
.editorial-main img,
.editorial-card .card-thumb img,
.matiere-card img,
.rupture > img,
.ville-card img,
.guide-image img,
.related-card img,
.mega-visual img {
  width: 100%; height: 100%; object-fit: cover; max-width: none;
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--noir); color: var(--blanc);
  padding: 0.8rem 1.5rem; z-index: 10000;
  font-size: 0.875rem; font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 2px; }

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.eyebrow {
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terracotta);
}

.section-spacer {
  height: 1px; background: rgba(26,26,26,0.06);
  margin: 0 auto; max-width: var(--container);
}

/* ═══════════════════════════════════════
   BUTTONS / CTAs
   ═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 28px;
  background: var(--noir); color: var(--blanc);
  font-family: var(--body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; border: none; cursor: pointer;
  transition: background 0.3s ease; text-decoration: none;
}
.btn-primary:hover { background: var(--terracotta); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--noir); text-decoration: none;
  border-bottom: 1px solid var(--noir); padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.btn-secondary:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ═══════════════════════════════════════
   HEADER — 64px sticky, mega-dropdown
   ═══════════════════════════════════════ */
.header-wrap {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(246, 241, 232, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.header-wrap.scrolled {
  background: rgba(246, 241, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
}
.header {
  height: 64px; display: flex; align-items: center;
  padding: 0 var(--margin); max-width: 1440px; margin: 0 auto;
  position: relative; z-index: 100;
}

/* Logo */
.header-logo {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--noir);
}
.header-logo .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.header-logo .logo-mark svg { width: 100%; height: 100%; }
.header-logo .logo-group { display: flex; flex-direction: column; }
.header-logo .logo-text {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  letter-spacing: 0.8px; color: var(--noir); line-height: 1;
}
.header-logo .logo-line { width: 40%; height: 1px; background: rgba(26,26,26,0.25); margin-top: 6px; }

/* Nav */
.header-nav { display: flex; gap: 0; align-items: center; margin-left: auto; }
.nav-item { position: relative; padding: 0 18px; height: 64px; display: flex; align-items: center; }
.nav-item > a {
  font-family: var(--body); font-size: 13px; font-weight: 500;
  color: var(--noir); text-decoration: none; letter-spacing: 0.3px;
  position: relative; padding: 4px 0;
}
.nav-item > a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--terracotta);
  transition: width 0.3s ease;
}
.nav-item:hover > a::after { width: 100%; }
.nav-item:hover > a { color: var(--terracotta); }

/* Mega dropdown */
.mega-dropdown {
  position: absolute; top: 64px; left: 50%; transform: translateX(-50%);
  min-width: 520px; background: var(--fond);
  border: 1px solid rgba(26,26,26,0.06);
  box-shadow: 0 12px 40px rgba(26,26,26,0.08);
  padding: 32px; display: flex; gap: 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}
.nav-item:hover .mega-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.mega-links { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mega-links a {
  font-family: var(--body); font-size: 14px; font-weight: 400;
  color: var(--noir); text-decoration: none; padding: 6px 0;
  transition: color 0.2s; line-height: 1.4;
}
.mega-links a:hover { color: var(--terracotta); }
.mega-links .mega-category {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gris);
  padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(26,26,26,0.06); pointer-events: none;
}
.mega-visual { flex: 0 0 200px; height: 240px; overflow: hidden; position: relative; }
.mega-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mega-visual:hover img { transform: scale(1.03); }
.mega-visual .mega-visual-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.3));
  font-family: var(--display); font-size: 15px; font-weight: 400; color: var(--blanc);
}

/* Hamburger */
.header-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 1001; margin-left: auto;
}
.header-hamburger span {
  width: 22px; height: 1.5px; background: var(--noir);
  transition: transform 0.3s, opacity 0.3s;
}
.header-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header-hamburger.active span:nth-child(2) { opacity: 0; }
.header-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.25); z-index: 998; }
.mobile-nav-overlay.open { display: block; }
.mobile-nav-panel {
  display: none; position: fixed; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 85vw; background: var(--fond);
  z-index: 999; padding: 80px 32px 40px; overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,0.08);
  transform: translateX(100%); transition: transform 0.35s ease;
}
.mobile-nav-panel.open { display: block; transform: translateX(0); }
.mobile-nav-panel .mobile-nav-section { margin-bottom: 28px; }
.mobile-nav-panel .mobile-nav-title {
  font-family: var(--display); font-size: 22px; font-weight: 500;
  color: var(--noir); text-decoration: none; display: block;
  margin-bottom: 10px; cursor: pointer;
}
.mobile-nav-panel .mobile-nav-links {
  display: none; flex-direction: column; gap: 6px;
  padding-left: 16px; border-left: 1px solid rgba(26,26,26,0.08);
}
.mobile-nav-panel .mobile-nav-links.open { display: flex; }
.mobile-nav-panel .mobile-nav-links a {
  font-family: var(--body); font-size: 14px; color: var(--gris);
  text-decoration: none; padding: 6px 0; transition: color 0.2s;
}
.mobile-nav-panel .mobile-nav-links a:hover { color: var(--terracotta); }

@media (max-width: 1024px) {
  .header { padding: 0 24px; }
  .header-nav { display: none; }
  .header-hamburger { display: flex; }
}
@media (max-width: 768px) {
  .header { height: 56px; padding: 0 20px; }
  .header-logo .logo-text { font-size: 18px; }
  .header-logo .logo-mark { width: 22px; height: 22px; }
  .header-logo .logo-line { display: none; }
}
@media (min-width: 1025px) {
  .header-hamburger { display: none !important; }
  .mobile-nav-panel { display: none !important; }
  .mobile-nav-overlay { display: none !important; }
}

/* ═══════════════════════════════════════
   FOOTER — compact Nuit Médina
   ═══════════════════════════════════════ */
.footer { background: var(--nuit); color: rgba(255,255,255,0.55); padding: 0; }
.footer-main {
  max-width: var(--container); margin: 0 auto;
  padding: 40px var(--margin) 28px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
}
.footer-brand { flex: 0 0 auto; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-logo-mark { width: 32px; height: 32px; }
.footer-logo-mark svg { width: 100%; height: 100%; }
.footer-logo-group { display: flex; flex-direction: column; }
.footer-logo-text { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--blanc); letter-spacing: 0.5px; line-height: 1; }
.footer-logo-line { width: 40%; height: 1px; background: rgba(255,255,255,0.2); margin-top: 6px; }

.footer-columns { display: flex; gap: 40px; }
.footer-col h4 {
  font-family: var(--body); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-family: var(--body); font-size: 13.5px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--blanc); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  max-width: var(--container); margin: 0 auto;
  padding: 14px var(--margin);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span, .footer-bottom a { font-size: 11px; color: rgba(255,255,255,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.55); }
.footer-bottom-links { display: flex; gap: 20px; }

@media (max-width: 1024px) { .footer-columns { gap: 28px; } }
@media (max-width: 768px) {
  .footer-main { flex-direction: column; padding: 32px 20px 20px; gap: 24px; }
  .footer-brand { max-width: 100%; }
  .footer-columns { flex-wrap: wrap; gap: 24px 32px; }
  .footer-bottom { padding: 12px 20px; flex-direction: column; gap: 6px; }
}

/* ═══════════════════════════════════════
   NEWSLETTER — éditorial intime
   ═══════════════════════════════════════ */
.newsletter {
  display: flex; align-items: center; justify-content: center;
  padding: 88px 40px; position: relative; overflow: hidden;
  background: #F4EEE5;
}
.newsletter-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.08; }
.newsletter-inner { text-align: center; max-width: 520px; position: relative; z-index: 1; }
.newsletter-inner .newsletter-trait {
  width: 40px; height: 1.5px; border-radius: 1px;
  background: rgba(196,106,46,0.5); margin: 0 auto 20px;
}
.newsletter-inner h2 {
  font-family: var(--display); font-size: 34px; font-weight: 400;
  line-height: 1.2; color: var(--noir); margin-bottom: 14px;
}
.newsletter-inner .newsletter-desc, .newsletter-desc {
  font-family: var(--body); font-size: 15px; line-height: 1.65;
  color: var(--gris); margin-bottom: 28px; max-width: 560px;
}
.newsletter-form {
  display: flex; gap: 0; justify-content: center;
  width: 100%; max-width: 540px; margin: 0 auto 16px;
}
.newsletter-form input[type="email"] {
  flex: 7; height: 48px; padding: 0 22px;
  border: 1px solid rgba(26,26,26,0.12);
  background: rgba(255,255,255,0.85); font-family: var(--body);
  font-size: 14px; color: var(--noir); outline: none;
  transition: border-color 0.3s; border-radius: 8px;
  margin-right: 8px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(138,133,120,0.7); }
.newsletter-form input[type="email"]:focus { border-color: var(--terracotta); }
.newsletter-form button {
  flex: 3; height: 48px; padding: 0 24px;
  background: var(--noir); color: var(--blanc);
  font-family: var(--body); font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; border: none; cursor: pointer;
  transition: background 0.3s; white-space: nowrap; border-radius: 8px;
}
.newsletter-form button:hover { background: var(--terracotta); }
.newsletter-feedback { margin-top: 8px; font-size: 14px; text-align: center; min-height: 1.2em; }
.newsletter-micro { font-family: var(--body); font-size: 12px; color: rgba(138,133,120,0.6); letter-spacing: 0.2px; }

@media (max-width: 768px) {
  .newsletter { padding: 72px 20px; }
  .newsletter-inner h2 { font-size: 28px; }
  .newsletter-desc { white-space: normal !important; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { width: 100%; border-right: 1px solid rgba(26,26,26,0.12); margin-right: 0; margin-bottom: 8px; }
  .newsletter-form button { width: 100%; }
}

/* ═══════════════════════════════════════
   SECTION HEADERS — trait + h2 + lien
   ═══════════════════════════════════════ */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 32px;
}
.section-header-left .section-trait,
.section-trait {
  width: 40px; height: 1.5px; border-radius: 1px;
  background: rgba(196,106,46,0.6); margin-bottom: 11px;
}
.section-header-left h2,
.portes-header-left h2 {
  font-family: var(--display) !important; font-size: 30px !important; font-weight: 500 !important;
  line-height: 38px !important; color: var(--noir) !important; margin: 0 !important;
}
.section-header a {
  font-family: var(--body); font-size: 15px; font-weight: 400;
  color: var(--gris); text-decoration: none; transition: color 0.3s;
}
.section-header a:hover { color: var(--terracotta); }

@media (max-width: 768px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-header-left h2 { font-size: 24px; line-height: 32px; }
}

/* ═══════════════════════════════════════
   HERO — full viewport immersive
   ═══════════════════════════════════════ */
.hero {
  width: 100%; height: 65vh; height: 65dvh;
  min-height: 480px; position: relative;
  overflow: hidden; background: var(--noir);
}
.hero-image { position: absolute; inset: 0; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0,0,0,0.25) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute; bottom: 72px;
  left: max(110px, calc((100% - 1440px) / 2 + 110px));
  color: var(--blanc); z-index: 2; max-width: 800px;
  padding-left: 20px; border-left: 2px solid var(--terracotta);
}
.hero-content h1 {
  font-family: var(--display); font-size: 46px; font-weight: 500;
  line-height: 52px; letter-spacing: -0.3px; max-width: 580px; margin-bottom: 14px;
}
.hero-subtitle {
  font-family: var(--body); font-size: 17px; font-weight: 400;
  line-height: 26px; color: rgba(255,255,255,0.8);
  max-width: 480px; margin-bottom: 22px;
}

/* ==========================================
   HERO CTA PREMIUM — Phase 2
   2026-03-25 — WP Designer
   ========================================== */

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero-cta a {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px !important;
  transition: all 0.3s ease;
}

/* Bouton primaire (matières) — terracotta */
.hero-cta a:first-child {
  background: var(--terracotta);
  color: var(--blanc);
  border: 1.5px solid var(--terracotta);
}

.hero-cta a:first-child:hover {
  background: #A85724;
  border-color: #A85724;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 106, 46, 0.25);
}

/* Bouton secondaire (villes) — outline blanc */
.hero-cta a:nth-child(2) {
  background: transparent;
  color: var(--blanc);
  border: 1.5px solid rgba(250, 250, 247, 0.4);
}

.hero-cta a:nth-child(2):hover {
  background: rgba(250, 250, 247, 0.12);
  border-color: var(--blanc);
  transform: translateY(-2px);
}

/* Flèche CTA — animation au hover */
.hero-cta a span {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.hero-cta a:hover span {
  transform: translateX(4px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-cta a {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
  }
}


@media (max-width: 1024px) {
  .hero-content { left: 32px; max-width: calc(100% - 64px); }
  .hero-content h1 { font-size: 38px; line-height: 44px; }
}
@media (max-width: 768px) {
  .hero { min-height: 380px; height: 55vh; }
  .hero-content { bottom: 48px; left: 20px; max-width: calc(100% - 40px); padding-left: 16px; }
  .hero-content h1 { font-size: 30px; line-height: 35px; }
}

/* ═══════════════════════════════════════
   ARTICLE HERO — left-aligned, Atlassian-inspired
   2026-03-27 — Refonte inspirée Atlassian blog
   ═══════════════════════════════════════ */
.article-hero {
  max-width: 980px; margin: 0 auto;
  padding: 64px var(--gutter) 0; text-align: left;
}
.article-hero .hero-category {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 20px;
}
.article-hero h1 {
  font-family: var(--display); font-size: 46px; font-weight: 600;
  line-height: 1.1; letter-spacing: -0.3px; color: var(--noir); margin-bottom: 0;
}
.article-hero .hero-trait { width: 40px; height: 1.5px; background: rgba(196,106,46,0.5); margin: 20px 0 24px !important; margin-left: 0 !important; margin-right: 0 !important; border-radius: 1px; }
.article-hero .hero-intro {
  font-family: var(--body); font-size: 18px; font-weight: 400;
  line-height: 1.65; color: rgba(26,26,26,0.65);
  max-width: 800px; margin: 0 0 24px 0;
}
.article-hero .hero-meta { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.article-hero .hero-meta span { font-family: var(--body); font-size: 13px; color: rgba(26,26,26,0.3); }
.hero-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(26,26,26,0.12); }

.article-hero-image { max-width: 980px; margin: 36px auto 52px; padding: 0 var(--gutter); }
.article-hero-image img { width: 100%; height: 380px; object-fit: cover; object-position: center 30%; }

@media (max-width: 768px) {
  .article-hero { padding: 40px var(--gutter) 0; }
  .article-hero h1 { font-size: 30px; line-height: 1.15; }
  .article-hero .hero-intro { font-size: 16px; }
  .article-hero-image { margin-top: 24px; margin-bottom: 40px; padding: 0; }
  .article-hero-image img { height: 240px; }
}

/* --- Hero meta top (date + catégorie) --- */
.hero-meta-top { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.hero-meta-sep-text { font-size: 13px; color: rgba(26,26,26,0.3); line-height: 1; }
.hero-category-inline, .hero-category-inline a, .hero-category-inline span { font-family: var(--body); font-size: 13px !important; font-weight: 500 !important; color: var(--terracotta) !important; text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-category-inline a:hover { color: var(--noir); }


/* Fix: catégorie dans hero-meta-top pour pages (pillar) — pas de classe inline, ciblage par structure */
.hero-meta-top .wp-block-post-terms,
.hero-meta-top .wp-block-post-terms a,
.hero-meta-top .wp-block-post-terms span,
.hero-meta-top .wp-block-post-terms .page-label {
  font-family: var(--body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--terracotta) !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* --- Hero reading time --- */
.hero-reading-time { margin-top: 20px; }
.hero-reading-time span { font-family: var(--body); font-size: 13px; color: rgba(26,26,26,0.35); }

@media (max-width: 768px) {
  .hero-meta-top { gap: 6px; }
  .hero-reading-time { margin-top: 16px; }
}

/* ═══════════════════════════════════════
   ARTICLE CONTENT — 740px column
   ═══════════════════════════════════════ */
.article-content { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.article-content p {
  font-family: var(--body); font-size: 18px; line-height: 1.8;
  color: rgba(26,26,26,0.78); margin-bottom: 22px;
}
.article-content h2 {
  font-family: var(--display); font-size: 32px; font-weight: 500;
  line-height: 1.12; color: var(--noir); margin-top: 52px; margin-bottom: 0;
}
.article-content h2::after {
  content: ''; display: block;
  width: 36px; height: 1px; background: rgba(0,0,0,0.2);
  margin-top: 10px; margin-bottom: 18px;
}
.article-content figure { margin: 32px 0; }
.article-content figure img { width: 100%; max-height: 460px; object-fit: cover; }
.article-content figcaption { font-family: var(--body); font-size: 13px; color: var(--gris); opacity: 0.6; margin-top: 8px; }
.article-content blockquote {
  font-family: var(--display); font-size: 26px; font-weight: 400;
  font-style: italic; line-height: 1.35; color: var(--noir);
  border-left: 2px solid var(--terracotta); padding-left: 24px;
  margin: 40px 0;
}
.article-content .quote-attr { font-family: var(--body); font-size: 13px; color: var(--gris); margin-top: -28px; margin-bottom: 40px; padding-left: 26px; }
.article-content .separator { width: 40px; height: 1.5px; border-radius: 1px; background: rgba(196,106,46,0.4); margin: 48px 0; }

@media (max-width: 768px) {
  .article-content p { font-size: 17px; line-height: 1.75; }
  .article-content h2 { font-size: 26px; margin-top: 40px; }
  .article-content blockquote { font-size: 22px; }
  .article-content figure img { max-height: 240px; }
}

/* ═══════════════════════════════════════
   ARTICLE CTA
   ═══════════════════════════════════════ */
.article-cta { text-align: center; padding: 8px var(--gutter) 72px; }
.article-cta a {
  font-family: var(--body); font-size: 15px; font-weight: 500;
  color: var(--noir); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1px solid rgba(26,26,26,0.2); padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.article-cta a:hover { color: var(--terracotta); border-color: var(--terracotta); }
.article-cta a span { display: inline-block; transition: transform 0.3s ease; }
.article-cta a:hover span { transform: translateX(4px); }

/* ═══════════════════════════════════════
   RELATED POSTS — 3-column grid
   ═══════════════════════════════════════ */
.related { max-width: 1080px; margin: 0 auto; padding: 72px var(--gutter) 64px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.related-card { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; aspect-ratio: 3/4; }
.related-card img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.6s ease; }
.related-card:hover img { transform: scale(1.03); }
.related-card .card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(26,26,26,0.6) 100%); z-index: 1;
}
.related-card .card-content .eyebrow { color: rgba(255,255,255,0.45); margin-bottom: 10px; }
.related-card .card-content h3 { font-family: var(--display); font-size: 22px; font-weight: 400; color: var(--blanc); line-height: 1.2; }

@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ═══════════════════════════════════════
   TRANSITION — respiration éditoriale
   ═══════════════════════════════════════ */
.transition { display: flex; align-items: center; justify-content: center; padding: 100px 40px; background: var(--beige); }
.transition-inner { max-width: 980px; text-align: center; }
.transition-inner .trait { width: 48px; height: 1.5px; border-radius: 1px; background: rgba(196,106,46,0.65); margin: 0 auto 22px; }
.transition-inner p { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 42px; letter-spacing: 0.3px; color: var(--noir); }
.transition-inner p em { color: var(--terracotta); font-style: normal; }

@media (max-width: 768px) {
  .transition { padding: 72px 24px; }
  .transition-inner p { font-size: 24px; line-height: 34px; }
}

/* ═══════════════════════════════════════
   PORTES — 3-column cards
   ═══════════════════════════════════════ */
.portes { max-width: 1440px; margin: 0 auto; padding: 72px var(--margin) 80px; }
.portes-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.portes-header-left .portes-trait {
  width: 40px; height: 1.5px; border-radius: 1px;
  background: rgba(196, 106, 46, 0.6); margin-bottom: 11px;
}
.portes-header-left h2 {
  font-family: var(--display); font-size: 30px; font-weight: 500;
  line-height: 38px; color: var(--noir);
}
.portes-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; height: clamp(240px, 25vw, 360px); }
.porte-card { position: relative; overflow: hidden; cursor: pointer; }
.porte-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.porte-card:hover img { transform: scale(1.03); }
.porte-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.2) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; z-index: 1;
}
.porte-card .card-overlay h3 { font-family: var(--display); font-size: 32px; font-weight: 400; color: var(--blanc); }
.porte-card .card-overlay p { color: var(--blanc); opacity: 0.9; font-size: 15px; margin-top: 8px; line-height: 1.5; }
.porte-card:hover .card-overlay p { opacity: 1; }

@media (max-width: 768px) {
  .portes { padding: 48px 20px 40px; }
  .portes-grid { grid-template-columns: 1fr; height: auto; gap: 16px; }
  .portes-grid .porte-card { height: 240px; }
}

/* ═══════════════════════════════════════
   EDITORIAL — main + side cards
   ═══════════════════════════════════════ */
.editorial { max-width: 1440px; margin: 0 auto; padding: 72px var(--margin) 80px; background: var(--blanc); }
.editorial-grid { display: flex; gap: var(--gutter); height: 620px; }
.editorial-main { flex: 0 0 calc(58% - var(--gutter)/2); min-width: 0; height: 620px; position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; }
.editorial-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.editorial-main:hover img { transform: scale(1.03); }
.editorial-main .card-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 40px;
  background: linear-gradient(180deg, transparent 0%, rgba(26,26,26,0.7) 100%); z-index: 1;
}
.editorial-main .card-content .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.editorial-main .card-content h3 { font-family: var(--display); font-size: 32px; font-weight: 400; color: var(--blanc); line-height: 1.2; margin-bottom: 12px; }
.editorial-main .card-content p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; max-width: 420px; }
.editorial-side { flex: 0 0 calc(42% - var(--gutter)/2); display: flex; flex-direction: column; gap: var(--gutter); }
.editorial-card {
  flex: 1; display: flex; gap: 24px; align-items: stretch;
  cursor: pointer; padding: 22px; background: #F7F3EF;
  border: 1px solid rgba(0,0,0,0.05); border-radius: 3px; transition: background 0.3s;
}
.editorial-card:hover { background: #EDE8E0; }
.editorial-card .card-thumb { flex: 0 0 180px; border-radius: 5px !important; overflow: hidden; }
.editorial-card .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.editorial-card .card-text { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.editorial-card .card-text .eyebrow { font-size: 10px; }
.editorial-card .card-text h4 { font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1.25; }
.editorial-card .card-text p { font-size: 13px; color: var(--gris); line-height: 1.5; }

@media (max-width: 1024px) {
  .editorial-grid { height: auto; }
  .editorial-main { height: 420px; }
  .editorial-side { gap: 16px; }
  .editorial-card .card-thumb { flex: 0 0 140px; }
  .editorial-card .card-text h4 { font-size: 18px; }
}
@media (max-width: 768px) {
  .editorial { padding: 48px 20px 40px; }
  .editorial-grid { flex-direction: column; height: auto; }
  .editorial-main { flex: none; width: 100%; height: 360px; }
  .editorial-card { flex-direction: column; gap: 16px; padding: 16px; }
  .editorial-card .card-thumb { flex: none; width: 100%; height: 180px; }
}

/* ═══════════════════════════════════════
   MATIÈRES — 4-column grid
   ═══════════════════════════════════════ */
.matieres { max-width: 1440px; margin: 0 auto; padding: 72px var(--margin) 80px; }
.matieres-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.matiere-card { height: clamp(320px, 35vw, 500px); position: relative; overflow: hidden; cursor: pointer; }
.matiere-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.matiere-card:hover img { transform: scale(1.03); }
.matiere-card .card-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 28px;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%); z-index: 1;
}
.matiere-card .card-label h4 { font-family: var(--display); font-size: 28px; font-weight: 400; color: var(--blanc); }

@media (max-width: 1024px) { .matieres-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .matieres { padding: 48px 20px 40px; }
  .matieres-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .matiere-card { height: 300px; }
}

/* ═══════════════════════════════════════
   RUPTURE — moment fort
   ═══════════════════════════════════════ */
.rupture { width: 100%; min-height: 460px; padding: 90px 40px; text-align: center; position: relative; overflow: hidden; }
.rupture > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(0.85) contrast(1.02); }
.rupture::after { content: ''; position: absolute; inset: 0; background: rgba(26,20,14,0.45); z-index: 1; }
.rupture-content { max-width: 760px; margin: 0 auto; position: relative; z-index: 2; }
.rupture-content .rupture-trait { width: 40px; height: 1.5px; border-radius: 1px; background: rgba(255,255,255,0.35); margin: 0 auto 20px; }
.rupture-content h2 { font-family: var(--display); font-size: 56px; font-weight: 500; color: var(--blanc); line-height: 1.12; letter-spacing: -0.005em; margin-bottom: 24px; }
.rupture-content .rupture-sub { font-family: var(--body); font-size: 18px; line-height: 28px; font-weight: 400; color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 32px; }
.rupture-content .rupture-link {
  font-family: var(--body); font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.8); text-decoration: none; letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}
.rupture-content .rupture-link:hover { color: var(--blanc); border-color: var(--blanc); }

@media (max-width: 768px) {
  .rupture { padding: 80px 24px; min-height: 400px; }
  .rupture-content h2 { font-size: 36px; }
  .rupture-content .rupture-sub { font-size: 16px; line-height: 24px; }
}

/* ═══════════════════════════════════════
   VILLES — rows
   ═══════════════════════════════════════ */
.villes { max-width: 1440px; margin: 0 auto; padding: 80px var(--margin); }
.villes-row-1 { display: flex; gap: var(--gutter); margin-bottom: var(--gutter); }
.ville-card { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; }
.ville-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ville-card:hover img { transform: scale(1.03); }
.ville-card .card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0) 60%, rgba(26,26,26,0.5) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; z-index: 1;
}
.ville-card .card-overlay h3 { font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--blanc); margin-bottom: 4px; }
.ville-card .card-overlay span { font-size: 12px; color: rgba(255,255,255,0.6); }
.villes-row-1 .ville-card { flex: 1; height: 300px; }
.villes-row-2 { display: flex; gap: var(--gutter); }
.villes-row-2 .ville-card { flex: 1; height: 240px; }

@media (max-width: 768px) {
  .villes { padding: 40px 20px; }
  .villes-row-1, .villes-row-2 { flex-direction: column; }
  .villes-row-1 .ville-card { height: 220px; }
  .villes-row-2 .ville-card { height: 200px; }
}

/* ═══════════════════════════════════════
   GUIDE — split éditorial
   ═══════════════════════════════════════ */
.guide { max-width: 1440px; margin: 0 auto; padding: 0 var(--margin); }
.guide-split { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 480px; }
.guide-image { overflow: hidden; position: relative; min-height: 400px; }
.guide-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; min-height: 100%; transition: transform 0.8s ease; }
.guide-image:hover img { transform: scale(1.02); }
.guide-text { display: flex; flex-direction: column; justify-content: center; padding: 80px 72px; background: var(--blanc); }
.guide-text h2 { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.2; color: var(--noir); margin-bottom: 20px; }
.guide-text p { font-family: var(--body); font-size: 15px; line-height: 1.7; color: var(--gris); max-width: 380px; margin-bottom: 36px; }
.guide-text a { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--noir); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.3s; }
.guide-text a:hover { color: var(--terracotta); }
.guide-text a span { transition: transform 0.3s; }
.guide-text a:hover span { transform: translateX(3px); }

@media (max-width: 1024px) {
  .guide-split { grid-template-columns: 1fr; min-height: auto; }
  .guide-image { min-height: 340px; }
  .guide-text { padding: 48px 32px; }
}
@media (max-width: 768px) {
  .guide { padding: 0; }
  .guide-image { min-height: 280px; }
  .guide-text { padding: 40px 20px 48px; }
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.breadcrumb { font-size: 13px; color: var(--gris); font-family: var(--body); }
.breadcrumb a { color: var(--gris); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.4; }
.breadcrumb .current { color: var(--noir); font-weight: 500; }

/* ═══════════════════════════════════════
   PRINT
   ═══════════════════════════════════════ */
@media print {
  .header-wrap, .footer, .newsletter, .mobile-nav-panel, .mobile-nav-overlay { display: none !important; }
}

/* ==========================================

/* ==========================================
/* ==========================================
   BUTTON SYSTEM — ATLAS Loom Design System
   Version renforcée 2026-03-26 02:05
   ========================================== */

/* Base bouton - styles communs */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  font-family: var(--font-display) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border-radius: 5px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Bouton primaire terracotta */
.btn-primary {
  background: #C46A2E !important;
  color: #FAFAF7 !important;
  border-color: #C46A2E !important;
}

.btn-primary:hover {
  background: #A85724 !important;
  border-color: #A85724 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(196, 106, 46, 0.25) !important;
}

/* Bouton secondaire outline blanc (fonds sombres) */
.btn-secondary {
  background: transparent !important;
  color: #FAFAF7 !important;
  border-color: rgba(250, 250, 247, 0.4) !important;
}

.btn-secondary:hover {
  background: rgba(250, 250, 247, 0.12) !important;
  border-color: #FAFAF7 !important;
  transform: translateY(-2px) !important;
}

/* Bouton tertiaire outline terracotta (fonds clairs) */
.btn-tertiary {
  background: transparent !important;
  color: #C46A2E !important;
  border-color: #C46A2E !important;
}

.btn-tertiary:hover {
  background: #C46A2E !important;
  color: #FAFAF7 !important;
  transform: translateY(-2px) !important;
}

/* Flèche dans bouton */
.btn span {
  margin-left: 8px !important;
  transition: transform 0.3s ease !important;
  display: inline-block !important;
}

.btn:hover span {
  transform: translateX(4px) !important;
}

/* Tailles alternatives */
.btn-sm {
  padding: 10px 20px !important;
  font-size: 14px !important;
}

.btn-lg {
  padding: 16px 32px !important;
  font-size: 18px !important;
}

/* Bouton pleine largeur */
.btn-block {
  width: 100% !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .btn {
    padding: 12px 20px !important;
    font-size: 15px !important;
  }
}

   LIENS GUIDE — Override pour fond clair
   2026-03-26 01:56
   ========================================== */
.guide-text .link-arrow {
  color: #1a1a1a !important;
  border-bottom-color: rgba(26, 26, 26, 0.3) !important;
}

.guide-text .link-arrow:hover {
  color: #C46A2E !important;
  border-bottom-color: #C46A2E !important;
}

/* ==========================================
   HERO SUBTITLE: MAX 2 LIGNES (sans <br>)
   2026-03-26 11:24
   ========================================== */
.hero-subtitle {
  max-height: calc(26px * 2); /* 2 lignes * line-height */
}

/* ==========================================
   HERO H1: MAX 2 LIGNES (sans <br>)
   2026-03-26 11:24
   ========================================== */
.hero-content h1 {
  max-height: calc(52px * 2); /* 2 lignes * line-height (52px) */
}

/* ==========================================
   FIX: Header sticky forcé (position: fixed)
   2026-03-26 11:45
   ========================================== */
.header-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}

/* Compenser la hauteur du header fixe */
body {
  padding-top: 64px;
}

/* Annuler padding-top pour print */
@media print {
  body {
    padding-top: 0;
  }
}
/* ═══════════════════════════════════════

/* ═══════════════════════════════════════
   TEXT TRUNCATION GUARDS — Line-clamp safety
   2026-03-27 — WP Designer
   Prevents text overflow on homepage sections.
   Content is generated at correct size; these are safety nets.
   ═══════════════════════════════════════ */

/* --- Transition (after hero) --- */
.transition-inner p {
}

/* --- Trois Portes (.portes) --- */
.porte-card .card-overlay h3 {
}

.porte-card .card-overlay p {
}

/* --- Nos Enquêtes (.editorial) — Card principale --- */
.editorial-main .card-content h3 {
}

.editorial-main .card-content p {
}

/* --- Nos Enquêtes (.editorial) — Cards latérales --- */
.editorial-card .card-text .eyebrow {
}

.editorial-card .card-text h4 {
}

.editorial-card .card-text p {
}

/* --- Nos Matières (.matieres) --- */
.matiere-card .card-label h4 {
}

/* --- Rupture (.rupture) --- */
.rupture-content h2 {
}

.rupture-content .rupture-sub {
}

/* --- Nos Villes (.villes) --- */
.ville-card .card-overlay h3 {
}

.ville-card .card-overlay span {
}

/* --- Guide (.guide) --- */
.guide-text h2 {
}

.guide-text p {
}


.guide-text a {
  white-space: nowrap;
  overflow: hidden;
  
  max-width: 100%;
}


/* ============================================
   MATIÈRES — Texte descriptif sous chaque card
   2026-03-27
   ============================================ */
.matiere-card .card-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.matiere-card .card-label p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 26ch;
  text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
  .matiere-card .card-label p {
    font-size: 12px;
    line-height: 1.35;
    max-width: 100%;
  }
}

/* ============================================
   VILLES — Texte descriptif sous chaque ville
   2026-03-27
   ============================================ */
.ville-card .card-overlay span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
  max-width: 34ch;
  display: block;
  margin-top: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
@media (max-width: 768px) {
  .ville-card .card-overlay span {
    font-size: 12px;
    line-height: 1.35;
    max-width: 100%;
  }
}

/* ==========================================
   PAGE ABOUT — Styles restaurés 2026-03-27
   ========================================== */
.about-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px var(--gutter) 0;
  text-align: center;
}
.about-hero .hero-trait {
  width: 60px; height: 1px;
  background: rgba(196,106,46,0.5);
  margin: 0 auto 28px;
}
.about-hero h2 {
  font-family: var(--display); font-size: 52px; font-weight: 500;
  line-height: 1.08; letter-spacing: -0.3px;
  color: var(--noir); margin-bottom: 24px;
}
.about-hero .hero-intro {
  font-family: var(--body); font-size: 18px; font-weight: 400;
  line-height: 1.7; color: rgba(26,26,26,0.6);
  max-width: 560px; margin: 0 auto;
}
.about-hero-image {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 0 var(--gutter);
}
.about-hero-image img {
  width: 100%; height: 420px;
  object-fit: cover; object-position: center 40%;
}
.article-content-wide {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.article-content-wide p {
  font-family: var(--body); font-size: 18px; line-height: 1.8;
  color: rgba(26,26,26,0.78); margin-bottom: 22px;
}
.article-content-wide h2 {
  font-family: var(--display); font-size: 32px; font-weight: 500;
  line-height: 1.12; color: var(--noir);
  margin-top: 0; margin-bottom: 0;
}
.article-content-wide h2::after {
  content: "";
  display: block;
  width: 36px; height: 1px;
  background: rgba(0,0,0,0.2);
  margin-top: 10px; margin-bottom: 18px;
}
.article-content-wide .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.article-content-wide .two-col p {
  font-size: 16px; line-height: 1.75;
  margin-bottom: 0;
}
.article-cta {
  text-align: center;
  padding: 0 var(--gutter);
}
.article-cta a {
  font-family: var(--body); font-size: 15px; font-weight: 500;
  color: var(--terracotta); text-decoration: none;
  letter-spacing: 0.3px;
}
.article-cta a:hover { color: var(--noir); }

@media (max-width: 768px) {
  .about-hero { padding: 56px var(--gutter) 0; }
  .about-hero h2 { font-size: 34px; }
  .about-hero .hero-intro { font-size: 16px; }
  .about-hero-image img { height: 260px; }
  .article-content-wide .two-col { grid-template-columns: 1fr; gap: 16px; }
  .article-content-wide p { font-size: 17px; line-height: 1.75; }
  .article-content-wide h2 { font-size: 26px; }
}
