/* ==========================================
   KAW MONEY DIGITAL - BRAND KIT & STYLES
   ========================================== */

/* === BRAND KIT === 
Palette:
  - Rose:             #ffbdd9
  - Jaune pâle:       #f3eab8
  - Jaune accent:     #f3eab8
  - Marron grisé:     #605c47
  - Blanc:            #ffffff
  - Gris très clair:  #f7f7f7
  - Gris border:      #f0f0f0

Typographies:
  - Titres:           Inter (700–900)
  - Boutons:          Poppins (600–700)
  - Corps:            Montserrat (400–500)
  - Accents:          Instrument Serif (italic)
*/

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --rose: #ffbdd9;
  --jaune-pale: #f3eab8;
  --jaune-accent: #f3eab8;
  --marron: #605c47;
  --blanc: #ffffff;
  --gris-clair: #f7f7f7;
  --gris-border: #f0f0f0;
  --easing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--marron);
  background: var(--blanc);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.35s var(--easing);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
}

.accent-text {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--marron);
  opacity: 0.9;
}

/* === BUTTONS === */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: all 0.35s var(--easing);
  letter-spacing: 0.02em;
  text-transform: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--jaune-pale));
  color: var(--marron);
  box-shadow: 0 8px 20px rgba(255, 189, 217, 0.3);
  animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(255, 189, 217, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 189, 217, 0.5);
  }
}

.btn-primary:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 189, 217, 0.45);
  animation: none;
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--marron);
  color: var(--marron);
  animation: btnSecondaryPulse 2.5s ease-in-out infinite;
}

@keyframes btnSecondaryPulse {
  0%, 100% {
    transform: scale(1);
    border-color: var(--marron);
  }
  50% {
    transform: scale(1.03);
    border-color: var(--rose);
    box-shadow: 0 4px 16px rgba(255, 189, 217, 0.3);
  }
}

.btn-secondary:hover {
  background: rgba(255, 189, 217, 0.2);
  border-color: var(--rose);
  transform: scale(1.05);
  animation: none;
}

/* Magnetic hover effect */
.btn-magnetic {
  transition: transform 0.2s ease-out;
}

/* === CONTAINER & LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--marron);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  background: #f7f7f7;
  transition: all 0.4s var(--easing);
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  background: transparent;
}

.logo-icon {
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jaune-accent);
  transition: width 0.35s var(--easing);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--marron);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 8rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gris-clair) 0%, var(--blanc) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-bottom {
  grid-column: 1;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text .subheadline {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: var(--marron);
  opacity: 0.85;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--jaune-accent);
  color: var(--marron);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.hero-images {
  position: relative;
  height: 600px;
  max-width: 500px;
  margin: 0 auto;
}

.hero-carousel {
  position: relative;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.hero-carousel {
  height: 100%;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 32px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s var(--easing);
  object-fit: cover;
}

.hero-carousel img.active {
  opacity: 1;
  position: relative;
}

/* === ABOUT === */
.about {
  background: var(--gris-clair);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  position: sticky;
  top: 120px;
}

.about-image img {
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.pillar-card {
  background: var(--blanc);
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--gris-border);
  text-align: center;
  transition: all 0.35s var(--easing);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.pillar-card h4 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.fun-facts {
  background: linear-gradient(135deg, var(--rose), var(--jaune-pale));
  padding: 2rem;
  border-radius: 24px;
  margin-top: 2rem;
}

.fun-facts h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.fun-facts ul {
  list-style: none;
}

.fun-facts li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.fun-facts li::before {
  content: '✨';
  position: absolute;
  left: 0;
}

/* === PORTAL === */
.portal {
  background: var(--blanc);
}

.portal-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.smart-router {
  background: var(--gris-clair);
  padding: 3rem;
  border-radius: 32px;
  text-align: center;
  margin-bottom: 4rem;
}

.smart-router h3 {
  margin-bottom: 2rem;
}

.router-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.router-btn {
  padding: 0.8rem 1.8rem;
  background: var(--blanc);
  border: 2px solid var(--gris-border);
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s var(--easing);
}

.router-btn:hover {
  border-color: var(--rose);
  background: rgba(255, 189, 217, 0.1);
  transform: translateY(-2px);
}

.router-btn.active {
  background: var(--jaune-accent);
  border-color: var(--jaune-accent);
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.portal-card {
  background: var(--blanc);
  border: 2px solid var(--gris-border);
  border-radius: 32px;
  overflow: hidden;
  transition: all 0.4s var(--easing);
  position: relative;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border-color: var(--rose);
}

.portal-card.recommended::before {
  content: 'Recommandé';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--jaune-accent);
  color: var(--marron);
  padding: 0.4rem 3rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portal-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.portal-image {
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose), var(--jaune-pale));
}

.portal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portal-body {
  padding: 2.5rem;
}

.portal-body h3 {
  margin-bottom: 1rem;
}

.portal-body p {
  margin-bottom: 1.5rem;
  color: var(--marron);
  opacity: 0.8;
}

.portal-features {
  list-style: none;
  margin-bottom: 2rem;
}

.portal-features li {
  padding: 0.6rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 0.95rem;
}

.portal-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 700;
  font-size: 1.2rem;
}

/* === OFFERS === */
.offers {
  background: var(--gris-clair);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--blanc);
  border: 2px solid var(--gris-border);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  transition: all 0.4s var(--easing);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
  border-color: var(--jaune-accent);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(241, 255, 175, 0.2);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-header .price {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: var(--marron);
  line-height: 1;
}

.pricing-header .price span {
  font-size: 1.2rem;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--gris-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose);
  font-weight: 700;
  font-size: 1.2rem;
}

.pricing-cta {
  width: 100%;
  margin-top: 2rem;
}

/* === TESTIMONIALS === */
.testimonials {
  background: var(--blanc);
}

.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  min-height: 400px;
  display: flex;
  align-items: center;
}

.testimonial-card {
  background: var(--gris-clair);
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.6s var(--easing);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonial-image {
  display: none;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--marron);
}

.testimonial-author {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial-result {
  color: var(--rose);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.stars {
  color: #f3eab8;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gris-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--rose);
  transform: scale(1.3);
}

/* === RESOURCES === */
.resources {
  background: var(--gris-clair);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.resource-card {
  background: var(--blanc);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--gris-border);
  transition: all 0.35s var(--easing);
  text-align: center;
}

.resource-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.resource-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.resource-card h4 {
  margin-bottom: 1rem;
}

.resource-card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* === CONTACT === */
.contact {
  background: linear-gradient(135deg, var(--rose) 0%, var(--jaune-pale) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s var(--easing);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.1);
}

.contact-image {
  position: relative;
  height: 600px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.contact-form {
  background: var(--blanc);
  padding: 3rem;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gris-border);
  border-radius: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s var(--easing);
  background: var(--gris-clair);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 189, 217, 0.2);
  background: var(--blanc);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
}

/* === FOOTER === */
.footer {
  background: var(--marron);
  color: var(--blanc);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--blanc);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--jaune-accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* === UTILITIES === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--easing);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero {
    padding-top: 12rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-text h1 {
    margin-top: 2rem;
  }
  
  .hero-text .subheadline {
    margin-bottom: 0.5rem;
  }
  
  .hero-images {
    height: 500px;
    max-width: 400px;
    order: 2;
    margin: 0.5rem auto 1.5rem;
  }
  
  .hero-bottom {
    order: 3;
  }
  
  .hero-badges {
    margin-bottom: 0;
  }
  
  .hero-carousel {
    height: 100%;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }
  
  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--blanc);
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    transition: left 0.4s var(--easing);
    z-index: 999;
  }
  
  .nav.active {
    left: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-cta {
    display: none;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  .pillars {
    grid-template-columns: 1fr;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-images {
    height: 450px;
    max-width: 100%;
  }
  
  .hero-carousel {
    height: 100%;
  }
  
  .router-buttons {
    flex-direction: column;
  }
  
  .router-btn {
    width: 100%;
  }
}