/* fiche-bien.css - Styles améliorés pour la page de détail du bien */

/* IMPORTANT: Ces styles ne s'appliquent QUE sur la page fiche-bien.php */
.property-detail .confidential-zone {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(255, 158, 21, 0.8);
    background: rgba(255, 158, 21, 0.2);
    animation: pulse-confidential 3s infinite;
    box-shadow: 
        0 0 0 8px rgba(255, 158, 21, 0.1),
        0 0 0 16px rgba(255, 158, 21, 0.05);
}

@keyframes pulse-confidential {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
}

.property-detail .map-with-confidential-area:hover .confidential-zone {
    animation-duration: 2s;
    border-width: 4px;
}

/* Messages informatifs - SCOPE RESTREINT */
.property-detail .confidentiality-indicator,
.property-detail .confidentiality-notice {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.property-detail .confidentiality-indicator i,
.property-detail .confidentiality-notice i {
    margin-right: 0.3rem;
}

/* Responsive - SCOPE RESTREINT */
@media (max-width: 768px) {
    .property-detail .confidential-zone {
        width: 130px;
        height: 130px;
    }
    
    .property-detail .confidentiality-indicator,
    .property-detail .confidentiality-notice {
        font-size: 0.65rem !important;
        padding: 0.4rem !important;
    }
    
    .property-detail .confidentiality-notice {
        max-width: 150px !important;
    }
    
    .property-detail .map-disclaimer small {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .property-detail .confidential-zone {
        width: 110px;
        height: 110px;
    }
    
    .property-detail .confidentiality-notice {
        position: static !important;
        margin-top: 0.5rem;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Position relative pour le container - SCOPE RESTREINT */
.property-detail .map-with-confidential-area {
    position: relative;
}

/* CSS responsive supplémentaire sans ombres */
.property-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid #e5e7eb;
    padding: 2rem;
}

.property-sidebar > div {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid #e5e7eb;
    background: #f0f0f0;
}

.similar-card {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: border-color 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.similar-card-link:hover .similar-card {
    border-color: var(--primary);
}

.interest-form,
.dpe-images-sidebar,
.client-reviews {
    background: #f9f9f9 !important;
    border: 1px solid #e5e7eb !important;
}

.mobile-priority {
    order: -1;
}

.agency-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.agency-details i {
    width: 16px;
    color: var(--primary);
}

.agency-phone a {
    color: var(--primary);
    text-decoration: none;
}

.agency-phone a:hover {
    text-decoration: underline;
}

.social-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-buttons a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-buttons a:hover {
    background: #e68a00;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.property-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-weight: 700;
}

.property-details {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    display: block;
    font-weight: 400;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.badge.secondary {
    background: #6b7280;
    color: white;
}

.property-characteristics table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.property-characteristics td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.property-characteristics td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 40%;
}

.map-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 1024px) {
    .property-detail {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .property-sidebar > div {
        padding: 1.25rem;
    }
    
    .carousel-main {
        height: 50vh;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .property-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .main-content {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .property-sidebar {
        order: 2;
        margin-top: 1rem;
    }
    
    .mobile-priority {
        order: -2;
        position: sticky;
        top: 1rem;
        z-index: 10;
    }
    
    .carousel-main {
        height: 50vh;
        max-height: 350px;
        min-height: 250px;
    }
    
    .desktop-title {
        display: none !important;
    }
    
    .mobile-title {
        display: block !important;
    }
    
    .property-details {
        font-size: 0.9rem !important;
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.3rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .property-characteristics td {
        padding: 0.5rem 0;
        font-size: 0.8rem;
    }
    
    .property-characteristics td:first-child {
        width: 45%;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .similar-card {
        height: auto;
        flex-direction: row;
        min-height: 120px;
    }
    
    .similar-card-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .similar-card-content {
        padding: 1rem;
        flex: 1;
    }
    
    .similar-card-title {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }
    
    .property-sidebar > div {
        padding: 1.25rem;
    }
    
    .interest-form button,
    .back-link a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-share a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .legal-info {
        font-size: 0.8rem;
    }
    
    .legal-section {
        margin-bottom: 1rem;
    }
    
    .legal-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .main-content {
        padding: 1.25rem;
    }
    
    .property-sidebar > div {
        padding: 1rem;
    }
    
    .carousel-main {
        height: 40vh;
        max-height: 280px;
        min-height: 200px;
    }
    
    .property-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .property-price {
        font-size: 1.2rem;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
    
    .property-characteristics td {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .property-characteristics td:first-child {
        width: 50%;
    }
    
    .similar-card-image {
        width: 100px;
        height: 100px;
    }
    
    .similar-card-content {
        padding: 0.75rem;
    }
    
    .similar-card-title {
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.5rem !important;
    }
    
    .interest-form input,
    .interest-form button,
    .interest-form textarea {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .back-link a {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .main-content,
    .property-sidebar > div {
        padding: 0.75rem;
    }
    
    .carousel-main {
        height: 35vh;
        max-height: 250px;
        min-height: 180px;
    }
    
    .property-title {
        font-size: 1.2rem;
    }
    
    .property-price {
        font-size: 1.1rem;
    }
    
    .similar-card {
        flex-direction: column;
        height: auto;
    }
    
    .similar-card-image {
        width: 100%;
        height: 120px;
    }
}

/* Optimisations pour mobile sans animations */
@media (max-width: 768px) {
    .carousel-image,
    .similar-card-image img {
        transform: none !important;
        transition: none !important;
    }
    
    .similar-card-link:hover .similar-card {
        transform: none !important;
        border-color: var(--primary) !important;
    }
}

/* Variables CSS */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --background-light: #f9fafb;
    --card-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Lien de retour */
.back-link {
    margin: 1rem 0;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Structure principale */
.property-detail {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Contenu principal */
.main-content {
    background: #fff;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    padding: 2rem;
    min-width: 0;
    box-shadow: var(--shadow-sm);
}

/* Carrousel d'images */
.property-carousel {
    margin-bottom: 2rem;
    width: 100%;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    min-height: 300px;
    overflow: hidden;
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.carousel-main:hover {
    transform: scale(1.002);
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
}

/* Overlays du carrousel */
.image-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    border: none;
    color: white;
    font-size: 16px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Miniatures */
.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 3px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

/* En-tête de la propriété */
.property-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
}

.property-title {
    font-size: 1.875rem;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    font-weight: 700;
}

.property-details {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: block;
    font-weight: 400;
}

.property-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.property-badges {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge.secondary {
    background: var(--text-light);
}

/* Sections de contenu */
.property-description,
.property-characteristics,
.property-location,
.similar-properties {
    margin-bottom: 2.5rem;
}

.property-description h2,
.property-characteristics h2,
.property-location h2,
.similar-properties h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
}

.property-description h2::after,
.property-characteristics h2::after,
.property-location h2::after,
.similar-properties h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-dark);
}

/* Description */
.property-description div {
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Tableau des caractéristiques */
.property-characteristics table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.property-characteristics td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.property-characteristics td:first-child {
    font-weight: 600;
    color: var(--text-dark);
    width: 45%;
    background: var(--background-light);
}

.property-characteristics td:last-child {
    color: var(--text-light);
}

.property-characteristics tr:last-child td {
    border-bottom: none;
}

/* Localisation */
.map-container {
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.map-disclaimer {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Biens similaires */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.similar-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.similar-card-link:hover {
    transform: translateY(-4px);
}

.similar-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.similar-card:hover {
    box-shadow: var(--shadow-md);
}

.similar-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-card:hover .similar-card-image img {
    transform: scale(1.05);
}

.similar-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.similar-card-content {
    padding: 1.25rem;
}

.similar-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.similar-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.similar-card-details {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.similar-card-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Sidebar */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    max-width: 100%;
}

.agency-info,
.energy-info {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.agency-info h3,
.energy-info h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.agency-details p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.agency-details i {
    color: var(--primary);
    width: 16px;
}

.tel-link,
.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tel-link:hover,
.email-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Boutons de contact */
.contact-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--background-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* DPE/GES */
.dpe-images-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.dpe-images-container canvas {
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-sidebar {
        order: -1;
    }
    
    .similar-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1.5rem;
    }
    
    .carousel-main {
        height: 50vh;
        min-height: 250px;
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-price {
        font-size: 1.75rem;
    }
    
    .desktop-title {
        display: none !important;
    }
    
    .mobile-title {
        display: block !important;
    }
    
    .property-characteristics td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .property-characteristics td:first-child {
        width: 50%;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-actions {
        gap: 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .property-header {
        padding-bottom: 1rem;
    }
    
    .property-title {
        font-size: 1.25rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .property-badges {
        gap: 0.25rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .carousel-main {
        height: 40vh;
        min-height: 200px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .image-counter,
    .fullscreen-btn {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* Animations et transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-detail > * {
    animation: fadeIn 0.6s ease-out;
}

/* Focus et accessibilité */
.carousel-main:focus,
.thumbnail:focus,
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* États de chargement */
.carousel-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.carousel-image[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Amélioration des tooltips */
.fullscreen-btn::after {
    content: "Voir en plein écran";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.fullscreen-btn:hover::after {
    opacity: 1;
}

/* Styles pour les états vides */
.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-light);
    font-size: 1.1rem;
    flex-direction: column;
    gap: 1rem;
}

.no-images i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Améliorations pour l'impression */
@media print {
    .carousel-thumbnails,
    .fullscreen-btn,
    .image-counter,
    .contact-actions,
    .back-link {
        display: none !important;
    }
    
    .carousel-main {
        height: auto;
        max-height: none;
        page-break-inside: avoid;
    }
    
    .property-detail {
        grid-template-columns: 1fr;
    }
    
    .main-content,
    .agency-info,
    .energy-info {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Styles pour le mode sombre (si implémenté) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #f9fafb;
        --text-light: #9ca3af;
        --border-light: #374151;
        --background-light: #1f2937;
    }
    
    .main-content,
    .agency-info,
    .energy-info,
    .similar-card {
        background: #111827;
        color: var(--text-dark);
    }
    
    .carousel-main {
        border-color: var(--border-light);
    }
    
    .property-characteristics td:first-child {
        background: var(--background-light);
    }
}

/* Performance et optimisations */
.carousel-image,
.thumbnail,
.similar-card-image img {
    will-change: transform, opacity;
}

/* Transitions fluides pour les interactions tactiles */
@media (hover: none) and (pointer: coarse) {
    .thumbnail:hover,
    .similar-card:hover {
        transform: none;
    }
    
    .thumbnail:active {
        transform: scale(0.95);
    }
    
    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.98);
    }
}

/* Styles spécifiques pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .carousel-image,
    .thumbnail,
    .similar-card-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive pour les images DPE */
@media (max-width: 768px) {
    .dpe-images-container canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .dpe-images-container canvas {
        width: 100% !important;
        height: auto !important;
        max-height: 280px;
    }
}