/* =========================================
   PAGE CONTACT - STYLES
========================================= */

.contact-page {
    background-color: var(--white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 2rem 40px 2rem;
}

.contact-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 6rem;
    padding: clamp(2rem, 5vw, 4rem);
    pointer-events: none; /* Permet d'attraper les pastilles dans les espaces vides */
}

.contact-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: auto; /* Réactive le clic sur les textes/boutons */
}

.contact-header h1 {
    font-family: var(--title-font);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 1;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    color: var(--black);
}

.contact-header .highlight {
    color: var(--green, #324809);
    font-style: italic;
}

.contact-desc {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 450px;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 400;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-block h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--black);
}

.contact-link {
    font-family: var(--title-font);
    font-size: 1.2rem;
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--green, #324809);
}

.cv-block {
    margin-top: 1rem;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 40px;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--main-font);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-cv:hover {
    background-color: var(--green, #324809);
    color: var(--white);
}

/* =========================================
   FORMULAIRE - FLOATING LABELS
========================================= */

.contact-right {
    width: 100%;
    pointer-events: auto; /* Réactive le clic sur le formulaire */
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.input-row {
    display: flex;
    gap: 2rem;
}

.input-row .input-group {
    flex: 1;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 2.5rem;
    }
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--black);
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-family: var(--title-font);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.input-group textarea {
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--black);
}

.input-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    font-family: var(--title-font);
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Animation du libellé (nécessite placeholder=" " dans le HTML) */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.75rem;
    font-family: var(--main-font);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--black);
    font-weight: 600;
}

.submit-btn {
    background-color: var(--black);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--main-font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: var(--green, #324809);
    transform: translateY(-2px);
}

/* =========================================
   GRAVITY BACKGROUND (MATTER.JS)
========================================= */

#gravity-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.g-item {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border: 2px solid var(--black);
    border-radius: 50px;
    color: var(--black);
    font-family: var(--title-font);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    gap: 12px;
    pointer-events: auto;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, color 0.3s ease;
    will-change: transform;
}

.g-item:active {
    cursor: grabbing;
}

.g-item.link-item:hover {
    background-color: var(--fluo);
}

.g-item img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.g-item.sticker-item {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.g-item.sticker-item svg,
.g-item.sticker-item img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.g-item.text-item {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
    font-family: var(--main-font);
    font-size: 1rem;
}