/* ==========================================================================
   Trakey — landing & pages publiques
   Palette : navy Trakey (#2F558A) + ambre "étiquette de prix"
   Typo : Bricolage Grotesque (titres) / system-ui (texte)
   ========================================================================== */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../fonts_public/bricolage-grotesque-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --ink: #182740;
    --ink-soft: #52627d;
    --brand: #2f558a;
    --brand-deep: #223e66;
    --brand-ghost: #ebf1f9;
    --accent: #e9a13b;
    --accent-ink: #7a4e06;
    --accent-bg: #fdf3e3;
    --ok: #2e9e6b;
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --line: #dfe7f2;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(24, 39, 64, .08);
    --font-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0 0 .6em;
    letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: linear-gradient(160deg, var(--brand-deep), var(--brand)); color: #fff; }
.section--navy h2 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.1rem; }
.section--navy .section-lead { color: #cddbef; }

/* --------------------------------------------------------------------------
   Signature : l'étiquette de prix (chips avec œillet)
   -------------------------------------------------------------------------- */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .35em .9em .35em 1.5em;
    background: var(--accent-bg);
    color: var(--accent-ink);
    border: 1px solid #f0cf94;
    border-radius: 4px 999px 999px 4px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    position: relative;
    white-space: nowrap;
}
.tag-chip::before {
    content: '';
    position: absolute;
    left: .55em;
    top: 50%;
    width: .45em;
    height: .45em;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 1.5px #d9b26a;
}
.tag-chip--navy { background: var(--brand-ghost); color: var(--brand-deep); border-color: #c4d4ea; }
.tag-chip--navy::before { box-shadow: inset 0 0 0 1.5px #9db6d6; }

/* Boutons */
.btn {
    display: inline-block;
    padding: .8em 1.6em;
    border-radius: 10px;
    border: 1.5px solid transparent;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(47, 85, 138, .35); }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-ghost); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--lg { padding: 1em 2em; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 68px;
}
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
}
.site-header__brand img { height: 38px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-right: auto; }
.site-nav a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}
.site-nav a:hover { color: var(--brand); }
.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__actions .btn { padding: .55em 1.2em; font-size: .95rem; }
.site-header__login { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-header__login:hover { color: var(--brand); }

/* Sélecteur de langue */
.lang-menu { position: relative; }
.lang-menu > button {
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .4em .8em;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
}
.lang-menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    list-style: none;
    margin: 0;
    padding: 6px;
    min-width: 140px;
    display: none;
}
.lang-menu.is-open .lang-menu__list { display: block; }
.lang-menu__list a {
    display: block;
    padding: .45em .8em;
    border-radius: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: .92rem;
}
.lang-menu__list a:hover { background: var(--bg-alt); }

/* Burger mobile */
.burger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 860px) {
    .site-nav, .site-header__login { display: none; }
    .burger { display: block; margin-left: auto; }
    .site-header__actions { margin-left: 0; }
    .site-header__actions .btn { display: none; }
    .site-header.is-open .site-nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 18px 24px 24px;
        gap: 16px;
    }
    .site-header.is-open .site-nav a { font-size: 1.05rem; }
    .site-header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .site-header.is-open .burger span:nth-child(2) { opacity: 0; }
    .site-header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
}
.hero h1 .u-accent { color: var(--brand); }
.hero__lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero__note { font-size: .9rem; color: var(--ink-soft); }
.hero__note .u-ok { color: var(--ok); font-weight: 700; }

.hero__visual { position: relative; }
.hero__visual img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 18px 48px rgba(24, 39, 64, .16);
}
.hero__visual .tag-chip { position: absolute; box-shadow: var(--shadow); }
.hero__visual .tag-chip:nth-of-type(1) { top: -14px; left: 8%; transform: rotate(-3deg); }
.hero__visual .tag-chip:nth-of-type(2) { bottom: 18%; left: -18px; transform: rotate(2deg); }
.hero__visual .tag-chip:nth-of-type(3) { bottom: -14px; right: 6%; transform: rotate(-2deg); }

@media (prefers-reduced-motion: no-preference) {
    .hero__copy, .hero__visual { animation: rise .6s ease both; }
    .hero__visual { animation-delay: .12s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}

@media (max-width: 960px) {
    .hero { padding-top: 44px; }
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual .tag-chip:nth-of-type(2) { left: 4px; }
}

/* --------------------------------------------------------------------------
   Étapes
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.step__num {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-ghost);
    color: var(--brand-deep);
    font-family: var(--font-display);
    font-weight: 800;
    margin-bottom: 16px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-ghost);
    color: var(--brand);
    margin-bottom: 14px;
    font-size: 1.2rem;
}
.feature p { color: var(--ink-soft); margin: 0; font-size: .96rem; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Bande screenshots (section navy)
   -------------------------------------------------------------------------- */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.shot {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 16px;
}
.shot img { border-radius: 8px; width: 100%; }
.shot figcaption { margin-top: 12px; font-size: .92rem; color: #cddbef; }
.shot figcaption strong { color: #fff; display: block; font-family: var(--font-display); }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pricing (beta)
   -------------------------------------------------------------------------- */
.pricing-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid var(--brand);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    position: relative;
}
.pricing-card > .tag-chip { position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.pricing-card__price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    margin: 12px 0 4px;
}
.pricing-card__period { color: var(--ink-soft); margin-bottom: 24px; }
.pricing-card ul {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 10px;
}
.pricing-card li { padding-left: 1.7em; position: relative; color: var(--ink-soft); }
.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ok);
    font-weight: 700;
}
.pricing-note { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 20px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 22px;
}
.faq summary {
    cursor: pointer;
    padding: 18px 0;
    font-family: var(--font-display);
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 34px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--brand);
    font-weight: 400;
}
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 20px; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   CTA / newsletter
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 24px auto 0;
}
.newsletter-form input {
    flex: 1;
    min-width: 0;
    padding: .8em 1.1em;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: inherit;
}
.newsletter-form input::placeholder { color: #b9cbe5; }
.newsletter-form input:focus { outline: 3px solid var(--accent); border-color: transparent; }
.newsletter-msg { margin-top: 14px; font-size: .95rem; min-height: 1.4em; }

@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    padding: 56px 0 32px;
    font-size: .95rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.site-footer__brand img { height: 32px; }
.site-footer__brand p { color: var(--ink-soft); margin-top: 12px; max-width: 26em; }
.site-footer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer__bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: .88rem;
}
.site-footer__langs { display: flex; gap: 12px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pages contenu (FAQ complète, CG, privacy, apps)
   -------------------------------------------------------------------------- */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.page-head p { color: var(--ink-soft); max-width: 40em; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); }

.app-cta { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.app-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; max-width: 560px; }
.app-steps li {
    counter-increment: step;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px 16px 58px;
    position: relative;
    color: var(--ink-soft);
}
.app-steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-ghost);
    color: var(--brand-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .9rem;
}

/* Utilitaires */
.u-center { text-align: center; }
.u-mt-lg { margin-top: 40px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
