/* ==============================
   CLOSING SECTION
================================= */

.contact-mobile-heading {
    display: none;
}

.closing-section {
    position: relative;
}

.closing-grid {
    max-width: 1440px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 0.95fr 1fr 1.05fr;
    gap: 24px;
}

.closing-card {
    min-height: 420px;
    padding: 32px;

    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-card);

    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.closing-card h2 {
    margin-bottom: 28px;

    color: var(--color-primary-dark);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    text-align: center;
}

/* ==============================
   SKILLS
================================= */

.skills-group + .skills-group {
    margin-top: 24px;
}

.skills-group h3 {
    margin-bottom: 14px;
    text-transform: capitalize;
    color: var(--color-primary-dark);
    font-size: 1rem;
    letter-spacing: 0;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    text-align: center;
}

.skill-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.skill-item span {
    color: var(--color-text);
    font-size: 0.76rem;
    font-weight: 700;
}

/* ==============================
   PROFILE
================================= */

.profile-intro {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 28px;
}

.profile-image {
    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        rgba(155, 216, 198, 0.88),
        rgba(59, 167, 166, 0.78)
    );
    border-radius: 50%;

    overflow: hidden;
}

.profile-image img {
    width: 82%;
    height: auto;
    display: block;
}

.profile-text p + p {
    margin-top: 14px;
}

.profile-stats {
    margin-top: 44px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;

    text-align: center;
}

.profile-stats div {
    padding: 18px 12px;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
}

.profile-stats strong {
    display: block;
    margin-bottom: 8px;

    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
}

.profile-stats span {
    color: var(--color-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==============================
   CONTACT FORM
================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

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

.form-field label {
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.form-field label span {
    color: var(--color-text-soft);
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;

    color: var(--color-text);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 31, 31, 0.08);
    border-radius: 12px;

    font: inherit;

    outline: none;

    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
    min-height: 132px;
    padding: 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    background: var(--color-white);
    border-color: rgba(59, 167, 166, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 167, 166, 0.12);
}

.contact-submit {
    margin-top: 6px;
    width: 100%;
}

/* ==============================
   TABLETTE
================================= */

@media screen and (max-width: 1180px) {

    .contact-mobile-heading {
        display: flex;
        justify-content: center;

        width: 100%;
        margin: 0 auto 34px;
    }

    .closing-grid {
        grid-template-columns: 1fr;
        max-width: 900px;
    }

    .closing-card {
        min-height: auto;
    }

}

@media screen and (max-width: 768px) {
    .skills-group h3 {
        text-align: center;
        margin: 30px 0;
    }

    .contact-mobile-heading {
        margin-bottom: 28px;
    }
    
    .closing-card {
        padding: 24px;
        border-radius: 24px;
    }

    .profile-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image {
        margin: 0 auto;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

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

/* ==============================
   CONTACT FEEDBACK
================================= */

.contact-feedback {
    margin-bottom: 20px;
    padding: 14px 16px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-feedback.is-success {
    color: #145c46;
    background: rgba(84, 197, 153, 0.16);
    border-color: rgba(32, 145, 103, 0.28);
}

.contact-feedback.is-error {
    color: #8a2929;
    background: rgba(218, 78, 78, 0.12);
    border-color: rgba(180, 47, 47, 0.24);
}


/* ==============================
   FORM ERRORS
================================= */

.form-field.is-invalid input,
.form-field.is-invalid textarea {
    border-color: rgba(190, 54, 54, 0.72);
    box-shadow: 0 0 0 4px rgba(190, 54, 54, 0.1);
}

.form-field.is-invalid input:focus,
.form-field.is-invalid textarea:focus {
    border-color: rgba(190, 54, 54, 0.9);
    box-shadow: 0 0 0 4px rgba(190, 54, 54, 0.14);
}

.form-error {
    display: block;
    margin: 2px 4px 0;

    color: #9c2f2f;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.4;
}


/* ==============================
   HONEYPOT ANTISPAM
================================= */

.contact-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* ==============================
   ACCESSIBILITÉ
================================= */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;

    border: 0;
}