/* =========================================================
   Page d'accès à la déclaration d'utilisation de l'IA
   (header public masqué — page plein écran)
   ========================================================= */

.decl-uuid-shell {
  /* Le header est masqué : la page occupe toute la hauteur du viewport */
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: linear-gradient(135deg, #0f2b6e 0%, #1d4ed8 55%, #3b82f6 100%);
  box-sizing: border-box;
}

.decl-uuid-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 5vw, 2rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

/* Badge icône */
.decl-uuid-badge {
  width: clamp(3rem, 10vw, 3.75rem);
  height: clamp(3rem, 10vw, 3.75rem);
  margin: 0 auto clamp(0.75rem, 3vw, 1rem);
  display: grid;
  place-items: center;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px -8px rgba(29, 78, 216, 0.45);
}

.decl-uuid-badge svg {
  width: clamp(1.4rem, 4.5vw, 1.75rem);
  height: clamp(1.4rem, 4.5vw, 1.75rem);
}

/* Titres */
.decl-uuid-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}

.decl-uuid-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: #64748b;
  margin: 0 0 clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.5;
}

/* Formulaire */
.decl-uuid-form {
  text-align: left;
}

.decl-uuid-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.decl-uuid-label .required {
  color: #ef4444;
  margin-left: 0.15rem;
}

.decl-uuid-input {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: clamp(0.75rem, 3vw, 0.95rem) 1rem;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.decl-uuid-input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.decl-uuid-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.decl-uuid-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.decl-uuid-error {
  margin-top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Bouton */
.decl-uuid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: clamp(1rem, 3vw, 1.25rem);
  padding: clamp(0.8rem, 3vw, 0.95rem) 1rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.decl-uuid-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(29, 78, 216, 0.45);
}

.decl-uuid-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Footer / lien */
.decl-uuid-footer {
  margin-top: clamp(1rem, 3vw, 1.25rem);
  padding-top: clamp(1rem, 3vw, 1.25rem);
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

.decl-uuid-footer a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.decl-uuid-footer a:hover {
  text-decoration: underline;
}

/* Écrans courts : compacter la carte pour éviter le scroll */
@media (max-height: 720px) {
  .decl-uuid-card {
    padding: 1.25rem;
    border-radius: 1rem;
  }
  .decl-uuid-badge {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
  }
  .decl-uuid-title {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }
  .decl-uuid-subtitle {
    margin-bottom: 1rem;
  }
  .decl-uuid-btn {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
  }
  .decl-uuid-footer {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

/* Très petits mobiles */
@media (max-width: 360px) {
  .decl-uuid-shell {
    padding: 0.75rem;
  }
  .decl-uuid-card {
    padding: 1rem;
  }
}
