/* ===================================================================
   Galsen New Tech — Feuille de styles
   Palette : Bleu profond #0B3D91 · Cyan #009FE3
   =================================================================== */

:root {
  --blue: #0B3D91;
  --blue-700: #082f72;
  --cyan: #009FE3;
  --cyan-light: #38c0ff;
  --ink: #1a2233;
  --muted: #5b6678;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --line: #e6ecf5;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(11, 61, 145, .35);
  --shadow-sm: 0 8px 24px -12px rgba(11, 61, 145, .25);
  --grad: linear-gradient(120deg, var(--blue), var(--cyan));
  --container: 1140px;
  --t: .35s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand { font-family: 'Poppins', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 50px; font-weight: 600; font-size: .98rem;
  cursor: pointer; border: 2px solid transparent; transition: var(--t); white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-3px); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.7); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: var(--t);
}
.header.is-scrolled { background: rgba(255,255,255,.92); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand__mark {
  display: block; width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-sm);
}
.brand__text span { color: var(--cyan); }

.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__link { font-weight: 500; color: var(--ink); position: relative; transition: color .25s; }
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad); transition: width .3s;
}
.nav__link:hover { color: var(--cyan); }
.nav__link:hover::after { width: 100%; }
.nav__link--cta { background: var(--grad); color: #fff; padding: .55rem 1.2rem; border-radius: 50px; }
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { color: #fff; transform: translateY(-2px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--blue); transition: var(--t); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 110px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.blob--1 { width: 480px; height: 480px; background: var(--cyan); top: -120px; right: -100px; }
.blob--2 { width: 420px; height: 420px; background: var(--blue); bottom: -160px; left: -120px; opacity: .25; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .5;
  mask-image: radial-gradient(circle at 50% 35%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000, transparent 75%);
}
.hero__inner { max-width: 820px; }
.hero__eyebrow {
  display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--blue);
  padding: .4rem 1rem; border-radius: 50px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm);
}
.hero__title { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; margin: 1.3rem 0; letter-spacing: -.02em; }
.hero__subtitle { font-size: 1.18rem; color: var(--muted); max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.6rem; margin-top: 3.2rem; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Poppins'; font-size: 2rem; font-weight: 800; color: var(--blue); }
.stat__label { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 3.4rem; text-align: center; }
.section__tag {
  display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  font-weight: 700; color: var(--cyan); margin-bottom: .8rem;
}
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; color: var(--ink); }
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem;
  text-align: center; transition: var(--t);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.value-card__icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; display: grid; place-items: center;
  border-radius: 14px; background: var(--bg-alt); color: var(--cyan); font-size: 1.5rem;
}
.value-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.value-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.1rem 1.9rem; transition: var(--t); overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,159,227,.12), rgba(11,61,145,.12));
  font-size: 1.8rem; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; font-size: .96rem; }
.service-card ul { display: flex; flex-direction: column; gap: .45rem; }
.service-card ul li { position: relative; padding-left: 1.5rem; color: var(--ink); font-size: .92rem; }
.service-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--cyan); font-weight: 700;
}

/* ---------- Fondateur ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 3.5rem; align-items: center; }
.founder__visual { position: relative; display: grid; place-items: center; }
.founder__avatar {
  width: 230px; height: 230px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Poppins'; font-size: 4.5rem; font-weight: 800; color: #fff; background: var(--grad);
  box-shadow: var(--shadow);
}
.founder__badge {
  position: absolute; bottom: 8px; background: #fff; color: var(--blue); font-weight: 600;
  padding: .5rem 1.3rem; border-radius: 50px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.founder__role { color: var(--cyan); font-weight: 600; margin: .3rem 0 1.2rem; }
.founder__content p { color: var(--muted); margin-bottom: 1rem; }
.founder__content strong { color: var(--ink); }
.founder__quote {
  border-left: 4px solid var(--cyan); background: var(--bg-alt); padding: 1.1rem 1.4rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink); margin-top: 1.2rem;
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.3rem;
  transition: var(--t); position: relative;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--grad); color: #fff; font-family: 'Poppins'; font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: var(--bg-alt); color: var(--cyan); font-size: 1.3rem;
}
.contact__list strong { display: block; font-size: .95rem; }
.contact__list a, .contact__list span { color: var(--muted); font-size: .95rem; }
.contact__list a:hover { color: var(--cyan); }

.contact__form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .96rem; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-alt); color: var(--ink); transition: var(--t); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(0,159,227,.12);
}
.form__note { font-size: .9rem; padding: .7rem 1rem; border-radius: var(--radius-sm); }
.form__note.is-ok { background: #e7f8ee; color: #14794a; }
.form__note.is-err { background: #fdeaea; color: #b63333; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-700); color: #cdd8ee; padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 36px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: .8rem; max-width: 320px; color: #aebbd8; font-size: .95rem; }
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer__links a { color: #cdd8ee; font-weight: 500; transition: color .25s; }
.footer__links a:hover { color: var(--cyan-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; text-align: center; font-size: .88rem; color: #9fb0d2; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .founder__quote { text-align: left; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0; padding: 1rem 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transform: translateY(-130%); transition: transform .4s; align-items: stretch;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu li { width: 100%; }
  .nav__link { display: block; padding: .9rem 22px; }
  .nav__link::after { display: none; }
  .nav__link--cta { margin: .5rem 22px; text-align: center; }
}
@media (max-width: 540px) {
  .values, .services, .steps { grid-template-columns: 1fr; }
  .hero { padding: 130px 0 80px; }
  .hero__stats { gap: 1.6rem; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   Réalisations / Projets
   =================================================================== */
.proj-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.6rem; }
.proj-filter {
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .55rem 1.3rem; border-radius: 50px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); transition: var(--t);
}
.proj-filter:hover { color: var(--cyan); border-color: var(--cyan); }
.proj-filter.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: var(--t);
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.project-card.is-hidden { display: none; }

.project-card__media {
  position: relative; display: grid; place-items: center; height: 178px;
  background: var(--grad); overflow: hidden;
}
.project-card__media::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .55;
}
.project-card__logo {
  position: relative; z-index: 1; font-family: 'Poppins'; font-weight: 800;
  font-size: 2.1rem; letter-spacing: .07em; color: #fff;
}
.project-card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 700; padding: .32rem .8rem; border-radius: 50px;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm);
}
.project-card__badge--wip { color: #b4690e; }
.project-card__badge--done { color: #14794a; }
.project-card__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.project-card__body { padding: 1.6rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .85rem; }
.project-card__tags span {
  font-size: .73rem; font-weight: 600; color: var(--blue); background: var(--bg-alt);
  padding: .25rem .7rem; border-radius: 50px;
}
.project-card__body h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.project-card__body p { color: var(--muted); font-size: .94rem; margin-bottom: 1.1rem; flex: 1; }
.project-card__link { font-weight: 600; color: var(--cyan); align-self: flex-start; }
.project-card__link:hover { color: var(--blue); }

/* ===================================================================
   Page projet (détail)
   =================================================================== */
.proj-hero { position: relative; padding: 150px 0 72px; overflow: hidden; background: var(--bg-alt); }
.proj-hero .blob { opacity: .22; }
.proj-hero__inner { position: relative; max-width: 760px; }
.proj-back { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: 1.3rem; transition: var(--t); }
.proj-back:hover { color: var(--cyan); transform: translateX(-3px); }
.proj-hero__status {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700;
  padding: .35rem .9rem; border-radius: 50px; background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  color: #b4690e;
}
.proj-hero__status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.proj-hero h1 { font-size: clamp(2rem, 5.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; margin: 1rem 0 .5rem; }
.proj-hero__tagline { color: var(--cyan); font-weight: 600; font-style: italic; font-size: 1.1rem; }
.proj-hero__lead { color: var(--muted); font-size: 1.12rem; margin-top: 1.2rem; }
.proj-hero__meta { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 2.2rem; }
.proj-meta { display: flex; flex-direction: column; }
.proj-meta span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cyan); font-weight: 700; }
.proj-meta strong { font-family: 'Poppins'; font-weight: 600; color: var(--ink); }

.proj-highlight {
  border-left: 4px solid var(--cyan); background: var(--bg-alt); padding: 1.4rem 1.7rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); max-width: 820px; margin: 0 auto;
}
.proj-highlight strong { color: var(--blue); }

.proj-cta { text-align: center; }
.proj-cta .btn { margin-top: 1.8rem; }

@media (max-width: 980px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .projects { grid-template-columns: 1fr; }
  .proj-hero { padding: 124px 0 56px; }
}

/* ===================================================================
   Équipe
   =================================================================== */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: var(--t); text-align: center;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.team-card__photo {
  position: relative; aspect-ratio: 4 / 5; background: var(--bg-alt); overflow: hidden; display: grid; place-items: center;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.team-card__ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,159,227,.10), rgba(11,61,145,.10));
}
.team-card__initials {
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Poppins'; font-weight: 800; font-size: 2.1rem; color: #fff; background: var(--grad); box-shadow: var(--shadow-sm);
}
.team-card__ph small { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .03em; }
.team-card__body { padding: 1.5rem 1.4rem 1.9rem; }
.team-card__body h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.team-card__role { color: var(--cyan); font-weight: 600; font-size: .92rem; margin-bottom: .7rem; }
.team-card__body p { color: var(--muted); font-size: .93rem; }
.team-card__tag {
  display: inline-block; margin-top: 1rem; font-size: .75rem; font-weight: 600; color: var(--blue);
  background: var(--bg-alt); padding: .3rem .85rem; border-radius: 50px;
}
.team-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 2.6rem; }

@media (max-width: 980px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }
