body {
  font-family: Arial, sans-serif;
  background: #f3f7fc;
  color: #17324d;
  margin: 0;
}
main {
  max-width: 720px;
  margin: 60px auto;
  padding: 30px;
  text-align: center;
}
section {
  background: white;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 4px 20px #00000012;
}
button {
  background: #176bce;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  margin: 8px;
  cursor: pointer;
  font-size: 16px;
}
button:hover { background: #1053a2; }
form {
  display: none;
  margin-top: 25px;
  text-align: left;
}
label { display: block; margin-top: 14px; }
input, textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 5px;
}
textarea { min-height: 100px; }
.note { font-size: 13px; color: #596b7c; }
.cva-identite {
  text-align: center;
}
.cva-logo {
  display: block;
  width: 160px;
  max-width: 45%;
  height: auto;
  margin: 0 auto 18px;
}
.cva-banniere {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px auto;
}
@media (max-width: 600px) {
  main {
    margin: 20px auto;
    padding: 12px;
  }
  section {
    padding: 18px;
  }
  .cva-logo {
    width: 120px;
  }
}

/* FIX10-VISUEL-8 : barre bleue d'harmonisation de l'aperçu, non issue du CSS Flask */
.cva-public-topbar{background:#133d60;color:#fff;padding:15px 24px;border-bottom:3px solid #1c6bb5;font-family:Arial,Helvetica,sans-serif}
.cva-public-topbar-inner{max-width:1120px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cva-public-brand{font-size:19px;font-weight:700}.cva-public-context{font-size:13px;color:#dceaf7}
@media(max-width:600px){.cva-public-topbar{padding:12px 16px}.cva-public-brand{font-size:17px}}

#izi-chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  border-radius: 30px;
  box-shadow: 0 4px 18px #0003;
}
#izi-chat-panel {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 85px;
  width: min(380px, calc(100vw - 40px));
  max-height: min(600px, calc(100vh - 110px));
  overflow-y: auto;
  background: white;
  border-radius: 14px;
  box-shadow: 0 6px 28px #0004;
  z-index: 1000;
}
#izi-chat-panel.izi-ouvert {
  display: block;
}

/* CVA_CORRECTION_DEFILEMENT_IZI */
#izi-chat-panel {
  overflow: hidden;
  max-height: calc(100dvh - 110px);
}
#izi-chat-panel #izi-chat {
  margin: 0;
  max-height: calc(100dvh - 110px);
  overflow: hidden;
}
#izi-chat-panel #izi-messages {
  max-height: min(280px, 32dvh);
  overflow-y: auto;
}
#izi-chat-panel .izi-input-bar {
  position: relative;
}
@media (max-width: 600px) {
  #izi-chat-panel {
    right: 10px;
    bottom: 75px;
    width: calc(100vw - 20px);
  }
  #izi-chat-toggle {
    right: 10px;
    bottom: 10px;
  }
}

/* Styles formerly embedded in the preview template; CSP-compatible. */

.cva-avis-local{position:relative;background:#fff3cd;color:#5b4300;padding:14px 20px;text-align:center;font-weight:bold;border-bottom:2px solid #d9aa31}

.cva-categorie-select{width:100%;padding:10px}
