/* styles.css */
/* Réinitialisation et variables */
:root {
  --primary: #2C3E50;        /* Bleu ardoise sophistiqué */
  --secondary: #E8B04B;      /* Or élégant */
  --accent: #E67E22;         /* Orange cuivré */
  --accent-soft: #F39C12;    /* Orange doux */
  --text: #1A1A1A;           /* Noir profond */
  --text-light: #4A4A4A;     /* Gris anthracite */
  --light: #FAFAFA;          /* Blanc cassé moderne */
  --card-bg: #FFFFFF;        /* Blanc pur pour les cartes */
  --gradient-start: #34495E; /* Dégradé sombre */
  --gradient-end: #2C3E50;   /* Dégradé foncé */
  --gold-light: #F4D03F;     /* Or clair */
  --gold-dark: #D4AC0D;      /* Or foncé */
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-main: 'Lora', serif;
  --font-title: 'Playfair Display', serif;
  --shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
  --shadow-hover: 0 16px 48px rgba(44, 62, 80, 0.2);
  --shadow-gold: 0 8px 32px rgba(244, 208, 63, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(135deg, var(--light) 0%, #F8F9FA 100%);
  color: var(--text);
  line-height: 1.8;
  min-height: 100vh;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--primary) 50%, var(--gradient-end) 100%);
  color: white;
  text-align: center;
  padding: 8rem 2rem 6rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  position: relative;
  margin-bottom: 5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(44, 62, 80, 0.3);
}

/* Animation de fond en parallaxe */
header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(244, 208, 63, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(244, 208, 63, 0.06) 1.5px, transparent 1.5px);
  background-size: 80px 80px, 60px 60px, 100px 100px;
  animation: float 25s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

header h1 {
  font-family: var(--font-title);
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #FFFFFF, var(--gold-light), #FFFFFF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: slideInFromTop 1.2s ease-out;
}

@keyframes slideInFromTop {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

header p {
  font-size: 1.4rem;
  max-width: 630px;
  margin: 0 auto;
  font-style: italic;
  position: relative;
  z-index: 1;
  animation: slideInFromBottom 1.2s ease-out 0.3s both;
}

@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections générales */
.section {
  padding: 3rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
  border-radius: 2px;
  transition: width 0.8s ease-in-out 0.5s;
  box-shadow: 0 2px 8px rgba(232, 176, 75, 0.4);
}

.section h2.visible::after {
  width: 120px;
}

/* Section À propos */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-text blockquote {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent);
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.about-image {
  width: 30%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  margin: 0 auto;
  background: transparent;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--secondary), var(--accent));
  border-radius: 23px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image:hover::before {
  opacity: 1;
}

.about-image:hover {
  transform: translateY(-5px);
}

.about-image img {
  width: 100%;
  /* L'image remplit le conteneur réduit */
  height: auto;
  display: block;
}

/* Section Coups de cœur */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.favorite-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 1;
  background: var(--card-bg);
  border: 1px solid rgba(232, 176, 75, 0.2);
}

.favorite-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.favorite-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

/* Section Galerie */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 1rem 2rem;
  background: var(--card-bg);
  color: var(--primary);
  border: 2px solid rgba(232, 176, 75, 0.3);
  border-radius: 30px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 30px;
  transform: scale(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.filter-btn:hover::before {
  transform: scale(1);
}

.filter-btn span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.filter-btn:hover {
  color: white;
  border-color: var(--secondary);
  box-shadow: var(--shadow-gold);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--gradient-end));
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  aspect-ratio: 4/3;
  background: var(--card-bg);
  cursor: pointer;
  border: 1px solid rgba(232, 176, 75, 0.1);
}

.gallery-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-gold);
  border-color: var(--secondary);
}

.gallery-item a {
  display: block;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1) rotate(2deg);
}

/* Effet de brillance au survol */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
  z-index: 2;
}

.gallery-item:hover::before {
  left: 100%;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.95));
  color: white;
  padding: 1.2rem;
  transform: translateY(100%);
  transition: var(--transition);
  font-size: 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--secondary);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-item.is-hidden {
  display: none !important;
}

.load-more-btn {
  margin: 3rem auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.8rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: linear-gradient(135deg, var(--accent), var(--secondary));
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn.hidden {
  display: none;
}

/* Section Citation */
#quote {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.9));
  color: white;
  position: relative;
  margin: 6rem 0;
  overflow: hidden;
  border-radius: 30px;
  margin-left: 2rem;
  margin-right: 2rem;
  box-shadow: var(--shadow-hover);
}

/* Particules flottantes pour la section citation */
#quote::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.15) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(244, 208, 63, 0.08) 1px, transparent 1px);
  background-size: 120px 120px, 80px 80px, 100px 100px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-20px) rotate(360deg); opacity: 0.3; }
}

#quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

#quote .container {
  position: relative;
  z-index: 1;
}

#quote p {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-style: italic;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  background: linear-gradient(135deg, #FFFFFF, var(--gold-light), #FFFFFF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Section Contact */
#contact {
  background: var(--light);
  padding: 5rem 2rem;
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  min-width: 40px;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-btn {
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  align-self: center;
  box-shadow: var(--shadow);
}

.contact-btn:hover {
  background: var(--accent);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Animation de rotation pour les icônes de contact */
.contact-icon {
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(360deg) scale(1.2);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gradient-start), var(--primary), var(--gradient-end));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
  margin-top: 6rem;
  position: relative;
  box-shadow: 0 -10px 40px rgba(44, 62, 80, 0.2);
}

footer::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--light);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
  header h1 {
    font-size: 3rem;
  }

  .about-content {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .about-image {
    width: 60%;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    padding: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  #quote p {
  font-size: 1.5rem;
}
}

/* Animations */
.animate__animated {
  animation-duration: 1s;
}

/* Animations au scroll */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Amélioration des sections */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
  transform: translateX(-50%);
  opacity: 0.3;
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Animation en cascade pour les éléments de grille */
.gallery-item, .favorite-item {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item.visible, .favorite-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Délais d'animation en cascade */
.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-item:nth-child(4) { transition-delay: 0.4s; }
.gallery-item:nth-child(5) { transition-delay: 0.5s; }
.gallery-item:nth-child(6) { transition-delay: 0.6s; }
.gallery-item:nth-child(7) { transition-delay: 0.7s; }
.gallery-item:nth-child(8) { transition-delay: 0.8s; }
.gallery-item:nth-child(9) { transition-delay: 0.9s; }

.favorite-item:nth-child(1) { transition-delay: 0.1s; }
.favorite-item:nth-child(2) { transition-delay: 0.2s; }
.favorite-item:nth-child(3) { transition-delay: 0.3s; }

/* Effet de pulsation pour les coups de cœur */
.favorite-item {
  position: relative;
}

.favorite-item:hover img {
  transform: scale(1.1) rotate(-1deg);
}

.favorite-item::after {
  content: '❤️';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  z-index: 3;
  animation: heartbeat 2s ease-in-out infinite;
}

.favorite-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Modal pour les images */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent);
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }

  to {
    transform: scale(1);
  }
}


