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

    :root {
      --sky: #eaf4f0;
      --water: #5ab0c0;
      --grass: #6a9848;
      --text: #1a2e28;
      --text-l: #4a7060;
      --cream: #fdf8f0;
      --gold: #c8a030;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background-color: var(--sky);
      color: var(--text);
      overflow-x: hidden;
    }

    /* ===== HEADER ===== */
    header {
      position: relative;
      background: linear-gradient(170deg, #1a3848 0%, #1a6878 40%, #2a9898 75%, #60b8a8 100%);
      padding: 3.5rem 2rem 6.5rem;
      text-align: center;
      overflow: hidden;
    }

    header::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 50% 60%, rgba(100, 220, 200, 0.18) 0%, transparent 65%);
    }

    header::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      right: 0;
      height: 80px;
      background: var(--sky);
      clip-path: ellipse(55% 100% at 50% 100%);
    }

    /* Reflets d'eau animés dans le header */
    .header-water {
      position: absolute;
      bottom: 60px;
      left: 0;
      right: 0;
      height: 40px;
      opacity: 0.18;
    }

    header h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2.4rem, 6vw, 4.2rem);
      font-weight: 700;
      font-style: italic;
      color: white;
      text-shadow: 0 3px 24px rgba(0, 0, 0, 0.3);
      line-height: 1.1;
      position: relative;
      z-index: 1;
    }

    header h1 span {
      color: #f0d060;
    }

    header p.subtitle {
      margin-top: 1rem;
      font-size: 1.1rem;
      color: #a8e0d8;
      font-weight: 600;
      position: relative;
      z-index: 1;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.6;
    }

    /* Petits animaux qui flottent dans le header */
    @keyframes float {

      0%,
      100% {
        transform: translateY(0)
      }

      50% {
        transform: translateY(-8px)
      }
    }

    @keyframes swim {

      0%,
      100% {
        transform: translateX(0) rotate(0deg)
      }

      50% {
        transform: translateX(6px) rotate(1deg)
      }
    }

    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(20px)
      }

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

    @keyframes pulse {

      0%,
      100% {
        transform: scale(1)
      }

      50% {
        transform: scale(1.04)
      }
    }

    .h-float-1 {
      animation: float 5s ease-in-out infinite;
    }

    .h-float-2 {
      animation: float 4s ease-in-out infinite 1s;
    }

    .h-float-3 {
      animation: swim 6s ease-in-out infinite 0.5s;
    }

    .h-float-4 {
      animation: float 4.5s ease-in-out infinite 2s;
    }

    /* ===== INTRO ===== */
    .intro {
      max-width: 680px;
      margin: 2.5rem auto 0;
      padding: 0 1.5rem;
      text-align: center;
      animation: fadeUp 0.6s ease both 0.1s;
    }

    .intro p {
      font-size: 1.08rem;
      line-height: 1.85;
      color: var(--text);
    }

    /* ===== GRILLE DES ANIMAUX ===== */
    .grid-title {
      text-align: center;
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      font-weight: 700;
      font-style: italic;
      color: var(--text);
      margin: 3rem 0 1.5rem;
      animation: fadeUp 0.6s ease both 0.2s;
    }

    .grid-title span {
      display: inline-block;
      width: 40px;
      height: 2px;
      background: var(--water);
      vertical-align: middle;
      margin: 0 0.8rem;
      border-radius: 2px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.2rem;
      max-width: 900px;
      margin: 0 auto;
      padding: 0 1.5rem 3rem;
    }

    /* Carte animal */
    .animal-card {
      background: white;
      border-radius: 20px;
      padding: 1.4rem 1rem 1rem;
      box-shadow: 0 4px 18px rgba(26, 46, 40, 0.09);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      text-decoration: none;
      color: var(--text);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      animation: fadeUp 0.5s ease both;
      cursor: pointer;
      border: 2px solid transparent;
    }

    .animal-card:hover {
      transform: translateY(-6px) scale(1.02);
      box-shadow: 0 12px 32px rgba(26, 46, 40, 0.16);
      border-color: var(--water);
    }

    .animal-card:hover .card-icon {
      animation: pulse 0.6s ease infinite;
    }

    .card-icon {
      width: 110px;
      height: 90px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .animal-card .card-name {
      font-family: 'Playfair Display', serif;
      font-size: 1.05rem;
      font-weight: 700;
      text-align: center;
      color: var(--text);
      line-height: 1.2;
    }

    .animal-card .card-latin {
      font-size: 0.72rem;
      font-style: italic;
      color: var(--text-l);
      text-align: center;
    }

    .animal-card .card-tag {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 0.2rem 0.7rem;
      border-radius: 20px;
      margin-top: 0.2rem;
    }

    /* Couleurs par catégorie */
    .tag-oiseau {
      background: #dff0f8;
      color: #1a6898;
    }

    .tag-mammif {
      background: #f0ead8;
      color: #7a5020;
    }

    .tag-reptile {
      background: #e8f0d8;
      color: #3a6820;
    }

    /* Délais d'animation pour les cartes */
    .animal-card:nth-child(1) {
      animation-delay: 0.08s;
    }

    .animal-card:nth-child(2) {
      animation-delay: 0.14s;
    }

    .animal-card:nth-child(3) {
      animation-delay: 0.20s;
    }

    .animal-card:nth-child(4) {
      animation-delay: 0.26s;
    }

    .animal-card:nth-child(5) {
      animation-delay: 0.32s;
    }

    .animal-card:nth-child(6) {
      animation-delay: 0.38s;
    }

    .animal-card:nth-child(7) {
      animation-delay: 0.44s;
    }

    .animal-card:nth-child(8) {
      animation-delay: 0.50s;
    }

    .animal-card:nth-child(9) {
      animation-delay: 0.56s;
    }

    .animal-card:nth-child(10) {
      animation-delay: 0.62s;
    }

    .animal-card:nth-child(11) {
      animation-delay: 0.68s;
    }

    /* ===== FOOTER ===== */
    footer {
      text-align: center;
      padding: 2rem 1.5rem;
      font-size: 0.85rem;
      color: var(--text-l);
      border-top: 2px dashed #90c8b8;
      max-width: 900px;
      margin: 0 auto;
    }

    footer .footer-note {
      font-family: 'Playfair Display', serif;
      font-style: italic;
      font-size: 1rem;
      color: var(--text);
      margin-bottom: 0.5rem;
    }
