*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

body{
  background:transparent;
}

/* Mode page complète : quand on ouvre https://cb06.fr/chatbot/ directement */
body.cb06-standalone{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  background:
    radial-gradient(circle at top left, rgba(0,212,255,.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(0,119,255,.14), transparent 32%),
    linear-gradient(135deg,#f4f8fb,#ffffff);
}

/* Mode iframe : quand le chatbot est dans la bulle */
body.cb06-embedded{
  background:transparent;
  overflow:hidden;
}

.cb06-widget{
  width:390px;
  height:620px;
  max-width:100vw;
  max-height:100vh;
  background:#07111f;
  color:#eaf6ff;
  border:1px solid rgba(0,212,255,.25);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 24px 80px rgba(0,0,0,.45);
  display:flex;
  flex-direction:column;
}

/* Taille plus jolie quand la page est ouverte directement sur ordinateur */
body.cb06-standalone .cb06-widget{
  width:min(520px, calc(100vw - 64px));
  height:min(760px, calc(100vh - 64px));
  border-radius:28px;
  box-shadow:0 35px 110px rgba(7,17,31,.28);
}

/* Petit habillage premium autour en mode PC */
body.cb06-standalone::before{
  content:"Diagnostic gratuit CB06";
  position:fixed;
  top:32px;
  left:50%;
  transform:translateX(-50%);
  font-weight:900;
  color:#07111f;
  font-size:22px;
  letter-spacing:-.03em;
}

body.cb06-standalone::after{
  content:"Décrivez votre panne informatique, obtenez une première orientation et demandez un rappel.";
  position:fixed;
  bottom:28px;
  left:50%;
  transform:translateX(-50%);
  color:#5b6b7c;
  font-size:14px;
  text-align:center;
  width:min(760px, calc(100vw - 40px));
}

.cb06-header{
  background:linear-gradient(135deg,#07111f,#0b2742);
  padding:16px;
  border-bottom:1px solid rgba(255,255,255,.08);
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}

body.cb06-standalone .cb06-header{
  padding:20px;
}

.cb06-header strong{
  display:block;
  font-size:17px;
}

body.cb06-standalone .cb06-header strong{
  font-size:20px;
}

.cb06-header span{
  display:block;
  font-size:12px;
  color:#a8c3dd;
  margin-top:3px;
}

.cb06-status{
  color:#37ff9b;
  font-size:12px;
  white-space:nowrap;
}

.cb06-body{
  flex:1;
  overflow:auto;
  padding:16px;
}

body.cb06-standalone .cb06-body{
  padding:22px;
}

.msg{
  padding:12px 14px;
  border-radius:16px;
  margin-bottom:12px;
  line-height:1.45;
  font-size:14px;
}

body.cb06-standalone .msg{
  font-size:15px;
  padding:16px 18px;
}

.bot{
  background:#10233b;
  border:1px solid rgba(255,255,255,.08);
}

.user{
  background:#00d4ff;
  color:#00111f;
  margin-left:40px;
  font-weight:600;
}

.quick-buttons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

body.cb06-standalone .quick-buttons{
  gap:12px;
}

.quick-buttons button{
  background:#0f2b49;
  color:#eaf6ff;
  border:1px solid rgba(0,212,255,.25);
  border-radius:14px;
  padding:11px;
  font-weight:700;
  cursor:pointer;
  text-align:left;
  transition:.18s ease;
}

body.cb06-standalone .quick-buttons button{
  padding:15px;
  font-size:15px;
}

.quick-buttons button:hover{
  background:#12375e;
  transform:translateY(-1px);
}

.lead-box{
  padding:12px;
  background:#0b1b2f;
  border-top:1px solid rgba(255,255,255,.08);
}

body.cb06-standalone .lead-box{
  padding:16px;
}

.lead-box input{
  width:100%;
  margin-bottom:8px;
  padding:11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:#07111f;
  color:white;
}

body.cb06-standalone .lead-box input{
  padding:13px;
}

.lead-box button,
.lead-box a{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  border:0;
  border-radius:12px;
  padding:12px;
  margin-top:8px;
  font-weight:800;
  cursor:pointer;
}

.lead-box button{
  background:#00d4ff;
  color:#00111f;
}

.lead-box a{
  background:#25d366;
  color:#001b0a;
}

.lead-box .call-btn{
  background:#ffffff;
  color:#07111f;
}

.cb06-input{
  display:flex;
  gap:8px;
  padding:12px;
  background:#07111f;
  border-top:1px solid rgba(255,255,255,.08);
}

body.cb06-standalone .cb06-input{
  padding:16px;
}

.cb06-input input{
  flex:1;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:#0b1b2f;
  color:white;
}

.cb06-input button{
  border:0;
  border-radius:14px;
  padding:12px;
  background:#00d4ff;
  color:#00111f;
  font-weight:800;
}

/* Mobile : plein écran */
@media(max-width:600px){
  body,
  body.cb06-standalone,
  body.cb06-embedded{
    padding:0;
    display:block;
    background:#07111f;
  }

  body.cb06-standalone::before,
  body.cb06-standalone::after{
    display:none;
  }

  .cb06-widget,
  body.cb06-standalone .cb06-widget{
    width:100vw;
    height:100vh;
    max-width:100vw;
    max-height:100vh;
    border-radius:0;
    border:0;
  }
}

/* =========================================================
   CB06 - Suppression du gras dans tout le chatbot
   ========================================================= */

.cb06-widget,
.cb06-widget *,
#cb06-chatbot-launcher,
#cb06-chatbot-frame {
    font-weight: 400 !important;
}

.cb06-widget strong,
.cb06-widget b,
.cb06-widget .cb06-header strong,
.cb06-widget button,
.cb06-widget input,
.cb06-widget a,
.cb06-widget .msg,
.cb06-widget .bot,
.cb06-widget .user {
    font-weight: 400 !important;
}

.cb06-widget .cb06-header strong {
    letter-spacing: 0 !important;
}

#cb06-chatbot-launcher {
    font-weight: 500 !important;
}

/* =========================================================
   CB06 Chatbot V2.2 - Upload + suppression du gras
   ========================================================= */

.cb06-widget,
.cb06-widget *,
#cb06-chatbot-launcher,
#cb06-chatbot-frame {
    font-weight: 400 !important;
}

.cb06-widget strong,
.cb06-widget b,
.cb06-widget .cb06-header strong,
.cb06-widget button,
.cb06-widget input,
.cb06-widget select,
.cb06-widget label,
.cb06-widget a,
.cb06-widget .msg,
.cb06-widget .bot,
.cb06-widget .user {
    font-weight: 400 !important;
}

.lead-box select {
    width: 100%;
    margin-bottom: 8px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: #07111f;
    color: white;
}

.upload-label {
    display: block;
    width: 100%;
    margin: 8px 0;
    padding: 11px;
    border-radius: 12px;
    border: 1px dashed rgba(0,212,255,.4);
    background: rgba(0,212,255,.06);
    color: #eaf6ff;
    cursor: pointer;
}

.upload-label input {
    display: block;
    width: 100%;
    margin-top: 8px;
    color: #eaf6ff;
    font-size: 12px;
}

#cb06-chatbot-launcher {
    font-weight: 500 !important;
}

/* =========================================================
   CB06 Chatbot V2.3 - Base pannes élargie + lisibilité
   ========================================================= */

.cb06-widget,
.cb06-widget *,
#cb06-chatbot-launcher,
#cb06-chatbot-frame {
    font-weight: 400 !important;
}

.quick-buttons {
    grid-template-columns: 1fr 1fr !important;
}

.quick-buttons button {
    font-size: 13px !important;
    line-height: 1.25 !important;
    min-height: 46px !important;
}

body.cb06-standalone .quick-buttons button {
    font-size: 14px !important;
}

@media(max-width:600px){
    .quick-buttons button {
        font-size: 13px !important;
        padding: 10px !important;
    }
}

/* =========================================================
   CB06 Chatbot - Lisibilité V2.3.1
   Texte plus grand + meilleure lecture sur ordinateur
   ========================================================= */

.cb06-widget {
    width: 430px !important;
    height: 680px !important;
}

.cb06-body {
    padding: 18px !important;
}

.msg {
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 15px 16px !important;
}

.bot.msg,
.user.msg {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.quick-buttons button {
    font-size: 15px !important;
    line-height: 1.35 !important;
    min-height: 50px !important;
    padding: 13px !important;
}

.lead-box input,
.lead-box select,
.cb06-input input {
    font-size: 15px !important;
    padding: 13px !important;
}

.lead-box button,
.lead-box a,
.cb06-input button {
    font-size: 15px !important;
    padding: 13px !important;
}

.upload-label {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.cb06-header strong {
    font-size: 18px !important;
}

.cb06-header span,
.cb06-status {
    font-size: 13px !important;
}

/* Fenêtre intégrée sur PC */
#cb06-chatbot-frame {
    width: 430px !important;
    height: 680px !important;
    max-height: calc(100vh - 105px) !important;
}

/* Bouton flottant */
#cb06-chatbot-launcher {
    font-size: 15px !important;
    padding: 15px 20px !important;
}

/* Sur mobile on garde plein écran mais plus lisible */
@media(max-width:600px){
    .cb06-widget {
        width: 100vw !important;
        height: 100vh !important;
    }

    .msg {
        font-size: 15.5px !important;
        line-height: 1.6 !important;
    }

    .quick-buttons button {
        font-size: 14.5px !important;
    }

    #cb06-chatbot-frame {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }
}

/* =========================================================
   CB06 Chatbot V2.3.2 - Desktop propre et lisible
   ========================================================= */

.cb06-widget {
    width: 500px !important;
    height: 690px !important;
    max-height: 690px !important;
}

.cb06-header {
    padding: 14px 16px !important;
    flex-shrink: 0 !important;
}

.cb06-header strong {
    font-size: 17px !important;
    font-weight: 400 !important;
}

.cb06-header span,
.cb06-status {
    font-size: 12px !important;
}

.cb06-body {
    min-height: 230px !important;
    max-height: 310px !important;
    overflow-y: auto !important;
    padding: 16px !important;
    flex: 1 1 auto !important;
}

.msg {
    font-size: 16px !important;
    line-height: 1.6 !important;
    padding: 14px 16px !important;
}

.lead-box {
    flex-shrink: 0 !important;
    padding: 12px !important;
    max-height: 330px !important;
    overflow-y: auto !important;
}

.lead-box input,
.lead-box select {
    height: 43px !important;
    min-height: 43px !important;
    margin-bottom: 7px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.upload-label {
    padding: 10px !important;
    margin: 7px 0 !important;
    font-size: 14px !important;
}

.upload-label input {
    font-size: 13px !important;
    margin-top: 7px !important;
}

.lead-box button,
.lead-box a {
    padding: 11px 12px !important;
    margin-top: 7px !important;
    font-size: 14px !important;
    min-height: 42px !important;
}

.cb06-input {
    flex-shrink: 0 !important;
    padding: 10px !important;
}

.cb06-input input {
    height: 42px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.cb06-input button {
    height: 42px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.quick-buttons button {
    font-size: 14px !important;
    min-height: 44px !important;
    padding: 11px !important;
}

/* Mobile : plein écran confortable */
@media(max-width:700px){
    .cb06-widget {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
    }

    .cb06-body {
        max-height: none !important;
        min-height: 260px !important;
    }

    .lead-box {
        max-height: 42vh !important;
    }
}

/* =========================================================
   CB06 Chatbot V2.3.3 - UX optimisée desktop/mobile
   Formulaire uniquement après clic "Être rappelé"
   ========================================================= */

.cb06-widget {
    width: 470px !important;
    height: 650px !important;
    max-height: 650px !important;
}

.cb06-header {
    padding: 14px 16px !important;
    flex-shrink: 0 !important;
}

.cb06-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding: 16px !important;
}

.msg {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    padding: 14px 15px !important;
}

.bot.msg {
    background: #10233b !important;
}

.user.msg {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.quick-buttons {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.quick-buttons button {
    font-size: 14px !important;
    min-height: 42px !important;
    padding: 10px 11px !important;
    border-radius: 13px !important;
}

.choice-cta {
    flex-shrink: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    background: #0b1b2f !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.choice-cta button,
.choice-cta a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 12px !important;
    font-size: 14.5px !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.choice-cta button {
    background: #00d4ff !important;
    color: #00111f !important;
}

.choice-cta a {
    background: #25d366 !important;
    color: #001b0a !important;
}

.choice-cta .call-btn {
    background: #ffffff !important;
    color: #07111f !important;
}

.lead-box {
    flex-shrink: 0 !important;
    max-height: 310px !important;
    overflow-y: auto !important;
    padding: 12px !important;
    background: #0b1b2f !important;
}

.lead-box input,
.lead-box select {
    height: 42px !important;
    min-height: 42px !important;
    margin-bottom: 7px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.upload-label {
    padding: 10px !important;
    margin: 7px 0 !important;
    font-size: 14px !important;
}

.upload-label input {
    font-size: 12.5px !important;
    margin-top: 6px !important;
}

.lead-box button,
.lead-box a {
    padding: 11px 12px !important;
    margin-top: 7px !important;
    font-size: 14px !important;
    min-height: 41px !important;
}

.cb06-input {
    flex-shrink: 0 !important;
    padding: 10px !important;
}

.cb06-input input {
    height: 42px !important;
    padding: 10px 12px !important;
    font-size: 14px !important;
}

.cb06-input button {
    height: 42px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.cb06-widget *,
#cb06-chatbot-launcher {
    font-weight: 400 !important;
}

@media(max-width:700px){
    .cb06-widget {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .msg {
        font-size: 15.5px !important;
    }

    .lead-box {
        max-height: 43vh !important;
    }
}

/* ===== Fix mobile iPhone : espace en bas ===== */
@media(max-width:700px){
  .cb06-widget{
    height:100dvh !important;
    max-height:100dvh !important;
  }

  .cb06-body{
    padding-bottom:12px !important;
  }

  .cb06-input{
    padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .cb06-input input,
  .cb06-input button{
    min-height:44px !important;
  }
}

/* =========================================================
   CB06 Chatbot V2.4 - UX propre mobile + desktop
   ========================================================= */

html,
body {
    overscroll-behavior: contain !important;
}

.cb06-widget {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    font-weight: 400 !important;
}

.cb06-widget * {
    font-weight: 400 !important;
}

.cb06-header {
    flex-shrink: 0 !important;
    padding: 14px 16px !important;
}

.cb06-header strong {
    font-size: 16px !important;
    font-weight: 500 !important;
}

.cb06-header span,
.cb06-status {
    font-size: 12px !important;
}

.cb06-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 15px !important;
    scroll-behavior: smooth !important;
}

.msg {
    font-size: 15px !important;
    line-height: 1.55 !important;
    padding: 13px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
}

.bot.msg {
    background: #10233b !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.user.msg {
    background: #00d4ff !important;
    color: #00111f !important;
    margin-left: 38px !important;
}

.quick-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.quick-buttons button {
    min-height: 44px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-align: left !important;
    background: #0f2b49 !important;
    border: 1px solid rgba(0,212,255,.25) !important;
    color: #eaf6ff !important;
}

.quick-buttons button:hover {
    background: #153b63 !important;
}

.choice-cta {
    flex-shrink: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 11px !important;
    background: #0b1b2f !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.choice-cta button,
.choice-cta a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    border: 0 !important;
    border-radius: 13px !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

.choice-cta button {
    background: #00d4ff !important;
    color: #00111f !important;
}

.choice-cta a {
    background: #25d366 !important;
    color: #001b0a !important;
}

.choice-cta .call-btn {
    background: #ffffff !important;
    color: #07111f !important;
}

.lead-box {
    flex-shrink: 0 !important;
    max-height: 46% !important;
    overflow-y: auto !important;
    padding: 11px !important;
    background: #0b1b2f !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.lead-box input,
.lead-box select {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    margin-bottom: 7px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    background: #07111f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}

.upload-label {
    display: block !important;
    padding: 10px !important;
    margin: 7px 0 !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: rgba(0,212,255,.06) !important;
    border: 1px dashed rgba(0,212,255,.4) !important;
}

.upload-label input {
    margin-top: 6px !important;
    font-size: 12px !important;
}

.lead-box button,
.lead-box a {
    padding: 11px 12px !important;
    margin-top: 7px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    min-height: 41px !important;
}

.cb06-input {
    flex-shrink: 0 !important;
    display: flex !important;
    gap: 8px !important;
    padding: 10px !important;
    background: #07111f !important;
    border-top: 1px solid rgba(255,255,255,.08) !important;
}

.cb06-input input {
    height: 42px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}

.cb06-input button {
    height: 42px !important;
    min-height: 42px !important;
    padding: 10px 13px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}

/* Mobile ultra propre */
@media(max-width:700px) {
    body {
        background: transparent !important;
    }

    .cb06-widget {
        border-radius: 22px !important;
        border: 1px solid rgba(0,212,255,.22) !important;
        height: 100% !important;
    }

    .cb06-header {
        padding: 13px 15px !important;
    }

    .cb06-body {
        padding: 14px !important;
    }

    .msg {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .quick-buttons {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .quick-buttons button {
        font-size: 14px !important;
        min-height: 46px !important;
    }

    .lead-box {
        max-height: 44% !important;
    }

    .cb06-input {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Très petits écrans */
@media(max-width:390px) {
    .quick-buttons button {
        font-size: 13px !important;
        padding: 9px !important;
    }

    .msg {
        font-size: 14px !important;
    }
}

/* ===== CB06 DESKTOP CENTER OVERRIDE v23 ===== */

html, body{
  min-height:100%;
}

body{
  margin:0;
  min-height:100vh;
  padding:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#edf3f9 0%, #eaf1f8 100%);
}

.cb06-widget{
  width:min(100%, 470px) !important;
  max-width:470px !important;
  height:min(calc(100vh - 48px), 760px) !important;
  max-height:760px !important;
  margin:0 auto !important;
  border-radius:26px !important;
  box-shadow:0 28px 90px rgba(0,0,0,.24) !important;
  overflow:hidden !important;
}

.cb06-header{
  padding:18px 18px 14px 18px !important;
}

.cb06-body{
  padding:14px !important;
}

.msg{
  font-size:15px !important;
  line-height:1.6 !important;
}

.cb06-body .bot,
.cb06-body .user{
  font-size:15px !important;
  line-height:1.6 !important;
}

.cb06-input{
  padding:12px !important;
}

.cb06-input input,
.cb06-input textarea,
.cb06-input select,
.lead-box input,
.lead-box select,
.lead-box textarea{
  font-size:15px !important;
}

.choice-cta{
  display:grid;
  gap:10px;
}

.choice-cta button,
.choice-cta a,
.lead-box button{
  min-height:48px !important;
  font-size:15px !important;
  border-radius:14px !important;
}

/* Mobile : on garde le comportement actuel */
@media (max-width: 700px){
  body{
    padding:0 !important;
    display:block !important;
    min-height:auto !important;
    background:transparent !important;
  }

  .cb06-widget{
    width:100vw !important;
    max-width:100vw !important;
    height:100dvh !important;
    max-height:100dvh !important;
    margin:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
}
