/* ================================================================
   Sourdosphère — landing.css
   ================================================================ */

.landing-body { padding-top: 0; padding-bottom: 0; background: #fff; overflow-x: hidden; }

/* ── Nav ──────────────────────────────────────────────────────── */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 62px;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    display: flex; align-items: center;
    transition: box-shadow 0.2s;
}
.landing-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.landing-nav__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.landing-nav .topbar__logo { color: var(--green-dark); font-size: 1.25rem; }
.landing-nav__actions { display: flex; gap: 0.5rem; }
.btn--ghost-dark { background: transparent; color: var(--green-dark); border: 1.5px solid var(--gray-border); }
.btn--ghost-dark:hover { background: var(--gray-light); text-decoration: none; }

/* ── Hero commun ──────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    background: var(--green-dark);
    padding-top: 62px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3; animation: orbFloat 8s ease-in-out infinite; }
.hero__orb--1 { width: 500px; height: 500px; background: #1D9E75; top: -100px; right: -80px; animation-delay: 0s; }
.hero__orb--2 { width: 350px; height: 350px; background: #085041; bottom: -50px; left: -60px; animation-delay: -3s; }
.hero__orb--3 { width: 220px; height: 220px; background: #5DCAA5; top: 50%; left: 35%; animation-delay: -5s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.97); }
}

.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 0.82rem; font-weight: 500;
    padding: 0.35rem 0.9rem; border-radius: 20px; letter-spacing: 0.3px;
}
.hero__badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #5DCAA5; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.6; transform:scale(1.3); } }

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700; color: #fff; line-height: 1.15; letter-spacing: -0.5px;
}
.hero__title-accent { color: #5DCAA5; }

.btn--hero {
    background: #fff; color: var(--green-dark); border: none;
    font-size: 1rem; font-weight: 600; padding: 0.85rem 1.75rem;
    border-radius: var(--radius-lg); display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.btn--hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); text-decoration: none; }
.btn--hero-ghost {
    background: rgba(255,255,255,0.1); color: #fff; border: 1.5px solid rgba(255,255,255,0.3);
    font-size: 1rem; font-weight: 500; padding: 0.85rem 1.75rem;
    border-radius: var(--radius-lg); cursor: pointer; transition: background 0.15s;
}
.btn--hero-ghost:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: #fff; }

/* ── Hero DESKTOP ─────────────────────────────────────────────── */
.hero--desktop {
    display: flex; flex-direction: column; align-items: center;
    min-height: 100vh;
}
.hero--mobile { display: none; }

.hero__inner {
    position: relative; z-index: 2;
    max-width: 1200px; width: 100%; margin: 0 auto;
    padding: 4rem 2rem 5rem;
    display: grid; grid-template-columns: 1fr 440px;
    gap: 3rem; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.78); max-width: 520px; line-height: 1.7; }
.hero__subtitle strong { color: #fff; }
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Cards flottantes */
.hero__cards { display: flex; flex-direction: column; gap: 0.65rem; max-width: 440px; }
.hero__card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg);
    padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.65rem; color: #fff;
}
.hero__card--1 { animation: cardFloat 5s ease-in-out infinite; }
.hero__card--2 { animation: cardFloat 5s 1.5s ease-in-out infinite; }
.hero__card--3 { animation: cardFloat 5s 3s ease-in-out infinite; }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero__card-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.hero__card-name { font-size: 12px; font-weight: 600; }
.hero__card-text { font-size: 11px; opacity: 0.8; }

/* Scroll indicator */
.hero__scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll-line { width: 1.5px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform:scaleY(0); transform-origin:top; opacity:0; } 50% { transform:scaleY(1); transform-origin:top; opacity:1; } 100% { transform:scaleY(1); transform-origin:bottom; opacity:0; } }

/* ── Mockup téléphone ─────────────────────────────────────────── */
.hero__mockup { position: relative; z-index: 2; display: flex; justify-content: center; }
.phone-mockup {
    width: 260px; filter: drop-shadow(0 32px 64px rgba(0,0,0,0.5));
    animation: phoneTilt 6s ease-in-out infinite;
    transform-origin: center bottom;
}
.phone-mockup svg { width: 100%; height: auto; }
@keyframes phoneTilt {
    0%,100% { transform: rotate(-1deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(-8px); }
}

/* ── Hero MOBILE ──────────────────────────────────────────────── */
.hero--mobile {
    min-height: 100vh;
    padding: 0;
    display: none;
    flex-direction: column;
}
.hero-mobile__content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    gap: 1.25rem; text-align: center;
    padding: 5rem 1.25rem 3rem;
}
.hero-mobile__title { font-size: 2rem; }
.hero-mobile__subtitle { font-size: 0.97rem; color: rgba(255,255,255,0.78); line-height: 1.65; max-width: 340px; }
.hero-mobile__subtitle strong { color: #fff; }

.hero-mobile__mockup {
    width: 100%; max-width: 240px;
    margin: 0.5rem auto;
}
.hero-mobile__mockup .phone-mockup { width: 100%; }

.hero-mobile__badges {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.hero-mobile__badge { font-size: 12px; padding: 5px 12px; }
.hero-mobile__cta { max-width: 340px; font-size: 1rem; padding: 0.9rem 1.5rem; }

/* ── Animations entrée ────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.reveal { opacity:0; transform:translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.hero__badge  { animation: fadeUp 0.5s 0.0s ease both; }
.hero__title  { animation: fadeUp 0.5s 0.1s ease both; }
.hero__subtitle { animation: fadeUp 0.5s 0.2s ease both; }
.hero__actions  { animation: fadeUp 0.5s 0.3s ease both; }
.hero__cards    { animation: fadeUp 0.5s 0.4s ease both; }
.hero__mockup   { animation: fadeUp 0.5s 0.2s ease both; }

/* ── Stats ────────────────────────────────────────────────────── */
.stats { background: var(--green-dark); border-top: 1px solid rgba(255,255,255,0.08); }
.stats__inner { max-width: 900px; margin: 0 auto; padding: 3.5rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.stats__item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stats__number-wrap { display: flex; align-items: baseline; gap: 2px; }
.stats__number { font-size: 2.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stats__unit   { font-size: 1.6rem; font-weight: 700; color: #5DCAA5; }
.stats__label  { font-size: 0.82rem; color: rgba(255,255,255,0.55); max-width: 150px; line-height: 1.4; }
.stats__divider { width: 1px; height: 60px; background: rgba(255,255,255,0.15); }

/* ── Features ─────────────────────────────────────────────────── */
.features { background: var(--gray-bg); padding: 5rem 1.5rem; }
.features__inner { max-width: 1100px; margin: 0 auto; }
.features__header { text-align: center; margin-bottom: 3rem; opacity: 1; transform: none; }
.features__title  { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; color: var(--green-dark); margin-bottom: 0.75rem; }
.features__subtitle { color: var(--gray-mid); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.6; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
    background: #fff; border: 1.5px solid var(--gray-border); border-radius: var(--radius-xl);
    padding: 1.75rem 1.5rem; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex; flex-direction: column; gap: 0.75rem;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card--green:hover  { border-color: var(--green-mid); }
.feature-card--blue:hover   { border-color: #378ADD; }
.feature-card--amber:hover  { border-color: #EF9F27; }
.feature-card--purple:hover { border-color: #7F77DD; }
.feature-card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.feature-card--green .feature-card__icon  { background: var(--green-light); color: #0F6E56; }
.feature-card--blue .feature-card__icon   { background: #E6F1FB; color: #0C447C; }
.feature-card--amber .feature-card__icon  { background: #FAEEDA; color: #633806; }
.feature-card--purple .feature-card__icon { background: #EEEDFE; color: #3C3489; }
.feature-card__title { font-size: 1.1rem; font-weight: 600; color: var(--green-dark); }
.feature-card__text  { font-size: 0.9rem; color: var(--gray-text); line-height: 1.6; flex: 1; }
.feature-card__badges { display: flex; gap: 4px; flex-wrap: wrap; }
.feature-card__cta { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 500; margin-top: 0.25rem; }
.feature-card--green .feature-card__cta  { color: #0F6E56; }
.feature-card--blue .feature-card__cta   { color: #185FA5; }
.feature-card--amber .feature-card__cta  { color: #854F0B; }
.feature-card--purple .feature-card__cta { color: #534AB7; }

/* ── SEO text block ───────────────────────────────────────────── */
.seo-block { background: #fff; padding: 5rem 1.5rem; border-top: 1px solid var(--gray-light); }
.seo-block__inner { max-width: 1000px; margin: 0 auto; }
.seo-block__title { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; color: var(--green-dark); margin-bottom: 2rem; text-align: center; }
.seo-block__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.seo-block__cols p { font-size: 0.95rem; color: var(--gray-text); line-height: 1.8; margin-bottom: 1rem; }
.seo-block__cols p:last-child { margin-bottom: 0; }
.seo-block__cols strong { color: var(--green-dark); }

/* ── Values ───────────────────────────────────────────────────── */
.values { background: var(--gray-bg); padding: 5rem 1.5rem; }
.values__inner { max-width: 800px; margin: 0 auto; }
.values__title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; color: var(--green-dark); text-align: center; margin-bottom: 2.5rem; }
.values__list  { display: flex; flex-direction: column; gap: 2rem; }
.values__item  { display: flex; align-items: flex-start; gap: 1.25rem; }
.values__icon  { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.values__icon--green  { background: var(--green-light); color: #0F6E56; }
.values__icon--purple { background: #EEEDFE; color: #3C3489; }
.values__icon--amber  { background: #FAEEDA; color: #633806; }
.values__item-title { font-size: 1rem; font-weight: 600; color: var(--green-dark); margin-bottom: 0.35rem; }
.values__item-text  { font-size: 0.9rem; color: var(--gray-text); line-height: 1.65; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq { background: #fff; padding: 5rem 1.5rem; }
.faq__inner { max-width: 700px; margin: 0 auto; }
.faq__title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--green-dark); text-align: center; margin-bottom: 2rem; }
.faq__list { display: flex; flex-direction: column; gap: 0; }
.faq__item { border-bottom: 1px solid var(--gray-light); }
.faq__item:first-child { border-top: 1px solid var(--gray-light); }
.faq__question {
    font-size: 0.97rem; font-weight: 600; color: var(--green-dark);
    padding: 1.1rem 0; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    transition: color 0.15s;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--green-mid); flex-shrink: 0; transition: transform 0.2s; }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__item[open] .faq__question { color: var(--green-mid); }
.faq__answer { font-size: 0.9rem; color: var(--gray-text); line-height: 1.7; padding: 0 0 1.1rem; }

/* ── CTA section ──────────────────────────────────────────────── */
.cta-section { background: var(--green-dark); padding: 5rem 1.5rem; overflow: hidden; }
.cta-section__inner { max-width: 900px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-section__content { max-width: 500px; }
.cta-section__title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.cta-section__text  { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; font-size: 1rem; }
.btn--cta { background: #fff; color: var(--green-dark); border: none; font-size: 1rem; font-weight: 600; padding: 0.9rem 2rem; border-radius: var(--radius-lg); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.cta-hands { display: flex; gap: 1rem; font-size: 2.5rem; }
.cta-hand { animation: handWave 3s ease-in-out infinite; }
.cta-hand--1 { animation-delay: 0s; }
.cta-hand--2 { animation-delay: 0.4s; }
.cta-hand--3 { animation-delay: 0.8s; }
@keyframes handWave { 0%,100%{transform:rotate(0deg);} 20%{transform:rotate(-15deg);} 40%{transform:rotate(15deg);} 60%{transform:rotate(-8deg);} 80%{transform:rotate(8deg);} }

/* ── Footer ───────────────────────────────────────────────────── */
.landing-footer { background: #0e2820; padding: 2.5rem 1.5rem; text-align: center; }
.landing-footer__inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.landing-footer__logo    { font-size: 1.2rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.landing-footer__copy    { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.landing-footer__tagline { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ── Popup ────────────────────────────────────────────────────── */
.popup-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; animation: fadeIn 0.2s ease; }
.popup-overlay[hidden] { display: none; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.popup { background: #fff; border-radius: var(--radius-xl); padding: 2.5rem 2rem; width: 100%; max-width: 440px; position: relative; text-align: center; animation: popupIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both; box-shadow: 0 24px 60px rgba(0,0,0,0.2); }
@keyframes popupIn { from{opacity:0;transform:scale(0.88) translateY(20px);} to{opacity:1;transform:scale(1) translateY(0);} }
.popup__close { position: absolute; top: 1rem; right: 1rem; background: var(--gray-light); border: none; border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-mid); transition: background 0.15s, color 0.15s; }
.popup__close:hover { background: var(--gray-border); color: var(--black); }
.popup__icon { width: 64px; height: 64px; background: var(--green-light); border-radius: 50%; margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; }
.popup__title { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.65rem; }
.popup__text  { font-size: 0.9rem; color: var(--gray-mid); line-height: 1.6; margin-bottom: 1.5rem; }
.popup__form  { display: flex; flex-direction: column; gap: 0.75rem; }
.popup__error { font-size: 0.85rem; color: var(--danger); padding: 0.5rem; background: var(--danger-light); border-radius: var(--radius-sm); }
.popup__error[hidden] { display: none; }
.popup__success { padding: 1.5rem 0 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; color: var(--gray-text); font-size: 0.95rem; }
.popup__success[hidden] { display: none; }
.popup__success-icon { width: 48px; height: 48px; background: var(--green-light); color: #0F6E56; border-radius: 50%; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.popup__privacy { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.75rem; color: var(--gray-mid); margin-top: 1rem; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__mockup { display: none; }
}

@media (max-width: 768px) {
    /* Bascule hero desktop → mobile */
    .hero--desktop { display: none; }
    .hero--mobile  { display: flex; }

    /* Stats : colonne sur mobile */
    .stats__inner { flex-direction: column; gap: 1.5rem; padding: 2.5rem 1.5rem; }
    .stats__divider { width: 60px; height: 1px; background: rgba(255,255,255,0.15); }
    .stats__number { font-size: 2.2rem; }

    /* Features */
    .features { padding: 3rem 1rem; }
    .features__grid { grid-template-columns: 1fr; }

    /* SEO block */
    .seo-block { padding: 3rem 1rem; }
    .seo-block__cols { grid-template-columns: 1fr; gap: 0; }

    /* Values */
    .values { padding: 3rem 1rem; }

    /* FAQ */
    .faq { padding: 3rem 1rem; }

    /* CTA */
    .cta-section { padding: 3rem 1rem; }
    .cta-section__deco { display: none; }

    /* Popup */
    .popup { padding: 2rem 1.25rem; }
}

@media (max-width: 420px) {
    .hero-mobile__title { font-size: 1.7rem; }
    .hero-mobile__mockup { max-width: 200px; }
}
