/* body.v2 { background: … } dans mip_style2.css gagne sur .connect-page seul — spécificité */
body.v2.connect-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ecfdf5;
    background-image:
        linear-gradient(
            165deg,
            rgba(236, 253, 245, 0.55) 0%,
            rgba(255, 255, 255, 0.35) 45%,
            rgba(240, 253, 244, 0.5) 100%
        ),
        url("/website/images/connect.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.connect-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 5% 4rem;
}

.connect-card {
    width: 100%;
    max-width: 520px;
    background: var(--v2-white);
    border: 1px solid var(--v2-border);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(6, 78, 59, 0.18), 0 0 0 1px rgba(201, 168, 76, 0.12);
    padding: 0 0 2rem;
    overflow: hidden;
}

.connect-hero {
    text-align: center;
    padding: 2rem 1.75rem 1.75rem;
    margin-bottom: 0.25rem;
    background:
        linear-gradient(165deg, rgba(4, 48, 40, 0.97) 0%, rgba(6, 78, 59, 0.92) 45%, rgba(15, 118, 110, 0.88) 100%);
    border-bottom: 3px solid var(--v2-gold);
    position: relative;
}

.connect-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 168, 76, 0.14), transparent 70%);
    pointer-events: none;
}

.connect-hero__plate {
    position: relative;
    z-index: 1;
    width: min(200px, 52vw);
    height: min(200px, 52vw);
    margin: 0 auto 1.25rem;
    padding: 1.15rem;
    border-radius: 28px;
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect-hero__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(6, 78, 59, 0.2));
}

.connect-hero__brand {
    position: relative;
    z-index: 1;
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0.35rem;
    text-wrap: balance;
}

.connect-hero__tagline {
    position: relative;
    z-index: 1;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 600;
    color: rgba(236, 253, 245, 0.88);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

html[lang="en"] .connect-hero__brand {
    font-family: var(--font-en);
}

html[lang="en"] .connect-hero__tagline {
    font-family: var(--font-en);
    font-size: clamp(0.72rem, 1.8vw, 0.82rem);
}

.connect-card h1,
.connect-card .connect-lead,
.connect-card .connect-form {
    padding-left: 2rem;
    padding-right: 2rem;
}

.connect-card h1 {
    padding-top: 1.35rem;
}

.connect-card h1 {
    font-size: 1.45rem;
    font-weight: 800;
    text-align: center;
    color: var(--v2-green);
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.connect-card .connect-lead {
    text-align: center;
    color: var(--v2-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
}

.connect-form label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.45rem;
    color: var(--v2-text);
}

.connect-form input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.connect-form input[type="text"]:focus {
    outline: none;
    border-color: var(--v2-green-mid);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.connect-form .connect-hint {
    margin-top: 0.45rem;
    font-size: 0.8rem;
    color: var(--v2-muted);
    line-height: 1.4;
}

.connect-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
    text-decoration: none;
    box-sizing: border-box;
}

.connect-btn--primary {
    background: linear-gradient(135deg, var(--v2-green) 0%, var(--v2-green-mid) 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(6, 78, 59, 0.25);
}

.connect-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(6, 78, 59, 0.28);
}

.connect-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.connect-btn--ghost {
    background: transparent;
    color: var(--v2-green);
    border: 1px solid var(--v2-border);
}

.connect-msg {
    margin-top: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    display: none;
}

.connect-msg.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.connect-msg.is-warn {
    display: block;
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.connect-header-mini {
    padding: 1rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.connect-header-mini a.v2-brand {
    font-size: 0.95rem;
}

.connect-lang {
    display: flex;
    gap: 0.35rem;
}

.connect-lang button {
    border: 1px solid var(--v2-border);
    background: var(--v2-white);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: inherit;
}

.connect-lang button.active {
    background: var(--v2-green);
    color: #fff;
    border-color: var(--v2-green);
}
