/* Automatisation TPE — feuille de style unique. Couleurs et polices dans :root. */
:root {
  --paper: #f6f1e7; --paper-2: #ede5d5; --card: #fffdf8;
  --ink: #1e2b25; --ink-2: #4a5650;
  --green: #1f5c47; --green-d: #17473a; --green-t: #e1ebe3;
  --tomato: #c9502f; --butter: #f6d776; --rule: rgba(30,43,37,0.14);
  --f-serif: 'Newsreader', Georgia, serif;
  --f-body: 'Figtree', system-ui, sans-serif;
  --f-hand: 'Caveat', cursive;
  --edge: clamp(20px, 5vw, 48px);
  --sec: clamp(64px, 9vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--butter); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--edge); }
.section { padding-block: var(--sec); }
[id] { scroll-margin-top: 64px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tomato); }
.h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; max-width: 20ch; }
.eyebrow + .h2 { margin-top: 14px; }
.h2 em, h1 em { font-style: italic; }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 600; font-size: 17px; padding: 17px 26px; border-radius: 14px; white-space: nowrap; cursor: pointer; border: 0; background: var(--green); color: var(--paper); transition: background .2s; }
.btn:hover { background: var(--green-d); color: var(--paper); }
.btn-sm { font-size: 15px; padding: 11px 18px; border-radius: 12px; }
.link-cta { color: var(--green); font-weight: 600; font-size: 17px; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 2px; white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246,241,231,0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; white-space: nowrap; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--green); color: var(--paper); display: grid; place-items: center; font-family: var(--f-serif); font-style: italic; font-size: 20px; line-height: 1; }
.brand small { color: var(--ink-2); font-weight: 500; font-size: inherit; }
.nav-link { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 900px) { .nav-link { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.tag { display: inline-flex; font-size: 14px; font-weight: 600; color: var(--green); background: var(--green-t); padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(44px, 6.2vw, 80px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 24px; }
.hero h1 em { color: var(--green); }
.hero-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); margin-top: 24px; max-width: 48ch; }
.hero .btn { margin-top: 34px; box-shadow: 0 10px 24px -12px rgba(31,92,71,0.6); }
.hero-note { font-size: 15px; color: var(--ink-2); margin-top: 16px; }

.pad-wrap { position: relative; max-width: 500px; width: 100%; justify-self: center; }
.pad-wrap::before { content: ""; position: absolute; inset: 14px -10px -14px 10px; background: var(--paper-2); border-radius: 20px; transform: rotate(2deg); }
.notepad { position: relative; background: var(--card); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(30,43,37,0.35); transform: rotate(-1.2deg); overflow: hidden; }
.pad-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 26px 12px; border-bottom: 2px solid rgba(201,80,47,0.35); }
.pad-head strong { font-family: var(--f-hand); font-weight: 600; font-size: 30px; }
.pad-head span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.pad-list { list-style: none; margin: 0; padding: 6px 26px 8px; background-image: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(30,43,37,0.08) 47px 48px); }
.task { display: flex; align-items: center; gap: 12px; height: 48px; }
.task .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(30,43,37,0.35); display: grid; place-items: center; color: var(--card); font-size: 13px; font-weight: 700; transition: all .35s; }
.task .label { flex: 1; min-width: 0; font-family: var(--f-hand); font-size: 23px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration-color: var(--tomato); text-decoration-thickness: 2px; transition: color .35s; }
.task .auto { flex: none; font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-t); padding: 4px 9px; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.task.is-done .box { background: var(--green); border-color: var(--green); }
.task.is-done .box::after { content: "✓"; }
.task.is-done .label { color: rgba(30,43,37,0.4); text-decoration-line: line-through; }
.task.is-done .auto { opacity: 1; transform: none; }
.pad-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 26px; background: var(--green); color: var(--paper); font-size: 15px; }
.pad-foot b { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1; }
.sticky-note { position: absolute; right: -8px; bottom: -34px; background: var(--butter); padding: 14px 18px; border-radius: 4px; transform: rotate(3deg); box-shadow: 0 12px 24px -14px rgba(30,43,37,0.4); font-family: var(--f-hand); font-size: 22px; line-height: 1.1; max-width: 190px; opacity: 0; transition: opacity .5s; }
.sticky-note.is-visible { opacity: 1; }

/* problèmes */
.pains-sec { background: var(--card); border-block: 1px solid var(--rule); }
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 40px; }
.pain { padding: 26px 26px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
.pain blockquote { font-family: var(--f-serif); font-style: italic; font-size: 23px; line-height: 1.3; }
.pain figcaption { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--green); }
.row-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.row-cta p { font-size: 19px; line-height: 1.5; max-width: 52ch; }

/* exemples */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.tabs [role="tab"] { font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--rule); background: transparent; color: var(--ink); transition: all .2s; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.case-panel { margin-top: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 24px; padding: clamp(22px, 4vw, 44px); }
.case-panel > p { font-family: var(--f-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; max-width: 40ch; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; }
.step { padding: 18px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--rule); transform: translateY(4px); transition: all .4s; min-height: 120px; }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.step-top em { font-style: normal; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); }
.step.you .step-top em { color: #8a6410; }
.step strong { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; margin-top: 12px; }
.step span { display: block; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin-top: 6px; }
.step.is-on { background: var(--green-t); border-color: var(--green); transform: none; }
.step.is-on .step-top { color: var(--green); }
.step.you.is-on { background: #fdf3d4; border-color: #e2b93b; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 17px; }
.case-foot strong { color: var(--green); }

/* outils */
.tools-sec { background: var(--green); color: var(--paper); overflow: hidden; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.tools-sec .h2 { max-width: none; }
.tools-sec .h2 em { color: var(--butter); }
.tools-sec p { font-size: 18px; line-height: 1.6; color: rgba(246,241,231,0.85); margin-top: 22px; max-width: 46ch; }
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.checks li::before { content: "✓"; color: var(--butter); font-weight: 700; margin-right: 12px; }
.tool-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 12px; list-style: none; margin: 0; }
.tool-cloud li { font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; padding: 14px 20px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(0,0,0,0.4); white-space: nowrap; }
.tool-cloud li:nth-child(3n+2) { background: var(--butter); }
.tool-cloud li:nth-child(3n) { background: var(--card); color: var(--green); }
.tool-cloud li:nth-child(odd) { transform: rotate(-2deg); }
.tool-cloud li:nth-child(even) { transform: rotate(2deg); }
.tool-cloud li:nth-child(4n) { transform: rotate(0); }

/* déroulé */
.flow-steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px; }
.flow-steps b { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 64px; line-height: 1; color: var(--green); }
.flow-steps h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 16px 0 8px; }
.flow-steps p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* qui */
.about { max-width: 1104px; margin: 0 auto; background: var(--card); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 56px; align-items: center; }
.about-id { display: flex; align-items: center; gap: 20px; }
.avatar { flex: none; width: 112px; height: 112px; border-radius: 50%; background: var(--green-t); color: var(--green); display: grid; place-items: center; font-family: var(--f-serif); font-size: 42px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-id strong { display: block; font-family: var(--f-serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.about-id span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.about-text { display: grid; gap: 14px; font-size: 18px; line-height: 1.6; }
.about-text small { font-size: 15px; color: var(--ink-2); padding-top: 14px; border-top: 1px solid var(--rule); }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq { margin-top: 32px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-t); color: var(--green); display: grid; place-items: center; font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { font-size: 17px; line-height: 1.65; color: var(--ink-2); padding: 0 48px 24px 0; }

/* diagnostic */
.diag { background: var(--green-d); color: var(--paper); }
.diag-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 48px; align-items: start; }
.diag h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.diag h2 em { font-style: italic; color: var(--butter); }
.dots { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; font-size: 17px; }
.dots li::before { content: "●"; color: var(--butter); margin-right: 12px; }
.call { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(246,241,231,0.2); display: grid; gap: 8px; }
.call span { font-size: 15px; color: rgba(246,241,231,0.75); }
.call a { color: var(--paper); text-decoration: none; font-family: var(--f-serif); font-size: 34px; line-height: 1; }
.call a:hover { color: var(--butter); }
.form-card { background: var(--card); color: var(--ink); border-radius: 24px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5); }
.lead-form { display: grid; gap: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--rule); border-radius: 12px; padding: 13px 14px; outline: none; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent input { margin-top: 3px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { justify-content: center; font-weight: 700; }
.form-error { font-size: 14px; color: var(--tomato); }
.form-success { padding: 20px 0; }
.form-success small { font-size: 14px; font-weight: 700; color: var(--green); }
.form-success p { font-family: var(--f-serif); font-size: 30px; line-height: 1.2; margin-top: 12px; }

/* footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 32px 44px; font-size: 14px; color: var(--ink-2); }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; gap: 20px; }

/* pages légales */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--edge); }
.legal h1 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 32px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.todo { background: var(--butter); color: var(--ink); padding: 1px 6px; border-radius: 4px; }

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