/* ==========================================================================
   DEVANTURE — Design system
   Identité : « l'atelier de la présence en ligne » — papier chaud, encre,
   terracotta. Éditorial, artisanal, précis. Aucune dépendance externe.
   ========================================================================== */

/* ---- Typographie auto-hébergée ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ---- */
:root {
  --paper: #FAF7F2;
  --paper-2: #F3EDE2;
  --sand: #EBE1D0;
  --line: #E0D5C2;
  --ink: #221D16;
  --ink-soft: #6B6156;
  --terra: #C4552D;
  --terra-dark: #99411F;
  --terra-soft: #F6E3D8;
  --green: #47694C;
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --container: 1120px;
  --shadow: 0 2px 6px rgba(34, 29, 22, .06), 0 14px 34px rgba(34, 29, 22, .07);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.35rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-variation-settings: 'opsz' 100; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ---- Accent « coup de pinceau » sous les mots-clés ---- */
.squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='9' viewBox='0 0 110 9'%3E%3Cpath d='M2 6.5C20 2.5 40 2 55 4.5S90 8 108 3.5' fill='none' stroke='%23C4552D' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .34em;
  padding-bottom: .18em;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--terra); color: #fff;
  font-weight: 650; font-size: 1rem; font-family: var(--font-body);
  padding: .95em 1.7em; border-radius: 999px; border: 2px solid var(--terra);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--terra-dark); border-color: var(--terra-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-small { padding: .6em 1.2em; font-size: .92rem; }

/* ---- En-tête ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-weight: 620; font-size: 1.5rem; letter-spacing: -.01em; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: .98rem; }
.main-nav a:hover { color: var(--terra); }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 16px; }
  .nav-open .main-nav { display: flex; }
  .nav-toggle { display: inline-flex; background: none; border: 2px solid var(--ink);
    border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
}

/* ---- Héros ---- */
.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }
.hero p.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); }
.hero-art { justify-self: center; width: min(420px, 100%); }

/* ---- Bandeau de confiance ---- */
.trust { border-block: 1px solid var(--line); background: var(--paper-2); }
.trust ul { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: center;
  list-style: none; margin: 0; padding: 16px 0; font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .5em; }
.tick { color: var(--green); font-weight: 800; }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--terra);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.eyebrow::after { content: ''; height: 1px; width: 56px; background: var(--terra); opacity: .5; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---- Cartes génériques ---- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: .35em; }
.card-icon { width: 46px; height: 46px; color: var(--terra); }

/* ---- Tarifs ---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.price-card.featured { border: 2.5px solid var(--terra); }
.badge { position: absolute; top: -14px; left: 26px; background: var(--terra); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .35em .9em; border-radius: 999px; }
.price-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0; }
.price-for { color: var(--ink-soft); font-size: .95rem; min-height: 2.6em; margin: .3em 0 0; }
.price-amount { font-family: var(--font-display); font-size: 3rem; font-weight: 620; margin: .25em 0 0; line-height: 1; }
.price-amount small { display: block; margin-top: 6px; font-size: .38em; font-weight: 550; color: var(--ink-soft); font-family: var(--font-body); }
.price-recur { color: var(--ink-soft); font-size: .92rem; margin: .5em 0 0; }
.check-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; flex-grow: 1; }
.check-list li { padding-left: 1.7em; position: relative; font-size: .98rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.check-list li.no::before { content: '✕'; color: #B3452C; }
.price-card .btn { justify-content: center; }

/* ---- Étapes ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.step-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--terra); line-height: 1; }
.step h3 { font-size: 1.12rem; margin-top: .6em; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---- Comparatif ---- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1.05rem; font-weight: 620; background: var(--paper-2); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--green); font-weight: 700; }
.compare .no { color: #B3452C; font-weight: 700; }
.compare td:nth-child(2) { background: var(--terra-soft); }

/* ---- Vitrines (mockups) ---- */
.demos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 8px; font-size: .74rem; color: var(--ink-soft); background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.browser figcaption { padding: 12px 16px 14px; font-size: .92rem; color: var(--ink-soft); }
.browser figcaption strong { color: var(--ink); }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 12px; max-width: 780px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
details.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--terra); flex-shrink: 0; }
details.faq[open] summary::after { content: '–'; }
details.faq p { color: var(--ink-soft); margin: 0 0 16px; }

/* ---- Bloc contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; text-align: center; box-shadow: var(--shadow); }
.contact-card .label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 650; }
.contact-card a.big { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--ink); text-decoration: none; margin-top: 8px; word-break: break-word; }
.contact-card a.big:hover { color: var(--terra); }

/* ---- CTA final ---- */
.cta-final { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta-final h2 { color: var(--paper); }
.cta-final p { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 34em; margin-inline: auto; }
.cta-final .btn { background: var(--terra); border-color: var(--terra); }

/* ---- Pied de page ---- */
.site-footer { background: var(--ink); color: #CFC7BB; margin-top: clamp(56px, 8vw, 104px); }
.site-footer .container { padding-block: 48px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--paper); font-family: var(--font-display); font-weight: 600; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #CFC7BB; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(250, 247, 242, .15); margin-top: 36px; padding-top: 20px;
  font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---- Pages intérieures (blog, légal) ---- */
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 3px solid var(--terra); margin: 1.2em 0; padding: .2em 0 .2em 1em; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); }

/* ---- Utilitaires ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media print {
  .site-header, .hero-ctas, .cta-final, .site-footer { display: none; }
  body { background: #fff; }
}
