/* ══════════════════════════════════════════════════════════════════
   michel_AI.css — Thème marine glassmorphisme ACB Plongée
   Usage : <link rel="stylesheet" href="css_ACB/michel_AI.css">
   Note  : l'image de fond body doit être surchargée par chaque page :
           <style>body { background-image: url('images/fonds/nom.jpg'); }</style>
   ══════════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }

/* ── Body / fond ── */
body {
    margin: 0 !important; padding: 0 !important;
    position: static !important; z-index: auto !important; top: auto !important;
    min-height: 100vh;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background-color: #010b18 !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    color: rgba(215,238,255,.9);
    text-shadow: none;
}
body::before {
    content: ''; position: fixed; inset: 0;
    background: linear-gradient(160deg, rgba(0,5,18,.62) 0%, rgba(1,14,38,.28) 50%, rgba(0,8,24,.70) 100%);
    z-index: 0; pointer-events: none;
}

/* ── Conteneur principal ── */
#wrappage { position: relative; z-index: 1; }
#wrappage > .col-xs-12 {
    display: flex; flex-direction: column; align-items: center;
    padding: 88px 6px 56px !important; min-height: 100vh;
}

/* ── Carte glassmorphisme (générique) ── */
.marine-card,
.remb-card {
    backdrop-filter: blur(26px) saturate(1.5);
    -webkit-backdrop-filter: blur(26px) saturate(1.5);
    border: 1px solid rgba(0,180,224,.22);
    border-radius: 18px;
    padding: 36px 40px;
    box-shadow: 0 32px 90px rgba(0,0,0,.72), inset 0 1px 0 rgba(0,200,255,.08);
    width: 100%; max-width: 1600px;
    margin-bottom: 28px;
}
.marine-card::before,
.remb-card::before {
    content: ''; display: block; width: 60px; height: 2px;
    margin: 0 auto 24px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,.8), transparent);
    border-radius: 2px;
}
/* ── Carte glassmorphisme (override templatemo) ── */
.tm-5-col-container,
.tm-3-col-container {
    backdrop-filter: blur(26px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(26px) saturate(1.5) !important;
    border: 1px solid rgba(0,180,224,.22) !important;
    border-radius: 18px !important;
    padding: 36px 40px !important;
    box-shadow: 0 32px 90px rgba(0,0,0,.72), inset 0 1px 0 rgba(0,200,255,.08) !important;
    width: 100% !important; max-width: 1600px !important;
    margin: 0 auto 28px !important;
    background: none !important;
}
.tm-5-col-container::before,
.tm-3-col-container::before {
    content: ''; display: block; width: 60px; height: 2px;
    margin: 0 auto 24px;
    background: linear-gradient(90deg, transparent, rgba(0,210,255,.8), transparent);
    border-radius: 2px;
}

/* ── En-tête de page ── */
.page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.page-title {
    font-size: 22px; font-weight: 800; color: #fff;
    letter-spacing: .3px; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.page-title span { color: rgba(0,210,255,.85); }
.section-title {
    font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: rgba(0,200,255,.70); border-bottom: 1px solid rgba(0,180,224,.18);
    padding-bottom: 8px; margin: 0 0 18px;
}

/* ── Boutons ── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px; border-radius: 8px; font-size: 12px;
    font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
    cursor: pointer; text-decoration: none !important; transition: all .2s;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, rgba(0,160,220,.50), rgba(0,100,180,.60));
    border-color: rgba(0,200,255,.40); color: rgba(220,248,255,.98) !important;
}
.btn-primary:hover { background: linear-gradient(135deg, rgba(0,190,255,.60), rgba(0,130,210,.70)); color: #fff !important; }
.btn-ghost {
    background: transparent; border-color: rgba(0,180,224,.30); color: rgba(140,210,240,.80) !important;
}
.btn-ghost:hover { background: rgba(0,140,200,.15); color: rgba(200,238,255,.95) !important; }
.btn-success {
    background: linear-gradient(135deg, rgba(0,180,100,.35), rgba(0,130,70,.45));
    border-color: rgba(0,220,130,.35); color: rgba(130,255,185,.95) !important;
}
.btn-success:hover { background: linear-gradient(135deg, rgba(0,210,120,.45), rgba(0,160,85,.55)); color: #fff !important; }
.btn-danger {
    background: linear-gradient(135deg, rgba(200,40,40,.40), rgba(160,20,20,.50));
    border-color: rgba(255,100,100,.40); color: rgba(255,160,160,.95) !important;
}
.btn-danger:hover { background: linear-gradient(135deg, rgba(230,60,60,.55), rgba(200,30,30,.65)); color: #fff !important; }
.btn-back {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(13,43,69,.7); border: 1px solid rgba(0,180,224,.3); border-radius: 50px;
    padding: 13px 28px; color: #7dd8f5 !important; text-decoration: none !important;
    font-size: .88rem; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
    transition: all .2s;
}
.btn-back:hover { background: rgba(34,114,168,.4); color: #fff !important; }

/* ── Table marine ── */
.marine-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; background: transparent; }
.marine-table thead th {
    background: linear-gradient(180deg, rgba(0,160,230,.40) 0%, rgba(0,75,155,.50) 100%);
    color: rgba(185,238,255,1); border: none;
    border-top: 1px solid rgba(0,220,255,.35);
    border-bottom: 2px solid rgba(0,185,255,.55);
    padding: 11px 12px; font-weight: 700; font-size: 11px;
    letter-spacing: .8px; text-transform: uppercase; white-space: nowrap;
}
.marine-table thead th:first-child { border-radius: 8px 0 0 0; }
.marine-table thead th:last-child  { border-radius: 0 8px 0 0; }
.marine-table tbody tr {
    background: rgba(0,22,58,.72);
    transition: background .15s, border-color .15s;
}
.marine-table tbody tr:hover { background: rgba(0,45,100,.78); }
.marine-table tbody td {
    padding: 11px 12px; font-size: 12px; color: rgba(200,230,255,.9);
    vertical-align: middle; border: none;
    border-top: 1px solid rgba(0,180,224,.12);
    border-bottom: 1px solid rgba(0,180,224,.12);
}
.marine-table tbody td:first-child { border-left: 1px solid rgba(0,180,224,.15); border-radius: 8px 0 0 8px; }
.marine-table tbody td:last-child  { border-right: 1px solid rgba(0,180,224,.15); border-radius: 0 8px 8px 0; }

/* ── Badges statut ── */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    white-space: nowrap;
}
.badge-attente  { background: rgba(180,130,0,.35);  border: 1px solid rgba(255,200,0,.40);  color: rgba(255,220,100,.95); }
.badge-approuve { background: rgba(0,160,80,.35);   border: 1px solid rgba(0,220,120,.40);  color: rgba(100,255,170,.95); }
.badge-refuse   { background: rgba(180,20,20,.40);  border: 1px solid rgba(255,80,80,.45);  color: rgba(255,150,150,.95); }
.badge-paye     { background: rgba(0,100,200,.35);  border: 1px solid rgba(0,180,255,.40);  color: rgba(140,220,255,.95); }

/* ── Messages feedback ── */
.msg-ok  { margin: 0 0 18px; padding: 12px 20px; border-radius: 10px; background: rgba(0,60,30,.65);  border: 1px solid rgba(0,200,100,.45);  color: #80ffb4; font-weight: 600; }
.msg-err { margin: 0 0 18px; padding: 12px 20px; border-radius: 10px; background: rgba(60,0,0,.65);   border: 1px solid rgba(255,80,80,.45);  color: #ff9898; font-weight: 600; }

/* ── Grille de statistiques ── */
.stats-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat-card   { background: rgba(0,15,42,.60); border: 1px solid rgba(0,180,224,.20); border-radius: 12px; padding: 18px 20px; text-align: center; }
.stat-num    { font-size: 28px; font-weight: 800; color: rgba(0,210,255,.9); line-height: 1; }
.stat-label  { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: rgba(140,190,220,.65); margin-top: 4px; }
.stat-total  { font-size: 11px; color: rgba(180,210,230,.45); margin-top: 4px; }

/* ── Filtres ── */
.filter-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-lbl { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(0,200,255,.65); }
.filter-btn { display: inline-block; padding: 5px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; text-decoration: none !important; border: 1px solid rgba(0,180,224,.25); color: rgba(140,210,240,.75) !important; transition: all .2s; }
.filter-btn:hover  { background: rgba(0,140,200,.15); color: rgba(200,238,255,.95) !important; }
.filter-btn.active { background: rgba(0,140,200,.20); border-color: rgba(0,200,255,.55); color: rgba(220,248,255,.98) !important; }

/* ── Liens documents ── */
.doc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(0,200,255,.8) !important; text-decoration: none !important; margin: 2px 3px; padding: 2px 8px; background: rgba(0,150,200,.15); border-radius: 12px; border: 1px solid rgba(0,180,224,.20); white-space: nowrap; }
.doc-link:hover { color: #fff !important; background: rgba(0,180,224,.25); }

/* ── Séparateur admin ── */
.admin-separator { border: none; border-top: 1px solid rgba(0,180,224,.22); margin: 36px 0 28px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .marine-card,
    .remb-card,
    .tm-5-col-container,
    .tm-3-col-container { padding: 18px 14px !important; border-radius: 12px !important; }
    .page-title { font-size: 17px !important; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-back { padding: 11px 18px !important; font-size: .82rem !important; }
}
@media (max-width: 480px) {
    .marine-card,
    .remb-card,
    .tm-5-col-container,
    .tm-3-col-container { padding: 12px 8px !important; border-radius: 10px !important; }
    .marine-table thead { display: none; }
    .marine-table tbody tr { display: block; margin-bottom: 10px; border-radius: 12px; padding: 12px 14px; border: 1px solid rgba(0,180,224,.20); }
    .marine-table tbody td { display: block; width: 100%; border: none !important; border-radius: 0 !important; padding: .3rem 0; background: transparent !important; }
    .marine-table tbody td::before { content: attr(data-label) " :"; display: block; font-size: 9px; text-transform: uppercase; color: rgba(0,200,255,.55); letter-spacing: .08em; margin-bottom: .1rem; }
}
