/* ===== JB TECHNOLOGY – feuille de style ===== */
:root {
  --green: #40BB1B;
  --green-dark: #329414;
  --grey: #4D555B;
  --grey-dark: #2B3034;
  --grey-darker: #1E2225;
  --light: #F4F6F5;
  --white: #FFFFFF;
  --text: #2B3034;
  --radius: 10px;
  --font-title: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1150px, 90%); margin: 0 auto; }
.green { color: var(--green); }

h1, h2, h3 { font-family: var(--font-title); line-height: 1.1; }
h1, .hero__title { font-family: var(--font-title); line-height: 1.1; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 2.5rem; }
h3 { font-size: 1.45rem; margin-bottom: .6rem; }

/* ===== Boutons ===== */
.btn {
  display: inline-block; background: var(--green); color: var(--white);
  padding: .9rem 1.8rem; border-radius: var(--radius); border: 2px solid var(--green);
  font-weight: 600; cursor: pointer; transition: .25s; font-size: 1rem; font-family: var(--font-body);
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--small { padding: .5rem 1.2rem; }

/* ===== En-tête ===== */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: .3s; padding: 1.2rem 0; }
.header.scrolled { background: rgba(30,34,37,.95); backdrop-filter: blur(8px); padding: .7rem 0; box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: .5rem; color: var(--white); font-family: var(--font-title); font-weight: 700; }
.logo img { height: 66px; width: auto; display: block; transition: height .3s; }
.header.scrolled .logo img { height: 48px; }
@media (max-width: 800px) { .logo img { height: 52px; } .header.scrolled .logo img { height: 42px; } }
.logo__mark { background: var(--green); padding: .1rem .5rem; border-radius: 6px; font-size: 1.5rem; }
.logo__text { font-size: 1.35rem; letter-spacing: .12em; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { color: var(--white); font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green); }
.burger { display: none; background: none; border: none; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: .3s; }

/* ===== Accueil ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: var(--grey-darker); color: var(--white); overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; z-index: 2; padding-top: 4rem; }
.hero__tag { font-family: var(--font-body); line-height: 1.6; color: var(--green); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }
.hero__sub { max-width: 600px; margin: 1.5rem 0 2.2rem; color: #C9CED1; font-size: 1.1rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__status { position: absolute; bottom: 2rem; right: 5%; z-index: 2; font-family: monospace; font-size: .85rem; color: #9AA2A7; display: flex; align-items: center; gap: .6rem; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* ===== Chiffres ===== */
.stats { background: var(--green); color: var(--white); padding: 2.5rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat__num, .stat__plus { font-family: var(--font-title); font-size: 2.8rem; font-weight: 700; }
.stat p { font-size: .95rem; opacity: .9; }

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section--dark { background: var(--grey-dark); color: var(--white); }
.section__tag { font-family: monospace; color: var(--green); margin-bottom: .5rem; }

/* Cartes services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: var(--light); border-radius: var(--radius); padding: 2rem; border-top: 4px solid var(--green); transition: .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 15px 35px rgba(77,85,91,.18); }
.card__icon { font-size: 2rem; color: var(--green); margin-bottom: 1rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--white); border-radius: 50%; }
.card p { color: var(--grey); margin-bottom: 1rem; }
.card ul { list-style: none; }
.card li { padding-left: 1.3rem; position: relative; font-size: .92rem; margin-bottom: .3rem; }
.card li::before { content: '▸'; color: var(--green); position: absolute; left: 0; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Méthode */
.steps__tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.step-tab { flex: 1; min-width: 140px; background: var(--grey); color: var(--white); border: none; padding: 1rem; border-radius: var(--radius); cursor: pointer; font-family: var(--font-title); font-size: 1.15rem; font-weight: 600; text-align: left; transition: .25s; }
.step-tab span { display: block; font-size: .85rem; opacity: .6; font-family: monospace; }
.step-tab:hover { background: #5B646B; }
.step-tab.active { background: var(--green); }
.steps__panel { background: var(--grey-darker); border-radius: var(--radius); padding: 2.5rem; min-height: 180px; }
.steps__progress { height: 4px; background: var(--grey); border-radius: 4px; margin-bottom: 1.8rem; overflow: hidden; }
.steps__bar { height: 100%; background: var(--green); width: 20%; transition: width .5s; }
.steps__panel p { color: #C9CED1; max-width: 750px; }
.fade { animation: fade .4s; }
@keyframes fade { from { opacity: 0; transform: translateX(10px); } }

/* Compétences */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter { background: none; border: 2px solid var(--grey); color: var(--grey); padding: .5rem 1.2rem; border-radius: 30px; cursor: pointer; font-weight: 600; transition: .2s; font-family: var(--font-body); }
.filter:hover, .filter.active { background: var(--grey); color: var(--white); }
.skills { display: flex; flex-wrap: wrap; gap: .8rem; }
.skill { background: var(--light); border-left: 4px solid var(--green); padding: .7rem 1.2rem; border-radius: 6px; font-weight: 500; transition: .3s; }
.skill.hidden { display: none; }

/* FAQ */
.section--light { background: var(--light); }
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: 900px; }
.faq details { background: var(--white); border-radius: var(--radius); border-left: 4px solid var(--grey); transition: border-color .2s; }
.faq details[open] { border-left-color: var(--green); }
.faq summary { padding: 1.1rem 1.4rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--grey); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; }
.contact__info p { color: #C9CED1; margin-bottom: 2rem; }
.contact__list { list-style: none; }
.contact__list li { margin-bottom: 1rem; display: flex; flex-direction: column; }
.contact__list strong { color: var(--green); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form select, .form textarea { width: 100%; padding: .9rem 1rem; border-radius: var(--radius); border: 2px solid var(--grey); background: var(--grey-darker); color: var(--white); font-family: var(--font-body); font-size: 1rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); }
.form .btn { align-self: flex-start; }
.form__msg { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Pied de page */
.footer { background: var(--grey-darker); color: #9AA2A7; padding: 1.5rem 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; }
.footer a:hover { color: var(--green); }

/* Page simple (mentions légales) */
.page { padding: 8rem 0 4rem; }
.page h2 { margin: 2rem 0 .8rem; font-size: 1.6rem; }
.page .header { background: var(--grey-darker); }

/* ===== Bandeau d'installation PWA ===== */
.install { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%); z-index: 200; width: min(480px, 92%);
  background: var(--grey-darker); color: var(--white); border: 1px solid var(--grey); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .4s; }
.install.show { transform: translate(-50%, 0); }
.install img { width: 42px; height: 42px; border-radius: 8px; }
.install__text { flex: 1; display: flex; flex-direction: column; font-size: .85rem; line-height: 1.3; }
.install__text span { color: #9AA2A7; }
.install__close { background: none; border: none; color: #9AA2A7; font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* Quand le site est ouvert en mode appli : espace pour la barre d'état du téléphone */
@media (display-mode: standalone) {
  .header { padding-top: calc(1.2rem + env(safe-area-inset-top)); }
  .header.scrolled { padding-top: calc(.7rem + env(safe-area-inset-top)); }
}

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .burger { display: block; }
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 70%; background: var(--grey-darker); flex-direction: column; justify-content: center; transition: .35s; }
  .nav.open { right: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .hero__status { display: none; }
}
