/* Souvita - Styles partages */

:root {
    --bg: #faf9f6; --surface: #ffffff; --border: #e5e2dc;
    --text: #2d2d2d; --muted: #7a7671; --accent: #7d9b76;
    --accent-dark: #5a7a54; --accent-light: #e8f0e5;
    --radius: 12px; --shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; min-height: 100vh;
}

h1, h2, h3, h4, .logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600; line-height: 1.2;
}

.logo { font-size: 1.3rem; font-weight: 600; color: var(--accent-dark); letter-spacing: -.3px; }

a { color: var(--accent-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: underline; }

/* Navigation */
nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 2rem; max-width: 1200px; margin: 0 auto;
    background: var(--surface);
}
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .9rem; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
    background: var(--accent); color: #1f2937 !important;
    padding: .4rem 1.2rem; border-radius: 12px; font-size: .875rem; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Hero */
.hero {
    text-align: center; padding: 5rem 2rem 3rem;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at center, rgba(125,155,118,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 { font-size: 3rem; margin-bottom: .8rem; color: var(--text); position: relative; }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; position: relative; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.btn {
    display: inline-block; background: var(--accent); color: #1f2937;
    padding: .75rem 2rem; border-radius: 12px; font-weight: 600; font-size: .9rem;
    transition: background .2s, transform .1s; border: none; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }

/* Sections */
section { padding: 3.5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: .5rem; }
.section-subtitle { text-align: center; color: var(--muted); font-size: .95rem; margin-bottom: 2.5rem; }

/* Offres cards */
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.offer-card {
    background: var(--surface); border-radius: var(--radius); padding: 2rem 1.5rem;
    border: 1px solid var(--border); text-align: center;
    transition: box-shadow .2s, transform .1s;
}
.offer-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-icon { font-size: 2rem; margin-bottom: 1rem; }
.offer-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.offer-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.offer-link { font-weight: 600; font-size: .85rem; color: var(--accent-dark); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; counter-reset: step; }
.step { text-align: center; }
.step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent); color: #1f2937;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; margin: 0 auto 1rem;
}
.step h4 { margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: .75rem;
}
.faq-q { font-weight: 600; cursor: pointer; position: relative; padding-right: 1.5rem; }
.faq-a { font-size: .9rem; color: var(--muted); margin-top: .5rem; line-height: 1.6; }

/* Footer */
footer {
    background: var(--text); color: #c5c1bc;
    padding: 2.5rem 2rem 1.5rem; margin-top: 2rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
footer h4 { color: white; font-size: .9rem; margin-bottom: .8rem; font-family: 'Lato', sans-serif; }
footer a { color: #c5c1bc; font-size: .8rem; display: block; margin-bottom: .4rem; }
footer a:hover { color: white; text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Placeholders lisibles (contraste ≥ 4,5:1 sur fond blanc) */
input::placeholder, select::placeholder, textarea::placeholder { color: #6b7280; opacity: 1; }

/* Pages interieures */
.page { max-width: 800px; margin: 2rem auto; padding: 0 2rem; }
.page h1 { font-size: 2rem; margin-bottom: .5rem; }
.page h2 { font-size: 1.3rem; margin: 1.5rem 0 .5rem; }
.page p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.page ul { margin: 0 0 1rem 1.5rem; }
.page li { font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.pricing-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-align: center;
}
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }
.pricing-card h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.pricing-card .price { font-size: 2rem; font-weight: 700; color: var(--accent-dark); margin-bottom: .2rem; }
.pricing-card .period { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.pricing-card ul { text-align: left; list-style: none; margin: 1rem 0; }
.pricing-card li { font-size: .875rem; color: var(--muted); margin-bottom: .4rem; padding-left: 1.2rem; position: relative; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Inscription page */
.form-card {
    max-width: 480px; margin: 2rem auto; padding: 2.5rem;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.form-card label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.form-card input, .form-card select {
    width: 100%; padding: .7rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: .95rem; margin-bottom: 1.2rem;
}
.form-card input:focus, .form-card select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}

/* Price options */
.price-option { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.price-option label {
    flex: 1; border: 2px solid var(--border); border-radius: var(--radius);
    padding: 1rem; text-align: center; cursor: pointer; margin-bottom: 0;
}
.price-option label.selected { border-color: var(--accent); background: var(--accent-light); }
.price-option input { display: none; }
.price-option .amount { font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); }
.price-option .period { font-size: .8rem; color: var(--muted); }

/* Page 404 */
.page-404 { text-align: center; padding: 5rem 2rem; }
.page-404 h1 { font-size: 4rem; color: var(--accent-dark); }
.page-404 p { margin-bottom: 2rem; }

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* Responsive */
@media (max-width: 640px) {
    .hero h1 { font-size: 2rem; }
    nav { padding: .5rem 1rem; flex-direction: column; gap: .5rem; }
    .nav-links { gap: 1rem; }
    section { padding: 2rem 1rem; }
}


/* === PRO PAGE === */

        .segment-title { font-family:'Playfair Display',serif; font-size:1.4rem; color:var(--accent-dark); margin:3rem 0 .5rem; text-align:center; }
        .segment-subtitle { text-align:center; color:var(--muted); font-size:.88rem; margin-bottom:1.5rem; }
        .pricing-card .ttc { font-size:.875rem; color:var(--muted); margin-top:-.6rem; margin-bottom:.8rem; }
        .pricing-card .trial { display:inline-block; background:var(--accent-light); color:#1f2937; font-size:.8rem; font-weight:600; padding:.25rem .7rem; border-radius:20px; margin-bottom:.8rem; }
        .pricing-card .btn { display:block; text-align:center; margin-top:.5rem; }
        .oneshot-note { text-align:center; font-size:.8rem; color:var(--muted); margin-top:.5rem; }
        .devis-note { text-align:center; font-size:.85rem; color:var(--muted); margin:2.5rem 0 1rem; padding:1rem; background:var(--surface); border:1px dashed var(--border); border-radius:var(--radius); max-width:600px; margin-left:auto; margin-right:auto; }
    


/* Nav sans classe (homepage) */
@media (max-width: 768px) {
    body > nav { flex-wrap: wrap; padding: .5rem 1rem; }
    body > nav a { font-size: .875rem; }
    body > nav > div { display: flex; gap: .5rem; flex-wrap: wrap; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Nav */
    nav { padding: .5rem 1rem; }
    .nav-links { gap: .5rem; flex-wrap: wrap; }
    .nav-links a { font-size: .875rem; padding: .3rem .6rem; }
    .nav-cta { padding: .3rem .8rem; font-size: .875rem; }
    
    /* Hero */
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 1.6rem !important; }
    .hero p { font-size: .9rem; }
    
    /* Cartes */
    .pricing-grid { flex-direction: column; align-items: stretch; }
    .pricing-card { max-width: 100% !important; margin: 0 0 1rem 0; }
    .offers { flex-direction: column; }
    .offer-card { margin-bottom: .5rem; }
    
    /* Prix */
    .price-option { flex-direction: column; }
    .price-option label { min-width: auto !important; }
    
    /* Formulaires */
    .search-box { flex-direction: column; }
    .search-box input, .search-box button { width: 100%; }
    .alert-row { flex-direction: column; }
    .alert-row input, .alert-row button { width: 100%; }
    
    /* Cartes et conteneurs */
    .card { margin: .5rem 0; padding: 1.2rem; }
    .kpi { flex-direction: column; }
    .chart-row { flex-direction: column; }
    .chart-box { min-width: 100% !important; }
    .steps { flex-direction: column; }
    
    /* Footer */
    .footer-inner { flex-direction: column; gap: 1rem; }
    
    /* Bloc bleu famille */
    section[style*="background:#1a1a2e"] { padding: 1.5rem .8rem !important; }
    section[style*="background:#1a1a2e"] h2 { font-size: 1.1rem !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.4rem !important; }
    .hero { padding: 2rem .8rem 1.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .logo { font-size: 1.1rem; }
}
