/* ==========================================================================
   Ironware — feuille de style du site vitrine

   Volontairement distincte de celle de Starky : le produit grand public est
   chaleureux et très arrondi, l'entreprise doit être sobre et dense. Un
   prospect ne doit pas croire qu'il est arrivé sur une application de jeu.
   ========================================================================== */

@font-face {
  font-family: "Ironware Display";
  /* Space Grotesk, sous-ensemble latin (licence OFL, voir assets/fonts/OFL.txt).
     13 Ko : la page n'a pas besoin d'autre graisse ni d'italique. */
  src: url("../fonts/ironware-display.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10161d;        /* graphite bleuté : hero, pied de page */
  --ink-2: #151d26;      /* surfaces sombres secondaires */
  --ink-3: #1d2833;      /* bordures sur fond sombre */
  --forge: #d9552f;      /* accent unique */
  --forge-light: #ec7a53; /* même accent sur fond sombre, pour le contraste */
  --steel: #5d6f82;      /* texte secondaire sur fond clair */
  --steel-light: #8fa1b3;/* texte secondaire sur fond sombre */
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --line: #e3e7ec;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 14px 34px -20px rgba(16, 22, 29, 0.35);
  --max: 1140px;
  /* Hauteur de .header__inner : les ancres s'arrêtent dessous grâce à
     scroll-padding-top, sinon l'en-tête collant recouvre la cible. */
  --header-h: 68px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Ironware Display", var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1em; }
a { color: var(--forge); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.accent { color: var(--forge-light); }

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

.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--alt { background: var(--surface-alt); }

.section__head {
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 60px);
  text-align: center;
}
.section__head p {
  color: var(--steel);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forge);
  margin-bottom: 14px;
}

/* --- Lien d'évitement (accessibilité) ---------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Un anneau de focus visible partout : la page se parcourt entièrement au
   clavier, et le contour par défaut disparaît sur les fonds sombres. */
:focus-visible {
  outline: 2px solid var(--forge);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--sm { padding: 11px 17px; font-size: 0.9rem; }

.btn--primary { background: var(--forge); color: #fff; }
.btn--primary:hover { background: #c4491f; }

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.05); }

/* --- En-tête ------------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-3);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
/* Le cadre du monogramme suit currentColor : sur fond sombre il disparaît et
   seul le profilé orange reste, ce qui évite un carré noir sur noir. */
.brand__mark { color: transparent; flex: none; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--steel-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover { color: #fff; }

.header .btn--primary { flex: none; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
  /* Une lueur discrète depuis le coin haut droit, du côté du visuel : elle
     décolle le bloc de texte du fond sans ajouter de couleur à la palette. */
  background-image: radial-gradient(
    ellipse 900px 520px at 78% 0%,
    rgba(217, 85, 47, 0.14),
    transparent 70%
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero h1 { margin-bottom: 20px; }

.hero__lead {
  color: var(--steel-light);
  font-size: 1.1rem;
  max-width: 33em;
  margin-bottom: 30px;
}

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

.hero__visual .blueprint {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* --- Bandeau de preuves ------------------------------------------------- */
.proof {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
  color: #fff;
  padding: 28px 0;
}
.proof__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proof__list li { display: flex; flex-direction: column; gap: 2px; }
.proof__list strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.proof__list span { color: var(--steel-light); font-size: 0.87rem; line-height: 1.45; }

/* --- Cartes savoir-faire ------------------------------------------------ */
/* Quatre colonnes, puis deux, puis une : des paliers explicites plutôt qu'un
   auto-fit. Avec quatre éléments, auto-fit passe par un palier à trois colonnes
   et laisse une carte seule sur sa ligne ; 4 → 2 → 1 tombe toujours juste. */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: #cfd6de; box-shadow: var(--shadow); }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--forge);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.card p { color: var(--steel); font-size: 0.97rem; margin: 0; }

/* --- Réalisation -------------------------------------------------------- */
.work {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.work h3 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}
.work__body p { color: var(--steel-light); margin-bottom: 22px; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--steel-light);
  border: 1px solid var(--ink-3);
  border-radius: 100px;
  padding: 5px 12px;
}

.work__links { display: flex; flex-wrap: wrap; gap: 22px; }
.work__links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid var(--forge);
  padding-bottom: 3px;
}
.work__links a:hover { color: var(--forge-light); }

.work__art { width: 100%; height: auto; display: block; }

/* --- Méthode ------------------------------------------------------------ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  counter-reset: none;
}
.step {
  border-top: 2px solid var(--line);
  padding-top: 24px;
  position: relative;
}
/* Le trait d'accent ne couvre que le début de la bordure : il marque l'étape
   sans transformer la grille en tableau. */
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 2px;
  background: var(--forge);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--forge);
  display: block;
  margin-bottom: 10px;
}
.step p { color: var(--steel); font-size: 0.97rem; margin: 0; }

/* --- Engagements -------------------------------------------------------- */
/* Même raison que .cards : quatre éléments, donc des paliers explicites. */
.commitments {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}
.commitment h3 { margin-bottom: 8px; }
.commitment p { color: var(--steel); font-size: 0.97rem; margin: 0; }

/* --- Contact ------------------------------------------------------------ */
.contact {
  text-align: center;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  max-width: 620px;
  margin: 0 auto;
}
.contact__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 10px;
}
.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  /* L'adresse n'est pas un lien (voir le commentaire dans index.html) : ce
     curseur indique qu'elle se sélectionne, plutôt qu'elle se clique. */
  cursor: text;
  overflow-wrap: anywhere;
}
.contact__note { color: var(--steel); font-size: 0.93rem; margin: 0; }

.form {
  max-width: 720px;
  margin: 28px auto 0;
}
.form iframe {
  width: 100%;
  border: 0;
  display: block;
}
.form__fallback {
  text-align: center;
  color: var(--steel);
  font-size: 0.9rem;
  margin: 18px 0 0;
}
.form__fallback strong { color: var(--ink); overflow-wrap: anywhere; }

/* --- Pied de page ------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  font-size: 0.94rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 36px;
}
.footer__brand p { max-width: 34em; margin: 14px 0 0; }
.footer .brand { font-size: 1.1rem; }

.footer h3 {
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--steel-light); text-decoration: none; }
.footer li a:hover { color: #fff; }

.footer__legal {
  border-top: 1px solid var(--ink-3);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--steel);
}

/* --- Adaptations aux petits écrans -------------------------------------- */

/* Les grilles de quatre passent à deux avant que les colonnes ne deviennent
   trop étroites pour leur texte. */
@media (max-width: 1040px) {
  .cards, .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  /* Le visuel passe sous le texte : sur un téléphone, la première chose à lire
     est la phrase d'accroche, pas un schéma. */
  .hero__visual { order: 2; max-width: 460px; }
  .work { grid-template-columns: 1fr; }
  .work__aside { max-width: 260px; }
  .proof__list { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  /* La navigation disparaît plutôt que de se replier derrière un menu : trois
     liens ne justifient pas un panneau déroulant, et les mêmes entrées restent
     accessibles dans le pied de page. */
  .nav { display: none; }
  .header__inner { justify-content: space-between; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .proof__list { grid-template-columns: 1fr; gap: 16px; }
  .cards, .commitments { grid-template-columns: 1fr; }
  .work__links { gap: 16px 20px; }
}

/* Respecte le réglage système « réduire les animations ». */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
