/* =========================================================
   Kodia — Création de sites vitrines : thème clair, vitrine interactive
   ========================================================= */
:root {
  --bg: #F7F8FC;
  --bg-2: #EEF1F8;
  --card: #FFFFFF;
  --card-2: #F3F5FB;
  --line: #E1E5F0;
  --line-strong: #C5CCE0;
  --text: #121625;
  --muted: #5D657A;
  --accent: #3157F5;
  --accent-dark: #2446DB;
  --accent-soft: rgba(49, 87, 245, 0.10);
  --sun: #FFC94D;
  --ok: #16A34A;
  --error: #D92D20;
  --shadow: 0 1px 2px rgba(18, 22, 37, 0.04), 0 14px 36px rgba(18, 22, 37, 0.08);

  --display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin: 0; }
h2 { font-size: clamp(34px, 4.4vw, 56px); }
.accent { color: var(--accent); }
.sun { padding: 0 .3em; border-radius: 6px; background: var(--sun); color: var(--text); }

.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
.pill b { padding: 3px 10px; border-radius: 999px; background: var(--sun); color: #1B1606; font-size: 12px; font-weight: 700; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:not(.kicker) { margin: 16px 0 0; font-size: 18px; color: var(--muted); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.is-scrolled { background: rgba(247, 248, 252, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: flex; align-items: center; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .btn { min-height: 44px; padding: 0 20px; color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 14px 9px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: -76px; padding: 148px 0 88px; text-align: center; overflow: hidden; }
.hero { background:
  radial-gradient(60% 50% at 12% 8%, rgba(49, 87, 245, 0.16), transparent 70%),
  radial-gradient(45% 40% at 90% 14%, rgba(255, 201, 77, 0.28), transparent 70%),
  radial-gradient(50% 45% at 70% 60%, rgba(139, 92, 246, 0.08), transparent 70%),
  linear-gradient(180deg, #EAF0FF 0%, var(--bg) 75%); }
/* Trame de points discrète qui s'efface vers le bas */
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(49, 87, 245, 0.18) 1px, transparent 1.5px) 0 0 / 26px 26px; -webkit-mask-image: radial-gradient(70% 55% at 50% 20%, #000, transparent); mask-image: radial-gradient(70% 55% at 50% 20%, #000, transparent); pointer-events: none; }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); max-width: 980px; margin: 0 auto 24px; }
.hero-lead { margin: 0 auto 34px; max-width: 620px; font-size: 19px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.reassure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.reassure li { display: inline-flex; align-items: center; gap: 8px; }
.reassure svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Vitrine interactive ---------- */
.showcase { position: relative; margin-top: 64px; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.stage { position: relative; max-width: 1040px; margin: 0 auto; padding-right: 9%; }
.device { overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 30px 80px rgba(18, 22, 37, 0.16); }
.device-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3D9E8; }
.device-bar span { margin-left: 14px; padding: 3px 14px; border-radius: 6px; background: var(--bg-2); font-size: 12px; color: var(--muted); }
.device img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: opacity .35s; }
.phone { position: absolute; right: 0; bottom: -28px; width: 22%; padding: 8px; border-radius: 30px; background: #1C2338; border: 1px solid #333D5E; box-shadow: 0 24px 60px rgba(18, 22, 37, 0.28); }
.phone img { width: 100%; aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 22px; transition: opacity .35s; }
.is-switching img { opacity: 0; }
.showcase-caption { margin: 52px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.showcase-caption strong { color: var(--text); font-weight: 600; }


/* ---------- Services en grille bento ---------- */
.services { padding: 112px 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.cell { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s, box-shadow .25s; }
.cell:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.cell .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: auto; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.cell .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cell h3 { font-size: 21px; margin: 22px 0 8px; }
.cell p { margin: 0; color: var(--muted); font-size: 15px; }
.cell.big { grid-column: span 2; grid-row: span 2; padding: 34px; background: linear-gradient(160deg, #E6ECFF, #FFFFFF 62%); }
.cell.big h3 { font-size: 30px; }
.cell.big p { max-width: 300px; font-size: 16px; }
.cell.big .ico { margin-bottom: 0; }
.cell.big h3, .cell.big p, .cell.big .chips { position: relative; z-index: 1; max-width: 54%; }
.cell.big .mini { position: absolute; right: -16px; bottom: -70px; width: 40%; transform: rotate(-6deg); border-radius: 22px; border: 6px solid #1C2338; box-shadow: 0 18px 44px rgba(18, 22, 37, .18); }
.cell.wide { grid-column: span 2; }
.cell.stat { justify-content: space-between; background: var(--accent); border-color: var(--accent); }
.cell.stat strong { font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.cell.stat p { color: #E4E9FF; font-weight: 500; }
.cell.stat.alt { background: var(--sun); border-color: var(--sun); color: #1B1606; }
.cell.stat.alt p { color: #3A3010; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; color: var(--text); }

/* ---------- Méthode ---------- */
.process { padding: 112px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 23px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); }
.timeline li { position: relative; text-align: center; padding: 0 8px; }
.timeline li::before { counter-increment: step; content: counter(step); position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 18px; }
.timeline li.highlight::before { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 8px var(--accent-soft); }
.timeline h3 { font-size: 20px; margin-bottom: 8px; }
.timeline p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.timeline .when { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 600; }
.timeline li.highlight .when { background: var(--sun); border-color: var(--sun); color: #1B1606; }

/* ---------- FAQ ---------- */
.faq { padding: 112px 0; }
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-2); color: var(--accent); font-size: 20px; font-weight: 500; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding: 40px 0 112px; }
.contact-card { display: grid; grid-template-columns: 0.85fr 1.15fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.contact-side { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 48px; color: #fff; background: linear-gradient(160deg, #2A3FB8, #4565F0 55%, #5B7CFF); }
.contact-side h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
.contact-side > p { margin: 0 0 28px; color: #E4E9FF; font-size: 17px; }
.contact-side .kicker { color: var(--sun); }
.promise { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promise li { display: flex; gap: 12px; font-weight: 500; }
.promise svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sun); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.contact-form { display: grid; gap: 20px; padding: 48px; }
.contact-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field > label, .field > .label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px;
  -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.contact-form input:not([type="radio"]):not([type="checkbox"]), .select-btn { height: 52px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form ::placeholder { color: #8B92A6; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { margin: 0; font-size: 13px; font-weight: 500; color: var(--error); }
.field-error:empty { display: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.segmented legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { display: grid; place-items: center; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.segmented input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.segmented input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.select { position: relative; }
.select-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; font: inherit; font-size: 16px; color: var(--text); text-align: left; cursor: pointer; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.select.is-open .select-btn { border-color: var(--accent); }
.select-value.is-placeholder { color: #8B92A6; }
.select svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chevron { transition: transform .2s; }
.select.is-open .chevron { transform: rotate(180deg); }
.select-list { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: 440px; overflow-y: auto; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(18, 22, 37, .18); }
.select-list:focus { outline: none; }
.select-list[hidden] { display: none; }
.select-list [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.select-list [role="option"].is-active { background: var(--bg-2); }
.select-list [role="option"][aria-selected="true"] { color: var(--accent); font-weight: 600; }
.select-list .check { visibility: hidden; }
.select-list [aria-selected="true"] .check { visibility: visible; }

.botcheck { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-send-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEA; color: var(--error); font-size: 14px; font-weight: 500; }
.form-send-error[hidden] { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-foot small a { color: var(--accent); }
.form-success { display: grid; place-items: center; gap: 14px; padding: 64px 48px; text-align: center; }
.form-success[hidden] { display: none; }
.form-success .ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #E3F4EB; color: var(--ok); }
.form-success .ico svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 28px; }
.form-success p { margin: 0; max-width: 420px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 6px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--text); }


/* ---------- Page mentions légales ---------- */
.header-cta { min-height: 44px; padding: 0 20px; white-space: nowrap; }
.legal { padding: 56px 0 96px; }
.legal-inner { max-width: 780px; }
.legal .back { display: inline-block; margin-bottom: 24px; font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.legal .back:hover { color: var(--text); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.legal .updated { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.toc a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; text-decoration: none; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.legal section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 28px; margin-bottom: 16px; }
.legal h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0; margin: 20px 0 6px; }
.legal p { margin: 0 0 12px; color: #3B4256; }
.legal a:not(.back):not(.btn) { color: var(--accent); }
@media (max-width: 420px) { .header-cta { padding: 0 14px; font-size: 14px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 960px) {
  .contact-card { grid-template-columns: 1fr; }
  .services, .process, .faq { padding: 88px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .header-inner { height: 64px; }
  .logo img { height: 30px; }
  .menu-toggle { display: flex; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .btn { margin-top: 16px; }
  .hero { margin-top: -64px; padding-top: 108px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px 18px; padding: 0 20px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .stage { padding-right: 16%; }
  .phone { width: 30%; padding: 5px; border-radius: 18px; bottom: -20px; }
  .phone img { border-radius: 14px; }
  .device-bar span { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell.big, .cell.wide { grid-column: span 1; }
  .cell.big { grid-row: span 1; padding-bottom: 230px; }
  .cell.big h3, .cell.big p, .cell.big .chips { max-width: none; }
  .cell.big .mini { width: 46%; right: 20px; bottom: -110px; }
  .timeline { grid-template-columns: 1fr; }
  .contact-side, .contact-form { padding: 32px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

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