/* SWAP Toulon — styles de la page /profil */

:root {
    --vert-foret: #04342C;
    --vert: #0F6E56;
    --vert-vif: #1D9E75;
    --vert-pale: #E1F5EE;
    --creme: #FBFAF6;
    --encre: #1C2321;
    --encre-douce: #55605B;
    --corail: #D85A30;
    --corail-pale: #FAECE7;
    --radius: 14px;
  }

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

  body {
    font-family: 'Karla', sans-serif;
    color: var(--encre);
    background: var(--creme);
    line-height: 1.65;
    font-size: 16px;
  }

  h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.2; }
  a { color: inherit; text-decoration: none; }
  .conteneur { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  header {
    position: sticky; top: 0; z-index: 10;
    background: rgba(251, 250, 246, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(4, 52, 44, 0.08);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: 1px; }
  .logo-pastille {
    width: 36px; height: 36px; border-radius: 11px;
    background: var(--vert-vif); color: var(--vert-pale);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600;
  }
  .nav a.retour { font-size: 15px; color: var(--encre-douce); }
  .nav a.retour:hover { color: var(--vert); }

  .entete-page { text-align: center; padding: 56px 0 40px; }
  .entete-page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 12px; }
  .entete-page p { color: var(--encre-douce); max-width: 56ch; margin: 0 auto; }

  .grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: start; padding-bottom: 64px; }
  @media (max-width: 860px) { .grille { grid-template-columns: 1fr; } }

  .panneau {
    background: #fff; border: 1px solid rgba(4, 52, 44, 0.1);
    border-radius: var(--radius); padding: 28px;
  }

  fieldset { border: none; margin-bottom: 28px; }
  legend {
    font-family: 'Fraunces', serif; font-size: 19px; font-weight: 500;
    margin-bottom: 4px;
  }
  .legende-note { font-size: 13.5px; color: var(--encre-douce); margin-bottom: 14px; }

  label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
  label .optionnel { font-weight: 400; color: var(--encre-douce); }

  input[type="text"], input[type="email"], select, textarea {
    width: 100%; font-family: 'Karla', sans-serif; font-size: 15px;
    padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid rgba(4, 52, 44, 0.2);
    background: var(--creme); color: var(--encre);
  }
  textarea { resize: vertical; min-height: 90px; }
  input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: 3px solid var(--vert-vif); outline-offset: 2px;
  }
  .compteur-car { font-size: 12.5px; color: var(--encre-douce); text-align: right; margin-top: 4px; }

  .deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 520px) { .deux-col { grid-template-columns: 1fr; } }

  .puces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
  .puce input { position: absolute; opacity: 0; pointer-events: none; }
  .puce span {
    display: inline-block; font-size: 14px; padding: 8px 16px;
    border-radius: 100px; border: 1.5px solid rgba(4, 52, 44, 0.2);
    background: #fff; cursor: pointer; user-select: none;
    transition: background 0.12s ease, border-color 0.12s ease;
  }
  .puce input:checked + span { background: var(--vert-pale); border-color: var(--vert); color: var(--vert-foret); font-weight: 700; }
  .puce input:focus-visible + span { outline: 3px solid var(--vert-vif); outline-offset: 2px; }

  .charte {
    display: flex; gap: 10px; align-items: flex-start;
    background: var(--vert-pale); border-radius: 10px; padding: 14px 16px;
    font-size: 14px; color: var(--vert-foret);
  }
  .charte input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--vert); }

  .btn {
    display: inline-block; border: none; cursor: pointer;
    font-family: 'Karla', sans-serif; font-weight: 700; font-size: 16px;
    padding: 13px 28px; border-radius: 100px;
    background: var(--vert); color: var(--vert-pale);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .btn:hover { background: var(--vert-foret); }
  .btn:active { transform: scale(0.97); }
  .btn:disabled { opacity: 0.6; cursor: default; }

  .retour-form { margin-top: 12px; font-size: 15px; font-weight: 700; display: none; }
  .retour-form.ok { display: block; color: var(--vert); }
  .retour-form.erreur { display: block; color: var(--corail); }

  /* ---------- Aperçu ---------- */
  .apercu { position: sticky; top: 84px; }
  .apercu-titre { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--vert); margin-bottom: 12px; }
  .carte-apercu {
    background: var(--vert-foret); color: var(--vert-pale);
    border-radius: 20px; padding: 26px;
  }
  .carte-tete { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
  .avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: var(--corail-pale); color: var(--corail);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
  }
  .carte-tete .nom { font-weight: 700; font-size: 18px; }
  .carte-tete .lieu { font-size: 13.5px; color: rgba(225, 245, 238, 0.7); }
  .ligne-savoir { font-size: 14.5px; padding: 6px 0; }
  .ligne-savoir .etiquette { color: rgba(225, 245, 238, 0.65); }
  .ligne-savoir .valeur { font-weight: 700; }
  .ligne-savoir .valeur.cherche { color: #9FE1CB; }
  .carte-bio {
    font-size: 14px; color: rgba(225, 245, 238, 0.85);
    border-top: 1px solid rgba(225, 245, 238, 0.2);
    margin-top: 14px; padding-top: 14px; font-style: italic;
  }

  /* ---------- Notation ---------- */
  .eval-bloc { margin-top: 18px; border-top: 1px solid rgba(225, 245, 238, 0.2); padding-top: 16px; }
  .eval-titre { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(225, 245, 238, 0.7); margin-bottom: 10px; }
  .eval-ligne { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; }
  .points { display: flex; gap: 5px; }
  .point { width: 11px; height: 11px; border-radius: 50%; background: rgba(225, 245, 238, 0.2); }
  .point.plein { background: var(--vert-vif); }
  .eval-vide { font-size: 13.5px; color: rgba(225, 245, 238, 0.6); font-style: italic; }
  .eval-compte { font-size: 12.5px; color: rgba(225, 245, 238, 0.55); margin-top: 8px; }

  section.notation { padding: 24px 0 72px; }
  .entete-section { text-align: center; margin-bottom: 36px; }
  .entete-section h2 { font-size: clamp(26px, 4vw, 34px); margin-bottom: 10px; }
  .entete-section p { color: var(--encre-douce); max-width: 62ch; margin: 0 auto; }
  .surtitre { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--vert); margin-bottom: 12px; }

  .grille-notation { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  @media (max-width: 860px) { .grille-notation { grid-template-columns: 1fr; } }

  .critere { margin-bottom: 20px; }
  .critere-nom { font-weight: 700; font-size: 15px; }
  .critere-desc { font-size: 13.5px; color: var(--encre-douce); margin-bottom: 8px; }
  .notes { display: flex; gap: 8px; }
  .notes button {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1.5px solid rgba(4, 52, 44, 0.25); background: #fff;
    font-family: 'Karla', sans-serif; font-weight: 700; font-size: 15px;
    color: var(--encre-douce); cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  }
  .notes button[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: var(--vert-pale); }
  .notes button:hover { border-color: var(--vert); }

  footer {
    border-top: 1px solid rgba(4, 52, 44, 0.08);
    padding: 28px 0; font-size: 14px; color: var(--encre-douce);
  }
  .footer-ligne { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Barre de progression du formulaire ---------- */
.progression {
  position: sticky; top: 0; z-index: 5;
  background: #fff; padding: 4px 0 16px; margin-bottom: 18px;
  border-bottom: 1px solid rgba(4,52,44,0.08);
}
.progression-barre {
  width: 100%; height: 6px; border-radius: 100px;
  background: rgba(4,52,44,0.08); overflow: hidden; margin-bottom: 8px;
}
.progression-remplie {
  height: 100%; width: 20%; border-radius: 100px;
  background: var(--vert-vif); transition: width 0.25s ease;
}
.progression-texte { font-size: 13px; color: var(--encre-douce); font-weight: 700; }
