/* KM Services — feuille de style unique, sans dependance externe. */
:root {
  --fond: #f8fafc; --surface: #ffffff; --texte: #0f172a; --doux: #475569; --bord: #e2e8f0;
  --indigo: #4f46e5; --violet: #7c3aed; --fuchsia: #c026d3; --rose: #e11d48; --emeraude: #059669; --ambre: #d97706;
  --degrade: linear-gradient(120deg, var(--indigo), var(--violet) 45%, var(--fuchsia));
  --ombre: 0 10px 30px -12px rgb(15 23 42 / .18);
  --rayon: 18px;
  color-scheme: light;
}
:root[data-theme="sombre"] {
  --fond: #0b1020; --surface: #121a2e; --texte: #e2e8f0; --doux: #94a3b8; --bord: #1e293b;
  --ombre: 0 10px 30px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.conteneur { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.saut { position: absolute; left: -999px; top: 8px; background: var(--indigo); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.saut:focus { left: 8px; }
.degrade { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.surtitre { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--violet); margin-bottom: .8rem; }
:root[data-theme="sombre"] .surtitre { color: #c4b5fd; }
.chapeau { font-size: 1.12rem; color: var(--doux); max-width: 60ch; }
:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.3rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--degrade); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgb(124 58 237 / .7); transition: transform .15s, box-shadow .15s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgb(124 58 237 / .8); }
.bouton--clair { background: var(--surface); color: var(--texte); border: 1px solid var(--bord); box-shadow: none; }
.bouton--petit { padding: .45rem 1rem; font-size: .92rem; }
.bouton--grand { padding: 1rem 1.6rem; font-size: 1.05rem; width: 100%; }
.bouton--whatsapp { background: linear-gradient(120deg, #16a34a, #059669); box-shadow: 0 8px 20px -8px rgb(5 150 105 / .7); }

/* ---------- En-tete ---------- */
.entete { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: color-mix(in srgb, var(--fond) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.entete.defile { border-bottom-color: var(--bord); }
.entete__ligne { display: flex; align-items: center; gap: 1rem; height: 70px; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.15rem; }
.marque b { background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.bouton) { text-decoration: none; color: var(--doux); font-weight: 600; font-size: .95rem; }
.nav a:not(.bouton):hover { color: var(--texte); }
.entete__outils { display: flex; gap: .3rem; }
.icone { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte); cursor: pointer; }
.icone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu { display: none; }
.nav-mobile { display: grid; padding: .5rem 1.25rem 1rem; gap: .2rem; border-bottom: 1px solid var(--bord); }
.nav-mobile a { padding: .7rem .5rem; text-decoration: none; font-weight: 600; border-radius: 10px; }
.nav-mobile a:hover { background: var(--surface); }
.nav-mobile[hidden] { display: none; }

/* ---------- Heros ---------- */
.heros { padding: clamp(3rem, 8vw, 6rem) 0 4rem; position: relative; overflow: hidden; }
.heros::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgb(192 38 211 / .16), transparent 60%); pointer-events: none; }
.heros__grille { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.chiffres { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; padding: 0; margin: 0; }
.chiffres li { display: grid; }
.chiffres b { font-size: 1.5rem; font-weight: 800; }
.chiffres span { color: var(--doux); font-size: .9rem; }
.ecran { background: var(--surface); border: 1px solid var(--bord); border-radius: 22px; box-shadow: var(--ombre); overflow: hidden; transform: rotate(-2deg); }
.ecran__barre { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--bord); }
.ecran__barre i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.ecran__barre i:nth-child(2) { background: #fbbf24; } .ecran__barre i:nth-child(3) { background: #34d399; }
.ecran__corps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.tuile { border-radius: 14px; padding: 14px; color: #fff; display: grid; gap: 4px; }
.tuile span { font-size: .8rem; opacity: .9; } .tuile b { font-size: 1.35rem; }
.t1 { background: linear-gradient(135deg, var(--indigo), var(--violet)); }
.t2 { background: linear-gradient(135deg, var(--rose), var(--fuchsia)); }
.t3 { background: linear-gradient(135deg, var(--emeraude), #0891b2); grid-column: span 2; }
.courbe { grid-column: span 2; border: 1px dashed var(--bord); border-radius: 14px; padding: 10px; }
.courbe path { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--teinte { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--violet) 7%, transparent) 30%, transparent); }
.section--sombre { background: #0f172a; color: #e2e8f0; }
.section--sombre .chapeau { color: #94a3b8; }
.section--sombre .surtitre { color: #c4b5fd; }
.grille { display: grid; gap: 1.2rem; margin-top: 2rem; }
.grille--4 { grid-template-columns: repeat(4, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.5rem; box-shadow: var(--ombre); border-top: 5px solid var(--accent); }
.carte p { color: var(--doux); margin: 0; }
.carte__icone { font-size: 1.8rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1rem; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.c-indigo { --accent: var(--indigo); } .c-rose { --accent: var(--rose); } .c-emeraude { --accent: var(--emeraude); } .c-ambre { --accent: var(--ambre); }

/* ---------- Realisations ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.filtre { border: 1px solid var(--bord); background: var(--surface); color: var(--texte); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; font-weight: 600; }
.filtre.actif { background: var(--texte); color: var(--fond); border-color: var(--texte); }
.projet { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .2s; }
.projet:hover { transform: translateY(-4px); }
.projet[hidden] { display: none; }
.projet__bandeau { height: 110px; display: grid; place-items: center; font-size: 3rem; }
.b1 { background: linear-gradient(135deg, #ef4444, #f97316); } .b2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.b3 { background: linear-gradient(135deg, #db2777, #a855f7); } .b4 { background: linear-gradient(135deg, #0891b2, #10b981); }
.b5 { background: linear-gradient(135deg, #16a34a, #84cc16); } .b6 { background: linear-gradient(135deg, #475569, #0ea5e9); }
.b7 { background: linear-gradient(135deg, #ca8a04, #f59e0b); } .b8 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.b9 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.projet__corps { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.projet__corps > p { color: var(--doux); }
.etiquette { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--violet) !important; margin-bottom: .4rem; }
:root[data-theme="sombre"] .etiquette { color: #c4b5fd !important; }
.techno { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: auto 0 0; }
.techno li { font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--indigo) 10%, transparent); color: var(--indigo); }
:root[data-theme="sombre"] .techno li { color: #a5b4fc; }
.liens { margin: .9rem 0 0 !important; display: flex; flex-wrap: wrap; gap: .8rem; }
.liens a { font-weight: 700; color: var(--fuchsia); text-decoration: none; }
.liens a:hover { text-decoration: underline; }

/* ---------- Methode ---------- */
.etapes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: e; }
.etapes li { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 1.5rem; }
.etapes b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--degrade); color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.etapes p { color: var(--doux); margin: 0; }

/* ---------- Securite ---------- */
.securite { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.coches { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.coches li { padding: .9rem 1rem .9rem 3rem; background: #1e293b; border-radius: 14px; position: relative; font-weight: 600; }
.coches li::before { content: "✓"; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #059669; color: #fff; font-size: .8rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; background: var(--surface); border: 1px solid var(--bord); border-radius: 28px; padding: clamp(1.5rem, 5vw, 3.5rem); box-shadow: var(--ombre); }
.contact__actions { display: grid; gap: .9rem; }

/* ---------- Pied ---------- */
.pied { border-top: 1px solid var(--bord); padding: 1.6rem 0; color: var(--doux); font-size: .9rem; }
.pied__ligne { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.pied p { margin: 0; } .pied a { text-decoration: none; }

.centre { text-align: center; } .centre .chapeau { margin-inline: auto; }

/* ---------- Telephone et tablette ---------- */
@media (max-width: 980px) {
  .grille--4, .etapes { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .heros__grille, .securite, .contact { grid-template-columns: 1fr; }
  .heros__visuel { max-width: 460px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: grid; }
  .entete__outils { margin-left: auto; }
}
@media (max-width: 560px) {
  .grille--4, .grille--3, .etapes { grid-template-columns: 1fr; }
  .chiffres { gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
