@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
    --green: #123a2e;
    --green-deep: #0c2a21;
    --terracotta: #d9622b;
    --terracotta-strong: #a8461a;
    --terracotta-strong-hover: #933c15;
    --terracotta-ink: #fff6f0;
    --sage: #6fa08e;
    --sage-muted: #8fb3a5;
    --ink: #14201c;
    --ink-muted: #4a5852;
    --ink-faint: #5e6e67;
    --cream: #edeae2;
    --cream-light: #f2ede4;
    --surface: #ffffff;
    --surface-alt: #f8f7f3;
    --border: #d3d0c6;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
    --display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
    --text: "IBM Plex Sans", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.65 var(--text); overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; color: var(--green); letter-spacing: -0.03em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 20; background: var(--terracotta-strong); color: var(--terracotta-ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 12px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: 600 15px/1.2 var(--text); text-decoration: none; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--terracotta-strong); color: var(--terracotta-ink); }
.btn-primary:hover { background: var(--terracotta-strong-hover); }
.btn-ghost-light { border-color: var(--sage-muted); color: var(--cream-light); }
.btn-ghost-light:hover { border-color: var(--cream-light); background: rgba(242, 237, 228, .08); }
.btn-ghost { border-color: var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--surface-alt); }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--green); border-bottom: 1px solid rgba(143, 179, 165, .18); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 21px var(--display); letter-spacing: -0.035em; color: var(--cream-light); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { color: var(--sage-muted); font-size: 14.5px; text-decoration: none; }
.site-nav a:hover { color: var(--cream-light); }
.site-header .btn { min-height: 40px; padding: 9px 16px; font-size: 14px; }
@media (max-width: 860px) {
    .site-nav { display: none; }
    .site-header .btn { margin-left: auto; }
}
@media (max-width: 420px) {
    .site-header .btn { padding: 9px 12px; font-size: 13px; }
}

/* Couverture */
.hero { position: relative; background: var(--green); color: var(--cream-light); overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: clamp(56px, 9vw, 104px); }
.hero-mark { position: absolute; right: -14%; top: -18%; width: min(760px, 90vw); opacity: .07; pointer-events: none; }
.hero h1 { font-size: clamp(38px, 6.9vw, 84px); line-height: .98; letter-spacing: -0.045em; color: var(--cream-light); }
.hero-lead { max-width: 54ch; margin-top: 26px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--sage-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-shots { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.hero-shots .desk { width: 100%; border: 1px solid rgba(143, 179, 165, .3); border-bottom: 0; box-shadow: 0 -1px 0 rgba(0, 0, 0, .1); }
.hero-shots .phone { position: absolute; right: clamp(8px, 4vw, 48px); bottom: 0; width: clamp(110px, 19%, 230px); border: 6px solid var(--green-deep); border-bottom: 0; border-radius: 22px 22px 0 0; }
.hero-note { position: absolute; left: 0; bottom: -28px; font: 400 12px var(--mono); color: var(--ink-faint); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--border); }
.kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.kicker::before { content: ""; width: 8px; height: 8px; background: var(--terracotta); }
.section h2 { max-width: 20ch; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.04; }
#constat { max-width: none; }
/* Les titres portent des retours à la ligne choisis (br.cesure) ; le reste se répartit seul. */
h1, h2, h3 { text-wrap: balance; }
.section-lead { max-width: 60ch; margin-top: 20px; font-size: clamp(17px, 1.8vw, 19px); color: var(--ink-muted); }

/* Constat */
.problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 2px solid var(--green); }
.problems div { padding: 22px 26px 0 0; }
.problems div + div { padding-left: 26px; border-left: 1px solid var(--border); }
.problems h3 { font-size: 20px; letter-spacing: -0.02em; }
.problems p { margin-top: 8px; color: var(--ink-muted); font-size: 16px; }
.answer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.answer p { font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--display); letter-spacing: -0.02em; color: var(--green); }
@media (max-width: 760px) {
    .problems { grid-template-columns: minmax(0, 1fr); }
    .problems div, .problems div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--border); }
    .answer { grid-template-columns: minmax(0, 1fr); }
}

.shot { border: 1px solid var(--border); background: var(--surface); }
.caption { margin-top: 10px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-faint); }

/* Fonctionnalités */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature-label { font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta-strong); }
.feature h3 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.feature-text > p { margin-top: 16px; color: var(--ink-muted); }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--border); font-size: 15.5px; color: var(--ink-muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--green); }
.ticks b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
    .feature, .feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); }
    .feature:nth-of-type(even) .feature-text { order: 0; }
}

/* Assistant IA */
.ai { background: var(--green); color: var(--cream-light); border-top: 0 !important; }
.ai .kicker { color: var(--sage-muted); }
.ai h2 { color: var(--cream-light); }
.ai .section-lead { color: var(--sage-muted); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 52px; }
.ai-video { border: 1px solid rgba(143, 179, 165, .3); background: var(--green-deep); }
.ai-figure { margin: 0; }
.ai-figure .caption { color: var(--sage-muted); }

/* Exemples de demandes faites à l'IA */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.demandes-onglets { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 16px; }
.demandes-onglets button { padding: 0 0 5px; font: 500 15px/1.4 var(--text); color: var(--sage-muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; }
.demandes-onglets button:hover { color: var(--cream-light); }
.demandes-onglets button[aria-selected="true"] { color: var(--cream-light); border-bottom-color: var(--terracotta); }
.demandes-cadre { display: grid; background: var(--green-deep); border: 1px solid rgba(143, 179, 165, .3); }
.demande-volet { grid-area: 1 / 1; display: flex; flex-direction: column; padding: clamp(20px, 3vw, 30px); }
.demande-volet.est-masque { visibility: hidden; }
.demande-piece { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font: 400 12.5px/1.5 var(--mono); color: var(--sage-muted); }
.demande-texte { margin-bottom: 26px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--cream-light); }
.demande-texte .a-saisir { visibility: hidden; }
.demande-texte .curseur { position: relative; display: inline-block; width: 0; }
.demande-texte .curseur::after { content: ""; position: absolute; left: 1px; bottom: -.14em; width: 2px; height: 1.1em; background: var(--terracotta); animation: demande-curseur 1s steps(1) infinite; }
@keyframes demande-curseur { 50% { opacity: 0; } }
.demande-suites { margin: auto 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(143, 179, 165, .25); font-size: 15px; line-height: 1.45; }
.demande-suites li { position: relative; padding: 5px 0 5px 24px; color: var(--sage-muted); transition: opacity .4s ease; }
.demande-suites li[data-par="vous"] { color: var(--cream-light); }
/* Fait par l'IA : une coche. Reste à faire par une personne : un cercle vide. */
.demande-suites li[data-par="ia"]::before { content: ""; position: absolute; left: 3px; top: .62em; width: 5px; height: 9px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.demande-suites li[data-par="vous"]::before { content: ""; position: absolute; left: 1px; top: .78em; width: 9px; height: 9px; border: 1.5px solid var(--terracotta); border-radius: 50%; }
.demandes.est-anime .demande-suites li { opacity: 0; }
.demandes.est-anime .demande-suites li.est-visible { opacity: 1; }
.demandes-pause { margin-top: 12px; padding: 0; font: 400 12.5px/1.5 var(--mono); color: var(--sage-muted); background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.demandes-pause:hover { color: var(--cream-light); }
@media (prefers-reduced-motion: reduce) { .demande-suites li, .demandes-onglets button { transition: none; } }
.ai-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 52px; border-top: 1px solid rgba(143, 179, 165, .25); }
.ai-facts div { padding: 20px 24px 0 0; }
.ai-facts div + div { padding-left: 24px; border-left: 1px solid rgba(143, 179, 165, .25); }
.ai-facts h3 { font-size: 17px; letter-spacing: -0.01em; color: var(--cream-light); }
.ai-facts p { margin-top: 6px; font-size: 15px; color: var(--sage-muted); }
@media (max-width: 860px) {
    .ai-grid, .ai-facts { grid-template-columns: minmax(0, 1fr); }
    .ai-facts div, .ai-facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid rgba(143, 179, 165, .25); }
}

/* Pour qui */
.audience { width: 100%; margin-top: 44px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); }
.audience th, .audience td { padding: 16px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.audience tr:first-child th, .audience tr:first-child td { border-top: 0; }
.audience th { width: 28%; font: 600 16px var(--display); color: var(--green); }
.audience td { color: var(--ink-muted); font-size: 16px; }
@media (max-width: 640px) {
    .audience, .audience tbody, .audience tr, .audience th, .audience td { display: block; width: 100%; }
    .audience th { padding-bottom: 2px; }
    .audience td { border-top: 0; padding-top: 0; }
}

/* Installation */
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); margin-top: 52px; }
.install h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 14px; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); font-size: 15.5px; }
.specs th, .specs td { padding: 11px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 0; }
.specs th { width: 34%; font-weight: 600; color: var(--ink); }
.specs td { color: var(--ink-muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--border); color: var(--ink-muted); font-size: 15.5px; }
.steps li::before { content: counter(s); font: 600 17px var(--display); color: var(--terracotta-strong); }
.outflows { margin-top: 32px; padding: 20px 22px; border-left: 3px solid var(--terracotta); background: var(--surface-alt); }
.outflows h3 { margin-bottom: 8px; font-size: 17px; }
.outflows ul { margin: 0; padding-left: 18px; color: var(--ink-muted); font-size: 15.5px; }
.updates { margin-top: 24px; color: var(--ink-muted); font-size: 15.5px; }
@media (max-width: 860px) { .install { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin-top: 40px; border-top: 2px solid var(--green); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font: 600 clamp(17px, 1.8vw, 19px)/1.35 var(--display); letter-spacing: -0.01em; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 24px/1 var(--text); color: var(--terracotta-strong); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--ink-muted); }

/* Contact */
.contact { background: var(--green); color: var(--cream-light); border-top: 0 !important; }
.contact h2 { color: var(--cream-light); max-width: 18ch; }
.contact .section-lead { color: var(--sage-muted); }
.contact-lines { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(143, 179, 165, .3); }
.contact-lines a { font: 600 clamp(20px, 2.4vw, 26px) var(--display); letter-spacing: -0.02em; text-decoration: none; color: var(--cream-light); }
.contact-lines a:hover { color: var(--terracotta); }
.contact-lines a:first-child { color: var(--terracotta); }
.contact .hero-actions { margin-top: 36px; }

/* Fenêtres modales */
html:has(dialog[open]) { overflow: hidden; }
.modale { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; background: var(--green); color: var(--cream-light); color-scheme: dark; border: 1px solid rgba(143, 179, 165, .4); }
.modale-etroite { width: min(500px, calc(100vw - 32px)); }
.modale:focus-visible { outline: none; }
.modale::backdrop { background: rgba(8, 28, 22, .78); }
.modale[open] { animation: modale-entree .2s ease-out; }
@keyframes modale-entree { from { opacity: 0; transform: translateY(10px); } }
.modale-corps { position: relative; padding: clamp(24px, 5vw, 44px); }
.modale h2 { padding-right: 44px; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; color: var(--cream-light); }
.modale-fermer { position: absolute; top: clamp(16px, 3.5vw, 30px); right: clamp(16px, 3.5vw, 30px); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--sage-muted); background: none; border: 1px solid transparent; cursor: pointer; transition: color .15s, border-color .15s; }
.modale-fermer:hover { color: var(--cream-light); border-color: rgba(143, 179, 165, .5); }
@media (prefers-reduced-motion: reduce) { .modale[open] { animation: none; } }

/* Formulaires */
.form-intro { max-width: 46ch; margin-top: 10px; font-size: 16px; color: var(--sage-muted); }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.champ label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--cream-light); }
.champ label span { font-weight: 400; color: var(--sage-muted); }
.champ input, .champ textarea { display: block; width: 100%; padding: 12px 14px; font: 400 16px/1.4 var(--text); color: var(--cream-light); background: rgba(12, 42, 33, .6); border: 1px solid rgba(143, 179, 165, .5); border-radius: 0; transition: border-color .15s; }
.champ textarea { min-height: 96px; resize: vertical; }
.champ input:hover, .champ textarea:hover { border-color: var(--sage-muted); }
.champ input:focus, .champ textarea:focus { border-color: var(--cream-light); }
.form .btn, .form-fin .btn { justify-self: start; cursor: pointer; }
button.btn-ghost-light:not(:hover) { background: transparent; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }
.form-message { font-size: 15px; color: #ffd9c7; }
.form-message:empty { display: none; }
.form-note { max-width: 52ch; font-size: 13.5px; line-height: 1.55; color: var(--sage-muted); }
.form-ok { max-width: 46ch; margin: 26px 0 24px; padding-left: 18px; border-left: 3px solid var(--terracotta); font-size: 18px; line-height: 1.5; color: var(--cream-light); }
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .form-duo { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .champ input, .champ textarea { transition: none; } }

/* Pied */
.site-footer { background: var(--green-deep); color: var(--sage-muted); font-size: 14.5px; line-height: 1.6; }
.site-footer .wrap { padding-top: clamp(36px, 5vw, 52px); padding-bottom: 26px; }
.site-footer a:not(.brand) { color: var(--cream-light); text-decoration-color: rgba(143, 179, 165, .55); text-underline-offset: 4px; transition: text-decoration-color .15s; }
.site-footer a:not(.brand):hover { text-decoration-color: var(--terracotta); }
.pied-haut { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; }
.pied-marque p { margin-top: 10px; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 8px 30px; padding-top: 5px; }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; margin-top: clamp(28px, 4vw, 40px); padding-top: 18px; border-top: 1px solid rgba(143, 179, 165, .2); font-size: 13px; }
.form-note a { color: var(--cream-light); text-underline-offset: 3px; }
