/* Layout principal */
.main-container {
    display: flex;
    height: calc(100vh - 140px); /* Hauteur totale moins la hauteur du header */
    background: #FFF;
}

/* Styles de la sidebar */
.sidebar {
    width: 350px;
    padding: 26px 33px;
    border-right: 1px solid #DDE9E7;
    transition: width 0.3s ease, padding 0.3s ease;
}

.sidebar.collapsed {
    width: 40px;
    padding: 26px 10px;
}

.sidebar.collapsed .filter-container,
.sidebar.collapsed .customize-btn span {
    display: block;
}

.sidebar.collapsed .filter-container {
    background: transparent;
}

.sidebar.collapsed .filter-container .tags-list {
    display: none;
}

.sidebar.collapsed .customize-btn {
    padding: 12px;
    justify-content: center;
}

.sidebar.collapsed .customize-btn .right-icon {
    transform: rotate(180deg);
}

.customize-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 23px;
    height: 50px;
    background: #FFF;
    width: 100%;
    cursor: pointer;
    color: #004439;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 12px; /* 80% */
    border-radius: 20px;
    border: 1px solid #D1E0DE;
}

.filter-container {
    padding: 24px 21px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
    background: #F1F4F4;
    transition: all 0.3s ease;
    height: calc(100% - 50px); /* Prend toute la hauteur disponible moins l'espace du bouton customize */
    overflow-y: auto;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    height: 34px;
    border-radius: 20px;
    border: 1px solid #D1E0DE;
    cursor: pointer;
}

.filter-item span {
    color: #3B605A;
    font-size: 14px;
    font-weight: 500;
    line-height: 34px; /* 242.857% */
}

.filter-item .count {
    color: #6BBE46;
    font-size: 16px;
    font-weight: 600;
    line-height: 34px; /* 212.5% */
}

.explore-btn {
    margin-top: 20px;
    padding: 7px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    border-radius: 20px;
    background: #59B224;
    color: #FFF;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px; /* 226.667% */
}

/* Styles du contenu principal */
.main-content {
    flex: 1;
    padding: 26px 33px;
    overflow-y: auto;
}

.top-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: calc(100% - 44px);
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid #D1E0DE;
    background: #F1F4F4;
    height: 34px;
    color: #3B605A;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 34px; /* 212.5% */
}

.search-input:focus {
    outline: 1px solid #59B224;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}
#map {
    border-radius: 20px;
    background: #F1F4F4;
}

.view-dropdown {
    position: relative;
}

.view-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #FFF;
    border-radius: 12px;
    border: 1px solid #D1E0DE;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.view-dropdown.active .view-options {
    display: block;
}

.view-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

.view-option:hover {
    background: #F1F4F4;
}

.view-option:first-child {
    border-radius: 12px 12px 0 0;
}

.view-option:last-child {
    border-radius: 0 0 12px 12px;
}

.vertical-separator {
    width: 1px;
    height: 24px;
    background: #E5E5E5;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    height: 50px;
    cursor: pointer;
    border-radius: 18px;
    border: 1px solid #DDE9E7;
    background: #FFF;
    color: #004439;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px; /* 226.667% */
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 33px;
}

.results-header h2 {
    color: #004439;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.results-header h2 span {
    color: #6BBE46;
}

.map-container, .list-container {
    width: 100%;
    height: calc(100% - 120px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.map-container.hidden, .list-container.hidden {
    display: none;
    opacity: 0;
}

.map-container {
    width: 100%;
    height: calc(100% - 120px);
    background: #F1F4F4;
    border-radius: 20px;
}

.opportunity-card {
    text-decoration: none;
    padding: 18px 20px;
    background: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 21px;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.card-content {
    flex: 1;
    min-width: 0; /* Pour éviter le débordement du texte */
}

.opportunity-card h3 {
    color: #004439;
    margin: 0 0 13px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px; /* 157.143% */
}

.location {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #3B605A;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px; /* 150% */
}

.card-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Styles des icônes */
.left-icon, .right-icon {
    transition: transform 0.3s ease;
}

.info-icon {
    cursor: pointer;
}

/* Par défaut, cacher la version mobile du dropdown */
.mobile-view-dropdown {
    display: none;
}

/* Styles de la vue liste */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Animation de transition */
.map-container, .list-container {
    transition: opacity 0.3s ease;
}

/* Media Queries pour Tablettes */
@media screen and (max-width: 1200px) and (min-width: 769px) {
    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sidebar.collapsed .customize-btn .left-icon,
.sidebar.collapsed .customize-btn span {
    display: none;
}

.desktop-view-dropdown {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    align-items: center;
    padding: 8px 20px;
    height: 34px;
    border-radius: 20px;
    border: 1px solid #D1E0DE;
    background: #FFF;
    cursor: pointer;
    position: relative;
    width: 160px;
    gap: 12px;
}

.desktop-view-dropdown .selected-view {
    color: #004439;
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.view-options {
    min-width: 160px; /* Même largeur que le dropdown */
    padding: 8px 0;
}

.view-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    color: #004439;
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 500;
}

.view-option img {
    width: 20px;
    height: 20px;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    height: 492px;
    padding: 0 77px;
    border-radius: 20px;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #004439;
    font-size: 18px;
    margin: 0;
    flex: 1;
    text-align: center;
}

.close-modal {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #3B605A;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.search-field {
    display: flex;
    gap: 10px;
    margin-bottom: 39px;
}

.search-field input {
    flex: 1;
    height: 30px;
    padding: 9px 22px;
    font-size: 14px;
    border-radius: 20px;
    border: 1px solid #DDE9E7;
    background: #F1F4F4;
    color: #9DADAB;
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    line-height: 30px; /* 214.286% */
}

.add-sector {
    background: #59B224;
    color: white;
    border: none;
    border-radius: 10px;
    width: 40px;
    font-size: 20px;
    cursor: pointer;
}

.sectors-list {
    display: flex;
    gap: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.sector-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 19px;
    border-radius: 20px;
    background: #F1F4F4;
    height: 38px;
    color: #3B605A;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px; /* 250% */
}

.delete-sector {
    background: none;
    border: none;
    cursor: pointer;
}

.delete-sector img {
    width: 16px;
    height: 16px;
}

.modal-footer {
    padding-bottom: 51px;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 0 0 20px 20px;
}

.save-btn {
    color: #FFF;
    border: none;
    padding: 3px 113px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 20px;
    background: #6BBE46;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 42px; /* 262.5% */
}

.save-btn:hover {
    background: #4a9b1d;
}

/* Styles spécifiques pour le modal projet */
.project-modal .modal-content {
    max-width: 700px;
    max-height: 80vh;
    height: auto;
    padding: 0;
    transform: scale(0.9) translateY(-30px);
    overflow: hidden;
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* S'assurer que le modal projet est bien visible */
.project-modal {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-modal .modal-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 20px 14px;
}

.project-modal .modal-header h2 {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    line-height: 34px; /* 212.5% */ 
}

.modal-favicon {
    width: 24px;
    height: 24px;
}

.project-modal .modal-body {
    padding: 30px 52px;
    overflow-y: auto;
    max-height: 60vh;
    flex: 1;
}

.project-section {
    margin-bottom: 30px;
}

.project-title {
    color: #6BBE46;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 700;
    line-height: 34px; /* 212.5% */
}

.custom-opportunity-badge {
    background: #FFC500;
    color: #004439;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}

.project-section h4 {
    color: #004439;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px; /* 200% */
}

.project-section p {
    color: #004439;
    font-size: 14px;
    font-weight: 400;
    line-height: 28px; /* 200% */
}

.project-modal .modal-footer {
    padding: 0;
    border-top: 1px solid #DDE9E7;
    padding: 20px 52px;
}

.project-action-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    border: 1px solid #004439;
    color: #004439;
    font-family: "Open Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 34px; /* 212.5% */
}

.project-action-btn:hover {
    
}

/* Styles spécifiques pour le snap modal */
.snap-modal {
    align-items: center; /* Centrer verticalement */
}

.snap-modal .modal-content {
    max-width: 450px;
    padding: 0;
    height: auto;
    transform: scale(0.95) translateY(-20px);
}

.snap-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.snap-modal .modal-header {
    padding: 20px;
}

.snap-modal .modal-header h2 {
    color: #004439;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px; /* 150% */
}

.snap-modal .modal-body {
    padding: 0 35px 20px 35px;
}

.snap-description {
    text-align: center;
    color: #004439;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 26px; /* 185.714% */
}

.upload-container {
    background: #F1F4F4;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.file-info {
    color: #9DADAB;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 22px; /* 183.333% */
}

.upload-btn {
    display: inline-block;
    background: #6BBE46;
    color: white;
    padding: 9px 49px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    line-height: 22px;
}

.upload-btn:hover {
    background: #4a9b1d;
}

.map-popup {
    padding: 0;
}

.map-popup h3 {
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 18px;
}

.map-popup .location {
    color: #3B605A;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-popup .sector {
    color: #6BBE46;
    font-size: 12px;
    margin-bottom: 10px;
}

.popup-btn {
    background: #59B224;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.popup-btn:hover {
    background: #4a9b1d;
}

/* Permet au bouton d'occuper 100% de la largeur */
.full-width {
    width: 100%;
}

/* Styles pour le loader animé */
.loader {
    display: inline-block;
    margin-left: 10px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #004439;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.loader {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #6BBE46;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

/* Media Queries pour Mobile */
@media screen and (max-width: 768px) {
    .main-container {
        flex-direction: column;
        height: calc(100vh - 70px);
    }

    .sidebar {
        width: calc(100% - 30px);
        padding: 15px;
        border-right: none;
        gap: 15px;
    }

    .top-mobile-controls {
        width: 100%;
        gap: 10px;
    }

    .customize-btn {
        width: auto;
        flex: 1;
        padding: 12px 15px;
        height: 42px;
        font-size: 14px;
        line-height: normal;
    }

    .filter-container {
        display: none;
        position: fixed;
        top: 140px;
        left: 0;
        right: 0;
        background: #F1F4F4;
        z-index: 100;
        margin: 0 15px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .filter-container.active {
        display: flex;
    }

    .main-content {
        padding: 15px;
    }

    .top-controls {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-container {
        width: 100%;
        order: -1;
    }

    .view-dropdown, .action-btn {
        font-size: 14px;
        padding: 12px 15px;
    }

    .map-container {
        height: calc(100vh - 300px);
    }

    /* Afficher la version mobile du dropdown et cacher la version desktop */

    .mobile-view-dropdown {
        display: grid;
        grid-template-columns: 20px 1fr 20px;
        align-items: center;
        padding: 8px 20px;
        border-radius: 20px;
        border: 1px solid #D1E0DE;
        background: #FFF;
        cursor: pointer;
        position: relative;
        gap: 12px;
        height: 34px;
    }

    .mobile-view-dropdown .selected-view {
        color: #004439;
        font-family: "Open Sans";
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        text-align: center;
    }

    .desktop-view-dropdown {
        display: none !important;
    }

    .search-input {
        font-size: 16px;
        line-height: normal;
        padding: 8px 40px 8px 15px;
    }

    .search-icon {
        right: 15px;
        display: none;
    }

    .top-mobile-controls {
        gap: 8px;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .opportunity-card {
        padding: 15px;
    }

    .opportunity-card h3 {
        font-size: 13px;
        line-height: 20px;
        margin-bottom: 10px;
    }

    .modal-content {
        height: auto;
    }

    .project-modal .modal-body {
        padding: 30px 20px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tags-container {
    margin-bottom: 20px;
    flex-shrink: 0; /* Empêche la contraction du conteneur de tags */
}

.tags-container h4 {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px; /* 175% */
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    padding-right: 5px;
    max-height: 410px;
    overflow-y: auto;
}

.tags-list::-webkit-scrollbar {
    width: 4px;
}

.tags-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tags-list::-webkit-scrollbar-thumb {
    background: #DDE9E7;
    border-radius: 4px;
}

.tags-list::-webkit-scrollbar-thumb:hover {
    background: #6BBE46;
}

.tag-item {
    flex: 0 0 auto; /* Empêche les tags de s'étirer */
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border: 1px solid #DDE9E7;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 30px;
    background: #E5ECEB;
}

.tag-item span {
    color: #7E9894;
    font-size: 12px;
    font-weight: 600;
    line-height: 12px; /* 100% */
}

.tag-item .count {
    color: #6BBE46;
    font-weight: 600;
}

.tag-item:hover {
    border-color: #6BBE46;
}

.tag-item.active {
    background: #6BBE46;
}

.tag-item.active span {
    color: white;
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 37px;
    cursor: pointer;
    padding: 0;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sidebar.collapsed .toggle-icon {
    transform: rotate(180deg);
    display: block;
}

.sidebar.collapsed .tags-header {
    display: flex;
    padding: 0 10px;
    justify-content: center;
}

.sidebar.collapsed h4 {
    display: none;
}

/* Styles pour les clusters de marqueurs */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}

.marker-cluster div {
    border-radius: 50%;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
}

.marker-cluster-small {
    background-color: rgba(107, 190, 70, 0.2);
}

.marker-cluster-medium {
    background-color: rgba(59, 96, 90, 0.2);
}

.marker-cluster-large {
    background-color: rgba(0, 68, 57, 0.2);
}

/* Style des popups de la carte */
.leaflet-popup-content-wrapper {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 15px;
    min-width: 200px;
}

/* Style des contrôles de zoom */
.leaflet-control-zoom {
    border: none !important;
    margin: 20px !important;
}

.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 10px !important;
    background-color: white !important;
    color: #004439 !important;
    border: 1px solid #DDE9E7 !important;
}

.leaflet-control-zoom a:hover {
    background-color: #F1F4F4 !important;
    color: #004439 !important;
}

/* Masquer l'attribution OpenStreetMap */
.leaflet-control-attribution {
    display: none;
}

/* Styles pour le bouton de génération d'opportunité */
.generate-opportunity-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid #004439;
    color: #004439;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.generate-opportunity-btn:hover {
    background: #004439;
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.generate-opportunity-btn .btn-icon {
    width: 16px;
    height: 16px;
}

/* Styles pour le modal d'opportunité personnalisée */
.custom-opportunity-modal {
    align-items: center;
}

.custom-opportunity-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    transform: scale(0.95) translateY(-20px);
    display: flex;
    flex-direction: column;
}

.custom-opportunity-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.custom-opportunity-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #DDE9E7;
}

.custom-opportunity-modal .modal-header h2 {
    color: #004439;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.custom-opportunity-modal .modal-body {
    padding: 30px 52px;
    overflow-y: auto;
    max-height: 60vh;
    flex: 1;
}

.custom-opportunity-modal .modal-footer {
    padding: 0;
    border-top: 1px solid #DDE9E7;
    padding: 20px 52px;
    background: #FFF;
}

.custom-description {
    text-align: center;
    color: #0E6154;
    font-size: 14px;
    margin-bottom: 24px;
    font-weight: 400;
    line-height: 26px;
}

/* Styles pour les sections du formulaire */
.form-section {
    margin-bottom: 24px;
}

.form-section h3 {
    color: #004439;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.optional-text {
    color: #9DADAB;
    font-size: 14px;
    font-weight: 400;
}

/* Styles pour la grille d'options du type d'entreprise */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #DDE9E7;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFF;
}

.option-card:hover {
    border-color: #59B224;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-card.selected {
    border-color: #59B224;
    background: #F8FFF8;
}

.option-card .option-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.option-card .option-text h4 {
    color: #004439;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-card .option-text p {
    color: #0E6154;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    margin: 0;
}

/* Styles pour les selects */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #DDE9E7;
    border-radius: 12px;
    background: #FFF;
    color: #004439;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #FFC500;
}

.form-select option {
    color: #004439;
    background: #FFF;
}



.generate-btn {
    width: 100%;
    padding: 12px 24px;
    background: #59B224;
    color: #FFF;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn:hover {
    background: #4a9b1d;
    transform: translateY(-1px);
}

.generate-btn:disabled {
    background: #9DADAB;
    cursor: not-allowed;
    transform: none;
}

.generate-btn .loader {
    width: 16px;
    height: 16px;
    border: 2px solid #FFF;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive design pour le modal d'opportunité personnalisée */
@media (max-width: 768px) {
    .custom-opportunity-modal .modal-content {
        max-width: 95vw;
        margin: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .option-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .option-card .option-image {
        width: 48px;
        height: 48px;
    }
}

/* Badge pour les opportunités personnalisées */
.custom-opportunity-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #FFC500;
    color: #004439;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

