/* ================================================
   AFFILIATION — DESIGN v3
   Fond identique à l'accueil, héro centré, vert/or
   Zéro cyan.
================================================ */

/* ---- FOND IDENTIQUE À L'ACCUEIL ---- */
body {
    background-color: #030912 !important;
    background-image:
        radial-gradient(ellipse 70% 60% at 5% 20%,  rgba(17,68,210,0.22)  0%, transparent 65%),
        radial-gradient(ellipse 55% 50% at 88% 45%,  rgba(47,174,238,0.13) 0%, transparent 62%),
        radial-gradient(ellipse 50% 45% at 42% 85%,  rgba(88,60,220,0.13)  0%, transparent 62%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

:root {
    --aff-green:  #10b981;
    --aff-glow:   #34d399;
    --aff-gold:   #f59e0b;
    --aff-indigo: #6366f1;
    --aff-rose:   #f43f5e;
}

.aff-page { overflow-x: hidden; }

/* ===== HERO ===== */
.aff-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    padding: 130px 20px 90px;
    overflow: hidden;
}

.aff-hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 70px 70px;
    animation: aff-grid-anim 5s ease infinite;
}
@keyframes aff-grid-anim { 0%,100%{opacity:.5;} 50%{opacity:1;} }

.aff-orb {
    position: absolute; border-radius: 50%; filter: blur(110px);
    pointer-events: none; animation: aff-float ease-in-out infinite alternate;
}
.aff-orb1 { width:550px; height:550px; background:rgba(16,185,129,0.09); top:-120px; right:-80px; animation-duration:9s; }
.aff-orb2 { width:450px; height:450px; background:rgba(245,158,11,0.07); bottom:-80px; left:-120px; animation-duration:11s; animation-delay:3s; }
@keyframes aff-float { 0%{transform:translate(0,0);} 100%{transform:translate(20px,-25px);} }

.aff-hero-inner {
    position: relative; z-index: 2;
    max-width: 800px; margin: 0 auto;
}

/* Badge */
.aff-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
    color: var(--aff-green); padding: 9px 24px; border-radius: 50px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 36px;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.15s;
}
.aff-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--aff-green); box-shadow: 0 0 10px var(--aff-green);
    animation: aff-blink 1.5s ease infinite;
}
@keyframes aff-blink { 0%,100%{opacity:1;box-shadow:0 0 10px var(--aff-green);} 50%{opacity:.3;box-shadow:none;} }
@keyframes aff-up { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:none;} }

/* Titre */
.aff-hero-h1 {
    font-size: clamp(3rem, 7.5vw, 5.8rem);
    font-weight: 900; line-height: 1.05; color: #fff;
    margin-bottom: 24px;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.3s;
}
.aff-h1-highlight {
    background: linear-gradient(135deg, var(--aff-green) 0%, var(--aff-glow) 40%, var(--aff-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: aff-shimmer 3s linear infinite;
}
@keyframes aff-shimmer { 0%{background-position:0% center;} 100%{background-position:200% center;} }

/* Sous-titre */
.aff-hero-sub {
    font-size: clamp(1.05rem, 2.3vw, 1.22rem);
    color: rgba(255,255,255,0.8); line-height: 1.7;
    max-width: 580px; margin: 0 auto 44px;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.45s;
}
.aff-hero-sub strong { color: #fff; }

/* Stats */
.aff-stats-row {
    display: inline-flex; align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; padding: 22px 16px;
    margin-bottom: 44px; gap: 0; flex-wrap: wrap; justify-content: center;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.6s;
}
.aff-stat { text-align: center; padding: 6px 28px; }
.aff-stat-sep { width: 1px; height: 44px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.aff-stat-num {
    font-size: clamp(1.6rem, 1.5vw + 1.1rem, 2.1rem); font-weight: 900; line-height: 1;
    background: linear-gradient(135deg, var(--aff-green), var(--aff-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.aff-stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.52); margin-top: 5px; font-weight: 500; }

/* Boutons */
.aff-hero-btns {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 40px;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.75s;
}
.aff-btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #059669 0%, var(--aff-green) 100%);
    color: #fff; padding: 17px 38px; border-radius: 50px;
    font-size: 1rem; font-weight: 800; text-decoration: none; transition: all 0.3s;
    box-shadow: 0 0 35px rgba(16,185,129,0.4), 0 10px 30px rgba(0,0,0,0.4);
}
.aff-btn-primary:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 0 60px rgba(16,185,129,0.6), 0 15px 40px rgba(0,0,0,0.5);
    color: #fff;
}
.aff-btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    background: transparent; border: 1.5px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.85); padding: 16px 30px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.25s;
}
.aff-btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); color: #fff; transform: translateY(-2px); }

/* Teaser partenaire */
.aff-partner-teaser {
    display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
    background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 14px; padding: 14px 24px;
    font-size: 0.88rem; color: rgba(255,255,255,0.78); max-width: 600px; margin: 0 auto;
    animation: aff-up 0.6s cubic-bezier(.22,1,.36,1) both 0.9s;
}
.aff-partner-teaser a { color: #a5b4fc; font-weight: 700; text-decoration: none; }
.aff-partner-teaser a:hover { color: #fff; text-decoration: underline; }

/* ===== SECTIONS ===== */
.aff-section { padding: 100px 0; position: relative; }
.aff-section-glass {
    background: rgba(2,5,15,0.55);
    backdrop-filter: blur(0px);
}

.aff-section-head { text-align: center; margin-bottom: 60px; }
.aff-tag {
    display: inline-block;
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.28);
    color: var(--aff-green); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; padding: 5px 16px;
    border-radius: 50px; margin-bottom: 16px;
}
.aff-section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; color: #fff;
    line-height: 1.15; margin-bottom: 14px;
}
.aff-section-head h2 span {
    background: linear-gradient(135deg, var(--aff-green), var(--aff-gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.aff-section-head p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ===== ÉTAPES ===== */
.aff-steps {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start;
}
.aff-steps-arrow {
    display: flex; align-items: flex-start; padding-top: 50px;
    color: rgba(255,255,255,0.25); font-size: 1.2rem;
    padding-left: 12px; padding-right: 12px;
}
.aff-step {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
    border-radius: 24px; padding: 36px 28px; text-align: center; position: relative;
    transition: all 0.35s cubic-bezier(.34,1.56,.64,1);
}
.aff-step:hover { transform: translateY(-10px); border-color: rgba(16,185,129,0.3); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.aff-step-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--aff-green), var(--aff-gold));
    color: #030912; font-size: 0.78rem; font-weight: 900; padding: 4px 16px;
    border-radius: 50px; letter-spacing: 0.1em;
}
.aff-step-icon {
    font-size: 2.8rem; margin: 16px 0 20px;
    display: flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; margin: 16px auto 20px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
}
.aff-step h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.aff-step p { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.6; margin: 0; }

/* ===== SERVICES ===== */
.aff-services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-bottom: 28px; }
.aff-service-card {
    border-radius: 24px; padding: 36px 28px; text-align: center;
    position: relative; overflow: hidden;
    transition: all 0.35s;
    cursor: default;
}
.aff-sc-gaming {
    background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.04) 100%);
    border: 1px solid rgba(16,185,129,0.3);
}
.aff-sc-web {
    background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(99,102,241,0.04) 100%);
    border: 1px solid rgba(99,102,241,0.3);
}
.aff-sc-vps {
    background: linear-gradient(135deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.04) 100%);
    border: 1px solid rgba(245,158,11,0.3);
}
.aff-service-card:hover { transform: translateY(-10px) scale(1.02); }
.aff-sc-gaming:hover  { box-shadow: 0 30px 60px rgba(16,185,129,0.2); }
.aff-sc-web:hover     { box-shadow: 0 30px 60px rgba(99,102,241,0.2); }
.aff-sc-vps:hover     { box-shadow: 0 30px 60px rgba(245,158,11,0.2); }

.aff-sc-top { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.aff-sc-emoji { font-size: 2.2rem; }
.aff-sc-badge {
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    padding: 4px 12px; border-radius: 50px;
}
.aff-sc-gaming .aff-sc-badge { background: rgba(16,185,129,0.2); color: var(--aff-green); border: 1px solid rgba(16,185,129,0.4); }
.aff-sc-web .aff-sc-badge    { background: rgba(99,102,241,0.2); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.4); }
.aff-sc-vps .aff-sc-badge    { background: rgba(245,158,11,0.2); color: var(--aff-gold); border: 1px solid rgba(245,158,11,0.4); }

.aff-sc-price {
    font-size: 3.8rem; font-weight: 900; line-height: 1;
    margin-bottom: 4px;
}
.aff-sc-gaming .aff-sc-price { color: var(--aff-green); text-shadow: 0 0 30px rgba(16,185,129,0.5); }
.aff-sc-web .aff-sc-price    { color: #a5b4fc; text-shadow: 0 0 30px rgba(99,102,241,0.5); }
.aff-sc-vps .aff-sc-price    { color: var(--aff-gold); text-shadow: 0 0 30px rgba(245,158,11,0.5); }
.aff-sc-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; font-weight: 600; }
.aff-sc-desc { font-size: 0.85rem; color: rgba(255,255,255,0.72); line-height: 1.5; margin: 0; }

/* Bannière cumulable */
.aff-cumul-strip {
    background: rgba(16,185,129,0.07); border: 1px solid rgba(16,185,129,0.2);
    border-radius: 16px; padding: 22px 32px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.aff-cumul-icon { font-size: 2rem; flex-shrink: 0; }
.aff-cumul-strip div { flex: 1; }
.aff-cumul-strip strong { color: #fff; display: block; font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.aff-cumul-strip span { color: rgba(255,255,255,0.72); font-size: 0.88rem; }

/* ===== SECTION LIEN ===== */
.aff-link-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.aff-link-section h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight:900; color:#fff; margin-bottom:0; line-height:1.15; }
.aff-link-section h2 span { background:linear-gradient(135deg,var(--aff-green),var(--aff-gold)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.aff-link-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: rgba(255,255,255,0.05); border: 1.5px solid rgba(16,185,129,0.3);
    border-radius: 14px; padding: 16px 20px;
}
.aff-link-text { flex: 1; font-family: monospace; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.aff-link-text strong { color: var(--aff-green); }
.aff-copy-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(16,185,129,0.18); border: 1px solid rgba(16,185,129,0.4);
    color: var(--aff-green); padding: 9px 18px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
}
.aff-copy-btn:hover { background: rgba(16,185,129,0.3); }
.aff-copy-btn.copied { background: rgba(16,185,129,0.3); color: var(--aff-glow); }

.aff-platforms-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.aff-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aff-plat {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.78);
    transition: all 0.2s; cursor: default;
}
.aff-plat:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; transform: translateX(4px); }

/* ===== AVANTAGES ===== */
.aff-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.aff-perk {
    display: flex; align-items: flex-start; gap: 18px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; padding: 24px; transition: all 0.3s;
}
.aff-perk:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.aff-perk-lg { grid-column: span 2; }
.aff-perk-icon {
    width: 52px; height: 52px; min-width: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    border: 1px solid;
}
.aff-perk h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.aff-perk p { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin: 0; line-height: 1.55; }

/* ===== FAQ ===== */
.aff-faq { max-width: 780px; margin: 0 auto; }
.aff-faq-item { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .25s; }
.aff-faq-item.open { border-color: rgba(16,185,129,0.35); }
.aff-faq-q {
    width: 100%; background: rgba(255,255,255,0.025); border: none; color: #fff;
    padding: 18px 22px; font-size: 0.95rem; font-weight: 600; text-align: left;
    cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    transition: background .2s; font-family: inherit;
}
.aff-faq-q:hover { background: rgba(255,255,255,0.05); }
.aff-faq-ico {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: rgba(16,185,129,0.12); display: flex; align-items: center; justify-content: center;
    transition: transform .3s, background .2s; color: var(--aff-green); font-size: 0.75rem;
}
.aff-faq-item.open .aff-faq-ico { transform: rotate(180deg); background: rgba(16,185,129,0.25); }
.aff-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 22px; color: rgba(255,255,255,0.8); font-size: 0.9rem; line-height: 1.7;
}
.aff-faq-item.open .aff-faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ===== CTA FINAL ===== */
.aff-cta-final {
    padding: 120px 20px; text-align: center; position: relative; overflow: hidden;
    background: rgba(2,5,15,0.6);
}
.aff-cta-glow {
    position: absolute; width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.aff-cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.aff-cta-inner h2 { font-size: clamp(2.2rem,5vw,3.6rem); font-weight: 900; color: #fff; margin-bottom: 16px; line-height: 1.1; }
.aff-cta-inner h2 span { background: linear-gradient(135deg, var(--aff-green), var(--aff-gold)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.aff-cta-inner p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 40px; }
.aff-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== REVEAL ===== */
.aff-reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.aff-reveal.aff-visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .aff-steps { grid-template-columns: 1fr; gap: 16px; }
    .aff-steps-arrow { display: none; }
    .aff-services-grid { grid-template-columns: 1fr; }
    .aff-link-section { grid-template-columns: 1fr; gap: 36px; }
    .aff-perks { grid-template-columns: 1fr; }
    .aff-perk-lg { grid-column: span 1; }
}
@media (max-width: 768px) {
    .aff-stats-row { padding: 16px 0; }
    .aff-stat { padding: 6px 16px; }
}
@media (max-width: 640px) {
    .aff-hero { padding: 110px 16px 70px; }
    .aff-section { padding: 70px 0; }
    .aff-stats-row { flex-direction: column; border-radius: 16px; width: 100%; }
    .aff-stat-sep { width: 100%; height: 1px; }
    .aff-partner-teaser { flex-direction: column; text-align: center; }
    .aff-platforms { grid-template-columns: 1fr 1fr; }
}
