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

:root{
  --accent:#ff3b0a;
  --accent2:#ffd140;
  --bg:#ffffff;
  --text:#111;
  --muted:#5d5d5d;
  --card:#f7f7f9;
  --border:rgba(0,0,0,.12);
  --shadow:0 10px 30px rgba(0,0,0,.10);
  --radius:16px;
  --container: 1280px;
}

*{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;
}

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:min(var(--container), calc(100% - 32px));
  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:linear-gradient(135deg, var(--accent2), var(--accent));
  border-color:rgba(0,0,0,.10);
}

/* =========================================================
   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,59,10,.18);
  border-color: rgba(255,59,10,.35);
}

.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);}
.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,209,64,.18), rgba(255,59,10,.06));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 var(--border);border-radius:var(--radius);background:rgba(255,209,64,.10);}

.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:900;color:var(--accent);text-decoration:none;}
.murMore:hover{text-decoration:underline;}

.murLoginBox{background:rgba(255,209,64,.16);border:1px solid rgba(255,59,10,.18);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:22px;
  border-top:1px solid var(--border);
  background:#fff;
}
.footerRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 0 26px;
  flex-wrap:wrap;
}
.footLeft{
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}
.footLinks{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.footLinks a{
  color:var(--muted);
  font-weight:800;
  text-decoration:none;
  padding:6px 8px;
  border-radius:10px;
}
.footLinks a:hover{
  background:rgba(0,0,0,.05);
  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:#ff3b0a;border-color:#ff3b0a;color:#111;font-weight:700}


/* 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;}
