/* ==========================================================================
   NV-STYLE.CSS - Styles pour la page de contact NV.fr
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(120deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    min-height: 100vh;
    color: #ecf0f1;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* En-tête */
.site-header {
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo-container {
    display: inline-block;
}

.site-logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

.site-logo:hover {
    color: #c0392b;
    text-shadow: 0 0 30px rgba(231, 76, 60, 0.5);
    transform: scale(1.05);
}

.site-tagline {
    font-size: 0.9rem;
    color: #bdc3c7;
    font-weight: 300;
    margin-left: 5px;
}

/* Contenu principal */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Page d'erreur */
.error-page {
    display: none;
    text-align: center;
    animation: slideInFromTop 0.6s ease;
}

.error-page.visible {
    display: block;
}

.error-container {
    background: rgba(52, 73, 94, 0.9);
    border-radius: 15px;
    padding: 40px;
    border: 2px solid #e74c3c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e74c3c;
    animation: bounce 2s infinite;
}

.error-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.error-text {
    font-size: 1rem;
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.5;
}

.countdown-info {
    color: #95a5a6;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e74c3c;
    animation: pulse 1s infinite;
}

.error-link {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.error-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Formulaire de contact */
.contact-form-wrapper {
    width: 100%;
    max-width: 600px;
    transition: all 0.4s ease;
}

.contact-form-wrapper.hidden {
    display: none;
}

.form-card {
    background: rgba(52, 73, 94, 0.95);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(236, 240, 241, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-description {
    font-size: 1.1rem;
    color: #bdc3c7;
    font-weight: 400;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(44, 62, 80, 0.8);
    border: 2px solid rgba(189, 195, 199, 0.2);
    border-radius: 12px;
    color: #ecf0f1;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #e74c3c;
    background: rgba(44, 62, 80, 1);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
}

.form-input::placeholder {
    color: #7f8c8d;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: 'Poppins', sans-serif;
}

/* Section sécurité */
.security-section {
    background: rgba(44, 62, 80, 0.6);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin: 10px 0;
}

.security-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ecf0f1;
    margin-bottom: 20px;
}

.security-icon {
    font-size: 1.2rem;
}

.math-captcha {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e74c3c;
    font-family: 'Space Mono', monospace;
    background: rgba(236, 240, 241, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.captcha-input {
    width: 80px;
    padding: 10px 15px;
    background: rgba(44, 62, 80, 0.8);
    border: 2px solid rgba(189, 195, 199, 0.2);
    border-radius: 8px;
    color: #ecf0f1;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
    outline: none;
}

.captcha-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.2);
}

.refresh-btn {
    padding: 10px 12px;
    background: rgba(149, 165, 166, 0.8);
    color: #ecf0f1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(127, 140, 141, 0.9);
    transform: rotate(180deg);
}

/* Captcha visuel */
.visual-captcha {
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.visual-question {
    font-size: 1rem;
    color: #bdc3c7;
    margin-bottom: 15px;
    font-weight: 500;
}

.visual-display {
    font-size: 2rem;
    color: #e74c3c;
    margin: 15px 0;
    padding: 20px;
    background: rgba(236, 240, 241, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(231, 76, 60, 0.2);
    letter-spacing: 10px;
}

.visual-feedback {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 20px;
}

.visual-feedback.success {
    color: #27ae60;
}

.visual-feedback.error {
    color: #e74c3c;
}

/* Consentement */
.consent-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(44, 62, 80, 0.4);
    border-radius: 10px;
    border: 1px solid rgba(189, 195, 199, 0.1);
}

.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #e74c3c;
    cursor: pointer;
}

.consent-text {
    font-size: 0.9rem;
    color: #bdc3c7;
    line-height: 1.5;
    font-weight: 400;
}

.privacy-link {
    color: #e74c3c;
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #c0392b;
}

/* Bouton submit */
.submit-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Messages de statut */
.status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    display: none;
}

.status-message.success {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
    display: block;
}

.status-message.error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    display: block;
}

.status-message.loading {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    display: block;
}

/* Page de succès */
.success-page {
    display: none;
    text-align: center;
    animation: slideInFromBottom 0.6s ease;
}

.success-page.visible {
    display: block;
}

.success-container {
    background: rgba(52, 73, 94, 0.95);
    border-radius: 20px;
    padding: 50px;
    border: 2px solid #27ae60;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    max-width: 450px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounceIn 1s ease;
}

.success-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 15px;
}

.success-text {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 30px;
    line-height: 1.5;
}

.home-button {
    padding: 12px 25px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.home-button:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
    transform: translateY(-2px);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #34495e, #2c3e50);
    padding: 40px;
    border-radius: 15px;
    max-width: 550px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #bdc3c7;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-header {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 20px;
    text-align: center;
}

.modal-body {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 1rem;
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .site-logo {
        font-size: 2.2rem;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .form-card,
    .error-container,
    .success-container {
        padding: 30px 25px;
        margin: 0 10px;
    }
    
    .math-captcha {
        flex-direction: column;
        gap: 10px;
    }
    
    .captcha-question {
        font-size: 1.1rem;
        padding: 8px 15px;
    }
    
    .form-input {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-textarea {
        min-height: 100px;
    }
    
    .modal-content {
        padding: 30px 25px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        font-size: 1.8rem;
    }
    
    .form-card {
        padding: 25px 20px;
    }
    
    .security-section {
        padding: 20px 15px;
    }
    
    .visual-display {
        font-size: 1.5rem;
        padding: 15px;
        letter-spacing: 5px;
    }
    
    .consent-wrapper {
        gap: 10px;
    }
    
    .consent-text {
        font-size: 0.85rem;
    }
}