/* Styles globaux pour toutes les pages */

/* Réinitialisation globale */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles globaux pour le corps de la page */
body {
  font-family: 'Playfair Display', serif;
  background-color: #f4f1eb;
  color: #3a2d1a;
  line-height: 1.6;
}

/* Styles pour l'en-tête */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #f4f1ebee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

header .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: bold;
  color: #3a2d1a;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  text-decoration: none;
  color: #3a2d1a;
  font-weight: 500;
}

header .header-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

header .header-icons > * {
  margin: 0 !important;
  padding: 0 !important;
}

.login-wrapper,
.about-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 24px;
}

.login-wrapper .user-icon,
.about-wrapper .about-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.login-text,
.about-text {
  position: absolute;
  top: 28px;
  white-space: nowrap;
  background: #f4f1eb;
  color: #3a2d1a;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.login-wrapper:hover .login-text,
.about-wrapper:hover .about-text {
  opacity: 1;
}

.search-container {
  display: flex;
  align-items: center;
  height: 24px;
}

.search-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 6px 10px;
  margin-left: 8px;
  border: 1px solid #ccc;
  border-radius: 20px;
  transition: all 0.4s ease;
  font-size: 0.9rem;
}

.search-container:hover .search-input {
  width: 150px;
  opacity: 1;
}

.search-container:hover .search-input,
.search-input:focus {
  width: 150px;
  opacity: 1;
}

/* Styles pour le pied de page */
footer {
  background: #1d120f;
  color: #EAE0D5;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: left;
}

footer div {
  max-width: 300px;
}

footer h2, footer h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

footer a img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.social-icons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

/* Styles réactifs pour les écrans plus petits */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 10px 20px;
  }

  header nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .founder-section {
    flex-direction: column !important;
    text-align: center;
  }
}

/* Styles pour la bannière de cookies */
.cookie-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #3a2d1a;
  color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  max-width: 90%;
  width: 400px;
}

.cookie-banner.active {
  display: flex;
}

.cookie-banner button {
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  background: #fff;
  color: #3a2d1a;
  font-weight: bold;
  cursor: pointer;
  margin: 5px;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

/* Styles pour les sections avec effet de fondu */
.section {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.section.active {
  opacity: 1;
}
