/**********************************************************************
 * Projet          : Villa Bergame I
 * Fichier         : css/V2_style.css
 *
 * Description     : Feuille de style commune à l'ensemble des pages
 *                   de la nouvelle version du site Villa Bergame.
 *
 * Création        : 2026-07-26 09:45
 * Dernière modif. :
 *
 * Auteur          : Philippe PERRUCHON
 * Assistance      : OpenAI - ChatGPT
 *
 *********************************************************************/


/**********************************************************************
 * RÉGLAGES GÉNÉRAUX
 *********************************************************************/

:root {
    --v2-vert-principal: #52766a;
    --v2-vert-fonce: #426158;
    --v2-vert-tres-clair: #eef3f1;

    --v2-texte-principal: #263238;
    --v2-texte-secondaire: #64736e;

    --v2-fond-page: #e5eeeb;
    --v2-fond-carte: #ffffff;

    --v2-bordure: #b8c7c2;

    --v2-rayon-carte: 22px;
    --v2-rayon-element: 11px;

    --v2-ombre:
        0 16px 45px rgba(33, 56, 48, 0.14);
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}


body {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    font-family: Arial, Helvetica, sans-serif;
    color: var(--v2-texte-principal);

    background:
        linear-gradient(
            145deg,
            #eef3f1 0%,
            #dfe9e5 100%
        );
}


/**********************************************************************
 * STRUCTURE PRINCIPALE
 *********************************************************************/

.v2-application {
    width: 100%;
    max-width: 500px;
}


.v2-carte {
    overflow: hidden;

    border-radius: var(--v2-rayon-carte);

    background: var(--v2-fond-carte);

    box-shadow: var(--v2-ombre);
}


.v2-contenu {
    padding: 28px 30px 34px;
}


/**********************************************************************
 * BANNIÈRE DE LA RÉSIDENCE
 *********************************************************************/

.v2-banniere {
    width: 100%;

    overflow: hidden;

    background: #dfe8e4;
}


.v2-banniere img {
    display: block;

    width: 100%;
    height: auto;
}


/**********************************************************************
 * EN-TÊTE DES PAGES
 *********************************************************************/

.v2-entete {
    margin-bottom: 28px;

    text-align: center;
}


.v2-entete h1 {
    margin: 0 0 9px;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}


.v2-sous-titre {
    margin: 0;

    font-size: 16px;
    line-height: 1.5;
    color: var(--v2-texte-secondaire);
}


/**********************************************************************
 * FORMULAIRES
 *********************************************************************/

.v2-champ {
    margin-bottom: 22px;
}


.v2-label {
    display: block;

    margin-bottom: 8px;

    font-size: 15px;
    font-weight: 700;
}


.v2-input {
    width: 100%;
    min-height: 52px;

    padding: 12px 14px;

    border: 1px solid var(--v2-bordure);
    border-radius: 10px;

    font-family: inherit;
    font-size: 17px;
    color: var(--v2-texte-principal);

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.v2-input:focus {
    outline: none;

    border-color: var(--v2-vert-principal);

    box-shadow:
        0 0 0 3px rgba(82, 118, 106, 0.15);
}


.v2-input::placeholder {
    color: #98a5a1;
}


/**********************************************************************
 * BOUTONS
 *********************************************************************/

.v2-bouton {
    width: 100%;
    min-height: 54px;

    padding: 13px 20px;

    border: 0;
    border-radius: var(--v2-rayon-element);

    cursor: pointer;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;

    background: var(--v2-vert-principal);

    transition:
        background 0.2s ease,
        transform 0.1s ease;
}


.v2-bouton:hover {
    background: var(--v2-vert-fonce);
}


.v2-bouton:active {
    transform: scale(0.99);
}


.v2-bouton:focus-visible {
    outline: 3px solid rgba(82, 118, 106, 0.30);
    outline-offset: 2px;
}


/**********************************************************************
 * TEXTES D'EXPLICATION
 *********************************************************************/

.v2-explication {
    margin: 23px 0 0;

    font-size: 14px;
    line-height: 1.55;
    text-align: center;
    color: #6d7b77;
}


/**********************************************************************
 * MESSAGES TEMPORAIRES
 *********************************************************************/

.v2-message {
    margin-bottom: 22px;
    padding: 13px 15px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.45;
}


.v2-message-success {
    color: #155d37;
    background: #e7f6ed;
    border: 1px solid #b9e3ca;
}


.v2-message-info {
    color: #255a75;
    background: #e8f4fa;
    border: 1px solid #bdddea;
}


.v2-message-warning {
    color: #755711;
    background: #fff6dc;
    border: 1px solid #ead59a;
}


.v2-message-error {
    color: #842727;
    background: #fdecec;
    border: 1px solid #efbaba;
}


/**********************************************************************
 * PIED DE PAGE
 *********************************************************************/

.v2-pied {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 20mm;      /* au lieu de 16 mm */
    padding: 2mm 5mm 4mm;  /* un peu plus d'air en bas */
    background: #83bba2;
    text-align: center;
}


/**********************************************************************
 * AFFICHAGE SUR SMARTPHONE
 *********************************************************************/

@media (max-width: 520px) {

    body {
        align-items: flex-start;

        padding: 12px;
    }


    .v2-application {
        margin-top: 10px;
    }


    .v2-carte {
        border-radius: 18px;
    }


    .v2-contenu {
        padding: 24px 20px 28px;
    }


    .v2-entete {
        margin-bottom: 24px;
    }


    .v2-entete h1 {
        font-size: 25px;
    }
}

/**********************************************************************
 * SAISIE DU CODE DE CONNEXION
 *********************************************************************/

.v2-code-input {
    width: 100%;
    min-height: 62px;

    padding: 12px 14px;

    border: 1px solid var(--v2-bordure);
    border-radius: 10px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    color: var(--v2-texte-principal);

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.v2-code-input:focus {
    outline: none;

    border-color: var(--v2-vert-principal);

    box-shadow:
        0 0 0 3px rgba(82, 118, 106, 0.15);
}


.v2-email-rappel {
    margin: 0 0 22px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: #426158;

    background: #eef5f2;
    border: 1px solid #cfdfd9;
}


.v2-actions-secondaires {
    margin-top: 22px;

    text-align: center;
}


.v2-lien {
    display: inline-block;

    border: 0;
    padding: 0;

    cursor: pointer;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: underline;
    color: var(--v2-vert-fonce);

    background: transparent;
}


.v2-lien:hover {
    text-decoration: none;
}


.v2-separateur {
    margin: 0 8px;

    color: #a2ada9;
}


.v2-retour {
    margin-top: 18px;

    text-align: center;
}


.v2-retour a {
    font-size: 14px;
    color: var(--v2-texte-secondaire);
    text-decoration: none;
}


.v2-retour a:hover {
    text-decoration: underline;
}


@media (max-width: 520px) {

    .v2-code-input {
        font-size: 26px;
        letter-spacing: 8px;
    }
}

/**********************************************************************
 * TABLEAU DE BORD - PAGE V2_ACCUEIL
 *********************************************************************/

.v2-body {
    margin: 0;
    background: #f1f4f7;
    color: #252a30;
    font-family: Arial, Helvetica, sans-serif;
}

.v2-dashboard {
    width: min(1100px, calc(100% - 30px));
    margin: 35px auto;
}

.v2-bandeau-residence {
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid #d3d9df;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 35, 50, 0.07);
}

.v2-bandeau-image {
    display: block;
    width: 100%;
    height: auto;
}

.v2-bloc {
    margin-bottom: 22px;
    padding: 25px;
    border: 1px solid #d3d9df;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 35, 50, 0.07);
}

.v2-bloc h1,
.v2-bloc h2,
.v2-bloc h3 {
    margin-top: 0;
}

.v2-bloc h1 {
    margin-bottom: 8px;
    color: #20558a;
    font-size: 2rem;
}

.v2-bloc h2 {
    margin-bottom: 18px;
    font-size: 1.4rem;
}

.v2-bloc-bienvenue {
    padding-top: 22px;
    padding-bottom: 22px;
}

.v2-bienvenue {
    margin: 0 0 15px;
    color: #5c6773;
    font-size: 1.05rem;
}

.v2-identite-resident {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.v2-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 20px;
    background: #eef2f5;
    color: #45515e;
    font-size: 0.88rem;
    font-weight: 600;
}

.v2-badge-role {
    background: #dceaf7;
    color: #1e5f96;
}

.v2-badge-fonction {
    background: #e7f2ea;
    color: #267143;
}

.v2-flash {
    margin-bottom: 22px;
    padding: 15px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.v2-flash-success {
    background: #e5f4e9;
    color: #276a3d;
}

.v2-flash-info {
    background: #e5eff8;
    color: #245b88;
}

.v2-flash-warning {
    background: #fff2d9;
    color: #805500;
}

.v2-flash-error {
    background: #fde6e6;
    color: #a02020;
}

.v2-titre-bloc {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.v2-titre-bloc h2 {
    margin-bottom: 4px;
}

.v2-titre-bloc p {
    margin: 0;
    color: #6a737d;
}

.v2-liste-interventions {
    display: grid;
    gap: 10px;
}

.v2-intervention {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid #dfe4e9;
    border-radius: 12px;
    background: #f9fafb;
}

.v2-intervention-date {
    color: #215b8f;
    font-weight: 700;
}

.v2-intervention-contenu h3 {
    margin: 0;
    font-size: 1rem;
}

.v2-intervention-horaire {
    margin: 5px 0 0;
    color: #6b747e;
    font-size: 0.9rem;
}

.v2-bouton-detail {
    min-height: 39px;
    padding: 8px 14px;
    border: 1px solid #2469a3;
    border-radius: 8px;
    background: #ffffff;
    color: #2469a3;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.v2-bouton-detail:hover {
    background: #2469a3;
    color: #ffffff;
}

.v2-detail-indisponible {
    color: #89919a;
    font-size: 0.85rem;
}

.v2-aucune-donnee {
    padding: 20px;
    border-radius: 10px;
    background: #f2f4f6;
    color: #65707b;
    text-align: center;
}

.v2-voir-tout {
    margin-top: 20px;
    text-align: right;
}

.v2-bouton-secondaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 17px;
    border-radius: 8px;
    background: #205f94;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.v2-bouton-secondaire:hover {
    background: #174d7b;
}

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

.v2-gros-bouton {
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 15px 20px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.v2-gros-bouton:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.v2-icone {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.8rem;
}

.v2-bouton-texte {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.25;
}

.v2-bouton-texte strong {
    font-size: 1rem;
}

.v2-bouton-texte small {
    font-size: 0.86rem;
    opacity: 0.92;
}

.v2-bouton-vert {
    background: #318852;
}

.v2-bouton-bleu {
    background: #2d73ae;
}

.v2-bouton-orange {
    background: #c56d13;
}

.v2-bouton-gris {
    background: #626c78;
}

.v2-information-admin {
    margin-bottom: 15px;
    padding: 13px 15px;
    border-left: 5px solid #626c78;
    border-radius: 6px;
    background: #eef0f3;
    color: #525d68;
}

.v2-zone-deconnexion {
    padding: 2px 0 35px;
    text-align: center;
}

.v2-bouton-deconnexion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 165px;
    min-height: 47px;
    padding: 8px 18px;
    border: 1px solid #cf2d2d;
    border-radius: 9px;
    background: #ffffff;
    color: #c32626;
    font-weight: 700;
    text-decoration: none;
}

.v2-bouton-deconnexion:hover {
    background: #c32626;
    color: #ffffff;
}


/**********************************************************************
 * FENÊTRE DE DÉTAIL D'UNE INTERVENTION
 *********************************************************************/

.v2-dialog-detail {
    width: min(650px, calc(100% - 30px));
    max-height: calc(100vh - 50px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.v2-dialog-detail::backdrop {
    background: rgba(20, 28, 36, 0.62);
}

.v2-dialog-entete {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid #e0e4e8;
}

.v2-dialog-entete h2 {
    margin: 0;
    color: #20558a;
    font-size: 1.25rem;
}

.v2-dialog-fermer-croix {
    padding: 0;
    border: 0;
    background: transparent;
    color: #606974;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.v2-dialog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 13px 22px;
    background: #f3f5f7;
    color: #56616c;
}

.v2-dialog-contenu {
    padding: 24px 22px;
    color: #30363c;
    line-height: 1.6;
}

.v2-dialog-actions {
    padding: 0 22px 22px;
    text-align: right;
}

.v2-bouton-fermer {
    min-height: 41px;
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    background: #205f94;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}


/**********************************************************************
 * AFFICHAGE SMARTPHONE
 *********************************************************************/

@media (max-width: 760px) {

    .v2-dashboard {
        width: min(100% - 18px, 1100px);
        margin-top: 10px;
    }

    .v2-bandeau-residence,
    .v2-bloc {
        border-radius: 12px;
    }

    .v2-bloc {
        padding: 18px;
    }

    .v2-bloc h1 {
        font-size: 1.65rem;
    }

    .v2-grille-boutons {
        grid-template-columns: 1fr;
    }

    .v2-intervention {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .v2-intervention-action {
        margin-top: 3px;
    }

    .v2-bouton-detail {
        width: 100%;
    }

    .v2-voir-tout {
        text-align: center;
    }

    .v2-bouton-secondaire {
        width: 100%;
        box-sizing: border-box;
    }

    .v2-gros-bouton {
        min-height: 90px;
    }

    .v2-dialog-detail {
        width: calc(100% - 18px);
        max-height: calc(100vh - 18px);
    }
}

/**********************************************************************
 * INFORMATIONS COMPLÉMENTAIRES DANS LE DÉTAIL D'UNE INTERVENTION
 *********************************************************************/

.v2-dialog-informations {
    padding: 18px 22px;
    border-bottom: 1px solid #e1e5e9;
    background: #ffffff;
}

.v2-dialog-ligne {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 10px 0;
}

.v2-dialog-ligne + .v2-dialog-ligne {
    border-top: 1px solid #edf0f2;
}

.v2-dialog-libelle {
    color: #596571;
    font-weight: 700;
}

.v2-dialog-valeur {
    color: #252b31;
    line-height: 1.45;
}

.v2-dialog-detail-titre {
    padding: 20px 22px 0;
    color: #20558a;
    font-size: 1rem;
    font-weight: 700;
}

.v2-dialog-contenu {
    padding-top: 12px;
}

@media (max-width: 600px) {

    .v2-dialog-ligne {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/**********************************************************************
 * LIENS VERS LES DOCUMENTS DANS LES DÉTAILS
 *********************************************************************/

.v2-lien-document {
    color: #1767a5;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.v2-lien-document:hover {
    color: #0e4c7d;
}


/**********************************************************************
 * PAGE V2_INTERVENTIONS
 *********************************************************************/

.v2-page-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.v2-page-entete h1 {
    margin: 0 0 6px;
    color: #20558a;
}

.v2-page-entete p {
    margin: 0;
    color: #66717d;
}

.v2-bouton-retour {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #2a6598;
    border-radius: 8px;
    background: #ffffff;
    color: #235d8d;
    font-weight: 700;
    text-decoration: none;
}

.v2-bouton-retour:hover {
    background: #235d8d;
    color: #ffffff;
}

.v2-formulaire-periode {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.v2-formulaire-periode label {
    color: #45515d;
    font-weight: 700;
}

.v2-formulaire-periode select {
    min-width: 260px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd3db;
    border-radius: 8px;
    background: #ffffff;
    color: #28323b;
    font: inherit;
}

.v2-periode-affichee {
    margin: 14px 0 0;
    color: #66717d;
    font-size: 0.92rem;
}

.v2-historique-liste {
    display: grid;
    gap: 18px;
}

.v2-historique-carte {

    margin-bottom: 22px;

    padding: 22px;

    background: #F2FBF4;

    border: 1px solid #C8E5CF;

    border-left: 8px solid #3D9658;

    border-radius: 14px;

    box-shadow: 0 6px 18px rgba(40,65,45,.08);

}

.v2-historique-entete {

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:20px;

    padding-bottom:16px;

    margin-bottom:16px;

    border-bottom:2px solid #D6EBD9;

}

.v2-historique-entete h2 {
    margin: 5px 0 0;
    color: #20558a;
    font-size: 1.25rem;
}

.v2-historique-date {
    color: #596673;
    font-weight: 700;
}

.v2-badge-duree {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 16px;
    background: #205f94;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.v2-historique-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 14px 0;
    color: #4f5a65;
}

.v2-historique-participants {

    margin-top:18px;

    padding:15px 18px;

    background:#FFFFFF;

    border-left:5px solid #72B785;

    border-radius:10px;

}

.v2-historique-participants strong {
    display: block;
    margin-bottom: 5px;
    color: #4e5a66;
}

.v2-historique-detail {

    margin-top:18px;

    padding:16px 18px;

    background:#FFFFFF;

    border-left:5px solid #2B6DA7;

    border-radius:10px;

}

.v2-historique-detail h3 {
    margin: 0 0 9px;
    color: #20558a;
    font-size: 1rem;
}

.v2-historique-detail > div {
    color: #2f363d;
    line-height: 1.55;
}

.v2-compte-rendu {
    margin-top: 18px;
    border: 1px solid #d8e0e7;
    border-radius: 9px;
    overflow: hidden;
}

.v2-compte-rendu summary {
    padding: 13px 15px;
    background: #eef3f7;
    color: #20558a;
    font-weight: 700;
    cursor: pointer;
}

.v2-compte-rendu-contenu {
    padding: 18px;
    overflow-wrap: anywhere;
}

.v2-compte-rendu-contenu img {
    max-width: 100%;
    height: auto;
}

.v2-historique-image {
    margin-top: 18px;
    text-align: center;
}

.v2-historique-image img {
    max-width: min(100%, 620px);
    height: auto;
    border-radius: 10px;
    border: 1px solid #d7dde3;
}

@media (max-width: 760px) {

    .v2-page-entete {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-bouton-retour {
        width: 100%;
        box-sizing: border-box;
    }

    .v2-formulaire-periode {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-formulaire-periode select {
        width: 100%;
        min-width: 0;
    }

    .v2-historique-entete {
        flex-direction: column;
        gap: 10px;
    }

    .v2-badge-duree {
        align-self: flex-start;
    }

    .v2-historique-carte {
        padding: 16px;
    }
}


/**********************************************************************
 * PAGE V2_TELUTILES
 *********************************************************************/

.v2-utiles-liste {
    display: grid;
    gap: 18px;
}

.v2-utile-carte {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border: 1px solid #c8e5cf;
    border-left: 8px solid #3d9658;
    border-radius: 14px;
    background: #f2fbf4;
    box-shadow: 0 6px 18px rgba(40, 65, 45, 0.08);
}

.v2-utile-icone {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
    font-size: 2rem;
}

.v2-utile-contenu h2 {
    margin: 0 0 10px;
    color: #20558a;
    font-size: 1.22rem;
}

.v2-utile-contenu p {
    margin: 0 0 12px;
    color: #30383f;
    line-height: 1.55;
}

.v2-liste-simple {
    margin: 0 0 14px;
    padding-left: 22px;
    color: #30383f;
    line-height: 1.55;
}

.v2-lien-action,
.v2-lien-telephone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.v2-lien-action {
    border: 1px solid #2a6598;
    background: #ffffff;
    color: #235d8d;
}

.v2-lien-action:hover {
    background: #235d8d;
    color: #ffffff;
}

.v2-lien-telephone {
    border: 1px solid #3d9658;
    background: #ffffff;
    color: #267143;
    font-size: 1.08rem;
}

.v2-lien-telephone:hover {
    background: #318852;
    color: #ffffff;
}

.v2-utile-image {
    margin-top: 18px;
    text-align: center;
}

.v2-utile-image img {
    display: inline-block;
    max-width: min(100%, 750px);
    height: auto;
    border: 1px solid #cfd8d3;
    border-radius: 10px;
    background: #ffffff;
}

@media (max-width: 640px) {

    .v2-utile-carte {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }

    .v2-utile-icone {
        justify-content: flex-start;
    }

    .v2-lien-action,
    .v2-lien-telephone {
        width: 100%;
        text-align: center;
    }
}


/**********************************************************************
 * PAGE V2_ADMIN_RESIDENTS
 *********************************************************************/

.v2-residents-selection {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.v2-residents-selection label {
    color: #45515d;
    font-weight: 700;
}

.v2-residents-selection select {
    min-width: 280px;
    min-height: 46px;
    padding: 9px 13px;
    border: 1px solid #cbd3db;
    border-radius: 8px;
    background: #ffffff;
    color: #28323b;
    font: inherit;
}

.v2-residents-batiment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 5px solid #318852;
    border-radius: 8px;
    background: #edf7f0;
    color: #315840;
}

.v2-residents-liste {
    display: grid;
    gap: 20px;
}

.v2-logement-carte {
    border-left: 7px solid #318852;
}

.v2-logement-entete {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #dbe8df;
}

.v2-logement-entete h2 {
    margin: 0 0 5px;
    color: #20558a;
    font-size: 1.35rem;
}

.v2-logement-entete span {
    color: #6b747e;
    font-size: 0.9rem;
}

.v2-occupants-liste {
    display: grid;
    gap: 12px;
}

.v2-occupant-fiche,
.v2-ajout-resident {
    overflow: hidden;
    border: 1px solid #d7e1dc;
    border-radius: 11px;
    background: #ffffff;
}

.v2-occupant-fiche > summary,
.v2-ajout-resident > summary {
    cursor: pointer;
    list-style: none;
}

.v2-occupant-fiche > summary::-webkit-details-marker,
.v2-ajout-resident > summary::-webkit-details-marker {
    display: none;
}

.v2-occupant-fiche > summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px 17px;
    background: #f5faf7;
}

.v2-occupant-fiche[open] > summary {
    border-bottom: 1px solid #d7e1dc;
    background: #edf7f0;
}

.v2-occupant-identite {
    color: #28343b;
    font-size: 1.03rem;
}

.v2-occupant-identite strong {
    margin-right: 4px;
}

.v2-occupant-complement {
    color: #65716c;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.4;
}

.v2-occupant-formulaire {
    padding: 20px;
}

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

.v2-textarea {
    min-height: 92px;
    resize: vertical;
}

.v2-residents-options {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.v2-residents-options > label:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.v2-input-ordre {
    width: 95px;
    min-height: 44px;
}

.v2-checkbox-ligne {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: #3f4a52;
    font-weight: 700;
}

.v2-checkbox-ligne input {
    width: 20px;
    height: 20px;
}

.v2-residents-actions {
    display: flex;
    justify-content: flex-start;
}

.v2-bouton-enregistrer {
    width: auto;
    min-width: 180px;
}

.v2-formulaire-suppression {
    padding: 0 20px 20px;
    text-align: right;
}

.v2-bouton-supprimer {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #c62c2c;
    border-radius: 8px;
    background: #ffffff;
    color: #b82424;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.v2-bouton-supprimer:hover {
    background: #c32626;
    color: #ffffff;
}

.v2-ajout-resident {
    margin-top: 16px;
    border-style: dashed;
    border-color: #8fb59b;
}

.v2-ajout-resident > summary {
    padding: 14px 17px;
    color: #267143;
    font-weight: 700;
    text-align: center;
    background: #f1f8f3;
}

.v2-ajout-resident[open] > summary {
    border-bottom: 1px dashed #8fb59b;
}

@media (max-width: 760px) {

    .v2-residents-selection {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-residents-selection select {
        width: 100%;
        min-width: 0;
    }

    .v2-residents-grille {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .v2-residents-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .v2-bouton-enregistrer {
        width: 100%;
    }

    .v2-formulaire-suppression {
        text-align: center;
    }

    .v2-bouton-supprimer {
        width: 100%;
    }
}