/* ==========================================================
   Captain-Radar – UI Futuriste  v1.3.1
   Palette : primary #070C59 | secondary #E4EBF4 | text #1D1D35
   ========================================================== */

   :root{
    --primary:#070C59;
    --secondary:#E4EBF4;
    --text:#1D1D35;
    --accent-start:#007BFF;
    --accent-end:#00D4FF;
    --radius:16px;
  }
  
  *{box-sizing:border-box}
  
  /* ---------- Barre de progression ---------- */
  
  #crc-progress{
    height:6px;
    background:rgba(226,232,240,0.9);
    border-radius:999px;
    overflow:hidden;
    margin-bottom:24px;
  }
  #crc-progress-bar{
    height:100%;
    width:0;
    background:linear-gradient(90deg,var(--accent-start),var(--accent-end));
    background-size:200% 100%;
    animation:gradientShift 3s infinite linear;
    transition:width .4s;
  }
  @keyframes gradientShift{
    0%  {background-position:0 0;}
    100%{background-position:100% 0;}
  }
  
  /* ---------- Conteneurs formulaire / résultat ---------- */
  
  #crc-form,
  #crc-result{
    font-family:'Inter',sans-serif;
    max-width:640px;
    margin:16px auto 0;
    padding:28px 32px;
    border-radius:24px;
    background:#FFFFFF;
    border:1px solid rgba(226,232,240,0.9);
    box-shadow:0 14px 30px rgba(15,23,42,0.06);
  }

/* ---------- Questions ---------- */
  .crc-question{
    opacity:0;
    transform:translateY(20px);
    transition:opacity .6s ease,transform .6s ease;
  }
  .crc-question.active{opacity:1;transform:none;}
  
  #crc-form label{
    font-family:'Poppins',sans-serif;
    font-weight:600;
    font-size:20px;
    color:var(--text);
  }
  
  .crc-radio-group{
    display:inline-flex;
    gap:12px;
    margin-top:16px;
    padding:4px;
    border-radius:999px;
    background:rgba(255,255,255,0.8);
    box-shadow:0 1px 3px rgba(15,23,42,0.08);
  }
  .crc-radio-group input[type=radio]{
    position:absolute;
    opacity:0;
    pointer-events:none;
  }
  .crc-radio-group label{
    position:relative;
    padding:10px 22px;
    border-radius:999px;
    font-size:16px;
    font-weight:500;
    color:rgba(15,23,42,0.8);
    cursor:pointer;
    transition:background .2s ease,color .2s ease,box-shadow .2s ease,transform .08s ease-out;
    white-space:nowrap;
  }
  .crc-radio-group input[type=radio]:checked + label{
    background:linear-gradient(135deg,var(--accent-start),var(--accent-end));
    color:#fff;
    box-shadow:0 6px 18px rgba(15,23,42,0.18);
  }
  .crc-radio-group label:active{
    transform:scale(0.97);
  }
 Bootstrap */
    font-family:'Inter',sans-serif;
    font-weight:500;
    font-size:18px;
    padding:14px 32px;
    border-radius:40px;
    transition:transform .2s,box-shadow .2s,background .3s,color .3s;
    outline:none;
    border:none;
    cursor:pointer;
    position:relative;
    overflow:hidden;
  }
  
  .btn-primary-main{
    background:var(--primary);
    color:#FFF;
  }
  .btn-primary-main:hover{
    background:#03073a;
  }
  
  .btn-secondary,
  .btn.btn-secondary{
    background:transparent !important;
    border:2px solid var(--primary) !important;
    color:var(--primary) !important;
  }
  .btn-secondary:hover,
  .btn.btn-secondary:hover{
    background:var(--primary) !important;
    color:#FFF !important;
  }
  
  .btn-primary-main:hover,
  .btn-secondary:hover,
  .btn.btn-secondary:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 16px rgba(0,0,0,.2);
  }
  
  /* Ripple effect */
  .btn-primary-main::after,
  .btn-secondary::after,
  .btn.btn-secondary::after{
    content:'';
    position:absolute;
    top:50%;left:50%;
    width:0;height:0;
    background:rgba(255,255,255,.3);
    border-radius:50%;
    transform:translate(-50%,-50%);
    transition:width .6s,height .6s,opacity .8s;
    pointer-events:none;
  }
  .btn-primary-main:active::after,
  .btn-secondary:active::after,
  .btn.btn-secondary:active::after{
    width:200px;height:200px;opacity:0;
  }
  
  /* ---------- Résultats positifs / négatifs ---------- */
  #crc-result{
    font-size:20px;
    color:var(--text);
    line-height:1.6em;
    display:none;
  }
  
  #crc-result.positive{border:1px solid #34C759;color:#065F46;}
  #crc-result.negative{border:1px solid #FF3B30;color:#7F1D1D;}
  
  /* ---------- Responsive ---------- */
  @media(max-width:600px){
    #crc-form,#crc-result{padding:24px}
    .crc-radio-group{gap:20px}
    #crc-result{font-size:18px}
  }
  

  /* ---------- Disclaimer ---------- */
  .crc-disclaimer{
    max-width:640px;
    margin:12px auto 0;
    font-size:12px;
    line-height:1.5;
    color:rgba(29,29,53,0.75);
  }


/* ---------- Wrapper & Header (new UI 2026) ---------- */

.crc-wrapper{
  max-width:760px;
  margin:32px auto;
  padding:24px;
  border-radius:32px;
  background:linear-gradient(135deg, #F5F7FB 0%, #FFFFFF 45%, #ECF3FF 100%);
  box-shadow:0 18px 40px rgba(15, 23, 42, 0.08);
  border:1px solid rgba(255,255,255,0.9);
}


.crc-header{
  margin-bottom:24px;
  text-align:left;
}

.crc-title{
  font-family:'SF Pro Display','Poppins',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-weight:650;
  font-size:26px;
  letter-spacing:-0.02em;
  margin:0 0 8px;
  color:var(--text);
}

.crc-subtitle{
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:rgba(29,29,53,0.75);
}

/* ---------- Result layout ---------- */
#crc-result{
  position:relative;
}

#crc-result .crc-result-inner{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.crc-result-title{
  font-weight:600;
  font-size:18px;
  margin-bottom:4px;
}

.crc-result-message{
  font-size:16px;
  line-height:1.6;
}

.crc-result-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

.crc-result-mail{
  font-size:14px;
  margin-top:8px;
  color:rgba(29,29,53,0.75);
}

/* ---------- Responsive tweaks ---------- */
@media(max-width:600px){
  .crc-wrapper{
    margin:16px auto;
    padding:16px;
    border-radius:20px;
  }
  .crc-title{
    font-size:20px;
  }
  .crc-subtitle{
    font-size:13px;
  }
}

