/* CV en ligne : étapes, aperçu, note de qualité. Pensé d'abord pour le téléphone (375 px). */

.fd-cv-progression ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.fd-cv-progression li {
    counter-increment: etape;
    font-size: 0.85rem;
}

.fd-cv-progression li > * {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--fd-ligne-forte);
    border-radius: 999px;
    color: var(--fd-discret);
    text-decoration: none;
}

.fd-cv-progression li > *::before {
    content: counter(etape) ". ";
}

.fd-cv-progression a:hover,
.fd-cv-progression a:focus-visible {
    border-color: var(--fd-encre);
    color: var(--fd-encre);
}

.fd-cv-progression--actuelle > * {
    background: var(--fd-noir);
    border-color: var(--fd-encre) !important;
    color: var(--fd-blanc) !important;
    font-weight: 600;
}

.fd-cv-form h1 {
    margin-bottom: 0.5rem;
}

.fd-cv-ligne {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--fd-ligne);
    border-radius: var(--fd-radius);
    background: var(--fd-papier);
}

.fd-cv-ligne legend {
    padding: 0 0.4rem;
    font-weight: 700;
    color: var(--fd-encre);
}

.fd-cv-ligne__champs {
    display: grid;
    gap: 0 0.9rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .fd-cv-ligne__champs {
        grid-template-columns: 1fr 1fr;
    }

    .fd-cv-champ--missions,
    .fd-cv-champ--diplome,
    .fd-cv-champ--poste {
        grid-column: 1 / -1;
    }

    .fd-cv-ligne--compacte .fd-cv-ligne__champs {
        grid-template-columns: 2fr 1fr;
    }
}

.fd-cv-retirer {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.fd-cv-ajouter {
    margin-bottom: 0.5rem;
}

.fd-cv-aide {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--fd-jaune);
    background: var(--fd-papier);
}

.fd-cv-aide summary {
    font-weight: 700;
    cursor: pointer;
}

.fd-cv-suggestions,
.fd-cv-accroches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0 0;
    padding: 0;
    list-style: none;
}

.fd-cv-accroches {
    flex-direction: column;
    margin-bottom: 1rem;
}

.fd-cv-suggestion,
.fd-cv-accroche {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--fd-ligne-forte);
    border-radius: var(--fd-radius);
    background: var(--fd-surface);
    color: var(--fd-texte);
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.fd-cv-accroche {
    width: 100%;
    padding: 0.75rem 0.9rem;
    line-height: 1.5;
}

.fd-cv-accroche--petit {
    display: inline;
    width: auto;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
}

.fd-cv-suggestion:hover,
.fd-cv-accroche:hover,
.fd-cv-suggestion:focus-visible,
.fd-cv-accroche:focus-visible {
    border-color: var(--fd-encre);
    outline: 3px solid var(--fd-jaune);
}

.fd-cv-suggestion--ajoutee {
    border-color: var(--fd-vert-action);
    color: var(--fd-vert-texte);
}

.fd-cv-cases .fd-choice {
    font-size: 0.95rem;
}

.fd-cv-photo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fd-cv-photo img {
    border-radius: 50%;
    object-fit: cover;
}

.fd-cv-boutons {
    margin-top: 1.5rem;
}

/* ---------- Aperçu */

.fd-cv-apercu {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 960px) {
    .fd-cv-apercu {
        grid-template-columns: 340px 1fr;
        align-items: start;
    }
}

.fd-cv-apercu__cote {
    display: grid;
    gap: 1rem;
}

.fd-cv-note {
    text-align: center;
}

.fd-cv-note__score {
    margin: 0;
    font-size: 1.1rem;
}

.fd-cv-note__score strong {
    font-family: var(--fd-font-title);
    font-size: 3rem;
    line-height: 1;
}

.fd-cv-note__niveau {
    margin: 0.25rem 0 0.75rem;
    font-weight: 700;
}

.fd-cv-note__barre {
    height: 10px;
    border-radius: 999px;
    background: var(--fd-ligne);
    overflow: hidden;
}

.fd-cv-note__barre span {
    display: block;
    height: 100%;
    background: var(--fd-rouge-action);
}

.fd-cv-note--correct .fd-cv-note__barre span { background: #c98a00; }
.fd-cv-note--bon .fd-cv-note__barre span,
.fd-cv-note--excellent .fd-cv-note__barre span { background: var(--fd-vert-action); }

.fd-cv-forts {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
    font-size: 0.92rem;
}

.fd-cv-forts li {
    margin-bottom: 0.3rem;
    color: var(--fd-vert-texte);
}

.fd-cv-conseils ul,
.fd-cv-ameliorations ul {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.fd-cv-conseil {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0 0.6rem 0.75rem;
    border-left: 3px solid var(--fd-ligne-forte);
    border-bottom: 1px solid var(--fd-ligne);
    font-size: 0.92rem;
}

.fd-cv-conseil--important {
    border-left-color: var(--fd-rouge-action);
}

.fd-cv-conseil a {
    flex: none;
    font-weight: 600;
}

.fd-cv-ameliorations li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--fd-ligne);
    font-size: 0.92rem;
}

.fd-cv-ameliorations del {
    color: var(--fd-discret);
}

.fd-cv-ameliorations ins {
    color: var(--fd-vert-texte);
    text-decoration: none;
    font-weight: 600;
}

/* ---------- La feuille de CV affichée à l'écran */

.fd-cv-feuille {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--fd-ligne);
    background: var(--fd-surface);
    color: #2b2f36;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 6px 24px rgba(13, 13, 13, 0.08);
    overflow: hidden;
}

@media (min-width: 640px) {
    .fd-cv-feuille {
        padding: 2.25rem 2.5rem;
    }
}

.fd-cv-feuille--apercu::after {
    content: "APERÇU · FasoDigit · APERÇU · FasoDigit · APERÇU · FasoDigit · APERÇU · FasoDigit · APERÇU";
    position: absolute;
    top: 45%;
    left: -20%;
    width: 140%;
    transform: rotate(-28deg);
    color: rgba(212, 36, 38, 0.13);
    font-family: var(--fd-font-title);
    font-size: 2.4rem;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.fd-cv-feuille--apercu {
    user-select: none;
}

.fd-cv-feuille__tete {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.fd-cv-feuille__nom {
    margin: 0;
    font-family: var(--fd-font-title);
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--fd-encre);
}

.fd-cv-feuille__titre {
    margin: 0.2rem 0 0.4rem;
    font-weight: 700;
}

.fd-cv-feuille__contact {
    margin: 0;
    color: #5b6270;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.fd-cv-feuille__photo {
    flex: none;
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.fd-cv-feuille h2 {
    margin: 1.1rem 0 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.fd-cv-feuille p {
    margin: 0 0 0.3rem;
}

.fd-cv-feuille__element {
    margin-bottom: 0.65rem;
}

.fd-cv-feuille__ligne {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.fd-cv-feuille__ligne span,
.fd-cv-feuille__lieu {
    color: #5b6270;
    font-size: 0.88rem;
}

.fd-cv-feuille__ligne span {
    flex: none;
}

.fd-cv-feuille__lieu {
    font-style: italic;
}

.fd-cv-feuille ul {
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
}

.fd-cv-feuille__liste {
    columns: 2 200px;
}

/* Classique : une colonne, filet noir en haut, dates à droite */
.fd-cv-feuille--sobre { border-top: 6px solid #111827; }
.fd-cv-feuille--sobre h2 { color: #111827; }

/* Modèles à deux colonnes : bandeau latéral (photo ronde, contacts, langues en points), parcours en frise */
.fd-cv-feuille--colonnes {
    --cv-lateral: #1f2937;
    --cv-lateral-texte: #e5e7eb;
    --cv-lateral-titre: #f5b301;
    --cv-accent: #1f2937;
    --cv-point: #d99a00;
    --cv-poste: #b7791f;
    display: grid;
    padding: 0;
}
.fd-cv-feuille--faso {
    --cv-lateral: #0f5132;
    --cv-lateral-texte: #e8f3ec;
    --cv-lateral-titre: #fcd116;
    --cv-accent: #0f5132;
    --cv-point: #d42426;
    --cv-poste: #b3261e;
    border-top: 6px solid #d42426;
}
.fd-cv-feuille--ardoise {
    --cv-lateral: #eef1f5;
    --cv-lateral-texte: #2b2f36;
    --cv-lateral-titre: #1d4e89;
    --cv-accent: #1d4e89;
    --cv-point: #1d4e89;
    --cv-poste: #1d4e89;
}
@media (min-width: 640px) {
    .fd-cv-feuille--colonnes {
        grid-template-columns: minmax(180px, 32%) 1fr;
        padding: 0;
    }
}
.fd-cv-feuille__lateral {
    padding: 1.5rem 1.25rem;
    background: var(--cv-lateral);
    color: var(--cv-lateral-texte);
    font-size: 0.86rem;
}
.fd-cv-feuille__lateral .fd-cv-feuille__photo {
    display: block;
    width: 120px;
    height: 120px;
    margin: 0 auto 0.75rem;
    border: 4px solid var(--cv-lateral-titre);
    border-radius: 50%;
}
.fd-cv-feuille--ardoise .fd-cv-feuille__lateral .fd-cv-feuille__photo { border-color: #fff; }
.fd-cv-feuille__lateral h2 {
    color: var(--cv-lateral-titre);
    border-bottom: 0;
    background: linear-gradient(var(--cv-lateral-titre), var(--cv-lateral-titre)) left bottom / 2.2rem 2px no-repeat;
}
.fd-cv-feuille__lateral ul {
    padding-left: 1rem;
}
.fd-cv-feuille__lateral li::marker { color: var(--cv-lateral-titre); }
.fd-cv-feuille__contacts,
.fd-cv-feuille__langues {
    list-style: none;
    padding: 0 !important;
}
.fd-cv-feuille__contacts li {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 0.3rem;
    overflow-wrap: anywhere;
}
.fd-cv-feuille__contacts svg {
    flex: none;
    width: 0.9rem;
    height: 0.9rem;
    fill: var(--cv-lateral-titre);
    color: var(--cv-lateral-titre);
}
.fd-cv-feuille__langues li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}
.fd-cv-feuille__langues small {
    display: block;
    opacity: 0.75;
    font-size: 0.75rem;
}
.fd-cv-feuille__points {
    display: flex;
    gap: 3px;
}
.fd-cv-feuille__points i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.25;
}
.fd-cv-feuille__points .fd-cv-feuille__point--on {
    background: var(--cv-lateral-titre);
    opacity: 1;
}
.fd-cv-feuille--colonnes .fd-cv-feuille__principal {
    padding: 1.5rem 1.25rem;
}
@media (min-width: 640px) {
    .fd-cv-feuille--colonnes .fd-cv-feuille__principal { padding: 2rem 2rem; }
}
.fd-cv-feuille--colonnes .fd-cv-feuille__titre { color: var(--cv-poste); }
.fd-cv-feuille--colonnes .fd-cv-feuille__principal h2 {
    color: var(--cv-accent);
    border-bottom-color: #d7dbe1;
    background: linear-gradient(var(--cv-accent), var(--cv-accent)) left bottom / 3rem 2px no-repeat;
}
.fd-cv-feuille--colonnes .fd-cv-feuille__ligne span { color: var(--cv-point); font-weight: 700; }
.fd-cv-feuille--colonnes .fd-cv-feuille__element {
    position: relative;
    padding-left: 1.1rem;
    border-left: 1px solid #d7dbe1;
    margin-left: 0.3rem;
}
.fd-cv-feuille--colonnes .fd-cv-feuille__element::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.35rem;
    width: 7px;
    height: 7px;
    border: 2px solid var(--cv-point);
    border-radius: 50%;
    background: #fff;
}
.fd-cv-feuille--colonnes .fd-cv-feuille__principal li::marker { color: var(--cv-point); }

.fd-cv-modifier {
    justify-content: center;
    margin-top: 1rem;
}

.fd-cv-formule {
    align-items: flex-start;
    font-weight: 400;
}

.fd-cv-formule input {
    min-height: 0;
    margin: 0.2rem 0 0;
    flex: none;
}

.fd-cv-formule small {
    color: var(--fd-discret);
}

.fd-cv-en-ligne {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fd-ligne);
}

.fd-cv-supprimer {
    margin-top: 2rem;
    font-size: 0.92rem;
}

.fd-cv-supprimer summary {
    color: var(--fd-discret);
    cursor: pointer;
}

.fd-cv-lettre {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.fd-cv-offres .fd-cv-offre--vedette {
    border: 2px solid var(--fd-encre);
}

.fd-cv-publique {
    max-width: 860px;
}

@media print {
    .site-header, .site-footer, .fd-bande, .fd-cv-progression, .fd-cv-apercu__cote { display: none; }
}
