/* ===================================== */
/* STYLES GÉNÉRAUX POPUPS */
/* ===================================== */

/* Spinner CSS */
.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.spinner-path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Bouton déclencheur */
#suggestion-btn {   
    background: color-mix(in oklab, var(--couleur-principale), white 40%);
    width: fit-content;        
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#suggestion-btn:hover {
    background: var(--couleur-principale);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#suggestion-btn:active {
    transform: translateY(0);
}

/* Overlay popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Header popup */
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.4em;
}

.close-btn {
    margin-top: 0px;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f0f0f0;
    color: #666;
}

/* Body popup */
.popup-body {
    padding: 20px;
}

/* Form groups menu */
.form-group {
    padding: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.form-group:hover {
    background: #f9f9f9;
}

.form-group .bi {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 20px;
    zoom: 1.3;
}

.form-group .bi-chevron-right {
    float: right;    
}

.form-group label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

/* Form inputs */
.form-group-input {
    margin-bottom: 20px;
}

.form-group-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group-input select,
.form-group-input textarea,
.form-group-input input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group-input select:focus,
.form-group-input textarea:focus,
.form-group-input input:focus {
    outline: none;
    border-color: var(--couleur-principale);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--couleur-principale), transparent 80%);
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

/* Actions popup */
.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-primary {
    background: var(--couleur-principale);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: color-mix(in oklab, var(--couleur-principale), black 10%);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e9ecef;
}

/* Animation show */
.popup-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.popup-overlay.show .popup-content {
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { 
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to { 
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

/* Popup large (carte) */
.popup-content-large {
    max-width: 800px;
    width: 95%;
}

/* Layout 2 colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Instructions carte */
.map-instruction {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #2196F3;
}

.map-instruction p {
    margin: 0;
    color: #1565c0;
    font-size: 0.95em;
}
.current-value {
    font-weight: normal;
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}

/* ===================================== */
/* CHECKBOX SUPPRESSION SITE WEB */
/* ===================================== */






/* Responsive */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .popup-content-large {
        width: 95%;
        max-width: none;
    }
    
    #address-map {
        height: 300px !important;
    }
}
