/*
 * Cap Emploi — Brutaliste Bauhaus Géométrique
 * Palette : navy #283276 (institutionnelle) + rouge Bauhaus #D62828
 *           cream #F1E5D1 (bg) + noir #000 (lignes) + surface #FFF
 * Polices : Russo One (titres) + Lexend (corps)
 * Header : sticky-minimal / Hero : split-50-50 / Category : single-bottom
 */

/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --de5-primary: #283276;
  --de5-primary-strong: #1B2256;
  --de5-accent: #D62828;
  --de5-accent-strong: #A31E1E;
  --de5-text: #171717;
  --de5-text-soft: #5B5D65;
  --de5-bg: #F1E5D1;
  --de5-surface: #FFFFFF;
  --de5-line: #000000;
  --de5-line-soft: #2B2B2B;

  --de5-font-headings: "Russo One", "Impact", sans-serif;
  --de5-font-body: "Lexend", "Helvetica Neue", Arial, sans-serif;

  --de5-container: 1220px;
  --de5-radius: 0;
  --de5-shadow-hard: 6px 6px 0 var(--de5-line);
  --de5-shadow-hard-lg: 10px 10px 0 var(--de5-line);
  --de5-shadow-hard-accent: 8px 8px 0 var(--de5-accent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--de5-font-body);
  color: var(--de5-text);
  background: var(--de5-bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--de5-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--de5-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--de5-font-headings);
  color: var(--de5-text);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1rem; }

.de5-container { max-width: var(--de5-container); margin: 0 auto; padding: 0 1.4rem; }
main, .de5-main { padding-top: 0 !important; margin-top: 0 !important; background: var(--de5-bg); }

/* ==========================================================================
   2. BOUTONS
   ========================================================================== */
.de5-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--de5-primary);
  color: #fff;
  border: 3px solid var(--de5-line);
  font-family: var(--de5-font-headings);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-decoration: none;
  box-shadow: var(--de5-shadow-hard);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.de5-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--de5-line);
  background: var(--de5-primary-strong);
  color: #fff;
}
.de5-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--de5-line);
}
.de5-btn--cta {
  background: var(--de5-accent);
  color: #fff;
}
.de5-btn--cta:hover {
  background: var(--de5-primary);
}
.de5-btn--ghost {
  background: var(--de5-surface);
  color: var(--de5-text);
}

/* ==========================================================================
   3. HEADER — sticky-minimal (bauhaus geometric)
   ========================================================================== */
.de5-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--de5-surface);
  border-bottom: 4px solid var(--de5-line);
  box-shadow: 0 4px 0 var(--de5-accent);
}
.de5-header-inner {
  max-width: var(--de5-container);
  margin: 0 auto;
  padding: 0.75rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 68px;
}
.de5-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--de5-text);
  flex-shrink: 0;
}
.de5-brand-logo {
  width: auto;
  display: block;
}
.de5-brand-name {
  font-family: var(--de5-font-headings);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--de5-primary);
  line-height: 1;
}
.de5-nav-desktop { display: none; flex: 1; justify-content: center; }
.de5-nav-desktop-list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.de5-nav-desktop-list a {
  color: var(--de5-text);
  text-decoration: none;
  font-family: var(--de5-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.de5-nav-desktop-list a:hover {
  border-bottom-color: var(--de5-accent);
  color: var(--de5-accent);
}

/* Burger */
.de5-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  cursor: pointer;
  margin-left: auto;
  align-items: center;
  justify-content: center;
}
.de5-burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--de5-line);
  transition: transform 0.2s;
}
.de5-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.de5-burger.is-open span:nth-child(2) { opacity: 0; }
.de5-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Drawer mobile */
.de5-nav-mobile { display: none; }
.de5-nav-mobile.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 88%;
  max-width: 380px;
  background: var(--de5-surface);
  border-left: 4px solid var(--de5-line);
  padding: 5rem 1.5rem 2rem;
  z-index: 9999;
  overflow-y: auto;
  box-shadow: -10px 0 0 var(--de5-accent);
}
.de5-nav-mobile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
}
.de5-nav-mobile-list li {
  border-bottom: 2px solid var(--de5-line);
}
.de5-nav-mobile-list a {
  display: block;
  padding: 1rem 0.5rem;
  color: var(--de5-text);
  text-decoration: none;
  font-family: var(--de5-font-headings);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}
.de5-nav-mobile-list a:hover {
  background: var(--de5-accent);
  color: #fff;
  padding-left: 1rem;
}
.de5-drawer-cta {
  display: block !important;
  margin: 2rem 0 1rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  background: var(--de5-accent) !important;
  color: #fff !important;
  border: 3px solid var(--de5-line) !important;
  font-family: var(--de5-font-headings) !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  letter-spacing: 0.05em !important;
  box-shadow: 5px 5px 0 var(--de5-line);
}
.de5-drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--de5-line);
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.4rem;
  cursor: pointer;
  font-family: var(--de5-font-headings);
}
.de5-nav-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}
.de5-nav-mobile-overlay.is-open { display: block; }

/* Desktop */
@media (min-width: 1024px) {
  .de5-nav-desktop { display: flex; }
  .de5-burger { display: none !important; }
  .de5-nav-mobile-overlay { display: none !important; }
  .de5-drawer-cta { display: none !important; }
}

/* ==========================================================================
   4. HERO — split-50-50
   ========================================================================== */
.de5-hero {
  background: var(--de5-primary);
  color: #fff;
  border-bottom: 4px solid var(--de5-line);
  position: relative;
  overflow: hidden;
}
.de5-hero--split-50-50 .de5-hero-inner {
  max-width: var(--de5-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 480px;
}
.de5-hero-text {
  padding: 3rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}
.de5-hero-text::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  background: var(--de5-accent);
  border: 3px solid var(--de5-line);
  margin-bottom: 0.5rem;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--de5-line);
}
.de5-hero-title {
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  margin: 0;
  line-height: 1.02;
}
.de5-hero-title em {
  color: var(--de5-accent);
  background: #fff;
  padding: 0 0.4rem;
  font-style: normal;
  display: inline-block;
  border: 3px solid var(--de5-line);
  box-shadow: 4px 4px 0 var(--de5-line);
}
.de5-hero-subtitle {
  color: #fff;
  font-family: var(--de5-font-body);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 480px;
  margin: 0;
  opacity: 0.95;
}
.de5-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.de5-hero-cta .de5-btn--cta { background: var(--de5-accent); }
.de5-hero-cta .de5-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.de5-hero-cta .de5-btn--ghost:hover { background: #fff; color: var(--de5-primary); }
.de5-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-left: 4px solid var(--de5-line);
}
.de5-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 320px;
}
.de5-hero-image::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: var(--de5-accent);
  border: 3px solid var(--de5-line);
  transform: rotate(45deg);
  z-index: 1;
}
@media (min-width: 900px) {
  .de5-hero--split-50-50 .de5-hero-inner {
    grid-template-columns: 1fr 1fr;
    min-height: 560px;
  }
  .de5-hero-text { padding: 4rem 3rem; }
}

/* ==========================================================================
   5. ÉDITORIAL SECTION (bloc SEO 400-700 mots)
   ========================================================================== */
.de5-editorial {
  padding: 4rem 0;
  background: var(--de5-bg);
  border-bottom: 3px solid var(--de5-line);
}
.de5-editorial-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.4rem;
}
.de5-editorial h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--de5-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.7rem;
}
.de5-editorial h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 6px;
  background: var(--de5-accent);
  margin-top: 0.6rem;
}
.de5-editorial h3 {
  color: var(--de5-primary);
  font-size: 1.35rem;
  margin: 2rem 0 0.8rem;
}
.de5-editorial p {
  font-size: 1.02rem;
  color: var(--de5-text);
  line-height: 1.75;
  max-width: 780px;
}
.de5-editorial .de5-editorial-callout {
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--de5-shadow-hard-accent);
  position: relative;
}
.de5-editorial .de5-editorial-callout::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background: var(--de5-primary);
  border: 3px solid var(--de5-line);
}
.de5-editorial .de5-editorial-callout h3 { margin-top: 0; }
.de5-editorial a { color: var(--de5-accent); font-weight: 600; }

/* ==========================================================================
   6. CATÉGORIES GRID (accueil)
   ========================================================================== */
.de5-categories {
  padding: 4rem 0;
  background: var(--de5-surface);
  border-bottom: 3px solid var(--de5-line);
}
.de5-categories .de5-container { max-width: var(--de5-container); }
.de5-section-title {
  font-family: var(--de5-font-headings);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--de5-primary);
  margin: 0 0 2rem;
  padding-bottom: 0.7rem;
  border-bottom: 4px solid var(--de5-line);
  position: relative;
}
.de5-section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 120px;
  height: 4px;
  background: var(--de5-accent);
}
.de5-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.de5-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  text-decoration: none;
  color: var(--de5-text);
  box-shadow: var(--de5-shadow-hard);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  min-height: 260px;
}
.de5-cat-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--de5-line);
}
.de5-cat-card-img {
  display: block;
  width: 100%;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: var(--de5-primary);
  border-bottom: 3px solid var(--de5-line);
}
.de5-cat-card-body {
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.de5-cat-card h3 {
  font-family: var(--de5-font-headings);
  font-size: 1.25rem;
  margin: 0;
  color: var(--de5-primary);
  text-transform: uppercase;
}
.de5-cat-card p {
  color: var(--de5-text-soft);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   7. DERNIERS ARTICLES (accueil)
   ========================================================================== */
.de5-latest {
  padding: 4rem 0;
  background: var(--de5-bg);
  border-bottom: 3px solid var(--de5-line);
}
.de5-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
@media (min-width: 1024px) {
  .de5-latest-grid { grid-template-columns: repeat(3, 1fr); }
}
.de5-article-card {
  display: flex;
  flex-direction: column;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  box-shadow: var(--de5-shadow-hard);
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.de5-article-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--de5-line);
}
.de5-article-card .de5-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 3px solid var(--de5-line);
  background: var(--de5-primary);
}
.de5-article-card .de5-thumb img { width: 100%; height: 100%; object-fit: cover; }
.de5-article-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.de5-article-card .de5-meta {
  font-family: var(--de5-font-headings);
  font-size: 0.75rem;
  color: var(--de5-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.de5-article-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
}
.de5-article-card h3 a { color: var(--de5-text); text-decoration: none; }
.de5-article-card h3 a:hover { color: var(--de5-accent); }
.de5-article-card p {
  color: var(--de5-text-soft);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.5;
}
.de5-article-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border: 3px dashed var(--de5-line);
  color: var(--de5-text-soft);
  background: var(--de5-surface);
}

/* ==========================================================================
   8. CATEGORY PAGE — single-bottom
   ========================================================================== */
.de5-cat-hero {
  position: relative;
  overflow: hidden;
  height: 320px;
  max-height: 350px;
  border-bottom: 4px solid var(--de5-line);
  background: var(--de5-primary);
}
.de5-cat-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.55;
}
.de5-cat-hero .de5-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(40,50,118,0.75) 100%);
}
.de5-cat-hero h1 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}
.de5-cat-body {
  padding: 3rem 0;
  background: var(--de5-bg);
}
.de5-cat-intro {
  max-width: 820px;
  margin: 0 auto 3rem;
  padding: 0 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--de5-text);
}
.de5-cat-intro p:first-child::first-letter {
  font-family: var(--de5-font-headings);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  margin: 0.3rem 0.5rem 0 0;
  color: var(--de5-accent);
  background: var(--de5-primary);
  color: #fff;
  padding: 0.2rem 0.4rem;
}
.de5-cat-articles {
  padding: 0 1.4rem;
  max-width: var(--de5-container);
  margin: 0 auto;
}
.de5-cat-outro {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 2rem 1.8rem;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  box-shadow: var(--de5-shadow-hard-accent);
  font-size: 1rem;
  line-height: 1.7;
}
.de5-cat-outro h2 {
  color: var(--de5-primary);
  font-size: 1.6rem;
  margin-top: 0;
}

/* ==========================================================================
   9. TOOL PAGES
   ========================================================================== */
.de5-tool-page {
  padding: 3rem 0;
  background: var(--de5-bg);
}
.de5-tool-page .de5-container { max-width: 900px; }
.de5-tool-page h1 {
  color: var(--de5-primary);
  margin-bottom: 1.2rem;
}
.de5-tool-intro {
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow: var(--de5-shadow-hard);
  font-size: 1rem;
  line-height: 1.7;
}
.de5-tool-faq {
  margin-top: 3rem;
  padding: 2rem 1.6rem;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  box-shadow: var(--de5-shadow-hard);
}
.de5-tool-faq h2 {
  color: var(--de5-primary);
  font-size: 1.6rem;
  margin-top: 0;
}
.de5-tool-faq details {
  border-bottom: 2px solid var(--de5-line);
  padding: 0.9rem 0;
}
.de5-tool-faq details:last-child { border-bottom: 0; }
.de5-tool-faq summary {
  cursor: pointer;
  font-family: var(--de5-font-headings);
  font-size: 1rem;
  color: var(--de5-primary);
  padding: 0.4rem 0;
}
.de5-tool-faq details[open] summary { color: var(--de5-accent); }
.de5-tool-faq details p { padding: 0.5rem 0 0; color: var(--de5-text); }

/* ==========================================================================
   10. FOOTER — geometric blocks
   ========================================================================== */
.de5-footer {
  background: var(--de5-primary);
  color: #f5f5f8;
  padding: 3.5rem 0 0;
  border-top: 6px solid var(--de5-line);
  position: relative;
}
.de5-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--de5-accent);
}
.de5-footer-inner {
  max-width: var(--de5-container);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 700px) {
  .de5-footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .de5-footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.de5-footer-col h3 {
  font-family: var(--de5-font-headings);
  font-size: 0.95rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--de5-accent);
  display: inline-block;
}
.de5-footer-logo {
  display: block;
  margin-bottom: 1rem;
  height: auto;
  max-width: 130px;
  background: #fff;
  padding: 0.4rem;
  border: 2px solid var(--de5-line);
}
.de5-footer-brand-pitch {
  color: #e6e7ec;
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.de5-footer-brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  background: var(--de5-accent);
  padding: 0.7rem 1.1rem;
  border: 2px solid #fff;
  font-family: var(--de5-font-headings);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--de5-line);
  transition: transform 0.15s;
}
.de5-footer-brand-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--de5-line);
  color: #fff;
}
.de5-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.de5-footer-links li { margin-bottom: 0.55rem; }
.de5-footer-links a {
  color: #f5f5f8;
  text-decoration: underline;
  font-size: 0.9rem;
}
.de5-footer-links a:hover { color: #fff; text-decoration: none; }

.de5-footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 1.4rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  color: #cdcfd8;
  font-size: 0.85rem;
  background: #1B2256;
}
.de5-footer-bottom .de5-copyright { margin: 0; }
.de5-footer-social {
  display: flex;
  gap: 0.6rem;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}
.de5-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--de5-primary);
  border: 2px solid var(--de5-line);
  text-decoration: none;
  font-size: 0.75rem;
  font-family: var(--de5-font-headings);
  text-transform: uppercase;
  transition: background 0.15s;
}
.de5-footer-social a:hover { background: var(--de5-accent); color: #fff; }

/* ==========================================================================
   11. PAGES INSTITUTIONNELLES (À propos, Contact)
   ========================================================================== */
.de5-page {
  padding: 3rem 0;
  background: var(--de5-bg);
}
.de5-page .de5-container { max-width: 860px; }
.de5-page h1 {
  color: var(--de5-primary);
  padding-bottom: 0.7rem;
  border-bottom: 4px solid var(--de5-line);
  position: relative;
  margin-bottom: 2rem;
}
.de5-page h1::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100px;
  height: 4px;
  background: var(--de5-accent);
}
.de5-page-content {
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  padding: 2rem 2rem;
  box-shadow: var(--de5-shadow-hard);
  line-height: 1.75;
  font-size: 1rem;
}
.de5-page-content h2 {
  color: var(--de5-primary);
  font-size: 1.5rem;
  margin: 2rem 0 0.8rem;
}
.de5-persona-photo {
  float: right;
  width: 200px;
  max-width: 45%;
  margin: 0 0 1rem 1.5rem;
  border: 3px solid var(--de5-line);
  box-shadow: var(--de5-shadow-hard-accent);
}
@media (max-width: 600px) {
  .de5-persona-photo { float: none; width: 100%; max-width: none; margin: 0 auto 1.5rem; }
}
.de5-contact-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--de5-bg);
  border: 3px solid var(--de5-line);
  box-shadow: var(--de5-shadow-hard);
}
.de5-contact-form iframe { display: block; width: 100%; }

/* ==========================================================================
   12. ANIMATIONS
   ========================================================================== */
@keyframes de5-content-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.de5-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: none;
}
.de5-reveal.is-visible {
  animation: de5-content-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes de5-testimonial-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.de5-testimonial-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 340px;
  background: var(--de5-surface);
  border: 3px solid var(--de5-line);
  box-shadow: 8px 8px 0 var(--de5-primary);
  padding: 1.25rem 1.4rem;
  z-index: 9998;
  animation: de5-testimonial-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-family: var(--de5-font-body);
}
.de5-testimonial-popup .de5-testimonial-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--de5-line);
}

@media (prefers-reduced-motion: reduce) {
  .de5-reveal { opacity: 1; transform: none; animation: none; }
  .de5-testimonial-popup { animation: none; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   13. RESPONSIVE UTILITIES
   ========================================================================== */
@media (max-width: 700px) {
  .de5-hero-text { padding: 2.5rem 1.4rem; gap: 1rem; }
  .de5-hero-cta { flex-direction: column; align-items: stretch; }
  .de5-hero-cta .de5-btn { justify-content: center; }
  .de5-hero-image { min-height: 260px; }
  .de5-page-content { padding: 1.5rem 1.3rem; }
  .de5-container { padding: 0 1rem; }
}

/* ==========================================================================
   14. HELPERS
   ========================================================================== */
.de5-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.de5-block-accent {
  background: var(--de5-accent);
  width: 40px;
  height: 40px;
  border: 3px solid var(--de5-line);
  display: inline-block;
}


/* Custom CSS rules */
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, body, body [class*="de5-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;
}



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;
  }
}


@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;
  }
}



body footer, body [class*="footer"]:not([class*="logo"]):not([class*="brand-logo"]) {
  color: inherit !important;
}


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;
}


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(--de5-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.
============================================================ */
.de5-media-press {
  padding: 2.5rem 0;
  background: var(--de5-bg-soft, var(--de5-color-surface, #f9fafb));
  margin: 2rem 0;
}
.de5-media-press > .de5-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.de5-media-press-title {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--de5-color-text-soft, var(--de5-color-muted, #5a6a85));
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.de5-media-press-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}
.de5-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%);
}
.de5-media-press-item:hover,
.de5-media-press-item:focus {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}
.de5-media-press-item img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 640px) {
  .de5-media-press { padding: 1.8rem 0; }
  .de5-media-press-grid { gap: 1.4rem; }
  .de5-media-press-item { max-width: 110px; min-height: 36px; }
  .de5-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, body, 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) */
.de5-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);
}
.de5-media-press .de5-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;
}
.de5-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(--de5-muted, #666);
  flex: 0 0 auto;
}
.de5-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;
}
.de5-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;
}
.de5-media-press-item:hover:hover,
section[class*="media-press"] [class*="item"]:hover {
  opacity: 1;
}
.de5-media-press imgimg,
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;
}
.de5-media-press a:hover imga:hover img {
  filter: grayscale(0%);
}
@media (max-width: 768px) {
  .de5-media-press .de5-container,
  section[class*="media-press"] [class*="container"] {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }
}



.de5-cat-hero--align-left .de5-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;
}
.de5-cat-hero--align-center .de5-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;
}


@media (max-width: 1023.98px) {  [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;
  }  [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;
  }  [class*="-burger"] > span,
  [class*="-burger-bars"] {
    display: flex !important;
    flex-direction: column !important;
    min-width: 24px !important;
    min-height: 16px !important;
  }  [class*="-burger-bars"] > *,
  [class*="-burger"] > span > * {
    display: block !important;
    min-width: 24px !important;
    min-height: 2px !important;
  }  [class*="-header-cta-desktop"] {
    display: none !important;
  }  [class*="-burger-label"] {
    display: none !important;
  }
}
@media (min-width: 1024px) {  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    display: none !important;
  }
}


/* Burger style */
@media (max-width: 1023.98px) {
  [class*="-burger"]:not([class*="-bars"]):not([class*="-label"]):not([class*="-menu"]) {
    width: 42px !important; height: 42px !important;
    border-radius: 6px !important; padding: 8px !important;
     
  }
  [class*="-burger"] > span, [class*="-burger-bars"] {
    gap: 5px !important; width: 24px !important; height: 16px !important;
    align-items: center !important;
  }
  [class*="-burger-bars"] > *, [class*="-burger"] > span > * {
    height: 2px !important; border-radius: 1px !important;
  }
  [class*="-burger-bars"] > *:nth-child(1), [class*="-burger"] > span > *:nth-child(1) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(2), [class*="-burger"] > span > *:nth-child(2) { width: 24px !important; }
  [class*="-burger-bars"] > *:nth-child(3), [class*="-burger"] > span > *:nth-child(3) { width: 24px !important; }
}

/* Validator: cap hauteur hero cat v2 */
body section[class*="cat-hero"], body div[class*="cat-hero"], body section[class*="category-hero"], body div[class*="category-hero"] { position: relative !important; height: 320px !important; max-height: 320px !important; min-height: 200px !important; padding: 0 !important; overflow: hidden !important; display: flex !important; align-items: center !important; border: none !important; box-shadow: none !important; }
body [class*="cat-hero"] > img, body [class*="cat-hero-bg"], body [class*="cat-hero"] img, body [class*="category-hero"] img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: 320px !important; object-fit: cover !important; z-index: 0 !important; border: none !important; }
body [class*="cat-hero"] > [class*="container"], body [class*="cat-hero"] > [class*="wrap"], body [class*="cat-hero"] > [class*="inner"], body [class*="cat-hero"] > div { position: relative !important; z-index: 2 !important; max-width: 900px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; background: transparent !important; }
body [class*="cat-hero"] h1, body [class*="category-hero"] h1 { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3.5rem) !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; }
body [class*="cat-hero"][style*="background-image"] { background-size: cover !important; background-position: center !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; }

/* Validator: nav-mobile drawer hidden by default v2 */
/* Drawer/burger menu mobile : hidden par defaut, visible mobile+is-open */
[class*="-nav-mobile"]:not(.is-open), [id*="-nav-mobile"]:not(.is-open), [class*="-drawer"]:not(.is-open), [class*="-burger-menu"]:not(.is-open), [class*="-mobile-menu"]:not(.is-open) { display: none !important; }
@media (max-width: 980px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open { display: flex !important; flex-direction: column !important; position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: 86% !important; max-width: 380px !important; background: #fff !important; padding: 4.5rem 1.5rem 2rem !important; z-index: 9999 !important; overflow-y: auto !important; box-shadow: -10px 0 30px rgba(0,0,0,0.3) !important; }
}

/* Validator: drawer-mobile height fix v1 */
/* Force height:100vh sur le drawer ouvert : top:0;bottom:0 sans !important peut etre overrides par Claude → on impose 100vh. */
/* [2026-06-06] Broadening : ajout patterns supplementaires (X-nav sans 'mobile', X-side, X-menu-drawer, etc.) sinon le validator manque les sites comme artois-moto.com qui utilise fe8-nav (sans 'mobile' dans le nom). */
@media (max-width: 1023px) {
  [class*="-nav-mobile"].is-open, [id*="-nav-mobile"].is-open, [class*="-drawer"].is-open, [class*="-burger-menu"].is-open, [class*="-mobile-menu"].is-open, [class*="-side-nav"].is-open, [class*="-side-menu"].is-open, [class*="-offcanvas"].is-open, nav[aria-label*="mobile" i].is-open, nav[aria-label*="Menu mobile" i].is-open, nav[id*="nav"].is-open[class*="-nav"]:not([class*="desktop"]) { height: 100vh !important; min-height: 100vh !important; max-height: 100vh !important; }
}

/* Validator: footer logo no-filter v1 */
footer img, [class*="-footer"] img, [role="contentinfo"] img, footer [class*="logo"], [class*="-footer"] [class*="logo"] { filter: none !important; mix-blend-mode: normal !important; opacity: 1 !important; }
footer[class*="dark"] img, footer[class*="black"] img, [class*="-footer"][class*="dark"] img, [class*="-footer"][class*="black"] img { filter: brightness(0) invert(1) !important; }

/* Validator: header-hero gap fix v1 */
/* Bug recurrent : <main class="X-main"> a padding-top:30px qui creait un
 * gap entre header sticky et hero/cat-hero. Force padding-top:0 sur le
 * wrapper <main> + margin-top:0 sur le 1er hero enfant. */
body > main, body > [role="main"], main[class*="-main"], [id="main"] { padding-top: 0 !important; }
main > [class*="-hero"]:first-child, main > [class*="-cat-hero"]:first-child, main > [class*="-category-hero"]:first-child { margin-top: 0 !important; }
/* Fallback : si sibling direct du header */
header + section, header + [class*="-hero"], header + [class*="-cat-hero"], header + [class*="-category-hero"], [class*="-header"] + section, [class*="-header"] + [class*="-hero"], [class*="-header"] + [class*="-cat-hero"], [class*="-header"] + [class*="-category-hero"] { margin-top: 0 !important; padding-top: 0 !important; }
section[class*="-hero"]:first-of-type, section[class*="-cat-hero"]:first-of-type, section[class*="-category-hero"]:first-of-type { margin-top: 0 !important; }

/* Validator: contraste lisible header+menu-mobile+footer v2 */
[class*="-nav-mobile"], [id*="-nav-mobile"], [class*="-drawer"], [class*="-burger-menu"], [class*="-mobile-menu"], [class*="-side-nav"] { background: #ffffff !important; }
[class*="-nav-mobile"] *, [id*="-nav-mobile"] *, [class*="-drawer"] *, [class*="-burger-menu"] *, [class*="-mobile-menu"] *, [class*="-side-nav"] * { color: #0a0a0a !important; }
[class*="-nav-mobile"] a, [id*="-nav-mobile"] a, [class*="-drawer"] a, [class*="-burger-menu"] a, [class*="-mobile-menu"] a { color: #0a0a0a !important; font-weight: 600 !important; }
[class*="-nav-mobile"] a:hover, [class*="-drawer"] a:hover, [class*="-burger-menu"] a:hover, [class*="-mobile-menu"] a:hover { color: #000 !important; opacity: 0.7 !important; }
footer *, [class*="-footer"] *, [role="contentinfo"] * { color: #1a1a1a !important; }
footer a, [class*="-footer"] a, [role="contentinfo"] a { color: #1a1a1a !important; text-decoration: underline !important; text-decoration-color: currentColor !important; text-underline-offset: 3px !important; font-weight: 600 !important; }
footer a:hover, [class*="-footer"] a:hover, [role="contentinfo"] a:hover { color: #000 !important; opacity: 1 !important; }
footer h1, footer h2, footer h3, footer h4, footer h5, [class*="-footer"] h1, [class*="-footer"] h2, [class*="-footer"] h3, [class*="-footer"] h4, [class*="-footer"] h5 { color: #0a0a0a !important; font-weight: 700 !important; }
footer p, footer span, footer li, [class*="-footer"] p, [class*="-footer"] span, [class*="-footer"] li { color: #2a2a2a !important; }
footer[class*="dark"] *, footer[class*="black"] *, [class*="-footer"][class*="dark"] *, [class*="-footer"][class*="black"] *, footer[style*="background:#0"] *, footer[style*="background: #0"] *, footer[style*="background:#1"] *, footer[style*="background: #1"] *, footer[style*="background:#2"] *, footer[style*="background: #2"] * { color: #f5f5f5 !important; }
footer[class*="dark"] a, [class*="-footer"][class*="dark"] a, footer[style*="background:#0"] a, footer[style*="background:#1"] a { color: #ffffff !important; }
header a, [class*="-header"] a, [role="banner"] a { text-shadow: none !important; }
header a:hover, [class*="-header"] a:hover { opacity: 0.7 !important; }
[class*="-nav-mobile"] [class*="-btn"], [class*="-footer"] [class*="-btn"] { border: 1.5px solid currentColor !important; }

/* Validator: burger button always visible+clickable v2 */
/* === Burger button : VISIBLE + CLIQUABLE garanti === */
[class*="-burger"], [class*="burger-menu"], [class*="menu-toggle"], button[aria-controls*="nav"], button[aria-label*="menu" i] { color: #1a1a1a !important; pointer-events: auto !important; cursor: pointer !important; z-index: 100 !important; position: relative !important; user-select: none !important; -webkit-tap-highlight-color: transparent !important; background: rgba(255,255,255,0.92) !important; border-radius: 8px !important; border: 1.5px solid rgba(0,0,0,0.15) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important; padding: 8px !important; }
[class*="-burger"] svg, [class*="burger-menu"] svg, [class*="menu-toggle"] svg, button[aria-controls*="nav"] svg { stroke: #1a1a1a !important; fill: none !important; pointer-events: none !important; stroke-width: 2.5 !important; width: 22px !important; height: 22px !important; }
[class*="-burger"] svg path, [class*="-burger"] svg line, [class*="-burger"] svg rect, [class*="-burger"] svg polyline { stroke: #1a1a1a !important; stroke-width: 2.5 !important; fill: none !important; }
[class*="-burger"]:hover, [class*="-burger"]:focus { background: rgba(255,255,255,1) !important; border-color: rgba(0,0,0,0.3) !important; outline: 2px solid rgba(0,0,0,0.15) !important; outline-offset: 1px !important; }
/* Si le header est sombre : inverse en clair (detection elargie) */
[class*="-header"][style*="background:#0"] [class*="-burger"], [class*="-header"][style*="background:#1"] [class*="-burger"], [class*="-header"][style*="background:#2"] [class*="-burger"], [class*="-header"][style*="background-color:#0"] [class*="-burger"], [class*="-header"][style*="background-color:#1"] [class*="-burger"], [class*="-header"][style*="background-color:#2"] [class*="-burger"], [class*="-header"][class*="dark"] [class*="-burger"], [class*="-header"][class*="black"] [class*="-burger"], [class*="-header"][class*="--dark"] [class*="-burger"], [class*="-header"][class*="-night"] [class*="-burger"] { color: #f5f5f5 !important; background: rgba(0,0,0,0.55) !important; border-color: rgba(255,255,255,0.4) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important; }
[class*="-header"][style*="background:#0"] [class*="-burger"] svg, [class*="-header"][style*="background:#1"] [class*="-burger"] svg, [class*="-header"][class*="dark"] [class*="-burger"] svg, [class*="-header"][class*="black"] [class*="-burger"] svg { stroke: #f5f5f5 !important; }
@media (max-width: 1023px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 44px !important; min-height: 44px !important; }
}
@media (min-width: 1024px) {
  [class*="-burger"], button[aria-controls*="nav"] { display: none !important; }
}

/* Validator: nav-mobile-list visible inside open drawer v1 */
/* Burger drawer ouvert : la UL des liens DOIT etre visible. */
[class*="-nav-mobile"].is-open ul, [id*="-nav-mobile"].is-open ul, [class*="-nav-mobile"].is-open [class*="-nav-mobile-list"], [class*="-drawer"].is-open ul, [class*="-burger-menu"].is-open ul { display: block !important; visibility: visible !important; height: auto !important; max-height: none !important; overflow: visible !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li, [id*="-nav-mobile"].is-open ul li, [class*="-drawer"].is-open ul li, [class*="-burger-menu"].is-open ul li { display: list-item !important; height: auto !important; padding: 0 !important; margin: 0 !important; list-style: none !important; }
[class*="-nav-mobile"].is-open ul li a, [id*="-nav-mobile"].is-open ul li a, [class*="-drawer"].is-open ul li a, [class*="-burger-menu"].is-open ul li a { display: block !important; padding: 0.9rem 0 !important; text-decoration: none !important; border-bottom: 1px solid rgba(0,0,0,0.08) !important; font-size: 1rem !important; }

/* [2026-07-21] Fix H1 hero color forced white (post-gen cap-emploi) */
.de5-hero-title, [class*="-hero-title"] { color: #ffffff !important; }
