/* ============================================================
   Workorder Online — page d'accueil (porte d'entree de l'application)
   Reprend la signature visuelle de soudureflf.com :
   fond sombre #191D21, rouge #E92027, titres Oswald, texte Didact Gothic.
   Aucune ressource externe : polices et images servies localement.
   ============================================================ */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("fonts/oswald.woff2") format("woff2");
}

@font-face {
  font-family: "Didact Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/didact-gothic.woff2") format("woff2");
}

:root {
  --flf-dark: #191D21;
  --flf-panneau: #272727;
  --flf-red: #E92027;
  --blanc: #ffffff;
  --titre: "Oswald", "Arial Narrow", Arial, Helvetica, sans-serif;
  --texte: "Didact Gothic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--flf-dark);
  color: var(--blanc);
  font-family: var(--texte);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Bandeau plein ecran : photo de l'usine + voile sombre ---- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.fond {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(25, 29, 33, 0.72) 0%, rgba(25, 29, 33, 0.35) 70%, rgba(25, 29, 33, 0.25) 100%),
    rgba(0, 0, 0, 0.56);
}

/* ---- Bloc logo, en haut a gauche comme sur soudureflf.com ---- */
.marque {
  align-self: flex-start;
  background: var(--flf-panneau);
  padding: 30px 50px;
  text-align: center;
}

.logo {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto 8px;
}

.devise {
  max-width: 240px;
  margin: 0 auto;
  font-family: var(--titre);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--flf-red);
}

/* ---- Contenu centre ---- */
.contenu {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 56px;
}

h1 {
  margin: 0 0 20px;
  font-family: var(--titre);
  font-size: clamp(30px, 5.2vw, 48px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: clamp(6px, 1.4vw, 15px);
  text-transform: uppercase;
}

.texte {
  max-width: 60ch;
  margin: 0 0 40px;
  font-size: clamp(16px, 1.8vw, 18px);
}

/* ---- Bouton : contour blanc, remplissage au survol (signature du site) ---- */
.bouton {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 44px;
  overflow: hidden;
  border: 1px solid var(--blanc);
  background: rgba(25, 29, 33, 0.6); /* garde le libelle lisible par-dessus la photo */
  color: var(--blanc);
  font-family: var(--titre);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bouton::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 0;
  background: var(--blanc);
  transition: left 0.3s ease, width 0.3s ease;
}

.bouton span {
  position: relative;
  z-index: 1;
}

.bouton:hover,
.bouton:focus-visible {
  color: var(--flf-panneau);
}

.bouton:hover::after,
.bouton:focus-visible::after {
  left: 0;
  width: 100%;
}

.bouton:focus-visible {
  outline: 2px solid var(--flf-red);
  outline-offset: 4px;
}

/* ---- Pied discret ---- */
.pied {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 28px;
  font-family: var(--titre);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Coins decoratifs du bandeau ---- */
.coin {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 0 solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.coin-haut {
  top: 50px;
  right: 50px;
  border-top-width: 1px;
  border-right-width: 1px;
}

.coin-bas {
  right: 50px;
  bottom: 50px;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

/* Pas d'animation d'entree : le bouton doit etre visible et cliquable
   des l'affichage (usage quotidien sur les tablettes de l'atelier). */

/* ---- Tablettes et telephones ---- */
@media (max-width: 991px) {
  .marque {
    padding: 15px 20px;
  }

  .logo {
    width: 160px;
  }

  .devise {
    max-width: 200px;
    font-size: 11px;
    letter-spacing: 3px;
  }

  .coin {
    display: none;
  }
}

@media (max-width: 520px) {
  .contenu {
    padding: 36px 20px 44px;
  }

  .pied {
    padding: 0 20px 22px;
  }

  .bouton {
    align-self: stretch;
  }
}

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