/* L'Individu : les composants du parcours (étapes, choix, cartes, listes, photos). Les couleurs et les polices sont dans lindividu.css. */

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.icone.cadre {
    justify-content: center;
    border: 1px solid var(--trait);
}

.etapes {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
}

.etapes i {
    height: 2px;
    background: var(--trait);
}

.etapes i.fait {
    background: var(--accent);
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    padding: 0 0 8px;
}

.rangee {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.grille.trois {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.grille.quatre {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

/* un choix : une case ou un bouton radio invisible sous son libellé, qui change quand il est coché (sans script) */
.choix {
    position: relative;
    display: block;
    cursor: pointer;
}

.choix input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.choix span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--trait);
    font-size: 15px;
    font-weight: 700;
}

.choix small {
    font-size: 12px;
    font-weight: 400;
    color: var(--gris);
}

.choix input:checked + span {
    background: var(--texte);
    border-color: var(--texte);
    color: var(--fond);
}

.choix input:checked + span small {
    color: #3a3835;
}

.choix input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.choix.puce span {
    min-height: 44px;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.choix.jour span {
    align-items: center;
    min-height: 60px;
    padding: 6px 4px;
    background: transparent;
    font-size: 20px;
    font-weight: 800;
}

.choix.jour small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.champ.zone {
    height: auto;
    min-height: 72px;
    padding: 10px 14px;
    line-height: 1.5;
    resize: vertical;
}

.champ.zone.haute {
    min-height: 220px;
}

.depot {
    width: 100%;
    padding: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--gris);
    font-family: var(--sans);
    font-size: 13px;
}

.depot::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 1px solid var(--texte);
    border-radius: 0;
    background: transparent;
    color: var(--texte);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.carte {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--trait);
    color: var(--texte);
    text-decoration: none;
}

.carte.accent {
    border-color: var(--accent);
}

a.carte:hover {
    color: var(--texte);
    border-color: var(--accent);
}

.surtitre {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.carte.accent .surtitre,
.orange {
    color: var(--accent);
}

.carte strong {
    font-size: 15px;
}

.carte p {
    font-size: 13px;
    color: var(--gris);
}

.ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.ligne > span:first-child {
    color: var(--gris);
}

.ligne.regle {
    padding: 12px 0;
    border-top: 1px solid var(--trait);
}

.ligne.regle.fin {
    border-bottom: 1px solid var(--trait);
}

.ligne.regle > span:first-child {
    color: var(--texte);
}

.liste {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.liste.barree li {
    color: #cfcbc4;
    text-decoration: line-through;
    text-decoration-color: var(--refus);
}

.vert {
    color: #6fcf97;
    font-weight: 700;
}

.rouge {
    color: var(--refus);
}

.bouton.petit {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.bouton.danger {
    background: transparent;
    border-color: #ff7a6b;
    color: #ff7a6b;
}

.chiffre {
    font-family: var(--serif);
    font-style: italic;
    font-size: 34px;
    line-height: 1;
}

.personne {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--trait);
    color: var(--texte);
    text-decoration: none;
}

.initiale {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--trait);
    font-size: 18px;
    font-weight: 800;
}

.personne .nom {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
}

.personne small {
    font-size: 12px;
    font-weight: 400;
    color: var(--gris);
}

.personne .etat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
}

.portrait {
    width: 96px;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--trait);
    background: var(--surface);
}

.vignettes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.vignette {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    background: var(--surface);
    overflow: hidden;
    font-size: 11px;
    color: var(--gris);
    text-decoration: none;
}

.vignette img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vignette .etat {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4px 6px;
    background: rgba(10, 10, 10, 0.78);
    color: var(--texte);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.photo {
    display: block;
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
    background: #050505;
}

.prose {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--texte-doux);
}

.prose h2 {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--texte);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.prose th,
.prose td {
    padding: 8px 6px 8px 0;
    border-top: 1px solid var(--trait);
    text-align: left;
    vertical-align: top;
}

.menu {
    display: flex;
    flex-direction: column;
    padding-top: 24px;
}

.menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--trait);
    font-weight: 900;
    font-stretch: 125%;
    font-size: 26px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
}

.menu a.accent {
    color: var(--accent);
}

.cache {
    display: none;
}

button.discret {
    width: 100%;
    background: none;
    border: 0;
    font-family: var(--sans);
    text-decoration: underline;
    cursor: pointer;
}

img.initiale {
    object-fit: cover;
}

.bouton.auto {
    width: auto;
}

.bouton[disabled] {
    opacity: 0.5;
    cursor: default;
}

a.marque {
    text-decoration: none;
}

.ligne > .serif {
    flex-shrink: 0;
    white-space: nowrap;
}

.ligne > .titre {
    min-width: 0;
    font-size: 22px;
}

.vignette .etat.orange {
    color: var(--accent);
}

.vignette .etat.vert {
    color: #6fcf97;
}

.vignette .etat.rouge {
    color: var(--refus);
}

/* les quatre catégories : de grands choix, qui tiennent avec le bouton sur un écran */
.choix.grand span {
    min-height: 76px;
    padding: 12px 16px;
    font-size: 20px;
    font-weight: 900;
    font-stretch: 125%;
    text-transform: uppercase;
}

.choix.grand small {
    font-size: 13px;
    font-weight: 400;
    font-stretch: 100%;
    text-transform: none;
}

/* ---- retouches après revue des écrans ---- */

/* le champ des limites prend la hauteur libre de l'écran, jusqu'au bouton */
.etire {
    flex: 1;
}

.etire textarea {
    flex: 1;
}

/* les boutons d'une décision restent en bas de l'écran pendant qu'on lit ce qui est au-dessus */
.colle {
    position: sticky;
    bottom: 0;
    margin: 0 -20px;
    padding: 24px 20px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0), var(--fond) 22px);
}

/* une cible de toucher fait au moins 44 px de haut */
a.marque {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.lien {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* les quatre filtres de la liste des modèles tiennent sur une ligne */
nav.rangee {
    flex-wrap: nowrap;
}

nav.rangee .bouton.petit {
    flex: 1;
    padding: 0 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
}

/* quatre compteurs côte à côte : moins de marge, pour que le mot tienne */
.grille.quatre .carte,
.grille.trois .carte {
    padding: 12px 8px;
    gap: 6px;
}

.grille.quatre .carte .note,
.grille.trois .carte .note {
    font-size: 11px;
    overflow-wrap: anywhere;
}
