/* ============================================================
   Look Like Me — Feuille de style principale
   Palette : blanc #FFF, mauve #7C3AED, rose #EC4899, gris #F9FAFB
   ============================================================ */

/* ---------- Utilitaires accessibilité ---------- */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

:root {
    --purple:     #7C3AED;
    --purple-light: #A78BFA;
    --purple-dark: #5B21B6;
    --pink:       #EC4899;
    --pink-light: #F9A8D4;
    --white:      #FFFFFF;
    --gray-50:    #F9FAFB;
    --gray-100:   #F3F4F6;
    --gray-200:   #E5E7EB;
    --gray-400:   #9CA3AF;
    --gray-600:   #4B5563;
    --gray-900:   #111827;

    --gradient:   linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    --gradient-soft: linear-gradient(135deg, #EDE9FE 0%, #FCE7F3 100%);

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(124,58,237,.12), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 40px rgba(124,58,237,.18), 0 4px 12px rgba(0,0,0,.08);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --transition: .2s ease;
    --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---------- Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gray-900);
    white-space: nowrap;
}
.nav-logo:hover { color: var(--purple); }
.logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.nav-logo:hover .logo-icon { transform: scale(1.1) rotate(-4deg); }

.nav-links {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-link {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: .4rem .75rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }

.btn-demo-nav {
    color: var(--purple);
    border: 1.5px solid var(--purple);
    background: transparent;
    animation: demo-nav-pulse 3s ease-in-out infinite;
}
.btn-demo-nav:hover {
    background: var(--purple);
    color: var(--white);
}
@keyframes demo-nav-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50%       { box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.15); }
}

.nav-user {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: .85rem 1.75rem;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(124,58,237,.45); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }

.btn-ghost {
    background: var(--gray-100);
    color: var(--gray-600);
}
.btn-ghost:hover { background: var(--gray-200); color: var(--gray-900); }

.btn-sm { font-size: .85rem; padding: .55rem 1.1rem; border-radius: var(--radius-sm); }
.btn-lg { font-size: 1.1rem; padding: 1.05rem 2.25rem; }
.btn-full { width: 100%; }

/* Groupement burger + lang-switch mobile */
.nav-end {
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* Switcher FR|EN compact — header mobile uniquement */
.lang-switch-mobile {
    display: none;
    align-items: center;
    gap: 3px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--gray-400);
    text-decoration: none;
    padding: .35rem .4rem;
    line-height: 1;
}
.lang-switch-mobile .lsm-active {
    color: var(--purple);
}
.lang-switch-mobile .lsm-sep {
    color: var(--gray-300);
    font-weight: 400;
}

/* Switcher de langue */
.lang-switch {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .4rem .75rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    color: var(--gray-600);
    background: transparent;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.lang-switch:hover {
    border-color: var(--purple);
    color: var(--purple);
    background: rgba(124,58,237,.06);
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(124,58,237,.1);
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 560px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: .4rem 1rem .4rem .5rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
    width: 8px; height: 8px;
    background: var(--gradient);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 3.9vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    max-width: 440px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Trait badges dans la hero card */
.hero-trait-badges {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .75rem;
    border-top: 1px solid var(--gray-100);
    padding-top: .75rem;
}
.hero-trait-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--gray-600);
}
.hero-trait-badge span:first-child { font-weight: 500; }
.hero-trait-badge span:last-child  { font-weight: 700; color: var(--purple); }
/* Live indicator */
.hero-live-line {
    display: flex;
    align-items: center;
    gap: .45rem;
    justify-content: center;
    font-size: .72rem;
    color: var(--gray-500);
    margin-top: .85rem;
}
.hero-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}
.hero-card-cta {
    display: block;
    text-align: center;
    margin-top: .85rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--purple);
    text-decoration: none;
}
.hero-card-cta:hover { text-decoration: underline; }

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 340px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

.hero-card-photos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.hero-photo-slot {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--gray-200);
}
.hero-photo-slot svg,
.hero-photo-slot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-scores {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.score-item { }
.score-label {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: .35rem;
}
.score-bar {
    height: 10px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}
.score-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gradient);
    animation: growBar 1.8s cubic-bezier(.4,0,.2,1) forwards;
    transform-origin: left;
    transform: scaleX(0);
}
.score-fill-mother {
    background: linear-gradient(90deg, var(--pink-light), var(--pink));
}

/* ---------- Steps Section ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
}

.step-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-card:hover .step-icon svg { transform: scale(1.08); }

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 32px;
    background: var(--gradient);
    color: var(--white);
    font-weight: 800;
    font-size: .85rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.step-icon svg {
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.step-card p { font-size: .9rem; color: var(--gray-600); }

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-body { padding: 1.75rem; }
.card-header {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.card-header h2 { font-size: 1.15rem; font-weight: 700; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }

label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: .45rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: .75rem 1rem;
    font-family: var(--font);
    font-size: .95rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
}
input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
input.error { border-color: #EF4444; }

.field-error {
    font-size: .8rem;
    color: #EF4444;
    margin-top: .3rem;
    display: none;
}
.field-error.visible { display: block; }

/* ---------- Alert banners ---------- */
.alert {
    padding: .9rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}
.alert-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.alert-success { background: #F0FDF4; border-color: #BBF7D0; color: #14532D; }
.alert-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }

/* ---------- Profile — stat block cliquable ---------- */
.stat-block-link {
    cursor: pointer;
    transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
    border: 1px solid transparent;
}
.stat-block-link:hover {
    box-shadow: 0 0 0 2px rgba(124,58,237,.18), var(--shadow-sm);
    border-color: rgba(124,58,237,.25);
    transform: translateY(-1px);
}
.stat-block-link:hover div:last-child {
    opacity: 1 !important;
}

/* ---------- Auth Pages ---------- */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3.5rem 1rem 4rem;
    background: var(--gradient-soft);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    overflow: hidden;
}

.auth-header {
    background: var(--gradient);
    padding: 1.5rem 2rem 1.25rem;
    text-align: center;
    color: var(--white);
}
.auth-header .auth-icon { font-size: 3rem; margin-bottom: .75rem; display: block; }
.auth-header h1 { font-size: 1.6rem; font-weight: 800; }
.auth-header p { opacity: .85; font-size: .92rem; margin-top: .35rem; }

.auth-body { padding: 2rem; }

.auth-footer {
    text-align: center;
    padding: 0 2rem 1.75rem;
    font-size: .875rem;
    color: var(--gray-600);
}
.auth-footer a { font-weight: 600; }

/* ---------- Upload Page ---------- */
.upload-page { padding: 3rem 0 5rem; }

.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.upload-slot {
    position: relative;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}
.upload-slot:hover, .upload-slot.dragover {
    border-color: var(--purple);
    background: rgba(124,58,237,.03);
}
.upload-slot.has-file { border-style: solid; border-color: var(--purple); }

.upload-slot input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.upload-placeholder {
    text-align: center;
    padding: 1.5rem;
    pointer-events: none;
}
.upload-icon {
    display: flex;
    justify-content: center;
    margin-bottom: .75rem;
}
.upload-icon svg,
.upload-icon img { transition: transform .25s ease; border-radius: 12px; }
.upload-slot:hover .upload-icon svg,
.upload-slot:hover .upload-icon img { transform: scale(1.06) translateY(-2px); }
.upload-slot-label {
    font-size: .95rem;
    font-weight: 700;
    color: var(--gray-900);
    display: block;
    margin-bottom: .25rem;
}
.upload-hint { font-size: .78rem; color: var(--gray-400); }

.upload-preview {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
}
.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-preview-remove {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 28px; height: 28px;
    background: rgba(0,0,0,.65);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background var(--transition);
}
.upload-preview-remove:hover { background: #EF4444; }

.upload-slot.has-file .upload-preview { display: block; }
.upload-slot.has-file .upload-placeholder { display: none; }

/* ---------- Result Page ---------- */
.result-page { padding: 3rem 0 5rem; }

.result-hero {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
}

.result-photos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}
.result-photo img {
    border-radius: var(--radius-lg);
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-md);
}
.result-photo.self img { width: 100px; height: 100px; }
.result-photo.parent img { width: 80px; height: 80px; }
.result-photo-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.result-verdict {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .5rem;
}
.result-verdict .winner-name {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.verdict-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    -webkit-text-fill-color: initial;
}
.verdict-icon svg,
.verdict-icon img { border-radius: 8px; object-fit: cover; }

.history-table th svg,
.history-table th img {
    display: inline-block;
    vertical-align: middle;
    margin-right: .3rem;
    border-radius: 6px;
    object-fit: cover;
}

.scores-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.score-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.score-card.winner {
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(124,58,237,.2), var(--shadow-md);
}
.score-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.score-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.score-card-icon svg,
.score-card-icon img {
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    border-radius: 18px;
    object-fit: cover;
}
.score-card:hover .score-card-icon svg,
.score-card:hover .score-card-icon img { transform: scale(1.1); }
.score-card-name {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    counter-reset: score;
}

.score-card.mother .score-number {
    background: linear-gradient(135deg, var(--pink), #BE185D);
    -webkit-background-clip: text;
    background-clip: text;
}

.score-percent { font-size: 1.5rem; }

.score-bar-lg {
    height: 12px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}
.score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(.4,0,.2,1);
}
.score-bar-fill.animate { transform: scaleX(1); }
.score-card.mother .score-bar-fill {
    background: linear-gradient(90deg, var(--pink-light), var(--pink));
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--gradient);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 999px;
    margin-top: 1rem;
}

/* Historique */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.history-table th {
    text-align: left;
    padding: .75rem 1rem;
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-200);
}
.history-table td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tr:hover td { background: var(--gray-50); }

.history-thumb {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 2px solid var(--gray-200);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}
.pill-purple { background: rgba(124,58,237,.1); color: var(--purple); }
.pill-pink   { background: rgba(236,72,153,.1); color: var(--pink); }

/* ---------- Share buttons ---------- */
.share-section { text-align: center; }
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ── Badge réassurance confidentialité ─────────────────────── */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
    border-radius: 999px;
    padding: .3rem .85rem;
    font-size: .75rem;
    font-weight: 500;
    margin-top: 1rem;
}
.privacy-badge svg { flex-shrink: 0; }

/* Note contextuelle sous le badge (11px, discrète) */
.privacy-note {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: .4rem;
    line-height: 1.5;
}
.privacy-note a { color: inherit; }

/* Bandeau consentement RGPD (guest upload) */
.rgpd-consent-banner {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .82rem;
    color: #166534;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.rgpd-consent-banner svg { flex-shrink: 0; margin-top: 1px; }

/* Checkbox RGPD dans les formulaires */
.form-check { margin-bottom: .75rem; }
.check-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .85rem;
    color: var(--gray-600);
    cursor: pointer;
    line-height: 1.5;
}
.check-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--purple);
    cursor: pointer;
}

/* ── H2 SEO dans le hero (visuellement discret) ─────────────── */
.hero-h2-seo {
    font-size: .88rem;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ── Guest result : sections verrouillées ───────────────────── */
.guest-locked-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1rem;
}
.guest-locked-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: .82rem;
}
.guest-locked-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: 999px;
    padding: .15rem .6rem;
    border: 1px solid var(--gray-200);
}
.guest-locked-section {
    pointer-events: none;
    user-select: none;
    opacity: .65;
    padding: .5rem;
}
.guest-locked-report-preview {
    background: var(--gray-50);
}

/* ── Guest : bloc de conversion ─────────────────────────────── */
.guest-unlock-block {
    margin-top: 2rem;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    text-align: center;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--purple), var(--pink)) border-box;
    border: 2px solid transparent;
}
.guest-unlock-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.guest-unlock-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    text-align: left;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.guest-unlock-features li {
    font-size: .92rem;
    color: var(--gray-700);
}
.guest-unlock-nudge {
    margin-top: .75rem;
    font-size: .8rem;
    color: var(--gray-500);
}

/* ---------- Loading overlay ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}
.loading-overlay.active { display: flex; }

.spinner {
    width: 52px; height: 52px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.loading-text { font-size: 1.1rem; font-weight: 600; color: var(--gray-900); }
.loading-sub  { font-size: .875rem; color: var(--gray-400); }

/* ---------- SEO content helpers ---------- */
.hero-description-seo {
    font-size: .95rem;
    color: var(--gray-600);
    max-width: 440px;
    margin-top: -.75rem;
    margin-bottom: 1.75rem;
    line-height: 1.65;
}
.hero-description-seo strong { color: var(--purple); font-weight: 600; }

.steps-note {
    text-align: center;
    font-size: .9rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 2.5rem auto 0;
    line-height: 1.7;
}
.steps-note strong { color: var(--gray-900); font-weight: 600; }

/* ══════════════════════════════════════════════
   DEMO SECTION
══════════════════════════════════════════════ */
.demo-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    position: relative;
}

.demo-container { max-width: 720px; }

.demo-header { margin-bottom: 3rem; }

/* Live badge dot */
.demo-live-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 6px;
    vertical-align: middle;
    animation: demoPulse 1.8s ease-in-out infinite;
}
@keyframes demoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.4); }
}

/* ── Card ── */
.demo-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(0,0,0,.04),
        0 12px 40px rgba(124,58,237,.08);
    padding: 2.5rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}
.demo-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 65%);
    pointer-events: none;
}
.demo-card::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(236,72,153,.08) 0%, transparent 65%);
    pointer-events: none;
}

/* ── Photos ── */
.demo-photos {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.demo-photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    position: relative;
}

.demo-photo-ring {
    border-radius: 50%;
    padding: 3px;
    background: var(--gray-200);
    transition: background .4s ease, box-shadow .4s ease;
    position: relative;
}
.demo-photo-ring img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
    width: 100px; height: 100px;
}

/* Child — main subject */
.demo-ring-main {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    padding: 3px;
}
.demo-ring-main img { width: 144px; height: 144px; }

/* Winner highlight (added via JS) */
.demo-photo-ring.is-winner {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 0 4px rgba(251,191,36,.3), 0 0 30px rgba(251,191,36,.25);
}

.demo-photo-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ── Loading ── */
.demo-loading {
    text-align: center;
    padding: 1.5rem 0 .5rem;
    color: var(--text-muted);
    font-size: .9rem;
}

.demo-scan-bar {
    height: 3px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.demo-scan-line {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--purple), var(--pink), transparent);
    border-radius: 999px;
    animation: demoScan 1.6s ease-in-out infinite;
}
@keyframes demoScan {
    0%   { transform: translateX(-150%); }
    100% { transform: translateX(350%); }
}

.demo-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: .8rem;
}
.demo-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    animation: demoBounce 1.1s ease-in-out infinite;
}
.demo-dots span:nth-child(2) { animation-delay: .18s; }
.demo-dots span:nth-child(3) { animation-delay: .36s; }
@keyframes demoBounce {
    0%, 100% { transform: translateY(0); opacity: .45; }
    50%       { transform: translateY(-9px); opacity: 1; }
}

/* ── Results ── */
.demo-results {
    display: none;
}
.demo-results.show {
    display: block;
    animation: fadeInUp .5s ease both;
}

.demo-verdict {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--gray-100);
}
.demo-verdict-label {
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: .65rem;
}
.demo-verdict-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.demo-verdict-pct {
    font-size: 1.15rem;
    opacity: .85;
}

/* ── Scores ── */
.demo-scores {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.demo-score-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.demo-score-thumb {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--gray-200);
}

.demo-score-name {
    font-weight: 600;
    font-size: .9rem;
    color: var(--gray-800);
    flex: 1;
}

.demo-score-pct-pill {
    font-size: .82rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-600);
}
.demo-score-pct-pill.is-winner {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: var(--white);
}

.demo-bar-track {
    height: 10px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}
.demo-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s cubic-bezier(.4,0,.2,1);
}
.demo-bar-fill.mother {
    background: linear-gradient(90deg, #f472b6, var(--pink));
}

.demo-disclaimer {
    text-align: center;
    font-size: .76rem;
    color: var(--gray-400);
    margin-top: 1rem;
}

/* ── CTA Zone ── */
.demo-cta-zone {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(124,58,237,.05), rgba(236,72,153,.05));
    border-radius: 20px;
    border: 1px solid rgba(124,58,237,.12);
}

.demo-cta-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem 1.75rem;
    margin-bottom: 1.75rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-600);
}

.demo-cta-btn {
    font-size: 1rem;
    padding: .9rem 2rem;
    min-width: 280px;
    letter-spacing: .01em;
}

.demo-cta-nudge {
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .demo-photos { gap: 1rem; }
    .demo-ring-main img { width: 120px; height: 120px; }
    .demo-photo-ring img { width: 80px; height: 80px; }
    .demo-card { padding: 1.75rem 1.25rem 1.5rem; }
    .demo-cta-zone { padding: 2rem 1.25rem; }
    .demo-cta-btn { min-width: unset; width: 100%; }
}

/* ══════════════════════════════════════════════
   RESULT-DEMO PAGE
══════════════════════════════════════════════ */

/* ── Bandeau info ── */
.demo-page-banner {
    background: linear-gradient(90deg, var(--purple), var(--pink));
    color: var(--white);
    text-align: center;
    padding: .7rem 1.5rem;
    font-size: .88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 64px;
    z-index: 90;
}
.demo-page-banner-cta {
    color: var(--white);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
    transition: opacity .2s;
}
.demo-page-banner-cta:hover { opacity: .8; }

/* ── Share locked ── */
.share-locked {
    position: relative;
    overflow: hidden;
}
.share-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    z-index: 10;
    border-radius: inherit;
    text-align: center;
    padding: 1.5rem;
}
.share-lock-icon {
    font-size: 2rem;
    line-height: 1;
}
.share-lock-msg {
    font-size: .95rem;
    font-weight: 600;
    color: var(--gray-800);
}
.share-blur {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    opacity: .5;
}

/* ── CTA block (interne, sous les scores) ── */
.result-demo-cta-block {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(236,72,153,.06));
    border-radius: 20px;
    border: 1px solid rgba(124,58,237,.13);
}
.result-demo-cta-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gray-600);
}
.result-demo-cta-main {
    font-size: 1rem;
    padding: .9rem 2rem;
    min-width: 260px;
}
.result-demo-cta-nudge {
    margin-top: 1rem;
    font-size: .82rem;
    color: var(--text-muted);
}

/* ── Sticky CTA ── */
.result-demo-sticky {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--gradient);
    color: var(--white);
    z-index: 200;
    transform: translateY(100%);
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 24px rgba(124,58,237,.25);
}
.result-demo-sticky.show { transform: translateY(0); }

.result-demo-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.5rem;
    flex-wrap: wrap;
}
.result-demo-sticky-text {
    font-weight: 600;
    font-size: .95rem;
    flex: 1;
}
.btn-white {
    background: var(--white);
    color: var(--purple);
    border: none;
    font-weight: 700;
    padding: .65rem 1.4rem;
    border-radius: var(--radius-lg);
    font-size: .9rem;
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,255,255,.3);
}

/* Padding body pour que le sticky ne cache pas le bas de page */
.result-demo-page { padding-bottom: 80px; }

/* ── Verdict émotionnel (QW3) ── */
.result-verdict-emotional {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gray-900);
    text-align: center;
    margin: 1.25rem 0 .4rem;
    line-height: 1.3;
}
.result-verdict-detail {
    text-align: center;
    font-size: .92rem;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: .5rem;
}

/* ── WhatsApp button (QW1) ── */
.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
    color: var(--white);
}

/* ── Section retry (QW4) ── */
.result-retry-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 2rem;
    background: var(--gradient-soft);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
}
.result-retry-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .4rem;
}
.result-retry-subtitle {
    color: var(--gray-600);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

/* ── From-demo banner on register (QW5) ── */
.from-demo-banner {
    background: linear-gradient(135deg, rgba(124,58,237,.1), rgba(236,72,153,.08));
    border: 1px solid rgba(124,58,237,.2);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.from-demo-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple);
    margin-bottom: .3rem;
}
.from-demo-subtitle {
    font-size: .88rem;
    color: var(--gray-700);
}

/* ── Register reassurance text (QW2) ── */
.register-reassurance {
    text-align: center;
    font-size: .82rem;
    color: var(--text-muted);
    margin-top: .9rem;
}

@media (max-width: 768px) {
    .result-demo-sticky-inner { justify-content: center; text-align: center; }
    .result-demo-sticky-text { flex: unset; width: 100%; }
    .result-demo-cta-main { min-width: unset; width: 100%; }
}

/* ---------- Prose (pages contenu) ---------- */
.prose { line-height: 1.8; color: var(--text-primary); }
.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 2.5rem 0 0.75rem;
}
.prose h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 0.5rem;
}
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 600; color: var(--gray-900); }
.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-dark); }
.prose em { font-style: italic; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--gray-50); }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
    box-shadow: var(--shadow-md);
    border-color: rgba(124,58,237,.25);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: .98rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--purple); }
.faq-question[aria-expanded="true"] { color: var(--purple); }

.faq-chevron {
    flex-shrink: 0;
    width: 20px; height: 20px;
    border-right: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .25s ease;
    opacity: .5;
}
.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
    opacity: 1;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.faq-answer.open { grid-template-rows: 1fr; }
.faq-answer > p {
    overflow: hidden;
    padding: 0 1.5rem;
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.faq-answer.open > p { padding: 0 1.5rem 1.25rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

/* ── Newsletter footer ───────────────────────────────────────── */
.footer-newsletter {
    border: 1px solid rgba(124,58,237,.35);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
    background: rgba(124,58,237,.06);
}
.footer-nl-text {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    margin-bottom: 1rem;
}
.footer-nl-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.footer-nl-text strong { color: var(--white); font-size: .9375rem; display: block; margin-bottom: .2rem; }
.footer-nl-text p { font-size: .82rem; color: var(--gray-400); margin: 0; line-height: 1.5; }

.footer-nl-input-wrap {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.footer-nl-input-wrap input[type="email"] {
    flex: 1;
    min-width: 180px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: .65rem 1rem;
    font-size: .875rem;
    color: var(--gray-900);
    outline: none;
}
.footer-nl-input-wrap input[type="email"]:focus {
    box-shadow: 0 0 0 2px rgba(124,58,237,.6);
}
.footer-nl-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: .65rem 1.25rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity var(--transition);
}
.footer-nl-btn:hover { opacity: .88; }
.footer-nl-btn:disabled { opacity: .6; cursor: not-allowed; }

.footer-nl-error {
    font-size: .78rem;
    color: #f87171;
    margin-top: .5rem;
    margin-bottom: 0;
}
.footer-nl-success {
    font-size: .875rem;
    color: #86efac;
    padding: .5rem 0;
    font-weight: 500;
}
.footer-nl-reassurance {
    font-size: .75rem;
    color: var(--gray-400);
    margin: .6rem 0 0;
    opacity: .8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; line-height: 1.6; max-width: 280px; }
.footer-links h4 { color: var(--white); font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { font-size: .875rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 1.5rem; font-size: .82rem; text-align: center; }

/* ---------- Animations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes growBar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(1.3); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes winnerGlow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(124,58,237,.2), var(--shadow-md); }
    50%       { box-shadow: 0 0 0 4px rgba(124,58,237,.35), 0 8px 32px rgba(124,58,237,.25); }
}

@keyframes shimmer {
    from { background-position: -200% center; }
    to   { background-position: 200% center; }
}

.fade-in { animation: countUp .5s ease forwards; }

/* Score cards entrance */
.scores-container .score-card {
    animation: fadeInUp .5s ease both;
}
.scores-container .score-card:nth-child(2) { animation-delay: .12s; }

/* Winner card pulse */
.score-card.winner {
    animation: fadeInUp .5s ease both, winnerGlow 2.5s ease-in-out .6s infinite;
}
.score-card.winner:nth-child(2) {
    animation: fadeInUp .5s ease .12s both, winnerGlow 2.5s ease-in-out .72s infinite;
}

/* Result hero fade-in */
.result-hero { animation: fadeInUp .6s ease both; }
.result-photos .result-photo { animation: fadeInUp .5s ease both; }
.result-photos .result-photo:nth-child(1) { animation-delay: .1s; }
.result-photos .result-photo:nth-child(2) { animation-delay: 0s; }
.result-photos .result-photo:nth-child(3) { animation-delay: .2s; }

/* Step cards staggered entrance */
.step-card {
    animation: fadeInUp .5s ease both;
}
.steps-grid .step-card:nth-child(2) { animation-delay: .1s; }
.steps-grid .step-card:nth-child(3) { animation-delay: .2s; }

/* Score bar shimmer on hover */
.score-card:hover .score-bar-fill {
    background-size: 200% auto;
    background-image: linear-gradient(90deg, var(--purple) 0%, var(--pink) 50%, var(--purple) 100%);
    animation: shimmer 1.5s linear infinite;
}

/* ============================================================
   CHALLENGE PAGE
   ============================================================ */
.challenge-page {
    padding: 3rem 1rem 5rem;
    min-height: 80vh;
}

.challenge-header {
    text-align: center;
    margin-bottom: 2rem;
}

.challenge-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--purple);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.challenge-avatar-fallback {
    font-size: 2.5rem;
}

.challenge-title {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .4rem;
}

.challenge-clicks {
    color: var(--gray-500);
    font-size: .85rem;
    margin: 0;
}

.challenge-scores-label {
    text-align: center;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

/* Traits card */
.challenge-traits-card {
    margin-top: 1.5rem;
}

.challenge-traits {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.challenge-trait {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .25rem;
    border-bottom: 1px solid var(--gray-100);
}

.challenge-trait:last-child {
    border-bottom: none;
}

.challenge-trait-name {
    font-size: .9rem;
    color: var(--gray-700);
    font-weight: 500;
}

.challenge-trait-parent {
    font-size: .85rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.parent-father {
    background: #EDE9FE;
    color: var(--purple);
}

.parent-mother {
    background: #FCE7F3;
    color: #BE185D;
}

.challenge-trait-pct {
    font-size: .78rem;
    opacity: .8;
}

/* Photos section */
.challenge-photos-section {
    margin-top: 2rem;
}

.challenge-blurred-hint {
    text-align: center;
    font-size: .82rem;
    color: var(--gray-500);
    margin-bottom: .75rem;
}

.challenge-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.challenge-photo-wrap {
    text-align: center;
}

.challenge-photo-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

.challenge-photo-img.photo-blurred {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
}

.challenge-photo-label {
    display: block;
    font-size: .78rem;
    color: var(--gray-600);
    margin-top: .35rem;
}

/* CTA block */
.challenge-cta-block {
    text-align: center;
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
    border-radius: var(--radius-xl);
}

.challenge-hook {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.challenge-hook-sub {
    color: var(--gray-600);
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

.challenge-cta-btn {
    margin-bottom: 1rem;
    min-width: 220px;
}

.challenge-cta-benefits {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: .8rem;
    color: var(--gray-500);
}

/* Challenge share card (dans result.php) */
.challenge-share-card {
    margin-top: 2rem;
}

/* from-challenge-banner accent color */
.from-challenge-banner {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    border-left-color: #F59E0B;
}

/* ============================================================
   QUOTA BAR (upload.php)
   ============================================================ */
.quota-bar {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .85rem;
    margin-bottom: 1.5rem;
}

.quota-remaining { color: var(--gray-700); }
.quota-remaining.quota-empty { color: #DC2626; }
.quota-more-link {
    color: var(--purple);
    font-weight: 600;
    font-size: .8rem;
    white-space: nowrap;
}

.quota-blocked-box {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #fdf4ff 0%, #fef3c7 100%);
    border-radius: var(--radius-xl);
    border: 2px solid #E9D5FF;
    margin-bottom: 2rem;
}
.quota-blocked-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: .5rem;
}
.quota-blocked-sub {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-page {
    padding: 3rem 1rem 5rem;
}

.pricing-blocked-banner {
    text-align: center;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid #F59E0B;
}
.pricing-blocked-title { font-size: 1.1rem; font-weight: 800; margin-bottom: .25rem; }
.pricing-blocked-sub   { color: var(--gray-700); font-size: .9rem; margin: 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 3.5rem;
    align-items: stretch;
}

.pricing-grid > *:nth-child(1) { grid-column: span 2; }
.pricing-grid > *:nth-child(2) { grid-column: span 2; }
.pricing-grid > *:nth-child(3) { grid-column: span 2; }
.pricing-grid > *:nth-child(4) { grid-column: 2 / span 2; }
.pricing-grid > *:nth-child(5) { grid-column: 4 / span 2; }

.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.pricing-card.featured {
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--purple), var(--pink)) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(124,58,237,.18);
    transform: translateY(-6px);
}
.pricing-card.featured:hover { transform: translateY(-9px); }

.pricing-card.premium {
    background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
    border-color: #E9D5FF;
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    padding: .3rem .9rem;
    border-radius: 999px;
    white-space: nowrap;
}
.pricing-badge-gold {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.pricing-card-inner {
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pricing-plan-name {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: .5rem;
}

.pricing-analyses {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.pricing-price-block {
    margin-bottom: 1.5rem;
}
.pricing-price {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}
.pricing-per {
    font-size: .75rem;
    color: var(--gray-500);
    display: block;
    margin-top: .2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1;
}
.pricing-features li {
    font-size: .875rem;
    color: var(--gray-700);
}

.pricing-btn {
    width: 100%;
    justify-content: center;
    margin-bottom: .75rem;
}

.pricing-secure {
    font-size: .68rem;
    color: var(--gray-400);
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Pricing — Maxi note + gift banner */
.pricing-maxi-note {
    font-size: .78rem;
    color: var(--gray-500);
    text-align: center;
    padding: .6rem 1rem .8rem;
    font-style: italic;
    margin: 0;
}
.pricing-gift-banner {
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
    font-size: .95rem;
    color: var(--gray-700);
    line-height: 1.6;
}
.pricing-gift-banner strong { color: var(--gray-900); }
.pricing-gift-soon {
    font-size: .82rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 640px;
    margin: 0 auto;
}
.pricing-faq-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
}
.pricing-faq-list { display: flex; flex-direction: column; gap: .75rem; }
.pricing-faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Payment success */
.payment-success-page {
    padding: 4rem 1rem;
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.payment-success-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.payment-success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.payment-success-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.payment-success-sub   { color: var(--gray-600); margin-bottom: .75rem; }
.payment-success-detail {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: .75rem 1rem;
    font-size: .9rem;
    margin-bottom: 2rem;
}
.payment-success-actions { display: flex; flex-direction: column; gap: .75rem; }

/* Responsive pricing */
@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid > * { grid-column: span 1 !important; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-3px); }
}

/* ============================================================
   ANALYSE PAR TRAIT — DÉMO (result-demo.php)
   ============================================================ */
.demo-traits-section {
    margin-top: 2rem;
}

.demo-traits-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.25rem;
}

.demo-traits-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.demo-badge {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .09em;
    color: var(--purple);
    background: #EDE9FE;
    padding: .2rem .5rem;
    border-radius: 4px;
}

.demo-trait-row {
    display: grid;
    grid-template-columns: 1.4rem 4rem 1fr 6rem;
    align-items: center;
    gap: .65rem;
    margin-bottom: .9rem;
}

.demo-trait-icon { font-size: .95rem; text-align: center; }

.demo-trait-label {
    font-size: .875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.demo-trait-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.demo-trait-fill {
    height: 100%;
    border-radius: 4px;
    animation: traitReveal .8s ease both;
}

@keyframes traitReveal {
    from { width: 0 !important; }
}

.demo-trait-fill.father { background: var(--purple); }
.demo-trait-fill.mother { background: var(--pink); }

.demo-trait-score {
    font-size: .8rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.demo-trait-score.father-score { color: var(--purple); }
.demo-trait-score.mother-score { color: #BE185D; }

.demo-traits-phrase {
    font-size: .875rem;
    color: var(--gray-600);
    line-height: 1.65;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    margin-bottom: 0;
}

/* ============================================================
   APERÇU RAPPORT (result-demo.php)
   ============================================================ */
.report-preview-wrap {
    margin-top: 2rem;
}

.report-preview-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: .9rem;
}

.report-preview-card {
    background: linear-gradient(150deg, #7C3AED 0%, #C026D3 50%, #EC4899 100%);
    border-radius: 20px;
    padding: 1.5rem 1.5rem 1.25rem;
    color: white;
    transform: rotate(-2deg);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
    user-select: none;
    pointer-events: none;
}

.report-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: .88rem;
    margin-bottom: 1rem;
}

.report-preview-divider {
    height: 2px;
    background: rgba(255,255,255,.22);
    border-radius: 1px;
    margin-bottom: 1.25rem;
}

.report-preview-photos {
    display: flex;
    align-items: flex-end;
    gap: .65rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.report-preview-photo {
    text-align: center;
    flex: 1;
}

.report-preview-photo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.45);
    display: block;
    margin: 0 auto .4rem;
}

.report-preview-photo.main img {
    width: 82px;
    height: 82px;
    border-color: rgba(255,255,255,.85);
    border-width: 3px;
}

.report-preview-photo span {
    font-size: .68rem;
    opacity: .88;
    display: block;
}

.report-preview-traits {
    text-align: center;
    font-size: .78rem;
    opacity: .8;
    letter-spacing: .03em;
    margin-bottom: .75rem;
}

.report-preview-url {
    text-align: center;
    font-size: .68rem;
    opacity: .55;
    letter-spacing: .07em;
}

@media (max-width: 480px) {
    .report-preview-card { transform: rotate(-1deg); }
}

/* ============================================================
   TEASER LOCKED (result-demo.php)
   ============================================================ */
.teaser-locked {
    margin-top: 2rem;
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    /* Gradient border trick via background-clip */
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--purple), var(--pink)) border-box;
    border: 2px solid transparent;
}

.teaser-locked-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: .3rem;
}

.teaser-locked-subtitle {
    color: var(--gray-600);
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

/* Boutons verrouillés */
.teaser-btns {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: .75rem;
}

.teaser-btn {
    position: relative;
    opacity: 0.55;
    cursor: pointer;
    filter: blur(.3px);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    user-select: none;
}

.teaser-lock-badge {
    font-size: .65rem;
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    line-height: 1;
}

.teaser-challenge-row {
    margin-bottom: 1.25rem;
}

.teaser-btn-wide {
    width: 100%;
    justify-content: center;
}

/* CTA déverrouiller — animation pulse */
.teaser-unlock-cta {
    width: 100%;
    justify-content: center;
    animation: teaser-pulse 2.6s ease-in-out infinite;
}

@keyframes teaser-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
    50%       { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
    25%       { box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.25); }
}

/* Tooltip au clic */
.teaser-tooltip {
    position: fixed;
    background: var(--gray-900);
    color: var(--white);
    font-size: .78rem;
    font-weight: 500;
    padding: .4rem .85rem;
    border-radius: var(--radius-sm);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s, transform .15s;
    white-space: nowrap;
}

.teaser-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile : section sticky en bas du viewport */
@media (max-width: 768px) {
    .teaser-locked {
        position: sticky;
        bottom: .75rem;
        z-index: 40;
        box-shadow: 0 -4px 24px rgba(0,0,0,.12);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }

    /* Reorder hero elements: badge → title → photos → description → CTA */
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    h1, .hero-title { font-size: 30px; line-height: 1.2; }

    /* Register/Login : header mauve compact */
    .auth-header { padding: 24px 20px; }
    .auth-header .auth-icon { display: none; }
    .auth-header h1 { font-size: 28px; }
    .auth-header p { font-size: 14px; margin-top: .2rem; }

    .hero-badge          { order: 1; }
    .hero-title          { order: 2; }
    .hero-mobile-photos-wrap { order: 3; width: 100%; }
    .hero-description    { order: 4; margin: .5rem auto .5rem; line-height: 1.4; }
    .hero-description-seo { order: 5; font-size: .82rem; margin-bottom: 8px; line-height: 1.4; }
    .hero-actions        { order: 6; justify-content: center; margin-top: 28px; gap: 12px; }

    .steps-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    .upload-grid { grid-template-columns: 1fr; max-width: 320px; margin: 2rem auto; }

    .scores-container { grid-template-columns: 1fr; }

    /* result-demo : photos en ligne réduite */
    .result-photos { flex-direction: row; justify-content: center; align-items: flex-end; gap: .75rem; }
    .result-photo.parent img  { width: 64px !important; height: 64px !important; }
    .result-photo.self   img  { width: 80px !important; height: 80px !important; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: 1rem;
        gap: .5rem;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    /* Switcher langue dans le header mobile */
    .lang-switch-mobile { display: flex; }

    /* Masquer le switcher langue dans le menu burger */
    .nav-links .lang-switch { display: none; }

    .history-table thead { display: none; }
    .history-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        padding: .75rem;
    }
    .history-table td {
        display: flex;
        justify-content: space-between;
        padding: .4rem .5rem;
        border: none;
    }
    .history-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--gray-600);
    }
}

@media (max-width: 480px) {
    .btn-lg { width: 100%; }
    .auth-card { border-radius: var(--radius-lg); }
}

/* ============================================================
   HERO MOBILE PHOTOS (injecté par JS sur index.php mobile)
   ============================================================ */
.hero-mobile-photos-wrap {
    display: none; /* caché par défaut, affiché par JS uniquement sur mobile */
}

.hero-mobile-photos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1.25rem;
}

.hero-mobile-photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.hero-mobile-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--purple);
    background: var(--gray-100);
}

.hero-mobile-circle--self {
    width: 82px;
    height: 82px;
    border-color: var(--pink);
    border-width: 3px;
}

.hero-mobile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-mobile-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-600);
    letter-spacing: .02em;
}

.hero-mobile-score-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    margin-top: .85rem;
    font-size: .82rem;
    font-weight: 700;
}

.hms-father { color: var(--purple); }
.hms-sep    { color: var(--gray-400); font-size: .75rem; }
.hms-mother { color: #BE185D; }

@media (max-width: 768px) {
    .hero-mobile-photos-wrap {
        display: block;
        margin-top: 12px;
        text-align: center;
    }
}

/* ============================================================
   HOME STICKY CTA MOBILE (injecté par JS)
   ============================================================ */
#home-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
    padding: .9rem 1rem;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 -4px 20px rgba(124,58,237,.3);
}

#home-sticky-mobile.show {
    transform: translateY(0);
}

.home-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    max-width: 480px;
    margin: 0 auto;
}

.home-sticky-text {
    color: white;
    font-size: .88rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.home-sticky-btn {
    background: white;
    color: var(--purple);
    font-size: .82rem;
    font-weight: 800;
    padding: .5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity .15s;
}
.home-sticky-btn:hover { opacity: .9; }

@media (max-width: 768px) {
    #home-sticky-mobile { display: block; }

    /* Padding sur le footer pour que le sticky ne masque pas son contenu */
    .site-footer { padding-bottom: 80px; }
}

/* ============================================================
   RESULT-DEMO MOBILE — corrections layout
   ============================================================ */
@media (max-width: 768px) {
    /* Teaser locked : ne pas être sticky, laisser le scroll normal */
    .teaser-locked {
        position: static !important;
        box-shadow: none !important;
        margin-bottom: 0;
    }

    /* Padding-bottom pour que le sticky ne cache pas le dernier CTA */
    .result-demo-page .container {
        padding-bottom: 80px;
    }

    /* Sticky demo bar : masqué au chargement, apparaît au scroll (géré par JS) */
    .result-demo-sticky {
        transform: translateY(100%);
    }
    .result-demo-sticky.show {
        transform: translateY(0);
    }

    /* Rapport preview : retirer la rotation sur très petits écrans */
    .report-preview-card {
        transform: rotate(-1deg);
    }

    /* Trait grid : ajuster les colonnes */
    .demo-trait-row {
        grid-template-columns: 1.4rem 3.5rem 1fr 5rem;
        gap: .4rem;
    }
}


/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */

.testimonials-section {
    background: linear-gradient(135deg, #FAF5FF 0%, #FDF2F8 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 2px 16px rgba(124,58,237,.08);
    border: 1px solid rgba(124,58,237,.08);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124,58,237,.14);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: .5px;
}

.testimonial-name {
    font-size: .88rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.3;
}

.testimonial-stars {
    margin-top: .15rem;
    font-size: .9rem;
    line-height: 1;
}
.star-filled { color: #F59E0B; }
.star-empty  { color: #E5E7EB; }

.testimonial-quote {
    font-size: .9rem;
    color: var(--gray-600);
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .testimonials-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: .75rem;
        scrollbar-width: none;
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    .testimonial-card {
        min-width: 270px;
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}


/* ============================================================
   PAGE 404
   ============================================================ */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-illustration {
    margin-bottom: 1.5rem;
}
.error-code {
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .5rem;
}
.error-h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: .75rem;
    line-height: 1.4;
}
.error-desc {
    color: var(--gray-500);
    font-size: .95rem;
}


/* ============================================================
   CONFETTI EASTER EGG (50/50)
   ============================================================ */

#confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}
.confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}


/* ============================================================
   HERO MOBILE — Réordonnancement confidentialité
   ============================================================ */
@media (max-width: 768px) {
    .hero-text {
        display: flex;
        flex-direction: column;
    }
    /* Ordre naturel (desktop) conservé sauf pour Azure badge */
    .hero-azure-badge       { order: 10; margin-top: .75rem; }
    .hero-title             { order: 1; }
    .hero-h2-seo            { order: 2; }
    .hero-description       { order: 3; }
    .hero-description-seo   { order: 4; }
    .hero-actions           { order: 5; }
    .privacy-badge          { order: 6; }
    .privacy-note           { order: 7; }
}


/* ============================================================
   UPLOAD ZONES — Réduction hauteur sur mobile
   ============================================================ */
@media (max-width: 768px) {
    .upload-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: .65rem;
        margin: 1.25rem 0;
        max-width: 100%;
    }
    .upload-slot {
        aspect-ratio: auto;
        min-height: 110px;
        max-height: 120px;
    }
    .upload-placeholder {
        padding: .6rem .4rem;
    }
    .upload-icon {
        margin-bottom: .3rem;
    }
    .upload-icon svg,
    .upload-icon img {
        width: 60px !important;
        height: 60px !important;
    }
    .upload-slot-label {
        font-size: .78rem;
    }
    .upload-hint {
        font-size: .65rem;
        display: block;
    }
    .upload-preview img {
        object-fit: cover;
    }
}


/* ============================================================
   NAV — Bouton S'inscrire + Menu mobile amélioré
   ============================================================ */

/* Bouton S'inscrire — identique à .btn-primary */
.btn-signup-nav {
    background: var(--gradient);
    color: var(--white) !important;
    border: none;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: .85rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-signup-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,58,237,.45);
    color: var(--white) !important;
}

/* Lien déconnexion — plus discret */
.nav-link-logout {
    font-size: .85rem;
    opacity: .7;
}

/* Menu mobile overlay */
.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-100);
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    z-index: 999;
    padding: 1rem 1.5rem 1.5rem;
    animation: slideDown .2s ease;
}
.nav-mobile-menu.open {
    display: block;
    aria-hidden: false;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-center-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 1rem)); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
.nav-mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.nav-mobile-menu ul li a {
    display: block;
    padding: .7rem .5rem;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.nav-mobile-menu ul li a:hover {
    background: var(--gray-50);
    color: var(--purple);
}
.nav-mobile-separator {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: .6rem 0;
}
.nav-mobile-cta {
    padding-top: .4rem;
}

@media (max-width: 768px) {
    .nav-mobile-cta .btn-signup-nav,
    .nav-mobile-cta .btn-primary {
        display: block;
        width: 100%;
        border-radius: 50px;
        background: linear-gradient(135deg, #7C3AED, #EC4899);
        color: white !important;
        font-weight: 600;
        font-size: 16px;
        padding: 14px 24px;
        border: none;
        text-align: center;
    }
}

/* Sur desktop, cacher le menu mobile */
@media (min-width: 769px) {
    .nav-mobile-menu { display: none !important; }
}


/* ============================================================
   HERO FREE NUDGE
   ============================================================ */
.hero-free-nudge {
    font-size: .78rem;
    color: var(--gray-400);
    margin-top: .5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ============================================================
   REGISTER — Badges de gratuité
   ============================================================ */
.register-free-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
}
.register-free-badge {
    background: #F5F3FF;
    color: #7C3AED;
    border: 1px solid #DDD6FE;
    border-radius: var(--radius-full);
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .8rem;
    white-space: nowrap;
}

/* ============================================================
   PRICING — Card Gratuit
   ============================================================ */
.pricing-card-free {
    border: 1.5px solid var(--gray-200);
    opacity: .92;
}
.pricing-badge-free {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-radius: var(--radius-full);
    padding: .25rem .7rem;
    display: inline-block;
    margin-bottom: .5rem;
}
.pricing-free-nocb {
    font-size: .75rem;
    color: var(--gray-400);
    text-align: center;
    margin-top: .5rem;
}


/* ============================================================
   HERO MOBILE — Correction chevauchement texte SEO / scores
   ============================================================ */
@media (max-width: 768px) {
    /* Masquer le texte SEO dans le hero (répété dans le corps) */
    .hero-description-seo { display: none; }

    /* Espacement entre la hero-card et ce qui suit */
    .hero-visual { margin-bottom: 1.5rem; }

    /* Espacement interne de la hero-card */
    .hero-card { padding: 1.25rem; }

    /* Séparation scores / photos dans la carte */
    .hero-scores { margin-top: .5rem; }

    /* Séparation entre les photos et le score-bar */
    .hero-card-photos { margin-bottom: .5rem; }
}

/* ══════════════════════════════════════════════
   PAGE À PROPOS
══════════════════════════════════════════════ */

/* ── Hero ── */
.about-hero {
    background: linear-gradient(135deg, #FAF5FF 0%, #FDF2F8 100%);
    padding: 5rem 0 4rem;
    overflow: hidden;
}
.about-hero-inner {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}
.about-hero-text { flex: 1; min-width: 0; }
.about-h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}
.about-hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 0;
}
.about-hero-cta { margin-top: 1.75rem; }
.about-hero-img {
    flex: 0 0 auto;
    width: min(440px, 45%);
}
.about-hero-img img { width: 100%; height: auto; }

/* ── Sections communes ── */
.about-section-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 4rem 0;
}
.about-section-title {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.75rem;
}

/* ── Histoire ── */
.about-story { background: var(--white); }
.about-story-text { display: flex; flex-direction: column; gap: 1.1rem; }
.about-story-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gray-600);
}

/* ── Mission ── */
.about-mission { background: #F9FAFB; }
.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.about-mission-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.about-mission-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .75rem;
}
.about-mission-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: .5rem;
}
.about-mission-card p {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--gray-500);
    margin: 0;
}

/* ── Technologie ── */
.about-tech { background: var(--white); }
.about-tech-inner {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}
.about-tech-text { flex: 1; }
.about-tech-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: .9rem;
}
.about-tech-text p:last-child { margin-bottom: 0; }
.about-tech-aside {
    flex: 0 0 auto;
    padding-top: .5rem;
}
.about-tech-badge {
    white-space: normal;
    text-align: center;
    max-width: 200px;
    line-height: 1.4;
}

/* ── Équipe ── */
.about-team { background: #F9FAFB; }
.about-team-intro {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.about-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 560px;
}
.about-team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    text-align: center;
}
.about-team-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    letter-spacing: -.5px;
}
.about-team-avatar-1 {
    background: linear-gradient(135deg, #DDD6FE, #A78BFA);
    color: var(--purple-dark);
}
.about-team-avatar-2 {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
    color: #9D174D;
}
.about-team-role {
    font-size: .88rem;
    color: var(--purple);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* ── Stats ── */
.about-stats { background: var(--white); }
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    text-align: center;
}
.about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
    background: #F9FAFB;
}
.about-stat-icon { font-size: 1.6rem; }
.about-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.about-stat-label {
    font-size: .8rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ── CTA final ── */
.about-cta-section {
    background: var(--gradient);
    padding: 5rem 0;
}
.about-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.about-cta-inner h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: .75rem;
}
.about-cta-inner > p {
    color: rgba(255,255,255,.88);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}
.about-cta-btn {
    background: var(--white);
    color: var(--purple);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    padding: .9rem 2.25rem;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.about-cta-btn:hover { opacity: .92; transform: translateY(-1px); }
.about-cta-nudge {
    margin-top: 1rem;
    font-size: .85rem;
    color: rgba(255,255,255,.75);
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .about-mission-grid { grid-template-columns: 1fr; }
    .about-stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .about-tech-inner   { flex-direction: column; gap: 1.5rem; }
    .about-tech-aside   { align-self: flex-start; }
}

@media (max-width: 768px) {
    .about-hero         { padding: 2.5rem 0 2rem; }
    .about-hero-inner   { flex-direction: column-reverse; gap: 1.5rem; }
    .about-hero-img     { width: 100%; max-width: 300px; align-self: center; }
    .about-h1           { font-size: 1.75rem; }
    .about-section-wrap { padding: 2.5rem 0; }
    .about-section-title{ font-size: 1.35rem; }
    .about-team-grid    { grid-template-columns: 1fr; max-width: 100%; }
    .about-cta-section  { padding: 3rem 0; }
}
