/* =========================================================
   DevisExpress - styles.css (FIX)
   - Vidéo : plus de carré noir (cadre 16:9 + crop)
   - Valeurs de font-weight invalides corrigées (1100 -> 900)
   ========================================================= */

:root{
  /* ── Palette harmonisée DevisExpress v13 ── */
  --accent:#ff7a00;          /* orange principal */
  --accent2:#e8a000;         /* orange ambré, boutons secondaires */
  --accent-dk:#d95f00;       /* orange foncé hover */
  --vt:#2d5a27;              /* vert forêt — 2e couleur premium */
  --vt-lt:#3d7a35;
  --bg:#f8f4ef;              /* beige chaud — fond général */
  --bg-card:#ffffff;         /* cartes sur fond beige */
  --text:#1a1410;
  --muted:#5c5550;
  --card:#ffffff;
  --border:rgba(0,0,0,.10);
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --radius:16px;
  --container:1200px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  min-height:100vh;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block;height:auto}


/* =========================================================
   V12 anti-overflow mobile (textes longs / URLs)
   ========================================================= */
:where(main, .pageWrap, .container, .card, .noteBox){
  min-width: 0;
}
:where(main, .pageWrap, .container, .card, .noteBox)
  :where(p, li, a, span, div, h1, h2, h3, h4, h5, h6){
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* container */
.container{
  width:calc(100% - 32px);
  max-width:var(--container);
  margin:0 auto;
}

/* =========================================================
   HELPERS
   ========================================================= */
.pageWrap{ padding:18px 0 26px; }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.pad{padding:16px}

.sectionTitle{
  margin:0 0 10px;
  font-size:20px;
  font-weight:900; /* 1100 -> 900 */
  letter-spacing:-.01em;
}

.muted{
  color:var(--muted);
  font-weight:800;
}

.noteBox{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 14px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  transition:transform .12s ease, filter .12s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btnPrimary{
  background:var(--accent);
  color:#fff;
  border-color:rgba(0,0,0,.08);
  box-shadow:0 6px 18px rgba(255,122,0,.28);
}

/* =========================================================
   HERO
   ========================================================= */
.heroGrid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:flex-start; /* FIX : évite l'étirement (carré noir sous la vidéo) */
}
@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
}

.heroTitle{
  margin:0 0 10px 0;
  font-size:clamp(28px, 4vw, 44px);
  line-height:1.05;
  letter-spacing:-.02em;
}

.heroSub{
  margin:0 0 14px 0;
  color:var(--muted);
  font-weight:700;
}

.btnRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:12px 0 10px;
}

.statsRow{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:10px;
}
@media (max-width: 980px){
  .statsRow{grid-template-columns:1fr}
}

.statBlock{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px;
}

.statValue{
  font-weight:900; /* 1100 -> 900 */
  font-size:18px;
  margin-bottom:4px;
}

.statLabel{
  color:var(--muted);
  font-weight:750;
  font-size:13px;
}

/* =========================================================
   VIDEO (cadre propre, sans zone noire)
   ========================================================= */
.videoBox{
  background:#0f0f0f;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.12);
}

.videoWrap{
  position:relative;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: 100%;
  overflow:hidden;
  background:#000;
}

.videoWrap video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover; /* coupe les bandes noires si la vidéo est letterbox */
  background:#000;
}

.videoPlayBtn{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:64px;
  height:64px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:24px;
  font-weight:900;
  cursor:pointer;
}

.videoMsg{
  padding:10px 12px;
  color:#fff;
  background:rgba(0,0,0,.65);
  font-weight:800;
}

/* =========================================================
   FORMULAIRES — GLOBAL
   ========================================================= */
label{ font-weight:900; }

input, select, textarea, button{
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  outline:none;
  background:#fff;
}

textarea{ min-height:90px; resize:vertical; }

input:focus, select:focus, textarea:focus{
  outline: 3px solid rgba(255,122,0,.2);
  border-color: rgba(255,122,0,.42);
}

.help{
  color:var(--muted);
  font-weight:800;
  font-size:13px;
  margin:6px 0 0;
}

/* petites tables */
table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}

/* =========================================================
   ASSUMED UI (mobile-first)
   - ajoute une couche "site entreprise" sans casser l’existant
   ========================================================= */

.dxPageHead{margin:8px 0 14px;}
.dxPageTitle{margin:0 0 6px;font-size:clamp(24px,3.6vw,38px);letter-spacing:-.02em;line-height:1.05;}
.dxPageSub{margin:0;color:var(--muted);font-weight:700;max-width: 70ch;}

.dxStatus{margin:12px 0;padding:12px 14px;border-radius:14px;background:#f4f7ff;border:1px solid rgba(25,80,255,.15);color:#1a2b5a;font-weight:800;}

/* HERO */
.dxHero{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:start;}
@media (max-width:980px){.dxHero{grid-template-columns:1fr;}}
.dxHero__title{margin:0 0 10px;font-size:clamp(30px,4.2vw,46px);line-height:1.03;letter-spacing:-.02em;}
.dxHero__accent{color:var(--accent);font-style:normal;}
.dxHero__sub{margin:0 0 14px;color:var(--muted);font-weight:750;max-width: 70ch;}
.dxHero__cta{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 12px;}
.dxHero__proof{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:8px;}
@media (max-width:640px){.dxHero__proof{grid-template-columns:1fr;}}

.dxKpi{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px;}
.dxKpi__v{font-weight:900;font-size:18px;letter-spacing:-.01em;}
.dxKpi__l{color:var(--muted);font-weight:800;font-size:13px;}

.dxHeroCard{background:linear-gradient(180deg, rgba(255,122,0,.10), rgba(255,122,0,.03));border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;}
.dxHeroCard__t{margin:0 0 10px;font-size:18px;font-weight:900;letter-spacing:-.01em;}
.dxSteps{margin:0 0 12px;padding-left:18px;}
.dxSteps li{margin:8px 0;color:var(--muted);font-weight:750;}
.dxSmall{margin:10px 0 0;color:var(--muted);font-weight:800;font-size:13px;}

.dxBtnXL{padding:14px 16px;font-size:15px;}

.dxSection{margin-top:16px;}
.dxSection__head{margin:0 0 12px;}
.dxSection__title{margin:0 0 6px;font-size:20px;font-weight:900;letter-spacing:-.01em;}
.dxSection__sub{margin:0;color:var(--muted);font-weight:750;}
.dxSection__foot{margin-top:12px;}
.dxSection--soft{padding:16px;border:1px solid rgba(255,122,0,.14);border-radius:var(--radius);background:rgba(255,122,0,.06);}

.dxCards2{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media (max-width:980px){.dxCards2{grid-template-columns:1fr;}}

.dxMiniCard{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;}
.dxMiniCard__t{margin:0 0 10px;font-size:16px;font-weight:900;}
.dxMiniCard__a{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;}
.dxList{margin:0;padding-left:18px;}
.dxList li{margin:8px 0;color:var(--muted);font-weight:750;}

/* MUR DES DEMANDES (cards) */
.dxMurFilters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 12px;}
.dxInput{flex:1;min-width:240px;padding:12px 14px;border-radius:12px;border:1px solid rgba(0,0,0,.15);background:#fff;font-weight:750;}

.dxMurList{display:flex;flex-direction:column;gap:14px;}

.murSection{padding:0;margin:0;}
.murSectionTitle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 10px;font-weight:900;}
.murSectionCount{color:var(--muted);font-weight:900;font-size:12px;}

/* aperçu : grille compacte sur mobile => 1 colonne */
.murGrid{display:grid;grid-template-columns:1fr;gap:12px;}
@media (min-width:980px){.murGrid{grid-template-columns:1fr 1fr;}}

.murCard{background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;box-shadow:0 10px 24px rgba(0,0,0,.07);cursor:pointer;transition:transform .12s ease;}
.murCard:hover{transform:translateY(-1px);} 

.murCardTop{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;}
.murService{font-weight:900;font-size:16px;letter-spacing:-.01em;}
.murMeta{color:var(--muted);font-weight:800;font-size:13px;}
.murDesc{color:#111;font-weight:700;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;}
.murCardBottom{display:grid;grid-template-columns:1fr;gap:6px;margin-top:10px;}
.murSmall{color:var(--muted);font-weight:800;font-size:12px;}

.murMore{display:inline-flex;margin-top:10px;font-weight:800;color:var(--accent);text-decoration:none;}
.murMore:hover{text-decoration:underline;}

.murLoginBox{background:rgba(255,122,0,.08);border:1px solid rgba(255,122,0,.22);border-radius:16px;padding:14px;}

th, td{
  padding:10px 12px;
  border-bottom:1px solid rgba(0,0,0,.06);
  text-align:left;
}
th{
  background:rgba(0,0,0,.03);
  font-weight:900;
}

/* =========================================================
   LISTES
   ========================================================= */
ul.list{
  margin:0;
  padding-left:18px;
}
ul.list li{
  margin:8px 0;
}

/* =========================================================
   FOOTER
   ========================================================= */
.siteFooter{
  margin-top:32px;
  border-top:1px solid rgba(0,0,0,.09);
  background:transparent;  /* pas de fond — sobre, comme les concurrents */
  color:#888;
}
.footerRow,
.footerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0 20px;
  flex-wrap:wrap;
}
.footLeft,
.footerLeft{
  color:#aaa;
  font-weight:500;
  font-size:13px;
}
.footLinks,
.footerLinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footLinks a,
.footerLinks a{
  color:#888;
  font-weight:600;
  font-size:13px;
  text-decoration:none;
  padding:4px 6px;
  border-radius:8px;
  transition:color .12s;
}
.footLinks a:hover,
.footerLinks a:hover{
  color:#333;
  background:rgba(0,0,0,.04);
  text-decoration:none;
}

/* Password toggle (eye) */
.pwWrap{ position:relative; }
.pwWrap .input{ padding-right:52px; }
.pwToggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:1px solid var(--border);
  background:#fff;
  border-radius:10px;
  padding:6px 10px;
  font-weight:900;
  cursor:pointer;
  line-height:1;
}
.pwToggle:focus{ outline:2px solid rgba(255,122,0,.35); outline-offset:2px; }
.pwToggle[data-state="on"]{ background:rgba(255,122,0,.10); border-color:rgba(255,122,0,.35); }


/* DX Metiers modal */
.dxModal{position:fixed;inset:0;display:none;z-index:9999}
.dxModal.is-open{display:block}
.dxModalBackdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.dxModalCard{position:relative;max-width:520px;margin:10vh auto;background:#111;color:#fff;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.dxModalTitle{margin:0 0 6px;font-size:22px}
.dxModalSub{margin:0 0 14px;color:rgba(255,255,255,.75)}
.dxModalActions{display:grid;gap:10px}
.dxModalClose{position:absolute;top:10px;right:12px;background:transparent;border:0;color:#fff;font-size:26px;cursor:pointer}
.dxModalHint{margin:12px 0 0;color:rgba(255,255,255,.7);font-size:13px}
body.dxModalOpen{overflow:hidden}
.dxBtn{display:inline-block;text-align:center;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);color:#fff;text-decoration:none}
.dxBtnPrimary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:800;box-shadow:0 6px 18px rgba(255,122,0,.28)}


/* V13 CONTENT SAFETY NET — stop text/urls from overflowing on mobile */
main, .container, .card, .panel, .section, .wrap, .page, .pageMain { min-width: 0; }
p, li, a, h1, h2, h3, h4, h5, h6, .text, .desc { overflow-wrap: anywhere; word-break: break-word; }
img, video, iframe, canvas, svg { max-width: 100%; height: auto; }

/* V14: stop remaining mobile overflows (inputs/filters/buttons/tables) */
main{ overflow-x: clip; }
main *{ max-width: 100%; }

@media (max-width: 560px){
  /* Inputs/search bars can force horizontal scroll if they keep a hard min-width */
  .dxInput, .metiersSearch, .mSearch, .mSearch input,
  input, select, textarea, button{ min-width:0; max-width:100%; }
  .dxInput{ width:100%; }

  /* Buttons in content can wrap instead of pushing layout */
  main .dxBtn{ white-space: normal; }

  /* Tables: allow horizontal scroll instead of breaking layout */
  table{ display:block; width:100%; overflow-x:auto; -webkit-overflow-scrolling: touch; }
}


/* Rating stars */
.stars{display:flex;gap:6px;align-items:center;}
.star{font-size:22px;line-height:1;border:0;background:transparent;cursor:pointer;padding:4px 6px;}
.star.on{color:var(--accent2);filter:drop-shadow(0 1px 0 rgba(0,0,0,.1));}
.star.disabled{opacity:.5;cursor:not-allowed;}


/* Footer common aliases for injected partial */
[data-dx-footer="1"] .footerInner{
  width:100%;
}
@media (max-width: 820px){
  .footerRow,
  .footerInner{
    justify-content:center;
    text-align:center;
  }
  .footLinks,
  .footerLinks{
    justify-content:center;
  }
}


/* ================================================================
   FOOTER HARMONISÉ — override global toutes pages v14
   Cible toutes les variantes de footer du projet
   ================================================================ */

/* Conteneur footer */
.siteFooter,
footer.siteFooter,
[data-dx-footer],
[data-dx-footer="1"],
footer[data-dx-common-footer],
#dx-footer-slot {
  background: transparent !important;
  border-top: 1px solid rgba(0,0,0,.09) !important;
  margin-top: 28px !important;
  color: #888 !important;
  box-shadow: none !important;
}

/* Rangée intérieure */
.siteFooter .footerInner,
.siteFooter .footerRow,
.siteFooter .footRow,
.siteFooter .footerContent,
[data-dx-footer] .footerInner,
[data-dx-footer="1"] .footerInner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 14px 0 18px !important;
  background: transparent !important;
  border: none !important;
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

/* Copyright texte */
.siteFooter .footerInner > div:first-child,
.siteFooter .footLeft,
.siteFooter .footerLeft,
[data-dx-footer] .footLeft,
[data-dx-footer="1"] .footLeft {
  color: #aaa !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Liens */
.siteFooter .footerLinks a,
.siteFooter .footLinks a,
.siteFooter a,
[data-dx-footer] a,
[data-dx-footer="1"] a {
  color: #888 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  transition: color .12s !important;
}
.siteFooter .footerLinks a:hover,
.siteFooter .footLinks a:hover,
.siteFooter a:hover,
[data-dx-footer] a:hover,
[data-dx-footer="1"] a:hover {
  color: #333 !important;
  background: rgba(0,0,0,.04) !important;
  text-decoration: none !important;
}

/* Liens en flex row */
.siteFooter .footerLinks,
.siteFooter .footLinks,
[data-dx-footer] .footerLinks,
[data-dx-footer="1"] .footerLinks {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  background: transparent !important;
}

@media (max-width: 640px) {
  .siteFooter .footerInner,
  .siteFooter .footerRow,
  [data-dx-footer] .footerInner,
  [data-dx-footer="1"] .footerInner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}


/* ================================================================
   HARMONISATION PAGES INTERNES — v15
   S'applique à toutes les pages chargeant styles.css
   Sobre, premium, cohérent avec l'accueil
   ================================================================ */

/* Fond beige chaud sur toutes les pages */
body {
  background: #f8f4ef !important;
}

/* Titres de page cohérents */
h1.heroTitle, .dxPageTitle {
  font-size: clamp(26px, 3.5vw, 42px) !important;
  letter-spacing: -.025em !important;
  line-height: 1.05 !important;
  color: #1a1410 !important;
  font-weight: 900 !important;
}

/* Cartes : blanc sur fond beige — contraste propre */
.card, .murCard, .statBlock, .dxKpi, .dxMiniCard, .noteBox {
  background: #ffffff !important;
  border-color: rgba(0,0,0,.08) !important;
}

/* Bouton principal : orange solid harmonisé */
.btn.btnPrimary,
.btnPrimary,
button.btnPrimary,
a.btnPrimary {
  background: #ff7a00 !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(255,122,0,.28) !important;
}
.btn.btnPrimary:hover,
.btnPrimary:hover {
  background: #d95f00 !important;
  transform: translateY(-1px) !important;
}

/* Bouton "Trouver le métier" et autres boutons accent rouge → orange */
button[style*="background:#ff"],
button[style*="background: #ff"] {
  background: #ff7a00 !important;
}

/* Liens accent */
a.murMore, .accent-link {
  color: #ff7a00 !important;
}

/* murLoginBox cohérence */
.murLoginBox {
  background: rgba(255,122,0,.07) !important;
  border-color: rgba(255,122,0,.2) !important;
}

/* Sections douces */
.dxSection--soft {
  background: rgba(255,122,0,.05) !important;
  border-color: rgba(255,122,0,.14) !important;
}

/* offreurs.html, offreur-profil, historique, abonnement
   — toutes les pages simples héritent du fond beige
   et des cartes blanches via les règles ci-dessus */

/* Container max-width cohérent */
.container {
  width: min(1200px, calc(100% - 32px)) !important;
  margin: 0 auto !important;
}

/* pageWrap padding harmonisé */
.pageWrap {
  padding: 22px 0 32px !important;
}


/* ================================================================
   GLASS THEME v16 — pages internes dynamiques
   Fond dégradé chaud vivant + cartes en verre givré
   ================================================================ */

/* Corps : dégradé multi-couche tiré des couleurs du site
   — lueur orangée en haut à gauche (soleil péi)
   — reflet vert forêt en bas à droite
   — base beige chaud neutre */
body {
  background:
    radial-gradient(ellipse at 8% 0%,    rgba(255,140,0,.14) 0%, transparent 50%),
    radial-gradient(ellipse at 93% 100%, rgba(45,90,39,.09)  0%, transparent 50%),
    linear-gradient(158deg, #fdf6ee 0%, #f8f4ef 55%, #f0eae0 100%) !important;
}

/* ─── Cartes en verre givré ─────────────────────────────────── */
/* Toutes les pages qui chargent styles.css bénéficient automatiquement */

.card,
section.card,
.murCard,
.dxMiniCard,
.statBlock,
.dxKpi,
.noteBox,
.dxHeroCard,
.legalBlock,
.murLoginBox {
  background:     rgba(255,255,255,.82) !important;
  backdrop-filter:         blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  border:     1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.07),
              0 1px  0   rgba(255,255,255,.55) inset !important;
}

/* Champs de formulaire dans les cartes : blanc pur pour lisibilité */
.card input, .card select, .card textarea,
section.card input, section.card select, section.card textarea {
  background: rgba(255,255,255,.97) !important;
}

/* Hover murCard : ombre légèrement plus présente */
.murCard:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,.11),
              0 1px  0   rgba(255,255,255,.55) inset !important;
  transform: translateY(-2px);
}

/* ─── mur-demandes : filtre advBox en verre ─────────────────── */
.advBox {
  background:     rgba(255,255,255,.65) !important;
  backdrop-filter:         blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.80) !important;
}


/* ================================================================
   PAGE HERO BAND — v17
   Identité locale 974 · Orange lave → Vert forêt
   Bande pleine largeur sous le header, présente sur toutes les
   pages internes. Main content overlap de 32px.
   ================================================================ */

@keyframes dxHeroBgZoom {
  0%   { transform: scale(1.08) translateY(0); }
  50%  { transform: scale(1.14) translateY(-1.5%); }
  100% { transform: scale(1.08) translateY(0); }
}
@keyframes dxEmber {
  0%   { transform:translateY(0) translateX(0) scale(1); opacity:0; }
  10%  { opacity:.9; }
  80%  { opacity:.4; }
  100% { transform:translateY(-220px) translateX(var(--dx,0px)) scale(.3); opacity:0; }
}
@keyframes dxHeroFadeUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes dx974Pulse {
  0%,100% { opacity:.04; letter-spacing:-.04em; }
  50%     { opacity:.09; letter-spacing:.01em; }
}
.dx-page-hero {
  background: #0a0a0f;
  padding: 44px 0 72px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.dx-page-hero .dx-hero-bg-img {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
  animation: dxHeroBgZoom 18s ease-in-out infinite;
  will-change: transform;
  filter: brightness(.42) saturate(1.3);
}
.dx-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6,4,20,.55) 0%, rgba(6,4,20,.10) 30%, rgba(6,4,20,.45) 70%, rgba(6,4,20,.88) 100%),
    linear-gradient(105deg, rgba(255,90,0,.25) 0%, transparent 55%, rgba(20,80,20,.18) 100%);
  pointer-events: none;
}
.dx-page-hero::after {
  content: "974";
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(120px,18vw,260px);
  font-weight: 900;
  color: rgba(255,255,255,.045);
  letter-spacing: -.04em;
  pointer-events: none;
  line-height: 1;
  user-select: none;
  z-index: 2;
  animation: dx974Pulse 8s ease-in-out infinite;
}
.dx-page-hero__glow {
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,100,0,.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}
.dx-page-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 4;
}
.dx-page-hero__left { display: flex; flex-direction: column; }
.dx-page-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,160,60,.85);
  animation: dxHeroFadeUp .5s .05s ease both;
}
.dx-page-hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-shadow: 0 2px 28px rgba(0,0,0,.5);
  animation: dxHeroFadeUp .5s .12s ease both;
}
.dx-page-hero__sub {
  margin: 0;
  font-size: clamp(13px, 1.8vw, 15px);
  color: rgba(255,255,255,.72);
  font-weight: 400;
  max-width: 50ch;
  line-height: 1.6;
  animation: dxHeroFadeUp .5s .2s ease both;
}
.dx-page-hero__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  animation: dxHeroFadeUp .5s .28s ease both;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.dx-ember {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e1 0%, #ff6a00 60%, transparent 100%);
  z-index: 3;
  pointer-events: none;
  animation: dxEmber var(--dur,2.4s) var(--delay,0s) ease-out infinite;
  box-shadow: 0 0 6px 2px rgba(255,106,0,.5);
}

/* ── Contenu principal : overlap 32px sur la bande ─────────── */
.dx-below-hero {
  margin-top: -32px !important;
  position: relative;
  z-index: 2;
}

/* Première carte : coins hauts arrondis + ombre de profondeur */
.dx-below-hero > section:first-child,
.dx-below-hero > .heroCard:first-child,
.dx-below-hero > .card:first-child,
.dx-below-hero > div > section:first-child,
.dx-below-hero > div > .card:first-child {
  border-radius: 20px 20px 16px 16px !important;
  box-shadow: 0 -3px 0 rgba(255,255,255,.35),
              0 12px 40px rgba(0,0,0,.09) !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dx-page-hero          { padding: 20px 0 44px; }
  .dx-page-hero__badge   { display: none; }
  .dx-page-hero__eyebrow { display: none; }
  .dx-page-hero__title   { font-size: 20px; }
  .dx-page-hero__sub     { font-size: 13px; }
  .dx-below-hero         { margin-top: -22px !important; }
}


/* ── dx-page-hero__wrap ── */
.dx-page-hero__wrap {
  width: calc(100% - 32px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* ── Hero pages : fond sombre + extension sous le header ── */
body.dx-hero-page { position: relative; background: #08080f; }
html:has(body.dx-hero-page) { background: #08080f; }

.dx-hero-transparent .dx-hero-extra-pad { padding-top: 100px !important; }

body.dx-hero-page .dx-page-hero {
  margin-top: -80px !important;
  padding-top: 110px !important;
}

@media (max-width: 860px) {
  .dx-hero-transparent .dx-hero-extra-pad { padding-top: 80px !important; }
  body.dx-hero-page .dx-page-hero {
    margin-top: -65px !important;
    padding-top: 90px !important;
  }
}

/* ════════════════════════════════════════════
   MOBILE — règle unique, propre, sans conflit
   Header mobile = calc(100% - 32px), margin auto
   Container = même largeur = calc(100% - 32px)
   ════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Container aligné exactement sur le header */
  .container {
    width: calc(100% - 32px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Cartes : pleine largeur du container, bords arrondis */
  .dx-below-hero section.card,
  .dx-below-hero .card {
    border-radius: 16px !important;
    overflow: visible !important;
  }

  /* Padding interne des cartes : 14px (aéré, pas collé) */
  .dx-below-hero section.card.pad,
  .dx-below-hero .card.pad {
    padding: 14px !important;
  }

  /* Pancartes demandes : léger retrait dans la carte */
  .dxPost {
    border-radius: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 860px) {
  #dxMurMain {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    border-radius: 16px !important;
    border-left: 1px solid var(--border) !important;
    border-right: 1px solid var(--border) !important;
  }
}
