/* MaBoutiqueArtisan — vitrine. Vanilla CSS, mobile-first, portable, CSP-safe (zéro CDN).
   Refonte design 2026-06-14 (direction inspirée du brief Stitch, réinterprétée en vanilla). */

:root {
  --terra: #c0603f;          /* accent principal */
  --terra-hover: #9c4a2d;
  --sand: #e8a87c;
  --sage: #2f7d56;           /* positif / "oui" */
  --cream: #faf6f0;          /* fond principal */
  --cream-2: #f1e8dd;        /* sections alternées */
  --surface: #fff8f6;        /* cartes */
  --surface-2: #f4e5e0;      /* cartes contrastées */
  --ink: #211a17;            /* texte */
  --ink-soft: #5e544c;       /* texte secondaire */
  --line: #e2d6c8;
  --dark: #372f2b;           /* footer */
  --maxw: 1200px;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(43, 35, 32, .06);
  --shadow-lg: 0 18px 40px rgba(43, 35, 32, .12);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(192, 96, 63, .18); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 24px); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--terra-hover); }

.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Boutons (cibles ≥ 48px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s, background-color .15s, color .15s, box-shadow .15s;
}
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 24px rgba(192, 96, 63, .22); }
.btn-ghost { background: transparent; color: var(--terra); border-color: var(--terra); }
.btn-lg { font-size: 1.05rem; padding: 16px 34px; }
.btn:active { transform: scale(.97); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--terra-hover); }
  .btn-ghost:hover { background: rgba(192, 96, 63, .06); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, .9); backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(43, 35, 32, .05); padding-top: env(safe-area-inset-top);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { display: block; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: var(--terra); }
.brand-name strong { color: var(--terra); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .site-nav a:hover { color: var(--terra); } }
.nav-cta { color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; cursor: pointer; flex-direction: column; gap: 5px; justify-content: center; align-items: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.band { padding: clamp(56px, 9vw, 100px) 0; background: #fff; }
.band-accent { background: var(--cream-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 680px; }
.section-foot { margin-top: 1.6em; font-size: 1.05rem; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0; background: linear-gradient(180deg, var(--cream), var(--cream-2)); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(32px, 6vw, 64px); grid-template-columns: 1fr 1fr; align-items: center; }
.hero-inner { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--terra-hover); margin: 0 0 1em; }
.hero h1 .accent { color: var(--terra); font-style: italic; }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.6em 0 1.2em; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.hero-note .dot { color: var(--sage); font-weight: 700; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(320px, 42vw, 480px); object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: rotate(1deg); }
.hero-media::before { content: ""; position: absolute; inset: -18px; background: radial-gradient(closest-side, rgba(47, 125, 86, .12), transparent); filter: blur(30px); z-index: -1; }

/* ---------- Bandeau "pour qui" ---------- */
.strip { background: var(--cream-2); padding: clamp(28px, 5vw, 44px) 0; text-align: center; }
.strip p { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--terra-hover); }

/* ---------- Cartes (bénéfices) ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.card-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: var(--radius); background: rgba(192, 96, 63, .1); color: var(--terra); margin-bottom: 18px; font-size: 1.6rem; }
.card-ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- Tableau comparatif ---------- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 600; }
.compare thead th:last-child { background: var(--terra); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td.yes { color: var(--sage); font-weight: 600; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- Étapes ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { text-align: center; position: relative; }
.step-num { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 700; font-size: 1.5rem; margin-bottom: 1em; box-shadow: 0 10px 24px rgba(192, 96, 63, .28); position: relative; }
.steps li:not(:last-child) .step-num::after { content: ""; position: absolute; top: 50%; left: calc(100% + 8px); width: calc(100% - 56px); height: 0; border-top: 2px dashed var(--sand); }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .steps li:not(:last-child) .step-num::after { display: none; } }

/* ---------- Tarif ---------- */
.price-card { max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); border-top: 8px solid var(--terra); box-shadow: var(--shadow-lg); padding: clamp(32px, 5vw, 48px); text-align: center; }
.price-tag { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: .4em 0 1em; }
.price-tag .amount { font-size: clamp(3rem, 9vw, 4rem); font-weight: 800; color: var(--terra); line-height: 1; }
.price-tag .per { color: var(--ink-soft); }
.price-list { list-style: none; padding: 0; margin: 0 auto 1.8em; max-width: 360px; text-align: left; display: grid; gap: 12px; }
.price-list li { display: flex; align-items: center; gap: 10px; }
.price-list svg { width: 22px; height: 22px; color: var(--sage); flex: none; }
.price-note { font-size: .85rem; color: var(--ink-soft); margin: 1em 0 0; }
.launch { background: var(--cream); border: 1px dashed var(--terra); color: var(--terra-hover); border-radius: var(--radius); padding: 10px 16px; display: inline-block; margin: 0 0 1.4em; font-size: .95rem; }

/* ---------- Témoignage ---------- */
.testimonial { max-width: 820px; margin: 0 auto; background: var(--surface-2); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); }
.stars { color: var(--terra); letter-spacing: 3px; margin-bottom: .6em; font-size: 1.1rem; }
.testimonial blockquote { margin: 0 0 1em; padding: 0; }
.testimonial blockquote p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-style: italic; color: var(--ink); }
.testimonial figcaption { color: var(--ink-soft); }
.testimonial figcaption cite { font-style: normal; font-weight: 700; color: var(--ink); }
.testimonial .links { margin-top: 1.4em; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); padding: 20px 40px 20px 0; position: relative; min-height: 48px; }
.faq-q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--terra); line-height: 1; }
.faq-q[aria-expanded="true"]::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { color: var(--ink-soft); padding-bottom: 20px; margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { background: var(--terra); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final .section-lead { color: rgba(255, 255, 255, .92); margin: 0 auto 1.6em; }
.cta-final .btn-primary { background: #fff; color: var(--terra); box-shadow: var(--shadow-lg); }
@media (hover: hover) { .cta-final .btn-primary:hover { background: var(--cream); } }
.cta-final .contact-mail { margin-top: 1.2em; color: rgba(255, 255, 255, .9); }
.cta-final .contact-mail a { color: #fff; }
.cta-final .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (hover: hover) { .cta-final .btn-ghost:hover { background: rgba(255, 255, 255, .12); } }
.cta-final .hero-cta { justify-content: center; }

/* ---------- Étude de cas (classes spécifiques) ---------- */
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.case-chips span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; color: var(--ink-soft); }
.case-prose { max-width: 720px; }
.case-prose p { color: var(--ink-soft); }
.case-ba { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 1.4em 0; }
.case-figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.case-figure img { width: 100%; height: auto; display: block; }
.case-figure figcaption { padding: 10px 14px; font-size: .9rem; color: var(--ink-soft); }
.case-benefits { max-width: 720px; margin: 1.4em 0 0; padding-left: 0; list-style: none; }
.case-benefits li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line); }
.case-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #d9cfc4; padding: clamp(40px, 6vw, 56px) 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-brand { font-size: 1.2rem; color: #fff; margin: 0; font-weight: 700; }
.footer-brand strong { color: var(--sand); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--sand); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .footer-nav a:hover { text-decoration: underline; } }
.footer-legal { width: 100%; font-size: .88rem; color: #b6a99d; margin: 0; }
.footer-copy { width: 100%; font-size: .82rem; color: #9a8e82; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-inner { margin: 0 auto; }
  .lead { max-width: none; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-media { order: -1; }
  .hero-media img { height: clamp(240px, 60vw, 360px); transform: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); padding: 12px clamp(20px, 5vw, 24px) 20px;
    gap: 4px; transform: translateY(-130%); transition: transform .22s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 14px 12px; }
  .nav-cta { margin-top: 6px; justify-content: center; }
}
