/* ══════════════════════════════════════
   CONTACT.CSS — Frontend
   Étend le layout global (variables CSS héritées)
══════════════════════════════════════ */

/* ── PAGE HERO CONTACT ── */
.contact-hero {
    background: linear-gradient(135deg, var(--blue) 0%, #1e40af 60%, #1d4ed8 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.contact-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
}

.contact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
}

/* ── LAYOUT PRINCIPAL ── */
.contact-section {
    padding: 5rem 2rem;
    background: var(--bg);
}

.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

/* ── SIDEBAR INFOS ── */
.contact-infos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info-icon {
    width: 44px; height: 44px;
    background: var(--blue-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i { font-size: 20px; color: var(--blue); }

.contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-info-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.contact-info-value {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

.contact-info-value a {
    color: var(--blue);
}

.contact-info-value a:hover {
    text-decoration: underline;
}

/* ── BANNER DISPONIBILITÉ ── */
.contact-availability {
    background: linear-gradient(135deg, var(--blue), #1e40af);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-availability i {
    font-size: 22px;
    color: var(--amber);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-availability-text strong {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.contact-availability-text span {
    font-size: 12.5px;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
}

/* ── CARD FORMULAIRE ── */
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2.5rem;
}

.contact-form-card h2 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.contact-form-card p {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ── FORM ELEMENTS ── */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 1rem;
}

.cf-group.cf-full {
    grid-column: 1 / -1;
}

.cf-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.cf-input,
.cf-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.cf-input:focus,
.cf-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}

.cf-input.is-invalid,
.cf-textarea.is-invalid {
    border-color: #dc2626;
}

.cf-textarea {
    resize: vertical;
    min-height: 140px;
}

.cf-error {
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 2px;
}

/* ── SUBMIT ── */
.cf-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.cf-btn:hover { background: var(--blue-dark); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .contact-hero h1 { font-size: 1.8rem; }
    .contact-form-card { padding: 1.5rem; }
}