/* ============================================================
   RUN-IT SYSTEM — Stylesheet v3.0
   Design IT moderne — RGPD conforme
   ============================================================ */

:root {
  --primary:       #006080;
  --primary-dark:  #004a63;
  --primary-light: #0080a8;
  --primary-xl:    #e6f3f7;
  --accent:        #00b4d8;
  --dark:          #0a0f1e;
  --dark-2:        #111827;
  --dark-3:        #1e293b;
  --gray-100:      #f1f5f9;
  --gray-200:      #e2e8f0;
  --gray-400:      #94a3b8;
  --gray-600:      #475569;
  --text-main:     #1e293b;
  --text-muted:    #64748b;
  --white:         #ffffff;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.13);

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-head:  'Space Grotesk', 'Inter', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--text-main); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--dark { background: var(--dark-2); color: var(--white); }
.section--light { background: var(--gray-100); }

/* ---- Section header ---- */
.section__header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__header--light { color: var(--white); }
.section__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-xl);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section__label--light { background: rgba(0,96,128,.3); color: #7dd3e8; }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.section__desc { font-size: 1rem; color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,96,128,.3); }
.btn--accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn--accent:hover { background: #0096b8; border-color: #0096b8; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,180,216,.3); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: .8rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---- Topbar ---- */
.topbar { background: var(--dark); color: rgba(255,255,255,.7); font-size: .8rem; padding: 8px 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar__contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__link { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); transition: color var(--transition); }
.topbar__link:hover { color: var(--accent); }
.topbar__right { color: rgba(255,255,255,.5); display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.topbar__right i { color: var(--accent); }

/* ---- Navbar ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 14px 0;
  transition: padding var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { padding: 10px 0; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Logo */
.navbar__logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 42px; width: auto; object-fit: contain; }
.logo__img--light { display: none; }

.nav__list { display: flex; gap: 2px; }
.nav__link { display: block; padding: 8px 14px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.7); transition: all var(--transition); }
.nav__link:hover, .nav__link.active { color: var(--white); background: rgba(255,255,255,.08); }

.navbar__cta { display: flex; gap: 8px; align-items: center; }
.navbar__cta .btn--outline { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }
.navbar__cta .btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: var(--white); }

.navbar__burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.navbar__burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,.8); border-radius: 2px; transition: all var(--transition); }
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero__bg-img { transform: scale(1); }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(6,10,26,.88) 40%, rgba(0,64,96,.55) 100%);
}
.hero__inner { position: relative; z-index: 1; padding: 80px 0 60px; max-width: 700px; }
.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 40px; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service__card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.service__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service__img {
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
}
.service__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(10,15,30,.6) 100%);
}
/* Placeholder pour le dev (pas d'image) */
.service__img--code {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service__img--code::before {
  content: '</>';
  font-family: monospace;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,.15);
  letter-spacing: -.05em;
}
.service__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service__body--centered { align-items: flex-start; justify-content: center; }
.service__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-xl);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.service__icon--accent { background: rgba(0,180,216,.12); color: var(--accent); }
.service__card:hover .service__icon { background: var(--primary); color: var(--white); }
.service__title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--dark-2); margin-bottom: 10px; }
.service__desc { font-size: .88rem; color: var(--text-muted); line-height: 1.65; flex: 1; }

/* Card "Et aussi" */
.service__card--more { background: var(--dark-2); border-color: var(--dark-3); }
.service__card--more .service__title { color: var(--white); }
.more__list { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.more__list li { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.7); }
.more__list i { color: var(--accent); font-size: .8rem; }
.service__card-cta { margin-top: 1.5rem; align-self: flex-start; }

/* ---- Expertise ---- */
.expertise__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expertise__item {
  padding: 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.expertise__item:hover { background: rgba(255,255,255,.07); border-color: rgba(0,180,216,.25); }
.expertise__icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: rgba(0,96,128,.2);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.expertise__item h3 { font-family: var(--font-head); font-size: .98rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.expertise__item p { font-size: .86rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ---- Clients ---- */
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.client__item {
  flex: 1;
  min-width: 180px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--gray-200);
  transition: background var(--transition);
}
.client__item:last-child { border-right: none; }
.client__item:hover { background: var(--gray-100); }
.client__item img {
  max-width: 130px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: all var(--transition);
}
.client__item:hover img { filter: grayscale(0); opacity: 1; }

/* ---- Process ---- */
.process__steps { display: flex; align-items: flex-start; }
.process__step { flex: 1; text-align: center; padding: 0 20px; }
.step__number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .25;
  line-height: 1;
  margin-bottom: 16px;
}
.step__content h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--dark-2); margin-bottom: 8px; }
.step__content p { font-size: .86rem; color: var(--text-muted); line-height: 1.6; }
.process__connector { width: 48px; height: 2px; background: var(--gray-200); margin-top: 20px; flex-shrink: 0; }

/* ---- Contact ---- */
.contact__wrapper { display: grid; grid-template-columns: 1fr 1.8fr; gap: 64px; align-items: start; }
.contact__info h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--dark-2); margin-bottom: 24px; }
.contact__details { display: flex; flex-direction: column; gap: 16px; }
.contact__detail { display: flex; align-items: flex-start; gap: 14px; color: inherit; transition: color var(--transition); }
a.contact__detail:hover { color: var(--primary); }
.contact__detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-xl);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.detail__label { display: block; font-size: .72rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 2px; }
.detail__value { display: block; font-size: .92rem; font-weight: 600; color: var(--dark-2); line-height: 1.4; }

/* Form */
.contact__form-wrap { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 44px; box-shadow: var(--shadow-md); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__label { font-size: .78rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .07em; }
.required { color: var(--primary); }
.form__input, .form__select, .form__textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .93rem;
  color: var(--dark-2);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,96,128,.1); }
.form__input::placeholder, .form__textarea::placeholder { color: var(--gray-400); }
.form__textarea { resize: vertical; min-height: 110px; }
.form__group--check { margin-bottom: 18px; }
.form__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .83rem; color: var(--text-muted); line-height: 1.5; }
.form__check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; margin-top: 1px; cursor: pointer; }
.form__check a { color: var(--primary); text-decoration: underline; }
.form__feedback { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-md); font-size: .88rem; font-weight: 500; display: none; }
.form__feedback.success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.form__feedback.error { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- Footer ---- */
.footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer__top { padding: 64px 0; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.5fr; gap: 48px; }
.footer__logo { margin-bottom: 16px; height: 38px; width: auto; }
.footer__brand p { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.45); max-width: 260px; }
.footer__nav h4, .footer__contact h4 { font-family: var(--font-head); font-size: .78rem; font-weight: 700; color: var(--white); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .1em; }
.footer__nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer__nav a { font-size: .83rem; color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer__nav a:hover { color: var(--accent); }
.footer__contact address p { font-size: .83rem; color: rgba(255,255,255,.45); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 8px; }
.footer__contact i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer__contact a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 8px; }
.footer__bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--accent); }

/* ---- Cookie Banner (RGPD) ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
  animation: slideUp .3s ease;
}
.cookie-banner[hidden] { display: none; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 280px; }
.cookie-banner__text strong { display: block; color: var(--white); margin-bottom: 4px; font-size: .95rem; }
.cookie-banner__text p { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ---- Animations ---- */
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }
