/* =============================================
   POLICES PERSONNALISÉES
============================================= */
@font-face {
  font-family: 'VALVE Oracle Medium';
  src: url('../polices/valveoracle-medium.ttf') format('truetype');
}
@font-face {
  font-family: 'VALVE Oracle SemiBold';
  src: url('../polices/valveoracle-semibold.ttf') format('truetype');
}
@font-face {
  font-family: 'VALVE Pulp';
  src: url('../polices/valvepulp-bold.ttf') format('truetype');
}

/* =============================================
   RACINE & VARIABLES
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #a5c8d9;       /* Cloud Dancer */
  --primary-dk: #6d94a8;       /* Cloud Dancer foncé */
  --primary-lt: #e8f1f5;       /* Cloud Dancer très clair */
  --accent:     #d4a853;       /* Or doux pour contraster */
  --text:       #2c3e50;
  --muted:      #6b8299;
  --bg:         #f4f7fa;
  --white:      #ffffff;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --nav-height: 120px;
  --font-main: 'VALVE Oracle SemiBold', sans-serif;
  --font-second: 'VALVE Pulp', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background-color: var(--primary-lt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23a5c8d9' fill-opacity='0.3' d='M0,192L48,197.3C96,203,192,213,288,208C384,203,480,181,576,186.7C672,192,768,224,864,234.7C960,245,1056,235,1152,213.3C1248,192,1344,160,1392,144L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  animation: waveMove 8s ease-in-out infinite alternate;
  color: var(--text);
  overflow-x: hidden;
}

@keyframes waveMove {
  0% { background-position: bottom left; }
  100% { background-position: bottom right; }
}

/* Déconnexion */
.deconnexion_php {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: #d1fae5;
  text-align: center;
  padding: 16px;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid #a7f3d0;
  animation: fadeOut 0.5s ease 3s forwards;
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}

/* =============================================
   BANNIERE
============================================= */
.banniere {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.contenu_banniere {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-second);
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-dk);
  letter-spacing: -0.5px;
}
.banniere ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banniere ul li a,
.banniere ul li span {
  font-family: var(--font-main);
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.banniere ul li a:hover,
.banniere ul li span:hover {
  background: var(--primary-lt);
  color: var(--primary-dk);
}

/* =============================================
   HERO CAROUSEL
============================================= */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  margin-top: var(--nav-height);
}
.slides-container {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.4,0,0.2,1);
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.slide-1 { background: linear-gradient(135deg, #6d94a8 0%, #a5c8d9 50%, #c5dae8 100%); }
.slide-2 { background: linear-gradient(135deg, #5a7d8c 0%, #8ab0c4 50%, #a5c8d9 100%); }
.slide-3 { background: linear-gradient(135deg, #4a6d7a 0%, #7a9db0 50%, #9bb8cc 100%); }

.slide-bg-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  opacity: 0.12;
  pointer-events: none;
}
.bg-product-card {
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transform: rotate(var(--rot));
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 600px;
  animation: slideIn 0.6s ease both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.slide-tag {
  display: inline-block;
  background: var(--accent);
  color: #3d2e00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.slide-content h1 {
  font-family: var(--font-second);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.slide-content p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-btn {
  display: inline-block;
  padding: 13px 32px;
  background: white;
  color: var(--primary-dk);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  border: none;
  text-decoration: none;
}
.cta-btn:hover { background: var(--primary-lt); transform: translateY(-2px); }
.cta-btn.outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  margin-left: 12px;
}
.cta-btn.outline:hover { background: rgba(255,255,255,0.1); }

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.slide-arrow:hover { background: rgba(255,255,255,0.3); transform: translateY(-50%) scale(1.05); }
.slide-arrow.left { left: 20px; }
.slide-arrow.right { right: 20px; }

.slide-dots {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active { background: white; width: 24px; border-radius: 4px; }
.slide-counter {
  position: absolute;
  bottom: 20px; right: 24px;
  color: rgba(255,255,255,0.5); font-size: 13px; z-index: 5;
}

/* =============================================
   BANDEAU AVANTAGES
============================================= */
.avantages {
  background: var(--primary);
  padding: 1rem 1.5rem;
}
.avantages-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.avantage-item {
  display: flex; align-items: center; gap: 10px; color: var(--text);
}
.avantage-icon { font-size: 20px; flex-shrink: 0; }
.avantage-text strong { display: block; font-size: 16px; font-weight: 600; }
.avantage-text span { font-size: 14px; opacity: 0.7; }

/* =============================================
   SECTIONS COMMUNES
============================================= */
.section-wrapper {
  max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem;
}
.section-header {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem;
}
.section-header h2 {
  font-family: var(--font-second); font-size: 1.5rem; font-weight: 700; color: var(--text);
}
.voir-tout {
  font-size: 18px; font-weight: 500; color: var(--primary-dk); cursor: pointer; text-decoration: none;
}
.voir-tout:hover { opacity: 0.7; }

/* Mini dashboard */
.mini-dashboard {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: var(--shadow);
}
.mini-dashboard h3 { font-family: var(--font-second); margin-bottom: 1rem; text-align: center; }
.solde-row {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}
.solde-item {
  background: var(--primary-lt); padding: 1rem 1.5rem; border-radius: var(--radius); text-align: center; min-width: 140px;
}
.solde-item .label { font-size: 0.8rem; color: var(--muted); }
.solde-item .montant { font-size: 2rem; font-weight: 700; color: var(--primary-dk); }
.btn-manage {
  display: inline-block; background: var(--primary); color: var(--text); padding: 0.8rem 2rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: background 0.2s;
}
.btn-manage:hover { background: var(--primary-dk); color: white; }

/* =============================================
   COMMENT ÇA MARCHE
============================================= */
.section-how {
  background: var(--primary-dk); padding: 3rem 1.5rem;
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-inner h2 {
  font-family: var(--font-second); font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 2rem; text-align: center;
}
.how-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.how-step { text-align: center; color: white; }
.how-step-num {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-second); font-size: 1.3rem; font-weight: 700; margin: 0 auto 1rem;
}
.how-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.how-step p { font-size: 13px; opacity: 0.65; line-height: 1.6; }

/* =============================================
   MODAL
============================================= */
.modal {
  display: none; position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.modal.visible { display: flex; }
.contenu_modal {
  background: white; border-radius: 16px; padding: 2rem; max-width: 400px; width: 90%;
  position: relative; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.fermer_modal {
  position: absolute; top: 14px; right: 18px; font-size: 22px; cursor: pointer;
  color: var(--muted); transition: color 0.2s; background: none; border: none;
}
.fermer_modal:hover { color: var(--text); }
.attention h2 { font-family: var(--font-second); font-size: 1.3rem; color: var(--primary-dk); margin-bottom: 0.75rem; }
.contenu_modal p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 1.5rem; }
.modal-btn {
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
  border: none; text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.modal-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.modal-btn.primary { background: var(--primary); color: var(--text); }
.modal-btn.secondary { background: var(--primary-lt); color: var(--primary-dk); }

/* =============================================
   FOOTER
============================================= */
footer {
  background: #111; color: rgba(255,255,255,0.6); text-align: center; padding: 1.5rem; font-size: 13px; margin-top: 3rem;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {}