/* ===== Couleurs : kaki & blanc ===== */
:root {
  --khaki: #4b5320;        /* kaki militaire */
  --khaki-dark: #2f3417;
  --khaki-deep: #23270f;
  --khaki-mid: #6b7336;
  --khaki-soft: #c8cba8;
  --paper: #f3f2ea;        /* blanc cassé */
  --white: #ffffff;
  --ink: #1d2012;
  --muted: #5c604c;
  --line: #d8d7c6;
  --alert: #b8502a;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 18px; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ol, ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Petites étiquettes façon bon d'intervention */
.label {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--khaki-mid); margin-bottom: 18px;
}
.label-light { color: var(--khaki-soft); }

/* ===== Boutons & liens ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border: 0; border-radius: 3px; font-weight: 600;
  transition: background .15s;
}
.btn-primary { background: var(--khaki); color: var(--white); }
.btn-primary:hover { background: var(--khaki-dark); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.text-link {
  font-weight: 600; color: var(--khaki); border-bottom: 2px solid var(--khaki-soft);
  padding-bottom: 2px; transition: border-color .15s;
}
.text-link:hover { border-color: var(--khaki); }
.text-link span { display: inline-block; transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }

/* ===== En-tête ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; }
.logo-mark { width: 58px; height: auto; fill: var(--khaki-dark); }
.logo.light .logo-mark { fill: var(--white); }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 7px; padding: 0 8px; }
.burger span { display: block; height: 2px; background: var(--ink); }

/* ===== Hero ===== */
.hero { background: var(--paper); padding: 80px 0 0; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; color: var(--khaki-deep); margin-bottom: 26px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }
.phone {
  width: 290px; background: var(--white); border-radius: 38px; border: 10px solid var(--ink);
  box-shadow: 0 30px 50px -20px rgba(35, 39, 15, .45); overflow: hidden;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px 4px; font-size: .72rem; font-weight: 600; }
.phone-notch { width: 70px; height: 18px; background: var(--ink); border-radius: 10px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.phone-top strong { display: block; font-size: .88rem; }
.phone-top small { display: block; font-size: .72rem; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--khaki); color: var(--white);
  display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.phone-body { padding: 14px 10px 20px; display: flex; flex-direction: column; gap: 8px; background: #fafaf6; min-height: 330px; }
.phone-body .bubble { font-size: .84rem; }

.ticket {
  position: absolute; left: -40px; bottom: 70px; width: 220px; background: var(--white);
  border: 1px solid var(--ink); padding: 12px 14px; font-family: var(--mono); font-size: .72rem;
  transform: rotate(-3deg); box-shadow: 6px 6px 0 var(--khaki);
}
.ticket-head { display: flex; justify-content: space-between; text-transform: uppercase; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--ink); }
.ticket-head b { color: var(--alert); }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; }
.ticket dt { color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 20px; }
.facts li { padding: 26px 0; display: flex; flex-direction: column; }
.facts li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.facts strong { font-family: var(--display); font-size: 1.15rem; }
.facts span { color: var(--muted); font-size: .95rem; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--khaki-dark); color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; }
.section-head h2 { margin-bottom: 0; }
.h2-wide { max-width: 720px; margin-bottom: 60px; }

/* Colonne titre + contenu */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head a { color: var(--khaki); font-weight: 600; }

/* Services en lignes */
.rows li { display: grid; grid-template-columns: 60px 1fr; gap: 10px; padding: 30px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.row-num { font-family: var(--mono); color: var(--khaki-mid); padding-top: 3px; }
.rows h3 { margin-bottom: 8px; }
.rows p { color: var(--muted); max-width: 560px; }
.row-option { background: var(--paper); padding-left: 20px !important; padding-right: 20px !important; margin: 0 -20px; border-top-color: var(--khaki) !important; }
.row-option .text-link { display: inline-block; margin-top: 14px; }
.pill {
  display: inline-block; vertical-align: middle; margin-left: 8px; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--khaki); color: var(--khaki); padding: 2px 7px; border-radius: 2px;
}

/* ===== Démo chatbot ===== */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.demo h2 { color: var(--white); }
.demo-lead { color: var(--khaki-soft); font-size: 1.1rem; margin-bottom: 34px; }
.demo-steps { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.15); }
.demo-steps li { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.demo-steps span { font-family: var(--mono); color: var(--khaki-soft); }
.demo-try { margin-top: 28px; font-size: .95rem; color: var(--khaki-soft); font-style: italic; }

.demo-site { background: var(--white); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 40px 60px -25px rgba(0,0,0,.6); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #e9e8de; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfcdbd; }
.browser-bar span { margin-left: 12px; flex: 1; font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--white); padding: 3px 12px; border-radius: 4px; }

/* ===== Chatbot ===== */
.chat-box { display: flex; flex-direction: column; height: 540px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; font-size: .95rem; }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: #5c9a3a; }
.chat-reset { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 1rem; }
.chat-reset:hover { color: var(--ink); border-color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: #fafaf6; }
.chat-input { border-top: 1px solid var(--line); padding: 12px; min-height: 66px; background: var(--white); }

.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .93rem; line-height: 1.45; animation: pop .2s ease; }
.bubble.bot { background: #ecebe0; border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.user { background: var(--khaki); color: var(--white); border-bottom-right-radius: 5px; align-self: flex-end; }
.typing { display: flex; gap: 4px; padding: 13px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.chat-options { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--khaki); background: var(--white); color: var(--khaki);
  padding: 7px 13px; border-radius: 18px; font-weight: 500; font-size: .88rem;
}
.chip:hover { background: var(--khaki); color: var(--white); }
.chip-validate { width: 100%; }
.chat-text { display: flex; gap: 8px; }
.chat-text input { flex: 1; min-width: 0; font: inherit; font-size: .93rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; }
.chat-text input:focus { outline: none; border-color: var(--khaki); }
.chat-text button { border: 0; background: var(--khaki); color: var(--white); width: 42px; border-radius: 50%; }
.chat-hint { font-size: .78rem; color: var(--alert); margin-top: 6px; padding-left: 14px; }
.chat-hint:empty { display: none; }

.demo-divider { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; margin: 14px 0 4px; }
.notif {
  background: var(--white); border: 1px solid var(--ink); padding: 14px 16px; font-family: var(--mono); font-size: .78rem;
  box-shadow: 5px 5px 0 var(--khaki); margin: 0 6px 8px 0; animation: pop .25s ease;
}
.notif-head { display: flex; justify-content: space-between; text-transform: uppercase; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--ink); }
.urgent { color: var(--alert); }
.notif dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.notif dt { color: var(--muted); }

/* ===== Étapes ===== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 2px solid var(--ink); }
.timeline li { padding-top: 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--khaki); }
.timeline-num { font-family: var(--mono); font-size: .8rem; color: var(--khaki-mid); display: block; margin-bottom: 12px; }
.timeline h3 { font-size: 1.5rem; margin-bottom: 10px; }
.timeline p { color: var(--muted); }

/* ===== Exemples de sites ===== */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.work h3 { margin: 22px 0 6px; }
.work p { color: var(--muted); font-size: .95rem; }
.site { position: relative; aspect-ratio: 4 / 3.4; background: var(--white); border: 1px solid var(--line); overflow: hidden; font-size: 11px; transition: transform .25s; }
.work:hover .site { transform: translateY(-4px); }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.site-nav b { font-family: var(--display); font-size: 12px; }
.site-nav span { background: var(--khaki); color: var(--white); padding: 3px 9px; border-radius: 2px; font-weight: 600; }
.site-hero { padding: 22px 14px; color: var(--white); min-height: 46%; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.site-hero p { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; }
.site-btn { align-self: flex-start; background: var(--white); color: var(--ink); padding: 4px 10px; font-weight: 600; border-radius: 2px; }
.site-plomb .site-hero { background: linear-gradient(rgba(35,39,15,.25), rgba(35,39,15,.75)), repeating-linear-gradient(90deg, #58602a 0 38px, #4f5725 38px 40px); }
.site-elec .site-hero { background: var(--ink); background-image: radial-gradient(circle at 80% 20%, #3d4420 0 18%, transparent 19%); }
.site-hero-tiles {
  color: var(--ink);
  background-color: #f1efe6;
  background-image:
    linear-gradient(#cfcab4 1.5px, transparent 1.5px),
    linear-gradient(90deg, #cfcab4 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.site-hero-tiles p { background: var(--white); align-self: flex-start; padding: 6px 8px; }
.site-rows { padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.site-rows i { height: 6px; background: #e6e5da; }
.site-rows i:nth-child(2) { width: 80%; }
.site-rows i:nth-child(3) { width: 55%; }
.site-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 14px; }
.site-gallery i { aspect-ratio: 1; background: #d9d6c3; }
.site-gallery i:nth-child(2) { background: #b9b59c; }
.site-bubble { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--khaki); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.site-bubble::after { content: ""; position: absolute; inset: 9px 8px 10px; border: 2px solid var(--white); border-radius: 4px; }

/* ===== FAQ ===== */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 0; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--khaki); font-size: 1.2rem; line-height: 1.3; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--khaki); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 620px; }

/* ===== Contact ===== */
.contact-section { background: var(--khaki); color: var(--white); padding: 110px 0; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-info h2 { color: var(--white); }
.contact-info p:not(.label) { color: var(--khaki-soft); margin-bottom: 30px; }
.big-phone { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
.big-phone:hover, .contact-mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.contact-mail { display: inline-block; margin-top: 8px; font-size: 1.1rem; color: var(--khaki-soft); }

.contact-form { background: var(--white); color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 18px; border-radius: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
.optional { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--khaki); outline-offset: -1px; border-color: var(--khaki); }
.contact-form fieldset { border: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.contact-form legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.contact-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--khaki); }
.form-msg { color: var(--khaki); font-weight: 600; }
.form-msg-error { color: var(--alert); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button:disabled { opacity: .6; cursor: wait; }

/* ===== Footer ===== */
.footer { background: var(--khaki-deep); color: var(--khaki-soft); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo-mark { width: 46px; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--white); padding: 24px; gap: 18px; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .burger { display: flex; }
  .header .btn-sm { margin-left: auto; }
  .hero-inner, .demo, .contact, .split { grid-template-columns: 1fr; gap: 50px; }
  .split-head { position: static; }
  .works, .timeline { grid-template-columns: 1fr; }
  .timeline { gap: 0; }
  .timeline li { padding-bottom: 30px; }
  .ticket { left: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { gap: 16px; }
  .header .btn-sm { display: none; }
  .burger { margin-left: auto; }
  .hero { padding-top: 50px; }
  .section, .contact-section { padding: 72px 0; }
  .facts { grid-template-columns: 1fr; }
  .facts li { padding: 16px 0; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .phone { width: 260px; }
  .ticket { left: -8px; bottom: 40px; width: 200px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .row-option { margin: 0 -24px; padding-left: 24px !important; }
  .chat-box { height: 500px; }
}
