/* =====================================================================
   landing.css — page d'accueil publique de So Sara (index.php)
   ===================================================================== */
:root {
    --v0: #0e3d07; --v1: #145a09; --v2: #1b7a0c; --v3: #3fbf2b; --v4: #e7f5e2; --v5: #f4f9f2;
    --or: #f5a623; --or-h: #ffb83f;
    --txt: #1f2933; --mut: #5b6b7a; --bord: #e2e8e2;
    --rayon: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--txt); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.conteneur { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.conteneur-etroit { max-width: 800px; }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
.btn-plein { background: var(--v2); color: #fff; }
.btn-plein:hover { background: var(--v1); }
.btn-or { background: var(--or); color: #2b1c00; box-shadow: 0 8px 20px rgba(245,166,35,.35); }
.btn-or:hover { background: var(--or-h); }
.btn-contour { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-contour:hover { background: rgba(255,255,255,.12); }
.btn-lien { color: var(--txt); }
.btn-lien:hover { background: var(--v4); }
.btn-grand { padding: 14px 26px; font-size: 1.05rem; }
.btn-bloc { display: flex; width: 100%; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo-tuile { display: inline-flex; background: #fff; border-radius: 10px; }
.logo-tuile img { height: 40px; width: auto; }
.nav-liens { display: flex; gap: 22px; margin-left: auto; }
.nav-liens a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--mut); }
.nav-liens a:hover { color: var(--v2); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* ---- Héros ---- */
.heros { background: linear-gradient(160deg, var(--v0) 0%, var(--v2) 100%); color: #fff; overflow: hidden; }
.heros-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.etiquette { display: inline-block; background: var(--v4); color: var(--v1); font-weight: 800; font-size: 0.8rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.etiquette-claire { background: rgba(255,255,255,.14); color: #fff; }
.heros h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.04; font-weight: 900; letter-spacing: -0.03em; margin: 18px 0 20px; }
.heros h1 em { font-style: normal; color: #8fe27d; }
.chapeau { font-size: 1.15rem; line-height: 1.6; opacity: .96; max-width: 540px; }
.heros-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.heros-cta-centre { justify-content: center; }
.rassurance { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; opacity: .92; }
.rassurance li::before { content: "✓"; color: #8fe27d; font-weight: 900; margin-right: 8px; }
.lien-locataire { margin-top: 20px; font-size: 0.92rem; opacity: .9; }
.lien-locataire a { color: #fff; font-weight: 700; }

.heros-visuel { position: relative; padding: 10px 30px 30px 0; }
.fenetre { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); border: 1px solid rgba(0,0,0,.08); }
.fenetre-barre { height: 26px; background: #eef2ee; display: flex; align-items: center; gap: 6px; padding-left: 12px; }
.fenetre-barre i { width: 9px; height: 9px; border-radius: 50%; background: #c9d3c9; display: block; }
.heros-visuel .telephone { position: absolute; right: -4px; bottom: -6px; width: 31%; min-width: 130px; }
.telephone { background: #0b1210; border-radius: 30px; padding: 7px; box-shadow: 0 24px 50px rgba(0,0,0,.45); }
.telephone .ecran { border-radius: 24px; overflow: hidden; background: #f4f7f4; }

/* ---- Bande avant / après ---- */
.bande { background: var(--v5); border-bottom: 1px solid var(--bord); padding: 34px 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trio p { color: var(--mut); font-size: 0.98rem; margin-top: 6px; }
.avant, .apres { display: inline-block; font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 6px; }
.avant { background: #fee2e2; color: #b91c1c; }
.apres { background: var(--v2); color: #fff; }

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-teinte { background: var(--v5); }
.section-sombre { background: linear-gradient(170deg, var(--v0), var(--v1)); color: #fff; }
.titre-section { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.titre-section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; color: var(--v1); margin: 14px 0 12px; }
.section-sombre .titre-section h2 { color: #fff; }
.titre-section p { color: var(--mut); font-size: 1.05rem; }
.section-sombre .titre-section p { color: rgba(255,255,255,.85); }

/* ---- Fonctionnalités ---- */
.grille-fonctions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fonction { background: #fff; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px 24px; transition: box-shadow .2s, transform .2s; }
.fonction:hover { box-shadow: 0 16px 36px rgba(20,90,9,.12); transform: translateY(-3px); }
.icone { display: inline-flex; width: 50px; height: 50px; border-radius: 14px; background: var(--v4); align-items: center; justify-content: center; margin-bottom: 16px; }
.icone svg { width: 26px; height: 26px; fill: none; stroke: var(--v2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fonction h3 { font-size: 1.12rem; margin-bottom: 8px; color: var(--txt); }
.fonction p { color: var(--mut); font-size: 0.97rem; }

/* ---- Aperçu : blocs texte + capture ---- */
.duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.duo:last-child { margin-bottom: 0; }
.duo-inverse .duo-texte { order: 2; }
.duo-inverse { grid-template-columns: 1.25fr 1fr; }
.duo-texte h3 { font-size: 1.6rem; line-height: 1.2; font-weight: 800; color: var(--v1); margin-bottom: 12px; letter-spacing: -0.01em; }
.duo-texte p { color: var(--mut); font-size: 1.04rem; margin-bottom: 16px; }
.coches { list-style: none; display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.coches li::before { content: "✓"; display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--v3); color: #fff; align-items: center; justify-content: center; font-size: 0.78rem; margin-right: 10px; }
.duo-visuel .fenetre { box-shadow: 0 22px 54px rgba(20,60,10,.2); }
.duo-quittance { display: flex; justify-content: center; }
.feuille { max-width: 400px; border-radius: 6px; box-shadow: 0 22px 54px rgba(20,60,10,.22); border: 1px solid var(--bord); transform: rotate(1.5deg); }

/* ---- Étapes ---- */
.etapes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: e; }
.etapes li { text-align: center; padding: 8px 18px; }
.num { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; background: var(--v2); color: #fff; font-size: 1.6rem; font-weight: 900; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: 0 10px 22px rgba(27,122,12,.3); }
.etapes h3 { font-size: 1.2rem; margin-bottom: 8px; }
.etapes p { color: var(--mut); }

/* ---- Tarifs ---- */
.grille-tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; max-width: 1020px; margin: 0 auto; }
.tarif { position: relative; background: #fff; color: var(--txt); border-radius: 22px; padding: 38px 28px 30px; display: flex; flex-direction: column; text-align: center; }
.tarif-vedette { outline: 5px solid var(--or); transform: translateY(-8px); }
.ruban { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--or); color: #2b1c00; font-weight: 800; font-size: 0.78rem; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.tarif h3 { font-size: 1.3rem; color: var(--v1); }
.prix { font-size: 2.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--v2); margin-top: 8px; line-height: 1.1; }
.prix small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--mut); }
.limite { margin: 14px auto 18px; background: var(--v4); border-radius: 10px; padding: 8px 16px; font-weight: 800; display: inline-block; }
.tarif ul { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; flex: 1; font-size: 0.95rem; }
.tarif li::before { content: "✓"; color: var(--v2); font-weight: 900; margin-right: 10px; }
.essai-note { text-align: center; max-width: 720px; margin: 40px auto 0; background: rgba(255,255,255,.12); border-radius: 14px; padding: 16px 22px; font-size: 1.02rem; }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid var(--bord); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--v2); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--v3); box-shadow: 0 8px 22px rgba(20,90,9,.08); }
.faq details p { padding: 0 22px 20px; color: var(--mut); }

/* ---- Appel final ---- */
.final { background: linear-gradient(160deg, var(--v0), var(--v2)); color: #fff; text-align: center; padding: 80px 0; }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; max-width: 720px; margin: 0 auto 12px; }
.final p { opacity: .92; font-size: 1.08rem; }
.final .heros-cta { margin-bottom: 30px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; align-items: center; font-size: 1rem; }
.contacts a { color: #fff; font-weight: 800; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.35); }
.contacts a:hover { border-color: var(--or); }
.contacts span { opacity: .85; }

/* ---- Pied de page ---- */
.pied { background: #0a2a05; color: rgba(255,255,255,.8); padding: 22px 0; font-size: 0.88rem; }
.pied-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.pied a { color: #fff; text-decoration: none; margin-left: 18px; }
.pied a:hover { text-decoration: underline; }

/* ---- Apparition au défilement ---- */
.revele { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.revele.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .revele { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Tablette / mobile ---- */
@media (max-width: 960px) {
    .heros-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
    .heros-visuel { max-width: 640px; margin: 0 auto; width: 100%; }
    .grille-fonctions { grid-template-columns: repeat(2, 1fr); }
    .duo, .duo-inverse { grid-template-columns: 1fr; gap: 28px; }
    .duo-inverse .duo-texte { order: 0; }
    .nav-liens { display: none; }
    .nav-actions { margin-left: auto; }
    .grille-tarifs { grid-template-columns: 1fr; max-width: 420px; gap: 28px; }
    .tarif-vedette { transform: none; }
}
@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .trio, .etapes, .grille-fonctions { grid-template-columns: 1fr; }
    .heros-visuel { padding-right: 18px; }
    .btn-grand { width: 100%; }
    .heros-cta { flex-direction: column; }
    .pied-in { flex-direction: column; text-align: center; }
    .pied a { margin: 0 9px; }
    .nav-actions .btn-lien { display: none; }
}

/* ---- Correctifs de débordement (mobile) ---- */
.duo > * { min-width: 0; }
.feuille { width: 100%; }
.section { overflow-x: clip; }
@media (max-width: 640px) { .feuille { transform: none; max-width: 340px; } }
