
/****************************/
/** SURCHARGE DE Tailwind  **/
/****************************/

body {
    font-family: 'Open Sans', sans-serif;
	font-size: 0.9rem;
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--color-primary);
}

header {
    background-color: var(--color-primary);
    padding : 0 1.2rem;
}

.container {
    margin: 0 auto;
    padding: 1.5rem;
}



/****************************/
/**   DEF. PROPRIETAIRES   **/
/**   prefixer avec "mf-"  **/
/****************************/


.mf-btn {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-color: var(--color-primary);
    border-radius: 0.25rem;
    border-style: none;
}

.mf-btn:hover {
    transform: translateY(-1px);
    background-color: var(--color-secondary);
    box-shadow: 0 0.3rem 0.9rem var(--color-secondary);
    border-color: var(--color-secondary);
}

.mf-text-env-shadow {
    text-shadow: 0px 0px 10px rgb(255 0 0);
}

/*== Apercus medias POY ==*/
/*========================*/
/* Apercus (avant upload) et vignettes (apres upload) : confines dans une boite
   250x250 en conservant le ratio (portrait comme paysage, sans deformation).
   Definie ici car les utilitaires max-h-* / max-w-* de Tailwind sont purges. */
.mf-media-preview {
    max-height: 250px;
    max-width: 250px;
    height: auto;
    width: auto;
}

/* Vignette cliquable (admin uniquement) : ouvre la lightbox pleine taille. */
.js-media-zoom {
    cursor: zoom-in;
}

/* Lightbox media POY (admin) : affiche l'image en taille reelle pour un
   controle qualite avant validation. Etat ouvert via .is-open (on n'utilise
   pas .hidden de Tailwind pour eviter tout conflit d'ordre de chargement). */
.mf-media-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}
.mf-media-modal.is-open {
    display: flex;
}
.mf-media-modal img {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}
/*== Language Switcher ==*/
/*=======================*/
.mf-language-switcher-standalone {
    background-color: var(--color-primary);
}
.mf-language-switcher {
    display: flex;
    gap: 0.6rem;
    justify-content: right;
    background-color: var(--color-primary);
}
.mf-language-switcher a {
    padding: 0.4rem 0.7rem;
    background: #f0f0f0;
    border-radius: 0.3rem;
    text-decoration: none;
    color: var(--color-black);
    font-weight: bold;
    transition: all 0.2s;
}
.mf-language-switcher a.active {
    background: var(--color-primary);
    color: var(--color-yellow);
}
.mf-language-switcher a:hover {
    color: var(--color-yellow);
}
.mf-btn-practical-info {
    background-color: var(--color-black) !important;
    color: var(--color-yellow) !important;
}


.mf-container-login {
    max-width: 31rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}

.mf-logo {
	background: url(../img/logo.png) center center no-repeat;
	height: 50px;
	display: block;
	margin: 0 auto;
}

.mf-primary-title {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: center;
    color: var(--color-black);
}

.mf-login-instruction {
    width: 100%;
    padding-bottom: 0.5rem;
    /* min-height: 6rem; */
    text-align: justify; 
}

.mf-btn-logout {
    background-color: var(--color-black);
    border-color: white;
    border-width: thin;
    border-style: solid;
}

.mf-btn-logout:hover {
    color: var(--color-yellow);
    transition: all 0.5s;
    box-shadow: 0.1rem 0.1rem 0.9rem rgb(255 255 255 / 35%);
    transition: all 0.3s; 
}

.mf-btn-status-validated {
    border-width: 1px;
    border-color: var(--color-black);
    box-shadow: 0.2rem 0.3rem 0.9rem rgb(8 7 7 / 30%);
    border-style: solid;
    background-color: #dcfce7;
}
.mf-btn-status-pending {
    border-width: 1px;
    border-color: var(--color-black);
    box-shadow: 0.2rem 0.3rem 0.9rem rgb(8 7 7 / 30%);
    border-style: dashed;
    background-color: var(--color-yellow);
}
.mf-btn-status-refused {
    border-width: 1px;
    border-color: #d72726;
    box-shadow: 0.2rem 0.3rem 0.9rem rgb(8 7 7 / 30%);
    border-style: dashed;
    background-color: #fbcfe8;
}
.mf-btn-status-waiting {
    border-width: 1px;
    border-color: #feff00;
    box-shadow: 0.2rem 0.3rem 0.9rem rgb(8 7 7 / 30%);
    border-style: dashed;
    background-color: #ffb100;
}


/*== Alerte SessionTimeout ==*/
/*===========================*/
.mf-timeout-container {
    max-width: 31rem;
    margin: 9rem auto;
    padding: 3rem;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
    opacity: 0.95;
}
.mf-timeout-icon {
    font-size: 4.5rem;
}
.mf-timeout-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #856404;
}
.mf-timeout-message {
    font-size: 1rem;
    margin-bottom: 3rem;
    line-height: 1.35rem;
}



/*==   Tooltip    ==*/
/*==================*/
/* Style du tooltip */
/* Style de base du tooltip */
.mf-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
/* Contenu du tooltip qui sera affiché en dessous */
.mf-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 125%;  /* Positionner le tooltip au-dessus de l'élément */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-black);
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    visibility: hidden;   /* Le tooltip est caché par défaut */
    opacity: 0;           /* Le tooltip est invisible par défaut */
    z-index: 1;
    pointer-events: none;  /* Empêche d'interférer avec les autres éléments */
    white-space: nowrap;   /* Permet le retour à la ligne */
    width: auto;           /* La largeur du tooltip s'adapte au contenu */
    min-width: 120px;      /* Largeur minimale pour s'assurer qu'il n'est pas trop petit */
    word-wrap: break-word; /* Permet au texte de se couper correctement si nécessaire */
}
/* Lorsque l'élément est survolé, le tooltip devient visible */
.mf-tooltip:hover::after {
    visibility: visible;
    opacity: 1;  /* Rendre le tooltip visible */
}


/*== ERROR PAGES (401..) ==*/
/*=========================*/
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-10px) rotate(-5deg)} 75%{transform:translateX(10px) rotate(5deg)} }
.mf-float { animation: float 3s ease-in-out infinite; }
.mf-shake:hover { animation: shake 0.5s ease-in-out; }
.mf-gradient-text {
    background: linear-gradient(135deg, #ff6b6b 0%, #f94d6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mf-gradient-text-404 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mf-gradient-text-405 {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mf-gradient-text-500 {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mf-glow {
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}
.mf-glow-404 {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}
.mf-glow-405 {
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.mf-glow-500 {
    text-shadow: 0 0 20px rgba(249, 115, 22, 0.5);
}
.mf-error-body {
    background: url('../img/background.jpg') no-repeat center center fixed;
    background-size: cover;
}
.mf-overlay {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}


/*== Admin ==*/
/*===========*/
/* Admin Styles */
.mf-admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 3rem;
    background: rgb(103 109 112);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
    border-style: double;
    border-width: 5px;
    border-color: rgb(255 255 255);
}
.mf-admin-nav a {
    padding: 10px 20px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
}
.mf-admin-nav a:hover {
    background: #f0f0f0;
    color: var(--color-black);
}
.mf-admin-nav a.active {
    background: var(--color-black);
    color: white;
}
.mf-admin-content-box {
    background: rgb(255 255 255 / 0.95);
    padding: 40px;
    /*border-radius: 10px;*/
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    /*margin-top: 30px;*/
}


.mf-recent-section {
    margin-top: 30px;
}
.mf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
/* surcharge table-manager.css */
.table-responsive {
    overflow-x: auto;
}
/* !!! NE PAS RENOMMER admin-table : est un repère pour table-manager.css pour injecter du code */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.admin-table thead {
    background: linear-gradient(135deg, #484f56 0%, #75858e 100%);
    color: white;
}
.admin-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}
.admin-table tbody tr {
    transition: background 0.3s;
}
.admin-table tbody tr:hover {
    background: #f8f9fa;
}
.admin-table input[type="text"],
.admin-table input[type="email"],
.admin-table input[type="number"],
.admin-table select {
    width: 100%;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}
.admin-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.mf-btn-small {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 5px;
}
.mf-btn-view {
  display: inline-block;
  transition: transform 0.2s ease-in-out;
}
.mf-btn-view:hover {
  transform: scale(1.5);
  text-decoration: none;
}
.mf-btn-edit {
    background: #72808a;
    color: white;
}
.mf-btn-edit:hover {
    background: #4a545c;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(110, 124, 133, 1);
}
.mf-btn-delete {
    background: #dc3545;
    color: white;
}
.mf-btn-delete:hover {
    background: #b11f2d;
    box-shadow: 0 5px 15px #6e7c85;
}

.mf-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #72808a;
    color: white;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    line-height: 1;
    white-space: nowrap;
}

.mf-badge-stand {
    display: inline-block;
    padding: 5px 8px;
    background: #a4a4a4;
    color: white;
    font-weight: bold;
    font-size: 1em;
    line-height: 1;
    border-width: 3px;
    border-style: double;
}
.mf-badge-module {
    display: inline-block;
    padding: 5px 8px;
    color: var(--color-black);
    border-radius: 20px;
    font-weight: bold;
    line-height: 1;
    border-style: dotted;
    border-width: 1px;
    border-color: black;
    background-color: white;
}


/* Animation du dropdown */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.2s ease-out;
}

/* Style du dropdown */
.dropdown-menu {
    min-width: 14rem;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid #e5e7eb;
    border-top: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

/* Effet hover sur les boutons d'action principaux */
.actions-dropdown button:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Stand_View */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}
.role-0 {
    background-color: #e5e7eb;
    color: #374151;
}
.role-1 {
    background-color: #dbeafe;
    color: #1e40af;
}
.role-3 {
    background-color: #fef3c7;
    color: #92400e;
}
.role-9 {
    background-color: #fee2e2;
    color: #991b1b;
    font-weight: 700;
}



/* ATTENDEES STATS */
.mf-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.mf-stat-card {
    background: linear-gradient(135deg, #484f56 0%, #75858ee0 100%);
    color: white;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 80%);
    transition: transform 0.3s;
}
.mf-stat-icon {
    font-size: 3em;
    opacity: 0.9;
}
.mf-stat-content h3 {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: bold;
}
.mf-stat-content p {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 0;
}
/* Blocs imbriqués */
.mf-stat-card.mf-stat-full {
    grid-column: 1 / -1;
}
.mf-stat-card-nested {
    background: linear-gradient(135deg, #2060a0 0%, #75858ee0 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 80%);
    grid-column: 1 / -1;
    display: flex;
    align-items: stretch;
    gap: 20px;
    transition: transform 0.3s;
}
.mf-stat-nested-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 300px;
}
.mf-stat-nested-children {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.mf-stat-nested-child {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 15px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}
.mf-stat-nested-child.mf-stat-success {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.4) 0%, rgba(16, 185, 129, 0.3) 100%);
}
.mf-stat-nested-child.mf-stat-warning {
    border-left: 4px solid #FF5722;
    background: linear-gradient(135deg, rgb(255 0 0 / 55%) 0%, rgb(245 11 11 / 38%) 100%);
}
.mf-stat-child-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mf-stat-child-icon {
    font-size: 2em;
    opacity: 0.9;
}
.mf-stat-child-info {
    flex: 1;
}
.mf-stat-child-number {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}
.mf-stat-child-label {
    font-size: 0.85em;
    opacity: 0.9;
}
.mf-stat-child-badge {
    font-size: 1.8em;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    align-self: center; 
}
/* Responsive */
@media (max-width: 1024px) {
    .mf-stat-card-nested {
        flex-direction: column;
    }
    
    .mf-stat-nested-header {
        border-right: none;
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
        padding-right: 0;
        padding-bottom: 20px;
        min-width: auto;
    }
    
    .mf-stat-nested-children {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .mf-stat-nested-children {
        grid-template-columns: 1fr;
    }
    
    .mf-stat-nested-child {
        flex-direction: column;
        text-align: center;
    }
    
    .mf-stat-child-left {
        flex-direction: column;
    }
}

/* Release notes popup — fade indicator */
.mf-release-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 6px; /* laisse la scrollbar visible */
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, #f3f4f6);
    pointer-events: none;
}
}