/* Netivia Boîte à outils - Styles personnalisés */

/* Couleur de texte noir partout */
body .netivia-tool,
body .netivia-tool * {
    color: #000;
}

.netivia-tool {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    margin: 2rem 0;
    max-width: 100%;
}

.netivia-tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.netivia-tool-header h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.netivia-tool-header p {
    margin: 0;
    opacity: 0.7;
    color: #000;
}

/* Formulaires - Style WordPress */
.netivia-tool-form {
    margin-bottom: 2rem;
}

.netivia-form-group {
    margin-bottom: 1rem;
}

.netivia-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #000;
}

.netivia-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    color: #000;
    border-radius: 20px;
}

.netivia-input:focus {
    border-color: #0855FE;
    outline: none;
    box-shadow: 0 0 0 1px #0855FE;
}

/* Boutons personnalisés */
.netivia-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: #0855FE !important;
    color: #fff !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.netivia-button:hover,
.netivia-button:focus {
    background: #000 !important;
    color: #fff !important;
}

.netivia-button-secondary {
    background: #f0f0f1 !important;
    color: #000 !important;
    margin-left: 0.5rem;
}

.netivia-button-secondary:hover,
.netivia-button-secondary:focus {
    background: #000;
    color: #fff;
}

.netivia-button-primary {
    background: #0855FE !important;
    color: #fff;
}

.netivia-button-primary:hover,
.netivia-button-primary:focus {
    background: #000 !important;
    color: #fff;
}

/* Loader */
.netivia-loader {
    text-align: center;
    padding: 2rem 1rem;
}

.netivia-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0855FE;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.netivia-loader p {
    margin: 0;
    opacity: 0.7;
    color: #000;
}

/* Résultats */
.netivia-results {
    margin-top: 2rem;
}

/* Audit SEO - Résultats */
.netivia-seo-score {
    text-align: center;
    padding: 2rem 1rem;
    background: #0855FE;
    color: #fff;
    margin-bottom: 2rem;
    border-radius: 20px;
}

.netivia-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 8px solid rgba(255,255,255,0.3);
}

.netivia-score-value {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.netivia-score-label {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #fff;
}

.netivia-seo-details {
    background: #f9f9f9;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 20px;
}

.netivia-seo-item {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

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

.netivia-seo-item h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: #000;
}

.netivia-seo-item p {
    margin: 0.3rem 0;
    color: #000;
}

.netivia-seo-item ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.netivia-seo-item li {
    margin: 0.3rem 0;
    color: #000;
}

.netivia-status-good {
    color: #00a32a;
    font-weight: 600;
}

.netivia-status-warning {
    color: #dba617;
    font-weight: 600;
}

.netivia-status-bad {
    color: #d63638;
    font-weight: 600;
}

.netivia-seo-cta {
    background: #f9f9f9;
    border-left: 4px solid #0855FE;
    padding: 1rem;
    margin-top: 2rem;
    border-radius: 20px;
}

.netivia-seo-cta p {
    margin: 0 0 1rem 0;
    color: #000;
}

/* Mentions légales */
.netivia-legal-content {
    background: #f9f9f9;
    padding: 2rem;
    margin-bottom: 1rem;
    max-height: 600px;
    overflow-y: auto;
    border-radius: 20px;
}

.netivia-legal-content h1 {
    margin-bottom: 1rem;
    color: #000;
}

.netivia-legal-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.netivia-legal-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #000;
}

.netivia-legal-content strong {
    color: #000;
}

.netivia-legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.netivia-legal-content li {
    margin: 0.5rem 0;
    color: #000;
}

.netivia-legal-actions {
    text-align: center;
}

/* Vérificateur de domaine */
.netivia-domain-result {
    text-align: center;
    padding: 2rem 1rem;
    background: #f9f9f9;
    margin-bottom: 2rem;
    border-radius: 20px;
}

.netivia-domain-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.netivia-domain-status {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.netivia-domain-available {
    color: #00a32a;
}

.netivia-domain-unavailable {
    color: #d63638;
}

.netivia-domain-message {
    opacity: 0.7;
    margin-bottom: 1rem;
    color: #000;
}

.netivia-domain-alternatives {
    margin-top: 2rem;
}

.netivia-domain-alternatives h3 {
    margin-bottom: 1rem;
    color: #000;
}

.netivia-domain-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.netivia-domain-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.netivia-domain-item:hover {
    border-color: #0855FE;
    box-shadow: 0 2px 8px rgba(8, 85, 254, 0.2);
}

.netivia-domain-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.netivia-domain-item-status {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.netivia-domain-item.available {
    border-color: #00a32a;
}

.netivia-domain-item.unavailable {
    opacity: 0.6;
}

/* Modal */
.netivia-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.netivia-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    max-width: 600px;
    position: relative;
    border-radius: 20px;
}

.netivia-modal-close {
    color: #aaa;
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
}

.netivia-modal-close:hover,
.netivia-modal-close:focus {
    color: #000;
}

.netivia-modal-content h3 {
    margin-bottom: 1rem;
    color: #000;
}

.netivia-modal-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #000;
}

.netivia-modal-content strong {
    color: #000;
}

/* Message d'erreur */
.netivia-error {
    background: #fef7f1;
    border-left: 4px solid #d63638;
    padding: 1rem;
    margin: 1rem 0;
    color: #d63638;
    border-radius: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .netivia-tool {
        padding: 1rem;
    }
    
    .netivia-domain-list {
        grid-template-columns: 1fr;
    }
    
    .netivia-button-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .netivia-modal-content {
        margin: 20% auto;
        padding: 1.5rem;
    }
}
