/* ================================================
   PAGE AFFILIATION — PARRAINAGE
================================================ */
:root {
    --aff-cyan:   #4fc3f7;
    --aff-purple: #a78bfa;
    --aff-pink:   #f472b6;
    --aff-gold:   #fbbf24;
    --aff-green:  #4ade80;
    --aff-bg:     #020811;
}

.aff-page { background: var(--aff-bg); overflow-x: hidden; }

/* ---- HERO ---- */
.aff-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(79,195,247,0.12) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 20% 80%, rgba(74,222,128,0.1) 0%, transparent 60%),
                linear-gradient(180deg, #020811 0%, #050f28 50%, #020811 100%);
    overflow: hidden;
    padding: 120px 20px 80px;
}
.aff-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,195,247,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,195,247,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: aff-grid-pulse 4s ease infinite;
}
@keyframes aff-grid-pulse { 0%,100%{opacity:0.5;} 50%{opacity:1;} }

.aff-orb {
    position: absolute; border-radius: 50%; filter: blur(80px);
    pointer-events: none; animation: aff-orb-drift ease-in-out infinite alternate;
}
.aff-orb1 { width:500px; height:500px; background:rgba(79,195,247,0.12);  top:-100px; left:-150px;  animation-duration:8s; }
.aff-orb2 { width:400px; height:400px; background:rgba(74,222,128,0.1);   bottom:0;   right:-100px; animation-duration:10s; animation-delay:2s; }
.aff-orb3 { width:300px; height:300px; background:rgba(167,139,250,0.08); top:40%;    left:40%;     animation-duration:7s;  animation-delay:1s; }
@keyframes aff-orb-drift { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(30px,-30px) scale(1.15);} }

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

.aff-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.35);
    color: var(--aff-green); padding: 7px 20px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
    margin-bottom: 28px;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 0.2s;
}
.aff-hero-badge::before {
    content: ''; width: 7px; height: 7px; background: var(--aff-green);
    border-radius: 50%; box-shadow: 0 0 8px var(--aff-green);
    animation: aff-blink 1.5s ease infinite;
}
@keyframes aff-blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
@keyframes aff-badge-in { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:none;} }

.aff-hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 900; line-height: 1.05;
    color: #fff; margin-bottom: 20px;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 0.35s;
}
.aff-hero-title .aff-gradient {
    background: linear-gradient(90deg, var(--aff-cyan), var(--aff-green), var(--aff-cyan));
    background-size: 300% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    animation: aff-text-flow 4s linear infinite;
}
@keyframes aff-text-flow { 0%{background-position:0% 50%;} 100%{background-position:300% 50%;} }

.aff-hero-sub {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: rgba(255,255,255,0.88);
    max-width: 650px; margin: 0 auto 40px; line-height: 1.6;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 0.5s;
}
.aff-hero-sub strong { color: #fff; }

.aff-hero-stats {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
    margin-bottom: 44px;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 0.65s;
}
.aff-stat-item { text-align: center; }
.aff-stat-num {
    font-size: 2.2rem; font-weight: 900;
    background: linear-gradient(135deg, var(--aff-cyan), var(--aff-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1;
}
.aff-stat-lbl { font-size: 0.78rem; color: rgba(255,255,255,0.72); font-weight: 500; margin-top: 4px; }

.aff-hero-cta {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 0.8s;
}
.aff-btn-primary {
    display: inline-flex; align-items: center; gap: 9px;
    background: linear-gradient(135deg, var(--aff-cyan) 0%, #0288d1 50%, var(--aff-green) 100%);
    background-size: 200% 100%; color: #fff; padding: 16px 36px; border-radius: 50px;
    font-size: 1rem; font-weight: 800; text-decoration: none; transition: all 0.3s;
    box-shadow: 0 0 30px rgba(79,195,247,0.3), 0 8px 30px rgba(0,0,0,0.4);
    animation: aff-cta-pulse 2.5s ease infinite;
}
.aff-btn-primary:hover {
    background-position: 100% 0; transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 50px rgba(79,195,247,0.5), 0 12px 40px rgba(0,0,0,0.5); color: #fff;
}
@keyframes aff-cta-pulse {
    0%,100%{box-shadow:0 0 30px rgba(79,195,247,0.3),0 8px 30px rgba(0,0,0,0.4);}
    50%{box-shadow:0 0 55px rgba(79,195,247,0.55),0 8px 30px rgba(0,0,0,0.4);}
}
.aff-btn-secondary {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.88); padding: 15px 30px; border-radius: 50px;
    font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.25s;
}
.aff-btn-secondary:hover {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.35);
    color: #fff; transform: translateY(-2px);
}

/* ---- LIEN VERS PARTENAIRE ---- */
.aff-partner-teaser {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(244,114,182,0.08));
    border: 1px solid rgba(167,139,250,0.3);
    border-radius: 16px;
    padding: 20px 28px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    max-width: 700px; margin: 40px auto 0;
    animation: aff-badge-in 0.6s cubic-bezier(0.22,1,0.36,1) both 1s;
}
.aff-pt-icon { font-size: 2rem; flex-shrink: 0; }
.aff-pt-text { flex: 1; }
.aff-pt-text strong { color: #fff; display: block; font-size: 0.95rem; margin-bottom: 3px; }
.aff-pt-text span { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.aff-pt-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.4);
    color: var(--aff-purple); padding: 9px 18px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: all 0.25s;
    white-space: nowrap;
}
.aff-pt-link:hover { background: rgba(167,139,250,0.25); color: var(--aff-purple); transform: translateY(-2px); }

/* ---- SECTIONS COMMUNES ---- */
.aff-section { padding: 100px 0; position: relative; }
.aff-section-dark  { background: linear-gradient(180deg, #020811 0%, #060f24 100%); }
.aff-section-mid   { background: linear-gradient(180deg, #060f24 0%, #0a1535 100%); }
.aff-section-title { text-align: center; margin-bottom: 60px; }
.aff-section-tag {
    display: inline-block;
    background: rgba(79,195,247,0.1); border: 1px solid rgba(79,195,247,0.3);
    color: var(--aff-cyan); 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-h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 14px; }
.aff-section-h2 span { background: linear-gradient(135deg, var(--aff-cyan), var(--aff-green)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.aff-section-desc { color: rgba(255,255,255,0.78); font-size: 1rem; max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ---- ÉTAPES ---- */
.aff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.aff-steps::before {
    content: ''; position: absolute;
    top: 52px; left: calc(16.66% + 12px); right: calc(16.66% + 12px);
    height: 2px;
    background: linear-gradient(90deg, var(--aff-cyan), var(--aff-green));
    opacity: 0.3;
}
.aff-step {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px; padding: 36px 28px; text-align: center;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); position: relative; overflow: hidden;
}
.aff-step::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,195,247,0.07), transparent 70%);
    opacity: 0; transition: opacity 0.3s;
}
.aff-step:hover { transform: translateY(-12px); border-color: rgba(79,195,247,0.3); box-shadow: 0 30px 60px rgba(79,195,247,0.12); }
.aff-step:hover::before { opacity: 1; }
.aff-step:nth-child(2) .aff-step-icon-wrap { background: linear-gradient(135deg, rgba(74,222,128,0.15), rgba(74,222,128,0.05)); border-color: rgba(74,222,128,0.3); }
.aff-step:nth-child(2) .aff-step-num { color: var(--aff-green); }
.aff-step:nth-child(3) .aff-step-icon-wrap { background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(251,191,36,0.05)); border-color: rgba(251,191,36,0.3); }
.aff-step:nth-child(3) .aff-step-num { color: var(--aff-gold); }

.aff-step-num { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.2em; color: var(--aff-cyan); text-transform: uppercase; margin-bottom: 16px; display: block; }
.aff-step-icon-wrap {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, rgba(79,195,247,0.15), rgba(79,195,247,0.05));
    border: 1px solid rgba(79,195,247,0.3); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem;
}
.aff-step h3 { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.aff-step p { color: rgba(255,255,255,0.78); font-size: 0.88rem; line-height: 1.6; margin: 0; }

/* ---- CRÉDITS ---- */
.aff-credits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-bottom: 40px; }
.aff-credit-card {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; padding: 30px 24px; text-align: center; transition: all 0.35s;
    position: relative; overflow: hidden;
}
.aff-credit-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: var(--cc, var(--aff-cyan)); opacity: 0.5; transition: opacity 0.3s, height 0.3s;
}
.aff-credit-card:hover { transform: translateY(-8px); }
.aff-credit-card:hover::after { height: 3px; opacity: 1; }
.aff-cc-icon { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.aff-cc-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.aff-cc-value { font-size: 2rem; font-weight: 900; color: var(--cc, var(--aff-cyan)); filter: drop-shadow(0 0 10px var(--cc, var(--aff-cyan))); margin-bottom: 6px; line-height: 1; }
.aff-cc-desc { font-size: 0.82rem; color: rgba(255,255,255,0.72); line-height: 1.4; }

/* ---- AVANTAGES ---- */
.aff-perks { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.aff-perk {
    display: flex; align-items: flex-start; gap: 16px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px; padding: 22px; transition: all 0.3s;
}
.aff-perk:hover { border-color: rgba(79,195,247,0.25); transform: translateX(4px); }
.aff-perk-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(79,195,247,0.15), rgba(79,195,247,0.05));
    border: 1px solid rgba(79,195,247,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.aff-perk-body h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.aff-perk-body p { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin: 0; line-height: 1.5; }

/* ---- FAQ ---- */
.aff-faq { max-width: 750px; margin: 0 auto; }
.aff-faq-item { border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color 0.25s; }
.aff-faq-item.open { border-color: rgba(79,195,247,0.3); }
.aff-faq-q {
    width: 100%; background: rgba(255,255,255,0.02); 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 0.2s; font-family: inherit;
}
.aff-faq-q:hover { background: rgba(255,255,255,0.04); }
.aff-faq-arrow {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(79,195,247,0.12); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: transform 0.3s, background 0.2s; color: var(--aff-cyan); font-size: 0.75rem;
}
.aff-faq-item.open .aff-faq-arrow { transform: rotate(180deg); background: rgba(79,195,247,0.25); }
.aff-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px; color: rgba(255,255,255,0.82); font-size: 0.88rem; line-height: 1.65;
}
.aff-faq-item.open .aff-faq-a { max-height: 300px; padding: 0 22px 18px; }

/* ---- CTA FINAL ---- */
.aff-cta-final {
    text-align: center; padding: 100px 20px;
    background: linear-gradient(180deg, #0a1535 0%, #020811 100%); position: relative; overflow: hidden;
}
.aff-cta-final::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(74,222,128,0.08), transparent 65%);
    pointer-events: none;
}
.aff-cta-title { font-size: clamp(2rem,5vw,3.5rem); font-weight: 900; color: #fff; margin-bottom: 16px; position: relative; z-index: 1; }
.aff-cta-title .aff-gradient { background: linear-gradient(90deg, var(--aff-cyan), var(--aff-green), var(--aff-cyan)); background-size: 300% 100%; -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; animation: aff-text-flow 4s linear infinite; }
.aff-cta-desc { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 40px; position: relative; z-index: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .aff-steps, .aff-credits-grid { grid-template-columns: 1fr; }
    .aff-steps::before { display: none; }
    .aff-perks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .aff-hero-stats { gap: 24px; }
    .aff-partner-teaser { flex-direction: column; text-align: center; }
}
