/* ============================================
   CONTACT PAGE
   ============================================ */

/* Remove container constraints */
body:has(.contact-hero) .container {
    padding: 0 !important;
    max-width: none !important;
}

/* Hero Section */
.contact-hero {
    width: 100%;
    background: linear-gradient(rgba(4, 0, 53, 0.3), rgba(4, 0, 53, 0.3)), 
                url('/images/background-img/background%20image%20marque.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 0;
    position: relative;
}

.contact-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    color: white;
    text-align: center;
}

/* Alert Messages */
.alert {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #10b981;
    color: white;
    border: 2px solid #059669;
}

.alert-error {
    background-color: #ef4444;
    color: white;
    border: 2px solid #dc2626;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.contact-hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Sélecteur de type d'utilisateur (intégré dans le formulaire) */
.contact-user-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.contact-user-type label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a1635;
}

.contact-user-type select {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: 2px solid #0a1635;
    border-radius: 8px;
    background: white;
    color: #0a1635;
    cursor: pointer;
    min-width: 250px;
    transition: all 0.3s;
}

.contact-user-type select:hover {
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.contact-user-type select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Main Content */
.contact-main {
    width: 100%;
    background: #f5f7fa;
    padding: 3rem 0;
}

.contact-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: #0a1635;
    border-radius: 15px;
    padding: 2rem;
    color: white;
}

.info-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.5px;
}

.info-image {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-text a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.info-text a:hover {
    text-decoration: underline;
}

.info-map {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.info-map iframe {
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.additional-info {
    background: #0a1635;
}

.additional-info .info-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.additional-info .info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.additional-info .info-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.additional-info .info-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.additional-info .info-section p strong {
    color: white;
    font-weight: 600;
}

.additional-info .info-section p:last-child {
    margin-bottom: 0;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #0a1635;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.download-btn svg {
    width: 18px;
    height: 18px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Form Container */
.contact-form-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-title {
    margin-bottom: 1.5rem;
}

.form-title h2 {
    color: #1e40af;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a1635;
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1635;
}

.field-hint {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: -0.2rem;
}

/* Validation visuelle uniquement après interaction */
.form-group input.touched:invalid,
.form-group textarea.touched:invalid {
    border-color: #ef4444;
}

.form-group input.touched:valid,
.form-group textarea.touched:valid {
    border-color: #10b981;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0a1635;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.file-upload {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #0a1635;
    background: #f8f9fa;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    color: #666;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.file-upload-label svg {
    width: 18px;
    height: 18px;
}

.file-upload-label.has-files {
    color: #10b981;
    font-weight: 600;
}

.file-upload-label .file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 0.5rem;
}

/* Liste des fichiers sélectionnés */
.file-list {
    margin-top: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.file-item:last-child {
    margin-bottom: 0;
}

.file-item-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-size {
    font-size: 0.8rem;
    color: #6b7280;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Google reCAPTCHA */
.g-recaptcha {
    margin-top: 0.5rem;
}

/* Message d'erreur captcha */
.captcha-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
    font-size: 0.9rem;
}

.captcha-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.captcha-placeholder {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
}

.captcha-placeholder input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.captcha-placeholder label {
    flex: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

.captcha-icon {
    font-size: 2rem;
}

.btn-submit {
    background: #dc3545;
    color: white;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.btn-submit:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 300px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-sidebar {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-user-type {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-user-type select {
        min-width: 200px;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .form-section {
        gap: 1rem;
    }
}
