/* ═══════════════════════════════════════════════
   NOÉ RAUSIS — SHARED STYLESHEET
   ═══════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────── */
:root {
  --red:        #E8192C;
  --red-dark:   #c0101f;
  --red-glow:   rgba(232,25,44,.22);
  --bg:         #080808;
  --bg2:        #0e0e0e;
  --bg3:        #141414;
  --bg4:        #1c1c1c;
  --white:      #F5F5F5;
  --grey:       #999;
  --grey2:      #444;
  --border:     rgba(255,255,255,.06);
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --ease:       cubic-bezier(.16,1,.3,1);
}

/* ─── ACCESSIBILITÉ ─────────────────────────── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

/* ─── RESET ─────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html  { scroll-behavior:smooth; font-size:16px; }
body  { background:var(--bg); color:var(--white); font-family:var(--font-body); overflow-x:hidden; cursor:none; animation:pageIn .45s var(--ease); }
a     { text-decoration:none; color:inherit; cursor:none; }
button { cursor:none; font-family:var(--font-body); }
img   { display:block; max-width:100%; }
ul    { list-style:none; }

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

/* ─── NOISE GRAIN ───────────────────────────── */
.noise {
  position:fixed; inset:0; z-index:99997; pointer-events:none;
  opacity:.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat:repeat; background-size:180px 180px;
}

/* ─── CURSOR ────────────────────────────────── */
#cur {
  position:fixed; width:10px; height:10px; background:var(--red);
  border-radius:50%; pointer-events:none; z-index:9999;
  transform:translate(-50%,-50%);
  transition:width .3s, height .3s, background .3s;
  will-change:left,top;
}
#cur-ring {
  position:fixed; width:42px; height:42px;
  border:1px solid rgba(232,25,44,.4); border-radius:50%;
  pointer-events:none; z-index:9998; transform:translate(-50%,-50%);
  transition:width .4s, height .4s, border-color .4s;
  will-change:left,top;
}
body.ch #cur      { width:54px; height:54px; background:rgba(232,25,44,.12); border:1px solid var(--red); }
body.ch #cur-ring { width:72px; height:72px; border-color:rgba(232,25,44,.15); }

/* ─── SCROLL PROGRESS ───────────────────────── */
#scroll-prog {
  position:fixed; top:0; left:0; height:2px; width:0%;
  background:var(--red); z-index:10000; transition:width .1s linear;
}

/* ─── LOADER ────────────────────────────────── */
#loader {
  position:fixed; inset:0; z-index:99999; background:var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
  transition:opacity .25s ease, visibility .25s ease;
}
#loader.off { opacity:0; visibility:hidden; }
.ld-name  { font-family:var(--font-head); font-size:clamp(28px,5vw,72px); font-weight:700; letter-spacing:-2px; }
.ld-name span { color:var(--red); }
.ld-bar-wrap { width:min(280px,55vw); height:1px; background:var(--grey2); overflow:hidden; }
.ld-bar  { height:100%; width:0%; background:var(--red); transition:width .05s linear; }
.ld-pct  { font-size:11px; color:var(--grey); letter-spacing:3px; font-weight:300; }

/* ─── NAVBAR ────────────────────────────────── */
#nav {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  padding:26px 56px; display:flex; align-items:center; justify-content:space-between;
  transition:padding .4s var(--ease), background .4s, border-color .4s;
  border-bottom:1px solid transparent;
}
#nav.solid {
  padding:14px 56px;
  background:rgba(8,8,8,.88); backdrop-filter:blur(24px);
  border-color:var(--border);
}
.nav-logo {
  font-family:var(--font-head); font-weight:700; font-size:18px; letter-spacing:-.5px;
  display:flex; align-items:center; gap:8px;
}
.nav-logo-dot { width:7px; height:7px; background:var(--red); border-radius:50%; flex-shrink:0; }
.nav-links { display:flex; align-items:center; gap:34px; }
.nav-links a {
  font-size:13px; color:var(--grey); font-weight:400; letter-spacing:.2px;
  position:relative; transition:color .3s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:1px;
  background:var(--red); transition:width .3s;
}
.nav-links a:hover, .nav-links a.active { color:var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

/* ─── BUTTONS ───────────────────────────────── */
.btn-red {
  background:var(--red); color:var(--white);
  padding:13px 30px; border-radius:100px; border:none;
  font-size:13px; font-weight:600; letter-spacing:.2px;
  display:inline-flex; align-items:center; gap:8px;
  transition:background .3s, transform .3s, box-shadow .3s;
}
.btn-red:hover { background:#ff2d41; transform:translateY(-2px) scale(1.04); box-shadow:0 16px 40px var(--red-glow); }

.btn-ghost {
  background:transparent; color:var(--white);
  padding:13px 30px; border-radius:100px;
  border:1px solid var(--grey2); font-size:13px; font-weight:500;
  display:inline-flex; align-items:center; gap:8px;
  transition:border-color .3s, background .3s, transform .3s;
}
.btn-ghost:hover { border-color:rgba(255,255,255,.35); background:rgba(255,255,255,.04); transform:translateY(-2px) scale(1.04); }

.btn-sm { padding:9px 20px; font-size:12px; }

/* ─── MARQUEE ───────────────────────────────── */
.marquee-wrap { overflow:hidden; background:var(--bg2); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:16px 0; }
.marquee-track { display:flex; gap:52px; width:max-content; animation:mscroll 22s linear infinite; }
.marquee-track:hover { animation-play-state:paused; }
.marquee-item { display:flex; align-items:center; gap:16px; white-space:nowrap; font-family:var(--font-head); font-size:12px; font-weight:500; color:var(--grey); letter-spacing:2px; text-transform:uppercase; }
.m-dot { width:5px; height:5px; background:var(--red); border-radius:50%; flex-shrink:0; }
@keyframes mscroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ─── LAYOUT UTILITIES ──────────────────────── */
.wrap   { max-width:1380px; margin:0 auto; padding:0 56px; }
.sec    { padding:120px 56px; max-width:1380px; margin:0 auto; }
.sec-fb { padding:120px 56px; }
.sec-fb > .wrap { max-width:1380px; margin:0 auto; }

/* ─── TYPOGRAPHY ────────────────────────────── */
.label {
  display:flex; align-items:center; gap:12px;
  font-size:11px; font-weight:600; color:var(--red); letter-spacing:3px; text-transform:uppercase; margin-bottom:18px;
}
.label::before { content:''; width:26px; height:1px; background:var(--red); flex-shrink:0; }
.label.center { justify-content:center; }
.label.center::before { display:none; }

.big-title {
  font-family:var(--font-head); font-size:clamp(36px,5.5vw,76px);
  font-weight:700; line-height:1.02; letter-spacing:-2.5px;
}
.red  { color:var(--red); }
.grey { color:var(--grey); }

/* ─── REVEAL ANIMATIONS ─────────────────────── */
.rv { opacity:0; transform:translateY(38px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.rv.on { opacity:1; transform:translateY(0); }
.d1 { transition-delay:.1s; } .d2 { transition-delay:.2s; }
.d3 { transition-delay:.3s; } .d4 { transition-delay:.4s; }
.d5 { transition-delay:.5s; }

/* ─── PAGE HERO (sub-pages) ─────────────────── */
.page-hero {
  padding: 180px 56px 100px;
  background:var(--bg2);
  border-bottom:1px solid var(--border);
  position:relative;
  overflow:hidden;
}
.page-hero::before {
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 20% 50%, rgba(232,25,44,.07) 0%, transparent 60%);
  pointer-events:none;
}
.page-hero-inner { max-width:1380px; margin:0 auto; }
.page-hero h1 { font-family:var(--font-head); font-size:clamp(52px,8vw,110px); font-weight:700; letter-spacing:-4px; line-height:.95; margin:20px 0 28px; }
.page-hero p  { color:var(--grey); font-size:clamp(15px,1.8vw,18px); font-weight:300; max-width:520px; line-height:1.75; }

/* ─── ARTICLE CARDS ─────────────────────────── */
.art-card {
  background:var(--bg3); border-radius:14px; overflow:hidden;
  border:1px solid var(--border);
  transition:transform .4s var(--ease), border-color .4s, box-shadow .4s;
  display:flex; flex-direction:column;
}
.art-card:hover { transform:translateY(-10px); border-color:rgba(232,25,44,.22); box-shadow:0 32px 80px rgba(0,0,0,.55); }

.art-thumb {
  aspect-ratio:16/9; background:var(--bg2);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.art-thumb-bg {
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(232,25,44,.08) 0%, transparent 60%);
}
.art-thumb-emoji { font-size:60px; opacity:.22; user-select:none; transition:opacity .4s; position:relative; z-index:1; }
.art-card:hover .art-thumb-emoji { opacity:.38; animation:emojiPop .55s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes emojiPop { 0%{transform:scale(1);} 40%{transform:scale(1.14) rotate(12deg);} 70%{transform:scale(1.06) rotate(-5deg);} 100%{transform:scale(1.08) rotate(0);} }

.art-cat {
  position:absolute; top:14px; left:14px; z-index:2;
  background:var(--red); color:#fff;
  font-size:10px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  padding:5px 13px; border-radius:100px;
}

.art-body  { padding:26px 26px 18px; flex:1; display:flex; flex-direction:column; }
.art-meta  { font-size:11px; color:var(--grey); margin-bottom:12px; display:flex; gap:14px; }
.art-title { font-family:var(--font-head); font-size:18px; font-weight:600; line-height:1.33; letter-spacing:-.3px; margin-bottom:12px; }
.art-excerpt { font-size:13px; color:var(--grey); line-height:1.72; font-weight:300; flex:1; }

.art-footer { padding:15px 26px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.art-link { font-size:12px; color:var(--red); font-weight:600; display:flex; align-items:center; gap:6px; transition:gap .3s; }
.art-link svg { width:13px; height:13px; stroke:var(--red); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.art-card:hover .art-link { gap:10px; }

/* ─── FORM STYLES ───────────────────────────── */
.cform { display:flex; flex-direction:column; gap:13px; }
.cform-row { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.fg { display:flex; flex-direction:column; gap:7px; }
.fg label { font-size:11px; color:var(--grey); font-weight:600; letter-spacing:1px; text-transform:uppercase; }
.fg input, .fg select, .fg textarea {
  background:rgba(255,255,255,.03); border:1px solid var(--border);
  border-radius:8px; padding:13px 17px;
  color:var(--white); font-family:var(--font-body); font-size:14px; font-weight:400;
  outline:none; transition:border-color .3s, background .3s, box-shadow .3s; cursor:none;
}
.fg input::placeholder, .fg textarea::placeholder { color:var(--grey2); }
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color:rgba(232,25,44,.45);
  background:rgba(232,25,44,.03);
  box-shadow:0 0 0 3px rgba(232,25,44,.07);
}
.fg textarea { min-height:130px; resize:vertical; }
.fg select { appearance:none; cursor:none; }

.btn-send {
  background:var(--red); color:var(--white); border:none;
  padding:16px 32px; border-radius:100px; font-size:14px; font-weight:600;
  width:100%; margin-top:6px; display:flex; align-items:center; justify-content:center; gap:8px;
  transition:background .3s, transform .3s, box-shadow .3s;
}
.btn-send:hover { background:#ff2d41; transform:translateY(-2px); box-shadow:0 16px 48px var(--red-glow); }
.btn-send svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* ─── TAGS ──────────────────────────────────── */
.tags { display:flex; flex-wrap:wrap; gap:9px; }
.tag {
  padding:7px 16px; border-radius:100px; font-size:12px; font-weight:500;
  border:1px solid var(--border); color:var(--grey);
  transition:border-color .3s, color .3s, background .3s;
}
.tag:hover, .tag.hot { background:rgba(232,25,44,.08); border-color:rgba(232,25,44,.3); color:var(--red); }

/* ─── STATS BAR ─────────────────────────────── */
.stats-bar { background:var(--red); padding:72px 56px; }
.stats-bar-inner { max-width:1380px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); }
.stats-bar-inner.stats-3 { grid-template-columns:repeat(3,1fr); }
.stat { padding:28px 40px; border-right:1px solid rgba(255,255,255,.18); text-align:center; }
.stat:last-child { border-right:none; }
.stat-n { font-family:var(--font-head); font-size:clamp(44px,5.5vw,72px); font-weight:700; letter-spacing:-3px; line-height:1; color:#fff; display:block; }
.stat-l { display:block; font-size:11px; color:rgba(255,255,255,.65); letter-spacing:2px; text-transform:uppercase; font-weight:400; margin-top:12px; }

/* ─── FOOTER ────────────────────────────────── */
footer {
  padding:36px 56px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center;
  background:var(--bg);
}
.footer-logo { font-family:var(--font-head); font-size:17px; font-weight:700; letter-spacing:-.4px; display:flex; align-items:center; gap:8px; }
.footer-logo-dot { width:6px; height:6px; background:var(--red); border-radius:50%; }
.footer-copy { font-size:12px; color:var(--grey); }
.footer-links { display:flex; gap:26px; }
.footer-links a { font-size:12px; color:var(--grey); transition:color .3s; }
.footer-links a:hover { color:var(--white); }
.footer-rss { display:flex; align-items:center; gap:5px; }
.footer-rss svg { width:11px; height:11px; fill:currentColor; flex-shrink:0; }

/* ─── SOCIAL LINKS ──────────────────────────── */
.social-row { display:flex; gap:10px; }
.soc-btn {
  width:46px; height:46px; background:var(--bg3); border:1px solid var(--border);
  border-radius:10px; display:flex; align-items:center; justify-content:center;
  color:var(--grey); transition:background .3s, border-color .3s, color .3s, transform .3s;
}
.soc-btn:hover { background:rgba(232,25,44,.08); border-color:rgba(232,25,44,.3); color:var(--red); transform:translateY(-3px); }
.soc-btn svg { width:17px; height:17px; }

/* ─── CERTIF CHIPS ──────────────────────────── */
.cert-chip {
  flex:1; background:var(--bg3); border:1px solid var(--border); border-radius:12px;
  padding:18px 20px; display:flex; align-items:center; gap:14px;
}
.cert-icon { width:36px; height:36px; background:rgba(232,25,44,.1); border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cert-icon svg { width:17px; height:17px; stroke:var(--red); fill:none; stroke-width:1.5; stroke-linecap:round; }
.cert-name { font-family:var(--font-head); font-size:13px; font-weight:600; }
.cert-sub  { font-size:11px; color:var(--grey); margin-top:2px; }

/* ─── SHARED JS HELPER ──────────────────────── */
/* Used for magnetic, cursor, reveal — see shared.js */

/* ─── MOBILE MENU ───────────────────────────── */
#menu-btn {
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:44px; height:44px; flex-shrink:0;
  background:var(--bg3); border:1px solid var(--border); border-radius:10px;
}
#menu-btn span {
  display:block; width:20px; height:1.5px;
  background:var(--white); border-radius:2px;
  transition:transform .35s var(--ease), opacity .25s;
}
body.menu-open #menu-btn span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
body.menu-open #menu-btn span:nth-child(2) { opacity:0; }
body.menu-open #menu-btn span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

#mobile-menu {
  position:fixed; inset:0; z-index:998;
  background:rgba(8,8,8,.97); backdrop-filter:blur(28px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .4s var(--ease), visibility .4s;
}
body.menu-open #mobile-menu { opacity:1; visibility:visible; pointer-events:auto; }
.mm-link {
  font-family:var(--font-head); font-size:clamp(36px,8vw,56px);
  font-weight:700; letter-spacing:-1.5px; color:var(--grey);
  padding:10px 24px; opacity:0; transform:translateY(18px); display:block; text-align:center;
  transition:color .3s, opacity .45s var(--ease), transform .45s var(--ease);
}
body.menu-open .mm-link { opacity:1; transform:translateY(0); }
body.menu-open .mm-link:nth-child(1) { transition-delay:.05s; }
body.menu-open .mm-link:nth-child(2) { transition-delay:.10s; }
body.menu-open .mm-link:nth-child(3) { transition-delay:.15s; }
body.menu-open .mm-link:nth-child(4) { transition-delay:.20s; }
.mm-link:hover { color:var(--white); }
.mm-link.active { color:var(--red); }
.mm-cta {
  position:absolute; bottom:40px;
  opacity:0; transform:translateY(10px);
  transition:opacity .4s var(--ease) .28s, transform .4s var(--ease) .28s;
}
body.menu-open .mm-cta { opacity:1; transform:translateY(0); }

/* ─── TOUCH DEVICES ─────────────────────────── */
@media (hover:none) and (pointer:coarse) {
  #cur, #cur-ring { display:none; }
  body, a, button { cursor:auto; }
}

/* ─── REDUCED MOTION ────────────────────────── */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .rv { opacity:1 !important; transform:none !important; }
  body { animation:none; }
  .marquee-track { animation:none; }
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width:1024px) {
  .stats-bar-inner { grid-template-columns:1fr 1fr; }
  .stat { border-right:none; border-bottom:1px solid rgba(255,255,255,.12); }
  .stat:nth-child(even) { border-bottom: none; }
}
@media (max-width:900px) {
  #nav { padding:18px 24px; }
  #nav.solid { padding:13px 24px; }
  .nav-links { display:none; }
  .nav-cta { display:none; }
  #menu-btn { display:flex; }
  .sec, .sec-fb { padding:80px 24px; }
  .wrap { padding:0 24px; }
  .page-hero { padding:140px 24px 80px; }
  footer { flex-direction:column; gap:18px; text-align:center; }
  .footer-links { justify-content:center; }
  .cform-row { grid-template-columns:1fr; }
  .stats-bar { padding:56px 24px; }
  .stats-bar-inner { grid-template-columns:1fr 1fr; }
  .big-title { letter-spacing:-1.5px; }
}
@media (max-width:600px) {
  .stats-bar-inner { grid-template-columns:1fr; }
  .stat { border-bottom:1px solid rgba(255,255,255,.1) !important; }
  .stat:last-child { border-bottom:none !important; }
}

/* ─── SKIP TO CONTENT ───────────────────────── */
.skip-link {
  position:absolute; top:-60px; left:24px; z-index:99999;
  background:var(--red); color:#fff; padding:11px 22px;
  border-radius:0 0 10px 10px; font-size:13px; font-weight:600;
  text-decoration:none; letter-spacing:.2px;
  transition:top .25s var(--ease);
  white-space:nowrap;
}
.skip-link:focus { top:0; outline:none; }

/* ─── FOCUS VISIBLE ─────────────────────────── */
*:focus { outline:none; }
*:focus-visible {
  outline:2px solid var(--red);
  outline-offset:3px;
  border-radius:4px;
}
/* Les champs de formulaire ont leur propre focus ring */
.fg input:focus-visible,
.fg textarea:focus-visible,
.fg select:focus-visible { outline:none; }

/* ─── NEWSLETTER CTA ────────────────────────── */
.newsletter-cta {
  padding:100px 56px;
  background:var(--bg2);
  border-top:1px solid var(--border);
  text-align:center;
}
.newsletter-cta-inner { max-width:600px; margin:0 auto; }
.newsletter-cta .big-title { margin-bottom:20px; }
.newsletter-cta p { color:var(--grey); font-size:1.05rem; margin-bottom:36px; line-height:1.7; }
.newsletter-btn {
  display:inline-block;
  background:var(--red);
  color:#fff;
  font-family:var(--font-head);
  font-weight:700;
  font-size:.9rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:14px 36px;
  text-decoration:none;
  transition:opacity .2s;
}
.newsletter-btn:hover { opacity:.8; }
@media(max-width:900px) {
  .newsletter-cta { padding:70px 24px; }
}

/* ─── TOAST NOTIFICATION ────────────────────── */
.copy-toast {
  position:fixed; bottom:36px; left:50%;
  background:rgba(22,163,74,.92); color:#fff; padding:13px 26px; border-radius:100px;
  font-size:13px; font-weight:500; letter-spacing:.2px; z-index:9999;
  animation:toastIn .35s cubic-bezier(.16,1,.3,1) forwards;
  white-space:nowrap; pointer-events:none;
  box-shadow:0 8px 32px rgba(22,163,74,.28);
}
.copy-toast.out { animation:toastOut .35s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes toastIn  { from{opacity:0;transform:translateX(-50%) translateY(16px);} to{opacity:1;transform:translateX(-50%) translateY(0);} }
@keyframes toastOut { from{opacity:1;transform:translateX(-50%) translateY(0);} to{opacity:0;transform:translateX(-50%) translateY(16px);} }
