/* ======================================================
   RESET & BASE
====================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:"Segoe UI", Arial, sans-serif;
    background:#f4f6f8;
    color:#333;
    line-height:1.6;
}

a{
    text-decoration:none;
}

/* ======================================================
   HEADER
====================================================== */
.header{
    background:#003366;
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:20px;
    padding:15px 30px;
}

.header-logo img{
    width:65px;
}

.header-text{
    text-align:center;
}

.header-text h1{
    font-size:22px;
    color:#1e90ff;
    font-weight:700;
}

.header-text h2{
    font-size:17px;
    color:#e6e6e6;
}

.header-text h3{
    font-size:15px;
    color:#cc0000;
}

.header-text p{
    font-size:13px;
    color:#ffffff;
}

/* ======================================================
   NAVIGATION
====================================================== */
.main-nav{
    background:#1e5fa5;
    padding:12px 20px;
}

.nav-links{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.nav-links a{
    color:white;
    font-weight:600;
    font-size:15px;
}

.burger{
    display:none;
}

/* ======================================================
   FORMS GENERAUX
====================================================== */
.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
}

.form-group input,
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #ccd6e0;
    border-radius:6px;
    font-size:15px;
    background:white;
}

button{
    padding:12px 16px;
    background:#003366;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
}

/* ======================================================
   SECTION PUBLIQUE
====================================================== */
.section{
    max-width:1000px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.intro-text,
.form-note,
.security-note{
    margin-top:15px;
}

.identification-form{
    max-width:700px;
    margin:20px auto;
}

footer{
    text-align:center;
    padding:25px;
}

/* ======================================================
   ADMIN DASHBOARD
====================================================== */
.admin-dashboard{
    max-width:1450px;
    margin:50px auto;
    padding:20px;
}

.dashboard-table{
    background:white;
    padding:35px;
    border-radius:16px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.list-header{
    margin-bottom:25px;
}

.list-header h2{
    font-size:24px;
    font-weight:700;
    color:#003366;
}

/* ======================================================
   TOOLBAR DECORATION (UNIQUE VERSION)
====================================================== */
.toolbar-cards{
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:nowrap;
    margin:25px 0 30px 0;
}

.info-card{
    width:170px;
    min-width:170px;
    height:80px;
    padding:18px 20px;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.info-card span{
    font-size:15px;
    color:#555;
    font-weight:600;
}

.info-card strong{
    font-size:24px;
    font-weight:700;
    color:#003366;
}

.search-card{
    flex:1;
    min-width:320px;
    height:80px;
    display:flex;
    align-items:center;
    background:#ffffff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.search-card input{
    flex:1;
    height:100%;
    border:none;
    outline:none;
    padding:0 18px;
    font-size:15px;
}

.search-card button{
    width:70px;
    min-width:70px;
    height:100%;
    border:none;
    border-radius:0;
    background:#003366;
    color:white;
    font-size:20px;
    padding:0;
}

.manage-card,
.export-card{
    min-width:190px;
    height:80px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#ffffff;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    font-weight:700;
    white-space:nowrap;
}

.manage-card{ color:#003366; }
.export-card{ color:#6b21a8; }

/* ======================================================
   TABLES
====================================================== */
#table,
.dashboard-table table{
    width:100%;
    border-collapse:collapse;
}

#table th,
.dashboard-table th{
    background:#003366;
    color:white;
    padding:14px;
    text-align:center;
}

#table td,
.dashboard-table td{
    padding:14px;
    border-bottom:1px solid #eee;
    text-align:left;
}

.dignitaire-link{
    color:#003366;
    font-weight:600;
}

/* ======================================================
   PAGINATION
====================================================== */
.pagination{
    margin-top:25px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
}

.page-btn{
    background:#003366;
    color:white;
    padding:8px 12px;
    border-radius:6px;
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width:1200px){
    .toolbar-cards{
        flex-wrap:wrap;
    }

    .search-card{
        width:100%;
        min-width:100%;
    }
}

@media (max-width:768px){
    .header{
        grid-template-columns:1fr;
        text-align:center;
    }

    .burger{
        display:block;
        margin:0 auto 10px auto;
    }

    .nav-links{
        flex-direction:column;
        align-items:center;
    }

    .toolbar-cards{
        flex-direction:column;
        align-items:stretch;
    }

    .info-card,
    .search-card,
    .manage-card,
    .export-card{
        width:100%;
        min-width:100%;
    }

    .dashboard-table{
        overflow-x:auto;
    }

    #table{
        min-width:900px;
    }
}

/* ======================================================
   HOME / SLIDER / HERO
====================================================== */

/* =========================================
   SLIDER ACCUEIL - DESIGN PLEINE LARGEUR
========================================= */

.slider{
    width:100%;
    height:520px;
    overflow:hidden;
    background:#fff;
}

.slider img,
.slide{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 27%;
    display:block;
}
.hero{
    max-width:1200px;
    margin:40px auto;
    padding:30px;
    text-align:center;
    background:#ffffff;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.hero h1{
    font-size:34px;
    color:#003366;
    margin-bottom:15px;
}

.hero p{
    font-size:17px;
    color:#444;
    line-height:1.8;
}

/* ======================================================
   RESULTATS IDENTIFICATION / MERITES
====================================================== */
.result-container{
    max-width:1100px;
    margin:40px auto;
}

.result-card{
    background:#ffffff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    margin-bottom:25px;
}

.result-body{
    display:flex;
    gap:25px;
    align-items:center;
}

.result-photo{
    width:160px;
    height:160px;
    object-fit:cover;
    border-radius:14px;
    border:4px solid #f1f1f1;
}

.result-info{
    flex:1;
}

.badge{
    display:inline-block;
    padding:8px 14px;
    border-radius:8px;
    font-weight:700;
    margin-bottom:20px;
}

.badge-valid{
    background:#eafaf1;
    color:#1f7a3e;
}

.badge-invalid{
    background:#fdecea;
    color:#a61b1b;
}

/* ======================================================
   CARDS MEDAILLES
====================================================== */
.medals-section{
    margin-top:30px;
}

.medals-title{
    margin-bottom:20px;
    color:#003366;
    font-size:22px;
}

.medals-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.medal-card{
    background:#ffffff;
    padding:20px;
    border-radius:14px;
    box-shadow:0 6px 16px rgba(0,0,0,0.08);
    border-left:5px solid #003366;
}

.medal-name{
    font-weight:700;
    font-size:18px;
    margin-bottom:10px;
}

.medal-grade{
    display:inline-block;
    padding:5px 10px;
    border-radius:6px;
    background:#003366;
    color:white;
    font-size:13px;
    margin-bottom:12px;
}

/* ======================================================
   BULLETIN DOSSIER
====================================================== */
.bulletin{
    margin-top:25px;
    border:1px solid #e6e6e6;
    border-radius:12px;
    overflow:hidden;
}

.bulletin-header{
    background:#003366;
    color:white;
    padding:14px;
    font-weight:700;
}

.bulletin-row{
    display:flex;
    justify-content:space-between;
    padding:14px 18px;
    border-bottom:1px solid #eee;
}

.bulletin-label{
    font-weight:600;
}

.bulletin-ok{
    color:#1f7a3e;
    font-weight:700;
}

.bulletin-ko{
    color:#c0392b;
    font-weight:700;
}

/* ======================================================
   BACK LINK
====================================================== */
.back-link{
    display:inline-block;
    margin-top:20px;
    font-weight:700;
    color:#003366;
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width:768px){

    .slider{
        height:240px;
    }

    .hero{
        margin:20px;
        padding:20px;
    }

    .hero h1{
        font-size:24px;
    }

    .result-body{
        flex-direction:column;
        text-align:center;
    }

    .result-photo{
        width:120px;
        height:120px;
    }

    .medals-container{
        grid-template-columns:1fr;
    }

    .bulletin-row{
        flex-direction:column;
        gap:8px;
    }
}

/* PHOTO RESULTAT IDENTIFICATION */

.result-photo{
    width:170px;
    height:190px;
    object-fit:contain; /* photo entiÃ¨re */
    object-position:center top;
    background:#ffffff;
    border-radius:12px;
    border:3px solid #f1f1f1;
    padding:4px;
}

/* TEXTE MOBILE JUSTIFIE */

@media (max-width:768px){

    .section,
    .section p,
    .intro-text,
    .hero,
    .hero p,
    .result-info,
    .result-info p,
    .medal-card,
    .medal-card p,
    .form-note{
        text-align:justify !important;
    }

    .slider{
        height:300px;
    }
}

/* COULEURS PAR GRADE */

.medal-card{
    border-left:6px solid #003366;
}

/* OR */
.medal-card.grade-or,
.medal-card.grade-gold{
    border-left-color:#d4af37;
    background:linear-gradient(135deg,#fff8dc,#fff3b0);
}

.medal-card.grade-or .medal-grade,
.medal-card.grade-gold .medal-grade{
    background:#d4af37;
    color:#ffffff;
}

/* ARGENT */
.medal-card.grade-argent,
.medal-card.grade-silver{
    border-left-color:#c0c0c0;
    background:linear-gradient(135deg,#fafafa,#e6e6e6);
}

.medal-card.grade-argent .medal-grade,
.medal-card.grade-silver .medal-grade{
    background:#a9a9a9;
    color:#ffffff;
}

/* BRONZE */
.medal-card.grade-bronze{
    border-left-color:#cd7f32;
    background:linear-gradient(135deg,#fff5ee,#f2c29b);
}

.medal-card.grade-bronze .medal-grade{
    background:#cd7f32;
    color:#ffffff;
}

/* BLEU PAR DEFAUT */
.medal-card .medal-grade{
    border-radius:6px;
    padding:6px 12px;
    font-weight:700;
}

/* ======================================================
   JUSTIFICATION GLOBALE DU TEXTE
====================================================== */

.section p,
.intro-text,
.hero p,
.result-info p,
.medal-card p,
.form-note,
.mission-card p,
.content-card p{
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.9;
}

/* ======================================================
   MENU GESTION â€“ CARDS MODERNES
====================================================== */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:30px;
    margin-top:25px;
}

.dashboard-card{
    display:block;
    background:#ffffff;
    border-radius:16px;
    padding:35px 30px;
    min-height:220px;
    box-shadow:0 8px 20px rgba(0,0,0,0.08);
    border-top:6px solid #003366;
    transition:all 0.25s ease;
    text-align:center;
}

.dashboard-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 25px rgba(0,0,0,0.12);
}

.dashboard-card h3{
    font-size:22px;
    color:#003366;
    font-weight:700;
    margin-bottom:25px;
}

.dashboard-card p{
    font-size:26px;
    line-height:1.6;
    font-weight:700;
    color:#003366;
    text-align:center;
}

/* ALERTES */

.alert-success,
.alert-error{
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:600;
}

.alert-success{
    background:#eafaf1;
    color:#1f7a3e;
}

.alert-error{
    background:#fdecea;
    color:#a61b1b;
}

/* MOBILE */

@media (max-width:992px){

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .dashboard-card{
        min-height:180px;
    }

    .dashboard-card p{
        font-size:22px;
    }
}

/* MOBILE */

@media (max-width:992px){
    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .dashboard-card{
        min-height:180px;
    }

    .dashboard-card p{
        font-size:22px;
    }
}

.alert-success,
.alert-error{
    padding:14px 18px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:600;
}

.alert-success{
    background:#eafaf1;
    color:#1f7a3e;
}

.alert-error{
    background:#fdecea;
    color:#a61b1b;
}

/* =========================================
   TABLEAU DECORATION - NOM A GAUCHE
========================================= */

/* en-tÃªte Nom complet */
#table th:nth-child(2){
    text-align:left !important;
    padding-left:28px;
}

/* cellules Nom complet */
#table td:nth-child(2){
    text-align:left !important;
    padding-left:28px;
}

/* lien du nom */
#table td:nth-child(2) .dignitaire-link{
    display:block;
    text-align:left !important;
}

/* ACTIONS TABLEAU */

.actions{
    display:flex;
    gap:10px;
    justify-content:center;
    align-items:center;
}

.btn-edit{
    background:#1e5fa5;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    font-weight:600;
    display:inline-block;
}

.btn-delete{
    background:#c0392b;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    font-weight:600;
    display:inline-block;
}

/* =========================================
   SUPERUSER DASHBOARD - CARDS COMPACTES
========================================= */

.admin-dashboard .dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:20px;
    margin-top:20px;
}

.admin-dashboard .dashboard-card{
    min-height:130px !important;
    padding:20px 18px !important;
    border-radius:14px;
}

.admin-dashboard .dashboard-card h3{
    font-size:18px !important;
    margin-bottom:12px !important;
}

.admin-dashboard .dashboard-card p{
    font-size:18px !important;
    line-height:1.4 !important;
}

/* tablette */
@media (max-width:1200px){
    .admin-dashboard .dashboard-cards{
        grid-template-columns:repeat(2, 1fr);
    }
}

/* mobile */
@media (max-width:768px){
    .admin-dashboard .dashboard-cards{
        grid-template-columns:1fr;
    }
}

/* =========================================
   CORRECTION FINALE SUPERUSER DASHBOARD
========================================= */

.admin-dashboard{
    max-width:1200px !important;
    margin:40px auto !important;
    padding:20px !important;
}

/* CARDS STATISTIQUES */
.admin-dashboard .dashboard-cards{
    display:grid !important;
    grid-template-columns:repeat(4, 1fr) !important;
    gap:18px !important;
    margin:20px 0 30px 0 !important;
    align-items:stretch !important;
}

.admin-dashboard .dashboard-card{
    min-height:110px !important;
    height:auto !important;
    padding:18px 16px !important;
    border-radius:14px !important;
    text-align:center !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

.admin-dashboard .dashboard-card h3{
    font-size:18px !important;
    margin-bottom:10px !important;
    line-height:1.4 !important;
}

.admin-dashboard .dashboard-card p{
    font-size:18px !important;
    line-height:1.4 !important;
    margin:0 !important;
}

/* TABLEAU */
.dashboard-table{
    margin-top:25px !important;
}

/* BARRE RECHERCHE */
.search-box{
    display:flex !important;
    align-items:center !important;
    gap:0 !important;
    margin:20px 0 25px 0 !important;
    max-width:520px !important;
}

.search-box input{
    flex:1 !important;
    height:48px !important;
    padding:0 16px !important;
    border:1px solid #d9d9d9 !important;
    border-radius:8px 0 0 8px !important;
    font-size:15px !important;
}

.search-box button{
    width:60px !important;
    height:48px !important;
    border:none !important;
    border-radius:0 8px 8px 0 !important;
    background:#003366 !important;
    color:white !important;
    font-size:18px !important;
}

.btn-reset{
    margin-left:8px !important;
    background:#c0392b !important;
    color:white !important;
    padding:12px 16px !important;
    border-radius:8px !important;
}

/* RESPONSIVE */
@media (max-width:1100px){
    .admin-dashboard .dashboard-cards{
        grid-template-columns:repeat(2, 1fr) !important;
    }
}

@media (max-width:768px){
    .admin-dashboard .dashboard-cards{
        grid-template-columns:1fr !important;
    }

    .search-box{
        max-width:100% !important;
    }
}

/* =========================================
   SUPERUSER DASHBOARD
========================================= */

.page-superuser .dashboard-cards{
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    gap:18px;
    margin:20px 0 30px 0;
}

.page-superuser .dashboard-card{
    min-height:110px;
    padding:18px 16px;
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    border-top:5px solid #003366;
    display:flex;
    flex-direction:column;
    text-align: left;
}

.page-superuser .dashboard-card h3{
    font-size:18px;
    margin-bottom:10px;
    color:#003366;
}

.page-superuser .dashboard-card p{
    font-size:17px;
    font-weight:700;
    color:#003366;
}

/* =========================================
   DECORATION 2026 - TOOLBAR CORRIGEE
========================================= */

.page-decoration .toolbar-cards{
    display:flex;
    gap:15px;
    align-items:stretch;
    flex-wrap:wrap;
    width:100%;
}

.page-decoration .search-card{
    flex:1;
    min-width:300px;
}

.page-decoration .info-card{
    width:150px;
}

.page-decoration .manage-card{
    width:210px;
}

.page-decoration .export-card{
    width:180px;
}


.page-menu-gestion .dashboard-cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:25px;
    margin-top:25px;
}

.page-menu-gestion .dashboard-card{
    min-height:180px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
    padding:25px;
    text-align:center;
}

/* =========================================
   DOSSIER DIGNITAIRE
========================================= */

.page-dossier .result-card{
    padding:30px;
}

.page-dossier .result-body{
    display:flex;
    gap:30px;
    align-items:flex-start;
}

.page-dossier .result-photo img{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:1200px){

    .page-superuser .dashboard-cards{
        grid-template-columns:repeat(2, 1fr);
    }

    .page-decoration .toolbar-cards{
        grid-template-columns:1fr 1fr;
    }

    .page-menu-gestion .dashboard-cards{
        grid-template-columns:1fr;
    }
}

@media (max-width:768px){

    .page-superuser .dashboard-cards,
    .page-menu-gestion .dashboard-cards,
    .page-decoration .toolbar-cards{
        grid-template-columns:1fr;
    }

    .page-dossier .result-body{
        flex-direction:column;
        align-items:center;
    }
}

/* =========================================
   PAGE CONNEXION ADMIN
========================================= */

.admin-login-page{
    background:#f4f6f8;
}

.admin-login-section{
    min-height:calc(100vh - 220px);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.admin-login-card{
    width:100%;
    max-width:480px;
    background:#ffffff;
    padding:40px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border-top:6px solid #003366;
}

.admin-login-card h2{
    font-size:28px;
    color:#003366;
    text-align:center;
    margin-bottom:10px;
    font-weight:700;
}

.admin-login-info{
    text-align:center;
    color:#666;
    margin-bottom:30px;
    font-size:15px;
}

.admin-form-group{
    margin-bottom:22px;
}

.admin-form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#003366;
    font-size:15px;
}

.admin-form-group input{
    width:100%;
    height:52px;
    padding:0 15px;
    border:1px solid #d6dde5;
    border-radius:10px;
    font-size:15px;
    outline:none;
    transition:0.3s;
}

.admin-form-group input:focus{
    border-color:#003366;
    box-shadow:0 0 0 3px rgba(0,51,102,0.08);
}

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    padding-right:50px;
}

.toggle-password{
    position:absolute;
    right:15px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    font-size:18px;
    user-select:none;
}

.admin-login-btn{
    width:100%;
    height:52px;
    background:#003366;
    color:white;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:0.3s;
}

.admin-login-btn:hover{
    background:#004b99;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width:768px){

    .admin-login-card{
        padding:30px 20px;
    }

    .admin-login-card h2{
        font-size:24px;
    }
}
/* =========================================
   FOOTER INSTITUTIONNEL GLOBAL
========================================= */

footer{
    width:100%;
    margin-top:40px;
    padding:20px;
    text-align:center;
    font-size:15px;
    color:#fff;
    background:#2b66a9;
    border-top:3px solid #003366;
    letter-spacing:0.3px;
}


/* MOBILE */
@media (max-width:768px){
    footer{
        font-size:14px;
        padding:16px 15px;
    }
}
/* ===== FORMULAIRE MODERNE ===== */

.form-grid-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group{
    display: flex;
    flex-direction: column;
}

.form-group label{
    font-weight: 600;
    margin-bottom: 6px;
    color: #0d3b66;
}

.form-group input{
    padding: 12px;
    border: 1px solid #d6dbe1;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus{
    border-color: #0d3b66;
    outline: none;
    box-shadow: 0 0 0 2px rgba(13,59,102,0.1);
}

/* ===== PHOTO ===== */
.photo-upload input{
    padding: 10px;
    background: #f8f9fb;
    border: 1px dashed #cfd8e3;
}

/* ===== TITRES ===== */
h2{
    margin-bottom: 15px;
}

h3{
    margin: 20px 0 10px;
    color: #0d3b66;
}

/* ===== BOUTONS ===== */
button{
    background: #0d3b66;
    color: white;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

button:hover{
    background: #0a2e4f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px){
    .form-grid-2{
        grid-template-columns: 1fr;
    }
}

.main-footer{
    margin-top:40px;
    background:#0d3b66;
    color:white;
    text-align:center;
    padding:15px;
    font-size:14px;
}
/* ===== MERITES DESIGN ===== */

.merite-block{
    background: #ffffff;
    border: 1px solid #e3e6ea;
    border-left: 4px solid #0d3b66;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.2s;
}

.merite-block:hover{
    transform: translateY(-2px);
}

/* HEADER */
.merite-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.merite-title{
    font-weight:600;
    color:#0d3b66;
}

/* BOUTON SUPPRIMER */
.btn-remove{
    background:#0d3b66;
    color:white;
    border:none;
    width:35px;
    height:35px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

.btn-remove:hover{
    background:#082642;
}

/* GRID */
.merite-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:15px;
}

.merite-grid .full{
    grid-column: span 2;
}

/* INPUT */
.merite-grid input{
    padding:10px;
    border:1px solid #dcdcdc;
    border-radius:6px;
    font-size:14px;
}

/* RESPONSIVE */
@media(max-width:768px){
    .merite-grid{
        grid-template-columns:1fr;
    }

    .merite-grid .full{
        grid-column: span 1;
    }
}
.photo-edit{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:20px;
}

.photo-preview{
    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:10px;
    border:2px solid #ddd;
}
.suggestions-box{
    position:absolute;
    top:100%; /* ðŸ”¥ colle juste sous input */
    left:0;
    width:calc(100% - 60px); /* ðŸ”¥ Ã©vite bouton */
    background:white;
    border:1px solid #ddd;
    border-radius:8px;
    z-index:9999;
    max-height:250px;
    overflow-y:auto;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.suggestion-item{
    padding:10px;
    cursor:pointer;
    border-bottom:1px solid #eee;
}

.suggestion-item:hover{
    background:#f5f5f5;
}
/* ===== AUTOCOMPLETE RECHERCHE (SAFE) ===== */

.search-box{
    position:relative; /* IMPORTANT */
}

.suggestions-box{
    position:absolute;
    top:100%;
    left:0;
    width:calc(100% - 60px); /* Ã©vite bouton */
    max-width:400px;
    background:white;
    border:1px solid #ddd;
    border-radius:8px;
    z-index:9999;
    max-height:250px;
    overflow-y:auto;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);
    display:none;
}

.suggestion-item{
    padding:8px 12px;
    cursor:pointer;
    border-bottom:1px solid #eee;
}

.suggestion-item:hover{
    background:#f5f5f5;
}

.suggestion-item strong{
    font-size:14px;
}

.suggestion-item small{
    font-size:11px;
    color:#777;
}

.btn-reset-search{
    display:inline-block;
    background:#0d3b66;
    color:#fff;
    padding:8px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    transition:0.2s;
}

.btn-reset-search:hover{
    background:#c0392b;
}

.medal-card {
    width: 260px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 📸 PHOTO */
.card-photo {
    text-align: center;
    margin-bottom: 10px;
}

.card-photo img {
    width: 120px;      /* 🔥 taille réduite */
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #ddd;
}

/* 📄 CONTENU */
.card-content {
    text-align: center;
}

/* 🧑 NOM */
.card-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
}

/* 🔗 ACTIONS */
.card-actions {
    margin-top: 10px;
}

.card-actions a {
    text-decoration: none;
    margin: 0 5px;
}

.delete-btn {
    color: red;
}