body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #1a1a1a;
}

/* HEADER */

.header-casp {
  background: #111;
  padding: 28px 20px 34px;
  text-align: center;
  color: white;
  border-bottom: 8px solid #ec008c;
}

.header-casp img {
  height: 72px;
  display: block;
  margin: 0 auto 12px;
}

.header-casp h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-subtitle {
  margin: 7px 0 0;
  color: #00a9e0;
  font-size: 15px;
  font-weight: 700;
}

/* PAGE */

.grid {
  display: flex;
  gap: 30px;
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px 40px;
  align-items: stretch;
}

/* BLOCS */

.form-section,
.signature-section {
  flex: 1;
  background: #fff;
  padding: 32px;
  border-radius: 4px;
  border-top: 6px solid #ec008c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.signature-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* TITRES */

h2 {
  margin-top: 0;
  margin-bottom: 28px;
  text-align: left;
  color: #00a9e0;
  font-size: 25px;
  font-weight: 800;
  text-transform: uppercase;
}

/* FORMULAIRE */

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
}

input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 13px;
  border-radius: 3px;
  border: 1px solid #cfcfcf;
  background: white;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #00a9e0;
  box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.12);
}

/* BOUTONS */

button {
  width: 100%;
  padding: 13px 16px;
  margin-top: 22px;
  border-radius: 3px;
  border: none;
  background-color: #ec008c;
  color: white;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

button:hover {
  background-color: #c60076;
  transform: translateY(-1px);
}

.reset-button {
  margin-top: 10px;
  background-color: #2d2d2d;
}

.reset-button:hover {
  background-color: #111;
}

/* SIGNATURE */

.signature-output {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 30px;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(0, 169, 224, 0.03), rgba(236, 0, 140, 0.03));
  border: 1px solid #e6e6e6;
}

.signature-output.empty {
  color: #aaa;
  font-style: italic;
  text-align: center;
}

.signature-preview {
  font-size: 14px;
  color: #2d2d7f;
  line-height: 1.6;
  font-family: Verdana, Geneva, sans-serif;
}

.signature-preview a {
  color: #2d2d7f;
  text-decoration: none;
  font-weight: bold;
}

.social-icons img {
  width: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

.disclaimer {
  font-size: 11px;
  color: #666;
  font-style: italic;
  margin-top: 15px;
}

/* BOUTON COPIER */

#copyBtn {
  margin-top: 18px;
  background: #00a9e0;
}

#copyBtn:hover {
  background: #0088b6;
}

/* ANIMATION */

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadein 0.4s ease-in-out;
}

/* MESSAGE COPIE */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ec008c;
  color: white;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* MOBILE */

@media (max-width: 800px) {
  .grid {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .form-section,
  .signature-section {
    padding: 22px;
  }

  .header-casp h1 {
    font-size: 23px;
  }

  .signature-output {
    min-height: 300px;
  }
}
