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

.contact-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.contact-info-section {
    margin-bottom: 4rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.contact-card:hover {
    transform: translateY(-8px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--light-text);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.88rem;
}

.contact-btn:hover {
    background: #17a085;
    transform: translateY(-2px);
}

/* ==================== FORMULAIRE ==================== */

.contact-form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-header h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--light-text);
    font-size: 0.95rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

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

.form-group.full {
    flex: none;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.82rem;
    color: var(--light-text);
    margin-top: 0.4rem;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.reset-btn {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.reset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.submit-btn:hover:not(:disabled) {
    background: #17a085;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== FAQ ==================== */

.faq-section {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
}

.faq-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1rem;
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.88rem;
}

/* ==================== RÉSEAUX SOCIAUX ==================== */

.social-section {
    background: var(--light-bg);
    padding: 3.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 4rem;
}

.social-section h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    background: white;
    padding: 1.75rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-width: 110px;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
}

.social-link:hover {
    transform: translateY(-8px);
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.social-link.github:hover  { border-bottom-color: #333; color: #333; }
.social-link.linkedin:hover { border-bottom-color: #0077b5; color: #0077b5; }
.social-link.email:hover    { border-bottom-color: var(--primary-color); }
.social-link.phone:hover    { border-bottom-color: #27ae60; color: #27ae60; }

.social-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

/* ==================== DISPONIBILITÉ ==================== */

.availability-section {
    margin-bottom: 4rem;
}

.availability-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--primary-color);
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.available {
    background: #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.status-text {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.availability-card > p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.availability-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.detail-item {
    color: var(--light-text);
    font-size: 0.9rem;
}

.detail-item strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

/* ==================== MESSAGES ==================== */

.message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .availability-details {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        min-width: 90px;
        padding: 1.25rem;
    }
}