/* Général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    background-color: #E0D5BA; /* Marron plus clair */
    background-image: url('boussole.png'); /* Ajout des images de boussole et carte */
    background-size: contain, contain; /* Adapte chaque image à sa taille */
    background-repeat: no-repeat, no-repeat; /* Ne pas répéter les images */
    background-position: top left, bottom right; /* Positionnement des images */
    color: white; /* Texte blanc pour contraster */
}

/* Effet 3D général */
main {
  max-width: 1200px;
  margin: 3rem auto;
  background: rgba(255, 248, 220, 0.88);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  transform: perspective(1000px);
  animation: floatIn 0.6s ease;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header */
header {
  background-color: rgba(60, 50, 30, 0.95);
  color: #fdf5e6;
  text-align: center;
  padding: 2rem 1rem;
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px #000;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #fdf5e6;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  border-bottom: 2px solid #d4af37;
}

/* Titre et paragraphes */
h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #5a3e2b;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

/* Grille */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Carte */
.card {
  background: #fffaf0;
  border: 2px solid #d4af37;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.card:hover {
  transform: rotateY(5deg) translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #d4af37;
}

.card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #3e2a1a;
}

.card-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  color: #4d3b2c; 
}

/* Bouton */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #a0522d;
  color: white;
  text-align: center;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #8b4513;
}

.section search-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 248, 220, 0.9);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #d4af37;
}

.search-filter input,
.search-filter select {
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 2px solid #a0522d;
  border-radius: 12px;
  background-color: #fffaf0;
  color: #3e2a1a;
  font-family: 'Arial', sans-serif;
  min-width: 220px;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}

.search-filter input::placeholder {
  color: #a39b90;
  font-style: italic;
}

.search-filter input:focus,
.search-filter select:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}
.portail-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('portail.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    color: white;
    text-align: center;
}

.portail-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.portail-image-container p {
    max-width: 800px;
    font-size: 1.25rem;
    line-height: 1.8;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1.5s ease-out forwards;
    opacity: 0;
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


