/*
Theme Name: HanSales
Theme URI: https://hansales.fr
Description: Thème maison, décoration, travaux & immobilier — design épuré Stykka
Author: HanSales
Version: 1.2.0
Text Domain: hansales
*/

/* ═══════════════════════════════════════════════════════════
   VARIABLES
═══════════════════════════════════════════════════════════ */
:root {
  --primary:      #000000;
  --primary-dark: #1a1a1a;
  --accent:       #000000;
  --dark:         #000000;
  --body:         #2e2e2e;
  --muted:        #888888;
  --border:       #c9c9c9;
  --bg:           #ffffff;
  --bg-alt:       #f6f6f6;

  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'Azeret Mono', monospace;

  --radius:    8px;
  --radius-lg: 16px;
  --shadow:    0 1px 4px rgba(0,0,0,0.05);

  --container: 1200px;
}

/* ═══════════════════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 10px 36px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--dark);
  background: transparent;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--dark); color: #fff; }
.btn-filled { background: var(--dark); color: #fff; }
.btn-filled:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.section-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -.04em;
  color: var(--dark);
  line-height: 1.1;
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  border-color: var(--border);
}
.site-header .header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: -.02em;
  font-weight: 400;
}
.site-logo svg { flex-shrink: 0; }

/* On pages with dark hero, logo stays white before scroll */
.has-hero .site-header:not(.scrolled) .site-logo { color: #fff; }
.has-hero .site-header:not(.scrolled) .site-logo svg path { fill: #fff; }
.has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* Nav */
.site-nav ul { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: .01em;
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--dark);
  transition: width .22s ease;
}
.site-nav a:hover::after { width: 100%; }
.has-hero .site-header:not(.scrolled) .site-nav a { color: #fff; }
.has-hero .site-header:not(.scrolled) .site-nav a::after { background: #fff; }

/* Bouton Contact dans le menu */
.site-nav .menu-contact a,
.site-nav .menu-item-contact a {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
}
.site-nav .menu-contact a::after,
.site-nav .menu-item-contact a::after { display: none; }
.site-nav .menu-contact a:hover,
.site-nav .menu-item-contact a:hover { background: var(--dark); color: #fff; }
.has-hero .site-header:not(.scrolled) .menu-contact a:hover,
.has-hero .site-header:not(.scrolled) .menu-item-contact a:hover { background: #fff; color: var(--dark); }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 301;
  position: relative;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: background .2s;
}

/* Close button */
.nav-close {
  display: none;
  position: absolute;
  top: 20px; right: 20px;
  font-size: 1.5rem;
  color: var(--dark);
  z-index: 302;
}
.nav-mobile-logo { display: none; }

/* ═══════════════════════════════════════════════════════════
   HERO HOMEPAGE
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
/* Slideshow — géré par JS (cross-fade smooth) */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.48) 55%, rgba(0,0,0,.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 100px;
  max-width: 760px;
}
.hero-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 24px;
  display: block;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero .btn {
  border-color: #fff;
  color: #fff;
}
.hero .btn:hover { background: #fff; color: var(--dark); }
.hero .btn-filled { background: #fff; color: var(--dark); }
.hero .btn-filled:hover { background: rgba(255,255,255,.85); border-color: rgba(255,255,255,.85); }

/* Hero stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 56px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 28px;
}
.hero-stat-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.hero-stat-label {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,.4);
  border-radius: 1px;
  animation: scrollPulse 1.6s ease-in-out infinite;
}
.hero-scroll-indicator span:nth-child(2) { animation-delay: .22s; }
.hero-scroll-indicator span:nth-child(3) { animation-delay: .44s; }
@keyframes scrollPulse {
  0%, 100% { opacity: .2; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════════════════
   PERSONA BLOCK
═══════════════════════════════════════════════════════════ */
.persona-section { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.persona-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  max-width: 860px;
}
.persona-photo-wrap { position: relative; }
.persona-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
}
.persona-photo-placeholder {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.persona-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.persona-name { font-family: var(--mono); font-size: 1.5rem; font-weight: 400; letter-spacing: -.03em; color: var(--dark); margin-bottom: 4px; }
.persona-title { font-size: .875rem; color: var(--muted); display: block; margin-bottom: 14px; }
.persona-bio { font-size: .95rem; line-height: 1.65; color: var(--body); margin-bottom: 18px; }
.persona-bio p { margin-bottom: 1em; }
.persona-bio strong { font-weight: 600; color: var(--dark); }
.persona-bio ul { list-style: disc; padding-left: 1.4em; margin: .6em 0 1em; }
.persona-bio li { margin-bottom: .4em; line-height: 1.55; }
.persona-credentials { display: flex; gap: 10px; flex-wrap: wrap; }
.credential-pill {
  font-size: .78rem;
  font-family: var(--mono);
  letter-spacing: .02em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--body);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLES GRID
═══════════════════════════════════════════════════════════ */
.articles-section { padding: 80px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease;
}
.card:hover { transform: translateY(-3px); }
.card-img {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--border);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img img { transform: scale(1.04); }
.card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: #e8e8e8;
}
.card-cat {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: #fff;
  color: var(--dark);
  padding: 4px 10px;
  border-radius: 4px;
}
.card-body { padding: 20px 24px 24px; }
.card-title {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 12px;
}
.card-title a { color: inherit; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.card-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   CATÉGORIES SECTION
═══════════════════════════════════════════════════════════ */
.hs-cats-section { padding: 80px 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.hs-cats-header { margin-bottom: 48px; }
.hs-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.hs-cat-col {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hs-cat-icon { color: var(--dark); opacity: .7; }
.hs-cat-name {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--dark);
}
.hs-cat-desc { font-size: .875rem; color: var(--muted); line-height: 1.55; flex: 1; }
.hs-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-family: var(--mono);
  letter-spacing: .02em;
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 4px;
}
.hs-cat-link:hover { opacity: .6; }

/* ═══════════════════════════════════════════════════════════
   POST HERO
═══════════════════════════════════════════════════════════ */
.post-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.post-hero.no-img { min-height: 320px; }
.post-hero-bg {
  position: absolute;
  inset: 0;
}
.post-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%);
}
.post-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 800px;
}
.post-cat {
  display: inline-block;
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.3);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.post-hero h1 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}
.post-meta-bar { display: flex; align-items: center; gap: 16px; font-size: .82rem; color: rgba(255,255,255,.65); }
.post-hero-stars { margin-top: 14px; }

/* Breadcrumb */
.breadcrumb { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,.4); }

/* Static page breadcrumb (dark) */
.page-breadcrumb { font-size: .78rem; color: var(--muted); margin-bottom: 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-breadcrumb a { color: var(--muted); }
.page-breadcrumb a:hover { color: var(--dark); }
.page-breadcrumb span { color: var(--border); }

/* ═══════════════════════════════════════════════════════════
   POST BODY
═══════════════════════════════════════════════════════════ */
.post-body { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }

.summarize-wrap { margin-bottom: 40px; }
.summarize-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-featured-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  max-height: 600px;
}
.post-featured-img img { width: 100%; max-height: 600px; object-fit: cover; }

/* Entry content */
.entry-content { font-size: 1rem; line-height: 1.75; color: var(--body); }
.entry-content h2 { font-family: var(--mono); font-size: 1.6rem; font-weight: 400; letter-spacing: -.035em; color: var(--dark); margin: 2.2em 0 .7em; line-height: 1.15; }
.entry-content h3 { font-family: var(--mono); font-size: 1.2rem; font-weight: 400; letter-spacing: -.02em; color: var(--dark); margin: 1.8em 0 .6em; }
.entry-content h4 { font-size: 1rem; font-weight: 600; color: var(--dark); margin: 1.4em 0 .5em; }
.entry-content p { margin-bottom: 1.5em; }
.entry-content a { color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { opacity: .65; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin-bottom: 1.5em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul ul { list-style: circle; margin-bottom: 0; }
.entry-content li { margin-bottom: .5em; }
.entry-content blockquote {
  border-left: 3px solid var(--dark);
  margin: 2em 0;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: -.02em;
  color: var(--dark);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content strong { font-weight: 600; color: var(--dark); }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .9rem; }
.entry-content th { background: var(--bg-alt); border: 1px solid var(--border); padding: 10px 14px; text-align: left; font-weight: 600; }
.entry-content td { border: 1px solid var(--border); padding: 10px 14px; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-tags a {
  font-size: .78rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  transition: border-color .2s, color .2s;
}
.post-tags a:hover { border-color: var(--dark); color: var(--dark); }

/* Author block */
.author-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}
.author-block-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author-block-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.author-block-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.author-block-name { font-family: var(--mono); font-size: 1rem; font-weight: 400; letter-spacing: -.02em; color: var(--dark); margin-bottom: 8px; }
.author-block-bio { font-size: .875rem; color: var(--body); line-height: 1.6; }

/* Related */
.related-section-inline { margin-top: 56px; }
.related-section-inline .section-head { margin-bottom: 28px; }
.related-section-inline h2 { font-family: var(--mono); font-size: 1.3rem; font-weight: 400; letter-spacing: -.03em; color: var(--dark); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* Comments */
.comments-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════════
   ARCHIVE HERO
═══════════════════════════════════════════════════════════ */
.archive-hero {
  position: relative;
  padding: 120px 0 60px;
  background: var(--dark);
  overflow: hidden;
}
.archive-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.archive-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.archive-hero-content { position: relative; z-index: 2; }
.archive-hero-count { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); margin-bottom: 12px; display: block; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.archive-hero h1 { font-family: var(--mono); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; letter-spacing: -.04em; color: #fff; margin-bottom: 14px; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.archive-hero-desc { font-size: 1rem; color: #fff !important; max-width: 560px; line-height: 1.65; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-weight: 400; }
.archive-hero-desc p { color: #fff !important; text-shadow: 0 1px 6px rgba(0,0,0,.6); font-size: 1rem; line-height: 1.65; margin: 0; }

.archive-body { padding: 64px 0 80px; }

/* SEO block archive */
.archive-seo-block {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 80px 0 96px;
}
.archive-seo-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 72px;
  align-items: center;
}
.archive-seo-text h2 {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--dark);
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.archive-seo-text p {
  font-size: .95rem;
  line-height: 1.9;
  color: var(--body);
  margin-bottom: 1.4em;
}
.archive-seo-text strong { font-weight: 600; color: var(--dark); }
.archive-seo-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6em;
}
.archive-seo-text li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: .93rem;
  line-height: 1.7;
  color: var(--body);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.archive-seo-text li:first-child { border-top: 1px solid var(--border); }
.archive-seo-text li::before {
  content: '→';
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.archive-seo-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.archive-seo-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.archive-seo-img:hover img { transform: scale(1.03); }

/* ═══════════════════════════════════════════════════════════
   PAGE MINI HERO
═══════════════════════════════════════════════════════════ */
.page-hero-mini {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 100px 0 40px;
  text-align: center;
}
.page-hero-mini h1 { font-family: var(--mono); font-size: 2rem; font-weight: 400; letter-spacing: -.04em; color: var(--dark); margin-bottom: 12px; }

/* Page hero with photo (contact, ML, plan du site) */
.page-hero-photo {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.page-hero-photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.page-hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 100%);
}
.page-hero-photo-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 60px;
}
.page-hero-photo h1 {
  font-family: var(--mono);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.05;
}

/* ═══════════════════════════════════════════════════════════
   PAGE CONTACT
═══════════════════════════════════════════════════════════ */
.contact-body { padding: 64px 0 80px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-intro h2 { font-family: var(--mono); font-size: 1.4rem; font-weight: 400; letter-spacing: -.03em; color: var(--dark); margin-bottom: 16px; }
.contact-intro p { font-size: .95rem; color: var(--body); line-height: 1.65; margin-bottom: 24px; }
.contact-detail { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .9rem; color: var(--body); }
.contact-detail-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 80px; padding-top: 2px; }
.contact-form-wrap { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 40px; border: 1px solid var(--border); }
.contact-form-wrap h3 { font-family: var(--mono); font-size: 1.1rem; font-weight: 400; letter-spacing: -.025em; color: var(--dark); margin-bottom: 24px; }

/* CF7 */
.wpcf7-form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.wpcf7-form br { display: none; }
.wpcf7-form label { font-size: .82rem; font-weight: 500; color: var(--dark); letter-spacing: .01em; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: .9rem;
  color: var(--dark);
  transition: border-color .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--dark); }
.wpcf7-form textarea { resize: vertical; min-height: 130px; }
.wpcf7-submit {
  width: 100%;
  padding: 12px 36px;
  border: 1px solid var(--dark);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s;
}
.wpcf7-submit:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════
   MENTIONS LÉGALES / PLAN DU SITE
═══════════════════════════════════════════════════════════ */
.page-content-body { max-width: 800px; margin: 0 auto; padding: 64px 24px 80px; }
.page-content-body .entry-content h2 { font-size: 1.3rem; }
.page-content-body .entry-content h3 { font-size: 1.05rem; }

/* Plan du site */
.sitemap-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; margin-top: 48px; }
.sitemap-cat h3 { font-family: var(--mono); font-size: 1rem; font-weight: 400; letter-spacing: -.02em; color: var(--dark); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { margin-bottom: 10px; }
.sitemap-list a { font-size: .875rem; color: var(--body); text-decoration: underline; text-underline-offset: 3px; }
.sitemap-list a:hover { color: var(--dark); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 28px;
}
.footer-brand .site-logo { color: #fff; margin-bottom: 16px; }
.footer-brand .site-logo svg path { fill: #fff; }
.footer-brand p { font-size: .85rem; line-height: 1.6; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col-title { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; display: block; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-persona-name { font-family: var(--mono); font-size: .95rem; font-weight: 400; letter-spacing: -.02em; color: rgba(255,255,255,.85); margin-bottom: 4px; }
.footer-persona-title { font-size: .82rem; color: rgba(255,255,255,.45); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .hs-cats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sitemap-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header mobile — pas de backdrop-filter */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav-toggle { display: flex; }
  .nav-close { display: block; }
  .nav-mobile-logo { display: flex; }

  .site-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .site-nav.nav-open { opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 24px; text-align: center; }
  .site-nav a,
  .has-hero .site-header .site-nav a,
  .single .site-header .site-nav a,
  .category .site-header .site-nav a,
  .tag .site-header .site-nav a { color: var(--dark) !important; }
  .nav-mobile-logo { align-items: center; gap: 10px; color: var(--dark); font-family: var(--mono); font-size: 1rem; position: absolute; top: 20px; left: 20px; }
  .nav-toggle { position: fixed; top: 18px; right: 20px; z-index: 301; }
  .has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }

  .hero h1, .hero-h1 { font-size: 2.2rem; }
  .hero-sub { font-size: .95rem; }
  .hero-stats { flex-wrap: wrap; width: 100%; }
  .hero-stat { padding: 12px 20px; }
  .hero-stat-num { font-size: 1.2rem; }
  .hero-scroll-indicator { display: none; }
  .page-hero-photo { min-height: 280px; }
  .page-hero-photo h1 { font-size: 1.7rem; }

  .persona-card { grid-template-columns: 1fr; gap: 24px; }
  .persona-photo, .persona-photo-placeholder { width: 120px; height: 120px; }
  .archive-seo-inner { grid-template-columns: 1fr; gap: 36px; }
  .archive-seo-img { order: -1; border-radius: 14px; }
  .archive-seo-img img { height: 240px; }

  .articles-grid { grid-template-columns: 1fr; }
  .hs-cats-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }

  .related-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { max-width: 100%; }
  .footer-brand .site-logo { justify-content: center; }
  .footer-links { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .post-body { padding: 40px 20px 60px; }
  .author-block { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; }
  .persona-credentials { flex-direction: column; }
}
