/*
 * Colin6969 — styles dédiés à contact.php
 * Cette feuille est chargée après style.css.
 * Les sélecteurs sont préfixés par .contact-page pour éviter les conflits.
 */

.contact-page {
    --contact-pink: #ff1684;
    --contact-red: #ff0050;
    --contact-cyan: #25f4ee;
    --contact-text: #f7f7fb;
    --contact-muted: #d1d1da;
    --contact-panel: rgba(19, 18, 23, .94);
    min-height: 100vh;
    color: var(--contact-text);
    background: #050505;
}

.contact-page .site-header {
    position: relative;
    z-index: 999;
}

.contact-page .navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1500px, calc(100% - 48px));
    min-height: 70px;
    height: auto;
    padding: 10px 20px 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(25, 24, 27, .88);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 25px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
    z-index: 1000;
}

.contact-page .logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 900;
    line-height: 1.2;
    background: none;
    -webkit-text-fill-color: initial;
}

.contact-page .logo-flame {
    display: inline-flex;
    font-size: .88em;
}

.contact-page .logo-flame-cyan { color: var(--contact-cyan); }
.contact-page .logo-flame-pink { color: #ff328c; }

.contact-page .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.contact-page .menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 15px;
    color: #f8f8fb;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-page .menu a:hover,
.contact-page .menu a.active {
    background: linear-gradient(100deg, #ff0050, #ff328c);
    box-shadow: 0 0 18px rgba(255,0,80,.24);
}

.contact-page .menu a:hover { transform: translateY(-1px); }

.contact-page .menu a.tiktok {
    background: linear-gradient(100deg, #25f4ee, #8c6aaf 55%, #ff0050);
}

.contact-page .hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    color: #fff;
    background: rgba(255,255,255,.08);
    font-size: 22px;
    cursor: pointer;
}

/* Le point essentiel : le contenu commence sous la navbar fixe. */
.contact-page .contact-main {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 132px 0 70px;
    min-height: 70vh;
    box-sizing: border-box;
}

.contact-page .contact-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto 46px;
    padding: 0 10px;
    text-align: center;
    box-sizing: border-box;
}

.contact-page .contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    margin: 0 0 20px;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 30px;
    color: #fff;
    background: rgba(28,27,32,.96);
    font-size: .9rem;
    line-height: 1.5;
    visibility: visible;
    opacity: 1;
}

.contact-page .contact-hero h1 {
    width: 100%;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
    opacity: 1;
    visibility: visible;
}

.contact-page .contact-hero h1 span {
    color: #ff328c;
    background: linear-gradient(100deg, #ff0066, #ff3d8b 48%, #27e7ed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-page .contact-hero > p {
    max-width: 690px;
    margin: 0 auto;
    color: #d7d7df;
    font-size: 1.03rem;
    line-height: 1.85;
    opacity: 1;
    visibility: visible;
}

.contact-page .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: stretch;
}

.contact-page .contact-info,
.contact-page .contact-form-card {
    min-width: 0;
    padding: clamp(24px, 4vw, 38px);
    color: #fff;
    background: linear-gradient(145deg, rgba(35,27,37,.96), rgba(13,13,16,.97));
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.contact-page .contact-info {
    position: relative;
    overflow: hidden;
}

.contact-page .contact-info::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -100px;
    bottom: -105px;
    border-radius: 50%;
    background: #00e5ec;
    filter: blur(75px);
    opacity: .18;
    pointer-events: none;
}

.contact-page .info-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff0066, #ff3d8b);
    box-shadow: 0 8px 30px rgba(255,0,102,.23);
    font-size: 1.35rem;
}

.contact-page .contact-info h2,
.contact-page .contact-form-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.4;
}

.contact-page .contact-info > p,
.contact-page .form-intro {
    margin: 0 0 25px;
    color: #d0ced7;
    font-size: .96rem;
    line-height: 1.75;
    opacity: 1;
}

.contact-page .info-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0;
    color: #e2e0e7;
    font-size: .94rem;
    line-height: 1.65;
}

.contact-page .info-line i {
    min-width: 17px;
    margin-top: 5px;
    color: var(--contact-cyan);
}

.contact-page .contact-socials {
    display: flex;
    gap: 11px;
    margin-top: 31px;
}

.contact-page .contact-socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 13px;
    color: #fff;
    background: rgba(255,255,255,.08);
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.contact-page .contact-socials a:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ff0066, #ff3d8b);
}

.contact-page .contact-form-card h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.contact-page .contact-form-card h2 > i { color: var(--contact-cyan); }

.contact-page .form-intro {
    margin-bottom: 22px;
    font-size: .9rem;
}

.contact-page .contact-form {
    display: grid;
    gap: 17px;
}

.contact-page .contact-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-page .contact-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #f2f1f6;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.5;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: rgba(0,0,0,.42);
    font: inherit;
    font-weight: 400;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-page .contact-form input::placeholder,
.contact-page .contact-form textarea::placeholder {
    color: #aaa6b2;
    opacity: 1;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form textarea:focus {
    border-color: var(--contact-cyan);
    box-shadow: 0 0 0 3px rgba(37,228,237,.13);
}

.contact-page .contact-form textarea {
    min-height: 145px;
    resize: vertical;
}

.contact-page .contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(100deg, #ff005c, #ff328c);
    box-shadow: 0 8px 24px rgba(255,0,92,.23);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease;
}

.contact-page .contact-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.contact-page .contact-notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 19px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: .92rem;
    line-height: 1.6;
}

.contact-page .contact-notice.success {
    color: #a5f5cb;
    background: rgba(33,190,117,.13);
    border: 1px solid rgba(33,220,139,.35);
}

.contact-page .contact-notice.error {
    color: #ffc0ce;
    background: rgba(255,45,91,.12);
    border: 1px solid rgba(255,45,91,.35);
}

.contact-page .contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-page .contact-back {
    display: table;
    margin: 30px auto 0;
    color: #d8d6df;
    text-decoration: none;
    transition: color .2s ease;
}

.contact-page .contact-back:hover { color: var(--contact-cyan); }

.contact-page .contact-footer {
    position: relative;
    z-index: 1;
    margin-top: 25px;
    padding: 42px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(0,0,0,.5);
    text-align: center;
}

.contact-page .contact-footer .footer-content h2 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(90deg, #25f4ee, #ff0050);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-page .contact-footer p { color: #d1d1da; }
.contact-page .contact-footer .copyright { color: #aaa6b2; font-size: .875rem; }

/* Assistant IA */
.contact-page .chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 22px;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(105deg, #ff005c, #ff328c 58%, #d80a80);
    box-shadow: 0 8px 32px rgba(255,0,92,.34);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-page .chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255,0,92,.45);
}

.contact-page .launcher-spark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
}

.contact-page .chat-panel {
    position: fixed;
    right: 24px;
    bottom: 88px;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    width: min(390px, calc(100vw - 28px));
    height: min(570px, calc(100dvh - 120px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    color: #fff;
    background: #101013;
    box-shadow: 0 20px 75px rgba(0,0,0,.6), 0 0 35px rgba(255,0,92,.13);
}

.contact-page .chat-panel[hidden] { display: none; }

.contact-page .chat-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 15px 16px;
    background: linear-gradient(105deg, #4e0824, #21121f 72%, #092c30);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.contact-page .chat-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff005c, #25dce8);
    font-size: 1.1rem;
}

.contact-page .chat-header-text { display: grid; gap: 4px; flex: 1; }
.contact-page .chat-header-text strong { color: #fff; font-size: .95rem; }
.contact-page .chat-header-text > span { color: #d0ccd5; font-size: .74rem; }

.contact-page .online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #35e69b;
    box-shadow: 0 0 8px #35e69b;
}

.contact-page .chat-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: rgba(255,255,255,.1);
    cursor: pointer;
    font-size: 1rem;
}

.contact-page .chat-messages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 11px;
    overflow: auto;
    padding: 16px;
    background: radial-gradient(ellipse at top left, rgba(93,0,39,.18), transparent 55%), #101013;
}

.contact-page .chat-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: .88rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.contact-page .bot-message {
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,.07);
    border-bottom-left-radius: 5px;
    color: #f2f0f5;
    background: #242329;
}

.contact-page .user-message {
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    color: #fff;
    background: linear-gradient(110deg, #ff005c, #d51d8a);
}

.contact-page .chat-form {
    display: flex;
    align-items: flex-end;
    gap: 9px;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: #151519;
}

.contact-page .chat-form textarea {
    flex: 1;
    min-width: 0;
    max-height: 100px;
    resize: none;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    outline: none;
    color: #fff;
    background: #0d0d10;
    font: inherit;
    font-size: .88rem;
}

.contact-page .chat-form textarea::placeholder { color: #aaa6b2; }
.contact-page .chat-form textarea:focus { border-color: var(--contact-cyan); }

.contact-page .chat-form button {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ff005c, #ff328c);
    cursor: pointer;
}

.contact-page .chat-form button:disabled { opacity: .55; cursor: wait; }

.contact-page .chat-disclaimer {
    margin: 0;
    padding: 0 10px 10px;
    color: #b6b1bd;
    background: #151519;
    font-size: .67rem;
    text-align: center;
}

.contact-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Navigation compacte sur tablette */
@media (max-width: 1050px) {
    .contact-page .navbar {
        width: calc(100% - 30px);
        padding-inline: 20px;
    }

    .contact-page .menu { gap: 2px; }
    .contact-page .menu a { padding: 11px 9px; font-size: 13px; }
    .contact-page .logo { font-size: 24px; }
}

@media (max-width: 800px) {
    .contact-page .navbar {
        top: 12px;
        width: calc(100% - 24px);
        min-height: 64px;
        padding: 9px 14px 9px 18px;
        border-radius: 20px;
    }

    .contact-page .hamburger { display: inline-flex; }

    .contact-page .menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: min(290px, calc(100vw - 28px));
        padding: 14px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 18px;
        background: rgba(17,17,20,.98);
        box-shadow: 0 15px 40px rgba(0,0,0,.5);
    }

    .contact-page .menu.active { display: flex; }
    .contact-page .menu a { justify-content: flex-start; padding: 12px 14px; font-size: 14px; }

    .contact-page .contact-main { padding-top: 112px; }
    .contact-page .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .contact-page .contact-info { padding: 25px; }
    .contact-page .contact-info > p { margin-bottom: 18px; }
    .contact-page .contact-socials { margin-top: 23px; }
}

@media (max-width: 560px) {
    .contact-page .contact-main {
        width: calc(100% - 24px);
        padding-top: 105px;
        padding-bottom: 45px;
    }

    .contact-page .contact-hero {
        margin-bottom: 28px;
        padding-inline: 3px;
    }

    .contact-page .contact-badge {
        gap: 6px;
        padding: 9px 12px;
        font-size: .82rem;
    }

    .contact-page .contact-hero h1 {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.2;
    }

    .contact-page .contact-hero > p {
        font-size: .96rem;
        line-height: 1.8;
    }

    .contact-page .contact-form-card { padding: 22px 17px; }
    .contact-page .contact-field-row { grid-template-columns: minmax(0, 1fr); }
    .contact-page .chat-launcher { right: 13px; bottom: 13px; }
    .contact-page .chat-panel {
        right: 12px;
        bottom: 75px;
        width: calc(100vw - 24px);
        height: min(560px, calc(100dvh - 95px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
