@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&display=swap');

/* ============================= */
/* 🎨 Variables et reset */
/* ============================= */
:root {
  --primary-color: #fffaf7;
  --secondary-color: #ff6d38;
  --accent-color: #7a78ff;
  --heading-color: #333;
  --light-color: #f9f9f9;
  --dark-color: #333;

  --btn-primary-bg: #333;
  --btn-secondary-bg: #e74c3c;
  --btn-accent-bg: #00a652;
  --btn-primary-hover-bg: #8584ff;
  --btn-secondary-hover-bg: #333;

  --font-family-heading: 'Amatic SC', sans-serif;
  --border-radius: 8px;

  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 5px 15px rgba(0, 0, 0, 0.2);

  --section-margin: 2rem 0;
  --container-width: 90%;
}

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

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--primary-color);
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}

/* ============================= */
/* 🧱 Structure de base */
/* ============================= */
section {
  max-width: 100%;
  margin: 3rem;
  padding: 3rem;
  gap: 2rem;
  text-align: center;
}

h1 {
  font-family: var(--font-family-heading);
  font-size: 3em;
  color: var(--light-color);
}

section > h2 {
  font-family: var(--font-family-heading);
  font-size: 2.5em;
  color: var(--heading-color);
}

section > p {
  color: #666;
  margin-top: 3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
}

/* ============================= */
/* 🔘 Boutons */
/* ============================= */
button {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--btn-primary-bg);
  color: var(--light-color);
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: var(--btn-primary-hover-bg);
}

.donation {
  background-color: var(--btn-secondary-bg);
}

.donation:hover {
  background-color: var(--btn-secondary-hover-bg);
}

/* ============================= */
/* 🧭 Navigation */
/* ============================= */
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  background-color: var(--primary-color);
}

#logo {
  margin-right: auto;
}

#navBtn {
  margin-left: auto;
}

a {
  font-weight: 500;
  color: var(--dark-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

a:hover {
  color: var(--btn-primary-hover-bg);
}

span.orange {
  color: var(--secondary-color);
}

/* ============================= */
/* 🦴 Hero section */
/* ============================= */
#hero {
  width: 100vw;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#manifeste {
  height: 50vh;
  width: 100%;
  padding: 2rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../images/background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--light-color);
  gap: 3rem;
}

form {
  width: 55%;
  height: 20vh;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: absolute;
  top: 80%;
  left: 22.5%;
  background-color: var(--primary-color);
  z-index: 10;
}

#inputPair,
#selectPair {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 10px;
  width: 30%;
}

#type,
#city {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ddd;
}

#research {
  height: 3rem;
  width: 30%;
}

/* ============================= */
/* 🐾 Galerie */
/* ============================= */
#gallery {
  margin-top: 6rem;
}

#grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0;
  height: auto;
}

.gridPic {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-height: 250px;
}

/* Images */
#animal1 { background-image: url(../images/charlesdeluvio-K4mSJ7kc0As-unsplash.jpg); }
#animal2 { background-image: url(../images/manja-vitolic-gKXKBY-C-Dk-unsplash.jpg); }
#animal3 { background-image: url(../images/chan-swan-NKyl19P5IHg-unsplash.jpg); }
#animal4 { background-image: url(../images/alan-king-KZv7w34tluA-unsplash.jpg); }
#animal5 { background-image: url(../images/jae-park-7GX5aICb5i4-unsplash.jpg); }
#animal6 { background-image: url(../images/yosei-g-OVgE3m4MHKM-unsplash.jpg); }
#animal7 { background-image: url(../images/melanie-kreutz-IFnknR2Mv5o-unsplash.jpg); }
#animal8 { background-image: url(../images/peri-stojnic-5Vr_RVPfbMI-unsplash.jpg); }

/* ============================= */
/* 📖 Guide */
/* ============================= */
#stepWrapper {
  margin-top: 3rem;
  display: flex;
  justify-content: space-around;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  gap: 2rem;
  background-color: var(--light-color);
  border-radius: 8px;
  flex: 1 1 250px;
}

.stepIcon {
  font-size: 3rem;
}

/* ============================= */
/* 🐱 Section adoption */
/* ============================= */
#catBtn {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

#volunteer {
  background-color: var(--btn-accent-bg);
}

#volunteer:hover {
  background-color: var(--btn-secondary-hover-bg);
}

/* ============================= */
/* 👣 Footer */
/* ============================= */
footer {
  background-color: var(--btn-primary-bg);
  color: #ddd;
}

footer #information {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 1rem 2rem;
  gap: 2rem;
}

footer .info h4 {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

footer .info p {
  color: #ccc;
  font-size: 0.95rem;
}

footer #icones {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

footer #icones a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

footer #icones a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

footer .useful-link {
  display: block;
  color: #999;
  margin-bottom: 0.8rem;
  transition: color 0.3s;
  text-decoration: none;
}

footer .useful-link:hover {
  color: white;
}

footer .copyright {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 0.9rem;
}

/* ============================= */
/* 📱 Responsive Design */
/* ============================= */

/* Tablettes */
@media (max-width: 1024px) {
  form {
    width: 80%;
    left: 10%;
    top: 85%;
  }

  #grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav {
    flex-wrap: wrap;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  #logo, #navBtn {
    margin: 0;
  }

  form {
    position: static;
    width: 90%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem auto;
    height: auto;
  }

  form input,
  form select {
    width: 100%;
  }

  #grid {
    grid-template-columns: 1fr;
  }

  footer #information {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .info {
    padding: 0.5rem 0;
  }

  button {
    width: 100%;
  }
}

/* Petits téléphones */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  section {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  footer {
    font-size: 0.85rem;
  }
}
