/* ================================================================
   Sourdosphère — landing.css
   Palette verte, typographie tranchée, pas de bordures arrondies
   ================================================================ */

:root {
    --vert-fonce:  #1a3a2e;
    --vert-mid:    #1D9E75;
    --vert-clair:  #d4ede4;
    --vert-pale:   #f0f8f4;
    --encre:       #141414;
    --gris:        #5a5a5a;
    --gris-clair:  #f3f2ef;
    --bordure:     #d8d5ce;
    --blanc:       #ffffff;
    --font: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.landing-body {
    font-family: var(--font);
    color: var(--encre);
    background: var(--blanc);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

/* ── NAVIGATION ───────────────────────────────────────────────── */
.l-nav {
    background: var(--vert-fonce);
    padding: 0 1.5rem;
    position: sticky; top: 0; z-index: 100;
}
.l-nav__inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem;
    height: 58px;
}
.l-nav__logo {
    font-size: 1.15rem; font-weight: 700; color: #fff;
    flex-shrink: 0; letter-spacing: -0.3px;
}
.l-nav__logo span { color: var(--vert-mid); }
.l-nav__links {
    display: flex; gap: 1.5rem; flex: 1;
}
.l-nav__links a {
    font-size: 0.875rem; color: rgba(255,255,255,0.6);
    font-weight: 500; transition: color 0.12s;
}
.l-nav__links a:hover { color: #fff; }
.l-nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.l-nav__login {
    font-size: 0.875rem; color: rgba(255,255,255,0.7); font-weight: 500;
    padding: 0.4rem 0.85rem;
}
.l-nav__cta {
    font-size: 0.875rem; font-weight: 600;
    background: var(--vert-mid); color: #fff;
    padding: 0.45rem 1.1rem;
    transition: background 0.12s;
}
.l-nav__cta:hover { background: #18845f; }

@media (max-width: 640px) { .l-nav__links { display: none; } }

/* ── HERO ─────────────────────────────────────────────────────── */
.l-hero {
    background: var(--vert-fonce);
    padding: 5rem 1.5rem 3rem;
    overflow: hidden;
}
.l-hero__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 420px;
    gap: 3rem; align-items: start; padding-top: 1rem;
}
.l-hero__eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--vert-mid);
    margin-bottom: 1.25rem; display: flex; align-items: center; gap: 8px;
}
.l-hero__eyebrow::before {
    content: ''; width: 24px; height: 2px; background: var(--vert-mid);
}
.l-hero__title {
    font-size: 3.2rem; font-weight: 800; line-height: 1.08;
    letter-spacing: -1.5px; color: #fff;
    margin-bottom: 1.5rem;
}
.l-hero__title em {
    font-style: normal; color: var(--vert-mid);
}
.l-hero__desc {
    font-size: 1.05rem; color: rgba(255,255,255,0.6);
    line-height: 1.7; max-width: 500px; margin-bottom: 2.25rem;
}
.l-hero__btns {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.l-hero__btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--vert-mid); color: #fff;
    font-size: 0.95rem; font-weight: 700; padding: 0.8rem 1.75rem;
    transition: background 0.12s;
}
.l-hero__btn-primary:hover { background: #18845f; }
.l-hero__btn-primary svg { flex-shrink: 0; }
.l-hero__btn-ghost {
    font-size: 0.9rem; color: rgba(255,255,255,0.5); font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px; transition: color 0.12s, border-color 0.12s;
}
.l-hero__btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* Mockup hero */
.l-hero__mockup {
    display: flex; flex-direction: column; gap: 10px; padding-top: 2rem;
}
.l-post {
    background: #fff; padding: 1rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.l-post:first-child { border-top: none; }
.l-post__header { display: flex; align-items: center; gap: 10px; margin-bottom: 0.6rem; }
.l-post__avatar {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.l-post__meta-name { font-size: 0.875rem; font-weight: 600; }
.l-post__meta-time { font-size: 0.72rem; color: var(--gris); }
.l-post__badge {
    margin-left: auto; font-size: 0.68rem; font-weight: 700;
    background: var(--vert-clair); color: var(--vert-fonce);
    padding: 2px 7px; letter-spacing: 0.3px;
}
.l-post__text { font-size: 0.875rem; line-height: 1.55; color: var(--encre); margin-bottom: 0.65rem; }
.l-post__footer { font-size: 0.75rem; color: var(--gris); display: flex; gap: 1rem; padding-top: 0.5rem; border-top: 1px solid #f0ede8; }

@media (max-width: 900px) {
    .l-hero__inner { grid-template-columns: 1fr; }
    .l-hero__mockup { display: none; }
    .l-hero__title { font-size: 2.3rem; }
}
@media (max-width: 768px) {
    /* Hero plein écran mobile — remplit le viewport moins la nav (58px) */
    .l-hero {
        padding: 0 1.25rem;
        min-height: calc(100dvh - 58px);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .l-hero__inner {
        grid-template-columns: 1fr;
        padding-top: 0;
        gap: 1.5rem;
    }
    .l-hero__title { font-size: 2.1rem; letter-spacing: -0.8px; }
    .l-hero__desc { font-size: 0.95rem; margin-bottom: 1.75rem; }
    .l-hero__eyebrow { margin-bottom: 0.85rem; }

    /* Scroll hint — flèche discrète en bas du hero */
    .l-hero::after {
        content: '';
        display: block;
        width: 20px; height: 20px;
        border-right: 2px solid rgba(255,255,255,0.3);
        border-bottom: 2px solid rgba(255,255,255,0.3);
        transform: rotate(45deg);
        margin: 1.5rem auto 0;
        animation: bounce 1.8s infinite;
    }
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
    50%       { transform: rotate(45deg) translateY(6px); opacity: 0.9; }
}

/* ── BANDEAU STATS ────────────────────────────────────────────── */
.l-stats {
    border-top: none;
    border-bottom: 1px solid var(--bordure);
    padding: 0;
    box-shadow: 0 -4px 0 0 var(--vert-mid);
}
.l-stats__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.l-stat {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--bordure);
}
.l-stat:last-child { border-right: none; }
.l-stat__num {
    font-size: 2rem; font-weight: 800;
    color: var(--vert-fonce); letter-spacing: -1px; line-height: 1;
    margin-bottom: 0.3rem;
}
.l-stat__num span { color: var(--vert-mid); }
.l-stat__label { font-size: 0.82rem; color: var(--gris); line-height: 1.4; }

@media (max-width: 768px) {
    .l-stats__inner { grid-template-columns: repeat(2, 1fr); }
    .l-stat:nth-child(2) { border-right: none; }
    .l-stat:nth-child(3) { border-top: 1px solid var(--bordure); }
    .l-stat:nth-child(4) { border-top: 1px solid var(--bordure); border-right: none; }
}
@media (max-width: 480px) {
    .l-stats__inner { grid-template-columns: 1fr 1fr; }
}

/* ── INTRO TEXTE SEO ──────────────────────────────────────────── */
.l-intro {
    background: var(--vert-pale);
    border-bottom: 1px solid var(--bordure);
    padding: 3.5rem 1.5rem;
}
.l-intro__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 340px 1fr;
    gap: 3.5rem; align-items: start;
}
.l-intro__heading {
    font-size: 1.7rem; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.5px; color: var(--vert-fonce);
    position: relative; padding-left: 1rem;
    border-left: 3px solid var(--vert-mid);
}
.l-intro__body { font-size: 0.95rem; color: var(--gris); line-height: 1.8; }
.l-intro__body p + p { margin-top: 1rem; }
.l-intro__body strong { color: var(--encre); font-weight: 600; }

@media (max-width: 800px) {
    .l-intro__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── FONCTIONNALITÉS ──────────────────────────────────────────── */
.l-features { padding: 4rem 1.5rem; }
.l-features__inner { max-width: 1160px; margin: 0 auto; }
.l-section-kicker {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--vert-mid);
    margin-bottom: 0.5rem;
}
.l-section-title {
    font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--vert-fonce); margin-bottom: 2.5rem;
}
.l-features__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--bordure);
}
.l-feature {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--bordure);
    border-bottom: 1px solid var(--bordure);
}
.l-features__grid .l-feature:nth-child(3n) { border-right: none; }
.l-features__grid .l-feature:nth-last-child(-n+3) { border-bottom: none; }
.l-feature__icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vert-pale); margin-bottom: 0.9rem;
}
.l-feature__icon svg { color: var(--vert-fonce); }
.l-feature h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.45rem; }
.l-feature p  { font-size: 0.85rem; color: var(--gris); line-height: 1.65; }

@media (max-width: 900px) {
    .l-features__grid { grid-template-columns: repeat(2, 1fr); }
    .l-features__grid .l-feature:nth-child(3n) { border-right: 1px solid var(--bordure); }
    .l-features__grid .l-feature:nth-child(2n) { border-right: none; }
    .l-features__grid .l-feature:nth-last-child(-n+2) { border-bottom: none; }
    .l-features__grid .l-feature:nth-last-child(3) { border-bottom: 1px solid var(--bordure); }
}
@media (max-width: 560px) {
    .l-features__grid { grid-template-columns: 1fr; }
    .l-features__grid .l-feature { border-right: none !important; border-bottom: 1px solid var(--bordure) !important; }
    .l-features__grid .l-feature:last-child { border-bottom: none !important; }
}

/* ── BLOG ─────────────────────────────────────────────────────── */
.l-blog {
    background: var(--gris-clair);
    border-top: 1px solid var(--bordure);
    border-bottom: 1px solid var(--bordure);
    padding: 4rem 1.5rem;
}
.l-blog__inner { max-width: 1160px; margin: 0 auto; }
.l-blog__head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 2rem;
}
.l-blog__link {
    font-size: 0.85rem; font-weight: 600; color: var(--vert-mid);
    border-bottom: 1px solid var(--vert-clair);
    padding-bottom: 1px;
}
.l-blog__link:hover { border-color: var(--vert-mid); }
.l-blog__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--bordure); background: #fff;
}
.l-article {
    padding: 1.5rem;
    border-right: 1px solid var(--bordure);
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: background 0.12s;
}
.l-article:last-child { border-right: none; }
.l-article:hover { background: var(--vert-pale); }
.l-article__cat {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--vert-mid); margin-bottom: 0.6rem;
}
.l-article__title {
    font-size: 0.975rem; font-weight: 700; line-height: 1.3;
    color: var(--vert-fonce); margin-bottom: 0.6rem;
}
.l-article__excerpt {
    font-size: 0.83rem; color: var(--gris); line-height: 1.6;
    flex: 1; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.l-article__date { font-size: 0.75rem; color: #999; }

.l-blog__empty {
    background: #fff; border: 1px solid var(--bordure);
    padding: 2rem; text-align: center;
    font-size: 0.9rem; color: var(--gris);
}

@media (max-width: 800px) {
    .l-blog__grid { grid-template-columns: 1fr; }
    .l-article { border-right: none; border-bottom: 1px solid var(--bordure); }
    .l-article:last-child { border-bottom: none; }
}

/* ── ANNUAIRE ─────────────────────────────────────────────────── */
.l-directory {
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--bordure);
}
.l-directory__inner {
    max-width: 1160px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.l-directory__text h2 {
    font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px;
    color: var(--vert-fonce); margin-bottom: 1rem; line-height: 1.15;
}
.l-directory__text p {
    font-size: 0.95rem; color: var(--gris); line-height: 1.75; margin-bottom: 0.75rem;
}
.l-directory__text p strong { color: var(--encre); }
.l-directory__btn {
    display: inline-block; margin-top: 1rem;
    font-size: 0.875rem; font-weight: 700; color: var(--vert-fonce);
    border: 2px solid var(--vert-fonce); padding: 0.65rem 1.4rem;
    transition: background 0.12s, color 0.12s;
}
.l-directory__btn:hover { background: var(--vert-fonce); color: #fff; }
.l-directory__tags { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.l-tag {
    font-size: 0.82rem; font-weight: 600; padding: 0.55rem 1rem;
    border: 1px solid var(--bordure); background: var(--blanc);
}

@media (max-width: 800px) {
    .l-directory__inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── CTA FINAL ────────────────────────────────────────────────── */
.l-cta {
    background: var(--vert-fonce);
    padding: 5rem 1.5rem;
    text-align: center;
}
.l-cta__inner { max-width: 560px; margin: 0 auto; }
.l-cta h2 {
    font-size: 2.2rem; font-weight: 800; color: #fff;
    letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 1rem;
}
.l-cta p { color: rgba(255,255,255,0.55); font-size: 1rem; margin-bottom: 2.25rem; line-height: 1.65; }
.l-cta__btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--vert-mid); color: #fff;
    font-size: 1.05rem; font-weight: 700; padding: 0.9rem 2.25rem;
    transition: background 0.12s;
}
.l-cta__btn:hover { background: #18845f; }
.l-cta__note {
    margin-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.l-cta__note a { color: rgba(255,255,255,0.65); border-bottom: 1px solid rgba(255,255,255,0.3); }
.l-cta__note a:hover { color: #fff; }

/* ── NEWSLETTER ───────────────────────────────────────────────── */
.l-newsletter {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2.5rem 1.5rem;
    background: #112920;
}
.l-newsletter__inner {
    max-width: 480px; margin: 0 auto; text-align: center;
}
.l-newsletter__inner h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.l-newsletter__inner p { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 1.25rem; }
.l-newsletter__form {
    display: flex; border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
}
.l-newsletter__input {
    flex: 1; padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.06); border: none;
    color: #fff; font-size: 0.875rem; font-family: var(--font); outline: none;
}
.l-newsletter__input::placeholder { color: rgba(255,255,255,0.3); }
.l-newsletter__btn {
    padding: 0.7rem 1.25rem; background: var(--vert-mid);
    border: none; color: #fff; font-size: 0.85rem; font-weight: 600;
    font-family: var(--font); cursor: pointer; white-space: nowrap;
    transition: background 0.12s;
}
.l-newsletter__btn:hover { background: #18845f; }
.l-newsletter__legal { font-size: 0.72rem; color: rgba(255,255,255,0.25); margin-top: 0.75rem; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.l-footer {
    background: #0d1f17;
    padding: 3rem 1.5rem 0;
}
.l-footer__inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; gap: 2.5rem; flex-wrap: wrap;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.l-footer__brand { flex: 1.5; min-width: 200px; }
.l-footer__logo {
    display: block; font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.65rem;
}
.l-footer__logo span { color: var(--vert-mid); }
.l-footer__tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.65; }
.l-footer__cols { display: flex; gap: 2rem; flex-wrap: wrap; }
.l-footer__col { display: flex; flex-direction: column; gap: 0.5rem; min-width: 130px; }
.l-footer__col h4 {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: rgba(255,255,255,0.3); margin-bottom: 0.2rem;
}
.l-footer__col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color 0.12s; }
.l-footer__col a:hover { color: #fff; }
.l-footer__bottom {
    max-width: 1160px; margin: 0 auto;
    padding: 1.1rem 0;
    font-size: 0.75rem; color: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.urgence-114-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.08); color: #FCA5A5;
    border: 1px solid rgba(252,165,165,0.3);
    border-radius: 20px; padding: 4px 11px;
    font-size: 0.72rem; font-weight: 600; text-decoration: none;
}
.urgence-114-badge:hover { background: rgba(255,255,255,0.14); color: #FCA5A5; }
/* Bandeau d'avertissement environnement de test (staging) */
.staging-banner {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    background: #e5a000; color: #1a1a18;
    font-size: 0.72rem; font-weight: 700; text-align: center;
    padding: 4px 8px; letter-spacing: 0.3px;
}
