/* ============================================
   INTB — Charte graphique officielle
   Couleurs : #4EB051 (vert) / #000000 / #FFFFFF
   Police : Inter (Google Fonts)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* -------- Reset & Variables -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #4EB051;
  --black:   #000000;
  --white:   #FFFFFF;
  --gray-10: #111111;
  --gray-20: #222222;
  --gray-80: #CCCCCC;
  --gray-90: #E8E8E8;

  --font: 'Inter', sans-serif;
  --nav-h: 80px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* -------- Utilitaires -------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* -------- NAVIGATION -------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--black);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--green);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 44px;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__links a {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--green); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__contact-btn {
  background: var(--green);
  color: var(--black) !important;
  font-weight: 700;
  padding: 10px 24px;
  border: 2px solid var(--green);
  transition: background var(--transition), color var(--transition) !important;
}

.nav__contact-btn:hover {
  background: transparent !important;
  color: var(--green) !important;
}

.nav__contact-btn::after { display: none !important; }

/* Burger menu mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* -------- PAGE WRAPPER -------- */
.page { padding-top: var(--nav-h); }

/* -------- HERO -------- */
.hero {
  background: var(--black);
  color: var(--white);
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Grille de fond inspirée du logo pixelisé INTB */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,176,81,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,176,81,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 2px;
  background: var(--green);
}

.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-80);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* -------- BOUTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--green {
  background: var(--green);
  color: var(--black);
  border-color: var(--green);
}

.btn--green:hover {
  background: transparent;
  color: var(--green);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--black);
}

.btn--outline-black {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--outline-black:hover {
  background: var(--black);
  color: var(--white);
}

/* -------- STATS / CHIFFRES CLÉS -------- */
.stats {
  background: var(--green);
  padding: 60px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats__item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(0,0,0,.15);
}

.stats__item:last-child { border-right: none; }

.stats__number {
  font-size: 52px;
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -.03em;
}

.stats__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* -------- SECTION GÉNÉRIQUE -------- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--black);
  color: var(--white);
}

.section--gray {
  background: var(--gray-90);
}

.section__header {
  margin-bottom: 64px;
}

.section__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--green);
}

.section__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 640px;
}

.section__title em {
  font-style: normal;
  color: var(--green);
}

.section__subtitle {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 300;
  color: #555;
  max-width: 600px;
  line-height: 1.7;
}

.section--dark .section__subtitle { color: var(--gray-80); }

/* -------- SERVICES / CARDS -------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-80);
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--green);
  transition: height .35s ease;
}

.service-card:hover { background: var(--black); color: var(--white); }
.service-card:hover::before { height: 100%; }

.service-card__icon {
  width: 48px; height: 48px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 22px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.service-card__text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: #555;
  transition: color var(--transition);
}

.service-card:hover .service-card__text { color: var(--gray-80); }

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.service-card__link::after {
  content: '→';
  transition: transform var(--transition);
}

.service-card__link:hover::after { transform: translateX(4px); }

/* -------- À PROPOS (section 2 colonnes) -------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__img-wrapper {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--gray-90);
  overflow: hidden;
}

.about__img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--green);
  color: var(--black);
  padding: 24px 28px;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.3;
}

.about__content p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.about__content strong { color: var(--black); font-weight: 700; }

.about__guarantees {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-90);
  border-left: 3px solid var(--green);
}

.guarantee-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.guarantee-item__text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* -------- VALEURS -------- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.value-item {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
}

.value-item__number {
  font-size: 80px;
  font-weight: 900;
  color: var(--green);
  opacity: .2;
  line-height: 1;
  position: absolute;
  top: 16px; right: 20px;
  font-variant-numeric: tabular-nums;
}

.value-item__title {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

.value-item__text {
  font-size: 15px;
  font-weight: 300;
  color: var(--gray-80);
  line-height: 1.7;
}

/* -------- LOGICIELS / PARTENAIRES -------- */
.softwares {
  padding: 60px 0;
  background: var(--gray-90);
  border-top: 2px solid var(--green);
}

.softwares__label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 32px;
}

.softwares__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.softwares__logos span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
  border: 1px solid #ddd;
  padding: 8px 18px;
}

/* -------- FOOTER -------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 24px;
}

.footer__about {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-80);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 320px;
}

.footer__contact-item {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-80);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__contact-item a { color: inherit; transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--green); }

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--gray-80);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links a::before {
  content: '›';
  color: var(--green);
  font-weight: 700;
}

.footer__links a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12px;
  color: #555;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a {
  color: #555;
  transition: color var(--transition);
}

.footer__bottom a:hover { color: var(--green); }

/* -------- PAGE INTÉRIEURE -------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(78,176,81,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,176,81,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.page-hero__title em {
  font-style: normal;
  color: var(--green);
}

/* -------- CONTACT -------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact__form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 18px;
  border: 2px solid var(--gray-90);
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact__info { padding-top: 8px; }

.contact__info-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-90);
}

.contact__info-item:first-child { padding-top: 0; }

.contact__info-icon {
  width: 44px; height: 44px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact__info-content strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact__info-content span, .contact__info-content a {
  font-size: 15px;
  color: #555;
  transition: color var(--transition);
}

.contact__info-content a:hover { color: var(--green); }

/* -------- COMPETENCES PAGE -------- */
.competence-block {
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-90);
}

.competence-block:last-child { border-bottom: none; }

.competence-block__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.competence-block__aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.competence-block__tag {
  display: inline-block;
  background: var(--black);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.competence-block__title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

.competence-block__subtitle {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  font-weight: 300;
}

.competence-block__body p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.competence-block__list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.competence-block__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.5;
}

.competence-block__list li::before {
  content: '▸';
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* -------- CABINET PAGE -------- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--green);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px; height: 12px;
  background: var(--green);
  border: 2px solid var(--black);
  outline: 2px solid var(--green);
}

.timeline-item__year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.timeline-item__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-item__text {
  font-size: 15px;
  font-weight: 300;
  color: #555;
  line-height: 1.7;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__visual { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .competence-block__grid { grid-template-columns: 1fr; gap: 40px; }
  .competence-block__aside { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 20px; }

  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav__links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--black);
    padding: 20px;
    border-top: 2px solid var(--green);
  }
  .nav__links.open a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .nav__burger { display: flex; }

  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__number { font-size: 36px; }

  .services__grid { grid-template-columns: 1fr; }

  .values__grid { grid-template-columns: 1fr; gap: 24px; }
  .value-item { padding: 40px 28px; text-align: left; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
