/* Eutomation & Scansys · Landing page
   Valeurs reprises du Figma « Landing page » (cadre 1512 × 984) */

:root {
  --nuit: #000016;
  --sea: #0578be;
  --bleu-bouton: #0279be;
  --bleu-clair: #00a1ff;
  --cyan: #00ffff;
  --blanc: #ffffff;
  --langue: rgba(5, 60, 110, 0.7);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --marge: 70px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--blanc);
  font-family: var(--font);
  font-size: 18px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* Page : photo + dégradé horizontal nuit → bleu Sea */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--nuit);
  background-image:
    linear-gradient(90deg, rgb(0, 0, 22) 15%, rgba(5, 120, 190, 0.6) 85%),
    url("../img/fond.jpg");
  background-image:
    linear-gradient(90deg, rgb(0, 0, 22) 15%, rgba(5, 120, 190, 0.6) 85%),
    image-set(url("../img/fond.webp") type("image/webp"), url("../img/fond.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px var(--marge) 0;
}

.header__logo img { width: 294px; height: 50px; }

.header__langue {
  padding: 10px 14px;
  background: var(--langue);
  font-size: 15px;
  line-height: 18px;
  font-weight: 800;
}

/* Promesse */
.promesse {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 60px;
  padding: 60px var(--marge);
}

.promesse__texte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 945px;
}

/* Style H4 */
.surtitre {
  margin: 0;
  color: var(--bleu-clair);
  font-size: 18px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Style H1 */
.titre {
  margin: 0;
  font-size: 54px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

/* Composant « Bouton » : survol = fond noir → bleu, lueur cyan, texte dégradé cyan (0,3 s) */
.bouton {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  padding: 20px;
  /*border: 1px solid rgba(255, 255, 255, 0.2);*/
  background: linear-gradient(90deg, var(--bleu-bouton), var(--bleu-clair));
  color: var(--blanc);
  font-size: 18px;
  line-height: 24px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bouton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #000000, var(--bleu-bouton));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bouton__label {
  background-image: linear-gradient(90deg, var(--bleu-clair), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--blanc);
  transition: -webkit-text-fill-color 0.3s ease;
}

.bouton:hover,
.bouton:focus-visible {
  border-color: rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  outline: none;
}

.bouton:hover::before,
.bouton:focus-visible::before { opacity: 1; }

.bouton:hover .bouton__label,
.bouton:focus-visible .bouton__label { -webkit-text-fill-color: transparent; }

/* Slogan « We create your future » */
.slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.18em;
  margin: 0;
  padding: 0 75px;
  font-size: clamp(48px, 9.25vw, 140px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.slogan__accent {
  padding: 0.04em 0.19em 0.12em 0.16em;
  background: var(--blanc);
  color: var(--sea);
}

/* Footer */
.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 10px 30px;
  padding: 40px var(--marge) 30px;
  font-size: 14px;
  line-height: 24px;
}

.footer p { margin: 0; }

.footer__liens {
  justify-self: end;
  font-weight: 600;
}

.footer__liens a,
.footer__credit a { text-decoration: none; }

.footer__liens a:hover,
.footer__credit a:hover { text-decoration: underline; }

.footer__sep { margin: 0 6px; }

.footer__credit { justify-self: end; }
.footer__credit a { font-weight: 600; }

/* Tablette */
@media (max-width: 1100px) {
  :root { --marge: 40px; }
  .titre { font-size: 44px; line-height: 48px; }
  .slogan { padding: 0 var(--marge); }
}

/* Mobile : styles « mobile » du Figma (H1 40/40, H4 16) */
@media (max-width: 700px) {
  :root { --marge: 20px; }
  .header { padding-top: 24px; }
  .header__logo img { width: 200px; height: 34px; }
  .promesse { gap: 40px; padding-block: 48px; }
  .surtitre { font-size: 16px; }
  .titre { font-size: 40px; line-height: 40px; }
  .promesse__boutons { flex-direction: column; align-items: stretch; }
  .bouton { justify-content: center; }
  .slogan { font-size: clamp(36px, 11.5vw, 80px); row-gap: 0.1em; white-space: normal; }
  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 32px;
  }
  .footer__liens,
  .footer__credit { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .bouton,
  .bouton::before,
  .bouton__label { transition: none; }
}
