:root {
  --vert: #087a4b;
  --vert-clair: #e9f6ef;
  --brun: #a46a3a;
  --texte: #2b2b2b;
  --fond: #fffaf4;
  --blanc: #ffffff;
  --rouge: #d62828;
  --orange: #f59e0b;
  --ombre: rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--fond);
  color: var(--texte);
  line-height: 1.6;
}

header {
  background: var(--blanc);
  padding: 16px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 3px 15px var(--ombre);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  color: var(--vert);
  font-size: 1.2rem;
}

.logo-header img {
  height: 65px;
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
  color: var(--texte);
}

nav a:hover {
  color: var(--vert);
}

.menu-toggle {
  display: none;
  background: var(--vert);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: bold;
}

section {
  padding: 80px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h1 {
  font-size: clamp(2.3rem,4vw,3.5rem);
  color: var(--vert);
  margin-bottom: 12px;
}

.section-title p {
  max-width: 850px;
  margin: auto;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: .2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--vert);
  color: white;
}

.btn-secondary {
  background: var(--brun);
  color: white;
}

.btn-danger {
  background: var(--rouge);
  color: white;
}

.btn-light {
  background: white;
  color: var(--vert);
  border: 2px solid var(--vert);
}

.btn:hover {
  transform: translateY(-2px);
  opacity: .9;
}

.notice {
  margin: 30px 0;
  background: var(--vert-clair);
  border-left: 6px solid var(--vert);
  padding: 22px;
  border-radius: 18px;
}

.lost-form-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 35px;
  align-items: start;
}

.lost-form {
  background: var(--blanc);
  border-radius: 30px;
  padding: 35px;
  box-shadow: 0 12px 35px var(--ombre);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 800;
  color: var(--vert);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--vert-clair);
  background: var(--fond);
  color: var(--texte);
  font-size: 1rem;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--vert);
}

.poster-panel {
  position: sticky;
  top: 120px;
}

.poster {
  background: white;
  color: #111;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  border: 10px solid #d62828;
}

.poster-header {
  background: #d62828;
  color: white;
  text-align: center;
  padding: 22px;
}

.poster-header h2 {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 8px;
}

.poster-header p {
  font-weight: 800;
  font-size: 1.1rem;
}

.poster-photo {
  width: 100%;
  height: 310px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  font-weight: 800;
  overflow: hidden;
}

.poster-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-body {
  padding: 28px;
}

.poster-name {
  text-align: center;
  font-size: 2.6rem;
  color: #087a4b;
  font-weight: 900;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.poster-info {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.poster-info div {
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 1rem;
}

.poster-warning {
  background: #fff7ed;
  border: 2px solid #f59e0b;
  color: #7c2d12;
  border-radius: 16px;
  padding: 14px;
  font-weight: 900;
  text-align: center;
  margin: 18px 0;
}

.poster-contact {
  background: #087a4b;
  color: white;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.poster-contact strong {
  display: block;
  font-size: 1.65rem;
  margin-top: 5px;
}

.poster-footer {
  text-align: center;
  font-size: .9rem;
  padding: 15px 20px 20px;
  color: #475569;
}

.copy-box {
  background: var(--blanc);
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 12px 35px var(--ombre);
  margin-top: 30px;
}

.copy-box textarea {
  width: 100%;
  min-height: 230px;
  border-radius: 18px;
  border: 2px solid var(--vert-clair);
  background: var(--fond);
  color: var(--texte);
  padding: 18px;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  resize: vertical;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}

footer {
  background: #25352d;
  color: white;
  padding: 45px 8%;
  text-align: center;
}

footer a {
  color: white;
  font-weight: bold;
}

@media(max-width:1100px) {
  .lost-form-layout {
    grid-template-columns: 1fr;
  }

  .poster-panel {
    position: static;
  }
}

@media(max-width:900px) {
  header {
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  nav.open {
    display: block;
  }

  nav a {
    display: block;
    margin: 8px 0;
    padding: 8px 0;
  }
}

@media(max-width:620px) {
  section {
    padding: 55px 6%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .lost-form {
    padding: 26px;
  }

  .poster-header h2 {
    font-size: 1.6rem;
  }

  .poster-name {
    font-size: 2rem;
  }

  .poster-photo {
    height: 240px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #posterToPrint,
  #posterToPrint * {
    visibility: visible;
  }

  #posterToPrint {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
  }

  header,
  footer {
    display: none !important;
  }
}

@media(prefers-color-scheme:dark) {
  :root {
    --vert: #39b878;
    --vert-clair: #13241b;
    --brun: #d59b64;
    --texte: #f2f2f2;
    --fond: #111814;
    --blanc: #1c261f;
    --ombre: rgba(0,0,0,.35);
  }

  .btn-light {
    background: transparent;
    color: var(--vert);
    border-color: var(--vert);
  }
}
.poster-header.found {
  background: #087A4B;
}

.poster-header.found h2 {
  color: #ffffff;
}