/**
 * Styles pour le sélecteur de code postal
 */

/* Container principal */
.pmcp {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Formulaire de code postal */
#pmcp-form-container {
    text-align: center;
    margin-bottom: 2rem;
}

#pmcp-form-container label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

#pmcp-input {
    width: 300px;
    padding: 12px 16px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto 1rem;
    display: block;
    transition: border-color 0.3s;
}

#pmcp-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#pmcp-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#pmcp-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#pmcp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pmcp-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Sélection de ville */
.pmcp-city-selection {
    animation: fadeIn 0.5s;
}

.pmcp-city-prompt {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.pmcp-city-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.city-btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.city-btn:hover {
    border-color: #4CAF50;
    background: #f8fef8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.city-btn:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

/* Affichage de la localisation actuelle */
#pmcp-location-display {
    background: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.5s;
}

.pmcp-current-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 1.05rem;
    color: #0369a1;
}

.pmcp-current-location span {
    font-weight: 500;
}

.pmcp-current-location strong {
    color: #0284c7;
    font-weight: 600;
}

.pmcp-change-btn {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0369a1;
    background: white;
    border: 1px solid #0284c7;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.pmcp-change-btn:hover {
    background: #0284c7;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Affichage des produits */
.pm-products {
    animation: fadeIn 0.5s;
}

.pmcp-zone-info {
    background: #f0f9ff;
    color: #0369a1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.pm-products h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.pmcp-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pmcp-products-list li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s;
}

.pmcp-products-list li:hover {
    transform: translateX(5px);
    background: #f1f3f5;
}

/* Message pionnier */
.pm-outzone {
    animation: fadeIn 0.5s;
    text-align: center;
}

.pm-outzone h2 {
    color: #d97706;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.pm-outzone p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pm-outzone strong {
    color: #d97706;
    font-weight: 600;
}

/* Formulaire d'inscription pionnier */
.pm-waitlist {
    max-width: 400px;
    margin: 2rem auto;
}

.pm-waitlist label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

#pmwl-email {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

#pmwl-email:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.pm-waitlist button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #d97706, #b45309);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pm-waitlist button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.pm-waitlist button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Messages de statut */
.pmcp-loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #666;
}

.pmcp-error {
    color: #dc2626;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #dc2626;
}

.pmcp-success {
    color: #059669;
    padding: 1rem;
    background: #ecfdf5;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid #059669;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .pmcp {
        padding: 1.5rem;
        margin: 1rem;
    }

    #pmcp-input {
        width: 100%;
        max-width: 300px;
    }

    .pmcp-current-location {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .pmcp-change-btn {
        margin-left: 0;
        width: 100%;
    }

    .pmcp-city-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .city-btn {
        width: 100%;
        min-width: auto;
    }

    .pm-outzone h2 {
        font-size: 1.5rem;
    }

    .pm-outzone p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .pmcp {
        padding: 1rem;
        border-radius: 8px;
    }

    #pmcp-btn {
        width: 100%;
        padding: 12px 24px;
    }

    .pm-outzone h2 {
        font-size: 1.3rem;
    }
}