﻿/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #ef1080;
    --accent-dark: #c30d69;
    --ink: #1c1230;
    --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* === Topbar === */
.topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
}

.brand img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.login-link {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s, border-color 0.2s;
}

.login-link:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* === Landing hero === */
.landing {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(45,27,61,0.9) 0%, rgba(93,16,86,0.85) 100%),
                url("date.jpeg") center/cover no-repeat;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 28%, rgba(239,16,128,0.28), transparent 55%);
    pointer-events: none;
}

.landing-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.28);
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.09) 55%, rgba(255,255,255,0.15) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* === Copy === */
.landing-copy { color: #f4eefb; }

.landing-copy h1 {
    font-family: "Poppins", sans-serif;
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
    margin-bottom: 0.6rem;
}

.landing-copy h1 .accent {
    color: #f54da6;
}

.landing-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    color: #f0e3f7;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    margin-bottom: 2rem;
    max-width: 42ch;
}

.features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem 0.8rem;
    margin-bottom: 1.8rem;
}

.features li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}

.feature-ico {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: linear-gradient(150deg, #ffffff 0%, #ffe0f0 100%);
    border: 1px solid rgba(239,16,128,0.25);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.22);
    transition: transform 0.2s, box-shadow 0.2s;
}

.features li:hover .feature-ico {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.28);
}

.feature-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.free-note {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(245,77,166,0.5);
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 0.6rem 1.15rem;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.free-note::before {
    content: "\2661";
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}

/* === Form card === */
.landing-form { display: flex; justify-content: center; }

.form-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* === Formulaire injecté (smartlink) — thème rose #ef1080 === */
.form-card {
    --form-blue: #ef1080;
    --form-blue-dark: #c30d69;
}

.form-card form,
.form-card [class*="ptprelinker-"] form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Fond blanc sur le contenu injecté */
.ptprelinker-content,
.ptprelinker--box,
.form-card [class*="ptprelinker-content"],
.form-card [class*="ptprelinker--box"] {
    background: #fff !important;
    border-color: #fff !important;
}

/* Titres / labels */
.form-card h1,
.form-card h2,
.form-card h3,
.form-card legend,
.form-card label {
    color: #1c3a4d;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.form-card h1,
.form-card h2 {
    text-align: center;
    color: var(--form-blue-dark);
    margin-bottom: 0.3rem;
}

/* Champs texte, email, mot de passe, selects */
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card input[type="number"],
.form-card input[type="date"],
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    color: #3d1f30;
    background: #fdf2f8;
    border: 2px solid var(--form-blue);
    border-radius: 8px !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.form-card select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ef1080' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--form-blue-dark);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(239,16,128,0.2);
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: #c191a8;
}

/* Boutons radio / cases à cocher */
.form-card input[type="radio"],
.form-card input[type="checkbox"] {
    accent-color: var(--form-blue);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Boutons de soumission */
.form-card button,
.form-card input[type="submit"],
.form-card input[type="button"],
.form-card [class*="ptprelinker-"] a[class*="btn"] {
    display: inline-block;
    width: 100%;
    padding: 0.95rem 1.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--form-blue), var(--form-blue-dark));
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(239,16,128,0.4);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.form-card button:hover,
.form-card input[type="submit"]:hover,
.form-card input[type="button"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 26px rgba(239,16,128,0.5);
}

.form-card button:active,
.form-card input[type="submit"]:active {
    transform: translateY(0);
}

/* Liens dans le formulaire */
.form-card a {
    color: var(--form-blue-dark);
    font-weight: 600;
}

.form-card a:hover { color: var(--form-blue); }

.already {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.88rem;
    color: #6a6478;
}

.already a {
    color: var(--accent);
    font-weight: 600;
}

.already a:hover { color: var(--accent-dark); }

/* === Footer === */
.site-footer {
    background: #141423;
    color: #9a92ad;
    padding: 1.4rem 1.5rem;
    text-align: center;
}

.footer-legal {
    font-size: 0.78rem;
    opacity: 0.7;
}

.footer-legal a {
    color: #f78ec4;
    font-weight: 600;
}

.footer-legal a:hover { color: #fff; }

/* === Responsive === */
@media (max-width: 860px) {
    .landing-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 460px;
        padding: 1.8rem;
    }

    .landing-copy { text-align: center; }
    .landing-copy h1 { font-size: 2.8rem; }
    .landing-subtitle { max-width: none; margin-left: auto; margin-right: auto; }
    .features { justify-items: center; }
}

@media (max-width: 420px) {
    .features { gap: 0.9rem 0.4rem; }
    .feature-ico { width: 46px; height: 46px; font-size: 1.2rem; }
    .feature-label { font-size: 0.75rem; }
}


/* === Section SEO === */
.seo-section { background: #1f1f35; padding: 3.5rem 1.5rem; }
.seo-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.seo-inner h2 { font-family: "Poppins", sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1.1rem; }
.seo-inner p { font-size: 0.98rem; line-height: 1.7; color: #c6c0d8; margin-bottom: 1rem; }
.seo-inner p:last-child { margin-bottom: 0; }
/* === Icones SVG des fonctionnalites === */
.feature-ico { color: var(--accent); }
.feature-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* === Ecrans peu hauts : eviter la barre de defilement === */
@media (max-height: 850px) {
    .landing { padding: 4.5rem 1.5rem 1.5rem; }
    .landing-inner { padding: 1.5rem 2rem; gap: 2rem; }
    .landing-copy h1 { font-size: 3rem; }
    .landing-subtitle { margin-bottom: 1.2rem; }
    .features { margin-bottom: 1.2rem; }
    .feature-ico { width: 44px; height: 44px; }
    .form-card { padding: 1.2rem 1.3rem; }
}
