/* Modernisation transverse ScanFilm — chargée après les styles historiques. */
:root {
  --ink: #171717;
  --ink-mid: rgba(23,23,23,.7);
  --ink-low: rgba(23,23,23,.48);
  --ink-faint: rgba(23,23,23,.12);
  --paper: #ffffff;
  --warm: #f2f2f1;
  --dark: #171717;
  --dark2: #292929;
  --dark3: #0d0d0d;
  --gold: #ff7a3d;
  --gold-low: rgba(255,122,61,.52);
  --accent: #f15a24;
  --accent-dark: #c94317;
  --focus: #f15a24;
  --shadow-sm: 0 8px 24px rgba(23,23,23,.09);
  --shadow-lg: 0 24px 70px rgba(23,23,23,.16);
}

html { scroll-padding-top: 92px; }
body { font-size: 16px; text-rendering: optimizeLegibility; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: 8px; left: 12px; z-index: 10000;
  transform: translateY(-150%); padding: .75rem 1rem;
  color: #fff; background: var(--dark); border-radius: 8px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

nav {
  min-height: 76px; padding-block: 1rem;
  box-shadow: 0 1px 0 rgba(18,20,26,.06);
  transition: box-shadow .25s, background .25s;
}
nav.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.985); }
.logo { font-size: 2.2rem; font-weight: 500; }
nav ul a, .nav-dd-toggle {
  font-size: 14px; font-weight: 650; letter-spacing: .055em;
  color: rgba(23,23,23,.84);
}
nav ul a:hover, .nav-dd-toggle:hover { color: var(--accent); }
nav ul a[aria-current="page"] { color: var(--accent-dark); }
.nav-cta, .btn-dark {
  background: var(--accent-dark); border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 20px rgba(23,23,23,.16);
  transition: transform .2s, background .2s, box-shadow .2s;
}
nav > .nav-cta { display: none; }
.nav-cta:hover, .btn-dark:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23,23,23,.24);
}
.btn-outline { border-radius: 999px; font-weight: 600; background: rgba(255,255,255,.32); }
.btn-outline:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.nav-dd-menu { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); padding: .65rem; }
.nav-dd-menu a { border-radius: 8px; padding: .7rem .85rem; }

.page-hero {
  position: relative; overflow: hidden; padding-top: 4.5rem; padding-bottom: 4rem;
  background: linear-gradient(125deg, #f0f0ef 0%, #ffffff 64%, #e9e9e8 100%);
}
.breadcrumb {
  padding-top: 1.35rem; padding-bottom: .85rem;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .01em; text-transform: none; color: rgba(18,20,26,.84);
}
.breadcrumb a { color: rgba(18,20,26,.74); font-weight: 550; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin-inline: .65rem; color: var(--accent-dark); font-weight: 700; }
.page-hero::after {
  content: ''; position: absolute; width: 320px; height: 320px;
  right: -100px; top: -150px; border: 48px solid rgba(241,90,36,.08);
  border-radius: 50%; pointer-events: none;
}
h1, h2 { text-wrap: balance; }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.015em; }
.page-intro { font-size: 1rem; max-width: 720px; }
.section-label, .page-eyebrow { color: var(--accent); font-weight: 700; }
.section-label::before, .page-eyebrow::before { background: currentColor; height: 2px; }

.content { max-width: 1160px; }
.img-block { border: 0; border-radius: 18px; box-shadow: var(--shadow-lg); }
.format-card, .inclus-block, .calc-wrap {
  border: 1px solid rgba(18,20,26,.08); border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.format-card { background: rgba(255,255,255,.7); padding: 1.7rem; }
.format-card:hover { border-color: rgba(241,90,36,.4); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fc-arrow { color: var(--accent-dark); font-weight: 700; transition: color .18s; }
.format-card:hover .fc-arrow { color: var(--accent); }
.mesure-block, .grand-total { border-radius: 14px; }

table { border-radius: 12px; overflow: hidden; }
.calc-table input[type=number] { min-width: 64px; min-height: 42px; border-radius: 8px; }
.calc-price {
  font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 650;
  color: rgba(18,20,26,.92); letter-spacing: .01em;
}
.grand-total .amount {
  font-family: 'DM Sans', sans-serif; font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em;
}
.grand-total .gnote {
  margin-top: 5px; font-size: 13px; font-weight: 600;
  color: rgba(250,248,244,.78);
}
.calc-wrap h3 { font-size: 1.75rem; line-height: 1.2; margin-bottom: 1.25rem; }
.calc-fmt-badge {
  min-height: 36px; padding: 7px 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em;
}
.fmt-tab, .reset-btn { min-height: 42px; border-radius: 999px; padding-inline: 1rem; }
.fmt-tab.active { background: var(--accent); border-color: var(--accent); }

input:not([type=checkbox]):not([type=radio]), textarea, select {
  min-height: 48px; border-radius: 10px !important; border: 1px solid rgba(18,20,26,.2) !important;
  background: #fff !important; transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent) !important; box-shadow: 0 0 0 4px rgba(241,90,36,.13);
}

.home-hero { min-height: auto !important; }
.home-hero > div { padding-block: 3.5rem !important; }
.home-page .home-section { padding-block: 3.75rem !important; }
.home-page .home-section p[style*="margin-bottom:3rem"] { margin-bottom: 2rem !important; }
.home-page .home-section div[style*="margin-top:3rem"] { margin-top: 2rem !important; }
.home-page .home-section div[style*="margin-bottom:3rem"] { margin-bottom: 2rem !important; }
.home-hero > div:first-child { position: relative; z-index: 1; }
.home-hero > div:last-child { position: relative; overflow: hidden; }
.home-hero > div:last-child::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 20%, rgba(23,23,23,.07), transparent 34%),
              linear-gradient(145deg, transparent 55%, rgba(23,23,23,.045));
  pointer-events: none;
}
.format-shortcut {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .65rem .35rem; border: 1px solid rgba(18,20,26,.16); border-radius: 10px;
  background: rgba(255,255,255,.62); color: var(--ink); font: 700 12px/1.2 'DM Mono', monospace;
  text-align: center; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 12px rgba(18,20,26,.07);
  transition: transform .18s, color .18s, border-color .18s, background .18s, box-shadow .18s;
}
.format-shortcut--featured { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.format-shortcut:hover {
  background: #fff; color: var(--accent-dark); border-color: rgba(241,90,36,.5); transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(18,20,26,.15);
}
.format-shortcut--featured:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.format-shortcut[data-rare-format]::after {
  content: 'i'; position: absolute; top: 4px; right: 5px; width: 13px; height: 13px;
  border: 1px solid rgba(255,255,255,.45); border-radius: 50%;
  font: 8px/11px 'DM Sans', sans-serif; opacity: .75;
}
.format-shortcut[data-contact-format]::after {
  content: '↗'; position: absolute; top: 4px; right: 6px;
  font: 9px/1 'DM Sans', sans-serif; opacity: .5;
}

.format-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(92vw, 520px); max-height: min(90vh, 620px); padding: 0; border: 0; border-radius: 18px;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(9,11,16,.45);
}
.format-dialog::backdrop { background: rgba(9,11,16,.74); backdrop-filter: blur(4px); }
.format-dialog-inner { position: relative; padding: 2.4rem; }
.format-dialog-label {
  margin-bottom: .7rem; color: var(--accent); font: 700 10px/1.4 'DM Mono', monospace;
  letter-spacing: .16em; text-transform: uppercase;
}
.format-dialog h2 { margin-bottom: .8rem; font-size: 2rem; }
.format-dialog p { color: var(--ink-mid); font-size: .95rem; line-height: 1.75; }
.format-dialog-actions { display: flex; gap: .75rem; margin-top: 1.6rem; flex-wrap: wrap; }
.format-dialog-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: var(--warm); color: var(--ink);
  font-size: 1.25rem; cursor: pointer;
}

.call-cta-global {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  display: flex; align-items: center; gap: .8rem;
  min-height: 58px; padding: .65rem 1.15rem .65rem .7rem;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: var(--accent-dark); color: #fff; text-decoration: none;
  box-shadow: 0 16px 38px rgba(23,23,23,.28);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.call-cta-global:hover {
  color: #fff; background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(23,23,23,.34);
}
.call-cta-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.16);
  font-size: 1.3rem; line-height: 1;
}
.call-cta-copy { display: grid; gap: .08rem; }
.call-cta-label {
  font-family: 'DM Sans', sans-serif; font-size: .72rem;
  line-height: 1.2; color: rgba(255,255,255,.82);
}
.call-cta-copy strong {
  font-family: 'DM Mono', monospace; font-size: .94rem;
  letter-spacing: .04em; color: #fff;
}

.contact-phone-card {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 1.5rem;
  margin: 0 0 2.5rem; padding: 1.7rem 1.8rem;
  border: 1px solid rgba(241,90,36,.18); border-radius: 16px;
  background: linear-gradient(125deg, #fff 0%, #f5f5f4 100%);
  box-shadow: var(--shadow-sm);
}
.contact-phone-card .section-label { margin: 0 0 .35rem; }
.contact-phone-card h2 { margin: 0 0 .45rem; font-size: clamp(1.8rem,4vw,2.45rem); }
.contact-phone-card p {
  max-width: 680px; margin: 0; color: var(--ink-mid);
  font-size: .95rem; line-height: 1.65;
}
.contact-phone-action {
  display: inline-flex; align-items: center; gap: .65rem;
  white-space: nowrap; padding: .9rem 1.25rem; border-radius: 999px;
  background: var(--accent-dark); color: #fff; text-decoration: none;
  font-family: 'DM Mono', monospace; font-size: .92rem; font-weight: 600;
  box-shadow: 0 10px 24px rgba(23,23,23,.18);
}
.contact-phone-action:hover { color: #fff; background: var(--accent); }

.seo-faq {
  border-top: 1px solid var(--ink-faint);
  background: linear-gradient(180deg, var(--paper), var(--warm));
}
.seo-faq-inner { max-width: 1100px; margin: 0 auto; padding: 5rem 3rem; }
.seo-faq h2 { max-width: 760px; margin: 0 0 1rem; }
.seo-faq-intro {
  max-width: 760px; margin: 0 0 2.25rem; color: var(--ink-mid);
  font-size: .95rem; line-height: 1.75;
}
.seo-faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.seo-faq details {
  padding: 1.2rem 1.3rem; border: 1px solid var(--ink-faint);
  border-radius: 12px; background: rgba(255,255,255,.72);
}
.seo-faq summary {
  color: var(--ink); cursor: pointer; font-weight: 650; line-height: 1.45;
}
.seo-faq details p { margin: .8rem 0 0; color: var(--ink-mid); font-size: .9rem; line-height: 1.7; }
.seo-faq details a { color: var(--accent-dark); font-weight: 650; }
.seo-faq-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }

.back-top {
  position: fixed; right: 20px; bottom: 96px; z-index: 90; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px rgba(18,20,26,.3); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready.revealed { opacity: 1; transform: none; }
footer { padding-block: 3.2rem; }

@media (max-width: 900px) {
  nav { min-height: 66px; }
  .nav-cta { display: none; }
  .nav-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; border-radius: 50%; background: var(--warm); }
  .nav-toggle span { width: 22px; height: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav { position: sticky; top: 66px; z-index: 99; padding: 1.25rem 1.5rem 1.6rem; box-shadow: var(--shadow-lg); }
  .mobile-nav a { padding: .45rem 0; font-size: 12px; }
  .mobile-nav a { font-size: 14px; font-weight: 650; color: rgba(18,20,26,.86); letter-spacing: .055em; }
  .mobile-nav .sub { font-size: 12px; color: rgba(18,20,26,.7); }
  .page-hero { padding: 3rem 1.5rem; }
  .content { padding-inline: 1.25rem; }
  .calc-wrap { padding: 1.25rem; overflow-x: auto; }
  .calc-table { min-width: 620px; }
  .home-hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .home-hero > div { padding: 3.5rem 1.5rem !important; border-right: 0 !important; }
  .home-hero > div:first-child { min-height: auto; }
  .home-page .home-section { padding-block: 3rem !important; }
  .seo-faq-grid { grid-template-columns: 1fr; }
  .contact-phone-card { grid-template-columns: 1fr; align-items: start; }
  .contact-phone-action { justify-self: start; }
}

@media (max-width: 640px) {
  body.has-call-cta { padding-bottom: 72px; }
  .logo-sub { display: none; }
  .logo { font-size: 1.9rem; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .btns, .btn-dark, .btn-outline { width: 100%; text-align: center; }
  footer { align-items: flex-start; text-align: left; }
  .footer-links { flex-direction: column; gap: .8rem; align-items: flex-start; }
  .format-dialog-inner { padding: 2rem 1.4rem 1.5rem; }
  .format-dialog-actions a, .format-dialog-actions button { width: 100%; text-align: center; }
  .call-cta-global {
    right: 10px; bottom: 10px; left: 10px; min-height: 54px;
    justify-content: center; padding: .55rem 1rem;
  }
  .call-cta-label { font-size: .69rem; }
  .call-cta-copy strong { font-size: .9rem; }
  .back-top { right: 14px; bottom: 82px; }
  .contact-phone-card { padding: 1.4rem; border-radius: 12px; }
  .contact-phone-action { width: 100%; justify-content: center; }
  .seo-faq-inner { padding: 3.5rem 1.25rem; }
  .seo-faq-actions a { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal-ready { opacity: 1; transform: none; }
}
