/* Font texte général du site */
body,
p,
li,
input,
button {
  font-size: clamp(1rem, 1rem + 0.24vw, 1.125rem);
  font-family: "Hind Madurai", sans-serif;
  font-weight: 400;
}

/* Font titres */
h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  margin: 0;
  font-family: "Lora", serif;
  font-weight: 600;
  color: var(--title-main);
}

.small-text {
  font-size: clamp(0.875rem, 0.85rem + 0.2vw, 1rem);
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text-primary);
  overflow: visible;
}

/* HEADER */

.site-header {
  text-align: center;
  margin-bottom: 1.5rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.logo-container {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
}

.logo-mark {
  width: clamp(120px, 12vw, 230px);
  height: auto;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}

.logo-mark img {
  width: 95%;
  height: 95%;
  object-fit: contain;
}

.logo-name {
  font-size: clamp(1.125rem, 1.125rem + 1.19vw, 1.75rem);
  text-align: center;
  letter-spacing: 0.05em;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  /*color: var(--text-primary);*/
}

.baseline {
  color: var(--text-muted);
}

/* CARD */

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* HERO */

.hero {
  display: grid;
  gap: 1.5rem;
}

.illustration {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px dashed var(--border-warm);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  background: #faf3e6;
}

.illustration img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.content {
  display: grid;
  gap: 0.75rem;
}

.badge {
  background: rgba(196, 154, 61, 0.15);
  color: var(--icon-accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  width: fit-content;
}

/* FORM */

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

input {
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e6ddd5;
}

button {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  background: var(--btn-bg);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* Messages dynamiques */
.form-message {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
}

/* Succès */
.form-message.success {
  color: var(--icon-accent);       /* or miel */
  background: rgba(196, 154, 61, 0.1);
}

/* Erreur */
.form-message.error {
  color: var(--btn-hover);         /* rouge profond */
  background: rgba(155, 28, 28, 0.1);
}

.note {
  color: var(--text-muted);
}

/* TOPICS */

.topics {
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.3rem;
}

.topics li {
  list-style: none;
  color: var(--text-muted);
}

/* FOOTER */

.footer {
  margin-top: 1rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.footer a img {
  display: inline-block;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  transition: transform 0.3s, filter 0.3s;
  margin-bottom: 3px;
}

.footer a img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.3s; /* tu peux jouer sur le delay pour chaque élément */
}

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

/* DESKTOP */

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}
