/*
Theme Name: Astra Sans Ordonnance
Template: astra
Version: 1.0.0
Author: OpenCode
Text Domain: astra-sans-ordonnance
*/

/* Base */
:root {
  --color-cream: #F8F7F2;
  --color-blue: #2F5F73;
  --color-blue-dark: #10233F;
  --color-sage: #8FB9A8;
  --color-mint: #E7F3EE;
  --color-coral: #E98D75;
  --color-sand: #EFE7DA;
  --color-text: #263238;
  --color-gray: #6E7A7D;
  --color-white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(16,35,63,0.08);
  --shadow-hover: 0 8px 32px rgba(16,35,63,0.12);
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-blue-dark); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 .6em; line-height: 1.25; color: var(--color-blue-dark); }
h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.2vw + .6rem, 1.4rem); font-weight: 600; }
p { margin: 0 0 1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--color-coral); color: var(--color-white); border-color: var(--color-coral); }
.btn-primary:hover { background: #d97b60; border-color: #d97b60; color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-blue); border-color: var(--color-blue); }
.btn-outline:hover { background: var(--color-blue); color: var(--color-white); }
.btn-white { background: var(--color-white); color: var(--color-blue-dark); border-color: var(--color-white); }
.btn-white:hover { background: var(--color-mint); color: var(--color-blue-dark); }

/* Layout */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.container-narrow { width: 92%; max-width: 780px; margin: 0 auto; }

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(143,185,168,.25);
  position: sticky; top: 0; z-index: 1000;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-brand a {
  font-weight: 800; font-size: 1.3rem; color: var(--color-blue-dark); display: inline-flex; align-items: center; gap: .5rem;
}
.site-brand .leaf { width: 28px; height: 28px; color: var(--color-sage); }

/* Nav desktop */
.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.main-nav a { font-weight: 500; color: var(--color-text); font-size: .95rem; }
.main-nav a:hover { color: var(--color-blue); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-actions .search-btn { background: none; border: none; cursor: pointer; color: var(--color-blue-dark); font-size: 1.1rem; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--color-blue-dark); font-size: 1.4rem; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--color-white); border-bottom: 1px solid rgba(143,185,168,.25); padding: 1rem 0; }
  .main-nav.active { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: 92%; margin: 0 auto; }
  .main-nav li { border-bottom: 1px solid var(--color-mint); }
  .main-nav a { display: block; padding: .9rem 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-mint) 100%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 5rem 0; }
.hero-text h1 { margin-bottom: 1rem; }
.hero-text p { color: var(--color-gray); font-size: 1.1rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding: 3rem 0; }
  .hero-media { order: -1; }
}

/* Trust bar */
.trust-bar { background: var(--color-white); border-bottom: 1px solid rgba(143,185,168,.25); padding: 1.2rem 0; }
.trust-list { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.trust-list li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--color-gray); }
.trust-list svg { width: 20px; height: 20px; color: var(--color-sage); flex-shrink: 0; }

/* Section common */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { margin-bottom: .4rem; }
.section-title p { color: var(--color-gray); max-width: 600px; margin: 0 auto; }

/* Theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.theme-card {
  background: var(--color-white); border-radius: var(--radius); padding: 1.8rem;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  border: 1px solid rgba(143,185,168,.2);
}
.theme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.theme-card .icon { width: 44px; height: 44px; color: var(--color-sage); margin-bottom: 1rem; }
.theme-card h3 { margin-bottom: .6rem; }
.theme-card p { color: var(--color-gray); font-size: .95rem; margin: 0; }
.theme-card .arrow { display: inline-flex; margin-top: 1rem; color: var(--color-blue); font-weight: 600; font-size: .9rem; }

/* Article cards */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
.post-card {
  background: var(--color-white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.post-card .thumb { position: relative; padding-top: 56%; overflow: hidden; background: var(--color-sand); }
.post-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .badge {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--color-mint); color: var(--color-blue-dark);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .25rem .7rem; border-radius: 999px; z-index: 2;
}
.post-card .body { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--color-blue-dark); }
.post-card h3 a:hover { color: var(--color-blue); }
.post-card .excerpt { color: var(--color-gray); font-size: .9rem; margin-bottom: 1rem; flex: 1; }
.post-card .read-more { font-weight: 600; font-size: .9rem; color: var(--color-blue); display: inline-flex; align-items: center; gap: .3rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.step-card { background: var(--color-white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border: 1px solid rgba(143,185,168,.2); }
.step-header { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.step-num { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--color-blue); color: var(--color-white); font-weight: 700; font-size: .85rem; }
.step-card h4 { margin: 0; font-size: 1.05rem; }
.step-card p { color: var(--color-gray); font-size: .92rem; margin: 0; }

/* Comparisons */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.compare-card { background: var(--color-white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid rgba(143,185,168,.2); }
.compare-card .stars { color: #f0b429; font-size: .9rem; margin-bottom: .3rem; }
.compare-card h4 { font-size: 1rem; margin-bottom: .4rem; }
.compare-card p { color: var(--color-gray); font-size: .88rem; margin-bottom: .8rem; }

/* Newsletter */
.newsletter-section { background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sand) 100%); padding: 4rem 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; }
.newsletter-text h2 { margin-bottom: .6rem; }
.newsletter-text p { color: var(--color-gray); }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px; padding: .85rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(143,185,168,.4); background: var(--color-white); font-size: .95rem;
}
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--color-sage); }
.newsletter-note { font-size: .8rem; color: var(--color-gray); margin-top: .6rem; }
@media (max-width: 860px) { .newsletter-inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--color-blue-dark); color: #cfe1e8; font-size: .92rem; }
.site-footer a { color: #cfe1e8; }
.site-footer a:hover { color: var(--color-white); }
.site-footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 1rem; }
.footer-top { padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr; gap: 2rem; }
.footer-brand .logo { font-weight: 800; font-size: 1.2rem; color: var(--color-white); display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.footer-brand p { color: #a3c4d0; line-height: 1.6; }
.footer-socials { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--color-white); transition: background .2s; }
.footer-socials a:hover { background: rgba(255,255,255,.18); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; text-align: center; color: #8aadbd; font-size: .85rem; }
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Single post */
.single-hero { background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-mint) 100%); padding: 3rem 0; }
.single-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.single-meta .badge { background: var(--color-mint); color: var(--color-blue-dark); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .25rem .7rem; border-radius: 999px; }
.single-meta time, .single-meta .author { font-size: .85rem; color: var(--color-gray); }
.single-hero h1 { max-width: 800px; }
.single-thumb { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.single-content { padding: 2.5rem 0; }
.single-content .entry { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.single-content .entry h2 { margin-top: 2rem; }
.single-content .entry h3 { margin-top: 1.6rem; }
.single-content .entry p { margin-bottom: 1.2rem; }
.single-content .entry a { text-decoration: underline; text-underline-offset: 3px; }
.single-content .entry img { border-radius: var(--radius); margin: 1.5rem 0; }
.single-content .entry ul, .single-content .entry ol { margin-bottom: 1.2rem; padding-left: 1.4rem; }
.single-content .entry blockquote { border-left: 4px solid var(--color-sage); background: var(--color-mint); padding: 1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(143,185,168,.25); }

/* Related posts */
.related-section { background: var(--color-white); padding: 3rem 0; border-top: 1px solid rgba(143,185,168,.2); }

/* Archive / Category */
.archive-header { background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-mint) 100%); padding: 3.5rem 0; text-align: center; }
.archive-header h1 { margin-bottom: .6rem; }
.archive-header p { color: var(--color-gray); max-width: 600px; margin: 0 auto; }
.archive-grid { padding: 3rem 0; }

/* Search */
.search-header { background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-mint) 100%); padding: 3rem 0; text-align: center; }
.search-header h1 { margin-bottom: .6rem; }
.search-form-large { max-width: 600px; margin: 1.5rem auto 0; display: flex; }
.search-form-large input { flex: 1; padding: 1rem 1.4rem; border-radius: 999px 0 0 999px; border: 1px solid rgba(143,185,168,.4); border-right: none; font-size: 1rem; background: var(--color-white); }
.search-form-large input:focus { outline: none; border-color: var(--color-sage); }
.search-form-large button { padding: 0 1.6rem; border-radius: 0 999px 999px 0; border: 1px solid var(--color-coral); background: var(--color-coral); color: var(--color-white); font-weight: 600; cursor: pointer; }

/* 404 */
.error-404 { text-align: center; padding: 5rem 0; }
.error-404 h1 { font-size: 6rem; color: var(--color-sage); line-height: 1; margin-bottom: .2rem; }
.error-404 h2 { margin-bottom: 1rem; }
.error-404 p { color: var(--color-gray); margin-bottom: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .55rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.pagination a { background: var(--color-white); color: var(--color-blue); border: 1px solid rgba(143,185,168,.3); }
.pagination a:hover { background: var(--color-blue); color: var(--color-white); border-color: var(--color-blue); }
.pagination .current { background: var(--color-blue); color: var(--color-white); }

/* Sidebar */
.sidebar { padding-left: 2rem; }
.sidebar .widget { background: var(--color-white); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid rgba(143,185,168,.2); }
.sidebar .widget h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .4rem 0; border-bottom: 1px solid var(--color-mint); }
.sidebar .widget li:last-child { border: none; }
@media (max-width: 860px) { .sidebar { padding-left: 0; margin-top: 2rem; } }

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }

/* Warning box */
.health-warning {
  background: #fff8e6; border-left: 4px solid #f0b429; padding: 1rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0; font-size: .95rem; color: #5c4b1e;
}

/* Accessibility skip link */
.skip-link { position: absolute; left: -9999px; top: 2rem; background: var(--color-blue-dark); color: var(--color-white); padding: .6rem 1rem; z-index: 10000; border-radius: var(--radius); }
.skip-link:focus { left: 2rem; }

/* Responsive helpers */
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; }
}
