/* ============================================================
   app.css — Globals : reset, fonts, design tokens
   À placer dans wwwroot/app.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
    /* Couleurs */
    --bg: #F5EEE3;
    --surface: #FBF6EC;
    --text: #431f28;
    --text-muted: #5C6B82;
    --accent: #B8935E;
    --border: #E5DCC9;

    /* Typographie */
    --font-serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
}

button {
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/* Pour la nav ancrée — décalage du header sticky */
section[id] {
    scroll-margin-top: 80px;
}

/* Erreur Blazor par défaut */
#blazor-error-ui {
    background: #2c2c2c;
    color: white;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ---------- Footer Instagram ---------- */
.footer-instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-instagram-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* ---------- Footer legal links ---------- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ---------- Pages légales ---------- */
.legal-page {
    padding: 6rem 1.5rem 5rem;
    min-height: 60vh;
    max-width: 860px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.legal-page h2 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    margin: 2.5rem 0 0.75rem;
}

.legal-page p,
.legal-page ul {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 1rem;
    max-width: 70ch;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.legal-back a {
    font-size: 0.9rem;
}
