/* R5 HOUAT - Thème Nitch Illustrateur */
/* Inspiré des affiches de Nitch - Style BD breton festif */

:root {
  /* Palette Bretagne/Océan */
  --houat-ocean-deep: #1a4a6e;
  --houat-ocean: #2980b9;
  --houat-turquoise: #48c9b0;
  --houat-sand: #f5e6d3;
  --houat-sand-light: #faf6f1;
  --houat-coral: #e74c3c;
  --houat-sunset: #f39c12;
  --houat-sunset-light: #f7dc6f;
  
  /* Couleurs d'accent */
  --houat-white: #ffffff;
  --houat-dark: #1a1a2e;
  --houat-gray: #6c7a89;
  
  /* Gradients */
  --gradient-ocean: linear-gradient(135deg, var(--houat-ocean-deep) 0%, var(--houat-ocean) 50%, var(--houat-turquoise) 100%);
  --gradient-sunset: linear-gradient(135deg, var(--houat-coral) 0%, var(--houat-sunset) 100%);
  --gradient-sand: linear-gradient(180deg, var(--houat-sand-light) 0%, var(--houat-sand) 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(26, 74, 110, 0.15);
  --shadow-medium: 0 8px 30px rgba(26, 74, 110, 0.2);
  --shadow-strong: 0 15px 50px rgba(26, 74, 110, 0.25);
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&family=Caveat:wght@500;600;700&display=swap');

/* Base styles */
.nitch-theme {
  font-family: 'Poppins', sans-serif;
  background-color: var(--houat-sand-light);
  color: var(--houat-dark);
}

.nitch-theme h1, 
.nitch-theme h2, 
.nitch-theme h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Handwritten accent style */
.font-handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 600;
}

/* Navigation */
.navbar-nitch {
  background: var(--gradient-ocean);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
}

.navbar-nitch .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--houat-white);
}

.navbar-nitch .nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-nitch .nav-link:hover {
  color: var(--houat-white);
  background: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-nitch {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-ocean);
}

.hero-nitch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 74, 110, 0.3) 0%, rgba(26, 74, 110, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--houat-white);
  padding: 2rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-sunset);
  color: var(--houat-white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--houat-sunset-light);
  margin-bottom: 1rem;
}

.hero-date {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Poster Gallery */
.poster-section {
  padding: 5rem 0;
  background: var(--houat-sand-light);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--houat-ocean-deep);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--houat-coral);
  text-align: center;
  margin-bottom: 3rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.poster-card {
  background: var(--houat-white);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
  position: relative;
}

.poster-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow-strong);
}

.poster-card img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-year {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--gradient-sunset);
  color: var(--houat-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Info Cards */
.info-section {
  padding: 5rem 0;
  background: var(--gradient-ocean);
  position: relative;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23faf6f1'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--houat-white);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.info-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--houat-sunset-light);
}

.info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.info-card p {
  opacity: 0.9;
  line-height: 1.6;
}

/* Timeline */
.timeline-section {
  padding: 5rem 0;
  background: var(--houat-sand-light);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -2rem;
  width: 3px;
  background: var(--houat-turquoise);
}

.timeline-item:last-child::before {
  bottom: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 5px;
  width: 15px;
  height: 15px;
  background: var(--houat-coral);
  border-radius: 50%;
  border: 3px solid var(--houat-sand-light);
}

.timeline-item h4 {
  font-weight: 700;
  color: var(--houat-ocean-deep);
  margin-bottom: 0.5rem;
}

.timeline-item p {
  color: var(--houat-gray);
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-sunset);
  text-align: center;
  color: var(--houat-white);
  position: relative;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Buttons */
.btn-nitch-primary {
  background: var(--houat-white);
  color: var(--houat-ocean-deep);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.btn-nitch-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  background: var(--houat-sand-light);
  color: var(--houat-ocean-deep);
}

.btn-nitch-outline {
  background: transparent;
  color: var(--houat-white);
  border: 2px solid var(--houat-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-nitch-outline:hover {
  background: var(--houat-white);
  color: var(--houat-ocean-deep);
}

.btn-nitch-coral {
  background: var(--gradient-sunset);
  color: var(--houat-white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.btn-nitch-coral:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  filter: brightness(1.1);
}

/* Footer */
.footer-nitch {
  background: var(--houat-dark);
  color: var(--houat-white);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-nitch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%23f39c12'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.footer-nitch h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--houat-sunset-light);
}

.footer-nitch a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nitch a:hover {
  color: var(--houat-sunset-light);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--houat-coral);
  transform: translateY(-3px);
}

/* Alert customization */
.alert-nitch {
  background: rgba(247, 220, 111, 0.2);
  border: 2px solid var(--houat-sunset);
  border-radius: 1rem;
  color: var(--houat-dark);
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.alert-nitch i {
  color: var(--houat-sunset);
}

/* Documents cards */
.doc-card {
  background: var(--houat-white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border-left: 5px solid var(--houat-turquoise);
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.doc-card h4 {
  color: var(--houat-ocean-deep);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.doc-card p {
  color: var(--houat-gray);
  margin-bottom: 1.5rem;
}

/* Wave divider */
.wave-divider {
  height: 80px;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* Feature icons */
.feature-circle {
  width: 80px;
  height: 80px;
  background: var(--gradient-ocean);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--houat-white);
  box-shadow: var(--shadow-soft);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-nitch {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .poster-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .info-section::before,
  .footer-nitch::before {
    height: 40px;
  }
}

/* QR Code styling */
.qr-container-nitch {
  background: var(--houat-white);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  text-align: center;
}

.qr-container-nitch #qrcode {
  background: var(--houat-white);
  padding: 1rem;
  border-radius: 1rem;
  display: inline-block;
}

/* Mobile app promo */
.mobile-promo {
  background: var(--gradient-ocean);
  border-radius: 2rem;
  padding: 3rem;
  color: var(--houat-white);
  position: relative;
  overflow: hidden;
}

.mobile-promo::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

/* Illustration decorations */
.decoration-wave {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 25 0, 50 10 T 100 10' stroke='%2348c9b0' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  height: 20px;
  opacity: 0.5;
}
