/* ==========================================================================
   contact-od.css — Maquette OpenDesign pour la page Contact
   Chargee conditionnellement sur /pages/contact.html par base.html.
   Les variables :root, le fond high-tech, le header et le footer sont
   deja dans home-od.css (charge sur toutes les pages). Ici on ajoute
   uniquement les styles specifiques a la page Contact.
   ========================================================================== */

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 0 32px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-soft);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 999px;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-2);
    margin-bottom: 20px;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--fg);
    background: linear-gradient(180deg, var(--fg) 0%, #B8A8D4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h1 .accent {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lede {
    font-size: clamp(16px, 1.9vw, 19px);
    color: var(--muted);
    max-width: 640px;
    margin: 0 0 24px;
    line-height: 1.55;
}
.hero-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta strong {
    color: var(--success);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}
.hero-meta .dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--muted-2);
}

/* ===== Contact section ===== */
.contact-section {
    padding: 40px 0 80px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    align-items: start;
}

/* Contact info column */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.info-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(255, 107, 53, 0.15) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.3s var(--ease-out);
}
.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -16px rgba(168, 85, 247, 0.4);
}
.info-card:hover::before {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.55) 0%, rgba(255, 107, 53, 0.4) 100%);
}
.info-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.info-icon svg { width: 22px; height: 22px; }
.info-card[data-kind="phone"] .info-icon { background: var(--warn-soft); color: var(--warn); }
.info-card[data-kind="linkedin"] .info-icon { background: rgba(10, 102, 194, 0.15); color: #4A9EE5; }
.info-body { flex: 1; min-width: 0; }
.info-label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 6px;
}
.info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--fg);
    word-break: break-word;
}
.info-value a { color: var(--fg); }
.info-value a:hover { color: var(--accent); }
.info-sub {
    font-size: 12px;
    color: var(--muted);
    font-family: 'Fira Code', monospace;
    margin-top: 6px;
}
.phone-display {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--muted);
}

/* ===== Form ===== */
.form-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: var(--grad);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: border-shine 6s linear infinite;
}
@keyframes border-shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.form-card h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg);
    margin: 0 0 8px;
}
.form-card .form-sub {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 24px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.form-group label {
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--fg);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-2);
}
.form-group textarea { min-height: 120px; }
.checkbox-group {
    display: grid;
    grid-template-columns: 18px 1fr;
    column-gap: 10px;
    align-items: start;
    margin: 24px 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    grid-column: 1;
    width: 18px; height: 18px;
    margin: 2px 0 0;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.checkbox-group input[type="checkbox"]:hover { border-color: var(--accent); }
.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px; left: 6px;
    width: 4px; height: 8px;
    border: solid var(--fg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-group input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkbox-group label {
    grid-column: 2;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}
.checkbox-group a { color: var(--accent); text-decoration: underline; }
.form-error {
    color: var(--warn);
    font-size: 12px;
    font-family: 'Fira Code', monospace;
    margin-top: -12px;
    margin-bottom: 16px;
    display: none;
}
.form-error.is-visible { display: block; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--fg);
    border: 1px solid var(--accent);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
    box-shadow: 0 2px 12px -4px var(--accent);
}
.btn-submit:hover:not(:disabled) {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -6px var(--accent);
}
.btn-submit:active:not(:disabled) { transform: translateY(1px); }
.btn-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-submit .arrow { transition: transform 0.2s var(--ease-out); }
.btn-submit:hover:not(:disabled) .arrow { transform: translateX(3px); }

/* ===== Trust strip ===== */
.trust {
    margin-top: 48px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    justify-content: center;
    align-items: center;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--muted);
}
.trust-item svg { width: 14px; height: 14px; color: var(--success); }

/* ===== Mobile responsive ===== */
@media (max-width: 800px) {
    .hero { padding: 56px 0 24px; }
    .contact-section { padding: 24px 0 60px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
}