/*
Theme Name: Digihapi
Theme URI: https://digihapi.co
Author: Digihapi
Author URI: https://digihapi.co
Description: Custom black and white theme for premium web agency Digihapi.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 8.2
License: Proprietary
Text Domain: digihapi
Tags: custom-theme, black-white, portfolio, blog, e-commerce
*/

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; padding: 0; cursor: pointer; appearance: none; border-radius: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, dl, dd, dt, figure, blockquote { margin: 0; }
input, select, textarea { appearance: none; border-radius: 0; }

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --black: #000;
  --white: #fff;
  --gray-700: #4a4a4a;
  --gray-500: #7a7a7a;
  --gray-300: #b8b8b8;
  --gray-200: #dcdcdc;
  --gray-100: #f0f0f0;

  --bg: var(--white);
  --fg: var(--black);
  --fg-secondary: var(--gray-700);
  --fg-tertiary: var(--gray-500);
  --border: var(--gray-200);
  --fill: var(--gray-100);
  --invert-bg: var(--black);
  --invert-fg: var(--white);
  --grid-line: rgba(0, 0, 0, 0.055);

  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 34rem;
  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--black);
    --fg: var(--white);
    --fg-secondary: #b6b6b6;
    --fg-tertiary: #808080;
    --border: #2a2a2a;
    --fill: #161616;
    --invert-bg: var(--white);
    --invert-fg: var(--black);
    --grid-line: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --bg: var(--black);
  --fg: var(--white);
  --fg-secondary: #b6b6b6;
  --fg-tertiary: #808080;
  --border: #2a2a2a;
  --fill: #161616;
  --invert-bg: var(--white);
  --invert-fg: var(--black);
  --grid-line: rgba(255, 255, 255, 0.08);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   ACCESSIBILITÉ
   ============================================================ */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 200;
  background: var(--fg); color: var(--bg);
  padding: 0.75rem 1.25rem; font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   GRILLE DE FOND
   ============================================================ */
.grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--grid-line) 0, var(--grid-line) 1px,
    transparent 1px, transparent calc(100% / 12)
  );
}
@media (max-width: 640px) {
  .grid-overlay {
    background-image: repeating-linear-gradient(
      to right,
      var(--grid-line) 0, var(--grid-line) 1px,
      transparent 1px, transparent calc(100% / 4)
    );
  }
}

/* ============================================================
   CURSEUR PERSONNALISÉ
   ============================================================ */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px; margin: -7px;
  border-radius: 50%; background: #fff;
  mix-blend-mode: difference;
  pointer-events: none; z-index: 999;
  transition: width 0.18s ease, height 0.18s ease, margin 0.18s ease;
  transform: translate(-100px, -100px);
  display: none;
}
body.has-custom-cursor .cursor-dot { display: block; }
.cursor-dot.is-hover { width: 42px; height: 42px; margin: -21px; }
body.has-custom-cursor a,
body.has-custom-cursor button:not(.theme-toggle) { cursor: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  position: relative; z-index: 1;
  max-width: 1320px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
main { display: block; position: relative; z-index: 1; }
.block {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--border);
  position: relative;
}
.block:first-child { border-top: none; }
.block--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.lede {
  max-width: var(--measure);
  color: var(--fg-secondary);
  font-size: 1.0625rem; line-height: 1.65;
}
.section-head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h1, .section-head h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em; margin-bottom: 0.85rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; height: var(--header-h);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: var(--font-mono);
  font-weight: 600; font-size: 1.05rem;
  letter-spacing: -0.01em; white-space: nowrap;
}
.logo .blink { animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.site-nav {
  display: flex; gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-mono); font-size: 0.9rem;
}
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.site-nav a {
  position: relative; padding-block: 0.3rem;
  color: var(--fg-secondary);
}
.site-nav a:hover, .site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--fg); }
.site-nav a::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--fg);
  transition: right 0.2s ease;
}
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none; width: 34px; height: 34px;
  border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; flex-shrink: 0;
}
.nav-toggle span {
  width: 16px; height: 1px; background: var(--fg); display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--fg); white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary, .wp-block-button__link {
  background: var(--invert-bg); color: var(--invert-fg);
  border-color: var(--invert-bg);
}
.btn-primary:hover, .wp-block-button__link:hover {
  background: var(--bg); color: var(--fg);
}
.btn-outline { background: transparent; color: var(--fg); }
.btn-outline:hover { background: var(--fg); color: var(--bg); }

.text-link {
  position: relative; font-family: var(--font-sans);
  font-weight: 500; padding-bottom: 2px;
  border-bottom: 1px solid var(--fg-tertiary);
}
.text-link:hover { border-color: var(--fg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}
.hero__headline {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 4.4rem);
  line-height: 1.08; letter-spacing: -0.015em;
}
.hero__sub {
  margin-top: 1.75rem; max-width: 34rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--fg-secondary); line-height: 1.6;
}
.hero__actions {
  margin-top: 2.25rem; display: flex;
  flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

/* ============================================================
   STATUS PANEL
   ============================================================ */
.status-panel { border: 1px solid var(--border); padding: 1.5rem; }
.status-panel h2 {
  font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500;
  margin-bottom: 1.1rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.status-panel dl { display: grid; row-gap: 0.9rem; }
.status-panel .row { display: grid; grid-template-columns: 1fr; row-gap: 0.15rem; }
.status-panel dt {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--fg-tertiary);
}
.status-panel dd { font-size: 0.92rem; color: var(--fg); }
.status-panel .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--fg);
  margin-right: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ============================================================
   GRILLE / CARTES
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.grid:has(.card:first-child:last-child) {
  grid-template-columns: 1fr;
  max-width: 520px;
}
.grid:has(.card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--bg); padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: background 0.15s ease;
}
.card:hover { background: var(--fill); }
.card__visual {
  aspect-ratio: 4 / 3; overflow: hidden;
  margin: -1.5rem -1.5rem 1.25rem;
  background: var(--fill);
}
.card__visual img { width: 100%; height: 100%; object-fit: cover; }
.card__meta {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--fg-tertiary); margin-bottom: 0.75rem;
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
}
.card__tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  border: 1px solid var(--border); padding: 0.2rem 0.5rem;
  color: var(--fg-secondary);
}
.card__title {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1.05rem; margin-bottom: 0.5rem;
}
.card__title a:hover { text-decoration: underline; }
.card__desc { font-size: 0.9rem; color: var(--fg-secondary); line-height: 1.55; }
.card__actions { margin-top: auto; padding-top: 1.25rem; }

/* Responsive grille */
@media (max-width: 860px) {
  .grid,
  .grid:has(.card:first-child:last-child),
  .grid:has(.card:nth-child(2):last-child),
  .grid:has(.card:nth-child(3):last-child) {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .grid .card { width: 100% !important; }
}
@media (min-width: 561px) and (max-width: 860px) {
  .grid:has(.card:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-list-compact {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem; max-width: 40rem; margin-bottom: 2.5rem;
}
.service-list-compact li {
  font-family: var(--font-mono); font-size: 0.95rem;
  padding-block: 0.6rem; border-bottom: 1px solid var(--border);
}
@media (max-width: 560px) {
  .service-list-compact { grid-template-columns: 1fr; }
}

.service-rows { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem 3rem; padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.service-row h3 {
  font-family: var(--font-mono); font-weight: 500; font-size: 1.2rem;
}
.service-row p { color: var(--fg-secondary); line-height: 1.6; max-width: 34rem; }
.service-row__deliverables {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.service-row__deliverables li {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--fg-tertiary); border: 1px solid var(--border);
  padding: 0.25rem 0.55rem;
}
@media (max-width: 700px) {
  .service-row { grid-template-columns: 1fr; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.step { border-top: 1px solid var(--fg); padding-top: 1.1rem; }
.step__index {
  display: block; font-family: var(--font-mono);
  font-size: 0.85rem; color: var(--fg-tertiary); margin-bottom: 1.1rem;
}
.step__title {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1.05rem; margin-bottom: 0.6rem;
}
.step__desc { font-size: 0.92rem; color: var(--fg-secondary); line-height: 1.55; }
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   MANIFESTO / VALEURS
   ============================================================ */
.manifesto p {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.55; max-width: 42rem;
}
.manifesto p + p { margin-top: 1.4rem; }

.values-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.value-card { background: var(--bg); padding: 1.75rem; }
.value-card h3 {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 1rem; margin-bottom: 0.75rem;
}
.value-card p { font-size: 0.9rem; color: var(--fg-secondary); line-height: 1.55; }
@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .values-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band h2 {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: 1.75rem; max-width: 30rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  position: relative; z-index: 1;
}
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem; padding-bottom: 2.5rem;
}
.footer-brand .logo { display: inline-block; margin-bottom: 0.9rem; }
.footer-brand p {
  color: var(--fg-secondary); font-size: 0.9rem;
  max-width: 20rem; line-height: 1.55;
}
.footer-brand .coords {
  margin-top: 1rem; font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--fg-tertiary);
}
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--fg-tertiary); margin-bottom: 0.9rem; font-weight: 500;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: var(--fg-secondary); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 0.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--fg-tertiary);
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-bottom ul,
.legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* ============================================================
   ARTICLES / CONTENU WORDPRESS
   ============================================================ */
.entry-content { max-width: 42rem; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-mono); font-weight: 500;
  margin-top: 2.5rem;
}
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content a { border-bottom: 1px solid var(--fg-tertiary); }
.entry-content a:hover { border-color: var(--fg); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.5rem; }
.entry-content blockquote {
  border-left: 2px solid var(--fg);
  padding-left: 1.25rem; font-style: italic;
  color: var(--fg-secondary);
}
.entry-content img { border: 1px solid var(--border); }
.entry-content code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--fill); padding: 0.15em 0.4em;
}
.entry-content pre {
  background: var(--fill); padding: 1.25rem;
  overflow-x: auto; border: 1px solid var(--border);
}
.entry-content pre code { background: none; padding: 0; }

.page-meta {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--fg-tertiary); margin-bottom: 1rem;
}

.pagination {
  margin-top: 3rem; font-family: var(--font-mono);
  font-size: 0.9rem; display: flex; gap: 1rem;
}
.pagination .page-numbers { border-bottom: 1px solid transparent; }
.pagination .page-numbers:hover,
.pagination .current { border-color: var(--fg); }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__headline, .hero__sub, .hero__actions {
  animation: rise 0.7s cubic-bezier(.2,.7,.3,1) both;
}
.hero__sub { animation-delay: 0.08s; }
.hero__actions { animation-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .logo .blink { opacity: 1; animation: none; }
  .cursor-dot { display: none !important; }
}

/* ============================================================
   WORDPRESS ALIGNMENTS + IMAGES
   ============================================================ */
.alignwide { max-width: 1440px; margin-inline: auto; }
.alignfull { max-width: 100vw; margin-inline: calc(-50vw + 50%); }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--fg-tertiary); margin-top: 0.5rem; text-align: left;
}
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ============================================================
   SINGLE PROJET
   ============================================================ */
.project-cover { margin-block: 3rem; }
.project-cover img { display: block; width: 100%; height: auto; }

.project-details {
  margin-block: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  max-width: 720px;
  display: grid;
  gap: 1.5rem;
}
.project-details__row { display: flex; flex-direction: column; gap: 0.65rem; }
.project-details__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-details__value { font-size: 1rem; color: var(--fg); }
.project-details__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-details__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-secondary);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  background: transparent;
}
.project-details__link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg);
  border-bottom: 1px solid var(--fg-tertiary);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.project-details__link:hover { border-color: var(--fg); }

.project-content { margin-block: 4rem; }

.project-results { margin-block: 5rem; max-width: 720px; }
.project-results h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 1.75rem;
}
.project-results ul { display: grid; gap: 1rem; }
.project-results li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.65;
  color: var(--fg-secondary);
  font-size: 1.02rem;
}
.project-results li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--fg);
  font-family: var(--font-mono);
}

/* ============================================================
   PROJECT NAV
   ============================================================ */
.project-nav {
  margin-top: 8rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}
.project-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.project-nav .nav-previous,
.project-nav .nav-next { max-width: 45%; }
.project-nav .nav-previous a,
.project-nav .nav-next a {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}
.project-nav .nav-next { text-align: right; margin-left: auto; }
.project-nav .nav-next a { align-items: flex-end; }
.project-nav__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.project-nav__title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--fg);
  transition: color 0.15s ease;
  line-height: 1.3;
}
.project-nav a:hover .project-nav__title { color: var(--fg-secondary); }

@media (max-width: 640px) {
  .project-details { padding: 1.5rem; }
  .project-nav { margin-top: 5rem; padding-top: 3rem; }
  .project-nav .nav-previous,
  .project-nav .nav-next { max-width: 100%; }
  .project-nav .nav-next { text-align: left; }
  .project-nav .nav-next a { align-items: flex-start; }
}

/* ============================================================
   PRODUCTS — single
   ============================================================ */
.product-tagline {
  font-family: var(--font-sans);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--fg-secondary);
  max-width: 720px;
  margin-block: 1.5rem 3rem;
  line-height: 1.5;
}
.product-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-block: 2rem 4rem;
}
.product-cta__price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg-tertiary);
}
.product-features { margin-block: 5rem; max-width: 720px; }
.product-features h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 2rem;
}
.product-features ul { display: grid; gap: 1rem; }
.product-features li {
  padding-left: 2rem;
  position: relative;
  line-height: 1.65;
  color: var(--fg-secondary);
  font-size: 1.02rem;
}
.product-features li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--fg);
  font-family: var(--font-mono);
}
.product-cta-final {
  margin-block: 6rem;
  padding: 3rem;
  border: 1px solid var(--border);
  text-align: center;
  max-width: 720px;
}
.product-cta-final h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin-bottom: 2rem;
}
@media (max-width: 640px) {
  .product-cta-final { padding: 2rem 1.5rem; }
}

/* ============================================================
   PAGES CUSTOM HTML — Full width fix + fond uniforme
   S'applique à : Contact (.ct-page), HapiAsk, HapiCards, Company (.cp-page)
   ============================================================ */

/* Neutraliser tous les parents */
.page:has(.ct-page) .container.block,
.page:has(.hapiask-demo) .container.block,
.page:has(.hapicards-demo) .container.block,
.page:has(.cp-page) .container.block {
  padding-block: 0 !important;
  padding-inline: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-top: none !important;
}

.page:has(.ct-page) .entry-content,
.page:has(.hapiask-demo) .entry-content,
.page:has(.hapicards-demo) .entry-content,
.page:has(.cp-page) .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: inherit !important;
}

.page .entry-content:has(.ct-page),
.page .entry-content:has(.cp-page),
.page .entry-content:has(.hapiask-demo),
.page .entry-content:has(.hapicards-demo) {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.page:has(.ct-page) .entry-content > * + *,
.page:has(.cp-page) .entry-content > * + * {
  margin-top: 0 !important;
}

/* Boutons custom pages */
.hapiask-demo a,
.hapicards-demo a,
.ct-page a,
.cp-page a {
  text-decoration: none !important;
}

.hapiask-demo .ha-btn,
.hapicards-demo .hc-btn,
.ct-page .ct-btn,
.cp-page .cp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  padding: 0.9rem 1.6rem !important;
  border: 1px solid var(--fg) !important;
  background: transparent !important;
  color: var(--fg) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
  gap: 0.5rem !important;
}
.hapiask-demo .ha-btn--primary,
.hapicards-demo .hc-btn--primary,
.ct-page .ct-btn--primary,
.cp-page .cp-btn--primary {
  background: var(--invert-bg) !important;
  color: var(--invert-fg) !important;
  border-color: var(--invert-bg) !important;
}
.hapiask-demo .ha-btn--primary:hover,
.hapicards-demo .hc-btn--primary:hover,
.ct-page .ct-btn--primary:hover,
.cp-page .cp-btn--primary:hover {
  background: transparent !important;
  color: var(--fg) !important;
  border-color: var(--fg) !important;
}
.hapiask-demo .ha-btn--outline,
.hapicards-demo .hc-btn--outline,
.ct-page .ct-btn--outline,
.cp-page .cp-btn--outline {
  background: transparent !important;
  color: var(--fg) !important;
  border-color: var(--fg) !important;
}
.hapiask-demo .ha-btn--outline:hover,
.hapicards-demo .hc-btn--outline:hover,
.ct-page .ct-btn--outline:hover,
.cp-page .cp-btn--outline:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
  border-color: var(--fg) !important;
}
.hapiask-demo .ha-btn--big,
.hapicards-demo .hc-btn--big,
.ct-page .ct-btn--big,
.cp-page .cp-btn--big {
  padding: 1.05rem 1.9rem !important;
  font-size: 1rem !important;
}

/* Boutons du phone mockup */
.hapiask-demo .ha-phone__cta-btn,
.hapicards-demo .hc-phone__cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 14px 18px !important;
  background: #fff !important;
  color: #000 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.2s ease !important;
  box-shadow: 0 8px 30px rgba(255,255,255,0.15) !important;
}
.hapiask-demo .ha-phone__cta-btn:hover,
.hapicards-demo .hc-phone__cta-btn:hover {
  transform: translateY(-2px) !important;
  background: #fff !important;
  color: #000 !important;
}

/* Titres hero custom pages */
.ct-page .ct-hero__title,
.hapiask-demo .ha-hero__title,
.hapicards-demo .hc-hero__title,
.cp-page .cp-hero__title {
  font-size: clamp(2rem, 4.8vw, 3.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em !important;
  font-weight: 500 !important;
  font-family: var(--font-mono) !important;
}

.ct-page p,
.hapiask-demo p,
.hapicards-demo p,
.cp-page p {
  line-height: 1.65 !important;
}

/* Structure HapiAsk / HapiCards */
.hapiask-demo,
.hapicards-demo,
.ct-page,
.cp-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.hapiask-demo__container,
.hapicards-demo__container,
.cp-container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.hapiask-demo .ha-hero,
.hapicards-demo .hc-hero,
.ct-page .ct-hero,
.cp-page .cp-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem) !important;
}

/* ============================================================
   FOND UNIFORME — Neutraliser les fonds gris sur pages custom
   ============================================================ */

/* Contact — CTA band sur fond normal (comme le reste du site) */
.ct-page .ct-cta-band {
  background: var(--bg) !important;
  border-top: 1px solid var(--border) !important;
}

/* HapiAsk — Compatibility sur fond normal */
.hapiask-demo .ha-compat {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
}

/* HapiCards — Compatibility sur fond normal */
.hapicards-demo .hc-compat {
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
}

/* Toutes les sections de pages custom : fond uniforme */
.ct-page section,
.hapiask-demo section,
.hapicards-demo section,
.cp-page section {
  background-color: var(--bg);
}

/* ============================================================
   SOUS-MENU — dropdown header
   ============================================================ */
.site-nav li.menu-item-has-children { position: relative; }

.site-nav li.menu-item-has-children > a::after {
  content: " ▾" !important;
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.8em !important;
  line-height: 1 !important;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  opacity: 0.85 !important;
  transform: none !important;
  transition: opacity 0.2s ease !important;
  vertical-align: middle !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  white-space: nowrap;
}
.site-nav li.menu-item-has-children:hover > a::after { opacity: 1 !important; }

.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  margin-top: 0.75rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.site-nav li.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.site-nav .sub-menu li { display: block; width: 100%; }
.site-nav .sub-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
  position: static;
  border: none;
}
.site-nav .sub-menu a::after {
  content: "" !important;
  display: none !important;
}
.site-nav .sub-menu a:hover {
  color: var(--fg);
  background: var(--fill);
}

/* ============================================================
   NAV MOBILE + SOUS-MENU ACCORDÉON
   ============================================================ */
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column; gap: 0;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    font-size: 1.4rem;
    transform: translateY(-8px); opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav a {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--border);
    display: block;
  }
  body.nav-open .site-nav {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .site-nav li.menu-item-has-children > a::after {
    content: " ▾" !important;
    display: inline !important;
    float: right !important;
    opacity: 0.6 !important;
    font-size: 0.9em !important;
    transform: none !important;
    margin-top: 0.4rem !important;
  }
  .site-nav li.menu-item-has-children.is-open > a::after {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
  }

  .site-nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-left: 1.25rem !important;
    border: none !important;
    background: transparent !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .site-nav li.menu-item-has-children.is-open .sub-menu {
    max-height: 500px !important;
  }
  .site-nav .sub-menu a {
    font-size: 1rem !important;
    padding: 0.8rem 0 !important;
    border-bottom: 1px solid var(--border) !important;
    opacity: 0.75;
    display: block !important;
    padding-left: 0 !important;
    float: none !important;
  }
  .site-nav .sub-menu a::after { display: none !important; }
  .site-nav .sub-menu a:hover {
    opacity: 1;
    background: transparent !important;
  }

  .site-header {
    display: grid !important;
    grid-template-columns: 1fr auto auto !important;
    gap: 0.75rem !important;
    align-items: center !important;
    justify-content: initial !important;
  }
  .site-header .logo { grid-column: 1 !important; }
  .site-header .header-actions { grid-column: 2 !important; margin-left: 0 !important; }
  .site-header .nav-toggle { grid-column: 3 !important; margin-left: 0 !important; }

  body.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  body.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* ============================================================
   COMPATIBILITY — responsive
   ============================================================ */
@media (max-width: 860px) {
  .hapicards-demo .hc-compat__grid,
  .hapiask-demo .ha-compat__grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .hapicards-demo .hc-compat__visual,
  .hapiask-demo .ha-compat__visual {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    aspect-ratio: auto !important;
    min-height: auto !important;
    padding: 1.5rem 0 !important;
  }
  .hapicards-demo .hc-compat__center,
  .hapiask-demo .ha-compat__center {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    position: static !important;
    transform: none !important;
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 1rem !important;
  }
  .hapicards-demo .hc-compat__pill,
  .hapiask-demo .ha-compat__pill {
    position: static !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    justify-content: center !important;
    white-space: normal !important;
    font-size: 0.7rem !important;
    padding: 0.55rem 0.75rem !important;
  }
  .hapicards-demo .hc-compat__text h2,
  .hapiask-demo .ha-compat__text h2 {
    font-size: 1.5rem !important;
  }
  .hapicards-demo .hc-compat__cta,
  .hapiask-demo .ha-compat__cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }
  .hapicards-demo .hc-compat__cta .hc-btn,
  .hapiask-demo .ha-compat__cta .ha-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hapicards-demo .hc-compat__pill,
  .hapiask-demo .ha-compat__pill {
    font-size: 0.65rem !important;
    padding: 0.5rem 0.6rem !important;
  }
  .hapicards-demo .hc-compat__center,
  .hapiask-demo .ha-compat__center {
    width: 100px !important;
    height: 100px !important;
  }
}

/* ============================================================
   LARGEUR MOBILE HAPIASK / HAPICARDS
   ============================================================ */
@media (max-width: 860px) {
  .hapiask-demo,
  .hapicards-demo {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .hapiask-demo__container,
  .hapicards-demo__container {
    padding-inline: 1.25rem !important;
  }
  .hapiask-demo *,
  .hapicards-demo * {
    max-width: 100%;
    word-wrap: break-word;
  }
  .hapiask-demo .ha-phone,
  .hapicards-demo .hc-phone {
    max-width: 100% !important;
    width: 260px !important;
  }
  .hapiask-demo .ha-hero__grid,
  .hapicards-demo .hc-hero__grid {
    gap: 2rem !important;
  }
  .hapiask-demo .ha-hero__title,
  .hapicards-demo .hc-hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
  }
}

/* ============================================================
   FIX PAGES WORDPRESS NATIVES (Blog, archives, etc.)
   ============================================================ */
.page .container .entry-content {
  max-width: 1100px !important;
  margin-inline: auto !important;
}

/* Articles de blog : largeur de lecture confortable */
.single-post .entry-content,
.single .entry-content {
  max-width: 42rem !important;
}

//* ============================================================
   HOME — Front page
   ============================================================ */

/* ============ 1. HERO ============ */
.home-hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}
.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  display: block;
}
.home-hero__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  max-width: 20ch;
}

/* -------- Typing effect -------- */
.typing-prefix {
  display: block;
  margin-bottom: 0.1em;
}
.typing {
  display: block;
  min-height: 2.4em;
  margin-top: 0.1em;
}
.typing__text {
  border: none;
  padding: 0;
}
.typing__cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1em;
  background: var(--fg);
  margin-left: 0.1em;
  vertical-align: text-bottom;
  animation: blink-cursor 1s steps(2, start) infinite;
}
@keyframes blink-cursor {
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .typing__cursor { animation: none; opacity: 1; }
}

.home-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-secondary);
  max-width: 40rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 860px) {
  .home-hero__grid { grid-template-columns: 1fr; }
}

/* ============ 2. PROOF BAR ============ */
.proof-bar {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.proof-bar__logos {
  margin-bottom: 3rem;
}
.proof-bar__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}
.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--fg-secondary);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.marquee:hover .marquee__track span {
  opacity: 1;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.proof-bar__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  color: var(--fg);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
@media (max-width: 860px) {
  .proof-bar__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 3. SECTIONS GÉNÉRIQUES ============ */
.home-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--border);
}
.home-section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: block;
}
.home-section__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  max-width: 26ch;
}
.home-section__lede {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--fg-secondary);
  max-width: 42rem;
  line-height: 1.65;
  margin-bottom: 3rem;
}

/* ============ 4. PROBLEMS ============ */
.home-problems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.home-problem {
  background: var(--bg);
  padding: 2.5rem 2rem;
}
.home-problem__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-tertiary);
  margin-bottom: 2rem;
}
.home-problem h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.home-problem p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .home-problems { grid-template-columns: 1fr; }
}

/* ============ 5. PILLARS ============ */
.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.home-pillar {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.home-pillar__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}
.home-pillar h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.home-pillar > p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.home-pillar ul {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.home-pillar ul li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--fg-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.home-pillar ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-tertiary);
}
@media (max-width: 860px) {
  .home-pillars { grid-template-columns: 1fr; }
}

/* ============ 6. SERVICES ============ */
.home-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.home-service {
  background: var(--bg);
  padding: 2rem 1.75rem;
  transition: background 0.15s ease;
}
.home-service:hover {
  background: var(--fill);
}
.home-service h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.home-service p {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .home-services { grid-template-columns: 1fr; }
}

/* ============ 7. TESTIMONIALS ============ */
.home-testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.home-testimonial {
  background: var(--bg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.home-testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--fg-secondary);
  margin-bottom: 1.75rem;
  flex: 1;
}
.home-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.home-testimonial__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--fill);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.home-testimonial__name {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
}
.home-testimonial__role {
  font-size: 0.78rem;
  color: var(--fg-tertiary);
}
@media (max-width: 860px) {
  .home-testimonials { grid-template-columns: 1fr; }
}

/* ============ 8. FAQ ============ */
.home-faq {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.home-faq__item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.5rem;
}
.home-faq__item summary {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-block: 0.5rem;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--fg-tertiary);
  flex-shrink: 0;
}
.home-faq__item[open] summary::after { content: "−"; color: var(--fg); }
.home-faq__item p {
  margin-top: 1.25rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 60ch;
  font-size: 0.98rem;
}

/* ============ 9. CTA FINAL ============ */
.home-cta {
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}
.home-cta__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
  max-width: 26ch;
  margin-inline: auto;
}
.home-cta__sub {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-inline: auto;
}
.home-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============ FEATURE CARDS (products) ============ */
.feature-card {
  padding: 2rem 1.75rem;
}
.feature-card__logo {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ============================================================
   PORTFOLIO — respiration entre cartes
   ============================================================ */

/* On abandonne le truc du "gap:1px avec border en fond" */
.grid {
  gap: 1.5rem !important;
  background: transparent !important;
  border: none !important;
}

.grid .card {
  border: 1px solid var(--border) !important;
  padding: 1.75rem !important;
}

/* On corrige le visuel des cartes */
.card__visual {
  margin: -1.75rem -1.75rem 1.5rem !important;
  border-bottom: 1px solid var(--border);
}

/* Mobile : plus d'espace vertical entre les cartes empilées */
@media (max-width: 860px) {
  .grid {
    gap: 1.25rem !important;
  }
}

/* ============================================================
   HOME HERO — respiration sous le header
   ============================================================ */

.home-hero {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(3.5rem, 6vw, 5rem) !important;
}

/* Sur mobile aussi */
@media (max-width: 860px) {
  .home-hero {
    padding-block: 3rem 3rem !important;
  }
}

/* Le container parent ne doit pas rogner l'espace */
main > .container:first-child,
main > section:first-child {
  padding-top: 0;
}

/* Sécurité : si .block est aussi appliqué */
main > section.home-hero,
main > .container .home-hero {
  margin-top: 0;
}

/* ============================================================
   BLOG — Hero + filtres
   ============================================================ */
.blog-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.blog-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  display: block;
}
.blog-hero__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}
.blog-hero__title em {
  font-style: normal;
  border-bottom: 3px solid var(--fg);
  padding-bottom: 0.05em;
}
.blog-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-secondary);
  max-width: 42rem;
  line-height: 1.65;
}

/* Filtres */
.blog-filters {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.blog-filters__row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.blog-filter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.blog-filter:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.blog-filter.is-active {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}

/* Liste */
.blog-list {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Carte article */
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.15s ease;
}
.blog-card:hover { background: var(--fill); }
.blog-card__visual {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--fill);
  border-bottom: 1px solid var(--border);
  display: block;
}
.blog-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__visual img {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.blog-card__cat {
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  color: var(--fg-secondary);
}
.blog-card__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}
.blog-card__title a:hover {
  text-decoration: underline;
}
.blog-card__desc {
  font-size: 0.92rem;
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}
.blog-card__cta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg);
  border-bottom: 1px solid var(--fg-tertiary);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, gap 0.2s ease;
  display: inline-flex;
  gap: 0.4rem;
}
.blog-card__cta:hover {
  border-color: var(--fg);
  gap: 0.7rem;
}

/* Pagination */
.blog-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.blog-pagination .page-numbers {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  transition: all 0.15s ease;
}
.blog-pagination .page-numbers:hover {
  color: var(--fg);
  border-color: var(--fg);
}
.blog-pagination .page-numbers.current {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}
.blog-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding-block: 5rem;
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.single-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.single-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-tertiary);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.single-hero__cat {
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  color: var(--fg-secondary);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.single-hero__cat:hover {
  border-color: var(--fg);
  color: var(--fg);
}
.single-hero__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 22ch;
}
.single-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-secondary);
  max-width: 42rem;
  line-height: 1.65;
}

.single-cover {
  margin-block: 3rem;
}
.single-cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.single-content {
  padding-block: clamp(2rem, 4vw, 3rem);
}
.single-content .entry-content {
  max-width: 42rem;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
}
.single-content .entry-content > * + * {
  margin-top: 1.5rem;
}
.single-content .entry-content h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.6rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.single-content .entry-content h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Share */
.single-share {
  max-width: 42rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.single-share__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.single-share__links {
  display: flex;
  gap: 1rem;
}
.single-share__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg);
  border-bottom: 1px solid var(--fg-tertiary);
  padding-bottom: 2px;
}
.single-share__links a:hover {
  border-color: var(--fg);
}

/* Author */
.single-author {
  max-width: 42rem;
  margin: 3rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.single-author__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.single-author__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.single-author__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.single-author__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1rem;
}

/* Navigation */
.single-nav {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.single-nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.single-nav .nav-previous,
.single-nav .nav-next {
  max-width: 45%;
}
.single-nav .nav-previous a,
.single-nav .nav-next a {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
}
.single-nav .nav-next {
  text-align: right;
  margin-left: auto;
}
.single-nav .nav-next a { align-items: flex-end; }
.single-nav__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.single-nav__title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--fg);
  line-height: 1.3;
  transition: color 0.15s ease;
}
.single-nav a:hover .single-nav__title { color: var(--fg-secondary); }
@media (max-width: 640px) {
  .single-nav .nav-previous,
  .single-nav .nav-next { max-width: 100%; }
  .single-nav .nav-next { text-align: left; }
  .single-nav .nav-next a { align-items: flex-start; }
}

/* Related */
.single-related {
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
}
.single-related .section-head h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2rem;
}

/* ============================================================
   FIX BLOG — hero + largeur article
   ============================================================ */

/* 1. Hero blog : plus d'air sous le header */

/* ============================================================
   FIX — Single Produit (HapiCards / HapiAsk) full width
   ============================================================ */

/* 1. Neutraliser les contraintes des parents */
.single-produit .container.block,
.single-produit main > .container,
.single-produit main > .block {
  padding-block: 0 !important;
  padding-inline: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border-top: none !important;
}

.single-produit .entry-content,
.single-produit .entry-content > * {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: inherit !important;
}

/* 2. Neutraliser les liens hérités de .entry-content */
.single-produit a {
  text-decoration: none !important;
  border: none !important;
}

/* 3. Le container du produit prend toute la largeur */
.single-produit .container {
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding-inline: clamp(1.25rem, 4vw, 3rem) !important;
}

/* 4. Titres + paragraphes sans contrainte */
.single-produit .entry-content h1,
.single-produit .entry-content h2,
.single-produit .entry-content h3 {
  max-width: none !important;
  margin: 0 0 1.5rem 0 !important;
}

.single-produit .entry-content p {
  max-width: 42rem !important;
  line-height: 1.65 !important;
  margin: 0 0 1.5rem 0 !important;
}

/* 5. Titre h1 en pleine largeur */
.single-produit .hero__headline,
.single-produit h1.hero__headline {
  font-size: clamp(2rem, 4.8vw, 3.6rem) !important;
  max-width: 22ch !important;
  margin-bottom: 1.75rem !important;
}

/* 6. Réactiver la grille du hero produit (2 colonnes) */
.single-produit .container > .hero,
.single-produit .container > .product-hero {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;
  max-width: 1320px !important;
}

@media (max-width: 860px) {
  .single-produit .container > .hero,
  .single-produit .container > .product-hero {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}
.blog-hero {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 4vw, 3.5rem) !important;
}

/* Sur mobile aussi */
@media (max-width: 860px) {
  .blog-hero {
    padding-block: 2.5rem 2rem !important;
  }
}

/* 2. Article single : contenu plus large */
.single-content .entry-content {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* Titre hero single : plus large aussi */
.single-hero .container {
  max-width: 900px !important;
}

/* Cover de l'article : largeur cohérente */
.single-cover .container {
  max-width: 900px !important;
  margin-inline: auto;
}

/* Share + Author : même largeur */
.single-share,
.single-author {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* 3. Cartes blog : s'assurer que le texte prend toute la largeur de la carte */
.blog-card__body {
  width: 100%;
}

.blog-card__title,
.blog-card__desc {
  width: 100%;
}

/* Sur PC : 3 colonnes OK, mais cartes plus aérées */
@media (min-width: 861px) {
  .blog-grid {
    gap: 2rem !important;
  }
}

/* 4. Sécurité pour page Blog (home.php) : même hero que home */
.blog-hero .container > * {
  max-width: 100%;
}

/* ============================================================
   SINGLE PROJET — aligné sur le style article
   ============================================================ */

/* Hero plus aéré sous le header */
.single-projet-hero,
.single .single-hero {
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 4vw, 3.5rem) !important;
}
@media (max-width: 860px) {
  .single-projet-hero,
  .single .single-hero {
    padding-block: 2.5rem 2rem !important;
  }
}

/* Contenu du projet : même largeur que l'article blog */
.project-content,
.single-projet .entry-content,
.single-projet-content {
  max-width: 52rem !important;
  margin-inline: auto !important;
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
}
.project-content > * + *,
.single-projet .entry-content > * + * {
  margin-top: 1.5rem !important;
}

/* Titres du contenu projet = même style que blog */
.project-content h2,
.single-projet .entry-content h2 {
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  font-size: 1.6rem !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
}
.project-content h3,
.single-projet .entry-content h3 {
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  font-size: 1.25rem !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
}
.project-content p,
.single-projet .entry-content p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: var(--fg-secondary) !important;
}
.project-content ul,
.single-projet .entry-content ul {
  padding-left: 1.5rem !important;
  list-style: disc !important;
}
.project-content li,
.single-projet .entry-content li {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: var(--fg-secondary) !important;
  margin-bottom: 0.5rem !important;
}

/* Panneau infos projet : même largeur */
.project-details,
.single-projet .project-details {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* Résultats : même largeur */
.project-results,
.single-projet .project-results {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* Navigation prev/next : même largeur */
.project-nav,
.single-projet .project-nav {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* Cover image : même largeur */
.project-cover,
.single-projet .project-cover {
  max-width: 52rem !important;
  margin-inline: auto !important;
}

/* Container général */
.single-projet .container,
.single-projet .block {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ============================================================
   HOME PRODUCTS — mini phone mockup
   ============================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.15s ease;
}

.product-card:hover {
  background: var(--fill);
}

/* ⚡ Le phone est TOUT PETIT : 80px de large */
.product-card__phone {
  position: relative;
  width: 80px !important;
  height: 160px !important;
  max-width: 80px !important;
  border-radius: 12px;
  background: #0a0a0a;
  border: 3px solid #1a1a1a;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.product-card__notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 8px;
  background: #0a0a0a;
  border-radius: 0 0 5px 5px;
  z-index: 2;
}

.product-card__phone video,
.product-card__phone img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  display: block;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.product-card__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
}

.product-card__title a:hover {
  text-decoration: underline;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0 0 0.4rem 0;
}

.product-card .btn {
  align-self: flex-start;
  padding: 0.6rem 1rem !important;
  font-size: 0.82rem !important;
}

/* Mobile : phone au-dessus, texte en dessous */
@media (max-width: 500px) {
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 1.5rem;
  }
  .product-card .btn {
    align-self: center;
  }
}

/* ============================================================
   FIX — Espace header/hero pour Portfolio + Case Studies
   ============================================================ */

/* 1. Portfolio archive (archive-projet.php) */
.post-type-archive-projet .container.block,
.post-type-archive-projet main > .container:first-child,
.post-type-archive-projet main > section:first-child {
  padding-top: clamp(3rem, 7vw, 5rem) !important;
}

/* 2. Case Studies archive (archive-etude_de_cas.php) */
.post-type-archive-etude_de_cas .container.block,
.post-type-archive-etude_de_cas main > .container:first-child,
.post-type-archive-etude_de_cas main > section:first-child {
  padding-top: clamp(3rem, 7vw, 5rem) !important;
}

/* 3. Single projet (fiche projet) */
.single-projet .container.block,
.single-projet main > .container:first-child {
  padding-top: clamp(3rem, 7vw, 5rem) !important;
}

/* 4. Single étude de cas */
.single-etude_de_cas .container.block,
.single-etude_de_cas main > .container:first-child {
  padding-top: clamp(3rem, 7vw, 5rem) !important;
}

/* 5. Sécurité — toute archive CPT portfolio/case studies */
.archive.post-type-archive main > .container:first-child {
  padding-top: clamp(3rem, 7vw, 5rem) !important;
}

/* Mobile : un peu moins */
@media (max-width: 860px) {
  .post-type-archive-projet .container.block,
  .post-type-archive-etude_de_cas .container.block,
  .single-projet .container.block,
  .single-etude_de_cas .container.block,
  .archive.post-type-archive main > .container:first-child {
    padding-top: 2.5rem !important;
  }
}