/* =============================================================================
   lilpaws-shop — app.css
   Base + mise en page du socle (header, footer, hero). Utilise tokens.css.
   Direction : premium mais pas figé — arrondi, aéré, chaleureux (DESIGN §5).
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: var(--leading);
    color: var(--ink);
    background-color: var(--cream);
    /* Fond texturé crème très subtil — atmosphère, pas de bruit (DESIGN §5). */
    background-image:
        radial-gradient(1200px 600px at 110% -10%, rgba(214, 139, 84, .08), transparent 60%),
        radial-gradient(900px 500px at -10% 0%, rgba(201, 203, 169, .12), transparent 55%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

p { margin: 0 0 1rem; }

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

img, svg { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Accessibilité : lien d'évitement + focus visible */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mise en lumière (Socheerful / Pacifico) — avec parcimonie (DESIGN §3) */
.u-highlight {
    font-family: var(--font-highlight);
    font-weight: 400;
    color: var(--gold);
}
.spark,
.brand__spark { color: var(--gold); }

/* ----------------------------------------------------------------- Header -- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 247, 237, .85);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding-block: .85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 40px; height: 40px; }
.brand__name {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: .01em;
}
.brand__name--lg { font-size: 1.7rem; }
.brand__spark { margin-left: .15rem; font-size: .9em; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--ink);
    font-size: .98rem;
    padding: .35rem .2rem;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover {
    color: var(--terracotta-deep);
    border-bottom-color: var(--gold);
    text-decoration: none;
}

.lang-switch {
    display: inline-flex;
    gap: .25rem;
    padding: .2rem;
    background: var(--beige);
    border-radius: var(--radius-pill);
}
.lang-switch__btn {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    color: var(--ink-soft);
    padding: .35rem .65rem;
    border-radius: var(--radius-pill);
    transition: background-color .15s ease, color .15s ease;
}
.lang-switch__btn:hover { color: var(--ink); text-decoration: none; }
.lang-switch__btn.is-active { background: var(--terracotta-deep); color: var(--cream); }

/* ------------------------------------------------------------------- Main -- */
main { flex: 1 0 auto; }

.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero__card {
    max-width: 760px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    background: var(--beige);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    /* Arche douce en tête de carte (motif récurrent du guide) */
    border-top-left-radius: 110px;
    border-top-right-radius: 110px;
    box-shadow: var(--shadow-soft);
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 1rem;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.hero__title { font-size: var(--h1); margin: 0 0 1rem; }
.hero__text { max-width: 52ch; margin: 0 0 1.25rem; }
.hero__status {
    display: inline-block;
    margin: 0 0 1.5rem;
    padding: .55rem .9rem;
    font-size: .95rem;
    background: var(--cream);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-md);
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* --------------------------------------------------------------- Boutons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .7rem 1.4rem;
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--terracotta-deep); color: var(--cream); }
.btn--primary:hover { background: var(--terracotta-darker); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--cream); }

/* ----------------------------------------------------------------- Footer -- */
.site-footer {
    margin-top: 3rem;
    background: var(--terracotta);
    color: var(--cream);
}
.site-footer a { color: var(--cream); }
.site-footer__inner {
    display: grid;
    gap: 1.25rem;
    padding-block: 2.5rem;
}
.site-footer__brand .brand__name { color: var(--cream); }
.site-footer__tagline { margin: .4rem 0 0; color: rgba(253, 247, 237, .9); }
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.site-footer__links a:hover { color: var(--cream); }
.site-footer__copy {
    margin: 0;
    font-size: .9rem;
    color: rgba(253, 247, 237, .85);
}

@media (min-width: 720px) {
    .site-footer__inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .site-footer__copy { grid-column: 1 / -1; }
}

/* ------------------------------------------------------- Motion réduit ----- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
