/* JF-WEB Audit SEO Local — Styles v1.4 — Conformité RGAA */

.jfweb-audit-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom:2.0rem;
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.6;
}

.jfweb-step { display: none; }
.jfweb-step.active { display: block; }

/* Header */
.jfweb-header { margin-bottom: 1.5rem; }
.jfweb-label {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #72243E;
  background: #FBEAF0;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.jfweb-header h2 {
  font-size: 24px;
  color: #1E5673;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.jfweb-header p {
  font-size: 16px;
  color: #444441;
  margin: 0;
  line-height: 1.6;
}

/* Barre de progression */
.jfweb-progress {
  height: 6px;
  background: #D3D1C7;
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.jfweb-progress-bar {
  height: 100%;
  background: #E91E8C;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Question */
.jfweb-question {
  font-size: 18px;
  font-weight: bold;
  color: #1E5673;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

/* Options */
.jfweb-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.jfweb-opt {
  padding: 14px 18px;
  border: 2px solid #B4B2A9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.jfweb-opt::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #5F5E5A;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.jfweb-opt:hover { border-color: #C4177A; background: #FDF5F9; }
.jfweb-opt:focus { outline: 3px solid #E91E8C; outline-offset: 2px; }
.jfweb-opt.selected {
  border-color: #C4177A;
  background: #FBEAF0;
  color: #1a1a1a;
  font-weight: bold;
}
.jfweb-opt.selected::before { background: #C4177A; border-color: #C4177A; }

/* Hint */
.jfweb-hint {
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.jfweb-hint.warn { background: #FAEEDA; border-left: 4px solid #854F0B; color: #412402; }
.jfweb-hint.info { background: #E6F1FB; border-left: 4px solid #185FA5; color: #042C53; }
.jfweb-hint.alert { background: #FCEBEB; border-left: 4px solid #A32D2D; color: #501313; }

/* Navigation */
.jfweb-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #D3D1C7;
}
.jfweb-counter { font-size: 15px; color: #444441; font-weight: bold; }
.jfweb-btn-prev {
  padding: 11px 20px;
  margin-bottom:2.0rem;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #5F5E5A;
  background: #ffffff;
  color: #1a1a1a;
  transition: background 0.2s;
  min-height: 48px;
}
.jfweb-btn-prev:hover { background: #F1EFE8; }
.jfweb-btn-prev:focus { outline: 3px solid #1E5673; outline-offset: 2px; }
.jfweb-btn-next {
  padding: 11px 20px;
  margin-bottom:2.0rem;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #C4177A;
  background: #C4177A;
  color: #ffffff;
  font-weight: bold;
  transition: background 0.2s;
  min-height: 48px;
}
.jfweb-btn-next:hover { background: #A01263; border-color: #A01263; }
.jfweb-btn-next:focus { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.jfweb-btn-next:disabled {
  background: #D3D1C7;
  margin-bottom:2.0rem;
  border-color: #D3D1C7;
  color: #5F5E5A;
  cursor: not-allowed;
}

/* Jauge de score */
.jfweb-score-preview {
  background: #ffffff;
  border: 2px solid #D3D1C7;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.jfweb-score-preview-label {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444441;
  margin: 0 0 0.75rem;
}
.jfweb-gauge-wrap {
  height: 20px;
  background: #F1EFE8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.jfweb-gauge-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease, background-color 0.6s ease;
  width: 0%;
}
.jfweb-gauge-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #444441;
  margin-bottom: 0.75rem;
}
.jfweb-score-verdict {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Capture email */
.jfweb-capture-box {
  background: #F1EFE8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.jfweb-capture-box h3 { font-size: 20px; color: #1E5673; margin: 0 0 0.5rem; padding:2rem; line-height: 1.3; }
.jfweb-capture-box > p { font-size: 16px; color: #444441; margin: 0 0 1.25rem; line-height: 1.6; }
.jfweb-field-row { display: flex; gap: 10px; margin-bottom: 2.0rem; flex-wrap: wrap; }
.jfweb-field-group { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.jfweb-field-group label { display: block; font-size: 15px; font-weight: bold; color: #1a1a1a; margin-bottom: 4px; }
.jfweb-field-group input {
  padding: 11px 14px;
  border: 2px solid #5F5E5A;
  border-radius: 8px;
  font-size: 16px;
  background: #ffffff;
  color: #1a1a1a;
  min-height: 48px;
}
.jfweb-field-group input:focus { outline: 3px solid #E91E8C; outline-offset: 2px; border-color: #E91E8C; }

/* Case de consentement RGPD */
.jfweb-consent-row { margin-bottom: 14px; }
.jfweb-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444441;
  line-height: 1.5;
  cursor: pointer;
}
.jfweb-consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #E91E8C;
  cursor: pointer;
}
.jfweb-consent-label a { color: #1E5673; text-decoration: underline; }
.jfweb-consent-label a:hover { color: #E91E8C; }
.jfweb-consent-label a:focus { outline: 2px solid #1E5673; outline-offset: 2px; }

.jfweb-btn-submit {
  width: 100%;
  padding: 14px;
  margin-bottom:2.0rem;
  background: #1E5673;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 52px;
}
.jfweb-btn-submit:hover { background: #164460; }
.jfweb-btn-submit:focus { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.jfweb-btn-submit:disabled { background: #5F5E5A; cursor: not-allowed; }
.jfweb-error {
  color: #791F1F;
  font-size: 15px;
  font-weight: bold;
  margin: 10px 0 0;
  padding: 10px 14px;
  background: #FCEBEB;
  border-radius: 6px;
  border-left: 4px solid #791F1F;
}
.jfweb-rgpd { font-size: 13px; color: #444441; margin: 12px 0 0; line-height: 1.6; }
.jfweb-rgpd a { color: #1E5673; text-decoration: underline; }
.jfweb-rgpd a:focus { outline: 2px solid #1E5673; outline-offset: 2px; }

/* Confirmation */
.jfweb-confirm-box { text-align: center; padding: 2.5rem 1rem; }
.jfweb-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #E1F5EE; color: #085041;
  font-size: 24px; font-weight: bold; line-height: 56px;
  margin: 0 auto 1.25rem;
}
.jfweb-confirm-box h3 { font-size: 22px; color: #1E5673; margin: 0 0 0.75rem; }
.jfweb-confirm-box p { font-size: 16px; color: #444441; margin: 0 0 1.5rem; line-height: 1.6; }
.jfweb-btn-cta {
  display: inline-block;
  background: #C4177A; color: #ffffff;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: bold;
  text-decoration: none; transition: background 0.2s;
  min-height: 52px; line-height: 1.4;
}
.jfweb-btn-cta:hover { background: #A01263; color: #ffffff; }
.jfweb-btn-cta:focus { outline: 3px solid #1a1a1a; outline-offset: 3px; }

/* Responsive */
@media (max-width: 480px) {
  .jfweb-header h2 { font-size: 20px; }
  .jfweb-question { font-size: 17px; }
  .jfweb-field-row { flex-direction: column; gap:8px; }
  .jfweb-field-group { min-width: 100%;width:100%; }
  .jfweb-field-group input { width: 100%; box-sizing: border-box; }
  .jfweb-score-preview { padding: 1rem; }
  #jfweb-speedometer { max-width: 100%; overflow: hidden; }
  #jfweb-speedometer svg { width: 100% !important; height: auto !important; }
  .jfweb-capture-box { padding: 1rem; }
.jfweb-nav {
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
  }
  .jfweb-counter {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .jfweb-btn-prev,
  .jfweb-btn-next {
    flex: 1;
    text-align: center;
    margin-bottom: 0;
    min-height: 48px;
  }  
}

.jfweb-step.active { padding-bottom: 3rem; }

/* Champ URL scan PageSpeed */
.jfweb-url-row { margin-bottom: 1rem; }
.jfweb-optional { font-size: 12px; font-weight: normal; color: #5F5E5A; margin-left: 4px; }
.jfweb-field-hint { font-size: 12px; color: #5F5E5A; margin: 4px 0 0; line-height: 1.4; }

/* Indicateur de scan en cours */
.jfweb-scan-indicator {
  display: none;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #1E5673;
  background: #E6F1FB;
  border-radius: 8px;
  margin-bottom: 12px;
}
.jfweb-scan-indicator.active { display: block; }

/* Indicateur d'envoi / traitement */
.jfweb-sending-indicator { margin-bottom: 12px; }
.jfweb-sending-bar {
  height: 6px;
  background: #D3D1C7;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.jfweb-sending-progress {
  height: 100%;
  background: #E91E8C;
  border-radius: 3px;
  width: 0%;
  animation: jfweb-progress-anim 3s ease-in-out infinite;
}
@keyframes jfweb-progress-anim {
  0%   { width: 0%; }
  50%  { width: 75%; }
  90%  { width: 92%; }
  100% { width: 92%; }
}
.jfweb-sending-msg {
  font-size: 13px;
  color: #1E5673;
  text-align: center;
  margin: 0;
  font-style: italic;
}
