:root {
    --bg:         #0b1628;
    --blue:       rgba(60, 130, 255, 0.1);
    --accent:     rgba(100, 165, 255, 0.7);
    --text:       #e8f0ff;
    --text-dim:   rgba(220, 232, 255, 0.85); /* contraste renforcé (était 0.45) */
    --text-muted: rgba(180, 205, 240, 0.6);  /* contraste renforcé (était 0.3) */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 72px;
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Fond animé ---------- */

#bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(60, 130, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 130, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(30, 100, 255, 0.08) 0%, transparent 65%);
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ---------- Mise en page ---------- */

.page {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 60px 52px;
    gap: 80px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.page.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Colonne texte ---------- */

.contact-intro {
    flex: 1;
}

.intro-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(120, 175, 255, 0.75); /* contraste renforcé (était 0.5) */
    text-transform: uppercase;
    margin-bottom: 24px;
}

.intro-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -1.5px;
    color: var(--text);
    line-height: 1;
    margin: 0 0 24px;
}

.intro-title em {
    font-style: italic;
    color: rgba(130, 180, 255, 0.85); /* contraste renforcé (était 0.55) */
}

.intro-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(100, 165, 255, 0.3), transparent);
    margin: 28px 0;
}

.intro-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.9;
    max-width: 380px;
}

/* ---------- Formulaire ---------- */

.contact-form-wrapper {
    flex: 1;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blue);
    padding: 40px;
}

.form-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--blue);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 300;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

input:focus,
textarea:focus {
    border-color: rgba(60, 130, 255, 0.4);
    background: rgba(60, 130, 255, 0.03);
}

input::placeholder,
textarea::placeholder {
    color: rgba(150, 180, 230, 0.4); /* contraste renforcé (était 0.2) */
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---------- Case anti-spam ---------- */

.antispam-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: rgba(60, 140, 255, 0.7);
    cursor: pointer;
}

/* ---------- Bouton ---------- */

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: rgba(60, 140, 255, 0.06);
    border: 1px solid rgba(60, 140, 255, 0.3);
    color: rgba(180, 215, 255, 0.65);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s;
}

.submit-btn:hover {
    background: rgba(60, 140, 255, 0.14);
    border-color: rgba(60, 140, 255, 0.6);
}

/* ---------- Alertes ---------- */

.alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 1px;
    border: 1px solid;
}

.alert-success {
    color: rgba(80, 200, 130, 0.85);
    border-color: rgba(80, 200, 130, 0.25);
    background: rgba(80, 200, 130, 0.05);
}

.alert-error {
    color: rgba(255, 100, 100, 0.85);
    border-color: rgba(255, 100, 100, 0.25);
    background: rgba(255, 100, 100, 0.05);
}

.alert-limited {
    color: rgba(255, 180, 50, 0.85);
    border-color: rgba(255, 180, 50, 0.25);
    background: rgba(255, 180, 50, 0.05);
}

.alert ul {
    margin: 6px 0 0 16px;
    padding: 0;
}

.alert li {
    margin-bottom: 4px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .page {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-form-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 40px 24px;
    }
}