/* agcodes — landing (feuille neuve) */
:root {
  --ink: #0c1222;
  --muted: #5c6578;
  --line: rgba(12, 18, 34, 0.08);
  --bg: #fafbfc;
  --surface: #ffffff;
  --blue: #0064b6;
  --blue-deep: #004577;
  --cyan: #00c2d1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 4px 24px rgba(0, 100, 182, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 100, 182, 0.12);
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 9999;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: var(--blue-deep);
  border-radius: 10px;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: 16px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* —— Header —— */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand img {
  width: min(200px, 42vw);
  height: auto;
  object-fit: contain;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 20px;
}

.menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.menu a:hover {
  color: var(--ink);
}

.menu a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--cyan);
}

.menu__cta {
  margin-left: 4px;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 999px;
  border: none !important;
  box-shadow: var(--shadow);
}

.menu__cta:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-hover);
}

.menu__cta:focus-visible {
  outline-color: var(--blue-deep);
}

.menu__ext {
  color: var(--blue) !important;
}

/* —— Boutons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--shadow);
}

.btn--solid:hover {
  box-shadow: var(--shadow-hover);
  filter: brightness(1.03);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn--ghost:hover {
  border-color: rgba(0, 100, 182, 0.25);
  color: var(--blue);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 194, 209, 0.14), transparent),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(0, 100, 182, 0.1), transparent);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}

.hero__note {
  margin: 0 0 32px;
  padding-left: 18px;
  border-left: 3px solid var(--cyan);
  font-size: 16px;
  color: var(--ink);
  max-width: 34em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--muted);
}

.hero__meta a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.hero__stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__stat span {
  font-size: 14px;
  color: var(--muted);
}

/* —— Sections communes —— */
.section {
  padding: 88px 0;
}

.section--tight {
  padding-top: 0;
}

.section--surface {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.section__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__intro {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* —— Cartes services —— */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 100, 182, 0.15);
  transform: translateY(-2px);
}

.card__num {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 12px;
}

.card__h {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.card__p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 14px;
  color: var(--muted);
}

.card li {
  margin-bottom: 6px;
}

/* —— Engagement —— */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.pill {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pill__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 100, 182, 0.1), rgba(0, 194, 209, 0.1));
  color: var(--blue);
}

.pill__h {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pill__p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* —— Méthode —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(0, 100, 182, 0.2);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* —— Clients + travaux —— */
.trust {
  text-align: center;
  margin-bottom: 48px;
}

.trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 40px;
  filter: grayscale(100%);
  opacity: 0.75;
}

.trust__logos a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust__logos img {
  max-height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.trust__logos .trust__static img {
  max-height: 48px;
}

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

.work {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 38%);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s var(--ease);
}

.work:hover {
  box-shadow: var(--shadow-hover);
}

.work__body {
  padding: 32px;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.work__tags span {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 100, 182, 0.08);
  color: var(--blue);
}

.work__h {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.work__p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
}

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
}

.work__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.work__visual {
  min-height: 200px;
  background: linear-gradient(145deg, rgba(0, 100, 182, 0.06), rgba(0, 194, 209, 0.06));
}

.work__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
}

/* —— À propos —— */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
}

.values {
  display: grid;
  gap: 16px;
}

.values div {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.values h4 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 1rem;
}

.values p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.timeline {
  border-left: 2px solid rgba(0, 100, 182, 0.2);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline__year {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 4px;
}

.timeline__item h4 {
  font-family: var(--font-display);
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.timeline__item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— Contact —— */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.contact__bullets {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact__bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

.contact__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  opacity: 0.35;
}

.form {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 100, 182, 0.15);
}

.form__field {
  margin-bottom: 18px;
}

.form__msg {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 500;
}

.form__msg--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.form__msg--err {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form .btn {
  width: 100%;
  margin-top: 8px;
}

/* —— Footer —— */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.site-footer__links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

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

.site-footer__copy {
  font-size: 14px;
  color: var(--muted);
}

.site-footer__copy a {
  color: var(--blue);
  font-weight: 600;
}

/* —— Retour haut —— */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.25s var(--ease);
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  box-shadow: var(--shadow-hover);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    order: -1;
  }

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

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

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

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

  .work__visual img {
    min-height: 200px;
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .work:hover {
    transform: none;
  }
}
