/* ============================================================
   contact.css — ENSEM Alumni & Fondation · Contactez-nous
   Matches the platform design system (cotisation & association)
   ============================================================ */

:root {
    --primary:       #454796;
    --primary-dark:  #232340;
    --accent:        #2BC4F3;
    --accent-glow:   rgba(43, 196, 243, 0.15);
    --accent-light:  #a5a7eb;
    --text-main:     #232340;
    --text-light:    #6b6f8a;
    --bg-light:      #f5f6fc;
    --white:         #ffffff;
    --border:        #e2e4f0;
    --radius-lg:     20px;
    --radius-md:     12px;
    --radius-sm:     8px;
    --font-display:  "OpenSans-Black", sans-serif;
    --font-body:     "OpenSans-Regular", sans-serif;
    --font-mono:     monospace;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }

/* ── HERO (Standard platform hero) ── */
.hero {
    position: relative;
    background: transparent;
    overflow: hidden;
    padding: 40px 24px 24px;
    text-align: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 0 14px 0;
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 17px;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

/* ── PAGE CONTAINER ── */
.contact-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 20px 80px;
}

/* ── FORMULAIRE CARD ── */
.contact-form-section {
    margin-bottom: 50px;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    padding: 36px 40px;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #eef2ff;
    color: #454796;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.contact-card-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.contact-card-header p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* ── FORM STYLING ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.form-group label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-size: 0.95rem;
    color: #1e293b;
    background: #ffffff;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #454796;
    box-shadow: 0 0 0 3px rgba(69, 71, 150, 0.15);
}

/* intl-tel-input integration */
.contact-form .iti {
    width: 100% !important;
    display: block !important;
}

.contact-form .iti input.intl-phone {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

/* Select wrapper custom arrow */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 0.9rem;
}

/* Form Footer & Button */
.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.btn-contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #454796;
    color: #ffffff;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(69, 71, 150, 0.25);
}

.btn-contact-submit:hover {
    background: #373878;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(69, 71, 150, 0.35);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

/* ── SECTION COORDONNÉES (Éditable) ── */
.contact-info-section {
    margin-top: 40px;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.section-title-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.section-title-line {
    width: 48px;
    height: 4px;
    background: #454796;
    border-radius: 2px;
    margin: 0 auto;
}

/* ── CARDS GRID (Association & Fondation) ── */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-entity-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.contact-entity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.contact-entity-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-entity-badge {
    display: inline-block;
    background: #eef2ff;
    color: #454796;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.contact-entity-badge--fondation {
    background: #ecfdf5;
    color: #059669;
}

.contact-entity-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.contact-entity-body {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.6;
    flex: 1;
}

.contact-entity-body p {
    margin: 0 0 14px 0;
}

.contact-entity-body p:last-child {
    margin-bottom: 0;
}

.contact-entity-body a {
    color: #454796;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s, text-decoration 0.15s;
}

.contact-entity-body a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ── RESPONSIVE MOBILE ── */
@media (max-width: 768px) {
    .hero {
        padding: 30px 16px 16px;
    }

    .hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .contact-card {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .btn-contact-submit {
        width: 100%;
        justify-content: center;
    }
}
