/* Pharmactiv – page 404 « Site en construction » */

:root {
  --fond: #A1C25E;
  --vert: #6f9330;
  --vert-fonce: #55731f;
  --jaune: #ffc400;
  --noir: #1d1d1b;
  --orange: #f26a1b;
  --texte: #1f2a14;
  --texte-doux: #55604a;
  --panneau: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px;
  background-color: var(--fond);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--texte);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Bandes de chantier en haut et en bas de l'écran */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 22px;
  background: repeating-linear-gradient(
    -45deg,
    var(--jaune) 0 22px,
    var(--noir) 22px 44px
  );
  z-index: 0;
}
body::before { top: 0; }
body::after  { bottom: 0; }

/* Le panneau */
.panneau {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  padding: 14px;
  border-radius: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--jaune) 0 18px,
    var(--noir) 18px 36px
  );
  box-shadow: 0 22px 50px rgba(40, 60, 10, 0.3);
}

.contenu {
  background: var(--panneau);
  border-radius: 8px;
  padding: 40px 36px 32px;
  text-align: center;
}

.logo {
  display: block;
  max-width: 180px;
  width: 50%;
  height: auto;
  margin: 0 auto 26px;
}

.badge {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--noir);
  color: var(--jaune);
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--noir);
  margin-bottom: 18px;
  transform: rotate(-2deg);
}

h1 span {
  display: inline-block;
  background: var(--jaune);
  padding: 2px 12px;
  margin-top: 4px;
}

p {
  color: var(--texte-doux);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

/* Cônes de chantier */
.cones {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin-top: -18px;
}
.cones svg { display: block; }
.cones .petit { width: 54px; height: auto; }
.cones .grand { width: 72px; height: auto; }

/* Boutons */
.boutons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.bouton {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--vert);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.bouton:hover,
.bouton:focus-visible {
  background: var(--vert-fonce);
  transform: translateY(-2px);
}

.bouton:focus-visible {
  outline: 3px solid var(--jaune);
  outline-offset: 3px;
}

.bouton-secondaire {
  background: transparent;
  color: var(--vert-fonce);
  box-shadow: inset 0 0 0 2px var(--vert);
}

.bouton-secondaire:hover,
.bouton-secondaire:focus-visible {
  background: #eef4e0;
  color: var(--vert-fonce);
}

.merci {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px dashed #e3e3e3;
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  body { padding: 56px 12px; }
  .panneau { padding: 10px; }
  .contenu { padding: 32px 20px 26px; }
  h1 { font-size: 1.7rem; }
  h1 span { white-space: nowrap; }
  .cones .petit { width: 42px; }
  .cones .grand { width: 56px; }
}
