/**
 * FICHE-PAIE.FR — Styles : certificat et attestation de travail (documents RH)
 *
 * Lot 77 (07/11/2026) : pages /certificat-de-travail, /attestation-de-travail,
 * /creer-un-document-rh et /document-rh-confirmation, fidèles aux maquettes
 * validées (Main, Attestation, Edition). Toutes les règles sont préfixées
 * « .drh- » : aucune autre page du site n'est atteinte. Couleurs, polices,
 * rayons et ombres : jetons de design-system/tokens.css.
 *
 * Chargée par templates/layouts/main.php sur ces quatre adresses seulement.
 *
 * Lot 78 (07/11/2026) : écran des compléments et fenêtre de signature
 * (/completer-un-document-rh, maquettes Complements et Signature), page de
 * téléchargement (/document-rh-telechargement, maquette Telechargement) ;
 * règle de la phrase des CGV retirée avec la phrase (page d'édition).
 *
 * Lot 80 (07/11/2026) : fil d'Ariane des deux pages publiques (.drh-fil).
 *
 * @copyright 2026 Purple Telecom
 * @license   Proprietary - All Rights Reserved
 * Emplacement : /var/www/fiche-paie.fr/public/css/pages/documents-rh.css
 * Permissions : 0644
 */

/* ====================================
   PAGES PUBLIQUES
   ==================================== */
.drh-page {
    font-family: var(--gp-font-corps);
    color: var(--gp-bleu-marine);
    background: var(--gp-blanc, #ffffff);
}

.drh-hero {
    background: linear-gradient(180deg, #eef2f9, #ffffff);
}

/* Lot 80 : fil d'Ariane des pages publiques (fond du haut du bandeau, sans rupture) */
.drh-fil {
    background: #eef2f9;
}

.drh-fil__liste {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--gp-gris-texte, #5a6478);
}

.drh-fil__etape {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.drh-fil__etape a {
    color: var(--gp-bleu-primaire);
    text-decoration: none;
}

.drh-fil__etape a:hover,
.drh-fil__etape a:focus-visible {
    text-decoration: underline;
}

.drh-fil__etape [aria-current="page"] {
    color: var(--gp-bleu-marine);
    font-weight: 600;
}

.drh-fil__separateur {
    flex: none;
    opacity: .6;
}

.drh-hero__contenu {
    max-width: 1040px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.drh-surtitre {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gp-bleu-primaire);
}

.drh-hero__titre {
    margin: 0;
    max-width: 820px;
    font-family: var(--gp-font-titres);
    font-size: 46px;
    line-height: 1.12;
    font-weight: 800;
    color: var(--gp-bleu-marine);
}

.drh-hero__chapo {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.6;
    color: #3a465e;
}

.drh-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 16px 24px;
    border: 0;
    border-radius: var(--gp-radius-lg);
    background: linear-gradient(135deg, var(--gp-orange-clair), var(--gp-orange));
    color: #ffffff;
    font: 700 17px var(--gp-font-corps);
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(247, 147, 30, .3);
    cursor: pointer;
    transition: transform var(--gp-duree-ui, .2s) var(--gp-courbe-ui, ease), box-shadow var(--gp-duree-ui, .2s) var(--gp-courbe-ui, ease);
}

.drh-cta:hover,
.drh-cta:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(247, 147, 30, .38);
}

.drh-cta:focus-visible {
    outline: 3px solid var(--gp-bleu-primaire);
    outline-offset: 3px;
}

.drh-cta[disabled] {
    cursor: not-allowed;
    background: #c6ccd8;
    box-shadow: none;
    transform: none;
}

.drh-corps {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px 72px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.drh-sec h2 {
    font-family: var(--gp-font-titres);
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--gp-bleu-marine);
}

.drh-sec p,
.drh-sec li {
    font-size: 16.5px;
    line-height: 1.65;
    color: #3a465e;
}

.drh-sec p {
    margin: 0;
}

.drh-sec ul {
    margin: 0;
    padding-left: 22px;
    list-style: disc;
}

.drh-sec a {
    color: var(--gp-bleu-primaire);
}

.drh-sec__suite {
    margin-top: 10px !important;
}

.drh-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drh-faq__item {
    border: 1px solid var(--gp-bordure);
    border-radius: var(--gp-radius-lg);
    padding: 14px 16px;
}

.drh-faq__item summary {
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    color: var(--gp-bleu-marine);
}

.drh-faq__item p {
    margin: 10px 0 0;
}

.drh-corps__cta {
    align-self: flex-start;
}

/* ====================================
   PAGE D'ÉDITION
   ==================================== */
.drh-edition {
    font-family: var(--gp-font-corps);
    color: var(--gp-bleu-marine);
    background: #f4f6fa;
    min-height: 60vh;
}

.drh-edition__entete {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 24px 8px;
}

.drh-etapes {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13.5px;
    font-weight: 600;
}

.drh-etapes__item {
    background: #e1e6ef;
    color: #5a6478;
    border-radius: 999px;
    padding: 7px 14px;
}

.drh-etapes__item--active {
    background: var(--gp-bleu-primaire);
    color: #ffffff;
}

.drh-edition__titre {
    margin: 0;
    font-family: var(--gp-font-titres);
    font-size: 32px;
    font-weight: 800;
}

.drh-edition__grille {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 24px 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.drh-formulaire {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drh-legende-courte {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #5a6478;
}

.drh-choix-document {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.drh-carte-choix {
    border: 1.5px solid #cfd7e6;
    background: #ffffff;
    border-radius: var(--gp-radius-xl);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
}

.drh-carte-choix:has(input:checked) {
    border: 2px solid var(--gp-bleu-primaire);
}

.drh-carte-choix input {
    width: 20px;
    height: 20px;
    accent-color: var(--gp-bleu-primaire);
    margin: 2px 0 0;
    flex: none;
}

.drh-carte-choix b {
    display: block;
    font-size: 16px;
}

.drh-bloc {
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    background: #ffffff;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.drh-bloc > legend {
    font-family: var(--gp-font-titres);
    font-weight: 700;
    font-size: 18px;
    padding: 0 6px;
}

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

.drh-aide {
    font-size: 12.5px;
    color: #5a6478;
    line-height: 1.4;
}

.drh-puces {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.drh-puces[hidden],
#drh-liste-salaries:empty {
    display: none;
}

#drh-liste-salaries {
    display: contents;
}

.drh-puce {
    border: 1.5px solid #cfd7e6;
    background: #ffffff;
    border-radius: 999px;
    padding: 8px 14px;
    font: 500 14px var(--gp-font-corps);
    color: var(--gp-bleu-marine);
    min-height: 40px;
    cursor: pointer;
}

.drh-puce[aria-pressed="true"] {
    border-color: var(--gp-bleu-primaire);
    background: #f7f9fd;
    color: var(--gp-bleu-primaire);
    font-weight: 600;
}

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

.drh-champs[hidden] {
    display: none;
}

.drh-champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.drh-champ--large {
    grid-column: 1 / -1;
}

.drh-champ label,
.drh-libelle {
    font-size: 13px;
    font-weight: 600;
    color: var(--gp-bleu-marine);
}

.drh-champ input,
.drh-champ select {
    font-family: var(--gp-font-corps);
    font-size: 16px;
    color: var(--gp-bleu-marine);
    border: 1.5px solid #cfd7e6;
    border-radius: 10px;
    padding: 11px 12px;
    background: #ffffff;
    min-height: 46px;
    box-sizing: border-box;
    width: 100%;
}

.drh-champ input:focus,
.drh-champ select:focus {
    outline: 2px solid var(--gp-bleu-primaire);
    outline-offset: 1px;
    border-color: var(--gp-bleu-primaire);
}

.drh-champ input[aria-invalid="true"],
.drh-civilites[aria-invalid="true"] {
    border-color: var(--gp-error);
}

.drh-erreur-champ {
    font-size: 12.5px;
    color: #b91c1c;
}

.drh-civilites {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    border-radius: 10px;
}

.drh-radio {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    cursor: pointer;
}

.drh-radio input {
    width: 20px;
    height: 20px;
    accent-color: var(--gp-bleu-primaire);
}

.drh-recherche__saisie {
    position: relative;
}

.drh-recherche__saisie svg {
    position: absolute;
    left: 13px;
    top: 14px;
    color: #5a6478;
}

.drh-recherche__saisie input {
    padding-left: 40px;
}

.drh-resultats {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e1e6ef;
    border-radius: var(--gp-radius-lg);
    overflow: hidden;
}

.drh-resultats[hidden] {
    display: none;
}

.drh-resultats li + li {
    border-top: 1px solid #e1e6ef;
}

.drh-resultat {
    width: 100%;
    text-align: left;
    border: 0;
    background: #ffffff;
    padding: 12px 14px;
    min-height: 44px;
    cursor: pointer;
    font: 400 14px var(--gp-font-corps);
    color: #3a465e;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drh-resultat b {
    color: var(--gp-bleu-marine);
    font-size: 15px;
}

.drh-resultat:hover,
.drh-resultat:focus-visible {
    background: #f7f9fd;
}

.drh-employeur-choisi {
    border: 1.5px solid var(--gp-bleu-primaire);
    background: #f7f9fd;
    border-radius: var(--gp-radius-lg);
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.drh-employeur-choisi[hidden] {
    display: none;
}

.drh-employeur-choisi__icone {
    color: #1f7a5a;
    flex: none;
    margin-top: 2px;
}

.drh-employeur-choisi__infos {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
    font-size: 14px;
    color: #3a465e;
}

.drh-employeur-choisi__infos b {
    grid-column: 1 / -1;
    font-size: 16px;
    color: var(--gp-bleu-marine);
}

.drh-employeur-choisi__infos [data-drh-affiche="adresse_complete"],
.drh-employeur-choisi__signataire {
    grid-column: 1 / -1;
}

.drh-employeur-choisi__infos span:empty {
    display: none;
}

.drh-lien-bouton {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--gp-bleu-primaire);
    font: 600 14px var(--gp-font-corps);
    min-height: 44px;
    padding: 0 6px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.drh-lien-bouton[hidden] {
    display: none;
}

.drh-commande {
    flex: 1 1 340px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 96px;
}

.drh-commande__corps {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drh-commande__ligne {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.drh-commande__ligne b {
    font-size: 16px;
}

.drh-commande__ligne strong {
    font-size: 24px;
    white-space: nowrap;
}

.drh-commande__tva {
    margin: 0;
    font-size: 13px;
    color: #5a6478;
    text-align: right;
}

.drh-commande__tva[hidden] {
    display: none;
}

.drh-commande__pied {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drh-cta--plein {
    width: 100%;
}

.drh-commande__suite {
    margin: 0;
    text-align: center;
}

.drh-alerte {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.drh-alerte[hidden] {
    display: none;
}

.drh-alerte--info {
    background: #eef2f9;
    color: var(--gp-bleu-marine);
}

.drh-alerte--erreur {
    margin: 0;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.drh-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, .45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: drh-tourne .8s linear infinite;
}

.drh-spinner[hidden] {
    display: none;
}

@keyframes drh-tourne {
    to { transform: rotate(360deg); }
}

/* ====================================
   PAGE DE RETOUR APRÈS PAIEMENT
   ==================================== */
.drh-confirmation {
    font-family: var(--gp-font-corps);
    color: var(--gp-bleu-marine);
    background: #f4f6fa;
    padding: 48px 24px 72px;
}

.drh-confirmation__carte {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--gp-ombre-carte);
}

.drh-confirmation__icone {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f9;
    color: var(--gp-bleu-primaire);
}

.drh-confirmation__icone--ok {
    background: var(--gp-success-pale);
    color: #047857;
}

.drh-confirmation__titre {
    margin: 0;
    font-family: var(--gp-font-titres);
    font-size: 28px;
    font-weight: 800;
}

.drh-confirmation__carte p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #3a465e;
}

.drh-confirmation__recap {
    margin: 4px 0 0;
    display: grid;
    gap: 8px;
}

.drh-confirmation__recap div {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.drh-confirmation__recap dt {
    min-width: 110px;
    color: #5a6478;
}

.drh-confirmation__recap dd {
    margin: 0;
    font-weight: 600;
}

.drh-confirmation__suite h2 {
    font-family: var(--gp-font-titres);
    font-size: 19px;
    margin: 6px 0 6px;
}

/* ====================================
   PETITS ÉCRANS
   ==================================== */
@media (max-width: 768px) {
    .drh-hero__contenu {
        padding: 40px 18px 32px;
    }

    .drh-hero__titre {
        font-size: 32px;
    }

    .drh-hero__chapo {
        font-size: 16.5px;
    }

    .drh-corps {
        padding: 8px 18px 56px;
        gap: 32px;
    }

    .drh-edition__entete,
    .drh-edition__grille {
        padding-left: 16px;
        padding-right: 16px;
    }

    .drh-choix-document,
    .drh-champs,
    .drh-bloc--grille,
    .drh-employeur-choisi__infos {
        grid-template-columns: minmax(0, 1fr);
    }

    .drh-commande {
        position: static;
    }

    .drh-confirmation__carte {
        padding: 24px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drh-cta,
    .drh-spinner {
        transition: none;
        animation: none;
    }
}

/* ====================================
   LOT 78 — COMPLÉMENTS, SIGNATURE, TÉLÉCHARGEMENT
   ==================================== */
.drh-complements,
.drh-telechargement {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.drh-complements .drh-etapes {
    margin: 0;
}

.drh-etapes__item--faite {
    background: #eaf6f0;
    color: #14583f;
}

.drh-complements .drh-edition__titre,
.drh-telechargement .drh-edition__titre {
    margin-top: 4px;
    font-size: 30px;
}

.drh-bandeau {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.45;
}

.drh-bandeau > svg {
    flex: none;
}

.drh-bandeau--ok {
    background: #eaf6f0;
    border: 1px solid #bfe3d2;
    color: #14583f;
}

.drh-bandeau--ok > svg {
    color: #1f7a5a;
}

.drh-bandeau--neutre {
    background: #eef2f9;
    border: 1px solid #c9daf3;
    color: var(--gp-bleu-marine);
}

.drh-bandeau--neutre a {
    color: var(--gp-bleu-primaire);
}

.drh-bandeau__titre {
    display: block;
    font-size: 17px;
}

.drh-repris {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #0f6b6b;
    background: #dff3f2;
    border-radius: 5px;
    padding: 2px 6px;
    margin-left: 6px;
    vertical-align: 1px;
}

.drh-champ[hidden] {
    display: none;
}

.drh-champ textarea {
    font: inherit;
}

.drh-emplois {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drh-emploi {
    border: 1.5px solid #e1e6ef;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.drh-emploi__intitule {
    grid-column: 1 / -1;
}

.drh-emploi__retirer {
    align-self: end;
    justify-self: start;
    min-height: 46px;
    border: 0;
    background: transparent;
    color: #b91c1c;
    font: 600 14px var(--gp-font-corps);
    cursor: pointer;
    padding: 0 4px;
}

.drh-emploi__retirer[hidden] {
    display: none;
}

.drh-ajouter {
    border: 2px dashed #b8c2d6;
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--gp-bleu-primaire);
    font: 700 15px var(--gp-font-corps);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    text-align: left;
    cursor: pointer;
}

.drh-ajouter[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

.drh-ajouter__plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gp-bleu-primaire);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex: none;
}

.drh-case {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
}

.drh-case input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--gp-bleu-primaire);
    flex: none;
}

.drh-case--compacte {
    min-height: 46px;
    align-items: center;
}

.drh-case--compacte input {
    margin: 0;
}

.drh-info {
    background: #eaf1fb;
    border: 1px solid #c9daf3;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
    color: #1f3e72;
}

.drh-info > svg {
    flex: none;
    margin-top: 1px;
    color: var(--gp-bleu-primaire);
}

.drh-info--petit {
    padding: 10px 12px;
    font-size: 12.5px;
    gap: 8px;
}

.drh-modes-signature {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.drh-mode-signature {
    flex: 1 1 220px;
    border: 1.5px solid #cfd7e6;
    background: #ffffff;
    color: var(--gp-bleu-marine);
    border-radius: 12px;
    padding: 12px 14px;
    font: 600 15px var(--gp-font-corps);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    cursor: pointer;
    text-align: left;
}

.drh-mode-signature[aria-pressed="true"] {
    border-color: var(--gp-bleu-primaire);
    background: var(--gp-bleu-primaire);
    color: #ffffff;
}

.drh-mode-signature:focus-visible,
.drh-ajouter:focus-visible,
.drh-bouton-principal:focus-visible,
.drh-bouton-secondaire:focus-visible,
.drh-fenetre__fermer:focus-visible,
.drh-lien:focus-visible {
    outline: 3px solid var(--gp-bleu-primaire);
    outline-offset: 2px;
}

.drh-signature-prete {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fafbfd;
}

.drh-signature-prete[hidden] {
    display: none;
}

.drh-signature-prete img {
    width: 180px;
    height: 70px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
}

.drh-lien {
    border: 0;
    background: transparent;
    color: var(--gp-bleu-primaire);
    font: 600 14px var(--gp-font-corps);
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 0 4px;
}

.drh-cta--bleu {
    background: var(--gp-bleu-primaire);
    box-shadow: none;
    border-radius: 12px;
    min-height: 54px;
}

.drh-cta--bleu:hover,
.drh-cta--bleu:focus-visible {
    box-shadow: 0 6px 14px rgba(29, 69, 140, .25);
}

.drh-cta--petit {
    align-self: flex-start;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14.5px;
    border-radius: 10px;
    box-shadow: none;
}

.drh-complements__note,
.drh-telechargement__note {
    margin: 0;
    text-align: center;
}

/* Fenêtre de signature (maquette Signature.dc.html) */
.drh-fenetre {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.drh-fenetre[hidden] {
    display: none;
}

.drh-fenetre__fond {
    position: absolute;
    inset: 0;
    background: rgba(29, 42, 68, .62);
}

.drh-fenetre__boite {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--gp-font-corps);
    color: var(--gp-bleu-marine);
}

.drh-fenetre__entete {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.drh-fenetre__entete > div {
    flex: 1;
}

.drh-fenetre__titre {
    margin: 0;
    font-family: var(--gp-font-titres);
    font-size: 21px;
}

.drh-fenetre__signataire {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #5a6478;
}

.drh-fenetre__fermer {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #eef2f9;
    color: #5a6478;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
}

.drh-fenetre__consigne {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.45;
}

.drh-toile {
    position: relative;
    height: 260px;
    border: 2px dashed #b8c2d6;
    border-radius: 16px;
    background: #fafbfd;
    touch-action: none;
}

.drh-toile canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    cursor: crosshair;
    touch-action: none;
}

.drh-toile__ligne {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 34px;
    border-top: 1.5px solid #cfd7e6;
    pointer-events: none;
}

.drh-toile__legende {
    position: absolute;
    left: 18px;
    bottom: 12px;
    font-size: 12px;
    color: #5a6478;
    pointer-events: none;
}

.drh-fenetre__actions {
    display: flex;
    gap: 10px;
}

.drh-bouton-secondaire,
.drh-bouton-principal {
    min-height: 48px;
    border-radius: 12px;
    font: 600 15px var(--gp-font-corps);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
}

.drh-bouton-secondaire {
    flex: 1;
    border: 1.5px solid #cfd7e6;
    background: #ffffff;
    color: var(--gp-bleu-marine);
}

.drh-bouton-principal {
    flex: 1.4;
    border: 0;
    background: var(--gp-bleu-primaire);
    color: #ffffff;
    font-weight: 700;
}

.drh-bouton-principal:hover {
    color: #ffffff;
}

body.drh-fenetre-ouverte {
    overflow: hidden;
}

/* Page de téléchargement (maquette Telechargement.dc.html) */
.drh-fichier {
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.drh-fichier--pret {
    border: 1.5px solid var(--gp-bleu-primaire);
}

.drh-fichier > svg {
    flex: none;
}

.drh-fichier__infos {
    flex: 1;
    min-width: 0;
}

.drh-fichier__infos b {
    display: block;
    font-size: 15.5px;
}

.drh-fichier__infos span {
    font-size: 13px;
    color: #5a6478;
}

.drh-fichier .drh-bouton-principal {
    flex: none;
    min-height: 44px;
    border-radius: 10px;
    font-size: 14.5px;
}

.drh-autre {
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #e1e6ef;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drh-autre__titre {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gp-bleu-primaire);
}

.drh-autre__carte {
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drh-autre__carte b {
    font-size: 15.5px;
}

.drh-telechargement__retour {
    margin: 0;
    font-size: 14px;
}

.drh-telechargement__retour a {
    color: var(--gp-bleu-primaire);
    font-weight: 600;
}

@media (max-width: 767px) {
    .drh-complements,
    .drh-telechargement {
        padding: 20px 16px 48px;
    }

    .drh-complements .drh-edition__titre,
    .drh-telechargement .drh-edition__titre {
        font-size: 25px;
    }

    .drh-emploi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .drh-emploi__retirer {
        grid-column: 1 / -1;
        min-height: 40px;
    }

    .drh-fenetre {
        align-items: flex-end;
        padding: 0;
    }

    .drh-fenetre__boite {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
    }

    .drh-toile {
        height: 46vh;
        min-height: 240px;
    }

    .drh-fichier {
        flex-wrap: wrap;
    }

    .drh-fichier .drh-bouton-principal {
        width: 100%;
    }
}
