/* Autoevaluation page-specific styles only.
   Shared shell, header, footer, lower contact form, partner carousel, and global typography
   continue to come from the existing site CSS files. */

.hero{
  background:url('../IMAGES/generated-no-faces/hero-7-questions.jpg') center/cover no-repeat;
}

.autoeval-intro{
  background:#ffffff;
}

.autoeval-intro-grid{
  display:grid;
  gap:28px;
  max-width:900px;
}

.autoeval-eyebrow{
  display:inline-block;
  margin-bottom:12px;
  color:var(--orange);
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.autoeval-lead{
  margin:0 0 14px;
  color:var(--gris-fonce);
  font-size:18px;
  line-height:1.55;
}

.autoeval-guided-intro .autoeval-lead{
  margin-bottom:20px;
}

.autoeval-intro-list{
  margin:0 0 20px;
  padding-left:20px;
}

.autoeval-intro #startAssessmentBtn{
  --home-cta-bg:#6a6a6a;
  --home-cta-color:#f0f0f0;
  --home-cta-hover-bg:linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.22)), var(--orange);
  --home-cta-hover-color:#ffffff;
  background:var(--home-cta-bg);
  color:var(--home-cta-color);
}

.autoeval-intro #startAssessmentBtn:hover,
.autoeval-intro #startAssessmentBtn:focus{
  background:var(--home-cta-hover-bg);
  color:var(--home-cta-hover-color);
  transform:translateY(-2px);
  box-shadow:var(--cta-hover-shadow);
  filter:none;
}

.autoeval-bullet-list{
  margin:20px 0 0;
  padding-left:20px;
}

.autoeval-bullet-list li,
.autoeval-scale li,
.autoeval-focus-list li{
  margin:8px 0;
}

.autoeval-info-box,
.autoeval-progress-card,
.autoeval-step-card,
.autoeval-score-card,
.autoeval-meta-card,
.autoeval-submit-state,
.autoeval-submit-error{
  background:#fff;
  border:1px solid rgba(30,58,95,.12);
}

.autoeval-info-box,
.autoeval-score-card,
.autoeval-meta-card,
.autoeval-step-card{
  padding:24px;
}

.autoeval-stats{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin:18px 0 20px;
}

.autoeval-stat{
  border:1px solid rgba(30,58,95,.12);
  padding:16px;
  text-align:center;
}

.autoeval-stat strong{
  display:block;
  margin-bottom:6px;
  color:var(--bleu);
  font-size:24px;
}

.autoeval-scale{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid rgba(30,58,95,.12);
}

.autoeval-scale ul,
.autoeval-focus-list{
  margin:10px 0 0;
  padding-left:20px;
}

.autoeval-assessment{
  background:var(--gris);
  color:var(--gris-fonce);
}

.autoeval-assessment[hidden]{
  display:none !important;
}

.autoeval-form{
  margin:0;
}

.autoeval-assessment .wrap{
  max-width:var(--wrap);
}

.autoeval-assessment-head{
  max-width:900px;
  margin-bottom:28px;
}

.autoeval-assessment-head h2,
.autoeval-intro-copy h2{
  margin:0 0 12px;
  color:var(--bleu);
  font-size:28px;
  font-weight:600;
  line-height:1.2;
}

.autoeval-assessment-head p,
.autoeval-intro-copy p{
  max-width:900px;
}

.autoeval-stepper-shell{
  display:grid;
  gap:26px;
}

.autoeval-step{
  display:none;
}

.autoeval-step.is-active{
  display:block;
}

.autoeval-step-title{
  margin:0 0 18px;
  color:var(--bleu);
  font-size:28px;
  line-height:1.2;
}

.autoeval-info-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px 18px;
}

.autoeval-field label{
  display:block;
  margin-bottom:8px;
  color:var(--bleu);
  font-weight:700;
}

.autoeval-field label span{
  font-weight:400;
}

.autoeval-field input{
  width:100%;
  padding:12px;
  border:1px solid rgba(30,58,95,.16);
  outline:none;
  font:inherit;
}

.autoeval-field input:focus{
  border-color:var(--bleu-clair);
}

.autoeval-progress-card{
  margin:0;
  padding:18px 20px;
}

.autoeval-progress-track{
  width:100%;
  height:10px;
  margin-top:14px;
  overflow:hidden;
  border-radius:999px;
  background:#d9dee2;
}

.autoeval-progress-track span{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg, var(--orange), var(--bleu-clair));
  transition:width .25s ease;
}

.autoeval-questions{
  display:grid;
  gap:26px;
}

.autoeval-question{
  display:none;
}

.autoeval-question.is-active{
  display:block;
}

.autoeval-step--question .autoeval-step-card{
  border-top:3px solid var(--bleu);
}

.autoeval-axis{
  margin:0 0 12px;
  color:var(--orange);
  font-size:12px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.autoeval-question-line{
  margin:0 0 10px;
  color:var(--bleu);
  font-size:24px;
  font-weight:700;
  line-height:1.3;
}

.autoeval-option-list{
  margin:0;
  padding:0;
  list-style:none;
}

.autoeval-option-list li{
  margin:10px 0;
}

.autoeval-option{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border:0;
  background:transparent;
  color:var(--noir);
  cursor:pointer;
  transition:background-color .18s ease, color .18s ease;
}

.autoeval-option input[type="radio"]{
  margin:0;
  cursor:pointer;
}

.autoeval-option:hover,
.autoeval-option:focus-within{
  background:rgba(30,58,95,.04);
  color:var(--bleu);
  box-shadow:none;
}

.autoeval-step-actions{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  width:100%;
}

.autoeval-step-actions__left,
.autoeval-step-actions__right{
  display:flex;
  gap:12px;
}

.autoeval-step-actions__right{
  margin-left:auto;
}

.autoeval-submit-btn,
.autoeval-reset-btn{
  --autoeval-cta-bg:#6a6a6a;
  --autoeval-cta-color:#f0f0f0;
  --autoeval-cta-hover-bg:linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.22)), var(--orange);
  --autoeval-cta-hover-color:#ffffff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:var(--cta-pad-y) var(--cta-pad-x);
  border:none;
  background:var(--autoeval-cta-bg);
  color:var(--autoeval-cta-color);
  font-size:var(--cta-font-size);
  font-weight:var(--cta-font-weight);
  line-height:1;
  border-radius:var(--cta-radius);
  text-decoration:none;
  text-align:center;
  white-space:normal;
  cursor:pointer;
  box-shadow:none;
  appearance:none;
  -webkit-appearance:none;
  transition:var(--cta-transition);
}

.autoeval-submit-btn:hover,
.autoeval-submit-btn:focus,
.autoeval-reset-btn:hover,
.autoeval-reset-btn:focus{
  background:var(--autoeval-cta-hover-bg);
  color:var(--autoeval-cta-hover-color);
  transform:translateY(-2px);
  box-shadow:var(--cta-hover-shadow);
  filter:none;
}

.autoeval-submit-btn:active,
.autoeval-reset-btn:active{
  transform:translateY(0);
  box-shadow:var(--cta-active-shadow);
}

.autoeval-submit-btn:focus-visible,
.autoeval-reset-btn:focus-visible,
.autoeval-field input:focus-visible{
  outline:3px solid rgba(30,58,95,.24);
  outline-offset:2px;
}

.autoeval-submit-btn:disabled,
.autoeval-reset-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}

.autoeval-validation{
  display:block;
  color:#9d2e12;
  font-weight:700;
}

.autoeval-validation[hidden],
.autoeval-access-feedback[hidden],
.autoeval-submit-state[hidden],
.autoeval-submit-error[hidden],
.autoeval-stepper[hidden],
.autoeval-results[hidden],
.autoeval-final-btn[hidden],
.autoeval-next-btn[hidden]{
  display:none !important;
}

.autoeval-submit-state,
.autoeval-submit-error{
  padding:16px 18px;
}

.autoeval-submit-state{
  color:var(--bleu);
  font-weight:700;
}

.autoeval-stepper.is-submitting .autoeval-progress-card,
.autoeval-stepper.is-submitting .autoeval-questions,
.autoeval-stepper.is-submitting .autoeval-step-actions,
.autoeval-stepper.is-submitting .autoeval-validation,
.autoeval-stepper.is-submitting .autoeval-submit-error{
  display:none !important;
}

.autoeval-stepper.is-submitting .autoeval-submit-state{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  padding:48px 18px;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:center;
  color:var(--bleu);
  font-size:clamp(1.45rem, 3vw, 2rem);
  font-weight:700;
  line-height:1.2;
}

.autoeval-loading-dots::after{
  content:'...';
  display:inline-block;
  width:0;
  overflow:hidden;
  margin-left:2px;
  text-align:left;
  vertical-align:bottom;
  animation:autoeval-loading-dots 1.2s steps(4, end) infinite;
}

@keyframes autoeval-loading-dots{
  from{width:0;}
  to{width:1.4em;}
}

.autoeval-submit-error{
  color:#9d2e12;
  font-weight:700;
}

.autoeval-access-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.autoeval-review-overlay{
  position:fixed;
  inset:0;
  z-index:99998;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.autoeval-access-overlay.is-open,
.autoeval-review-overlay.is-open{
  display:flex;
}

.autoeval-access-overlay.is-submitting .autoeval-access-close{
  display:none;
}

.autoeval-access-backdrop{
  position:absolute;
  inset:0;
  background:rgba(30,58,95,.42);
  backdrop-filter:blur(6px);
}

.autoeval-review-backdrop{
  position:absolute;
  inset:0;
  background:rgba(30,58,95,.12);
}

.autoeval-access-card{
  position:relative;
  z-index:1;
  width:min(100%, 560px);
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:24px;
  border-top:4px solid var(--orange);
  border-radius:12px;
  background:#ffffff;
  color:var(--noir);
  box-shadow:0 18px 40px rgba(30,58,95,.18);
}

.autoeval-review-card{
  position:relative;
  z-index:1;
  width:min(860px, 100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:28px;
  background:#ffffff;
  border:1px solid rgba(30,58,95,.12);
  box-shadow:0 20px 60px rgba(30,58,95,.12);
}

.autoeval-access-card .autoeval-lead{
  margin:8px 0 0;
  color:var(--noir);
  line-height:1.6;
}

.autoeval-review-card .autoeval-lead{
  margin-bottom:22px;
}

.autoeval-access-close,
.autoeval-review-close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--bleu);
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  box-shadow:none;
  outline:none;
}

.autoeval-access-close:hover,
.autoeval-access-close:focus,
.autoeval-access-close:focus-visible,
.autoeval-access-close:active,
.autoeval-review-close:hover,
.autoeval-review-close:focus,
.autoeval-review-close:focus-visible,
.autoeval-review-close:active{
  border:0;
  background:transparent;
  color:var(--orange);
  box-shadow:none;
  outline:none;
}

.autoeval-access-close:focus-visible,
.autoeval-review-close:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}

.autoeval-access-form{
  display:grid;
  gap:0;
  margin-top:18px;
}

.autoeval-access-card .autoeval-step-title{
  margin:0;
  padding-right:44px;
  color:var(--bleu);
  font-size:clamp(1.45rem, 2vw, 2rem);
  line-height:1.15;
}

.autoeval-access-card .autoeval-info-grid{
  grid-template-columns:1fr;
  gap:0;
}

.autoeval-access-card .autoeval-field{
  margin-bottom:10px;
}

.autoeval-access-card .autoeval-field label{
  display:block;
  margin-bottom:6px;
  color:var(--bleu);
  font-size:.92rem;
  font-weight:700;
}

.autoeval-access-card .autoeval-field input{
  width:100%;
  padding:12px 14px;
  border:1px solid rgba(30,58,95,.18);
  border-radius:6px;
  background:#ffffff;
  color:var(--noir);
  outline:none;
  box-shadow:none;
}

.autoeval-access-card .autoeval-field input:focus{
  border-color:var(--orange);
  box-shadow:0 0 0 3px rgba(220,80,20,.16);
}

.autoeval-access-card .autoeval-step-actions--info{
  margin-top:14px;
}

.autoeval-access-card .autoeval-step-actions--info .autoeval-step-actions__right{
  margin-left:0;
}

.autoeval-access-card #autoevalAccessSubmit{
  min-width:220px;
  padding:14px 28px;
  border:2px solid var(--orange);
  border-radius:var(--cta-radius);
  background:var(--orange);
  color:#ffffff;
  font-size:.98rem;
  font-weight:700;
  line-height:1.2;
  box-shadow:0 8px 18px rgba(30,58,95,.12);
  transition:transform .18s ease, opacity .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.autoeval-access-card #autoevalAccessSubmit:not(:disabled):hover,
.autoeval-access-card #autoevalAccessSubmit:not(:disabled):focus-visible{
  background:var(--orange);
  border-color:var(--orange);
  color:#ffffff;
  transform:none;
  filter:brightness(.92);
  box-shadow:0 10px 22px rgba(30,58,95,.16);
}

.autoeval-access-card #autoevalAccessSubmit:disabled{
  background:#8d99a6;
  border-color:#8d99a6;
  color:#ffffff;
  opacity:1;
  box-shadow:none;
  filter:none;
  transform:none;
}

.autoeval-frame-lead[hidden],
.autoeval-frame-quiz[hidden]{
  display:none !important;
}

.autoeval-frame-quiz .autoeval-stepper{
  display:block;
}

.autoeval-frame-quiz .autoeval-progress-card{
  padding:0 0 18px;
  border:0;
  border-bottom:1px solid rgba(30,58,95,.12);
}

.autoeval-frame-quiz .autoeval-step-card{
  padding:22px 0 0;
  border:0;
  background:transparent;
}

.autoeval-frame-quiz .autoeval-step--question .autoeval-step-card{
  border-top:0;
}

.autoeval-frame-quiz .autoeval-step-actions--questions{
  padding-top:18px;
}

.autoeval-access-feedback{
  min-height:24px;
  margin-top:10px;
  color:var(--orange);
  font-size:.94rem;
  font-weight:400;
  line-height:1.45;
}

.autoeval-review-list{
  display:grid;
  gap:12px;
}

.autoeval-review-item{
  padding:16px 18px;
  border:1px solid rgba(30,58,95,.12);
  background:#ffffff;
}

.autoeval-review-item h4{
  margin:0 0 8px;
  color:var(--orange);
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
}

.autoeval-review-question{
  margin:0 0 10px;
  color:var(--bleu);
  font-weight:700;
}

.autoeval-review-answer{
  margin:0;
  color:var(--gris-fonce);
  font-weight:700;
}

.autoeval-results-shell{
  display:flex;
  justify-content:center;
  padding-bottom:18px;
}

.autoeval-score-card,
.autoeval-meta-card{
  border-top:3px solid var(--bleu);
}

.autoeval-meta-card{
  border-top-color:var(--orange);
}

.autoeval-score-card{
  width:min(100%, 760px);
  padding:32px;
  background:var(--gris);
  color:var(--gris-fonce);
  text-align:center;
}

.autoeval-indice-panel{
  background:var(--bleu);
  color:#ffffff;
}

.autoeval-score{
  margin:16px 0 10px;
  color:var(--bleu);
  font-size:clamp(54px, 8vw, 86px);
  font-weight:800;
  line-height:.95;
}

.autoeval-badge{
  display:inline-flex;
  margin-bottom:18px;
  padding:7px 16px;
  border:0;
  background:var(--gris);
  color:var(--bleu);
  font-weight:700;
  line-height:1.2;
}

.autoeval-result-note{
  max-width:620px;
  margin:24px auto 0;
  color:var(--bleu);
  font-weight:700;
  line-height:1.5;
}

.autoeval-score-card #scoreText{
  max-width:620px;
  margin:0 auto;
  color:var(--gris-fonce);
  line-height:1.6;
}

.autoeval-result-summary{
  max-width:620px;
  margin:14px auto 0;
  color:var(--gris-fonce);
  line-height:1.6;
}

.autoeval-focus-block{
  max-width:620px;
  margin:30px auto 0;
  text-align:left;
}

.autoeval-focus-block h3{
  margin:0 0 12px;
  color:var(--bleu);
  font-size:1.05rem;
  line-height:1.3;
}

.autoeval-focus-list{
  margin:12px 0 0;
  padding-left:1.2em;
}

.autoeval-radar-card{
  margin:22px 0;
}

.autoeval-radar{
  max-width:460px;
}

.autoeval-radar svg{
  display:block;
  width:100%;
  height:auto;
}

.autoeval-cta-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:22px;
  margin-top:30px;
}

.autoeval-results .autoeval-submit-btn,
.autoeval-results .autoeval-reset-btn{
  --autoeval-cta-bg:#6a6a6a;
  --autoeval-cta-color:#f0f0f0;
  --autoeval-cta-hover-bg:linear-gradient(180deg, rgba(255,255,255,0.16), rgba(0,0,0,0.22)), var(--orange);
  --autoeval-cta-hover-color:#ffffff;
  min-width:210px;
}

.autoeval-results .autoeval-submit-btn:hover,
.autoeval-results .autoeval-reset-btn:hover,
.autoeval-results .autoeval-submit-btn:focus,
.autoeval-results .autoeval-reset-btn:focus{
  background:var(--autoeval-cta-hover-bg);
  color:var(--autoeval-cta-hover-color);
  transform:translateY(-2px);
  box-shadow:var(--cta-hover-shadow);
  filter:none;
}

@media (max-width: 980px){
  .autoeval-stats,
  .autoeval-info-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 700px){
  .autoeval-question-line{
    font-size:20px;
  }

  .autoeval-results-shell{
    padding-bottom:8px;
  }

  .autoeval-score-card{
    padding:24px 18px;
  }

  .autoeval-score{
    font-size:clamp(48px, 18vw, 68px);
  }

  .autoeval-focus-block{
    margin-top:24px;
  }

  .autoeval-step-actions,
  .autoeval-step-actions__left,
  .autoeval-step-actions__right,
  .autoeval-cta-row{
    flex-direction:column;
    align-items:stretch;
  }

  .autoeval-step-actions__right,
  .autoeval-step-actions__left{
    margin-left:0;
  }

  .autoeval-submit-btn,
  .autoeval-reset-btn{
    min-width:0;
    width:100%;
  }

  .autoeval-cta-row{
    gap:12px;
    margin-top:24px;
  }
}
