/* Contact CSS - Vente De Conteneur */

/* Variables cohérentes avec sidebar.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1A365D;
    --accent-color: #FF6B35;
    --success-color: #48BB78;
    --error-color: #F56565;
    --warning-color: #ED8936;
    --info-color: #4299E1;
    --text-dark: #2D3748;
    --text-light: #718096;
    --white: #FFFFFF;
    --light-gray: #F7FAFC;
    --border-color: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Conteneur principal */
.contact-main {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light-gray) 0%, #EDF2F7 100%);
    padding: 2rem 0;
    margin-left: 0; /* Removed fixed margin to use full width */
}

.contact-container {
    width: 100%; /* Use full viewport width */
    padding: 0 2rem;
    margin: 0 auto;
}

/* En-tête de la page */
.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0F2027 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.header-content {
    flex: 1;
    z-index: 1;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.header-decoration {
    z-index: 1;
}

.header-decoration i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Messages d'alerte */
.alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #38A169 100%);
    color: white;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.alert-error {
    background: linear-gradient(135deg, var(--error-color) 0%, #E53E3E 100%);
    color: white;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

.alert i {
    font-size: 1.2rem;
    opacity: 0.9;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contenu principal */
.contact-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Informations de contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2A4A6B 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.info-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-header i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Liste d'informations */
.info-list {
    padding: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:hover {
    background: rgba(255, 215, 0, 0.05);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.info-item i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.info-item .text-primary {
    color: var(--primary-color);
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item span {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Services */
.services-list {
    padding: 1.5rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.service-item:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.service-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Section formulaire */
.contact-form-section {
    min-height: 100%;
}

.form-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2A4A6B 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    z-index: 1;
    position: relative;
}

.form-header i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.form-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    z-index: 1;
    position: relative;
}

/* Formulaire */
.contact-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group label i {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

/* Actions du formulaire */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #E6C200 100%);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 200px;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #E6C200 0%, var(--primary-color) 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 1rem;
    transition: var(--transition);
}

.submit-btn:hover i {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-main {
        margin-left: 0; /* Ensure no sidebar offset */
    }
    
    .contact-content {
        grid-template-columns: 320px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-main {
        margin-left: 0;
        padding: 1rem 0;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .contact-title {
        font-size: 2rem;
        justify-content: center;
    }
    
    .header-decoration i {
        font-size: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .info-list {
        padding: 1rem;
    }
    
    .services-list {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
.contact-header {
    padding: 1.5rem;
}
    
    .contact-title {
        font-size: 1.75rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .form-header {
        font-family: sans-serif;
        padding: 1.5rem;
    }
    
    .form-header h3 {
        margin: 0;
        font-size: 1.25rem;
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .contact-form {
        padding-bottom: 1rem;
    }
}

/* Animations remain unchanged */
@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Other sections remain unchanged */

/* Mode sombre */
@media (prefers-color: dark) {
    .contact-main {
        background: linear-gradient(135deg, rgba(26, 32, 44, 1) 0%, #2D3748 100%);
    }
    
    .info-card,
    .form-card {
        background-color: #2D3748;
        border-color: #4A5568;
    }
    
    .info-item span {
        color: #A0AEC0;
    }
    
    .form-group .input,
    .form-group select,
    .form-group textarea {
        background: #4A5568;
        border-color: #718096;
        color: white;
    }
    
    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #A0AEC0;
    }
}

/* Ensure "Contactez-nous" is white */
.contact-header .contact-title {
    color: white !important; /* Use !important to override any conflicting styles */
}

/* Ensure "Informations de contact" is white */
.info-header h3 {
    color: white !important;
}

/* Ensure "Envoyez-nous un message" is white */
.form-header h3 {
    color: white !important;
}