/*
 * SOFTEL — Tech Dark Mode design system
 * Anti-empreinte: brand UPPERCASE, mega menu (layout B grid 3 cols),
 * nav icons Phosphor inline SVG, header logo-center-menu-split,
 * hero dual-cta-banner, latest by-category, editorial after-categories.
 */

:root {
  --df5-primary:     #425FFF;
  --df5-primary-rgb: 66, 95, 255;
  --df5-accent:      #00FF88;
  --df5-accent-rgb:  0, 255, 136;
  --df5-text:        #F0F0F0;
  --df5-text-soft:   #A0A0A0;
  --df5-bg:          #0A0A0A;
  --df5-surface:     #1F1F1F;
  --df5-line:        #2A2A2A;
  --df5-radius:      6px;
  --df5-radius-lg:   12px;
  --df5-shadow:      0 4px 24px rgba(0,0,0,.6);
  --df5-shadow-glow: 0 0 20px rgba(var(--df5-accent-rgb), .35);
  --df5-container:   1200px;
  --df5-gap:         1.5rem;
  --df5-font-heading: 'Geist', 'Inter', system-ui, sans-serif;
  --df5-font-body:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--df5-bg);
  color: var(--df5-text);
  font-family: var(--df5-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .df5-main { padding-top: 0 !important; margin-top: 0 !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--df5-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--df5-text);
  margin: 0 0 .8em;
}
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

p { margin: 0 0 1em; color: var(--df5-text); }
a {
  color: var(--df5-accent);
  text-decoration: none;
  transition: color .2s, opacity .2s;
}
a:hover { color: #fff; }

img { max-width: 100%; height: auto; display: block; }

.df5-container, .eea-container {
  max-width: var(--df5-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================================
 * HEADER — logo-center-menu-split + Phosphor SVG icons
 * ========================================================================= */
.df5-header {
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--df5-line);
  position: sticky; top: 0; z-index: 100;
}
.df5-header-inner {
  max-width: var(--df5-container);
  margin: 0 auto;
  padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 2rem;
}
.df5-brand-link {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--df5-text);
  flex-shrink: 0;
}
.df5-brand-logo {
  width: auto;
  /* hauteur libre — le customizer df5_logo_size peut imposer une hauteur */
}
.df5-brand-name {
  font-family: var(--df5-font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .04em;
  text-transform: uppercase; /* casing A */
  color: var(--df5-text);
}
.df5-brand-name::after {
  content: ''; display: inline-block;
  width: 8px; height: 16px;
  background: var(--df5-accent);
  margin-left: 4px; vertical-align: -2px;
  animation: df5-blink 1.1s steps(2) infinite;
}
@keyframes df5-blink { 50% { opacity: 0; } }

/* desktop split menu */
.df5-nav-desktop {
  display: none;
  flex: 1;
  gap: 1.2rem;
  align-items: center;
}
.df5-nav-desktop.df5-nav-left  { justify-content: flex-end; }
.df5-nav-desktop.df5-nav-right { justify-content: flex-start; }
.df5-nav-desktop-list {
  display: flex; gap: 1.2rem;
  list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.df5-nav-desktop-list > li { position: relative; }
.df5-nav-desktop-list > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--df5-text-soft);
  text-decoration: none;
  font-family: var(--df5-font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .4rem .2rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  text-transform: uppercase;
}
.df5-nav-desktop-list > li > a:hover,
.df5-nav-desktop-list > li:focus-within > a {
  color: var(--df5-accent);
  border-bottom-color: var(--df5-accent);
}
.df5-nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* MEGA MENU — Layout B grid 3 cols */
.df5-mega-panel {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(820px, 92vw);
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: var(--df5-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--df5-shadow);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 200;
  pointer-events: none;
}
.df5-nav-desktop-list > li:hover > .df5-mega-panel,
.df5-nav-desktop-list > li:focus-within > .df5-mega-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.df5-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.df5-mega-card {
  display: flex; flex-direction: column;
  background: transparent;
  border-radius: var(--df5-radius);
  overflow: hidden;
  text-decoration: none;
}
.df5-mega-card img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--df5-radius);
}
.df5-mega-card-title {
  font-family: var(--df5-font-heading);
  font-size: .92rem;
  font-weight: 600;
  color: var(--df5-text);
  margin-top: .6rem;
  line-height: 1.3;
}
.df5-mega-card:hover .df5-mega-card-title { color: var(--df5-accent); }
.df5-mega-card-date {
  font-size: .72rem;
  color: var(--df5-text-soft);
  margin-top: .25rem;
}
.df5-mega-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  text-align: center;
  color: var(--df5-text-soft);
}
.df5-mega-empty a {
  display: inline-block;
  background: var(--df5-accent);
  color: var(--df5-bg);
  padding: .6rem 1.4rem;
  border-radius: var(--df5-radius);
  font-weight: 600;
  text-decoration: none;
}

/* burger mobile */
.df5-burger {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  min-width: 44px; min-height: 44px;
  padding: 0;
  background: var(--df5-surface);
  border: 1.5px solid var(--df5-line);
  border-radius: 999px;
  color: var(--df5-text);
  cursor: pointer;
  z-index: 10000;
  flex-shrink: 0;
  position: relative;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.df5-burger:hover,
.df5-burger:focus-visible {
  background: rgba(var(--df5-accent-rgb), .08);
  border-color: var(--df5-accent);
  box-shadow: var(--df5-shadow-glow);
  outline: none;
}
.df5-burger:active { transform: scale(.96); }
.df5-burger[aria-expanded="true"] {
  background: rgba(var(--df5-accent-rgb), .12);
  border-color: var(--df5-accent);
}
.df5-burger-bars {
  display: flex; flex-direction: column; gap: 4px;
  width: 20px; height: 14px;
  align-items: center; justify-content: center;
}
.df5-burger-bars span {
  display: block; height: 2px; width: 100%;
  background: var(--df5-text); border-radius: 2px;
  transition: background .2s ease, transform .25s ease, opacity .2s ease;
}
.df5-burger:hover .df5-burger-bars span,
.df5-burger[aria-expanded="true"] .df5-burger-bars span {
  background: var(--df5-accent);
}
.df5-burger[aria-expanded="true"] .df5-burger-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.df5-burger[aria-expanded="true"] .df5-burger-bars span:nth-child(2) {
  opacity: 0;
}
.df5-burger[aria-expanded="true"] .df5-burger-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* === DESKTOP (>=1024px) === */
@media (min-width: 1024px) {
  .df5-nav-desktop { display: flex; }
  .df5-burger, .df5-burger-wrap { display: none !important; }
}

/* === MOBILE (<=1023px) === */
@media (max-width: 1023px) {
  .df5-header-inner { justify-content: space-between; }
  .df5-nav-desktop  { display: none !important; }
  .df5-burger       { display: inline-flex !important; }
}

/* =========================================================================
 * DRAWER MOBILE
 * ========================================================================= */
.df5-nav-mobile { display: none; }

@media (max-width: 1023px) {
  .df5-nav-mobile.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 380px;
    background: #0a0a0a;
    color: #f5f5f5;
    padding: 5rem 1.5rem 1.5rem;
    z-index: 9999;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, .7);
    border-left: 1px solid var(--df5-line);
  }
  .df5-nav-mobile-list {
    list-style: none;
    margin: 0; padding: 0;
    flex: 0 0 auto;
  }
  .df5-nav-mobile-list li {
    border-bottom: 1px solid var(--df5-line);
  }
  .df5-nav-mobile-list li a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem .5rem;
    color: #f5f5f5;
    text-decoration: none;
    font-family: var(--df5-font-body);
    font-size: .95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .df5-nav-mobile-list li a:hover,
  .df5-nav-mobile-list li a:focus { color: var(--df5-accent); }
  .df5-drawer-close {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--df5-surface);
    border: 1px solid var(--df5-line);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
  }
  .df5-drawer-cta {
    display: block;
    margin: 2rem 0 1rem;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--df5-accent);
    color: var(--df5-bg) !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
}

@media (min-width: 1024px) {
  .df5-drawer-cta { display: none !important; }
}

.df5-drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .65);
  z-index: 9998;
}
.df5-drawer-overlay.is-open { display: block; }

/* =========================================================================
 * HERO — dual-cta-banner
 * ========================================================================= */
.df5-hero {
  position: relative;
  background: var(--df5-bg);
  overflow: hidden;
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.df5-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .55;
}
.df5-hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--df5-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.df5-hero-title {
  font-family: var(--df5-font-heading);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  line-height: 1.05;
}
.df5-hero-title .df5-accent { color: var(--df5-accent); }
.df5-hero-subtitle {
  font-family: var(--df5-font-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--df5-text-soft);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}
.df5-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.df5-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .95rem 1.8rem;
  border-radius: 6px;
  font-family: var(--df5-font-body);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.df5-btn--primary {
  background: var(--df5-accent);
  color: var(--df5-bg);
  border-color: var(--df5-accent);
  box-shadow: var(--df5-shadow-glow);
}
.df5-btn--primary:hover {
  background: transparent;
  color: var(--df5-accent);
}
.df5-btn--secondary {
  background: transparent;
  color: var(--df5-text);
  border-color: var(--df5-line);
}
.df5-btn--secondary:hover {
  border-color: var(--df5-accent);
  color: var(--df5-accent);
}
.df5-btn--cta {
  background: var(--df5-accent);
  color: var(--df5-bg);
  border-color: var(--df5-accent);
}
.df5-btn--cta:hover {
  background: transparent;
  color: var(--df5-accent);
}

/* prompt-like terminal banner above title (Tech Dark Mode signature) */
.df5-hero-eyebrow {
  display: inline-block;
  font-family: var(--df5-font-body);
  font-size: .8rem;
  color: var(--df5-accent);
  background: rgba(var(--df5-accent-rgb), .08);
  border: 1px solid rgba(var(--df5-accent-rgb), .35);
  padding: .35rem .9rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
  letter-spacing: .06em;
}
.df5-hero-eyebrow::before {
  content: '> '; color: var(--df5-accent); font-weight: 700;
}

/* =========================================================================
 * SECTIONS — common
 * ========================================================================= */
section { padding: 3.5rem 0; }
.df5-section-title {
  font-family: var(--df5-font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 .35rem;
  letter-spacing: -.02em;
}
.df5-section-title .df5-accent { color: var(--df5-accent); }
.df5-section-kicker {
  font-family: var(--df5-font-body);
  font-size: .82rem;
  color: var(--df5-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .6rem;
  display: block;
}
.df5-section-intro {
  color: var(--df5-text-soft);
  font-size: 1rem;
  max-width: 720px;
  margin: 0 0 2.5rem;
}

/* =========================================================================
 * RUBRIQUES (categories grid on home)
 * ========================================================================= */
.df5-rubriques {
  background: linear-gradient(180deg, var(--df5-bg) 0%, var(--df5-surface) 100%);
}
.df5-rubriques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.df5-cat-card {
  position: relative;
  display: block;
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: var(--df5-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.df5-cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--df5-accent);
  box-shadow: var(--df5-shadow-glow);
}
.df5-cat-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--df5-primary);
}
.df5-cat-card-body {
  padding: 1.1rem 1.1rem 1.3rem;
}
.df5-cat-card-name {
  font-family: var(--df5-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--df5-text);
  margin: 0 0 .35rem;
}
.df5-cat-card-name::before {
  content: '# '; color: var(--df5-accent);
  font-family: var(--df5-font-body);
}
.df5-cat-card-desc {
  font-size: .85rem;
  color: var(--df5-text-soft);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================================
 * BLOC ÉDITORIAL (after-categories placement)
 * ========================================================================= */
.df5-editorial {
  background: var(--df5-surface);
  border-top: 1px solid var(--df5-line);
  border-bottom: 1px solid var(--df5-line);
  padding: 4.5rem 0;
}
.df5-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.df5-editorial h2 {
  color: var(--df5-text);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
}
.df5-editorial h3 {
  color: var(--df5-accent);
  font-size: 1.15rem;
  margin-top: 1.8rem;
  margin-bottom: .6rem;
  font-family: var(--df5-font-body);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.df5-editorial p {
  color: var(--df5-text);
  line-height: 1.75;
  margin-bottom: 1.1em;
}
.df5-editorial p strong { color: var(--df5-accent); font-weight: 600; }
.df5-editorial a {
  color: var(--df5-accent);
  border-bottom: 1px dotted var(--df5-accent);
}
.df5-editorial-callout {
  background: rgba(var(--df5-accent-rgb), .07);
  border-left: 3px solid var(--df5-accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-family: var(--df5-font-body);
  font-size: .95rem;
}
.df5-editorial-callout strong { color: var(--df5-accent); }

/* =========================================================================
 * LATEST BY CATEGORY (home section per category)
 * ========================================================================= */
.df5-bycat {
  padding: 3rem 0;
}
.df5-bycat-block {
  margin-bottom: 3.5rem;
}
.df5-bycat-block:last-child { margin-bottom: 0; }
.df5-bycat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: .8rem;
  border-bottom: 2px solid var(--df5-line);
}
.df5-bycat-title a {
  font-family: var(--df5-font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--df5-text);
  text-decoration: none;
}
.df5-bycat-title a::before {
  content: '#'; color: var(--df5-accent);
  font-family: var(--df5-font-body);
  margin-right: .25rem;
}
.df5-bycat-title a:hover { color: var(--df5-accent); }
.df5-bycat-more a {
  font-family: var(--df5-font-body);
  font-size: .85rem;
  color: var(--df5-text-soft);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.df5-bycat-more a:hover { color: var(--df5-accent); }
.df5-bycat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}
.df5-article-card {
  display: flex; flex-direction: column;
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: var(--df5-radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.df5-article-card:hover {
  border-color: var(--df5-accent);
  transform: translateY(-3px);
}
.df5-article-card-img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--df5-line);
}
.df5-article-card-body { padding: 1rem; }
.df5-article-card-title {
  font-family: var(--df5-font-heading);
  font-size: .98rem;
  font-weight: 600;
  color: var(--df5-text);
  line-height: 1.35;
  margin: 0 0 .5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.df5-article-card:hover .df5-article-card-title { color: var(--df5-accent); }
.df5-article-card-date {
  font-family: var(--df5-font-body);
  font-size: .72rem;
  color: var(--df5-text-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* =========================================================================
 * TOOL EMBED (home — yes)
 * ========================================================================= */
.df5-tool-section {
  background: var(--df5-bg);
  padding: 4rem 0;
  border-top: 1px solid var(--df5-line);
}
.df5-tool-embed {
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: var(--df5-radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
}

/* =========================================================================
 * CAT PAGE (category.php hero + listing)
 * ========================================================================= */
.df5-cat-hero {
  position: relative;
  height: 320px;
  max-height: 350px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.df5-cat-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.df5-cat-hero-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%);
  max-width: var(--df5-container);
  margin: 0 auto;
}
.df5-cat-hero-inner h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.7);
  margin: 0;
}
.df5-cat-intro {
  max-width: 820px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
  color: var(--df5-text);
  font-size: 1.02rem;
  line-height: 1.75;
}
.df5-cat-intro a { color: var(--df5-accent); }
.df5-cat-intro p { margin-bottom: 1em; }

.df5-cat-tldr {
  background: rgba(var(--df5-accent-rgb), .06);
  border-left: 3px solid var(--df5-accent);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--df5-radius) var(--df5-radius) 0;
}
.df5-cat-tldr strong {
  color: var(--df5-accent);
  font-family: var(--df5-font-body);
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
  display: block;
  margin-bottom: .4rem;
}

.df5-cat-outro {
  max-width: 820px;
  margin: 3rem auto 1rem;
  padding: 0 1.5rem;
  color: var(--df5-text);
}
.df5-cat-outro h2 { color: var(--df5-text); }

/* =========================================================================
 * FOOTER — terminal_columns style
 * ========================================================================= */
.df5-footer {
  background: #050505;
  border-top: 1px solid var(--df5-line);
  color: var(--df5-text-soft);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.df5-footer-grid {
  max-width: var(--df5-container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.df5-footer-col {}
.df5-footer-logo {
  margin-bottom: 1rem;
  height: auto;
  max-width: 140px;
}
.df5-footer-brand-pitch {
  font-size: .88rem;
  color: var(--df5-text-soft);
  line-height: 1.6;
  margin: 0 0 1.2rem;
}
.df5-footer-brand-cta {
  display: inline-block;
  font-family: var(--df5-font-body);
  font-size: .82rem;
  color: var(--df5-accent);
  border: 1px solid var(--df5-accent);
  padding: .55rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: all .2s;
}
.df5-footer-brand-cta:hover {
  background: var(--df5-accent);
  color: var(--df5-bg);
}
.df5-footer-title {
  font-family: var(--df5-font-body);
  font-size: .8rem;
  font-weight: 700;
  color: var(--df5-accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 1rem;
}
.df5-footer-title::before { content: '/ '; color: var(--df5-text-soft); }
.df5-footer-links {
  list-style: none;
  margin: 0; padding: 0;
}
.df5-footer-links li { margin-bottom: .55rem; }
.df5-footer-links a {
  color: var(--df5-text-soft);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.df5-footer-links a:hover { color: var(--df5-accent); }
.df5-footer-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
.df5-footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: 50%;
  color: var(--df5-text-soft);
  transition: all .2s;
}
.df5-footer-socials a:hover {
  background: var(--df5-accent);
  color: var(--df5-bg);
  border-color: var(--df5-accent);
}
.df5-footer-socials svg { width: 16px; height: 16px; }

.df5-footer-bottom {
  max-width: var(--df5-container);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--df5-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: var(--df5-text-soft);
}
.df5-footer-bottom em {
  color: var(--df5-accent); font-style: normal;
  font-family: var(--df5-font-body);
}

@media (max-width: 980px) {
  .df5-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 540px) {
  .df5-footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
 * CONTACT page
 * ========================================================================= */
.df5-contact-form {
  margin-top: 2rem;
  background: var(--df5-surface);
  border: 1px solid var(--df5-line);
  border-radius: var(--df5-radius-lg);
  padding: 1rem;
}

/* =========================================================================
 * ANIMATIONS — CTA floating_quote_button, CTR typing_text_effect, CTO popular_choice_badge
 * ========================================================================= */
@keyframes df5-cta-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 18px rgba(var(--df5-accent-rgb), .35); }
  50%      { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(var(--df5-accent-rgb), .55); }
}
.df5-btn--cta { animation: df5-cta-float 3.2s ease-in-out infinite; }

@keyframes df5-typing {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes df5-typing-caret {
  50% { border-color: transparent; }
}
.df5-typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--df5-accent);
  animation: df5-typing 2.6s steps(40, end) 1 forwards,
             df5-typing-caret .7s steps(2) infinite;
}

@keyframes df5-popular-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.df5-popular-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: var(--df5-accent);
  color: var(--df5-bg);
  font-family: var(--df5-font-body);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .7rem;
  border-radius: 999px;
  animation: df5-popular-pulse 1.8s ease-in-out infinite;
  z-index: 2;
}

/* =========================================================================
 * MOBILE responsive
 * ========================================================================= */
@media (max-width: 768px) {
  section { padding: 2.5rem 0; }
  .df5-hero { min-height: 60vh; padding: 3rem 0; }
  .df5-hero-ctas { flex-direction: column; align-items: center; }
  .df5-hero-ctas .df5-btn { width: 100%; max-width: 320px; justify-content: center; }
  .df5-footer-grid { gap: 1.8rem; }
}

/* =========================================================================
 * UTILITIES
 * ========================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.df5-accent { color: var(--df5-accent); }
.df5-mono   { font-family: var(--df5-font-body); }

/* persona photo on About */
.df5-persona-photo {
  width: 100%; max-width: 320px;
  border-radius: var(--df5-radius-lg);
  border: 1px solid var(--df5-line);
  margin: 0 auto 1.5rem;
  display: block;
}


/* === RP AGNOSTIC ANTI-FOOTPRINT FIXES === */
/* Auto-append par child_theme_builder pour garantir les regles anti-empreinte (cat-hero, burger, footer, etc.) meme quand Claude override le style.css custom. */
body section[class*="cat-hero"], body div[class*="cat-hero"] {
  position: relative !important;
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
  left: 0 !important; right: 0 !important;
  height: 360px !important; min-height: 360px !important; max-height: 360px !important;
  padding: 0 !important; overflow: hidden !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important;
  border: none !important; box-shadow: none !important; outline: none !important;
  box-sizing: border-box !important;
}
/* Aussi force le parent <main> a etre full-width pour eviter cap a 1024 */
body main, body [class*="lda-main"], body [class*="bdf-main"], body [class*="df5-main"], body #content {
  width: 100% !important; max-width: 100% !important;
  margin-left: 0 !important; margin-right: 0 !important;
}
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  max-height: 360px !important;
  object-fit: cover !important; z-index: 0 !important;
  border: none !important;
}
body [class*="cat-hero"]::before, body [class*="cat-hero"]::after {
  content: none !important; display: none !important;
}
/* Overlay : absolute par-dessus l'image, juste pour le gradient sombre */
body [class*="cat-hero-overlay"], body [class*="cat-hero"] > [class*="overlay"] {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  margin: 0 !important; padding: 0 !important;
  max-width: none !important;
  display: block !important;
  z-index: 1 !important;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%) !important;
  pointer-events: none !important;
  border: none !important;
}
/* Container / inner du titre : centré au-dessus de l'overlay (z-index 2) */
body [class*="cat-hero"] > [class*="container"],
body [class*="cat-hero"] > [class*="cat-hero-inner"],
body [class*="cat-hero"] > [class*="hero-inner"]:not([class*="overlay"]),
body [class*="cat-hero"] > div:not([class*="overlay"]):not([class*="-bg"]) {
  position: relative !important; z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important; margin: 0 auto !important;
  padding: 1.5rem 2rem !important;
  border: none !important; background: transparent !important;
}
body [class*="cat-hero"] h1 {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 6vw, 4rem) !important;
  text-align: center !important;
  margin: 0 !important; font-weight: 800 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.85), 0 0 30px rgba(0,0,0,.5) !important;
  border: none !important; display: block !important;
}
body [class*="cat-hero"] [class*="breadcrumb"],
body [class*="cat-hero"] nav[aria-label*="riane"],
body [class*="cat-hero"] nav[aria-label*="readcrumb"] {
  display: none !important;
}


/* PERSONA PHOTO — Force taille raisonnable.
   Sans contrainte, l'image 1024x1024 (Codex output) s'affiche en grand
   sur la page "À propos". On force max 280px avec auto height.
*/
body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
  max-width: 280px !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body [class*="persona-photo"], body img[class*="persona"], body [class*="-persona"] img {
    max-width: 320px !important;
  }
}

/* BURGER MOBILE — Garantit l'affichage en mobile.
   Le CSS Claude met souvent display:none par defaut + media query qui
   n'est pas garantie. Force agnostique : tout selecteur contenant "burger"
   visible en mobile, invisible en desktop. Couvre tous prefixes
   (.df5-, .bdf-, .lda-, etc.) via [class*="burger"].
*/
@media (max-width: 1023px) {
  /* FIX width:auto -> ne plus l'imposer (laisse child theme définir width).
     Sinon écrase le child et le burger devient 0 de large -> invisible. */
  body [class*="burger"], body button[class*="burger"] {
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }
}
@media (min-width: 1024px) {
  body [class*="burger"], body button[class*="burger"] {
    display: none !important;
  }
}

/* BURGER PARENT FIX : si un wrapper du header contient un
   burger, force-le visible en mobile. Claude met parfois le burger DANS un
   wrapper "cta-wrap" qui est display:none en mobile -> burger invisible.
*/
/* FOOTER COLOR HERITAGE — Force le footer ENTIER à hériter
   de la couleur du body. Claude définit parfois color:var(--bg) sur le footer
   (utile si bg sombre, illisible si bg clair). On force color:inherit → texte
   reste lisible peu importe le bg footer.
*/
body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}

/* FOOTER LINKS HERITAGE — Force les liens à hériter du texte.
   Claude définit parfois color: var(--bg) sur les liens footer (utile si bg
   sombre, mais illisible si bg clair). On force color:inherit qui suit le
   texte parent → toujours lisible. underline pour distinguer du texte normal.
*/
body footer ul li a, body footer ol li a,
body [class*="footer"] ul li a:not([class*="btn"]):not([class*="cta"]),
body footer [class*="link"]:not([class*="brand"]):not([class*="btn"]) {
  color: inherit !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: currentColor !important;
  opacity: 0.85 !important;
  transition: opacity .2s ease !important;
}
body footer ul li a:hover, body footer ol li a:hover,
body [class*="footer"] ul li a:hover {
  opacity: 1 !important;
  text-decoration-thickness: 2px !important;
}

/* BURGER STYLE — 3 barres visibles + hover/animation.
   Le bouton burger Claude est souvent un <button> avec 3 <span> dedans qui
   représentent les barres, mais sans CSS la cible est un carré vide.
   Force ici un style propre, agnostique au prefixe.
*/
body [class*="burger"] {
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 6px;
  cursor: pointer !important;
  padding: 8px;
  color: inherit;
  transition: background .2s ease, border-color .2s ease !important;
}
body [class*="burger"]:hover, body [class*="burger"]:focus-visible {
  background: rgba(0,0,0,0.06);
  border-color: var(--df5-accent, currentColor);
}
/* Container des 3 barres (peut s'appeler "bars", "lines", etc.) */
body [class*="burger"] > [class*="bar"],
body [class*="burger"] > [class*="line"],
body [class*="burger"] > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 16px;
  gap: 0;
}
/* Les 3 barres elles-mêmes */
body [class*="burger"] [class*="bar"] > span,
body [class*="burger"] [class*="line"] > span,
body [class*="burger"] > span > span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  margin: 2px 0;
  transition: transform .25s ease, opacity .25s ease !important;
}
/* Etat ouvert : transforme en X */
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(1),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg) !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(2),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(2) {
  opacity: 0 !important;
}
body [class*="burger"][aria-expanded="true"] [class*="bar"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] [class*="line"] > span:nth-child(3),
body [class*="burger"][aria-expanded="true"] > span > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg) !important;
}

@media (max-width: 1023px) {
  body header [class*="cta-wrap"]:has([class*="burger"]),
  body header > div:has([class*="burger"]),
  body [class*="header"] [class*="-wrap"]:has([class*="burger"]),
  body [class*="header-inner"] > div:has([class*="burger"]) {
    display: flex;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Mobile : 1 SEUL CTA visible (dans le burger).
   Sur mobile le CTA original du header est masque ; sur desktop le clone est hidden. */
@media (max-width: 1023px) {
  body [class*="header-cta"] [class*="btn--cta"],
  body [class*="header__cta"] [class*="btn--cta"],
  body [class*="header-cta"] > [class*="cta"],
  body [class*="header__cta"] > a {
    display: none !important;
  }
}


/* ============================================================
   Section 'On parle de nous' (media press)
   Logos grayscale par defaut, couleur au hover.
   Grid responsive 2-6 colonnes, gap auto.
============================================================ */
.df5-media-press {
  padding: 2.5rem 0;
  background: var(--df5-bg-soft, var(--df5-color-surface, #f9fafb));
  margin: 2rem 0;
}
.df5-media-press > .df5-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.df5-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df5-color-text-soft, var(--df5-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.df5-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.df5-media-press-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 160px;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
  opacity: .65;
  filter: grayscale(100%);
}
.df5-media-press-item:hover,
.df5-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.df5-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .df5-media-press { padding: 1.8rem 0; }
  .df5-media-press-grid { gap: 1.4rem; }
  .df5-media-press-item { max-width: 110px; min-height: 36px; }
  .df5-media-press-item img { max-height: 36px; }
}


/* FIX gap header->hero (parent theme override) + media-press compact centre */
body main, body.home main, body.archive main, body.single main,
body main.bdf-main, body main.df5-main, body main[class*="-main"] {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* MEDIA PRESS : layout horizontal compact CENTRE (titre + logos cote a cote au centre) */
.df5-media-press, .bdf-media-press, section[class*="media-press"] {
  padding: 24px 0 !important;
  margin: 0 !important;
  background: #fafafa;
  border-block: 1px solid rgba(0,0,0,0.06);
}
.df5-media-press .df5-container,
.bdf-media-press .bdf-container,
section[class*="media-press"] [class*="container"] {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex-wrap: wrap;
  text-align: center;
}
.df5-media-press-title, .bdf-media-press-title,
section[class*="media-press"] [class*="title"] {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--df5-muted, #666);
  flex: 0 0 auto;
}
.df5-media-press-grid, .bdf-media-press-grid,
section[class*="media-press"] [class*="grid"] {
  display: flex !important;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: center;
}
.df5-media-press-item, .bdf-media-press-item,
section[class*="media-press"] [class*="item"] {
  display: inline-flex !important;
  align-items: center;
  opacity: 0.65;
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.df5-media-press-item:hover, .bdf-media-press-item:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.df5-media-press img, .bdf-media-press img,
section[class*="media-press"] img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.df5-media-press a:hover img, .bdf-media-press a:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .df5-media-press .df5-container, .bdf-media-press .bdf-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}


/* FIX anti-empreinte : variation alignement titre categorie (left/center seedee) */
.df5-cat-hero--align-left .df5-cat-hero-inner,
.bdf-cat-hero--align-left .bdf-cat-hero-inner,
section[class*="cat-hero--align-left"] [class*="cat-hero-inner"] {
  text-align: left !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 24px;
}
.df5-cat-hero--align-center .df5-cat-hero-inner,
.bdf-cat-hero--align-center .bdf-cat-hero-inner,
section[class*="cat-hero--align-center"] [class*="cat-hero-inner"] {
  text-align: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}


/* ============================================================
   SAFETY-NET BURGER MOBILE (auto-injected — fonctionnel only)
   ============================================================
   But : empêcher le burger d'être 0×0 / caché / non-cliquable.
   N'impose PAS le design (couleur/border/shape) — Claude garde
   le contrôle visuel. N'impose QUE les règles fonctionnelles.
   ============================================================ */
@media (max-width: 1023.98px) {
  /* Parent wrap du burger : doit être visible mobile (pas display:none) */
  [class*="-header-cta-wrap"],
  [class*="-header-actions"],
  [class*="-burger-wrap"],
  [class*="-header-right"],
  [class*="-header-actions-mobile"] {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }
  /* Le bouton burger lui-même : visible, taille minimum touchable */
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    flex-shrink: 0 !important;
    z-index: 9999;
    pointer-events: auto !important;
    cursor: pointer !important;
  }
  /* Les bars (container) du burger : visibles, dimensions minimum */
  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }
  /* Les bars individuelles (i / span enfant) */
  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }
  /* CTA desktop caché mobile (sinon il mange la place du burger) */
  [class*="-header-cta-desktop"] {
    display: none !important;
  }
  /* Label texte du burger (Menu / Open menu) : icône seule mobile */
  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {
  /* Desktop : burger caché (la nav horizontale prend le relais) */
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}
/* ============================================================
   FIN SAFETY-NET BURGER MOBILE
   ============================================================ */


/* Mouse effect : cursor_scale_on_link_hover */
@media (hover: hover) { .df5-cursor-dot { position: fixed; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,255,136,.85); box-shadow: 0 0 14px rgba(0,255,136,.55); pointer-events: none; z-index: 99999; will-change: transform; mix-blend-mode: screen; } } @media (hover: none) { .df5-cursor-dot { display: none !important; } }
