/* ===================================================
     CHARTE GRAPHIQUE : facialisteholistique.fr
     Couleurs extraites du site :
     - Vert kaki principal   : #5C6E52 / #6B7D5F
     - Vert foncé texte      : #3A4434
     - Beige/crème fond      : #F5F0E8
     - Beige chaud           : #EDE4D3
     - Blanc cassé           : #FAF7F2
     - Or/doré accent        : #C4A97D
     - Texte foncé           : #2C3328
     - Texte moyen           : #6B6B5A
  =================================================== */

  :root {
    --vert-principal: #5C6E52;
    --vert-fonce: #3A4434;
    --vert-clair: #8A9E7B;
    --beige-fond: #F5F0E8;
    --beige-chaud: #EDE4D3;
    --blanc-casse: #FAF7F2;
    --or: #C4A97D;
    --or-fonce: #A8895C;
    --texte: #2C3328;
    --texte-moyen: #6B6B5A;
    --texte-clair: #9A9A88;
    --bordure: #DDD5C4;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    background: var(--beige-fond);
    color: var(--texte);
    min-height: 100vh;
  }

  /* ═══════════════════════════════════
     HEADER — Identique au site Pamela
  ═══════════════════════════════════ */
  .site-header {
    background: var(--vert-fonce);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .site-header img {
    height: 56px;
    object-fit: contain;
  }

  /* ═══════════════════════════════════
     HERO SECTION
  ═══════════════════════════════════ */
  .hero {
    background: var(--vert-fonce);
    color: var(--blanc-casse);
    text-align: center;
    padding: 52px 24px 60px;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
      radial-gradient(ellipse 100% 70% at 15% 110%, rgba(138,158,123,0.22) 0%, transparent 55%),
      radial-gradient(ellipse 60% 50% at 85% -10%, rgba(196,169,125,0.12) 0%, transparent 50%);
    pointer-events: none;
  }

  /* Ornement végétal décoratif */
  .hero-ornament {
    position: absolute;
    opacity: 0.06;
    font-size: 200px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
  }
  .hero-ornament.left  { left: -40px; bottom: -40px; transform: rotate(-20deg); }
  .hero-ornament.right { right: -40px; top: -40px; transform: rotate(15deg); }

  .hero-inner { position: relative; z-index: 1; }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--or);
    margin-bottom: 20px;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: var(--or);
    opacity: 0.5;
  }

  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.9rem, 5.5vw, 3.2rem);
    line-height: 1.25;
    color: var(--blanc-casse);
    margin-bottom: 16px;
  }

  .hero h1 em {
    font-style: italic;
    color: var(--or);
  }

  .hero-desc {
    font-size: clamp(0.82rem, 2vw, 0.95rem);
    line-height: 1.8;
    color: rgba(250,247,242,0.68);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
  }

  /* Ligne décorative sous le hero */
  .hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
  }
  .hero-separator span {
    height: 1px;
    width: 60px;
    background: rgba(196,169,125,0.4);
    display: block;
  }
  .hero-separator em {
    color: var(--or);
    font-size: 18px;
    font-style: normal;
  }

  /* ═══════════════════════════════════
     BARRE DE PROGRESSION
  ═══════════════════════════════════ */
  .progress-bar-wrap {
    background: var(--blanc-casse);
    border-bottom: 1px solid var(--bordure);
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(44,51,40,0.05);
  }

  .progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    gap: 0;
  }

  .pstep {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
  }

  .pstep-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bordure);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--texte-clair);
    transition: all 0.35s ease;
    font-family: 'Raleway', sans-serif;
  }

  .pstep-dot.active {
    background: var(--vert-principal);
    border-color: var(--vert-principal);
    color: white;
    box-shadow: 0 0 0 4px rgba(92,110,82,0.15);
  }

  .pstep-dot.done {
    background: var(--vert-fonce);
    border-color: var(--vert-fonce);
    color: white;
  }

  .pstep-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--texte-clair);
    transition: color 0.3s;
    font-weight: 500;
    white-space: nowrap;
  }

  .pstep-label.active { color: var(--vert-fonce); font-weight: 600; }

  .pstep-line {
    flex: 1;
    height: 1px;
    background: var(--bordure);
    margin-bottom: 16px;
    max-width: 70px;
  }

  @media (max-width: 420px) {
    .pstep-line { max-width: 20px; }
    .pstep-label { font-size: 8px; letter-spacing: 1px; }
  }

  /* ═══════════════════════════════════
     CONTAINER
  ═══════════════════════════════════ */
  .container {
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 20px 70px;
  }

  /* ═══════════════════════════════════
     CARTES
  ═══════════════════════════════════ */
  .card {
    background: var(--blanc-casse);
    border-radius: 4px;
    border: 1px solid var(--bordure);
    padding: 40px 40px 36px;
    box-shadow: 0 4px 24px rgba(44,51,40,0.06), 0 1px 0 rgba(255,255,255,0.8) inset;
    animation: fadeUp 0.45s ease forwards;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @media (max-width: 560px) {
    .card { padding: 28px 22px 26px; }
  }

  .card-eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--vert-principal);
    margin-bottom: 10px;
  }

  .card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: var(--vert-fonce);
    margin-bottom: 8px;
  }

  .card-title em {
    font-style: italic;
    color: var(--or-fonce);
  }

  .card-desc {
    font-size: 0.87rem;
    color: var(--texte-moyen);
    line-height: 1.75;
    margin-bottom: 28px;
    font-weight: 300;
  }

  .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--bordure), transparent);
    margin: 28px 0;
  }

  /* ═══════════════════════════════════
     UPLOAD ZONE
  ═══════════════════════════════════ */
  .upload-zone {
    border: 1.5px dashed var(--beige-chaud);
    border-radius: 4px;
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    background: var(--beige-fond);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .upload-zone:hover {
    border-color: var(--vert-clair);
    background: rgba(92,110,82,0.03);
  }

  .upload-zone.filled {
    border-style: solid;
    border-color: var(--vert-principal);
    padding: 0;
    background: none;
  }

  .upload-zone input[type="file"] { display: none; }

  .upload-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    background: var(--beige-chaud);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
  }

  .upload-zone:hover .upload-icon-wrap { background: rgba(92,110,82,0.12); }

  .upload-icon-wrap svg {
    width: 26px;
    height: 26px;
    color: var(--vert-principal);
  }

  .upload-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--vert-fonce);
    margin-bottom: 4px;
  }

  .upload-subtitle { font-size: 0.78rem; color: var(--texte-clair); }

  #previewImg {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
  }

  .change-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(44,51,40,0.82);
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 12px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
  }

  .privacy-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    color: var(--texte-clair);
    margin-top: 14px;
    justify-content: center;
    letter-spacing: 0.3px;
  }

  /* ═══════════════════════════════════
     QUESTIONS — BOUTONS OPTIONS
  ═══════════════════════════════════ */
  .questions-stack { display: grid; gap: 24px; }

  .q-label {
    display: block;
    font-size: 8.5px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--vert-principal);
    margin-bottom: 10px;
  }

  .opts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .opt {
    padding: 7px 16px;
    border: 1.5px solid var(--beige-chaud);
    border-radius: 2px;
    background: white;
    font-family: 'Raleway', sans-serif;
    font-size: 0.80rem;
    font-weight: 400;
    color: var(--texte);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
  }

  .opt:hover {
    border-color: var(--vert-clair);
    color: var(--vert-fonce);
    background: rgba(92,110,82,0.04);
  }

  .opt.sel {
    background: var(--vert-fonce);
    border-color: var(--vert-fonce);
    color: white;
  }

  /* ═══════════════════════════════════
     BOUTONS
  ═══════════════════════════════════ */
  .btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--vert-fonce);
    color: var(--blanc-casse);
    border: none;
    border-radius: 3px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 14px;
  }

  .btn-main:hover:not(:disabled) {
    background: var(--vert-principal);
    box-shadow: 0 6px 20px rgba(58,68,52,0.2);
    transform: translateY(-1px);
  }

  .btn-main:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }

  .btn-or {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--or);
    color: white;
    border: none;
    border-radius: 3px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .btn-or:hover {
    background: var(--or-fonce);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196,169,125,0.3);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: transparent;
    color: var(--texte-moyen);
    border: 1.5px solid var(--bordure);
    border-radius: 3px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-ghost:hover { border-color: var(--vert-clair); color: var(--vert-fonce); }

  /* ═══════════════════════════════════
     LOADING
  ═══════════════════════════════════ */
  .loading-wrap {
    text-align: center;
    padding: 60px 20px;
  }

  .spinner-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 30px;
    position: relative;
  }

  .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: spin 1.4s linear infinite;
  }
  .ring:nth-child(1) { border-top-color: var(--vert-principal); }
  .ring:nth-child(2) { inset: 9px; border-top-color: var(--or); animation-duration: 2s; animation-direction: reverse; }
  .ring:nth-child(3) { inset: 18px; border-top-color: var(--vert-clair); animation-duration: 2.8s; }

  @keyframes spin { to { transform: rotate(360deg); } }

  .loading-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--vert-fonce);
    margin-bottom: 6px;
  }

  .loading-sub {
    font-size: 0.82rem;
    color: var(--texte-moyen);
    margin-bottom: 28px;
    font-weight: 300;
  }

  .loading-item {
    font-size: 0.83rem;
    color: var(--texte-moyen);
    padding: 7px 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.5s ease;
    font-weight: 300;
  }

  .loading-item.show { opacity: 1; transform: translateX(0); }

  /* ═══════════════════════════════════
     RÉSULTATS
  ═══════════════════════════════════ */

  /* En-tête résultat */
  .result-hero {
    background: var(--vert-fonce);
    margin: -40px -40px 30px;
    padding: 30px 40px;
    border-radius: 4px 4px 0 0;
    color: var(--blanc-casse);
    position: relative;
    overflow: hidden;
  }

  @media (max-width: 560px) {
    .result-hero { margin: -28px -22px 24px; padding: 24px 22px; }
  }

  .result-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 100% 100%, rgba(138,158,123,0.2), transparent 60%);
  }

  .result-hero-inner { position: relative; z-index: 1; }

  .result-badge {
    display: inline-block;
    background: rgba(196,169,125,0.25);
    border: 1px solid rgba(196,169,125,0.4);
    color: var(--or);
    font-size: 8.5px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 12px;
  }

  .result-skin-type {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 400;
    color: var(--blanc-casse);
    margin-bottom: 6px;
    line-height: 1.3;
  }

  .result-skin-desc {
    font-size: 0.86rem;
    line-height: 1.75;
    color: rgba(250,247,242,0.7);
    font-weight: 300;
    max-width: 560px;
  }

  /* Sections résultat */
  .res-section { margin-bottom: 30px; }

  .res-section-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 14px;
  }

  .res-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
  }

  .res-icon.v { background: rgba(92,110,82,0.12); }
  .res-icon.o { background: rgba(196,169,125,0.15); }
  .res-icon.b { background: rgba(58,68,52,0.08); }

  .res-section-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--vert-fonce);
  }

  /* Observations liste */
  .obs-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 7px;
  }

  .obs-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.86rem;
    color: var(--texte);
    line-height: 1.6;
    font-weight: 300;
  }

  .obs-list li::before {
    content: '—';
    color: var(--vert-clair);
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.75rem;
  }

  /* Tags chips */
  .chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }

  .chip {
    padding: 5px 13px;
    border-radius: 2px;
    font-size: 0.76rem;
    font-weight: 400;
    letter-spacing: 0.3px;
  }

  .chip.ok  { background: rgba(92,110,82,0.1);  color: var(--vert-fonce); }
  .chip.warn{ background: rgba(196,169,125,0.15); color: var(--or-fonce); }
  .chip.bad { background: rgba(160,60,40,0.08); color: #8B3A2A; }

  /* Mini-label */
  .mini-label {
    font-size: 8px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--texte-clair);
    margin-bottom: 8px;
    margin-top: 16px;
    display: block;
  }

  /* ═══════════════════════════════════
     ROUTINE TIMELINE
  ═══════════════════════════════════ */
  .routine-block { display: grid; gap: 4px; }

  .routine-moment {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 16px;
    position: relative;
  }

  .routine-moment:not(:last-child) .rt-left::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 46px;
    bottom: -4px;
    width: 1px;
    background: var(--bordure);
    z-index: 0;
  }

  .rt-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-top: 10px;
    position: relative;
  }

  .rt-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--beige-chaud);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
  }

  .rt-label {
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--texte-clair);
    text-align: center;
  }

  .rt-steps { padding: 8px 0 22px; }

  .rt-step {
    background: var(--beige-fond);
    border: 1px solid var(--bordure);
    border-left: 3px solid var(--vert-principal);
    border-radius: 0 3px 3px 0;
    padding: 12px 14px;
    margin-bottom: 7px;
  }

  .rt-step.soir  { border-left-color: var(--or); }
  .rt-step.hebdo { border-left-color: var(--vert-clair); }

  .rt-step-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--vert-fonce);
    margin-bottom: 2px;
  }

  .rt-step-produit {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--or-fonce);
    margin-bottom: 3px;
  }

  .rt-step-conseil {
    font-size: 0.78rem;
    color: var(--texte-moyen);
    line-height: 1.55;
    font-weight: 300;
  }

  /* ═══════════════════════════════════
     BLOC CONSEIL HOLISTIQUE
  ═══════════════════════════════════ */
  .conseil-box {
    background: var(--beige-fond);
    border: 1px solid rgba(92,110,82,0.18);
    border-top: 3px solid var(--vert-principal);
    border-radius: 0 0 3px 3px;
    padding: 22px;
  }

  .conseil-box p {
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--texte);
    font-weight: 300;
  }

  /* Citation finale */
  .quote-box {
    border-left: 3px solid var(--or);
    padding: 16px 20px;
    background: rgba(196,169,125,0.06);
    border-radius: 0 3px 3px 0;
    margin-top: 8px;
  }

  .quote-box blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--vert-fonce);
    line-height: 1.7;
  }

  .quote-box cite {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--or-fonce);
    font-style: normal;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
  }

  /* ═══════════════════════════════════
     CTA FINAL
  ═══════════════════════════════════ */
  .cta-block {
    background: var(--vert-fonce);
    border-radius: 4px;
    padding: 36px 32px;
    text-align: center;
    color: var(--blanc-casse);
    margin-top: 28px;
    position: relative;
    overflow: hidden;
  }

  .cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 0% 100%, rgba(138,158,123,0.2), transparent 60%);
    pointer-events: none;
  }

  .cta-block-inner { position: relative; z-index: 1; }

  .cta-label {
    font-size: 8.5px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--or);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
  }

  .cta-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3.5vw, 1.75rem);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--blanc-casse);
    line-height: 1.3;
  }

  .cta-block h3 em { font-style: italic; color: var(--or); }

  .cta-block p {
    font-size: 0.84rem;
    color: rgba(250,247,242,0.65);
    line-height: 1.7;
    margin-bottom: 22px;
    font-weight: 300;
  }

  /* ═══════════════════════════════════
     FOOTER
  ═══════════════════════════════════ */
  .tool-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 0.72rem;
    color: var(--texte-clair);
    line-height: 1.7;
  }

  /* ═══════════════════════════════════
     UTILITAIRES
  ═══════════════════════════════════ */
  .hidden { display: none !important; }
  .mt16 { margin-top: 16px; }
  .mt24 { margin-top: 24px; }
  .center { text-align: center; }

  .btns-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
  }