/* ========================================
    ANIMATION D'IMPACT AU CHARGEMENT (ONDES SONORES)
    ======================================== */

    .sound-wave-impact {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 1s ease-out;
    }

    .wave-arc {
        position: absolute;
        border: 2px solid;
        opacity: 0;
        border-radius: 50%;
    }

    .arc-1 {
        width: 200px;
        height: 200px;
        border-color: transparent transparent transparent #00a2ff;
        transform: rotate(-45deg);
        animation: arcWave 2s ease-out forwards;
        animation-delay: 0s;
        box-shadow: -20px 20px 30px rgba(0, 162, 255, 0.3);
    }

    .arc-2 {
        width: 200px;
        height: 200px;
        border-color: transparent #f940e9 transparent transparent;
        transform: rotate(45deg);
        animation: arcWave 2s ease-out forwards;
        animation-delay: 0.1s;
        box-shadow: 20px 20px 30px rgba(249, 64, 233, 0.3);
    }

    .arc-3 {
        width: 300px;
        height: 300px;
        border-color: transparent transparent #00a2ff transparent;
        transform: rotate(-135deg);
        animation: arcWave 2s ease-out forwards;
        animation-delay: 0.2s;
        box-shadow: -20px -20px 30px rgba(0, 162, 255, 0.3);
    }

    .arc-4 {
        width: 300px;
        height: 300px;
        border-color: #f940e9 transparent transparent transparent;
        transform: rotate(135deg);
        animation: arcWave 2s ease-out forwards;
        animation-delay: 0.3s;
        box-shadow: 20px -20px 30px rgba(249, 64, 233, 0.3);
    }

    .arc-5 {
        width: 400px;
        height: 400px;
        border-color: transparent transparent transparent #00a2ff;
        transform: rotate(-60deg);
        animation: arcWave 2.2s ease-out forwards;
        animation-delay: 0.4s;
        box-shadow: -30px 30px 40px rgba(0, 162, 255, 0.2);
    }

    .arc-6 {
        width: 400px;
        height: 400px;
        border-color: transparent #f940e9 transparent transparent;
        transform: rotate(60deg);
        animation: arcWave 2.2s ease-out forwards;
        animation-delay: 0.5s;
        box-shadow: 30px 30px 40px rgba(249, 64, 233, 0.2);
    }

    .arc-7 {
        width: 500px;
        height: 500px;
        border-color: transparent transparent #00a2ff transparent;
        transform: rotate(-120deg);
        animation: arcWave 2.4s ease-out forwards;
        animation-delay: 0.6s;
        box-shadow: -30px -30px 40px rgba(0, 162, 255, 0.2);
    }

    .arc-8 {
        width: 500px;
        height: 500px;
        border-color: #f940e9 transparent transparent transparent;
        transform: rotate(120deg);
        animation: arcWave 2.4s ease-out forwards;
        animation-delay: 0.7s;
        box-shadow: 30px -30px 40px rgba(249, 64, 233, 0.2);
    }

    @keyframes arcWave {
        0% {
            transform: scale(0) rotate(var(--rotation, 0deg));
            opacity: 0;
            border-width: 3px;
        }
        20% {
            opacity: 1;
            border-width: 2px;
        }
        60% {
            opacity: 0.6;
            border-width: 1px;
        }
        100% {
            transform: scale(2.5) rotate(var(--rotation, 0deg));
            opacity: 0;
            border-width: 1px;
        }
    }

    /* ========================================
    PAGE CONTACT
    ======================================== */

    body {
        background-image: url(../img/fond_contact_test.png);
        background-size: 145% auto;
        background-repeat: no-repeat;
        background-position: top center;
        background-color: #6b4c9a;
        margin: 0;
        padding: 10px;
        min-height: 100vh;
    }

    .header,
    .main-title,
    .contact-card,
    .footer-info {
        position: relative;
        z-index: 2;
    }

    .main-title {
        padding-left: 460px;
        font-size: 2.2rem;
        color: #000000;
        margin: 2rem 0;
        font-weight: 700;
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 2px;
    }

    .contact-card {
        max-width: 1200px;
        margin: 2rem auto;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .contact-header {
        text-align: center;
        margin-bottom: 2rem;
        color: #00a2ff;
        font-size: 20px;
    }

    .contact-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: #f940e9;
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 2px;
    }

    .contact-subtitle {
        font-size: 1.2rem;
        line-height: 1.6;
        font-weight: 400;
        color: #00a2ff;
    }

    .contact-subtitle strong {
        font-weight: 600;
    }

    .contact-content {
        display: flex;
        gap: 3rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .form-section {
        flex: 2;
        min-width: 400px;
    }

    .info-section {
        flex: 1;
        min-width: 300px;
    }

    .form-row {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .form-group {
        flex: 1;
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
        color: #333;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 1rem;
        border: 2px solid #ddd;
        border-radius: 10px;
        font-size: 1rem;
        background: white;
        font-family: 'Work Sans', sans-serif;
        transition: all 0.3s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #00a2ff;
        box-shadow: 0 0 0 3px rgba(0, 162, 255, 0.1);
    }

    .form-group input.error,
    .form-group select.error,
    .form-group textarea.error {
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

    .checkbox-group {
        margin: 2rem 0;
        display: flex;
        justify-content: center;
    }

    .checkbox-label {
        display: flex;
        align-items: center;
        cursor: pointer;
        color: #666;
        font-size: 0.9rem;
    }

    .checkbox-label input[type="checkbox"] {
        width: auto;
        margin-right: 0.5rem;
    }

    .submit-btn {
        display: block;
        margin: 0 auto;
        width: 50%;
        padding: 1.2rem 2rem;
        background: linear-gradient(45deg, #00a2ff, #0078d4);
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        font-family: 'Work Sans', sans-serif;
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 162, 255, 0.4);
    }

    .submit-btn.loading {
        pointer-events: none;
        opacity: 0.8;
    }

    .btn-loader {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid transparent;
        border-top: 2px solid white;
        border-radius: 50%;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        animation: spin 1s linear infinite;
    }

    .submit-btn.loading .btn-loader {
        display: block;
    }

    @keyframes spin {
        0% { transform: translateY(-50%) rotate(0deg); }
        100% { transform: translateY(-50%) rotate(360deg); }
    }

    .contact-info {
        background: rgba(255, 255, 255, 0.8);
        padding: 2rem;
        border-radius: 15px;
        margin-bottom: 2rem;
    }

    .contact-info h3,
    .engagement h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 1px;
        text-align: center;
    }

    .contact-info h3 {
        color: #00a2ff;
    }

    .info-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .info-icon {
        font-size: 1.5rem;
        width: 40px;
        text-align: center;
    }

    .info-item strong {
        color: #333;
        display: block;
        margin-bottom: 0.3rem;
    }

    .info-item p {
        color: #666;
        margin: 0;
        line-height: 1.4;
    }

    .engagement {
        background: #e8f5e8;
        padding: 2rem;
        border-radius: 15px;
    }

    .engagement h3 {
        color: #27ae60;
    }

    .engagement ul {
        list-style: none;
        padding: 0;
    }

    .engagement li {
        color: #333;
        margin-bottom: 0.8rem;
        font-size: 0.95rem;
    }

    .confirmation-message {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .confirmation-content {
        background: white;
        padding: 3rem;
        border-radius: 20px;
        text-align: center;
        max-width: 500px;
        margin: 1rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .confirmation-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .confirmation-content h3 {
        color: #27ae60;
        font-size: 1.8rem;
        margin-bottom: 1rem;
        font-family: 'Bebas Neue', sans-serif;
        letter-spacing: 1px;
    }

    .confirmation-content p {
        color: #666;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .close-btn {
        background: #27ae60;
        color: white;
        border: none;
        padding: 0.8rem 2rem;
        border-radius: 25px;
        cursor: pointer;
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .close-btn:hover {
        background: #219a52;
        transform: translateY(-2px);
    }

    .footer-info {
    text-align: center;
    padding: 0rem;  /* ✅ réduit (était 1rem) */
    color: white;
}

    /* ========================================
    MENTIONS LÉGALES — Au niveau global (hors media query)
    ======================================== */

    .legal-btn-wrapper {
    position: static;
    display: flex;
    justify-content: center;
    padding: 0.4rem 0;  /* ✅ réduit */
    z-index: 998;
}

    .legal-btn {
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 0.4rem 1.2rem;
        border-radius: 20px;
        font-size: 0.7rem;
        font-family: 'Work Sans', sans-serif;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
        letter-spacing: 1px;
    }

    .legal-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.7);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .legal-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        box-sizing: border-box;
    }

    .legal-content {
        background: rgba(255, 255, 255, 0.97);
        border-radius: 16px;
        padding: 2rem;
        max-width: 500px;
        width: 100%;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        max-height: 85vh;
        overflow-y: auto;
    }

    .legal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        color: #999;
        transition: color 0.2s ease;
        line-height: 1;
    }

    .legal-close:hover {
        color: #333;
    }

    .legal-title {
        font-family: 'Bebas Neue', sans-serif;
        font-size: 1.8rem;
        color: #333;
        margin: 0 0 1.5rem 0;
        letter-spacing: 2px;
    }

    .legal-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .legal-list li {
        font-family: 'Work Sans', sans-serif;
        font-size: 0.9rem;
        color: #444;
        line-height: 1.5;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .legal-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .legal-list strong {
        color: #222;
    }

    .legal-info {
        color: #f940e9;
        font-weight: 500;
    }

    /* ========================================
    RESPONSIVE
    ======================================== */

    @media (max-width: 768px) {
        body {
            background-size: 180% 110%;
            background-position: 70% top;
            background-attachment: fixed;
            background-repeat: no-repeat;
            padding: 5px;
            min-height: 100vh;
        }

        .contact-subtitle .line1::after {
            content: "\A";
            white-space: pre;
        }

        .wave-arc {
            border-width: 1.5px;
        }

        .arc-1, .arc-2 {
            width: 150px;
            height: 150px;
        }

        .arc-3, .arc-4 {
            width: 250px;
            height: 250px;
        }

        .arc-5, .arc-6 {
            width: 350px;
            height: 350px;
        }

        .arc-7, .arc-8 {
            width: 450px;
            height: 450px;
        }

        .main-title {
            font-size: 1.5rem;
            margin: 0.5rem;
            padding-left: 0;
            text-align: center;
            padding-top: 1rem;
            color: rgb(249, 64, 233);
        }

        .contact-card {
            margin: 0.5rem;
            padding: 1.2rem;
            background: rgba(255, 255, 255, 0.7);
        }

        .contact-header h2 {
            font-size: 2rem;
            color: #000000;
        }

        .contact-subtitle {
            font-size: 1rem;
        }

        .contact-content {
            flex-direction: column;
            gap: 1.5rem;
        }

        .form-row {
            flex-direction: column;
            gap: 0;
        }

        .form-section,
        .info-section {
            min-width: auto;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.95);
            padding: 1.5rem;
        }

        .info-section {
            position: relative;
            z-index: 3;
        }

        .submit-btn {
            width: 100%;
        }

        .checkbox-label {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
        }

        .checkbox-label input[type="checkbox"] {
            margin-right: 0;
            margin-bottom: 0.3rem;
        }

        .legal-content {
            padding: 1.5rem;
            max-height: 80vh;
        }

        .legal-title {
            font-size: 1.5rem;
        }

        .legal-list li {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 480px) {
        body {
            background-size: 200% 110%;
            background-position: 70% top;
            background-attachment: fixed;
            background-repeat: no-repeat;
            min-height: 100vh;
        }

        .wave-arc {
            border-width: 1px;
        }

        .arc-1, .arc-2 {
            width: 120px;
            height: 120px;
        }

        .arc-3, .arc-4 {
            width: 200px;
            height: 200px;
        }

        .arc-5, .arc-6 {
            width: 280px;
            height: 280px;
        }

        .arc-7, .arc-8 {
            width: 360px;
            height: 360px;
        }

        .main-title {
            font-size: 1.3rem;
            padding-top: 0.5rem;
            color: rgb(249, 64, 233);
        }

        .contact-card {
            padding: 1rem;
            margin: 0.3rem;
            background: rgba(255, 255, 255, 0.8);
        }

        .contact-header h2 {
            font-size: 1.7rem;
            color: #000000;
        }

        .contact-subtitle {
            font-size: 0.95rem;
        }

        .contact-info {
            background: rgba(255, 255, 255, 0.98);
            padding: 1.2rem;
        }

        .submit-btn {
            width: 100%;
            font-size: 1rem;
            padding: 1rem 1.5rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 0.8rem;
            font-size: 0.95rem;
        }

        .checkbox-label {
            flex-direction: column;
            text-align: center;
            gap: 0.5rem;
            font-size: 0.85rem;
        }
    }