/* ============================================================
   FRENCH BARAKA — enhance.css
   Nouvelles sections (accueil + contact + cagnotte) & animations avancées
   ============================================================ */

/* ---------- bouton CTA dans la nav ---------- */
.nav-cta { padding: 0.7em 1.3em; font-size: 0.85rem; }
@media (max-width: 900px) { .nav-cta { display: none; } }

/* ---------- Barre de progression au scroll ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gold-grad);
  z-index: 200; pointer-events: none;
  box-shadow: 0 0 12px rgba(201, 150, 47, 0.6);
  transition: width 0.12s linear;
}

/* ---------- Lueur qui suit le curseur (pointeurs fins) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 480px; height: 480px;
  margin: -240px 0 0 -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 150, 47, 0.10), transparent 65%);
  pointer-events: none; z-index: -1; opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow.on { opacity: 1; }
}

/* ---------- Boutons magnétiques ---------- */
.magnetic { will-change: transform; }

/* ---------- Particules flottantes (hero) ---------- */
.spark-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.spark {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-300); opacity: 0.5;
  box-shadow: 0 0 8px 1px rgba(220, 178, 89, 0.6);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(20px) scale(0.4); opacity: 0; }
  15% { opacity: 0.6; }
  85% { opacity: 0.5; }
  100% { transform: translateY(-120px) scale(1); opacity: 0; }
}

/* ---------- Ondes sonores (hero, autour du micro) ---------- */
.soundwave {
  position: absolute; bottom: -2%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: clamp(3px, 0.7vw, 6px);
  height: 64px; z-index: 0; opacity: 0.85; pointer-events: none;
}
.soundwave i {
  width: clamp(3px, 0.7vw, 5px); border-radius: 4px;
  background: var(--gold-grad);
  animation: swave 1.4s ease-in-out infinite;
  height: 30%;
}
@keyframes swave { 0%, 100% { height: 18%; opacity: 0.5; } 50% { height: 100%; opacity: 1; } }
@media (max-width: 860px) { .soundwave { height: 40px; } }

/* ============================================================
   PULL-QUOTE cinématographique
   ============================================================ */
.pullquote { position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 14vw, 180px); }
.pullquote .mark {
  font-family: var(--f-editorial); font-size: clamp(8rem, 20vw, 17rem);
  line-height: 0.7; color: transparent; -webkit-text-stroke: 1.4px rgba(228, 188, 100, 0.42);
  filter: drop-shadow(0 0 26px rgba(201, 150, 47, 0.18));
  display: block; height: 0.42em; pointer-events: none; user-select: none;
}
.pullquote blockquote {
  font-family: var(--f-editorial); font-weight: 500; font-style: italic;
  font-size: clamp(1.9rem, 4.6vw, 3.5rem); line-height: 1.2;
  max-width: 18ch; margin: 0 auto; text-wrap: balance;
}
.pullquote cite {
  display: block; margin-top: 2em; font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-300); font-family: var(--f-body); font-weight: 600;
}
[lang="ar"] .pullquote blockquote { font-family: var(--f-ar); font-style: normal; line-height: 1.5; }

/* ============================================================
   UNIVERS / THÈMES
   ============================================================ */
.themes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  perspective: 1200px;
}
.theme-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  padding: clamp(28px, 3vw, 40px);
  min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.3s var(--ease);
  transform-style: preserve-3d; will-change: transform;
}
.theme-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(120% 80% at var(--mx, 50%) var(--my, 0%), rgba(201,150,47,0.18), transparent 60%);
}
.theme-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow-gold); }
.theme-card:hover::before { opacity: 1; }
.theme-num {
  position: absolute; top: clamp(20px, 2.5vw, 30px); inset-inline-start: clamp(28px, 3vw, 40px);
  font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.24em; color: var(--gold-400);
  transform: translateZ(40px);
}
.theme-ic {
  position: absolute; top: clamp(16px, 2vw, 26px); inset-inline-end: clamp(24px, 3vw, 36px);
  width: 30px; height: 30px; color: var(--gold-300); opacity: 0.85;
  transform: translateZ(30px); transition: transform 0.5s var(--ease);
}
.theme-card:hover .theme-ic { transform: translateZ(50px) scale(1.12) rotate(-6deg); }
.theme-ic svg { width: 100%; height: 100%; }
.theme-card h3 {
  font-family: var(--f-editorial); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08; transform: translateZ(28px);
}
.theme-card p { color: var(--ink-soft); font-size: 0.96rem; margin-top: 0.5em; transform: translateZ(16px); max-width: 32ch; }
@media (max-width: 920px) { .themes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .themes-grid { grid-template-columns: 1fr; } .theme-card { min-height: 180px; } }

/* ============================================================
   APPROCHE / PROCESS — ligne qui se dessine
   ============================================================ */
.process { position: relative; }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 34px); position: relative; }
.proc-line {
  position: absolute; top: 27px; inset-inline-start: 0; height: 1px; width: 100%;
  background: var(--line-soft); overflow: hidden;
}
.proc-line::after {
  content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: var(--gold-grad-soft); transition: transform 1.6s var(--ease);
}
[dir="rtl"] .proc-line::after { transform-origin: right; }
.process.in .proc-line::after { transform: scaleX(1); }
.proc-step { position: relative; }
.proc-dot {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-850); border: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 700; color: var(--gold-200); font-size: 1.05rem;
  position: relative; z-index: 1; transition: background 0.5s, color 0.5s, transform 0.5s var(--ease);
}
.proc-step:hover .proc-dot { background: var(--gold-grad); color: var(--navy-950); transform: scale(1.08); }
.proc-step h3 { font-family: var(--f-editorial); font-weight: 600; font-size: 1.4rem; margin-top: 22px; }
.proc-step p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.45em; max-width: 26ch; }
@media (max-width: 860px) {
  .proc-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .proc-line { display: none; }
}
@media (max-width: 480px) { .proc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   COMPTEUR cagnotte (sans objectif)
   ============================================================ */
.counter-card {
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 28px);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  backdrop-filter: blur(8px);
  padding: clamp(30px, 4vw, 44px);
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
.counter-card::before {
  content: ""; position: absolute; top: -45%; inset-inline-end: -25%; width: 65%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,150,47,0.22), transparent 65%); pointer-events: none;
}
.cc-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink-soft);
  border: 1px solid var(--line-soft); border-radius: 100px; padding: 7px 14px;
  background: rgba(0,0,0,0.15);
}
.cc-badge .live { width: 9px; height: 9px; border-radius: 50%; background: #46c98a; box-shadow: 0 0 0 0 rgba(70,201,138,0.6); animation: live 2s var(--ease) infinite; flex: none; }
.cc-stats { display: flex; align-items: stretch; gap: clamp(20px, 4vw, 40px); margin: 28px 0 6px; }
.cc-stat { display: flex; flex-direction: column; gap: 6px; }
.cc-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.95; display: flex; align-items: baseline; gap: 4px; }
.cc-num .cc-cur { font-size: 0.5em; color: var(--gold-300); }
.cc-stat .cc-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }
.cc-div { width: 1px; background: var(--line-soft); align-self: stretch; }
.cc-tagline { font-family: var(--f-editorial); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); margin-top: 18px; }
.cc-tagline em { color: var(--gold-200); font-style: italic; }
.counter-card .btn { width: 100%; justify-content: center; margin-top: 24px; }
.cc-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 0.8rem; color: var(--ink-dim); justify-content: center; }
.cc-trust span { display: inline-flex; align-items: center; gap: 6px; }
.cc-trust span::before { content: "✦"; color: var(--gold-500); font-size: 0.7em; }
[lang="ar"] .cc-tagline { font-family: var(--f-ar); font-style: normal; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-hero { padding-top: 150px; padding-bottom: clamp(30px, 5vw, 60px); position: relative; }
.contact-hero h1 {
  font-family: var(--f-editorial); font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.0; letter-spacing: -0.015em;
  margin: 0.35em 0 0.4em; text-wrap: balance;
}
.contact-hero .hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 50ch; }

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* méthodes */
.methods { display: flex; flex-direction: column; gap: 14px; }
.method {
  display: flex; gap: 18px; align-items: flex-start; width: 100%; text-align: start; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px 24px; background: var(--surface);
  transition: border-color 0.45s, transform 0.45s var(--ease), background 0.45s;
}
.method:hover { border-color: var(--gold-400); transform: translateX(6px); background: var(--surface-2); }
[dir="rtl"] .method:hover { transform: translateX(-6px); }
.method-ic { width: 58px; height: 58px; flex: none; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(201,150,47,0.18), rgba(201,150,47,0.03)); color: var(--gold-300);
  transition: transform 0.45s var(--ease), border-color 0.45s, background 0.45s; }
.method:hover .method-ic { transform: scale(1.06); border-color: var(--gold-400); background: linear-gradient(160deg, rgba(201,150,47,0.3), rgba(201,150,47,0.06)); }
.method-ic svg { width: 28px; height: 28px; }
.method h3 { font-family: var(--f-editorial); font-weight: 600; font-size: 1.3rem; }
.method p { color: var(--ink-soft); font-size: 0.94rem; margin-top: 2px; }
.method .method-link { color: var(--gold-200); font-weight: 600; font-size: 0.95rem; margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; }
.method:hover .method-link { color: var(--gold-100); }

/* formulaire */
.contact-form {
  border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 26px);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: clamp(28px, 4vw, 42px);
}
.contact-form h2 { font-family: var(--f-editorial); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 6px; }
.contact-form .form-sub { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 26px; }
.field { position: relative; margin-bottom: 20px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); font-weight: 600; margin-bottom: 9px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line-soft); background: rgba(0,0,0,0.2);
  color: var(--ink); font-family: var(--f-body); font-size: 1rem; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
.field textarea { min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-dim); }
.field input:focus, .field textarea:focus { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(201,150,47,0.12); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--ink-dim); text-align: center; margin-top: 16px; }
.form-ok {
  display: none; align-items: center; gap: 10px; margin-top: 18px;
  padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(70,201,138,0.4);
  background: rgba(70,201,138,0.1); color: #8fe3b8; font-size: 0.95rem;
}
.form-ok.show { display: flex; }
@media (max-width: 480px) { .field.row2 { grid-template-columns: 1fr; } }

/* grand bloc réseaux (contact + footer) */
.social-strip { border-top: 1px solid var(--line-soft); margin-top: 10px; }
.social-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.social-tile {
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 26px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  color: var(--gold-200); background: var(--surface);
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
  position: relative; overflow: hidden;
}
.social-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.8s var(--ease);
}
.social-tile span { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--ink-soft); transition: color 0.4s; font-weight: 500; }
.social-tile svg {
  width: 56px; height: 56px; padding: 15px; box-sizing: border-box; border-radius: 50%;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(201,150,47,0.16), rgba(201,150,47,0.02));
  transition: transform 0.55s var(--ease), color 0.4s, border-color 0.4s, background 0.4s;
}
.social-tile:hover {
  border-color: var(--gold-400);
  background: linear-gradient(160deg, rgba(201,150,47,0.18), rgba(201,150,47,0.03));
  transform: translateY(-6px); box-shadow: var(--shadow-gold);
}
.social-tile:hover svg { transform: scale(1.08) translateY(-2px); border-color: var(--gold-400); background: linear-gradient(160deg, rgba(201,150,47,0.3), rgba(201,150,47,0.06)); color: var(--gold-100); }
.social-tile:hover::after { transform: translateX(130%); }
.social-tile:hover span { color: var(--gold-100); }
.social-tile:hover svg { transform: scale(1.14) translateY(-3px); color: var(--gold-100); }
@media (max-width: 820px) { .social-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .social-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- reveal supplémentaires ---------- */
.js [data-reveal="rise"] { transform: translateY(72px) scale(0.985); }
.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .spark, .soundwave i, .cc-badge .live { animation: none; }
  .js .reveal-stagger > * { opacity: 1; transform: none; }
  .proc-line::after { transition: none; transform: scaleX(1); }
}

/* ============================================================
   SCROLL-WORD ILLUMINATION (effet « wow » au défilement)
   ============================================================ */
.js [data-scroll-words] .sw {
  opacity: 0.16;
  transition: opacity 0.5s var(--ease), color 0.5s var(--ease);
  will-change: opacity;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-scroll-words] .sw { opacity: 1 !important; }
}

/* ============================================================
   ORNEMENT pull-quote (remplit l'espace, anime au scroll)
   ============================================================ */
.pullquote { padding-block: clamp(80px, 11vw, 150px); }
.pq-orn {
  position: absolute; top: 50%; left: 50%;
  width: min(58vw, 640px); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0; opacity: 0.5;
}
.pq-orn::before, .pq-orn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(220, 178, 89, 0.14);
}
.pq-orn::before { animation: spin 48s linear infinite; border-style: dashed; }
.pq-orn::after { inset: 14%; border-color: rgba(220, 178, 89, 0.09); animation: spin 70s linear infinite reverse; }
.pullquote .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .pq-orn::before, .pq-orn::after { animation: none; } }

/* ============================================================
   GROUPES RÉSEAUX (page contact)
   ============================================================ */
.social-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.social-groups { display: flex; flex-direction: column; gap: clamp(34px, 5vw, 56px); }
.sg-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.sg-head h3 {
  font-family: var(--f-display); font-size: 0.82rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-300); white-space: nowrap; font-weight: 600;
}
[lang="ar"] .sg-head h3 { font-family: var(--f-ar-body); letter-spacing: 0; }
.sg-head .sg-line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--line), transparent); }
[dir="rtl"] .sg-head .sg-line { background: linear-gradient(270deg, var(--line), transparent); }
.starfield { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; will-change: transform; }
.starfield .star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle linear infinite; opacity: 0.2;
}
.starfield .star.gold { background: var(--gold-300); box-shadow: 0 0 6px 1px rgba(220,178,89,0.5); }
@keyframes twinkle { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .starfield .star { animation: none; opacity: 0.3; } }

/* ============================================================
   ULULE CTA (remplace le sélecteur de montant)
   ============================================================ */
.ulule-cta {
  margin-top: 44px;
  border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 28px);
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(201,150,47,0.16), transparent 55%),
    linear-gradient(150deg, var(--navy-800), var(--navy-950));
  padding: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.ulule-cta::before {
  content: ""; position: absolute; bottom: -50%; inset-inline-start: -10%; width: 45%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201,150,47,0.14), transparent 65%); pointer-events: none;
}
.ulule-cta .uc-copy { position: relative; max-width: 52ch; }
.ulule-cta h3 { font-family: var(--f-editorial); font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; }
.ulule-cta p { color: var(--ink-soft); margin-top: 0.6em; }
.ulule-cta .btn { white-space: nowrap; position: relative; }
@media (max-width: 680px) {
  .ulule-cta { flex-direction: column; align-items: flex-start; }
  .ulule-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Éclaircissement doux du texte or (sans balayage qui revient) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .gold-text { animation: goldShine 5s ease-in-out infinite; }
}
@keyframes goldShine { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.16); } }
