/* Layout principal */
.main-container {
    height: calc(100vh - 80px); /* Hauteur totale moins la hauteur du header */
    background: #FFF;
    display: flex;
    flex-direction: row; /* Changé de column à row pour permettre le panel latéral */
    overflow: hidden;
}

/* Styles pour le panel de filtrage avancé */
.filter-panel {
    width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    opacity: 0;
    padding: 26px 0;
}

.filter-panel.open {
    width: 35%;
    opacity: 1;
}

.filter-panel-content {
    margin-left: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid #DDE9E7;
    background: #FFF;
    overflow: hidden; /* Empêche le défilement du conteneur principal */
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    border-bottom: 1px solid #DDE9E7;
}

.filter-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.close-filter-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.close-filter-btn .close-icon {
    width: 40px;
    height: 40px;
}

.filter-form {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Permet au contenu de défiler correctement */
}

.filter-section {
    margin-bottom: 20px;
    flex-shrink: 0; /* Empêche les sections de rétrécir */
}

/* Conteneur pour les sections de filtres qui peut défiler */
.filter-sections-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 15px; /* Espace pour les boutons */
}

.filter-section h3 {
    color: #004439;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.filter-input {
    width: calc(100% - 36px);
    padding: 12px 16px;
    border: 1px solid #DDE9E7;
    border-radius: 10px;
    background: #FFF;
    color: #004439;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

.filter-input:focus {
    outline: none;
    border-color: #59B224;
}

.filter-input::placeholder {
    color: #9DADAB;
}

/* Styles pour les cases à cocher des filtres */
.sector-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.budget-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.filter-checkbox:hover {
    background-color: #F1F4F4;
}

.filter-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-checkbox .checkmark {
    height: 18px;
    width: 18px;
    background-color: #FFF;
    border: 2px solid #DDE9E7;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox:hover .checkmark {
    border-color: #59B224;
}

.filter-checkbox input:checked ~ .checkmark {
    background-color: #59B224;
    border-color: #59B224;
}

.filter-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.filter-checkbox .checkbox-text {
    color: #004439;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
}

/* Styles spécifiques pour les secteurs en rectangles */
.sector-filters .filter-checkbox {
    border: 1px solid #DDE9E7;
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    background: #FFF;
    cursor: pointer;
}

.sector-filters .filter-checkbox:hover {
    border-color: #59B224;
    background-color: #F8FFF8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(89, 178, 36, 0.1);
}

.sector-filters .filter-checkbox.selected {
    border-color: #59B224;
    background-color: #F8FFF8;
}

.sector-filters .filter-checkbox.selected .checkbox-text {
    color: #59B224;
    font-weight: 600;
}

.sector-filters .filter-checkbox .checkbox-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Cacher les cases à cocher pour les secteurs */
.sector-filters .filter-checkbox input[type="checkbox"] {
    display: none;
}

.sector-filters .filter-checkbox .checkmark {
    display: none;
}

/* Styles pour les budgets en rectangles */
.budget-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.budget-filters .filter-radio {
    border: 1px solid #DDE9E7;
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    background: #FFF;
    cursor: pointer;
}

.budget-filters .filter-radio:hover {
    border-color: #59B224;
    background-color: #F8FFF8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(89, 178, 36, 0.1);
}

.budget-filters .filter-radio.selected {
    border-color: #59B224;
    background-color: #F8FFF8;
}

.budget-filters .filter-radio.selected .radio-text {
    color: #59B224;
    font-weight: 600;
}

.budget-filters .filter-radio .radio-text {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Cacher les boutons radio pour les budgets */
.budget-filters .filter-radio input[type="radio"] {
    display: none;
}

/* Styles pour les boutons d'action */
.filter-actions {
    display: flex;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #DDE9E7;
    background: #FFF;
    flex-shrink: 0; /* Empêche les boutons de rétrécir */
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.apply-filters-btn,
.clear-filters-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.apply-filters-btn {
    background: #59B224;
    color: #FFF;
}

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

.clear-filters-btn {
    background: transparent;
    color: #3B605A;
    border: 1px solid #DDE9E7;
}

.clear-filters-btn:hover {
    background: #F1F4F4;
}

/* Ajustements pour le contenu principal quand le panel de filtrage est ouvert */
.main-content.filter-panel-open {
    width: 65%;
    transition: width 0.3s ease-out;
}

/* 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;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease-in-out;
    width: 100%; /* Par défaut, prend toute la largeur */
}

.main-content.panel-open {
    width: 60%;
    transition: width 0.3s ease-out;
}

/* Nouveaux styles pour les onglets */
.new-tabs-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-shrink: 0; /* Empêche ce conteneur de rétrécir */
}

.search-icon-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.tabs-group {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    flex-direction: row; /* Changé de column à row pour les afficher côte à côte */
    gap: 8px;
    padding: 3px;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    background: #FFF;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.10);
    z-index: 1000;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 20px;
    border-radius: 12px;
    height: 26px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-item.active {
    background-color: #59B224; /* Fond vert pour l'onglet actif */
    color: #F1F4F4; /* Texte blanc pour contraste */
    font-weight: 700;
}

.tab-item span {
    color: #3B605A;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px; /* 171.429% */
}

.tab-item.active span {
    color: #F1F4F4;
    font-weight: 700;
}

.tab-icon {
    width: 20px;
    height: 20px;
}

/* Pour les icônes, nous pouvons ajouter un filtre pour les rendre blanches lorsque l'onglet est actif */
.tab-item.active .tab-icon {
    filter: brightness(0) invert(1); /* Rend l'icône blanche */
}

.tab-content {
    flex: 1; /* Prendre tout l'espace disponible */
    display: flex;
    flex-direction: column;
    opacity: 1;
    transition: opacity 0.3s ease;
    overflow: hidden; /* Empêche le défilement à l'intérieur du contenu d'onglet */
}

.tab-content.hidden {
    display: none;
    opacity: 0;
}

.map-container {
    flex: 1; /* Prendre tout l'espace disponible */
    width: 100%;
    height: 100%;
    background: #F1F4F4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #DDE9E7;
    position: relative; /* Pour positionner le badge par rapport à ce conteneur */
    transition: width 0.3s ease-out;
}

.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;
}

#map {
    width: 100%;
    height: 100%;
}

.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;
}

.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: 100001;
    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;
    padding: 0;
    transform: scale(0.9) translateY(-30px);
}

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

.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: visible;
}

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

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

.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: 15px;
}

.map-popup h3 {
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    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: 5px;
}

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

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

.popup-btn:hover {
    background: #59A239;
}

/* 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;
}

.mobile-close-btn {
    display: none;
}

/* Ancien style .detail-panel-content remplacé par .opportunity-modal-content */

/* Forcer la position des onglets en haut à droite sur desktop */
@media screen and (min-width: 769px) {
    .tabs-group {
        position: absolute;
        top: 18px !important;
        bottom: auto !important;
        right: 18px;
        width: auto !important;
        margin: 0 !important;
    }
}

/* Media Queries pour Mobile */
@media screen and (max-width: 768px) {
    .tabs-group {
        right: 0;
    }
    .main-container {
        flex-direction: column;
    }
    
    .main-content.panel-open {
        width: 100%;
        height: 40%;
    }
    
    .main-content.filter-panel-open {
        width: 100%;
        height: 40%;
    }
    
    .tab-item {
        width: 50%;
    }
    
    .filter-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 92vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        background: white;
        z-index: 1000;
        padding: 0;
    }
    
    .filter-panel.open {
        transform: translateX(0);
        width: 100%;
    }
    
    .filter-panel-content {
        height: 100vh;
        overflow-y: auto;
        padding: 20px;
        position: relative;
        margin: 10px;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .filter-form {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    
    .filter-sections-container {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .sector-filters {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    
    .budget-filters {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    
    .filter-actions {
        position: sticky;
        bottom: 0;
        background: #FFF;
        border-top: 1px solid #DDE9E7;
        padding: 20px 0;
        margin: 0 -25px;
        z-index: 10;
    }
    
    /* Styles mobile pour le modal */
    .opportunity-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }
    
    .opportunity-modal-content > div:not(.opportunity-modal-footer) {
        padding: 30px 20px;
    }
    
    .opportunity-modal-footer {
        padding: 16px 20px;
    }
    
    .interested-modal-btn {
        font-size: 15px;
        padding: 12px 20px;
        max-width: 100%;
    }
    
    .close-panel-btn,
    .close-opportunity-btn,
    .close-pole-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }
    
    .close-panel-btn img,
    .close-opportunity-btn img,
    .close-pole-btn img {
        width: 14px;
        height: 14px;
    }

    /* Ajuster la position du bouton dans les conteneurs de détails */
    .opportunity-details,
    .pole-details {
        position: relative;
    }
    
    /* Styles spécifiques pour les détails d'opportunité sur mobile */
    .opportunity-header {
        margin-bottom: 20px;
        padding-right: 30px;
    }
    
    .detail-title {
        font-size: 20px;
        line-height: 26px;
    }
    
    .detail-sector-badge {
        font-size: 11px;
        padding: 4px 18px;
    }
    
    .investment-block {
        margin-bottom: 20px;
    }
    
    .investment-amount {
        font-size: 15px;
    }
    
    .detail-description,
    .detail-resources {
        margin-bottom: 20px;
    }
    
    .implementation-area {
        margin-bottom: 20px;
    }

    .mobile-close-btn {
        position: absolute;
        top: 0;
        right: 0;
        background: white;
        border: none;
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        padding: 0;
    }

    .mobile-close-btn img {
        width: 14px;
        height: 14px;
    }

    /* Afficher le bouton uniquement sur mobile */
    @media screen and (max-width: 768px) {
        .mobile-close-btn {
            display: flex;
        }
    }

    /* Ancien style .detail-panel-header remplacé par styles du modal */
    
    /* Styles du bouton de fermeture définis au niveau global */
    
    .search-icon-container {
        display: none; /* Cacher l'icône de recherche sur mobile */
    }

    .new-tabs-container {
        margin: 20px 5px;
    }
    
    .tabs-group {
        top: auto;
        bottom: 50px;
        width: calc(100% - 36px); /* Permettre aux onglets d'occuper toute la largeur */
        margin: 0 15px;
        overflow-x: auto; /* Ajouter scroll horizontal si nécessaire */
        white-space: nowrap; /* Empêcher les onglets de passer à la ligne */
        scrollbar-width: none; /* Cacher la scrollbar pour Firefox */
        -ms-overflow-style: none; /* Cacher la scrollbar pour IE et Edge */
    }
    
    .tabs-group::-webkit-scrollbar {
        display: none; /* Cacher la scrollbar pour Chrome, Safari et Opera */
    }
    
    .main-content {
        width: 100%;
        padding: 0;
    }
    
    .map-container {
        height: calc(100vh - 80px); /* Ajuster la hauteur de la carte */
        position: relative;
    }
    
    /* Ajustements pour le panneau des pôles en vue mobile */
    .pole-tabs {
        padding: 10px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .pole-tab-content {
        padding: 15px;
    }
    
    /* Ajuster la disposition des cartes de statistiques en colonne sur mobile */
    .stats-cards {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat-card {
        width: 100%;
    }
}

/* Ajout d'une classe pour la carte en mode plein écran (quand le panel est fermé) */
@media screen and (max-width: 768px) {
    .map-container.fullscreen {
        height: calc(100vh - 80px);
    }
}

.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);
}

/* Épurer les popups de la carte */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

/* Épurer les contrôles de zoom */
.leaflet-control-zoom {
  border: none !important;
  margin: 15px !important;
  left: 15px !important;
  right: auto !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    color: #3B605A !important;
    border: 1px solid #DDE9E7 !important;
    transition: all 0.2s ease;
}

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

/* Masquer le texte d'attribution */
.leaflet-control-attribution {
  background: transparent !important;
  color: rgba(0, 0, 0, 0.4) !important;
  font-size: 10px !important;
  padding: 2px 5px !important;
  left: 5px !important;
  right: auto !important;
}

/* Badge Opportunités de financement */
.map-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 500; /* S'assure que le badge est au-dessus de la carte */
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 25px 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #004439;
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.40);
    backdrop-filter: blur(2px);
}

.map-badge:hover {
    background-color: rgba(241, 244, 244, 1); /* Fond gris sans transparence au survol */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.badge-icon {
    width: 20px;
    height: 20px;
}

/* Styles pour les popups au survol avec le nouveau format */
.hover-popup {
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hover-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hover-popup .leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.hover-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
}

/* Le pont invisible pour faciliter le passage de la souris vers le popup */
.hover-bridge {
    position: absolute;
    bottom: -20px; /* Créer un pont entre le marqueur et le popup */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    pointer-events: auto; /* Capture les événements de souris */
}

.map-popup {
    position: relative; /* Pour positionner le hover-bridge */
    padding: 15px;
    pointer-events: auto; /* Permettre les interactions avec le contenu du popup */
    cursor: pointer; /* Indique que tout le popup est cliquable */
    transition: background-color 0.2s ease;
}

.map-popup:hover {
    background-color: rgba(241, 244, 244, 0.5); /* Léger effet au survol */
}

.map-popup .sector {
    color: #7E9894; /* Couleur grise */
    margin: 0;
    font-size: 10px;
    font-weight: 400;
    line-height: 24px; /* 240% */
}

.map-popup h3 {
    color: #004439;
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 19px;
}

.map-popup .investment {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #59B224;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px; /* 157.143% */
}

/* Pour une expérience tactile sur mobile */
@media (hover: none) {
    /* Pour les appareils tactiles (comme les mobiles), garder le comportement de clic */
    .hover-popup {
        pointer-events: auto;
    }
}

/* Styles pour le panel de détails */
/* Modal de détails d'opportunité */
.opportunity-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.opportunity-detail-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 1;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.opportunity-detail-modal.active .modal-overlay {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

/* Flou discret du contenu principal quand le modal est ouvert */
body.modal-blur-active .main-content,
body.modal-blur-active .tabs-group {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

body:not(.modal-blur-active) .main-content,
body:not(.modal-blur-active) .tabs-group {
    filter: blur(0);
    transition: filter 0.3s ease;
}

.opportunity-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 68, 57, 0.2);
    z-index: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
}

.opportunity-detail-modal.closing .opportunity-modal-content {
    animation: modalSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.opportunity-modal-content > div:not(.opportunity-modal-footer) {
    overflow-y: auto;
    padding: 40px;
    -webkit-overflow-scrolling: touch;
}

.opportunity-modal-content > div:not(.opportunity-modal-footer)::-webkit-scrollbar {
    width: 6px;
}

.opportunity-modal-content > div:not(.opportunity-modal-footer)::-webkit-scrollbar-track {
    background: #F1F4F4;
    border-radius: 3px;
}

.opportunity-modal-content > div:not(.opportunity-modal-footer)::-webkit-scrollbar-thumb {
    background: #DDE9E7;
    border-radius: 3px;
}

.opportunity-modal-content > div:not(.opportunity-modal-footer)::-webkit-scrollbar-thumb:hover {
    background: #7E9894;
}

.close-panel-btn,
.close-opportunity-btn,
.close-pole-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.opportunity-details {
    padding: 0;
    overflow-y: visible;
    flex: 1;
    margin-bottom: 0;
}

.detail-title {
    color: #6BBE46;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.detail-sector {
    color: #7E9894;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.detail-investment {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #59B224;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.opportunity-details h4 {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    margin: 15px 0 5px 0;
}

.opportunity-details p {
    color: #3B605A;
    font-size: 14px;
    line-height: 22px;
    margin: 0 0 15px 0;
}

.detail-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #DDE9E7;
    margin-bottom: 0;
}

.detail-action-btn {
    width: 100%;
    padding: 12px;
    background: #6BBE46;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    border: none;
    color: white;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.detail-action-btn:hover {
    background: #59A239;
}

/* Ajustements responsifs */
@media screen and (max-width: 992px) {
    .main-content.panel-open {
        width: 50%;
    }

}

/* Nouveaux styles pour le panel de détails réorganisé */
.opportunity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.opportunity-header-content {
    flex: 1;
}

.detail-sector-badge {
    width: max-content;
    padding: 6px 22px;
    color: #3B605A;
    font-size: 12px;
    margin-bottom: 19px;
    border-radius: 20px;
    border: 1px solid #DDE9E7;
    font-weight: 500;
    line-height: 28px; /* 233.333% */
}

.detail-title {
    color: #004439;
    margin: 0;
    line-height: 28px;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px; /* 166.667% */
}

.close-opportunity-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-opportunity-btn img {
    width: 40px;
    height: 40px;
}

.investment-block {
    display: flex;
    align-items: center;
    padding: 9px 22px;
    margin-bottom: 29px;
    border-radius: 15px;
    background: #F1F4F4;
    gap: 20px;
}

.investment-icon-container {
    margin-right: 0;
}

.investment-info {
    display: flex;
    flex-direction: column;
}

.investment-label {
    color: #7E9894;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px; /* 166.667% */
}

.investment-amount {
    color: #004439;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px; /* 166.667% */
}

.detail-description h4,
.detail-resources h4 {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 28px; /* 175% */
}

.detail-description {
    color: #004439;
    font-size: 13px;
    font-weight: 400;
    line-height: 28px; /* 175% */
    margin-bottom: 18px;
}

.detail-description p,
.detail-resources p {
    color: #3B605A;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

.implementation-area {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 9px 18px;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
}

.area-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.area-content {
    color: #3B605A;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px; /* 166.667% */
}
/* Ajout de la ligne horizontale et du conteneur de bouton */
.opportunity-modal-footer {
    padding: 20px 40px;
    margin-top: auto;
    border-top: 1px solid #DDE9E7;
    background: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interested-modal-btn {
    width: 100%;
    max-width: 400px;
    padding: 10px 24px;
    background: #59B224;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    border: none;
    color: white;
    font-family: "Open Sans";
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    gap: 10px;
    position: relative;
}

.interested-modal-btn:hover {
    background: #4A9B1F;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(89, 178, 36, 0.3);
}

.interested-modal-btn:active {
    transform: translateY(0);
}

/* Modal de confirmation d'ajout au panier */
.cart-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.cart-confirm-modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
}

.cart-confirm-modal.hiding {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
}

.cart-confirm-modal .modal-content {
    background: #FFF;
    border-radius: 20px;
    width: 420px;
    max-width: 90%;
    padding: 40px;
    text-align: center;
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
}

.cart-confirm-modal.active .modal-content {
    animation: cartModalSlideIn 0.35s ease-out forwards;
}

.cart-confirm-modal.hiding .modal-content {
    animation: cartModalSlideOut 0.25s ease-in forwards;
}

@keyframes cartModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.cart-confirm-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 27px;
}

.cart-confirm-modal h2 {
    color: #004439;
    margin-bottom: 17px;
    font-size: 16px;
    font-weight: 700;
    line-height: 8px; /* 50% */
}

.cart-confirm-modal .opportunity-name {
    color: #3B605A;
    margin-bottom: 31px;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px; /* 166.667% */
}

.cart-alert {
    padding: 11px;
    margin-bottom: 26px;
    border-radius: 10px;
    background: rgba(89, 178, 36, 0.10);
}

.cart-count-message {
    color: #3B605A;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px; /* 166.667% */
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-cart-view {
    background-color: #59B224;
    color: white;
    padding: 14px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.btn-cart-view:hover {
    background-color: #4a9b1d;
    text-decoration: none;
    color: white;
}

.btn-continue {
    background-color: transparent;
    color: #3B605A;
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid #DDE9E7;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Open Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; /* 133.333% */
}

.btn-continue:hover {
    background-color: #F1F4F4;
}

#cartConfirmModal .modal-content {
    height: auto;
}

/* Ajouter ces styles à votre fichier CSS existant */
.pole-details {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    margin-bottom: 20px;
}

.pole-badge {
    background-color: #FFF9E3;
    color: #F6C213;
    border-color: #F6C213;
}

.opportunities-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opportunity-item {
    padding: 15px;
    border-radius: 8px;
    background: #F1F4F4;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.opportunity-item:hover {
    background: #E5ECEB;
}

.opportunity-item h5 {
    color: #004439;
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.opportunity-item .investment {
    color: #6BBE46;
    font-size: 12px;
    font-weight: 500;
}

/* Styles pour le détail des pôles */
.pole-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    margin-bottom: 23px;
}

.pole-name {
    color: #004439;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 20px; /* 83.333% */
    flex: 1;
}

.close-pole-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.close-pole-btn .close-icon {
    width: 40px;
    height: 40px;
}

.pole-description {
    color: #3B605A;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 22px;
}

/* Styles pour les onglets */
.pole-tabs-container {
    margin-bottom: 25px;
}

.pole-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #DDE9E7 transparent;
}

.pole-tabs::-webkit-scrollbar {
    height: 4px;
}

.pole-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.pole-tabs::-webkit-scrollbar-thumb {
    background-color: #DDE9E7;
    border-radius: 4px;
}

.pole-tabs .tab {
    padding: 8px 16px;
    white-space: nowrap;
    color: #7E9894;
    cursor: pointer;
    border-bottom: 1px solid #DDE9E7;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px; /* 166.667% */
}

.pole-tabs .tab.active {
    color: #004439;
    border-bottom: 2px solid #59B224;
}

/* Styles pour les cartes de statistiques */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

.stat-card {
    background: #F1F4F4;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.stat-card h4 {
    color: #7E9894;
    margin: 0 0 3px 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px; /* 166.667% */
}

.stat-value {
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px; /* 142.857% */
}

/* Styles pour la répartition par secteur */
.sector-distribution {
    margin-bottom: 30px;
}

.sector-distribution h3 {
    color: #3B605A;
    font-size: 16px;
    margin-bottom: 17px;
    font-weight: 700;
    line-height: 20px;
}

.sectors-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pole-sector-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sector-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0;
}

.sector-name {
    color: #004439;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    margin: 0;
    padding: 0;
}

.sector-count {
    color: #004439;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    padding: 0;
    margin: 0;
}

.sector-progress {
    height: 6px;
    background: #F1F4F4;
    overflow: hidden;
    width: 100%;
}

.sector-progress-bar {
    height: 100%;
    background: #004439;
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* Styles pour les atouts */
.pole-advantages {
    margin-bottom: 27px;
}

.pole-advantages h3 {
    color: #3B605A;
    font-size: 16px;
    margin-bottom: 9px;
    font-weight: 700;
    line-height: 20px; /* 125% */
}

.opportunities-count {
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px; /* 200% */
}

.opportunities-count strong {
    font-weight: 700;
    color: #59B224;
}

.advantages-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.advantage-card {
    padding: 16px 22px;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
}

.advantage-card h4 {
    color: #004439;
    font-size: 14px;
    margin: 0 0 2px 0;
    font-weight: 700;
    line-height: 20px; /* 142.857% */
}

.advantage-card p {
    color: #004439;
    font-size: 12px;
    margin: 0;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

/* Gestion de l'affichage des contenus d'onglets */
.pole-tab-content {
    display: none;
    padding: 0;
}

.pole-tab-content.active {
    display: block;
}

.coming-soon {
    text-align: center;
    padding: 40px 20px;
    color: #3B605A;
    font-style: italic;
}

/* Styles pour la liste des opportunités dans les détails du pôle */
.pole-investments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
}

/* N'afficher la barre de défilement que lors du survol */
.pole-investments-list:hover {
    scrollbar-color: #DDE9E7 #F1F4F4; /* Pour Firefox */
}

/* Styles pour Webkit (Chrome, Safari, etc.) */
.pole-investments-list::-webkit-scrollbar {
    width: 4px; /* Barre de défilement plus fine */
    background-color: transparent;
}

.pole-investments-list::-webkit-scrollbar-track {
    background: transparent; /* Piste invisible par défaut */
    border-radius: 10px;
}

.pole-investments-list:hover::-webkit-scrollbar-track {
    background: #F1F4F4; /* Piste visible uniquement au survol */
}

.pole-investments-list::-webkit-scrollbar-thumb {
    background: transparent; /* Curseur invisible par défaut */
    border-radius: 10px;
}

.pole-investments-list:hover::-webkit-scrollbar-thumb {
    background: #DDE9E7; /* Curseur visible uniquement au survol */
}

.pole-investments-list:hover::-webkit-scrollbar-thumb:hover {
    background: #7E9894; /* Effet au survol du curseur */
}

.pole-opportunity-item {
    background: #FFF;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    padding: 18px 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opportunity-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.opportunity-sector-badge {
    align-self: flex-start;
    padding: 5px 15px;
    border-radius: 15px;
    background: #F1F4F4;
    color: #3B605A;
    font-size: 10px;
    font-weight: 600;
}

.opportunity-name {
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.opportunity-investment {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #004439;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 10px;
    background: #F1F4F4;
    align-self: flex-start;
    margin-top: 5px;
}

.investment-icon {
    width: 18px;
    height: 18px;
}

.no-opportunities {
    padding: 30px;
    text-align: center;
    color: #7E9894;
    font-size: 14px;
    background: #F1F4F4;
    border-radius: 15px;
    margin-top: 20px;
}

/* Style pour les cartes d'incitations */
.incitations-advantages {
    margin: 20px 0;
}

.incitations-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 15px;
}

.incitation-card {
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    padding: 12px 19px;
    transition: all 0.2s ease;
}

.incitation-card h4 {
    color: #004439;
    margin: 0 0 2px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px; /* 183.333% */
}

.incitation-card p {
    color: #7E9894;
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px; /* 183.333% */
}

.key-points-list {
    border-radius: 15px;
    border: 1px solid #DDE9E7;
    padding: 17px;
}

.key-points-list ul {
    padding-left: 24px;
    margin: 0;
}

.key-points-list li {
    color: #3B605A;
    margin-bottom: 3px;
    position: relative;
    padding-left: 5px;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px; /* 166.667% */
}

.key-points-list li:last-child {
    margin-bottom: 0;
}

/* Styles pour les filtres d'infrastructure */
.infrastructure-filters {
    display: flex;
    gap: 24px;
    margin-bottom: 15px;
}

.filter-button {
    color: #C7D8D5;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button.active {
    color: #004439;
}

.infrastructure-section {
    display: none;
}

.infrastructure-section.active {
    display: block;
}

.infrastructure-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.infrastructure-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.infrastructure-card h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 600;
}

.infrastructure-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .infrastructure-cards {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-filters {
        justify-content: center;
    }
}

/* Styles pour le bouton de retour dans la vue détaillée des opportunités */
.opportunity-details-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #DDE9E7;
    animation: slideInFromTop 0.3s ease-out;
}

/* Animations pour l'ouverture et fermeture des détails d'opportunité */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

/* Classes pour les animations */
.opportunity-details.animate-in {
    animation: fadeInScale 0.2s ease-out;
}

.opportunity-details.animate-out {
    animation: fadeOutScale 0.2s ease-in;
}

.opportunity-details-header.animate-in {
    animation: slideInFromTop 0.2s ease-out;
}

.opportunity-details-header.animate-out {
    animation: slideOutToTop 0.2s ease-in;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #3B605A;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.back-button:hover {
    background-color: #F1F4F4;
}

.back-icon {
    width: 16px;
    height: 16px;
}

/* Styles pour le bouton de retour mobile (ancien style) */
.opportunity-details .mobile-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.opportunity-details .mobile-close-btn img {
    width: 16px;
    height: 16px;
}

/* Afficher le bouton de retour uniquement sur mobile */
@media screen and (min-width: 769px) {
    .opportunity-details .mobile-close-btn {
        display: none;
    }
}

/* Styles pour le bouton de génération d'investissement */
.generate-investment-btn-container {
    position: absolute;
    top: 20px; /* Même niveau que search-icon-container */
    left: 80px; /* À côté du search-icon-container */
    z-index: 1000;
}

.generate-investment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    border: 1px solid #004439;
    background: #FFF;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.05);
    padding: 10px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.generate-investment-btn span {
    background: linear-gradient(91deg, #004439 -21.18%, #59B224 110.02%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

/* Styles pour le dropdown de filtrage */
.filter-dropdown {
    background: #FFF;
    border: 1px solid #DDE9E7;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    position: relative;
}

.filter-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.filter-dropdown-header:hover {
    background: #F8F9FA;
}

.filter-dropdown-header span {
    color: #004439;
    font-size: 14px;
    font-weight: 600;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.filter-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFF;
    border: 1px solid #DDE9E7;
    border-top: none;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    margin-top: 2px;
}

.filter-dropdown.active .filter-dropdown-menu {
    display: block;
}

.filter-option {
    padding: 12px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #004439;
    font-size: 14px;
    font-weight: 500;
}

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

.filter-option.active {
    background: #59B224;
    color: white;
}

.filter-option:first-child {
    border-radius: 0;
}

.filter-option:last-child {
    border-radius: 0 0 20px 20px;
}

/* Styles pour le modal d'investissement personnalisé */
.custom-investment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.custom-investment-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-investment-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.custom-investment-modal .modal-header {
    padding: 20px 52px;
    border-bottom: 1px solid #DDE9E7;
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFF;
}

.custom-investment-modal .modal-header h2 {
    color: #004439;
    font-size: 18px;
    font-weight: 700;
    line-height: 30px;
    margin: 0;
    flex: 1;
}

.custom-investment-modal .modal-body {
    padding: 30px 52px;
    flex: 1;
    overflow-y: auto;
}

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

.custom-description {
    color: #3B605A;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-card {
    border: 1px solid #DDE9E7;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFF;
    text-align: center;
}

.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.disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #F1F4F4;
    border-color: #DDE9E7;
}

.option-card.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #DDE9E7;
}

.option-card.disabled .option-text h4,
.option-card.disabled .option-text p {
    color: #9DADAB;
}

/* Styles pour les cases à cocher personnalisées */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-right: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.checkbox-item:hover {
    background-color: #F1F4F4;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 18px;
    width: 18px;
    background-color: #FFF;
    border: 2px solid #DDE9E7;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-item:hover .checkmark {
    border-color: #59B224;
}

.checkbox-item input:checked ~ .checkmark {
    background-color: #59B224;
    border-color: #59B224;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    color: #004439;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    flex: 1;
}

.option-card .option-text h4 {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.option-card .option-text p {
    color: #3B605A;
    font-size: 13px;
    line-height: 20px;
    margin: 0;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DDE9E7;
    border-radius: 10px;
    background: #FFF;
    color: #004439;
    font-size: 14px;
    font-weight: 500;
}

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

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

.generate-btn {
    width: 100%;
    padding: 12px 24px;
    background: #59B224;
    color: #FFF;
    border: none;
    border-radius: 15px;
    font-family: 'Open Sans', sans-serif;
    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;
}

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

.btn-text, .generating-text {
    transition: opacity 0.3s ease;
}

.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #FFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive pour le modal */
@media screen and (max-width: 768px) {
    .custom-investment-modal .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .custom-investment-modal .modal-header,
    .custom-investment-modal .modal-body,
    .custom-investment-modal .modal-footer {
        padding: 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* Styles pour le blocage du formulaire premium */
.form-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #FFC500 0%, #FFD700 100%);
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(255, 197, 0, 0.3);
}

.lock-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.premium-text {
    color: #004439;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.disabled-form {
    pointer-events: none;
    position: relative;
}

.custom-investment-modal .modal-body {
    position: relative;
}

/* Styles pour le footer premium */
.premium-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px 52px;
    background: #F8F9FA;
}

.premium-message {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #FFF;
    border-radius: 15px;
    border: 1px solid #DDE9E7;
}

.premium-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFC500 0%, #FFD700 100%);
    border-radius: 50%;
}

.premium-icon {
    width: 24px;
    height: 24px;
}

.premium-content {
    flex: 1;
}

.premium-title {
    color: #004439;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.premium-description {
    color: #3B605A;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .premium-footer {
        padding: 20px;
    }
    
    .premium-message {
        flex-direction: column;
        text-align: center;
    }
    
    .premium-icon-wrapper {
        margin: 0 auto;
    }
    
    .premium-badge {
        padding: 16px 30px;
    }
    
    .premium-text {
        font-size: 16px;
    }
}

/* =====================================================
   STYLES POUR LA BORNE D'AÉROPORT
   ===================================================== */

.airport-kiosk-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100002;
    overflow: hidden;
    background: linear-gradient(135deg, #004439 0%, #006B5A 50%, #59B224 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.airport-kiosk-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Carte en arrière-plan */
.splash-map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.splash-map-background #splashMap {
    width: 100%;
    height: 100%;
    filter: blur(1px);
    opacity: 0.4;
    transform: scale(1.1);
}

/* Styles pour les marqueurs dans le splash screen */
.splash-map-background .custom-marker-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.splash-map-background .marker-pin {
    width: 20px;
    height: 20px;
    border-radius: 50% 50% 50% 0;
    position: relative;
    transform: rotate(-45deg);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.splash-map-background .marker-cluster {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.splash-map-background .marker-cluster div {
    background: rgba(89, 178, 36, 0.9) !important;
    border: 3px solid white !important;
}

.splash-map-background .marker-cluster div span {
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Overlay pour assombrir la carte */
.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 68, 57, 0.75) 0%, rgba(0, 107, 90, 0.7) 50%, rgba(89, 178, 36, 0.65) 100%);
    z-index: 2;
}

/* Fond animé */
.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

/* Particules animées */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-particle 20s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Contenu de l'écran d'accueil */
.splash-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
    max-width: 90%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.splash-logo-container {
    margin-bottom: 50px;
}

.splash-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    drop-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.splash-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 120px 0;
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    max-width: 1200px;
}

/* Call-to-action avec animation */
.splash-cta {
    text-align: center;
}

.touch-indicator {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
}

.touch-ripple,
.touch-ripple-delayed {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 197, 0, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple-animation 2s ease-out infinite;
}

.touch-ripple-delayed {
    animation-delay: 1s;
}

@keyframes ripple-animation {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

.touch-icon {
    position: relative;
    z-index: 2;
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.cta-text {
    font-size: 36px;
    font-weight: 700;
    color: #FFC500;
    margin: 0 0 12px 0;
    animation: pulse-text 2s ease-in-out infinite;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.cta-subtext {
    font-size: 20px;
    color: white;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

/* Animations d'entrée */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 1s ease-out 0.3s forwards;
}

.animate-bounce {
    animation: bounce 2s ease-in-out 1.5s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive pour écrans plus petits */
@media screen and (max-width: 768px) {
    .splash-title {
        font-size: 32px;
        margin-bottom: 80px;
    }
    
    .splash-logo {
        max-height: 100px;
    }
    
    .splash-logo-container {
        margin-bottom: 40px;
    }
    
    .cta-text {
        font-size: 28px;
    }
    
    .cta-subtext {
        font-size: 16px;
    }
}

