@import "tailwindcss";

/* Charte graphique Atelier d'Aubin — tons bois chauds */
@theme {
    --color-brand-50:  #fdf8f0;
    --color-brand-100: #f5e6cc;
    --color-brand-200: #e8c992;
    --color-brand-300: #d4a45a;
    --color-brand-400: #c08a3a;
    --color-brand-500: #a06e2a;
    --color-brand-600: #7a5420;
    --color-brand-700: #5c3f18;
    --color-brand-800: #3e2a10;
    --color-brand-900: #201508;

    /* Typographie */
    --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: white;
    color: #1a1a1a;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
}

/* Prose pour le contenu HTML */
.prose img { border-radius: 0.75rem; }
.prose a { color: var(--color-brand-600); }
.prose a:hover { text-decoration: underline; }

/* ── Page content ── */
.page-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #374151;
}

.page-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-brand-600);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-brand-600);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.page-content h3:first-child { margin-top: 0; }
.page-content p { margin-bottom: 1.25rem; }
.page-content strong { color: var(--color-brand-600); font-weight: 600; }

.page-content a {
    color: var(--color-brand-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
}

.page-content a:hover { opacity: 0.7; }

.page-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.page-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.page-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-brand-200);
}

.page-content hr {
    border: none;
    border-top: 2px solid var(--color-brand-200);
    margin: 2.5rem auto;
    width: 4rem;
}

/* ── Product description ── */
.product-description {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #374151;
}

.product-description p { margin-bottom: 1rem; }
.product-description strong { color: var(--color-brand-600); font-weight: 600; }

.product-description a {
    color: var(--color-brand-600);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.product-description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.product-description ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.product-description ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-brand-200);
}

.product-description h3,
.product-description h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-brand-600);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-description img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.8125rem;
    border: 1px solid var(--color-brand-600);
}

.product-description th {
    text-align: left;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-brand-600);
    background: var(--color-brand-600);
}

.product-description td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-brand-600);
}
