/* =================================================================
   CHLOÉEFX — Design Enhancements
   Correction responsive globale + élévation design sur toutes pages
   ================================================================= */

/* ── Variables globales ─────────────────────────────────────────── */
:root {
  --cfx-pink:      #ffc5e2;
  --cfx-pink-glow: rgba(255, 197, 226, 0.18);
  --cfx-pink-dim:  rgba(255, 197, 226, 0.08);
  --cfx-black:     #0D0D0D;
  --cfx-surface:   #1A1A1A;
  --cfx-ease:      cubic-bezier(.25, .46, .45, .94);
}

/* ── Sélection de texte ─────────────────────────────────────────── */
::selection { background: rgba(255, 197, 226, .22); color: #fff; }

/* ── Scrollbar personnalisée ────────────────────────────────────── */
::-webkit-scrollbar              { width: 4px; height: 4px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(255, 197, 226, .3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(255, 197, 226, .55); }
*                                 { scrollbar-width: thin; scrollbar-color: rgba(255, 197, 226, .3) transparent; }

/* ── Texture grain overlay ──────────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .026; mix-blend-mode: screen;
}

/* ── Orbes d'ambiance animés ────────────────────────────────────── */
@keyframes cfx-orb { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(.95); } }

body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(255,197,226,.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(255,197,226,.035) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 10%, rgba(180,130,200,.03) 0%, transparent 50%);
  animation: cfx-orb 18s ease-in-out infinite;
}

/* ── Entrée de page ─────────────────────────────────────────────── */
@keyframes cfx-page-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
main, .container, #content-wrapper, section:first-of-type {
  animation: cfx-page-in .5s var(--cfx-ease) both;
}

/* ── Scroll-reveal ──────────────────────────────────────────────── */
.cfx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--cfx-ease), transform .7s var(--cfx-ease);
}
.cfx-reveal.cfx-visible { opacity: 1; transform: translateY(0); }
.cfx-reveal-delay-1 { transition-delay: .12s; }
.cfx-reveal-delay-2 { transition-delay: .24s; }
.cfx-reveal-delay-3 { transition-delay: .36s; }

/* ══════════════════════════════════════════════════════════════════
   NAV — corrections responsives globales
   ══════════════════════════════════════════════════════════════════ */

nav {
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  transition: padding .3s var(--cfx-ease), background .3s ease !important;
}

/* -- Mobile : masquer breadcrumb, compacter header-right -- */
@media (max-width: 1024px) {
  .breadcrumb { display: none !important; }
  .header-right { gap: .5rem !important; }
  .user-name   { display: none !important; }
  nav          { padding: .7rem 1rem .7rem 3.8rem !important; gap: .5rem !important; }
  .logo        { font-size: 1.5rem !important; letter-spacing: 2px !important; }
}

@media (max-width: 640px) {
  .logo        { font-size: 1.25rem !important; }
  nav          { padding: .65rem .9rem .65rem 3.5rem !important; }
  .user-avatar { width: 30px !important; height: 30px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   CONTAINERS — padding mobile
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}
@media (max-width: 480px) {
  .container { padding: 2rem 1rem !important; }
  h1         { font-size: clamp(1.6rem, 7vw, 2.2rem) !important; }
}

/* ══════════════════════════════════════════════════════════════════
   SECTION ROWS — 2 colonnes → 1 colonne
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .section-row     { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .section-image   { height: 280px !important; }
}
@media (max-width: 600px) {
  .section-row     { gap: 1.5rem !important; }
  .section-content h2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .section-content p  { font-size: .95rem !important; }
  .section-image      { height: 220px !important; }
}

/* ══════════════════════════════════════════════════════════════════
   GRIDS — auto-fill → 1 col sur mobile
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .products-grid,
  .features-grid,
  .partners-grid,
  .plans-grid,
  .benefits-grid,
  .giveaway-grid  { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════════
   CARTES PRODUITS (abonnements / produits)
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .product-header       { padding: 1.25rem 1.25rem .75rem !important; }
  .product-title        { font-size: 1.3rem !important; }
  .product-features     { padding: 0 1.25rem !important; }
  .product-footer       { padding: 0 1.25rem 1.25rem !important; }
  .product-price        { font-size: 1.8rem !important; }
  .product-price-section{ padding: .75rem !important; }
  .product-features li  { font-size: .85rem !important; }
  .add-to-cart-btn      { padding: .75rem !important; font-size: .85rem !important; }
}

/* ══════════════════════════════════════════════════════════════════
   MODALS — pleine largeur sur mobile
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .modal-content {
    padding: 1.5rem !important;
    width: calc(100vw - 1.5rem) !important;
    max-width: 100% !important;
    border-radius: 12px !important;
    margin: .75rem !important;
  }
  .modal-title      { font-size: 1.4rem !important; }
  .cart-items       { max-height: 38vh; overflow-y: auto; }
}

/* ══════════════════════════════════════════════════════════════════
   HERO — mobile
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero              { padding: 5rem 1.5rem 6rem !important; }
  .hero-title        { font-size: clamp(2.2rem, 8vw, 3.5rem) !important; }
  .hero-description  { font-size: 1rem !important; }
  .hero-subtitle     { font-size: .9rem !important; }
}
@media (max-width: 480px) {
  .hero              { padding: 3.5rem 1rem 4.5rem !important; }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER — mobile
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  footer          { padding: 2rem 1.25rem !important; }
  .footer-links   { gap: 1rem !important; flex-wrap: wrap !important; justify-content: center !important; }
  .footer-links a { font-size: .85rem !important; }
}

/* ══════════════════════════════════════════════════════════════════
   DESIGN ELEVATION — effets visuels
   ══════════════════════════════════════════════════════════════════ */

/* ── Logo hover ── */
.logo {
  transition: letter-spacing .35s var(--cfx-ease), filter .3s ease !important;
  will-change: letter-spacing;
}
.logo:hover {
  letter-spacing: 5px !important;
  filter: drop-shadow(0 0 12px rgba(255,197,226,.5)) !important;
}

/* ── Boutons — shimmer au hover ── */
.btn,
.add-to-cart-btn,
.checkout-btn {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.btn::before,
.add-to-cart-btn::before,
.checkout-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.2) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .6s ease;
  pointer-events: none; z-index: 1;
}
.btn:hover::before,
.add-to-cart-btn:hover:not(:disabled)::before,
.checkout-btn:hover::before { transform: translateX(110%); }

/* ── Cartes — hover élévation + lueur rose ── */
.product-card,
.plan-card,
.feature-card,
.partner-card,
.produit-card,
.download-card,
.session-card,
.member-card,
.benefit-card,
.step-card {
  transition:
    transform .3s var(--cfx-ease),
    box-shadow .3s ease,
    border-color .3s ease !important;
  will-change: transform;
}
.product-card:hover,
.plan-card:hover,
.feature-card:hover,
.partner-card:hover,
.produit-card:hover,
.download-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: 0 20px 56px rgba(255,197,226,.1), 0 6px 20px rgba(0,0,0,.45) !important;
  border-color: rgba(255,197,226,.38) !important;
}

/* ── Section h2 — trait décoratif ── */
.section-content h2::after,
.section-title-main::after,
.section-header h2::after {
  content: '';
  display: block;
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--cfx-pink), transparent);
  margin-top: 12px;
  border-radius: 2px;
}

/* ── Nav links — glow subtil ── */
.nav-center a {
  position: relative;
}
.nav-center a::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 1px;
  background: radial-gradient(ellipse, rgba(255,197,226,.9), transparent);
  transition: width .4s ease;
}
.nav-center a:hover::after { width: 100%; }

/* ── Hero — glow en bas ── */
.hero { position: relative; }
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 120px;
  background: radial-gradient(ellipse, rgba(255,197,226,.055) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── Cartes glassmorphism léger ── */
.product-card,
.plan-card,
.partner-card {
  background: linear-gradient(145deg, rgba(255,255,255,.035) 0%, transparent 55%),
              var(--bg-card, #1a1a1a) !important;
}

/* ── Images fluides ── */
img { transition: opacity .4s ease, transform .4s var(--cfx-ease); }

/* ── Inputs focus ring ── */
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255,197,226,.14), 0 0 0 1px rgba(255,197,226,.5) !important;
}

/* ── Footer séparateur ── */
footer { position: relative; }
footer::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,197,226,.18), transparent);
}

/* ── Traits horizontaux décoratifs ── */
.divider-line,
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,197,226,.15), transparent);
  margin: 2rem 0;
}

/* ── Mobile menu raffiné ── */
.mobile-menu {
  box-shadow: 4px 0 40px rgba(0,0,0,.7), 0 0 80px rgba(255,197,226,.05) !important;
}

/* ── Badges et pills ── */
.badge,
.tag,
.product-badge {
  letter-spacing: .5px;
}

/* ── Réduit le mouvement si demandé ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  body::before { animation: none !important; }
}
