﻿/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #ec4899;
    --accent-dark: #be2f76;
    --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: #160b28;
    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(46,16,74,0.9) 0%, rgba(112,26,92,0.85) 100%),
                url("trans.jpg") center/cover no-repeat;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 28%, rgba(236,72,153,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: #ff7ab8;
}

.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%, #ffe3f1 100%);
    border: 1px solid rgba(236,72,153,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(246,165,200,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 #ec4899 === */
.form-card {
    --form-blue: #ec4899;
    --form-blue-dark: #be2f76;
}

.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='%23ec4899' 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(236,72,153,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(236,72,153,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(236,72,153,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: #120827;
    color: #9a92ad;
    padding: 1.4rem 1.5rem;
    text-align: center;
}

.footer-legal {
    font-size: 0.78rem;
    opacity: 0.7;
}

.footer-legal a {
    color: #f6a5c8;
    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; }
}
/* === 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; }
}

/* === Section SEO === */
.seo-section { background: #1d1030; 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: #cfc2de; margin-bottom: 1rem; }
.seo-inner p:last-child { margin-bottom: 0; }

/* === Sections additionnelles === */
.seo-section.alt-bg { background: #160b28; }
.seo-inner.wide { max-width: 860px; text-align: left; }
.seo-inner.wide h2 { text-align: center; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.6rem; }
.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.2rem 1.1rem;
}
.info-card h3 { font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.45rem; }
.info-card p { font-size: 0.88rem; color: #cfc2de; margin: 0; line-height: 1.6; }
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 0.7rem;
    overflow: hidden;
}
.faq-item[open] { border-color: rgba(236, 72, 153, 0.55); }
.faq-item summary {
    list-style: none; cursor: pointer;
    padding: 0.95rem 2.6rem 0.95rem 1.15rem;
    font-weight: 600; font-size: 0.95rem; color: #fff;
    position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 1.05rem; top: 50%;
    transform: translateY(-50%); font-size: 1.3rem; color: var(--accent);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item > p { padding: 0 1.15rem 1rem; color: #cfc2de; font-size: 0.9rem; line-height: 1.65; margin: 0; }
.faq-cta { text-align: center; margin-top: 1.6rem; }
.faq-cta a {
    display: inline-block; padding: 0.95rem 2rem;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 0.95rem; border-radius: 999px;
}
.faq-cta a:hover { background: var(--accent-dark); }
.footer-nav { margin-bottom: 0.7rem; display: flex; justify-content: center; gap: 1.5rem; }
.footer-nav a { color: #cfc2de; font-size: 0.85rem; font-weight: 500; }
.footer-nav a:hover { color: #f6a5c8; }
.page-dark { background: #1d1030; flex: 1 0 auto; padding: 5.5rem 1.5rem 3rem; }
.page-dark-inner { max-width: 760px; margin: 0 auto; }
.page-dark h1 { font-family: "Poppins", sans-serif; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 1.3rem; }
.page-dark h2 { font-family: "Poppins", sans-serif; font-size: 1.1rem; font-weight: 700; color: #fff; margin: 1.7rem 0 0.5rem; }
.page-dark p { font-size: 0.94rem; line-height: 1.7; color: #cfc2de; margin-bottom: 0.8rem; }
.page-dark a { color: #f6a5c8; text-decoration: underline; text-underline-offset: 3px; }
.page-dark .page-back { display: inline-block; margin-bottom: 1.4rem; font-weight: 600; text-decoration: none; }
.date-form label { display: block; font-size: 0.85rem; font-weight: 600; color: #fff; margin: 0.9rem 0 0.35rem; }
.date-form input, .date-form textarea {
    width: 100%; padding: 0.8rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px; color: #fff;
    font-family: inherit; font-size: 0.95rem; box-sizing: border-box;
}
.date-form input:focus, .date-form textarea:focus { outline: none; border-color: var(--accent); }
.date-form button {
    margin-top: 1.1rem; padding: 0.9rem 2.1rem;
    background: var(--accent); color: #fff;
    font-weight: 700; font-size: 0.95rem;
    border: 0; border-radius: 999px; cursor: pointer;
}
.date-form button:hover { background: var(--accent-dark); }
.date-form .hint { font-size: 0.76rem; color: #9a92ad; margin-top: 0.8rem; }
@media (max-width: 860px) {
    .info-cards { grid-template-columns: 1fr; }
}

.seo-list { padding-left: 1.2rem; margin: 0.4rem 0 1rem; }
.seo-list li { font-size: 0.97rem; line-height: 1.65; color: #cfc2de; margin-bottom: 0.45rem; }
.seo-list strong { color: #fff; }
