.dataroom-container h1{
    font-size:2rem;
    line-height:1.2em;
}

.dataroom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.dataroom-header h1 {
    margin: 0;
}

.dataroom-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dataroom-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color, #2563eb);
    color: white;
    height: 44px; /* Hauteur fixe pour tous les boutons */
    box-sizing: border-box;
}

.dataroom-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: var(--primary-hover, #2260FF);
}

.dataroom-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1); /* Rend toutes les icônes blanches */
}

.dataroom-btn.pdf-view-btn {
    background-color: var(--primary-color, #2563eb);
    color: white;
}

.dataroom-btn.pdf-view-btn:hover {
    background-color: var(--primary-hover, #2260FF);
}

.dataroom-btn.share-btn {
    background-color: var(--primary-color, #2563eb);
    color: white;
}

.dataroom-btn.share-btn:hover {
    background-color: var(--primary-hover, #2260FF);
}

.dataroom-btn.edit-btn {
    background-color: var(--primary-color, #2563eb);
    color: white;
}

.dataroom-btn.edit-btn:hover {
    background-color: var(--primary-hover, #2260FF);
}

.download-zip-btn {
    background-color: var(--primary-color, #2563eb);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
    height: 44px; /* Même hauteur que les autres boutons */
    box-sizing: border-box;
}

.download-zip-btn:hover {
    background-color: var(--primary-hover, #2260FF);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-shadow, rgba(59, 130, 246, 0.3));
}

.download-zip-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-zip-btn i {
    font-size: 1.1em;
    filter: brightness(0) invert(1); /* Rend l'icône blanche */
}

.dataroom-head{
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    padding:16px;
    margin-bottom: 20px;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    h2{
        font-size:1rem;
        line-height:1.2em;
    }
    >div{

    }
}
#dataroom-tables{
    display:grid;
    gap:20px;

    *{
        box-sizing: border-box;
    }

    .dr-table{
        box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
        border-radius:4px;
        overflow:hidden;
        &:has(>div>div:empty){
            display:none
        }
        h3{
            padding:8px 16px;
            margin: 0;
            background-color:var(--dataroomColordark);
            color:#fff;
            font-size:1.2rem;
            line-height:1.2em;
        }
        >div{
            overflow: auto;
        }
        >div>div{
            /* padding:16px 0; */
            display:table;
            width:100%;
            >div{
                padding:8px 16px;
                font-size:1rem;
                line-height:1.2em;
                display:grid;
                align-items: center;
                gap:1em;
                width:fit-content;
                min-width:100%;
                &:has(>span){

                    grid-template-columns:250px 1fr;
                }
                color:#333;
                >span:first-child{
                    color:#000;
                    font-weight: 500;
                }
                >span{
                    min-width:140px;
                }
                >div{
                    display:grid;
                    gap:2em;
                    align-items: center;
                }
                &:nth-child(even){
                    position: relative;
                    background-color:#f7f7f7;
                    /* &::before{
                        position:absolute;
                        content: '';
                        display:block;

                        left:0;
                        top:0;
                        bottom:0;
                        width:4000vw;
                        background-color: #f7f7f7;
                    }
                    >*{
                        position: relative;
                    } */
                }
            }
        }

        /* &[data-k="cadastre"]>div>div>div,
        &[data-k="terrain"]>div>div>div
        {
            grid-template-columns:140px 1fr;
        } */
        &[data-k="localisation"]>div>div>div>div{
            grid-template-columns:100px 1fr;
        }
        &:where([data-k="superficie"],[data-k="matext"],[data-k="matint"],[data-k="equipments"])>div>div>div>div{
            grid-template-columns:120px 1fr;
        }
        &[data-k="other"]>div>div>div>div{
            grid-template-columns:180px 1fr;
        }
    }
    
}

.data-room-medias{
    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
    border-radius:4px;
    padding:8px;
    h2{
        font-size:1.8rem;
        line-height: 1.2em;;
    }
    h3{
        font-size:1.4rem;
        line-height: 1.2em;;
    }
    >.cartes{
        display:flex;
        gap:20px;
        flex-wrap:wrap;
        @media(width>1200px){
            display:grid;
            grid-template-columns: 1fr 1fr 1fr;
        }
        >div{
            /* max-width:800px; */
            position:relative;
            .legende{
                width: 40px;
                height: 40px;
                position:absolute;
                top:0;
                right:0;
                background-color:var(--dataroomColordark);
                color:#fff;
                display:grid;
                place-items:center;
            }
        }
    }
    >div.images{
        display:flex;
        overflow:auto;
        gap:10px;
        max-height:220px;
        overflow:auto;
        scroll-snap-type: x mandatory;
        >*{
            scroll-snap-align: start;
            flex-shrink:0;
            max-width:180px;
            img{
                aspect-ratio:1;
                object-fit:cover;
            }




        }
    }

    >.docs{
        margin-top: 20px;
        display:grid;
        gap:8px;
        a.doc{
            display:inline-block;
            padding:0.6em 1.2em;
            background-color:var(--dataroomColordark);
            color:#fff;
        }
    }
}

/* Styles responsifs pour le header de la dataroom */
@media (max-width: 768px) {
    .dataroom-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .dataroom-header h1 {
        font-size: 1.5rem;
        padding-top: 20px !important;
    }
    
    .dataroom-actions {
        justify-content: center;
        gap: 8px;
    }
    
    .dataroom-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .download-zip-btn {
        justify-content: center;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dataroom-header h1 {
        font-size: 1.3rem;
    }
    
    .dataroom-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dataroom-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .download-zip-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Styles spécifiques pour le modal de partage de la dataroom */
.share-container p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 0.95rem;
}

.share-link-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.share-link-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    color: #333;
}

.share-link-container input:focus {
    outline: none;
    border-color: var(--dataroomColordark, #007cba);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.copy-link-btn {
    padding: 12px 16px;
    background-color: var(--primary-color, #2563eb);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    height: 44px; /* Même hauteur que les autres boutons */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-link-btn:hover {
    background-color: var(--primary-hover, #2260FF);
}

.copy-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

.copy-feedback i {
    color: #28a745;
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .share-link-container {
        flex-direction: column;
    }
    
    .copy-link-btn {
        width: 100%;
    }
}

/* Styles pour la section QR code */
.qr-code-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.qr-code-section p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 0.95rem;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.qr-code-container img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.qr-code-container img:hover {
    transform: scale(1.05);
}

.download-qr-btn {
    padding: 12px 20px;
    background-color: var(--dataroomColordark, #007cba);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 44px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
}

.download-qr-btn:hover {
    background-color: var(--dataroomColorlight, #005a87);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-qr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive pour la section QR code */
@media (max-width: 768px) {
    .qr-code-container {
        gap: 12px;
    }
    
    .download-qr-btn {
        min-width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Styles Dataroom-2
   ======================================== */

/* Variables CSS pour personnalisation */
:root {
    --dr2-color-primary: #6b9abe;
    --dr2-section-header-bg: #2563eb;
    --dr2-color-header-black: #000;
    --dr2-color-header-white: #fff;
    --dr2-color-border: #000;
    --dr2-color-separator: #ccc;
    --dr2-color-separator-thick: #ddd;
    --dr2-color-bg-white: #fff;
    --dr2-color-text: #333;
    --dr2-shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   1. GALERIES D'IMAGES
   ======================================== */

.dr2-gallery {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.dr2-gallery a {
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    max-width: none !important;
    max-height: 250px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    box-shadow: var(--dr2-shadow-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: relative !important;
}

.dr2-gallery a img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* Override du CSS original pour les galeries */
.data-room-medias div.images.dr2-gallery {
    max-height: none !important;
    overflow: visible !important;
    display: grid !important;
}

/* Responsive pour les galeries */
@media (max-width: 768px) {
    .dr2-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .dr2-gallery a {
        height: 200px !important;
        max-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .dr2-gallery {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .dr2-gallery a {
        height: 250px !important;
        max-height: 250px !important;
    }
}

/* ========================================
   2. TABLEAUX D'OCCUPATION
   ======================================== */

/* Conteneur général pour les tableaux d'occupation */
.dr2-table-occupation {
    padding: 0;
}

.dr2-table-occupation-header {
    background-color: var(--dr2-color-primary);
    color: var(--dr2-color-header-white);
    padding: 10px;
    margin: 0;
}

/* Styles communs pour tous les tableaux */
.dr2-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--dr2-color-border);
}

.dr2-table thead tr {
    background-color: var(--dr2-color-header-black) !important;
}

.dr2-table th {
    border: 1px solid var(--dr2-color-border);
    padding: 10px;
    text-align: left;
    color: var(--dr2-color-header-white) !important;
}

.dr2-table td {
    border: 1px solid var(--dr2-color-border);
    padding: 10px;
}

.dr2-table tr.dr2-table-total {
    font-weight: bold;
}

/* Tableau occupation résidentielle spécifique */
.dr2-table-residentiel {
    /* Styles spécifiques si nécessaire */
}

/* Tableau occupation commerciale spécifique */
.dr2-table-commercial {
    /* Styles spécifiques si nécessaire */
}

/* Tableau synthèse spécifique */
.dr2-table-synthese td {
    text-align: left;
}

.dr2-table-synthese .dr2-section-header {
    background-color: var(--dr2-color-header-black) !important;
    color: var(--dr2-color-header-white) !important;
}

/* ========================================
   3. ÉQUIPEMENTS - Nouvelle structure
   ======================================== */

.dr2-equipements-container {
    padding: 15px !important;
}

.dr2-equipement-item {
    margin-bottom: 20px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--dr2-color-separator) !important;
    display: block !important;
    flex-direction: unset !important;
    gap: unset !important;
}

.dr2-equipement-header {
    margin-bottom: 15px !important;
    display: block !important;
    width: 100% !important;
}

.dr2-equipement-content-row {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
}

.dr2-equipement-description {
    flex: 1 !important;
    text-align: justify !important;
}

.dr2-equipement-image {
    flex-shrink: 0 !important;
    width: 250px !important;
    height: 250px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dr2-equipement-image img {
    width: 250px !important;
    height: 250px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    box-shadow: var(--dr2-shadow-light) !important;
}

/* Responsive pour équipements */
@media (max-width: 768px) {
    .dr2-equipement-content-row {
        flex-direction: column !important;
    }
    
    .dr2-equipement-image {
        width: 100% !important;
        height: 200px !important;
    }
    
    .dr2-equipement-image img {
        width: 100% !important;
        height: 200px !important;
    }
}

/* ========================================
   4. PARACHÈVEMENTS
   ======================================== */

.dr2-parachevement-container {
    background-color: var(--dr2-color-bg-white);
    padding: 15px;
}

/* Garder les sous-titres des parachèvements mais sans bordure */
.dr2-parachevement-separator {
    border-top: none !important;
    margin: 20px 0 10px 0;
}

/* Ligne de séparation entre les sous-titres des parachèvements */
.dr2-parachevement-separator:has(h4) {
    border-top: 1px solid #e0e0e0 !important;
    margin: 25px 0 15px 0 !important;
    padding-top: 15px !important;
}

/* Pas de bordure pour le premier sous-titre (Sol) */
.dr2-parachevement-separator:has(h4):first-of-type {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dr2-parachevement-row {
    display: flex;
    margin-bottom: 15px;
    gap: 20px;
    align-items: flex-start;
}

.dr2-parachevement-label {
    flex: 0 0 18%;
    font-weight: normal;
}

.dr2-parachevement-state {
    flex: 0 0 18%;
}

.dr2-parachevement-description {
    flex: 1;
    text-align: justify;
}

/* Responsive pour parachèvements */
@media (max-width: 768px) {
    .dr2-parachevement-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .dr2-parachevement-label,
    .dr2-parachevement-state {
        flex: 1 1 auto;
    }
}

/* ========================================
   5. RÉPÉTEURS
   ======================================== */

.dr2-repeater-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-top: 15px;
}

.dr2-repeater-field {
    padding: 5px;
}

.dr2-repeater-field strong {
    font-weight: bold;
}

/* Classes utilitaires pour les largeurs de colonnes */
.dr2-col-20 {
    width: 20%;
}

.dr2-col-25 {
    width: 25%;
}

.dr2-col-50 {
    width: 50%;
}

.dr2-col-100 {
    width: 100%;
}

/* Responsive pour répéteurs */
@media (max-width: 768px) {
    .dr2-col-20,
    .dr2-col-25 {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .dr2-col-20,
    .dr2-col-25,
    .dr2-col-50 {
        width: 100%;
    }
}

/* ========================================
   6. STYLES UTILITAIRES
   ======================================== */

.dr2-text-justify {
    text-align: justify;
}

.dr2-text-right {
    text-align: right;
}

.dr2-text-left {
    text-align: left;
}

.dr2-font-bold {
    font-weight: bold;
}

.dr2-mb-0 {
    margin-bottom: 0;
}

.dr2-p-0 {
    padding: 0;
}
/* Head info - disposition verticale */
.dataroom-head {
    flex-direction: column;
    align-items: flex-start;
}

.dr2-head-info {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}
/* Masquer spécifiquement les titres redondants */
.dr-table[id*="documents"] h3,
.dr-table[id*="favorables"] h3,
.dr-table[id*="defavorables"] h3,
.dr-table[id*="autre"] h3 {
    display: none;
}
/* Supprimer le cadre gris des parachèvements */
.dr2-parachevement-container {
    background-color: transparent !important;
    border: none !important;
    
}
/* Application à tous les titres */
.dr-table h3 {
    background-color: var(--dr2-section-header-bg) !important;
}
/* Utiliser la même couleur que les titres pour cohérence */
.data-room-medias .docs a.doc {
    background-color: var(--dr2-section-header-bg, #9DA8B4) !important;
}
/* ==============================================
   SECTION CALCULS - Override styles PDF
   ============================================== */

.dr2-calculations-section table {
    font: inherit !important;
    font-size: 14px !important;
    margin-bottom: 24px !important;
}

.dr2-calculations-section th {
    font: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 12px !important;
}

.dr2-calculations-section td {
    font: inherit !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    padding: 10px !important;
}
/* Modifier la taille des sous-titres des parachèvements */
.dr2-parachevement-separator h4 {
    font-size: 1rem !important; /* Plus petit que la taille par défaut */
    font-weight: 600 !important;
    margin: 15px 0 10px 0 !important;
}
/* Test - CSS standard sans nesting */
#dr-distribution-interieure > div > div > div,
#dr-parachevements > div > div > div,
#dr-equipement > div > div > div {
    padding: 0 !important;
}
/* ========================================
   RESPONSIVE MOBILE - Sections dataroom
   ======================================== */

@media (max-width: 768px) {
    /* Adaptation des lignes standard (libellé : valeur) */
    #dataroom-tables .dr-table > div > div > div {
        grid-template-columns: 1fr !important; /* Une seule colonne */
        gap: 0.5em !important;
    }
    
    /* Libellé en gras sur mobile */
    #dataroom-tables .dr-table > div > div > div > span:first-child {
        font-weight: 600 !important;
        margin-bottom: 5px !important;
        display: block !important;
    }
    
    /* Valeur avec indentation légère */
    #dataroom-tables .dr-table > div > div > div > span:not(:first-child),
    #dataroom-tables .dr-table > div > div > div > div {
        margin-left: 10px !important;
        display: block !important;
    }
    
    /* Ajustement pour les sections avec data-k spécifiques */
    #dataroom-tables .dr-table[data-k="localisation"] > div > div > div > div,
    #dataroom-tables .dr-table[data-k="superficie"] > div > div > div > div,
    #dataroom-tables .dr-table[data-k="matext"] > div > div > div > div,
    #dataroom-tables .dr-table[data-k="matint"] > div > div > div > div,
    #dataroom-tables .dr-table[data-k="equipments"] > div > div > div > div,
    #dataroom-tables .dr-table[data-k="other"] > div > div > div > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Espacement entre les lignes sur mobile */
    #dataroom-tables .dr-table > div > div > div {
        padding: 12px 16px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Dernière ligne sans bordure */
    #dataroom-tables .dr-table > div > div > div:last-child {
        border-bottom: none;
    }
}
/* ===================================
   BOUTONS FLOTTANTS MOBILE
   =================================== */

/* Cache UNIQUEMENT vos 3 boutons spécifiques en mobile */
@media (max-width: 768px) {
    #shareDataroomBtn,
    .dataroom-btn.edit-btn,
    #download-all-media {
        display: none !important;
    }
    
    /* Force l'affichage avec un sélecteur plus spécifique */
    .modal .send-to-requerent-btn.dataroom-btn {
        display: inline-block !important;
    }
}

/* Conteneur des boutons flottants mobile */
.mobile-floating-buttons {
    display: none;
}

@media (max-width: 768px) {
    .mobile-floating-buttons {
        display: block;
        position: fixed;
        right: 15px;
        top: 90px; /* Ajustez selon votre bouton TDM */
        z-index: 9997;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}
    
    /* Style commun pour tous les boutons flottants */
    .mobile-floating-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        text-decoration: none;
    }
    
    .mobile-floating-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }
    
    .mobile-floating-btn:active {
        transform: translateY(0);
    }
    
    /* Icônes dans les boutons */
    .mobile-floating-btn img,
    .mobile-floating-btn i {
        width: 24px;
        height: 24px;
        filter: brightness(0) invert(1);
        font-size: 24px;
    }
    
    /* Bouton Partager - même couleur que vos boutons */
    .mobile-share-btn {
        background-color: #2563eb;
    }
    
    .mobile-share-btn:hover {
        background-color: #2260FF;
    }
    
    /* Bouton Modifier - même couleur */
    .mobile-edit-btn {
        background-color: #2563eb;
    }
    
    .mobile-edit-btn:hover {
        background-color: #2260FF;
    }
    
    /* Bouton Télécharger - même couleur */
    .mobile-download-btn {
        background-color: #2563eb;
    }
    
    .mobile-download-btn:hover {
        background-color: #2260FF;
    }
    @media (max-width: 768px) {
    /* Cache les 2 boutons originaux en mobile */
    .dataroom-btn.pdf-view-btn,
    .dataroom-btn.send-to-requerent-btn {
        display: none !important;
    }
    
    /* Bouton Voir PDF - même bleu que les autres */
    .mobile-pdf-view-btn {
        background-color: #2563eb;
    }
    
    .mobile-pdf-view-btn:hover {
        background-color: #2260FF;
    }
    
    /* Bouton Envoyer au requérant - même bleu */
    .mobile-send-btn {
        background-color: #2563eb;
    }
    
    .mobile-send-btn:hover {
        background-color: #2260FF;
    }
}
/* ========================================
   FIX PARACHÈVEMENTS - Espacements
   ======================================== */

/* Supprimer le padding du conteneur principal */
#dr-parachevements > div > div {
    padding: 0 !important;
}

/* Supprimer les doubles conteneurs imbriqués inutiles */
.dr2-parachevement-container {
    padding: 15px !important;
    background: transparent !important;
    border: none !important;
}

/* Fix pour les doubles imbrications */
.dr2-parachevement-container .dr2-parachevement-container {
    padding: 0 !important;
}

/* Ajuster les séparateurs avec titres */
.dr2-parachevement-separator {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.dr2-parachevement-separator:has(h4) {
    border-top: 1px solid #e0e0e0 !important;
    margin: 20px 0 15px 0 !important;
    padding-top: 15px !important;
}

/* Pas de bordure pour le premier titre (Sol) */
.dr2-parachevement-separator:has(h4):first-of-type {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Supprimer les séparateurs vides à la fin de chaque section */
.dr2-parachevement-separator:empty,
.dr2-parachevement-separator:not(:has(h4)) {
    display: none !important;
}

/* Ajuster l'espacement des lignes */
.dr2-parachevement-row {
    margin-bottom: 10px !important;
    padding: 0 !important;
}

/* Dernier row de chaque section sans margin */
.dr2-parachevement-container > .dr2-parachevement-row:last-child {
    margin-bottom: 0 !important;
}

/* ========================================
   RESPONSIVE MOBILE - Parachèvements
   ======================================== */

@media (max-width: 768px) {
    /* Réduire encore plus les espacements sur mobile */
    .dr2-parachevement-container {
        padding: 10px !important;
    }
    
    .dr2-parachevement-separator:has(h4) {
        margin: 15px 0 10px 0 !important;
        padding-top: 10px !important;
    }
    
    .dr2-parachevement-row {
        margin-bottom: 15px !important;
    }
    
    /* Taille du titre h4 sur mobile */
    .dr2-parachevement-separator h4 {
        font-size: 0.95rem !important;
        margin: 10px 0 8px 0 !important;
    }
}

@media (max-width: 480px) {
    .dr2-parachevement-container {
        padding: 8px !important;
    }
    
    .dr2-parachevement-row {
        margin-bottom: 12px !important;
        font-size: 0.9rem !important;
    }
}
/* ========================================
   RÉDUCTION PADDING CONTAINER PRINCIPAL
   ======================================== */

.dataroom-container {
    padding-left: 33px !important;   
    padding-right: 33px !important;  
    max-width: 1176px !important;    
    margin: 0 auto !important;        
}

/* Pour mobile - padding encore plus réduit */
@media (max-width: 768px) {
    .dataroom-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media (max-width: 480px) {
    .dataroom-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
.mobile-download-btn {
    transition: background-color 0.3s ease;
}
@media (max-width: 768px) {
    /* Force le flex pour le bouton dans la modale */
    .modal .send-to-requerent-btn.dataroom-btn {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }
}
/* S'assurer que la modale passe au-dessus des boutons flottants */
.modal.show,
#shareDataroomModal.show {
    z-index: 10000 !important;
}

/* Overlay de la modale aussi */
.modal.show::before {
    z-index: 9999 !important;
}
.dr2-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    padding-left: 15px;
}
/* SEULEMENT les cellules td en noir */
.dr2-section-superficie-occupation .dr2-table tbody td {
    color: #000 !important;
}
.dr2-field-date {
    font-size: 16px;
    color: #000;
}
/* Paragraphes et commentaires en noir */
.dr2-field-comment p {
    color: #000 !important;
    padding-left: 15px;
}

/* Ou plus général pour tous les paragraphes dans cette section */
.dr2-section-superficie-occupation p {
    color: #000 !important;
}
.cartes {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.cartes > div {
    display: block !important;
    width: 100% !important;
    height: 250px !important;
    max-width: none !important;
    max-height: 250px !important;
    overflow: hidden !important;
    border-radius: 4px !important;
    box-shadow: var(--dr2-shadow-light) !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.cartes a.map {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.cartes img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}
@media (max-width: 768px) {
    .cartes {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .cartes > div {
        height: 200px !important;
        max-height: 200px !important;
    }
}
@media (max-width: 480px) {
    .cartes {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .cartes > div {
        height: 250px !important;
        max-height: 250px !important;
    }
}
/* Cacher les pages PDF supplémentaires */
.dr2-gallery-item .pdf-extra-page {
    display: none !important;
}

/* Badge PDF avec nombre de pages */
.dr2-pdf-badge span {
    font-size: 11px;
}