/* BlueSole — site web bluesole.app — style commun (landing + privacy + terms)
   Charte : navy #0E2E54 (primaire), peach #F4D28A (CTA), neutres clairs.
   Mobile-first, responsive jusqu'à desktop large. */

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

:root {
    --navy: #0E2E54;
    --navy-dark: #0a2342;
    --peach: #F4D28A;
    --peach-dark: #e6bf6a;
    --text: #1c2733;
    --text-muted: #5b6573;
    --bg: #f4f6f9;
    --bg-card: #ffffff;
    --border: #e1e6ed;
    --max-width: 1100px;
}

html, body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header — sticky base (used by all pages) */
header.site {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s ease;
}
header.site .header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 24px;
}
header.site .brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
header.site .brand img {
    height: 36px;
    transition: height 0.25s ease;
}
header.site nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}
header.site nav a { color: var(--text-muted); }
header.site nav a:hover { color: var(--navy); text-decoration: none; }

/* Header — shrink-on-scroll variant (landing page) */
header.site.shrink-on-scroll .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 16px;
    gap: 14px;
    transition: padding 0.25s ease, gap 0.25s ease, flex-direction 0s;
}
header.site.shrink-on-scroll .brand img {
    height: 132px;
}
header.site.shrink-on-scroll nav {
    align-self: flex-end;
}
header.site.shrink-on-scroll.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
header.site.shrink-on-scroll.scrolled .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 24px;
    gap: 12px;
}
header.site.shrink-on-scroll.scrolled .brand img {
    height: 36px;
}
header.site.shrink-on-scroll.scrolled nav {
    align-self: auto;
}
.lang-switch {
    display: flex;
    gap: 4px;
    background: var(--bg);
    border-radius: 6px;
    padding: 2px;
}
.lang-switch button {
    background: transparent;
    border: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}
.lang-switch button.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Footer */
footer.site {
    background: var(--navy);
    color: white;
    padding: 32px 24px;
    margin-top: 60px;
    font-size: 13px;
    line-height: 1.7;
}
footer.site .container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
}
footer.site .brand { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
footer.site a { color: rgba(255,255,255,0.85); }
footer.site a:hover { color: white; }
footer.site .legal { color: rgba(255,255,255,0.6); margin-top: 8px; }

/* Hero (landing) */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: white;
    padding: 72px 24px 80px;
    text-align: center;
}
.hero .container { max-width: 760px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}
.hero .subtitle {
    font-size: clamp(15px, 2.4vw, 18px);
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
}
.cta {
    display: inline-block;
    background: var(--peach);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s, transform 0.05s;
    border: none;
    cursor: pointer;
}
.cta:hover { background: var(--peach-dark); text-decoration: none; }
.cta:active { transform: scale(0.98); }
.cta.ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    margin-left: 12px;
}
.cta.ghost:hover { background: rgba(255,255,255,0.08); }

/* Sections content */
section {
    padding: 60px 24px;
}
section .container { max-width: var(--max-width); margin: 0 auto; }
section h2 {
    font-size: clamp(22px, 3.5vw, 32px);
    color: var(--navy);
    margin-bottom: 16px;
    text-align: center;
}
section .lead {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Features grid */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.15s, box-shadow 0.15s;
    flex: 1 1 260px;
    max-width: 340px;
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14,46,84,0.08);
}
.feature .feature-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.feature .icon {
    width: 48px;
    height: 48px;
    background: rgba(244,210,138,0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.feature h3 {
    color: var(--navy);
    font-size: 17px;
}
.feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Screenshots placeholder section */
.screenshots {
    background: var(--bg-card);
}
.screenshot-placeholder {
    background: linear-gradient(135deg, #e1e6ed 0%, #f4f6f9 100%);
    border: 2px dashed #c5cdd9;
    border-radius: 12px;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    font-style: italic;
}
.screenshot-placeholder .label {
    display: inline-block;
    background: white;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
}

/* Testimonials carousel */
.testimonials {
    background: var(--bg-card);
}
.carousel {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 56px; /* space for prev/next arrows */
}
.carousel-viewport {
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.testimonial {
    flex: 0 0 100%;
    min-width: 0;
    padding: 8px 8px 24px;
    box-sizing: border-box;
    text-align: center;
}
.testimonial-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.testimonial-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}
.logo-placeholder {
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, rgba(14,46,84,0.05) 0%, rgba(244,210,138,0.18) 100%);
    border-radius: 14px;
    border: 1px dashed rgba(14,46,84,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 8px;
}
.testimonial-quote {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.6;
    color: var(--navy);
    font-style: italic;
    margin: 0 auto 22px;
    max-width: 600px;
    border: none;
    padding: 0;
    quotes: none;
}
.testimonial-author {
    margin-top: 18px;
}
.testimonial-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 15px;
}
.testimonial-role {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: var(--navy);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-prev:hover, .carousel-next:hover {
    background: var(--bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.carousel-dot:hover { background: var(--text-muted); }
.carousel-dot.active {
    background: var(--peach);
    transform: scale(1.3);
}

@media (max-width: 640px) {
    .carousel { padding: 0 36px; }
    .carousel-prev, .carousel-next { width: 32px; height: 32px; font-size: 20px; }
    .testimonial-quote { font-size: 15px; }
}

/* Pricing — grille des paliers */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14,46,84,0.08);
}
.pricing-card.highlighted {
    border-color: var(--peach);
    box-shadow: 0 4px 16px rgba(244,210,138,0.25);
    position: relative;
}
.pricing-card.highlighted::before {
    content: "Le plus choisi";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--peach);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
}
.pricing-card .tier {
    font-weight: 700;
    color: var(--navy);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pricing-card .price {
    margin: 4px 0;
}
.pricing-card .price .amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    display: block;
}
.pricing-card .price .unit {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.pricing-card .seats {
    color: var(--text-muted);
    font-size: 14px;
}
.pricing-card .extras {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Pricing — remise pluriannuelle */
.discount-block {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 32px;
}
.discount-block h3 {
    color: var(--navy);
    font-size: 18px;
    margin-bottom: 8px;
}
.discount-block p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.discount-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.discount-table th,
.discount-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.discount-table th {
    background: var(--bg);
    color: var(--navy);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.discount-table tr:last-child td { border-bottom: none; }
.discount-table tr.best-deal td {
    background: rgba(244,210,138,0.18);
    font-weight: 600;
}
.discount-table tr.best-deal td:first-child {
    border-left: 3px solid var(--peach);
}

/* Pricing — bloc essai gratuit */
.trial-block {
    background: linear-gradient(135deg, rgba(244,210,138,0.18) 0%, rgba(244,210,138,0.08) 100%);
    border: 1px solid var(--peach);
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
}
.trial-badge {
    display: inline-block;
    background: var(--peach);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.trial-block h3 {
    color: var(--navy);
    font-size: 20px;
    margin-bottom: 16px;
}
.trial-block ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 520px;
    text-align: left;
}
.trial-block li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
}
.trial-block li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: 700;
}

.pricing-footnote {
    margin-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* Mobile : table responsive */
@media (max-width: 640px) {
    .discount-table { font-size: 13px; }
    .discount-table th, .discount-table td { padding: 8px 10px; }
}

/* CTA section */
.cta-section {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 60px 24px;
}
.cta-section h2 { color: white; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }

/* Doc layout (privacy + terms) */
.doc {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
    background: white;
    border-radius: 0;
}
.doc h1 {
    font-size: clamp(26px, 4vw, 36px);
    color: var(--navy);
    margin-bottom: 8px;
}
.doc .updated {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 32px;
    font-style: italic;
}
.doc h2 {
    color: var(--navy);
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 {
    color: var(--navy-dark);
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 8px;
}
.doc p, .doc ul, .doc ol {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
}
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--navy); }
.doc .callout {
    background: rgba(244,210,138,0.18);
    border-left: 4px solid var(--peach);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
}
.doc .callout strong { color: var(--navy); }

/* Hide language blocks until JS loads (avoids FOUC) */
[data-lang] { display: none; }
[data-lang].active { display: block; }
[data-lang="fr"] { display: block; } /* default before JS */

/* Mobile adjustments */
@media (max-width: 640px) {
    header.site .header-inner { padding: 10px 16px; }
    header.site nav { gap: 10px; font-size: 13px; }
    header.site.shrink-on-scroll .header-inner { padding: 20px 16px 12px; }
    header.site.shrink-on-scroll .brand img { height: 92px; }
    header.site.shrink-on-scroll.scrolled .header-inner { padding: 10px 16px; }
    header.site.shrink-on-scroll.scrolled .brand img { height: 32px; }
    .hero { padding: 48px 16px 56px; }
    .cta.ghost { margin-left: 0; margin-top: 12px; display: block; }
    section { padding: 40px 16px; }
    .doc { padding: 32px 16px; }
    footer.site { padding: 24px 16px; }
}
