*, *::before, *::after { box-sizing: border-box; }
:root { --dark: #1c2143; --accent: #ff5821; --soft: #748ebf; --bg: #f5f7fb; --text: #2b2f45; }
html, body { margin: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.6; color: var(--text); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--dark); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* En-tête et menu */
.site-header { background: #fff; box-shadow: 0 1px 6px rgba(28, 33, 67, .12); position: relative; z-index: 10; }
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; height: 36px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
.nav > a, .has-sub > a { color: var(--dark); font-weight: 600; padding: 8px 0; display: inline-block; }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: -12px; min-width: 230px; background: #fff; box-shadow: 0 6px 18px rgba(28, 33, 67, .18); border-radius: 6px; padding: 8px 0; }
.sub a { display: block; padding: 7px 16px; color: var(--dark); }
.sub a:hover { background: var(--bg); text-decoration: none; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg); }
.center { text-align: center; }
.lead { font-size: 1.1rem; max-width: 760px; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero { background: var(--dark); color: #fff; padding: 72px 0 96px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%); }
.hero h1 { color: #fff; font-size: 2.8rem; }
.hero p { font-size: 1.15rem; color: #d8def0; }
.hero .grid { align-items: center; }
.page-title { background: var(--dark); color: #fff; padding: 48px 0; }
.page-title h1 { color: #fff; margin: 0; }
.page-title p { color: #d8def0; max-width: 800px; margin: 12px 0 0; }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 11px 26px; border-radius: 30px; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.hero .btn.ghost { color: #fff; border-color: #fff; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 2px 10px rgba(28, 33, 67, .08); }
.card img { display: block; margin-bottom: 14px; border-radius: 6px; }
.card h3 { margin-top: 0; }
.quote { font-style: italic; border-left: 4px solid var(--accent); padding-left: 16px; }
.quote span { display: block; font-style: normal; font-weight: 700; color: var(--dark); margin-top: 8px; }
.logos { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: center; }
.logos img { max-height: 56px; width: auto; }
.video { position: relative; padding-top: 56.25%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cta { background: var(--dark); color: #fff; text-align: center; padding: 56px 0; }
.cta h2 { color: #fff; }

/* Étapes des cas d'usage */
.step { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: center; padding: 28px 0; border-bottom: 1px solid #e3e7f1; }
.step:last-child { border-bottom: 0; }
.step h2 { font-size: 1.3rem; }
.roi { background: var(--bg); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 6px; }
.roi ul { margin: 8px 0 0; padding-left: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags li { background: #e8edf8; color: var(--dark); border-radius: 20px; padding: 4px 14px; font-size: .9rem; }

/* Tarifs */
.price { text-align: center; }
.price .amount { font-size: 2.4rem; font-weight: 800; color: var(--dark); margin: 0; }
.price .amount small { font-size: 1rem; color: var(--soft); font-weight: 400; display: block; }
.price ul { list-style: none; padding: 0; margin: 16px 0; text-align: left; }
.price li { padding: 6px 0; border-bottom: 1px solid #eef0f6; }

/* Contact */
.form { display: grid; gap: 12px; max-width: 560px; }
.form input, .form textarea { width: 100%; padding: 11px 14px; border: 1px solid #c9d1e6; border-radius: 6px; font: inherit; }
.team img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; }

/* Pied de page */
.site-footer { background: var(--dark); color: #d8def0; padding: 40px 0 16px; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #d8def0; }
.cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.copy { text-align: center; font-size: .85rem; margin: 28px 0 0; color: var(--soft); }

@media (max-width: 700px) {
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  .sub { position: static; box-shadow: none; display: block; padding: 0 0 0 12px; }
}

/* Formulaire de contact ({{form}}) */
.smd-form { max-width: 560px; margin: 1.5rem 0; }
.smd-form-field { margin: 0 0 1.1rem; }
.smd-form-label { display: block; margin-bottom: .35rem; font-weight: 600; color: #1c2143; }
.smd-form-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: .7rem .9rem; font: inherit; color: #1c2143;
  background: #fff; border: 1px solid #d3d7f4; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.smd-form-input:focus { outline: none; border-color: #748ebf; box-shadow: 0 0 0 3px rgba(116, 142, 191, .3); }
.smd-form-textarea { min-height: 9rem; resize: vertical; }
.smd-form-button {
  padding: .8rem 1.8rem; font: inherit; font-weight: 600; color: #fff;
  background: #ff5821; border: 0; border-radius: 8px; cursor: pointer;
  transition: background .15s;
}
.smd-form-button:hover { background: #e24a16; }
.smd-form-button:disabled { opacity: .6; cursor: wait; }
.smd-form-ok, .smd-form-error { max-width: 560px; margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: 8px; }
.smd-form-ok { color: #1c2143; background: #eef1fc; border-left: 4px solid #748ebf; }
.smd-form-error { color: #8a1f0b; background: #fdeeea; border-left: 4px solid #ff5821; }

/* Menu ({{menu}}) */
.site-menu-list { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-menu-link { color: #1c2143; font-weight: 600; text-decoration: none; }
.site-menu-link:hover { color: #ff5821; }

.brand { display: inline-block; line-height: 0; }
.brand img { height: 100px !important; width: auto !important; max-width: none; }