/* 
 * Modified: 01/03/2025 18:00
 * Styles spécifiques pour la fiche entreprise
 */

 body {
     margin: 0 auto;
 }

/* Structure de la grille de contenu */
.pro-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}



/* Sections de la fiche */
.pro-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.pro-section h2 {
    color: var(--primary-color);
    padding: 1.2rem;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-section-content {
    padding: 1.5rem;
}

/* En-tête de la fiche */
.pro-header {
    background-color: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.pro-header-info {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.badge-partenaire {
    display: flex;
    justify-content: space-between;
    position: relative;
    color: var(--primary-color);
    padding: 0.3rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.badge-partenaire img {
    max-width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.pro-image {
    flex: 0 0 250px;
}

.pro-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pro-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pro-main-info h1 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.pro-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pro-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.pro-detail-item i {
    color: var(--primary-color);
}

.pro-detail-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.pro-detail-item a:hover {
    color: var(--primary-color);
}

.pro-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.action-button {
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-button {
    background-color: var(--primary-color);
    color: white;
}

.contact-button:hover {
    background-color: var(--primary-dark);
}

.call-button {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.call-button:hover {
    background-color: #e9ecef;
}

/* Services */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-content: center;
    width: 100%;
    gap: 0.75rem;
}

.service-item {
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-item details {
    width: 100%;
}

.service-item summary {
    cursor: pointer;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    list-style: none;
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color);
}

.service-item summary::-webkit-details-marker {
    display: none;
}

.service-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.service-item details[open] summary::after {
    transform: rotate(180deg);
}

.service-item summary:hover {
    background-color: rgba(0, 128, 0, 0.05);
}

.service-item .fa-check-circle {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.service-description {
    margin: 0;
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.5;
}

/* Zones d'intervention */
.zones-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.zone-badge {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

/* Horaires */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hour-item:last-child {
    border-bottom: none;
}

.hours.closed {
    color: var(--error-color);
}

/* Adresse */
address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.map-link:hover {
    text-decoration: underline;
}

/* Informations légales */
.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
}

/* Galerie */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Styles pour la modale de zoom */
.gallery-zoom-content {
    width: 90%;
    max-width: 800px; /* Limite la largeur pour un tiers d'écran sur PC */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    padding: 2rem;
    margin: 10vh auto;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-zoom-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.zoom-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.zoom-caption {
    margin-top: 0.5rem;
    color: var(--text-color);
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem 0;
    width: 100%;
}

.gallery-zoom-content .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.gallery-zoom-content .modal-close:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .gallery-zoom-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .zoom-image {
        max-height: 50vh;
    }
}

/* Disponibilités */
.pro-availability, .pro-no-availability {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.pro-availability h2, .pro-no-availability h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pro-no-availability p {
    color: #6c757d;
    font-style: italic;
}

.availability-calendar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.date-slots {
    flex: 1;
    min-width: 250px;
}

.date-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slot-button {
    background: var(--background);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.slot-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.slot-button.selected {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

/* Modale d'intervention */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 1.5rem;
}

/* Formulaire d'intervention */
.intervention-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 48%;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.form-left {
    flex: 1;
}

.form-right {
    flex: 1;
}

.form-group label {
    font-weight: 500;
}

.required {
    color: var(--error-color);
}

.intervention-form input,
.intervention-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.intervention-form input:focus,
.intervention-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.services-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem;
}

.service-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.service-checkbox input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.service-checkbox label {
    cursor: pointer;
}

.selected-slot-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.cancel-button {
    padding: 0.8rem 1.5rem;
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background-color: #e9ecef;
}

.submit-button {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
}



.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-links h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}


/* Header styles */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 1rem;
}

.header-container h1 {
color: var(--primary-color);
margin: 0;
}

.logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

.partner-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    margin: 10px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.header-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.back-link-header {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link-header:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.pro-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.pro-button:hover {
    background-color: var(--primary-dark);
}

.auth-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: rgba(0, 128, 0, 0.1);
}



/* Messages pour contenu vide */
.empty-content-message {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-content-message i {
    color: #6c757d;
    font-size: 1.1rem;
}

.empty-content-message-small {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    display: block;
}

/* Styles pour l'affichage des évaluations dans le badge partenaire */
.ratings-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-color);
}

.rating-name {
    font-weight: 500;
}

.total-ratings {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--light-text);
    text-align: center;
}

.ratings-info {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--light-text);
    text-align: center;
}

/* Styles pour les étoiles d'évaluation */
.rating-icon {
    font-size: 1.2rem;
    user-select: none;
}

.rating-icon.skull {
    color: var(--remove-color);
}

.rating-icon.star {
    color: var(--light-text);
}

.rating-icon.star.active {
    color: var(--primary-color);
}

.stars {
    display: inline-flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 576px) {
    .pro-actions {
        flex-direction: column;
    }
    
    .services-list,
    .services-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    .pro-header-info {
        flex-direction: column;
    }

    .pro-content-grid {
        grid-template-columns: 1fr;
    }
    .header-container {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-buttons {
        align-items: center;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }

    .rating-item {
        flex-direction: column;
        align-items: center;
    }

    .badge-partenaire {
        align-items: center;
        justify-content: space-around;
    }
}

