/* =====================================================================
   devis-2027.css — Supercalculateur (articles/devis-voixoff-fr.html)
   Harmonisation avec le design 2027 des articles, sans toucher au calcul.
   Ordre : sections-2027 → articles-2027 → devis-2027.
   ===================================================================== */

/* ---------- Haut de page : même style que les autres articles + photo de fond pleine largeur ---------- */
body.content:has(.dv-hero-wrap)::after,
body.content:has(.dv-hero-wrap)::before { display: none; }

.page-content .dv-hero-wrap {
  position: relative; isolation: isolate; overflow: visible;
  max-width: 1180px; width: auto; margin: 0 auto; box-sizing: border-box;
  padding: 150px 40px 64px;
  border: 0; border-radius: 0; background: none;
}
/* Photo : sur toute la largeur de l'écran, recadrée sans déformation */
.page-content .dv-hero-bg {
  z-index: -1; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
  border-radius: 0; opacity: 0.45;
  background-size: cover; background-position: center 40%;
}
/* Voile sombre par-dessus la photo pour garder le texte lisible */
.page-content .dv-hero-wrap::after {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(10,15,21,0.92) 0%, rgba(10,15,21,0.70) 50%, rgba(10,15,21,0.35) 100%),
    linear-gradient(180deg, rgba(10,15,21,0) 60%, rgba(10,15,21,0.9) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.page-content .dv-hero-inner { position: static; align-items: flex-start; text-align: left; }

/* « SUPERCALCULATEUR » : petit sur-titre, comme « Articles » */
.page-content .dv-hero-eyebrow {
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  margin: 0 0 26px; animation: none;
  background: none; -webkit-text-fill-color: var(--accent); color: var(--accent);
}
.page-content .dv-hero-title {
  font-family: var(--ar-serif); font-weight: 500; text-transform: none;
  font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -0.025em;
  margin: 0 0 22px; color: #f3f6f9;
}
.page-content .dv-hero-title span { color: var(--accent); font-style: italic; }
.page-content .dv-intro-text {
  margin: 0; max-width: 34em; text-align: left;
  font-family: var(--ar-serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2vw, 25px); line-height: 1.45; color: #b7c6d4;
}
.page-content .dv-intro-text strong { color: #f3f6f9; font-weight: 500; }

/* Drapeaux FR / EN : en haut à droite du bandeau, à la hauteur du sur-titre */
.page-content .dv-lang-row {
  position: absolute; top: 142px; right: 40px;
  width: auto; gap: 8px; margin: 0;
}
.page-content .dv-hero-sep { display: none; }
.page-content .dv-lang-btn { border-radius: 999px; padding: 6px 14px; font-family: var(--font-body); font-weight: 600; font-size: 12px; }
.page-content .dv-lang-btn-en { opacity: 0.75; background: rgba(10,15,21,0.5); }

.page-content .dv-hero-wrap + .container { padding-top: 56px; }

/* ---------- Calculateur : polices du site + coins arrondis ---------- */
.dv-calc-wrap #supercalc {
  --font-head: 'Newsreader', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;
  --radius: 14px;
  background: transparent;
  max-width: 860px; margin: 0 auto;
}
/* Newsreader existe en 400/500 : on évite le faux gras sur les montants */
.dv-calc-wrap #supercalc .bsf-value,
.dv-calc-wrap #supercalc .result-total,
.dv-calc-wrap #supercalc .fourchette-range { font-weight: 500; }

/* Le CSS 2027 du site retire les majuscules des titres h2/h3 : on les rétablit dans le calculateur */
.dv-calc-wrap #supercalc h2,
.dv-calc-wrap #supercalc h3 { text-transform: uppercase; }

@media (max-width: 860px) {
  .page-content .dv-hero-wrap { padding: 120px 24px 44px; }
  /* sur mobile, les drapeaux passent sous le texte d'intro */
  .page-content .dv-lang-row { position: static; order: 5; margin-top: 26px; }
  .page-content .dv-hero-wrap + .container { padding-top: 40px; }
}
