/* ═══════════════════════════════════════════════════════════════
   UNIVGA — Page Contact  [univga_contact]
   Préfixe : uct-
   ═══════════════════════════════════════════════════════════════ */

:root {
    --uct-navy:      #0b1e4d;
    --uct-navy-2:    #163a8a;
    --uct-ink:       #333279;
    --uct-gold:      #f5b042;
    --uct-gold-2:    #e89a1e;
    --uct-text:      #0f172a;
    --uct-muted:     #5b6578;
    --uct-line:      #e5e9f2;
    --uct-soft:      #f4f6fb;
    --uct-white:     #ffffff;
    --uct-ok:        #059669;
    --uct-err:       #dc2626;
    --uct-radius:    18px;
    --uct-shadow:    0 18px 50px -24px rgba(11, 30, 77, .35), 0 8px 20px -10px rgba(11, 30, 77, .12);
    --uct-font:      -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#univga-contact-portal {
    font-family: var(--uct-font);
    color: var(--uct-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
    background:
        radial-gradient(ellipse 70% 40% at 10% 20%, rgba(245, 176, 66, .08), transparent 55%),
        radial-gradient(ellipse 60% 45% at 90% 80%, rgba(22, 58, 138, .07), transparent 55%),
        linear-gradient(180deg, #eef1f8 0%, #f7f8fc 40%, #fff 100%);
}

#univga-contact-portal *,
#univga-contact-portal *::before,
#univga-contact-portal *::after { box-sizing: border-box; }

/* Hero tweaks for contact page — typo héritée de about.css */
#univga-contact-portal .uab-hero {
    padding: 110px 24px 130px;
}
#univga-contact-portal .uab-hero__sub {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Main layout */
.uct-main {
    position: relative;
    z-index: 3;
    max-width: 1120px;
    margin: -72px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
    animation: uct-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes uct-rise {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Side panel */
.uct-aside {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.uct-aside__intro {
    background: linear-gradient(160deg, var(--uct-ink) 0%, var(--uct-navy) 100%);
    color: #fff;
    border-radius: var(--uct-radius);
    padding: 28px 24px;
    box-shadow: var(--uct-shadow);
    position: relative;
    overflow: hidden;
}
.uct-aside__intro::after {
    content: "";
    position: absolute;
    width: 160px; height: 160px;
    right: -40px; bottom: -50px;
    background: radial-gradient(circle, rgba(245,176,66,.35), transparent 70%);
    pointer-events: none;
}
.uct-aside__eyebrow {
    margin: 0 0 8px;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}
.uct-aside__intro h2 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.01em;
    color: var(--uct-gold);
}
.uct-aside__intro p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

.uct-info {
    background: var(--uct-white);
    border: 1px solid var(--uct-line);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.uct-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -16px rgba(11, 30, 77, .25);
    border-color: rgba(245, 176, 66, .45);
}
.uct-info__icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245,176,66,.18), rgba(22,58,138,.1));
    color: var(--uct-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.uct-info__label {
    margin: 0 0 2px;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--uct-muted);
}
.uct-info__value {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--uct-text);
    line-height: 1.45;
}
.uct-info__value a {
    color: var(--uct-navy-2);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.uct-info__value a:hover { border-bottom-color: var(--uct-gold); }

/* Form panel */
.uct-form-panel {
    background: var(--uct-white);
    border: 1px solid var(--uct-line);
    border-radius: calc(var(--uct-radius) + 4px);
    box-shadow: var(--uct-shadow);
    padding: 36px 40px 40px;
    position: relative;
    overflow: hidden;
}
.uct-form-panel::before {
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--uct-gold), var(--uct-navy-2) 55%, var(--uct-ink));
}
.uct-form-head {
    margin-bottom: 28px;
}
.uct-form-head h2 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--uct-navy);
}
.uct-form-head p {
    margin: 0;
    color: var(--uct-muted);
    font-size: .95rem;
    line-height: 1.55;
}

.uct-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}
.uct-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}
.uct-grid-2 .uct-field { margin-bottom: 0; }
.uct-grid-2 + .uct-field,
.uct-grid-2 + .uct-grid-2 { margin-top: 16px; }

.uct-field label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #3b4559;
}
.uct-field label .req { color: var(--uct-gold-2); margin-left: 2px; }

.uct-field input[type="text"],
.uct-field input[type="email"],
.uct-field input[type="tel"],
.uct-field select,
.uct-field textarea {
    width: 100%;
    border: 1.5px solid var(--uct-line);
    background: var(--uct-soft);
    border-radius: 12px;
    padding: 13px 15px;
    font: 500 .95rem/1.4 var(--uct-font);
    color: var(--uct-text);
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.uct-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6578' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}
.uct-field textarea {
    min-height: 220px;
    resize: vertical;
}
.uct-field input:focus,
.uct-field select:focus,
.uct-field textarea:focus {
    border-color: var(--uct-navy-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 58, 138, .12);
}
.uct-field.is-invalid input,
.uct-field.is-invalid select,
.uct-field.is-invalid textarea {
    border-color: var(--uct-err);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .1);
}

/* Single file field */
.uct-file input[type="file"] {
    width: 100%;
    border: 1.5px solid var(--uct-line);
    background: var(--uct-soft);
    border-radius: 12px;
    padding: 11px 14px;
    font: 500 .9rem/1.4 var(--uct-font);
    color: var(--uct-text);
    cursor: pointer;
}
.uct-file input[type="file"]:focus {
    outline: none;
    border-color: var(--uct-navy-2);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 58, 138, .12);
}
.uct-file input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: var(--uct-navy);
    color: #fff;
    font: 600 .82rem/1 var(--uct-font);
    cursor: pointer;
}
.uct-file__hint {
    margin: 6px 0 0;
    font-size: .78rem;
    color: var(--uct-muted);
}

/* Submit */
.uct-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.uct-privacy {
    margin: 0;
    font-size: .8rem;
    color: var(--uct-muted);
    line-height: 1.45;
    max-width: 320px;
}
.uct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 15px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--uct-ink) 0%, var(--uct-navy-2) 100%);
    color: #fff;
    font: 700 .95rem/1 var(--uct-font);
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 10px 28px -10px rgba(51, 50, 121, .55);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.uct-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(51, 50, 121, .65);
    filter: brightness(1.05);
}
.uct-submit:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}
.uct-submit .uct-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: uct-spin .7s linear infinite;
    display: none;
}
.uct-submit.is-loading .uct-spinner { display: block; }
.uct-submit.is-loading .uct-submit__label { opacity: .85; }
@keyframes uct-spin { to { transform: rotate(360deg); } }

.uct-hp { position: absolute !important; left: -9999px !important; opacity: 0 !important; height: 0 !important; width: 0 !important; overflow: hidden !important; }

/* Feedback / success */
.uct-alert {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.45;
}
.uct-alert.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.uct-alert.is-ok {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

#uct-success {
    display: none;
    max-width: 640px;
    margin: -40px auto 90px;
    padding: 0 20px;
    animation: uct-rise .6s ease both;
}
.uct-success-card {
    background: #fff;
    border: 1px solid var(--uct-line);
    border-radius: 22px;
    box-shadow: var(--uct-shadow);
    padding: 48px 40px;
    text-align: center;
}
.uct-success-icon {
    width: 84px; height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 12px 30px -10px rgba(5, 150, 105, .55);
    animation: uct-pop .55s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes uct-pop {
    from { transform: scale(.6); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.uct-success-card h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--uct-navy);
}
.uct-success-card p {
    margin: 0 0 24px;
    color: var(--uct-muted);
    line-height: 1.65;
}
.uct-success-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--uct-soft);
    font-size: .85rem;
    font-weight: 600;
    color: var(--uct-navy);
    margin-bottom: 28px;
}
.uct-success-card a.uct-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--uct-navy-2);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--uct-gold);
    padding-bottom: 2px;
}

@media (max-width: 900px) {
    .uct-main {
        grid-template-columns: 1fr;
        margin-top: -48px;
    }
    .uct-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .uct-aside__intro { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    #univga-contact-portal .uab-hero { padding: 88px 18px 100px; }
    .uct-form-panel { padding: 26px 18px 28px; }
    .uct-grid-2,
    .uct-aside { grid-template-columns: 1fr; }
    .uct-actions { flex-direction: column; align-items: stretch; }
    .uct-submit { width: 100%; }
    .uct-privacy { max-width: none; }
    .uct-success-card { padding: 36px 22px; }
}
