/* ═══════════════════════════════════════════
   AMPF — COMMISSIONS PAGE
   File: public/assets/css/commissions.css
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
    --ampf-orange: #E8761A;
    --ampf-green:  #2E9E4F;
    --ampf-blue:   #1B6BB5;
    --navy:        #0a1628;
    --navy-mid:    #112240;
    --white:       #ffffff;
    --gray:        #64748b;
    --gray-light:  #f1f5f9;
    --text:        #1e293b;
}

.page-hero {
    background-image: url('{{ asset("assets/img/hero/commissions-hero.png") }}');
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

/* ── SECTION ───────────────────────────────────────── */
.commissions-section { background: var(--gray-light); }

.comm-header {
    text-align: center;
    margin-bottom: 48px;
}
.comm-header .section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--ampf-blue); display: block; margin-bottom: 12px;
}
.comm-header .section-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: clamp(26px, 3vw, 40px); font-weight: 700;
    color: var(--navy); margin-bottom: 12px; letter-spacing: -0.5px;
}
.comm-header .section-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px; color: var(--gray);
    line-height: 1.7; max-width: 500px; margin: 0 auto;
}

/* ── TABLE WRAPPER ─────────────────────────────────── */
.comm-table-wrap {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    /* stripe 3 couleurs en haut */
    border-top: 3px solid transparent;
    border-radius: 20px 20px 20px 20px;
    overflow: hidden; /* re-force après border-image */
}

/* ── TABLE ─────────────────────────────────────────── */
.comm-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Sans', sans-serif;
}

/* ── THEAD ─────────────────────────────────────────── */
.comm-table thead tr {
    background: var(--navy);
}

.comm-table thead th {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px;
    color: white;
    padding: 18px 20px;
    text-align: center;
    border: none;
}

.th-num        { width: 48px; text-align: center; }
.th-commission { text-align: left; }
.th-resp       { width: 200px; }
.th-membres    { width: 260px; }

/* ── TBODY ─────────────────────────────────────────── */
.comm-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.2s;
}
.comm-table tbody tr:last-child { border-bottom: none; }
.comm-table tbody tr:hover { background: rgba(27,107,181,0.03); }

/* zebra subtile */
.comm-table tbody tr:nth-child(even) { background: rgba(241,245,249,0.5); }
.comm-table tbody tr:nth-child(even):hover { background: rgba(27,107,181,0.04); }

.comm-table td {
    padding: 20px;
    vertical-align: middle;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* ── TD NUM ────────────────────────────────────────── */
.td-num {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 18px; font-weight: 800;
    color: var(--navy);
    border-right: 2px solid var(--gray-light);
}

/* ── TD COMMISSION ─────────────────────────────────── */
.td-commission {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 500;
    color: var(--navy);
    display: flex; align-items: center; gap: 12px;
}

.comm-td-icon {
    font-size: 16px; flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
/* forcer display flex sur fa icon dans td */
td.td-commission { display: table-cell; }
.td-commission .comm-td-icon {
    display: inline-flex; vertical-align: middle; margin-right: 4px;
}

.comm-td-icon--orange { background: rgba(232,118,26,0.1); color: var(--ampf-orange); border: 1px solid rgba(232,118,26,0.2); }
.comm-td-icon--green  { background: rgba(46,158,79,0.1);  color: var(--ampf-green);  border: 1px solid rgba(46,158,79,0.2); }
.comm-td-icon--blue   { background: rgba(27,107,181,0.1); color: var(--ampf-blue);   border: 1px solid rgba(27,107,181,0.2); }

/* ── TD RESPONSABLE ────────────────────────────────── */
.td-resp {
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--navy);
    border-left: 1px solid var(--gray-light);
    border-right: 1px solid var(--gray-light);
}

/* ── TD MEMBRES ────────────────────────────────────── */
.td-membres {
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--text);
}

.membres-list {
    display: flex; flex-direction: column; gap: 8px;
    align-items: center;
}
.membres-list div {
    display: flex; align-items: center; gap: 6px;
}

/* ── AVATARS ───────────────────────────────────────── */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 10px; font-weight: 700;
    color: white; flex-shrink: 0;
    vertical-align: middle; margin-right: 4px;
}
.avatar--orange { background: var(--ampf-orange); }
.avatar--green  { background: var(--ampf-green); }
.avatar--blue   { background: var(--ampf-blue); }
.avatar--sm {
    width: 24px; height: 24px; font-size: 9px;
    background: rgba(100,116,139,0.3); color: var(--text);
}

/* badge "affaire de tous" */
.badge-affaire {
    display: inline-block;
    background: rgba(232,118,26,0.1);
    border: 1px solid rgba(232,118,26,0.25);
    color: var(--ampf-orange);
    font-family: 'DM Sans', sans-serif;
    font-size: 10px; font-weight: 600;
    padding: 2px 10px; border-radius: 100px;
    margin-left: 4px; vertical-align: middle;
    white-space: nowrap;
}

/* ── CTA SECTION ───────────────────────────────────── */
.comm-cta-section {
    background: var(--navy);
    padding: 64px 0;
}

.comm-cta-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 48px;
    position: relative; overflow: hidden;
}

.comm-cta-card-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        var(--ampf-orange) 0%,  var(--ampf-orange) 33%,
        var(--ampf-green)  33%, var(--ampf-green)  66%,
        var(--ampf-blue)   66%, var(--ampf-blue)   100%
    );
}

.comm-cta-content {
    display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}

.comm-cta-icon {
    width: 64px; height: 64px; flex-shrink: 0;
    background: rgba(46,158,79,0.15);
    border: 1px solid rgba(46,158,79,0.3);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ampf-green); font-size: 26px;
}

.comm-cta-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 24px; font-weight: 700;
    color: white; margin-bottom: 8px; letter-spacing: -0.3px;
    flex: 1; min-width: 200px;
}

.comm-cta-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: rgba(255,255,255,0.45);
    line-height: 1.7; max-width: 500px;
}

.comm-cta-content .btn-primary {
    flex-shrink: 0;
    background: var(--ampf-green); color: white;
    padding: 13px 26px; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-weight: 600;
    font-size: 15px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; border: none;
}
.comm-cta-content .btn-primary:hover {
    background: #37b85e; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,158,79,0.4); color: white;
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
    .comm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .comm-table { min-width: 640px; }
}

@media (max-width: 768px) {
    .comm-cta-content { flex-direction: column; text-align: center; }
    .comm-cta-icon { margin: 0 auto; }
    .comm-cta-desc { max-width: 100%; }
    .comm-cta-content .btn-primary { width: 100%; justify-content: center; }
    .comm-cta-card { padding: 28px 20px; }
}