/* ═══════════════════════════════════════════════════════════════════
   Jour de Naissance — Page d'accueil publique
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens─────────────────── */
:root {
    --clay:        #c4785a;
    --clay-dark:   #9a5840;
    --clay-light:  #e09b80;
    --sage:        #6b9e7e;
    --sage-light:  #a8ccb5;
    --gold:        #c9973a;
    --night:       #3d4f72;
    --bg:          #f7f2ed;
    --bg-alt:      #f0e9e0;
    --surface:     rgba(255,255,255,0.72);
    --border:      rgba(196,120,90,0.12);
    --border-mid:  rgba(196,120,90,0.22);
    --text:        #2a1f17;
    --text-2:      #6b5748;
    --text-3:      #a08878;
    --blur:        blur(20px) saturate(1.6);
    --shadow-sm:   0 2px 12px rgba(42,31,23,0.08);
    --shadow-md:   0 8px 32px rgba(42,31,23,0.10);
    --shadow-lg:   0 24px 64px rgba(42,31,23,0.14);
    --r-sm:        0.75rem;
    --r:           1.25rem;
    --r-lg:        1.75rem;
    --r-xl:        2.25rem;
    --font-display:'Fraunces', Georgia, serif;
    --font-body:   'Figtree', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

.home-body {
    font-family: var(--font-body), serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* ── Utilitaires ─────────────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(420px, calc(100% - 24px));
}

/* TOAST */
.flash {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;
    border-radius: 12px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);

    background: #fff;

    animation: toastIn 0.25s ease-out;
}

/* ICON (optionnel visuel) */
.flash__icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* SUCCESS */
.flash--success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #10b981;
}
.flash--success .flash__icon {
    background: #10b981;
}

/* ERROR */
.flash--error {
    background: #fef2f2;
    color: #7f1d1d;
    border-color: #ef4444;
}
.flash--error .flash__icon {
    background: #ef4444;
}

/* WARNING */
.flash--warning {
    background: #fffbeb;
    color: #78350f;
    border-color: #f59e0b;
}
.flash--warning .flash__icon {
    background: #f59e0b;
}

/* INFO */
.flash--info {
    background: #eff6ff;
    color: #1e3a8a;
    border-color: #3b82f6;
}
.flash--info .flash__icon {
    background: #3b82f6;
}

/* ANIMATION entrée */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ANIMATION sortie */
.flash.is-hiding {
    animation: toastOut 0.25s ease forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    font-family: var(--font-display), serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 0.875rem;
}

.section-title-accent {
    display: block;
    color: var(--clay);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Boutons ─────────────────────────────────────────────────────── */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body), serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: transform 0.15s, box-shadow 0.15s, background 0.18s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}
.home-btn:hover { transform: translateY(-1px); }

.home-btn--primary {
    padding: 0.65rem 1.375rem;
    background: var(--clay);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 3px 12px rgba(196,120,90,0.35);
}
.home-btn--primary:hover { background: var(--clay-dark); box-shadow: 0 6px 20px rgba(196,120,90,0.45); }

.home-btn--ghost {
    padding: 0.65rem 1.25rem;
    background: transparent;
    color: var(--text-2);
    font-size: 0.9rem;
}
.home-btn--ghost:hover { color: var(--clay); background: rgba(196,120,90,0.06); }

.home-btn--hero {
    padding: 0.9rem 2rem;
    background: var(--clay);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(196,120,90,0.4);
    border-radius: var(--r);
}
.home-btn--hero:hover { background: var(--clay-dark); box-shadow: 0 10px 32px rgba(196,120,90,0.5); }

.home-btn--outline {
    padding: 0.9rem 2rem;
    background: var(--surface);
    backdrop-filter: var(--blur);
    color: var(--text);
    font-size: 1rem;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--r);
}
.home-btn--outline:hover { background: rgba(255,255,255,0.9); border-color: var(--clay); }

/* ── HEADER ──────────────────────────────────────────────────────── */
.home-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,242,237,0.80);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border-bottom: 1px solid var(--border);
}

.home-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 4rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-family: var(--font-display), serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--clay);
    flex-shrink: 0;
}
.home-logo-icon { font-size: 1.3rem; }
.home-logo-text { display: none; }
@media (min-width: 480px) { .home-logo-text { display: inline; } }

.home-nav {
    display: none;
    gap: 0.25rem;
}
@media (min-width: 768px) { .home-nav { display: flex; } }

.home-nav-link {
    padding: 0.45rem 0.875rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-size: 0.875rem;
    color: var(--text-2);
    transition: color 0.18s, background 0.18s;
}
.home-nav-link:hover { color: var(--clay); background: rgba(196,120,90,0.06); }

.home-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero-public, .auth-page, .reset-page {
    position: relative;
    overflow: hidden;
    padding: 5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 900px) {
    .hero-public, .auth-page, .reset-page {
        flex-direction: row;
        align-items: center;
        max-width: 1100px;
        margin: 0 auto;
        padding: 6rem 1.5rem 5rem;
        gap: 4rem;
    }
}

/* Blobs décoratifs */
.hero-blobs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.25;
    animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob--1 { width: 400px; height: 400px; background: rgba(196,120,90,0.5); top: -10%; left: -10%; animation-delay: 0s; }
.hero-blob--2 { width: 350px; height: 350px; background: rgba(107,158,126,0.5); top: 20%; right: -8%; animation-delay: 2s; }
.hero-blob--3 { width: 300px; height: 300px; background: rgba(201,151,58,0.4); bottom: -5%; left: 30%; animation-delay: 4s; }

@keyframes blobFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(20px, -30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--clay);
    background: rgba(196,120,90,0.08);
    border: 1px solid rgba(196,120,90,0.2);
    padding: 0.3rem 0.875rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title, .auth-title, .reset-title {
    font-family: var(--font-display), serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.hero-title-em {
    display: block;
    font-style: italic;
    font-weight: 300;
    color: var(--clay);
}

.hero-desc, .auth-desc, .reset-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.hero-trust li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}
.hero-trust li svg { width: 0.9rem; height: 0.9rem; color: var(--sage); }

/* Maquette téléphone */
.hero-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.hero-phone {
    width: 220px;
    background: var(--text);
    border-radius: 2rem;
    padding: 0.75rem;
    box-shadow: 0 32px 64px rgba(42,31,23,0.3), 0 8px 24px rgba(42,31,23,0.2);
    margin: 0 auto;
}

.hero-phone-screen {
    background: var(--bg);
    border-radius: 1.4rem;
    overflow: hidden;
    padding: 1rem;
}

.hero-phone-bar {
    width: 60px;
    height: 4px;
    background: var(--border-mid);
    border-radius: 2px;
    margin: 0 auto 1rem;
}

.hero-mock-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.875rem;
}

.hero-mock-name {
    font-family: var(--font-display), serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clay);
    margin-bottom: 0.2rem;
}

.hero-mock-age {
    font-size: 0.7rem;
    color: var(--text-3);
    margin-bottom: 0.875rem;
}

.hero-mock-stats {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.hero-mock-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-2);
    background: var(--bg-alt);
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
}

/* ── FEATURES ────────────────────────────────────────────────────── */
.features {
    padding: 5rem 0;
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background: var(--surface);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Couleurs des bordures hautes par type */
.feature-card--feed        ::before, .feature-card--feed::before        { background: var(--gold); }
.feature-card--change      ::before, .feature-card--change::before      { background: var(--sage); }
.feature-card--pump        ::before, .feature-card--pump::before        { background: var(--sage-light); }
.feature-card--sleep       ::before, .feature-card--sleep::before       { background: var(--night); }
.feature-card--medical     ::before, .feature-card--medical::before     { background: var(--clay-light); }
.feature-card--wishlist    ::before, .feature-card--wishlist::before    { background: var(--gold); }
.feature-card--photo       ::before, .feature-card--photo::before       { background: var(--sage); }
.feature-card--contraction ::before, .feature-card--contraction::before { background: var(--clay); }
.feature-card--share       ::before, .feature-card--share::before       { background: var(--night); }

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clay);
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }

.feature-title {
    font-family: var(--font-display), serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.feature-desc {
    font-size: 0.84rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── WHY ─────────────────────────────────────────────────────────── */
.why {
    padding: 5rem 0;
    background: var(--bg);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.why-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon svg { width: 1.5rem; height: 1.5rem; }

.why-icon--lock   { background: rgba(61,79,114,0.10);   color: var(--night); }
.why-icon--mobile { background: rgba(107,158,126,0.12); color: var(--sage); }
.why-icon--free   { background: rgba(201,151,58,0.12);  color: var(--gold); }

.why-title {
    font-family: var(--font-display), serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.why-desc {
    font-size: 0.875rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(140deg, #e8d5c4 0%, #d4b898 100%);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 80% 20%, rgba(255,255,255,0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.cta-title {
    font-family: var(--font-display), serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--clay-dark);
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.65;
}

.cta-note {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.home-footer {
    background: var(--text);
    padding: 2.5rem 1.5rem;
}

.home-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    text-align: center;
}

.home-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #fff;
}

.home-footer-copy {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}

.home-footer-links {
    display: flex;
    gap: 1.5rem;
}
.home-footer-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.18s;
}
.home-footer-links a:hover { color: rgba(255,255,255,0.9); }

/* ═══════════════════════════════════════════════════════════════════
   Jour de Naissance - Login - Reset de mot de passe
   ═══════════════════════════════════════════════════════════════════ */
.auth-content, .reset-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.auth-body {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Champs */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: 0.02em;
}

/* Ligne label + lien */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-link {
    font-size: 0.78rem;
    color: var(--clay);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.18s ease;
}

.auth-link:hover {
    opacity: 0.75;
}

/* Inputs */
.field-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-family: var(--font-body), serif;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.field-input:focus {
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(196,120,90,0.12);
}

.field-input::placeholder {
    color: var(--text-3);
}

/* Checkbox */
.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.375rem;
    border: 1.5px solid var(--border);
    background: var(--bg);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition:
        background 0.18s,
        border-color 0.18s;
}

.auth-remember input[type="checkbox"]:checked {
    background: var(--clay);
    border-color: var(--clay);
}

.auth-remember input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0.12rem;
    left: 0.3rem;
    width: 0.35rem;
    height: 0.65rem;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Bouton */
.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

/* Message d'erreur */
.auth-alert {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(192,57,43,0.18);
    background: rgba(192,57,43,0.06);
    color: #c0392b;
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Séparateur */
.auth-divider, .reset-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* Footer inscription */
.auth-footer, .reset-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.5;
}

.auth-footer a, .reset-footer a, .reset-desc a {
    color: var(--clay);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
    transition: opacity 0.18s ease;
}

.auth-footer a:hover, .reset-footer a:hover, .reset-desc a:hover {
    opacity: 0.75;
}

.auth-footer a:focus-visible, .reset-footer a:focus-visible, .reset-desc a:focus-visible {
    outline: none;
    text-decoration: underline;
}

/* Dark mode */
[data-theme="dark"] .field-input {
    background: var(--bg-alt);
    color: var(--text);
}

[data-theme="dark"] .auth-alert {
    background: rgba(192,57,43,0.12);
}

.password-field {
    position: relative;
    width: 100%;
}

/* input */
.password-input {
    width: 100%;
    padding: 12px 44px 12px 14px; /* espace à droite pour l’icône */
    font-size: 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* focus */
.password-input:focus {
    border-color: #7c3aed; /* violet */
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* bouton oeil */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    cursor: pointer;

    color: #6b7280;
}

/* hover */
.password-toggle:hover {
    color: #111827;
}

/* icône */
.password-icon {
    font-size: 18px;
}

.legal-page {
    padding: 60px 20px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.legal-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.legal-section p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-note {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 10px;
}
