/* ============================================================
   COMPONENTS.CSS — PARTIE 1/3
   Composant : text-input (Jetstream)
   ============================================================ */

/* ============================================================
   1. STYLE DE BASE — INPUT
   ============================================================ */

.c-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Désactivé */
.c-input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ============================================================
   2. FOCUS PREMIUM
   ============================================================ */

.c-input:focus {
    outline: none;
    border-color: #0d9488; /* turquoise premium */
    box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}

/* ============================================================
   3. ERREURS
   ============================================================ */

.c-input-error {
    border-color: #e11d48 !important;
    box-shadow: 0 0 0 3px rgba(225,29,72,0.25);
}

/* ============================================================
   4. THEMES — HARMONISATION
   ============================================================ */

/* Neutre */
body[data-login-theme="neutre"] .c-input {
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* macOS */
body[data-login-theme="macos"] .c-input {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.4);
}

/* iOS 17 */
body[data-login-theme="ios17"] .c-input {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(22px) saturate(180%);
    border-radius: 0.55rem;
}

/* Material */
body[data-login-theme="material"] .c-input {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Mica */
body[data-login-theme="mica"] .c-input {
    background: rgba(255,255,255,0.60);
    border-radius: 0.5rem;
}

/* Glassmorphism */
body[data-login-theme="glass"] .c-input {
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.35);
}

/* Minimal */
body[data-login-theme="minimal"] .c-input {
    background: #fff;
    border: 1px solid #d1d5db;
}

/* ============================================================
   5. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .c-input {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }
}
/* ============================================================
   COMPONENTS.CSS — PARTIE 2/3
   Composants : input-label, input-error, select
   ============================================================ */

/* ============================================================
   1. LABEL — input-label
   ============================================================ */

.c-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* Thèmes */
body[data-login-theme="macos"] .c-label,
body[data-login-theme="ios17"] .c-label,
body[data-login-theme="glass"] .c-label {
    color: #1f2937;
}

body[data-login-theme="minimal"] .c-label {
    color: #111;
}


/* ============================================================
   2. ERREURS — input-error
   ============================================================ */

.c-error {
    color: #e11d48;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
}

.c-error::before {
    content: "⚠ ";
    font-weight: 600;
}


/* ============================================================
   3. SELECT — menus déroulants
   ============================================================ */

.c-select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.95rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.c-select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}

/* Désactivé */
.c-select:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Thèmes */
body[data-login-theme="neutre"] .c-select {
    background: #fff;
    border: 1px solid #e5e7eb;
}

body[data-login-theme="macos"] .c-select {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.4);
}

body[data-login-theme="ios17"] .c-select {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(22px) saturate(180%);
    border-radius: 0.55rem;
}

body[data-login-theme="material"] .c-select {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

body[data-login-theme="mica"] .c-select {
    background: rgba(255,255,255,0.60);
    border-radius: 0.5rem;
}

body[data-login-theme="glass"] .c-select {
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.35);
}

body[data-login-theme="minimal"] .c-select {
    background: #fff;
    border: 1px solid #d1d5db;
}


/* ============================================================
   4. RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 767px) {
    .c-label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }

    .c-select {
        font-size: 0.9rem;
        padding: 0.5rem 0.7rem;
    }
}
/* ============================================================
   COMPONENTS.CSS — PARTIE 3/3
   Boutons, Dropdown, Modal, Nav-links, Tables
   ============================================================ */

/* ============================================================
   1. BOUTONS — PRIMARY / SECONDARY / DANGER
   ============================================================ */

.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    cursor: pointer;
    border: none;
}

/* Primary */
.c-btn-primary {
    background: #0d9488;
    color: white;
}

.c-btn-primary:hover {
    background: #0b7f72;
    transform: translateY(-2px);
}

/* Secondary */
.c-btn-secondary {
    background: #e5e7eb;
    color: #111;
}

.c-btn-secondary:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

/* Danger */
.c-btn-danger {
    background: #e11d48;
    color: white;
}

.c-btn-danger:hover {
    background: #be123c;
    transform: translateY(-2px);
}


/* ============================================================
   2. DROPDOWN
   ============================================================ */

.c-dropdown {
    position: relative;
    display: inline-block;
}

.c-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    min-width: 180px;
    padding: 0.35rem 0;
    z-index: 50;
}

.c-dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease;
}

.c-dropdown-item:hover {
    background: #f3f4f6;
}


/* ============================================================
   3. MODAL
   ============================================================ */

.c-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.c-modal-window {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.c-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.c-modal-content {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}


/* ============================================================
   4. NAV-LINK / RESPONSIVE NAV-LINK
   ============================================================ */

.c-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.375rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.c-nav-link:hover {
    background: #f3f4f6;
    color: #111;
}

.c-nav-link-active {
    background: #e0f2f1;
    color: #0d9488;
    font-weight: 600;
}


/* Mobile version */
.c-nav-link-mobile {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.375rem;
}

.c-nav-link-mobile:hover {
    background: #f3f4f6;
    color: #111;
}


/* ============================================================
   5. PERFORMANCE TABLE
   ============================================================ */

.c-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.c-table th {
    background: #f3f4f6;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    color: #374151;
}

.c-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
}

.c-table tr:hover td {
    background: #f9fafb;
}






