/* Section Contact - À ajouter dans votre CSS */

.contact-section {
    background: #000;
    padding: 60px 20px;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.contact-form-section,
.contact-visual-section {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.contact-title {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
}

.contact-form-group.contact-full-width {
    grid-column: 1 / -1;
}

.contact-label {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 6px;
    font-weight: 400;
}

.contact-label .contact-required {
    color: #fff;
}

.contact-input,
.contact-textarea,
.contact-select {
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(60, 60, 60, 0.6);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-phone-input {
    display: flex;
    gap: 10px;
}

.contact-phone-input .contact-select {
    width: 120px;
}

.contact-phone-input .contact-input {
    flex: 1;
}

.contact-requirements {
    margin: 20px 0;
}

.contact-requirements .contact-label {
    margin-bottom: 12px;
    display: block;
}

.contact-requirement-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-requirement-btn {
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-requirement-btn:hover {
    background: rgba(70, 70, 70, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.contact-requirement-btn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.contact-textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    background: rgba(240, 240, 240, 0.95);
    color: #000;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.contact-submit-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-visual-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(20, 20, 20, 0.5), transparent 70%);
    min-height: 500px;
}

.contact-shapes {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.contact-shape {
    position: absolute;
    border-radius: 50%;
    animation: contactFloat 8s ease-in-out infinite;
    filter: blur(0.3px);
    will-change: transform;
}

.contact-shape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg,
            rgba(60, 60, 60, 0.95) 0%,
            rgba(20, 20, 20, 0.98) 50%,
            rgba(5, 5, 5, 1) 100%);
    border-radius: inherit;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.9),
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset -15px -15px 40px rgba(0, 0, 0, 0.9),
        inset 15px 15px 40px rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-shape::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 20%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse at 30% 30%,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.15) 30%,
            transparent 60%);
    border-radius: 50%;
    filter: blur(20px);
    transform: rotate(-15deg);
}

.contact-shape1 {
    width: 260px;
    height: 160px;
    border-radius: 45% 55% 60% 40% / 50% 50% 50% 50%;
    top: 15%;
    right: 5%;
    animation-delay: 0s;
    transform: rotateX(15deg) rotateY(-10deg);
}

.contact-shape1::before {
    background: linear-gradient(155deg,
            rgba(70, 70, 70, 0.98) 0%,
            rgba(25, 25, 25, 1) 45%,
            rgba(8, 8, 8, 1) 100%);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.95),
        0 25px 60px rgba(0, 0, 0, 0.85),
        inset -20px -20px 50px rgba(0, 0, 0, 0.95),
        inset 20px 20px 50px rgba(255, 255, 255, 0.1),
        inset 0 0 80px rgba(255, 255, 255, 0.04);
}

.contact-shape1::after {
    width: 55%;
    height: 55%;
    top: 5%;
    left: 15%;
    background: radial-gradient(ellipse at 25% 25%,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 55%);
}

.contact-shape2 {
    width: 140px;
    height: 140px;
    top: 45%;
    right: 25%;
    animation-delay: 1.5s;
    transform: rotateX(-10deg) rotateY(15deg);
}

.contact-shape2::before {
    background: linear-gradient(140deg,
            rgba(65, 65, 65, 0.97) 0%,
            rgba(22, 22, 22, 1) 48%,
            rgba(6, 6, 6, 1) 100%);
    box-shadow:
        0 45px 110px rgba(0, 0, 0, 0.92),
        0 22px 55px rgba(0, 0, 0, 0.82),
        inset -18px -18px 45px rgba(0, 0, 0, 0.92),
        inset 18px 18px 45px rgba(255, 255, 255, 0.09);
}

.contact-shape3 {
    width: 110px;
    height: 110px;
    bottom: 18%;
    left: 32%;
    animation-delay: 3s;
    transform: rotateX(20deg) rotateY(-20deg);
}

.contact-shape3::before {
    background: linear-gradient(135deg,
            rgba(68, 68, 68, 0.96) 0%,
            rgba(24, 24, 24, 1) 47%,
            rgba(7, 7, 7, 1) 100%);
    box-shadow:
        0 42px 105px rgba(0, 0, 0, 0.93),
        0 20px 52px rgba(0, 0, 0, 0.83),
        inset -16px -16px 42px rgba(0, 0, 0, 0.93),
        inset 16px 16px 42px rgba(255, 255, 255, 0.085);
}

@keyframes contactFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(0deg);
    }

    25% {
        transform: translateY(-25px) translateX(15px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(5deg);
    }

    50% {
        transform: translateY(-40px) translateX(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(-3deg);
    }

    75% {
        transform: translateY(-20px) translateX(-20px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(4deg);
    }
}

.contact-shape1 {
    --rx: 15deg;
    --ry: -10deg;
}

.contact-shape2 {
    --rx: -10deg;
    --ry: 15deg;
}

.contact-shape3 {
    --rx: 20deg;
    --ry: -20deg;
}

.contact-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
}

.contact-message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.contact-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-visual-section {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 15px;
    }

    .contact-container {
        gap: 20px;
    }

    .contact-form-section {
        padding: 25px 18px;
    }

    .contact-visual-section {
        min-height: 250px;
        padding: 30px 18px;
    }

    .contact-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .contact-label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .contact-input,
    .contact-textarea,
    .contact-select {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .contact-phone-input .contact-select {
        width: 100px;
    }

    .contact-requirements {
        margin: 16px 0;
    }

    .contact-requirement-buttons {
        gap: 8px;
    }

    .contact-requirement-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .contact-textarea {
        min-height: 80px;
    }

    .contact-submit-btn {
        padding: 12px;
        font-size: 0.95rem;
        margin-top: 12px;
    }

    .contact-message {
        padding: 12px;
        font-size: 0.85rem;
        margin-top: 12px;
    }

    /* Réduire taille des formes 3D sur mobile */
    .contact-shape1 {
        width: 180px;
        height: 110px;
    }

    .contact-shape2 {
        width: 100px;
        height: 100px;
    }

    .contact-shape3 {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 640px) {
    .contact-section {
        padding: 20px 10px;
    }

    .contact-form-section {
        padding: 20px 15px;
    }

    .contact-visual-section {
        min-height: 200px;
        padding: 20px 15px;
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .contact-input,
    .contact-textarea,
    .contact-select {
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    .contact-requirement-btn {
        padding: 7px 16px;
        font-size: 0.75rem;
    }

    .contact-textarea {
        min-height: 70px;
    }

    .contact-submit-btn {
        padding: 11px;
        font-size: 0.9rem;
    }
}