/* Ajustements communs à toutes les pages (la maquette est dessinée pour écran large) */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: #F6F4EF; overflow-x: hidden; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #223C3C; outline-offset: 2px; }

/* Bouton menu et lien « Espace client » du menu : téléphone uniquement */
.hd-burger, .hd-only-m { display: none; }
.hd-burger { width: 40px; height: 40px; flex: none; border: 1px solid #223C3C; border-radius: 4px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.hd-burger span { display: block; width: 18px; height: 2px; background: #223C3C; transition: transform .25s ease, opacity .2s ease; }
@media (max-width: 700px) { .hd-only-m { display: block; } }

@media (max-width: 900px) {
  #dc-root [style*="font-size: 96px"], #dc-root [style*="font-size: 80px"], #dc-root [style*="font-size: 88px"] { font-size: 52px !important; letter-spacing: -1.5px !important; }
  #dc-root [style*="height: 104px"] { height: 58px !important; }
  #dc-root [style*="font-size: 72px"], #dc-root [style*="font-size: 64px"] { font-size: 44px !important; letter-spacing: -1.2px !important; }
  #dc-root [style*="font-size: 56px"], #dc-root [style*="font-size: 52px"] { font-size: 38px !important; letter-spacing: -1px !important; }
  #dc-root [style*="font-size: 48px"], #dc-root [style*="font-size: 44px"] { font-size: 34px !important; letter-spacing: -0.8px !important; }
  #dc-root [style*="padding: 140px 32px"], #dc-root [style*="padding: 160px 32px"] { padding-top: 80px !important; }
  #dc-root [style*="padding: 96px 32px"], #dc-root [style*="padding: 120px 32px"] { padding-top: 64px !important; }
  #dc-root [style*="padding: 64px;"], #dc-root [style*="padding: 56px 64px"] { padding: 32px 20px !important; }
  #dc-root [style*="min-height: 2"][style*="font-family"] { min-height: 0 !important; }
}

@media (max-width: 700px) {
  /* marges latérales */
  #dc-root [style*="max-width: 1320px"] { padding-left: 16px !important; padding-right: 16px !important; }
  /* en-tête : logo + bouton WhatsApp sur une ligne, menu dessous en défilement horizontal */
  .hd > div { flex-wrap: nowrap !important; padding: 12px 16px !important; gap: 12px !important; }
  .hd-logo { gap: 10px !important; min-width: 0; }
  .hd-logo img { height: 30px !important; }
  .hd-logo div div:first-child { font-size: 13px !important; letter-spacing: 2px !important; white-space: nowrap; }
  .hd-logo div div:last-child { font-size: 8px !important; letter-spacing: 4px !important; }
  .hd-actions { gap: 8px !important; margin-left: auto; }
  .hd-client, .hd-wa-label { display: none !important; }
  .hd-actions > a[target] { width: 40px; height: 40px; padding: 0 !important; justify-content: center; box-sizing: border-box; }
  .hd-burger { display: flex !important; }
  .hd-nav { display: none !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch !important; gap: 0 !important;
    background: #F6F4EF; border-bottom: 1px solid #E3DED3; padding: 4px 16px 20px; box-shadow: 0 18px 30px rgba(20,26,26,.08); }
  body.menu-open .hd-nav { display: flex !important; }
  .hd-nav a { font-size: 22px !important; padding: 14px 0 !important; border-bottom: 1px solid #E3DED3; box-shadow: none !important; }
  .hd-nav a:last-child { border-bottom: 0; font-size: 16px !important; color: #223C3C !important; }
  body.menu-open .hd-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .hd-burger span:nth-child(2) { opacity: 0; }
  body.menu-open .hd-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* blocs côte à côte -> empilés */
  #dc-root [style*="flex: 1.2 1 520px"], #dc-root [style*="flex: 1 1 520px"], #dc-root [style*="flex: 999 1 600px"],
  #dc-root [style*="flex: 1 1 420px"], #dc-root [style*="flex: 1 1 380px"], #dc-root [style*="flex: 1 1 320px"] { flex-basis: 100% !important; min-width: 0 !important; }
  #dc-root [style*="grid-template-columns: repeat(2, minmax(0, 1fr))"]:not(.step) { grid-template-columns: 1fr !important; }
  #dc-root [style*="80px 1fr 1fr 60px"] { grid-template-columns: 28px 1fr !important; gap: 8px 12px !important; padding: 24px 4px !important; }
  #dc-root [style*="80px 1fr 1fr 60px"] > :nth-child(3) { grid-column: 2; }
  #dc-root [style*="80px 1fr 1fr 60px"] > :nth-child(4) { display: none; }
  #dc-root [style*="grid-template-columns: 2fr"] { gap: 10px !important; }
  #dc-root [style*="grid-template-columns: 2fr"] > * { min-width: 0; overflow-wrap: anywhere; }
  #dc-root [style*="grid-template-columns: 2fr"] [style*="font-size: 20px"], #dc-root [style*="grid-template-columns: 2fr"][style*="font-size: 20px"] > * { font-size: 15px !important; }
  #dc-root [style*="grid-column: span 2"] { grid-column: auto !important; }
  #dc-root [style*="gap: 64px"] { gap: 40px !important; }
  #dc-root [style*="font-size: 32px"] { font-size: 24px !important; }
  #dc-root [style*="font-size: 36px"] { font-size: 28px !important; }
  #dc-root [style*="font-size: 30px"] { font-size: 22px !important; }
  #dc-root [style*="font-size: 28px"] { font-size: 22px !important; }
  #dc-root [style*="height: 620px"], #dc-root [style*="height: 600px"] { height: 360px !important; }
  #dc-root footer [style*="gap: 64px"] { gap: 28px 40px !important; }
  #dc-root input, #dc-root select, #dc-root textarea { font-size: 16px !important; }
  #dc-root [style*="padding: 18px 20px"] { padding-left: 0 !important; border-right: 0 !important; }
}
