/* Accueil public (index.php) */
html {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Layout ───────────────────────────────────────── */
.landing {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    color: #0f172a;
    overflow-x: hidden;
}

html[data-theme="dark"] .landing {
    color: #f1f5f9;
    color-scheme: dark;
}

.landing__bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(155deg, #eef2ff 0%, #f8fafc 40%, #f5f3ff 100%);
    pointer-events: none;
}

html[data-theme="dark"] .landing__bg {
    background: linear-gradient(155deg, #080d18 0%, #0c1222 45%, #110e1c 100%);
}

.landing__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: landing-float 14s ease-in-out infinite;
}

.landing__orb--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, #818cf8 0%, transparent 70%);
}

.landing__orb--2 {
    width: min(360px, 55vw);
    height: min(360px, 55vw);
    bottom: 10%;
    right: -4%;
    background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
    animation-delay: -5s;
}

.landing__orb--3 {
    width: min(280px, 45vw);
    height: min(280px, 45vw);
    top: 42%;
    left: 38%;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
    animation-delay: -9s;
    opacity: 0.35;
}

@keyframes landing-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(18px, -22px) scale(1.04); }
    66% { transform: translate(-14px, 16px) scale(0.97); }
}

/* ── Header ─────────────────────────────────────── */
.landing__top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
}

.landing__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.landing__brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b6fd8, #7c5cbf);
    color: #fff;
    font-size: 1rem;
}

.landing__theme {
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.landing__theme:hover {
    background: #fff;
    transform: translateY(-1px);
}

html[data-theme="dark"] .landing__theme {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    color: #cbd5e1;
}

/* ── Main ─────────────────────────────────────────── */
.landing__main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem) 3rem;
}

/* Entrée progressive */
.landing-animate {
    animation: landing-rise 0.7s ease both;
}

.landing-animate--delay-1 { animation-delay: 0.1s; }
.landing-animate--delay-2 { animation-delay: 0.2s; }
.landing-animate--delay-3 { animation-delay: 0.3s; }
.landing-animate--delay-4 { animation-delay: 0.4s; }

@keyframes landing-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero ─────────────────────────────────────────── */
.landing__hero {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(2rem, 6vw, 3.5rem);
}

.landing__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5b6fd8;
    background: rgba(91, 111, 216, 0.1);
    border: 1px solid rgba(91, 111, 216, 0.2);
    border-radius: 999px;
}

html[data-theme="dark"] .landing__badge {
    color: #a5b4fc;
    background: rgba(91, 111, 216, 0.15);
    border-color: rgba(91, 111, 216, 0.3);
}

.landing__title {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.landing__title-accent {
    background: linear-gradient(135deg, #5b6fd8 0%, #8b5cf6 50%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing__lead {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    line-height: 1.65;
    color: #64748b;
}

html[data-theme="dark"] .landing__lead {
    color: #94a3b8;
}

.landing__lead strong {
    color: #334155;
}

html[data-theme="dark"] .landing__lead strong {
    color: #e2e8f0;
}

.landing__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.landing__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.landing__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #5b6fd8 0%, #6b4f9a 100%);
    box-shadow: 0 8px 24px rgba(91, 111, 216, 0.35);
}

.landing__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(91, 111, 216, 0.45);
    color: #fff;
}

.landing__btn--ghost {
    color: #5b6fd8;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(91, 111, 216, 0.35);
    backdrop-filter: blur(6px);
}

.landing__btn--ghost:hover {
    background: rgba(91, 111, 216, 0.08);
    transform: translateY(-1px);
    color: #4a5bc4;
}

html[data-theme="dark"] .landing__btn--ghost {
    color: #a5b4fc;
    background: rgba(20, 27, 45, 0.7);
    border-color: rgba(91, 111, 216, 0.4);
}

html[data-theme="dark"] .landing__btn--ghost:hover {
    background: rgba(91, 111, 216, 0.15);
    color: #c7d2fe;
}

.landing__session {
    flex-basis: 100%;
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

html[data-theme="dark"] .landing__session {
    color: #94a3b8;
}

/* ── Sections communes ────────────────────────────── */
.landing__section-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ── Étapes ───────────────────────────────────────── */
.landing__flow {
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(91, 111, 216, 0.08);
}

html[data-theme="dark"] .landing__flow {
    background: rgba(20, 27, 45, 0.75);
    border-color: #2d3a52;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.landing__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.landing__step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing__step:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 111, 216, 0.35);
}

html[data-theme="dark"] .landing__step {
    background: rgba(15, 23, 42, 0.5);
    border-color: #334155;
}

.landing__step-num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #5b6fd8, #7c5cbf);
    border-radius: 8px;
}

.landing__step strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.92rem;
}

.landing__step p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
}

html[data-theme="dark"] .landing__step p {
    color: #94a3b8;
}

/* ── Cartes fonctionnalités ───────────────────────── */
.landing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.landing__card {
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(91, 111, 216, 0.12);
}

html[data-theme="dark"] .landing__card {
    background: rgba(20, 27, 45, 0.78);
    border-color: #2d3a52;
}

html[data-theme="dark"] .landing__card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.landing__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #fff;
}

.landing__card-icon--blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.landing__card-icon--violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.landing__card-icon--green { background: linear-gradient(135deg, #10b981, #059669); }
.landing__card-icon--amber { background: linear-gradient(135deg, #f59e0b, #d97706); }

.landing__card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    font-weight: 700;
}

.landing__card p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #64748b;
}

html[data-theme="dark"] .landing__card p {
    color: #94a3b8;
}

/* ── Rôles ────────────────────────────────────────── */
.landing__roles {
    margin-bottom: 2rem;
}

.landing__roles-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.landing__role {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 140px;
    padding: 1.1rem 1.25rem;
    text-align: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.landing__role:hover {
    transform: scale(1.03);
    border-color: rgba(91, 111, 216, 0.4);
}

html[data-theme="dark"] .landing__role {
    background: rgba(20, 27, 45, 0.65);
    border-color: #334155;
}

.landing__role i {
    font-size: 1.35rem;
    color: #5b6fd8;
    margin-bottom: 0.15rem;
}

html[data-theme="dark"] .landing__role i {
    color: #a5b4fc;
}

.landing__role strong {
    font-size: 0.92rem;
}

.landing__role span {
    font-size: 0.78rem;
    color: #64748b;
}

html[data-theme="dark"] .landing__role span {
    color: #94a3b8;
}

/* ── Footer ───────────────────────────────────────── */
.landing__footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.5rem clamp(1.25rem, 4vw, 2rem) 2rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.landing__footer p {
    margin: 0;
}

/* ── Accessibilité : réduire les animations ─────── */
@media (prefers-reduced-motion: reduce) {
    .landing__orb,
    .landing-animate {
        animation: none;
    }

    .landing__step:hover,
    .landing__card:hover,
    .landing__role:hover,
    .landing__btn--primary:hover,
    .landing__btn--ghost:hover {
        transform: none;
    }
}
