/*
 * Le parcours public de réservation (S3a). Pensé d'abord pour le téléphone (360 px de large), puis élargi.
 *
 * LES COULEURS ne sont écrites NULLE PART ICI : elles viennent des variables CSS du <style> du gabarit
 * (--violet, --bleu, --degrade, --encre, --glace, --blanc, --erreur ; App\Tunnel\Charte, lues en base).
 * Appliquer la charte du CFA, ou la rendre modifiable (S3c), ne touche donc pas à ce fichier. Un test
 * (PresentationTest) fait échouer la suite si une couleur en dur s'y glisse.
 *
 * LES POLICES : leurs @font-face sont dans public/css/polices.css (hébergées chez nous, jamais chez Google) ;
 * les variables --police-titres et --police-texte, avec leur repli système, sont composées par App\Tunnel\Charte
 * d'après le choix du super-admin.
 */

:root {

    /* Teintes dérivées des variables de la charte : aucune couleur en dur. */
    --trait: color-mix(in srgb, var(--encre) 55%, var(--blanc));
    --trait-leger: color-mix(in srgb, var(--encre) 18%, var(--blanc));
    --texte-discret: color-mix(in srgb, var(--encre) 78%, var(--blanc));
    --violet-fonce: color-mix(in srgb, var(--violet) 82%, var(--encre));
    --violet-pale: color-mix(in srgb, var(--violet) 9%, var(--blanc));
    --duree-fond: color-mix(in srgb, var(--bleu) 16%, var(--blanc));
    --prix-fond: color-mix(in srgb, var(--violet) 16%, var(--blanc));
    --ombre: 0 2px 14px color-mix(in srgb, var(--encre) 14%, transparent);

    --rayon: 20px;
    --rayon-champ: 14px;
    --cible: 3.5rem; /* 56 px : une cible tactile confortable */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--glace);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.55;
}

h1, h2 {
    font-family: var(--police-titres);
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

h1 {
    font-size: 1.3rem;
    color: var(--violet);
    overflow-wrap: anywhere;
}

h2 {
    font-size: 1.1rem;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--bleu);
    text-underline-offset: 0.18em;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lien-evitement {
    position: absolute;
    left: -10000px;
    top: 0;
    background: var(--blanc);
    color: var(--encre);
    padding: 0.75rem 1rem;
    z-index: 10;
}

.lien-evitement:focus {
    left: 0.5rem;
    top: 0.5rem;
}

:focus-visible {
    outline: 3px solid var(--bleu);
    outline-offset: 3px;
}

/* ---- En-tête et pied de page ------------------------------------------------------------------------- */

.entete {
    background: var(--degrade);
    padding: 1rem 1rem;
}

.logo {
    display: inline-block;
    color: var(--blanc);
    text-decoration: none;
    /* Du texte blanc sur le dégradé : seulement en GRAND texte gras (contraste 3:1, voir App\Tunnel\Contraste). */
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
}

/* Le logo officiel est en couleurs, pensé pour un fond clair : il se pose sur une plaque blanche. */
.logo-plaque {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 0.9rem;
    background: var(--blanc);
}

.logo img {
    display: block;
    height: 2.5rem;
    width: auto;
}

.page {
    flex: 1;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.pied {
    padding: 1.5rem 1rem 2rem;
    font-size: 0.9375rem;
    text-align: center;
    color: var(--encre);
}

.pied p {
    margin: 0 0 0.75rem;
}

.pied a {
    color: var(--encre);
}

.pied-nom {
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 0.875rem;
}

.pied-liens a {
    display: inline-block;
    margin: 0 0.75rem;
    padding: 0.25rem 0;
}

/* ---- Cartes, titres d'étape, losanges et pastilles --------------------------------------------------- */

.carte {
    background: var(--blanc);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    padding: 1.5rem 1.25rem 1.75rem;
}

.progression {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
}

.barre {
    flex: 1;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--trait-leger);
    overflow: hidden;
}

.barre > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--degrade);
}

/* La pastille arrondie sombre de la plaquette : étiquettes, catégories, étape. */
.pastille {
    display: inline-block;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    background: var(--encre);
    color: var(--blanc);
    font-family: var(--police-titres);
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.5;
    white-space: nowrap;
}

/* Le losange aux angles arrondis de la plaquette : l'icône de l'étape. */
.losange {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0.35rem 0.55rem 0.35rem 0.35rem;
    border-radius: 0.6rem;
    background: var(--violet);
    color: var(--blanc);
    transform: rotate(45deg);
}

.losange > span {
    transform: rotate(-45deg);
    font-family: var(--police-titres);
    font-weight: 700;
    font-size: 0.95rem;
}

.losange-ok {
    background: var(--degrade);
}

.titre-etape {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.titre-etape h1:focus {
    outline: none;
}

.consigne {
    font-size: 1.0625rem;
}

.aide {
    color: var(--texte-discret);
    font-size: 0.9375rem;
    margin-top: 0.4rem;
}

/* ---- Boutons ------------------------------------------------------------------------------------------ */

.bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: var(--cible);
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--violet);
    border-radius: 999px;
    background: var(--violet);
    color: var(--blanc);
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bouton:hover {
    background: var(--violet-fonce);
    border-color: var(--violet-fonce);
}

.bouton:disabled,
.bouton[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.bouton-secondaire {
    background: var(--blanc);
    color: var(--violet);
}

.bouton-secondaire:hover {
    background: var(--violet-pale);
    color: var(--violet-fonce);
}

/* « Réserver et payer » : le dégradé de la plaquette, en GRAND texte gras (19 px et plus : 3:1 suffit). */
.bouton-degrade {
    background: var(--degrade);
    border-color: transparent;
    font-weight: 800;
    font-size: 1.2rem;
    min-height: 4rem;
}

.bouton-degrade:hover {
    background: var(--degrade);
    border-color: transparent;
    filter: brightness(0.92);
}

.retour,
.lien {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    color: var(--bleu);
    font-family: var(--police-texte);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.retour {
    margin-top: 0.75rem;
}

.lien {
    margin-left: 0.5rem;
}

/* ---- Listes de choix : lieux, prestations, jours, heures ---------------------------------------------- */

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

.choix-liste {
    margin-bottom: 0.5rem;
}

.categorie {
    display: inline-block;
    max-width: 100%;
    padding: 0.25rem 1rem;
    margin: 1.25rem 0 0.6rem;
    border-radius: 999px;
    background: var(--bleu);
    color: var(--blanc);
    font-family: var(--police-titres);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.choix {
    display: block;
    position: relative;
    margin-bottom: 0.7rem;
}

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

.choix-corps {
    display: block;
    min-height: var(--cible);
    padding: 0.85rem 1rem 0.85rem 3.1rem;
    border: 2px solid var(--trait);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    position: relative;
}

/* Le rond de sélection, dessiné à gauche de la carte. */
.choix-corps::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--trait);
    border-radius: 50%;
    background: var(--blanc);
}

.choix input:checked + .choix-corps {
    border-color: var(--violet);
    background: var(--violet-pale);
}

.choix input:checked + .choix-corps::before {
    border-color: var(--violet);
    background: radial-gradient(circle, var(--violet) 0 45%, var(--blanc) 50%);
}

.choix input:focus-visible + .choix-corps,
.jour input:focus-visible + span,
.heure input:focus-visible + span,
.option input:focus-visible + span {
    outline: 3px solid var(--bleu);
    outline-offset: 2px;
}

.choix-titre {
    display: block;
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.choix-detail {
    display: block;
    color: var(--texte-discret);
    font-size: 0.9375rem;
}

.choix-prix {
    color: var(--encre);
    font-weight: 600;
}

/* La ligne d'une prestation : le titre à gauche, la durée et le prix EMPILÉS à droite, toujours au même
   endroit quelle que soit la longueur du titre (revue du 09/10 : avec un retour à la ligne automatique, les
   pastilles passaient tantôt à droite, tantôt dessous). Sur téléphone, elles passent sous le titre. */
.choix-ligne {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.choix-texte {
    flex: 1 1 auto;
    min-width: 0;
}

.choix-ligne .choix-meta {
    flex: none;
    flex-direction: column;
    align-items: flex-end;
}

.choix-texte .choix-titre {
    font-family: var(--police-texte);
    font-weight: 500;
    font-size: 1.0625rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.choix-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.etiquette {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    color: var(--encre);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.etiquette-duree {
    background: var(--duree-fond);
}

.etiquette-prix {
    background: var(--prix-fond);
}

.etiquette-icone {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.etiquette-duree .etiquette-icone {
    stroke: var(--bleu);
}

.etiquette-prix .etiquette-icone {
    stroke: var(--violet);
}

/* Téléphone : les pastilles passent sous le titre, alignées à gauche. */
@media (max-width: 39.99rem) {
    .choix-ligne {
        flex-wrap: wrap;
    }

    .choix-texte {
        flex-basis: 100%;
    }

    .choix-ligne .choix-meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

/* ---- La sélection en direct (durée et prix totaux) -------------------------------------------------- */

.selection {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--rayon-champ);
    background: var(--violet-pale);
}

.selection-liste {
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
}

.selection-liste li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1rem 0.75rem;
    padding: 0.25rem 0;
}

.selection-nom {
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 0.95rem;
}

.selection-detail {
    color: var(--texte-discret);
    font-size: 0.9375rem;
}

.selection-total {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding-top: 0.6rem;
    border-top: 1px solid var(--trait-leger);
}

/* ---- Le calendrier ------------------------------------------------------------------------------------ */

.calendrier-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.calendrier-mois {
    flex: 1;
    text-align: center;
    color: var(--encre);
}

.nav-mois {
    flex: none;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--violet);
    border-radius: 50%;
    background: var(--blanc);
    color: var(--violet);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.nav-mois:disabled {
    border-color: var(--trait-leger);
    color: var(--trait);
    cursor: not-allowed;
}

.calendrier-grille {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
}

.jour-nom {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--texte-discret);
    padding-bottom: 0.25rem;
}

.jour {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
}

.jour > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 2.9rem;
    border-radius: 0.8rem;
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 0.95rem;
}

.jour-disponible > span {
    border: 2px solid var(--violet);
    background: var(--blanc);
    color: var(--violet);
}

.jour-disponible input:checked + span {
    background: var(--violet);
    color: var(--blanc);
}

.jour-indisponible {
    color: var(--trait);
    font-size: 0.9rem;
}

/* ---- Les heures --------------------------------------------------------------------------------------- */

.heures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.heure {
    position: relative;
    display: block;
}

.heure > span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--cible);
    border: 2px solid var(--violet);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    color: var(--violet);
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.heure input:checked + span {
    background: var(--violet);
    color: var(--blanc);
}

/* ---- Formulaire de coordonnées ------------------------------------------------------------------------ */

.champ {
    margin-bottom: 1.1rem;
}

.champ label,
.champ legend {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.champ input[type="text"],
.champ input[type="email"],
.champ input[type="tel"] {
    display: block;
    width: 100%;
    min-height: var(--cible);
    padding: 0.7rem 1rem;
    border: 2px solid var(--trait);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 1rem; /* 16 px : le navigateur du téléphone ne zoome pas au clic */
}

.champ input[aria-invalid="true"] {
    border-color: var(--erreur);
}

.champ-pour .option {
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.option > span {
    display: block;
    min-height: var(--cible);
    padding: 0.85rem 1rem 0.85rem 3.1rem;
    border: 2px solid var(--trait);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    position: relative;
}

.option > span::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--trait);
    border-radius: 50%;
    background: var(--blanc);
}

.option input:checked + span {
    border-color: var(--violet);
    background: var(--violet-pale);
}

.option input:checked + span::before {
    border-color: var(--violet);
    background: radial-gradient(circle, var(--violet) 0 45%, var(--blanc) 50%);
}

/* Le champ piège : hors écran, invisible, jamais atteint au clavier (tabindex -1, aria-hidden). */
.piege {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- Messages ----------------------------------------------------------------------------------------- */

.erreur {
    margin: 0.4rem 0 0;
    color: var(--erreur);
    font-weight: 600;
    font-size: 0.9375rem;
}

.alerte {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 5px solid var(--erreur);
    border-radius: var(--rayon-champ);
    background: color-mix(in srgb, var(--erreur) 7%, var(--blanc));
}

.alerte-info {
    border-left-color: var(--bleu);
    background: var(--violet-pale);
}

.alerte-titre {
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.propositions {
    list-style: none;
    margin: 0;
    padding: 0;
}

.proposition {
    display: block;
    width: 100%;
    min-height: var(--cible);
    margin-bottom: 0.5rem;
    padding: 0.6rem 1rem;
    border: 2px solid var(--violet);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    color: var(--violet);
    font-family: var(--police-titres);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

/* ---- Récapitulatif, accord, paiement ------------------------------------------------------------------ */

.resume {
    margin: 0 0 1rem;
}

.resume > div {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--trait-leger);
}

.resume dt {
    font-family: var(--police-titres);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--texte-discret);
    margin-bottom: 0.2rem;
}

.resume dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.resume-lignes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.resume-lignes li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0 0.75rem;
}

.resume-detail {
    color: var(--texte-discret);
}

.modifier-liens {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
}

.modifier-liens .lien {
    margin-left: 0;
}

.accord {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--trait);
    border-radius: var(--rayon-champ);
}

.case {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

.case input {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    margin: 0.1rem 0 0;
    accent-color: var(--violet);
}

.donnees {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    color: var(--texte-discret);
}

.sous-bouton {
    margin: 0.85rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
}

.compte {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: var(--rayon-champ);
    background: var(--violet-pale);
    text-align: center;
}

.compte-texte {
    margin: 0;
    font-size: 1.1rem;
}

.compte-texte strong {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--police-titres);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--violet);
}

.emplacement-paiement {
    margin-top: 1rem;
}

.carte-accueil .bouton {
    margin-top: 1.5rem;
}

.etapes-resume {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.etapes-resume li {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

/* ---- Documents légaux --------------------------------------------------------------------------------- */

.document-version {
    margin: 0.75rem 0 1.25rem;
    color: var(--texte-discret);
}

.document-texte h3,
.document-texte h2 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
    color: var(--violet);
}

.document-texte table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.document-texte th,
.document-texte td {
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--trait-leger);
    text-align: left;
    vertical-align: top;
}

.document-texte {
    overflow-wrap: anywhere;
}

.document-texte h2 {
    font-size: 1.125rem;
}

.document-texte p {
    margin: 0 0 0.75rem;
    line-height: 1.55;
}

.document-texte ul,
.document-texte ol {
    margin: 0 0 0.75rem;
    padding-left: 1.5rem;
}

.document-texte li {
    margin-bottom: 0.25rem;
    line-height: 1.55;
}

.document-texte a {
    color: var(--bleu);
    text-decoration: underline;
}

/* ---- Le plus petit téléphone : 360 px de large -------------------------------------------------------- */

@media (max-width: 24.99rem) {
    /* On rend de la largeur au calendrier : 7 colonnes de jours doivent rester des cibles tactiles. */
    .page {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .carte {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .calendrier-grille {
        gap: 0.2rem;
    }

    .heures {
        gap: 0.45rem;
    }
}

/* ---- Plus large qu'un téléphone ----------------------------------------------------------------------- */

@media (min-width: 40rem) {
    .entete {
        padding: 1.25rem 2rem;
    }

    .page {
        padding-top: 2rem;
    }

    .carte {
        padding: 2rem 2.25rem 2.25rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .heures {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .calendrier-grille {
        gap: 0.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---- « Mon rendez-vous » (S3b) ------------------------------------------------------------------------ */

.statut {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 5px solid var(--bleu);
    border-radius: var(--rayon-champ);
    background: var(--violet-pale);
}

.statut p {
    margin: 0;
}

.statut p + p {
    margin-top: 0.4rem;
}

.statut-titre {
    font-weight: 600;
}

.statut-ok {
    border-left-color: var(--violet);
}

.statut-fin {
    border-left-color: var(--texte-discret);
    background: var(--glace);
}

.gestion-titre {
    margin: 0 0 0.6rem;
    font-family: var(--police-titres);
    font-size: 1.15rem;
    line-height: 1.3;
}

.carte-gestion .bouton + .bouton {
    margin-top: 0.75rem;
}

.champ textarea {
    display: block;
    width: 100%;
    min-height: 5.5rem;
    padding: 0.7rem 1rem;
    border: 2px solid var(--trait);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 1rem; /* 16 px : le navigateur du téléphone ne zoome pas au clic */
    resize: vertical;
}

.lien-gestion {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border: 2px solid var(--violet);
    border-radius: var(--rayon-champ);
    background: var(--blanc);
}

.lien-gestion-titre {
    margin: 0;
    font-weight: 600;
}

.lien-gestion-url {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    /* Un long jeton ne doit jamais élargir la page à 360 px. */
    overflow-wrap: anywhere;
    word-break: break-all;
}

/* Le mode essai (S3d) : un bandeau sur chaque page publique. Texte blanc sur l'encre : contraste maximal, lisible à 360 px. */
.bandeau-essai {
    margin: 0;
    padding: 0.6rem 1rem;
    background: var(--encre);
    color: var(--blanc);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    overflow-wrap: anywhere;
}

.abandon {
    margin-top: 1rem;
    text-align: center;
}

.abandon .lien {
    margin-left: 0;
}

.abandon-fenetre {
    width: min(30rem, calc(100vw - 2rem));
    padding: 1.5rem;
    border: 0;
    border-radius: var(--rayon-champ);
    background: var(--blanc);
    color: var(--encre);
    text-align: left;
}

.abandon-fenetre::backdrop {
    background: color-mix(in srgb, var(--encre) 50%, transparent);
}

.abandon-fenetre h2 {
    margin-top: 0;
}

.abandon-fenetre .bouton + .bouton {
    margin-top: 0.75rem;
}
