﻿/* Univers Contact : tous les styles sont limites a cette page. */
.contact-universe {
    --cyan: #00ffff;
    --ink: #101417;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 18% 43%, #003b3c50, transparent 49%);
}

.contact-universe .contact-shell {
    padding-top: 65px;
    padding-bottom: 35px;
    max-width: 1180px;
}

.contact-universe .contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a0c4c5;
    margin-bottom: 22px;
}

.contact-eyebrow > span {
    width: 7px;
    height: 7px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 15px #00ffff80;
}

.contact-universe h1 {
    font-size: clamp(36px, 4.5vw, 65px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    font-weight: 700;
    max-width: 940px;
}

.contact-universe h1 > span {
    color: var(--cyan);
}

.contact-description {
    color: #a9b6ba;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 23px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    margin-top: 44px;
    align-items: center;
}

.contact-visual-column {
    min-width: 0;
}

.signal-scene {
    position: relative;
    height: 400px;
    perspective: 1000px;
    pointer-events: none;
}

.signal-stars {
    position: absolute;
    inset: 10%;
    opacity: 0.45;
    background-image: radial-gradient(circle, #65ffff 1px, transparent 1px);
    background-size: 47px 47px;
    mask-image: radial-gradient(ellipse, #000, transparent 70%);
}

.signal-world {
    --rx: 0deg;
    --ry: 0deg;
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.45s ease-out;
}

.signal-platform {
    position: absolute;
    width: 290px;
    height: 290px;
    left: 50%;
    top: 45%;
    margin-left: -145px;
    border-radius: 50%;
    border: 1px solid #00ffff60;
    background:
        repeating-radial-gradient(circle, transparent 0 30px, #00ffff13 31px 32px),
        radial-gradient(circle, #00ffff18, transparent 70%);
    transform: rotateX(75deg);
    box-shadow:
        0 0 50px #00ffff14,
        0 18px 0 -17px #00ffff60;
}

.signal-orbit {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid #00ffff38;
    border-radius: 50%;
    left: 50%;
    top: 20px;
    margin-left: -165px;
    transform: rotateY(-30deg) rotateX(62deg);
}

.orbit-two {
    width: 290px;
    height: 290px;
    margin-left: -145px;
    top: 40px;
    transform: rotateY(55deg) rotateX(40deg);
    border-style: dashed;
    opacity: 0.5;
}

.signal-envelope {
    position: absolute;
    left: 50%;
    top: 90px;
    width: 235px;
    height: 155px;
    margin-left: -117px;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(8deg) rotateZ(-8deg);
    filter: drop-shadow(0 25px 28px #0009);
}

.envelope-back {
    position: absolute;
    inset: 0;
    background: #075359;
    border: 1px solid #65ffff80;
    border-radius: 12px;
    transform: translateZ(-9px);
    box-shadow: 6px 7px 0 #032e34;
}

.envelope-paper {
    position: absolute;
    left: 18px;
    right: 18px;
    top: -48px;
    height: 170px;
    background: linear-gradient(135deg, #e2ffff, #85d6dd);
    border-radius: 8px;
    transform: translateZ(1px);
    padding: 20px;
    color: #063c47;
    box-shadow: 0 -5px 30px #00ffff18;
}

.paper-dot {
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #0b7b86;
    border-radius: 50%;
    margin-bottom: 15px;
}

.envelope-paper i {
    display: block;
    height: 4px;
    width: 85%;
    background: #2b929a55;
    margin-bottom: 8px;
    border-radius: 2px;
}

.envelope-paper i:nth-of-type(2) {
    width: 65%;
}

.envelope-paper b {
    display: block;
    font-size: 11px;
    margin-top: 15px;
}

.envelope-front {
    position: absolute;
    inset: 0;
    border-radius: 11px;
    background: linear-gradient(140deg, #12a9b7, #024955);
    clip-path: polygon(0 0, 50% 59%, 100% 0, 100% 100%, 0 100%);
    transform: translateZ(12px);
}

.envelope-flap {
    position: absolute;
    inset: 0;
    background: linear-gradient(30deg, #087987, #1cb4bc);
    clip-path: polygon(0 100%, 50% 40%, 100% 100%);
    border-radius: 11px;
    transform: translateZ(14px);
}

.envelope-badge {
    position: absolute;
    right: -22px;
    bottom: 12px;
    width: 58px;
    height: 58px;
    background: var(--cyan);
    color: #003b40;
    display: grid;
    place-items: center;
    font-size: 34px;
    border-radius: 16px;
    transform: translateZ(50px) rotateZ(8deg);
    box-shadow:
        0 8px 0 #00818a,
        0 0 25px #00ffff35;
}

.signal-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #102123ed;
    border: 1px solid #4c8a8c70;
    border-radius: 9px;
    font-size: 12px;
    box-shadow: 0 12px 24px #0004;
    transform: translateZ(45px);
}

.signal-tag span {
    color: var(--cyan);
    font-size: 10px;
}

.tag-top {
    left: 5%;
    top: 36px;
    transform: translateZ(45px) rotateZ(-5deg);
}

.tag-bottom {
    right: 0;
    bottom: 76px;
    transform: translateZ(65px) rotateZ(4deg);
}

.signal-coordinate {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    letter-spacing: 3px;
    color: #60999c;
    white-space: nowrap;
}

.contact-direct {
    padding: 20px 0 0;
    border-top: 1px solid #ffffff16;
}

.contact-mini-label {
    color: #88a6ab;
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: bold;
}

.contact-direct > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: clamp(15px, 1.6vw, 21px);
    margin: 9px 0;
    color: #e5ffff;
    overflow-wrap: anywhere;
}

.contact-direct > a > span {
    color: var(--cyan);
}

.contact-direct p {
    font-size: 11px;
    color: #87999e;
}

.contact-card {
    position: relative;
    padding: 30px;
    border: 1px solid #76d9df45;
    border-radius: 22px;
    background: linear-gradient(135deg, #1a292cef, #11171cef);
    box-shadow:
        0 25px 65px #0005,
        9px 9px 0 -1px #102126,
        9px 9px 0 0 #3b666d55;
    min-width: 0;
}

.contact-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.contact-card-mark {
    color: var(--cyan);
    font-size: 25px;
}

.contact-universe h2 {
    font-size: 29px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.contact-card-description {
    font-size: 13px;
    line-height: 1.7;
    color: #a9b8bd;
    margin: 12px 0 23px;
}

.contact-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-field {
    min-width: 0;
    margin-bottom: 18px;
}

.dimension-form label {
    display: block;
    font-size: 12px;
    color: #e5edef;
    font-weight: 600;
    margin-bottom: 8px;
}

.dimension-form label span {
    color: #69dddd;
}

.contact-universe .dimension-form input,
.contact-universe .dimension-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    color: #efffff;
    background: #090f14a8;
    border: 1px solid #819ca72e;
    border-radius: 9px;
    padding: 13px 12px;
    font: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.dimension-form textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 450px;
    line-height: 1.7;
}

.contact-universe .dimension-form input::placeholder,
.contact-universe .dimension-form textarea::placeholder {
    color: #7f939c;
    opacity: 1;
}

.contact-universe .dimension-form input:focus,
.contact-universe .dimension-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px #00ffff13;
}

.message-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.message-label > span {
    font-size: 10px;
    color: #8fa4ae;
    white-space: nowrap;
}

.contact-privacy {
    font-size: 10px;
    line-height: 1.8;
    color: #94a8af;
    margin-bottom: 20px;
}

.contact-privacy a,
.contact-account-note a {
    color: #b6e5e7;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-send {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    width: 100%;
    border: 1px solid #8affff;
    border-radius: 10px;
    background: var(--cyan);
    color: #033336;
    font: inherit;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 13px 18px;
    box-shadow: 0 4px 0 #008a94;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.send-arrow {
    font-size: 24px;
    line-height: 1;
}

.contact-send:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #008a94;
}

.contact-account-note {
    text-align: center;
    color: #91a6ae;
    font-size: 10px;
    margin-top: 17px;
}

.contact-error {
    background: #401e29;
    color: #ffccd6;
    border: 1px solid #ad546a;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    margin-bottom: 18px;
}

.contact-bottom {
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid #ffffff16;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.contact-bottom > span {
    font-size: 9px;
    letter-spacing: 2px;
    color: #7a949c;
}

.contact-bottom > a {
    font-size: 12px;
    color: #b9d3d8;
}

.contact-bottom a span {
    color: var(--cyan);
    margin-left: 8px;
}

.contact-universe a:focus-visible,
.contact-universe button:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
    .signal-envelope {
        animation: signal-float 7s ease-in-out infinite;
    }

    .contact-send:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 0 #008a94;
    }

    .contact-direct a:hover,
    .contact-bottom a:hover {
        color: var(--cyan);
    }
}

@keyframes signal-float {
    0%,
    100% {
        transform: rotateY(-22deg) rotateX(8deg) rotateZ(-8deg) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) rotateX(12deg) rotateZ(-5deg) translateY(-12px);
    }
}

@media (max-width: 900px) {
    .contact-layout {
        gap: 30px;
        grid-template-columns: 0.9fr 1.1fr;
    }

    .contact-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .signal-scene {
        height: 355px;
    }

    .signal-world {
        scale: 0.88;
    }

    .contact-card {
        padding: 25px;
    }
}

@media (max-width: 700px) {
    .contact-universe .contact-shell {
        padding-top: 42px;
    }

    .contact-universe h1 {
        font-size: clamp(32px, 7vw, 47px);
        letter-spacing: -1.5px;
    }

    .contact-eyebrow {
        letter-spacing: 1px !important;
        font-size: 8px !important;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-description br {
        display: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 20px;
    }

    .signal-scene {
        height: 300px;
        max-width: 440px;
        margin: auto;
    }

    .signal-world {
        scale: 0.8;
        transform-origin: center 40%;
    }

    .contact-direct {
        padding-top: 15px;
    }

    .contact-card {
        box-shadow:
            0 20px 45px #0004,
            4px 5px 0 #163037;
        border-radius: 17px;
    }

    .contact-input-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .contact-bottom {
        margin-top: 35px;
    }

    .contact-universe .dimension-form input,
    .contact-universe .dimension-form textarea {
        font-size: 16px;
    }

    .contact-privacy,
    .contact-account-note {
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .contact-input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-card {
        padding: 22px;
    }

    .contact-bottom > span {
        font-size: 8px;
    }

    .contact-bottom > a {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-universe *,
    .contact-universe *::before,
    .contact-universe *::after {
        animation: none !important;
        transition: none !important;
    }

    .signal-world {
        transform: none !important;
    }
}
