/* Variables CSS reprises du style A */
:root {
    --primary: #2D9CDB;
    --accent: #F2C94C;
    --success: #27AE60;
    --bg: #F8F9FA;
    --text: #0B1B2B;
    --muted: #5B6B7C;
    --radius: 16px;
    --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }


body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}


/* Wrapper pour le centrage uniquement */
.center-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background: #fff;
    padding: 30px;
    width: 400px;
    margin: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 800;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: var(--text);
    font: inherit;
}

textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: var(--text);
    font: inherit;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

button {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: translateY(-1px);
}

.message {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 12px;
    text-align: center;
}

.success {
    background: #d1f1dc;
    color: #0f5132;
    border: 1px solid #a4e4b6;
}

.error {
    color: #d41c2e;
    font-weight: 700;
    margin-top: 0.5rem;
}

.logout {
    text-align: center;
    margin-top: 20px;
}

.logout a {
    color: var(--primary);
    text-decoration: none;
}

.logout a:hover {
    text-decoration: underline;
}

.sublink-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 0.75rem;
}

.sublink-form a {
    color: var(--muted);
}

/* Logo styles */
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 800;
      color: var(--text);
      text-decoration: none;
    }

    .logo-img {
      height: 40px;
    margin-left: 10px;
    }

    /* Navbar modifiée */
    .navbar {
      background: #fff;
      padding: 20px 40px;
      margin-bottom: 30px;
      display: flex;
      justify-content: space-around;
      align-items: center;
    }

    .navbar ul {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 25px;
    }

    .navbar a:not(.logo) {
      color: var(--muted);
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s ease;
    }

    .navbar a:not(.logo):hover {
      color: var(--primary);
    }

    .navbar a.active {
      color: var(--primary);
      font-weight: 600;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
      }

      .navbar ul {
        gap: 20px;
        flex-wrap: wrap;
      }

      .navbar a:not(.logo) {
        font-size: 13px;
      }
    }

/* Header avec titre à gauche et bouton à droite */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-title {
    color: var(--text);
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.header-button {
    background: var(--primary);
    color: white;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.header-button:hover {
    transform: translateY(-1px);
}

.header-button.disabled {
    background: #939393;
    cursor: default;
}

/* Tableau simple */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
}

table {
    width: 100%;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #E6E8EB;
}

th {
    background: linear-gradient(180deg, #FBFBFD, #F6F8FA);
    padding: 15px;
    text-align: left;
    font-weight: 800;
    color: var(--text);
    border-bottom: 1px solid #E6E8EB;
}

td {
    padding: 15px;
    border-bottom: 1px solid #EEF1F4;
    vertical-align: top;
}

tbody tr:hover {
    background: #F6F8FA;
}

tbody tr:last-child td {
    border-bottom: none;
}

.container_text_center p {
    display: flex;
    flex-direction: row;
    margin-top: 10rem;
    justify-content: center;
}

/* Pills de base */
.pill {
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    text-align: center;
    white-space: nowrap;
    margin: 2px;
}

/* Pills colorées */
.pill-success {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.pill-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.pill-warning {
    background: rgba(242, 201, 76, 0.15);
    color: #b45309;
    border: 1px solid rgba(242, 201, 76, 0.3);
}

.pill-info {
    background: rgba(45, 156, 219, 0.08);
    color: var(--primary);
    border: 1px solid rgba(45, 156, 219, 0.2);
}

.pill-primary {
    background: rgba(45, 156, 219, 0.08);
    color: var(--primary);
    border: 1px solid rgba(45, 156, 219, 0.2);
}

.pill-secondary {
    background: rgba(91, 107, 124, 0.08);
    color: var(--muted);
    border: 1px solid rgba(91, 107, 124, 0.2);
}

.pill-dark {
    background: rgba(11, 27, 43, 0.08);
    color: var(--text);
    border: 1px solid rgba(11, 27, 43, 0.2);
}

/* Modal styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.2s ease-out;
    scrollbar-width: none;
}

.modal-header {
    padding: 20px 20px;
    border-bottom: 1px solid #EAECEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 800;
}

.modal-close {
    background: transparent;
    border: 0;
    font-size: 20px;
    color: var(--muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #F6F8FA;
    color: var(--text);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #EAECEE;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form styles cohérents */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.1);
}

/* Boutons du modal */
.btn {
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.2s ease;
    text-decoration: none;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background: #bbbbbb;
    cursor: default;
    color: white;
    transform: none;
}

.btn-secondary {
    background: #fff;
    color: var(--muted);
    border-color: #E6E8EB;
}

.btn-secondary:hover {
    background: #F6F8FA;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

/* Container pour les notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 420px;
}

/* Style de base pour les notifications */
.notification {
    border-radius: 12px;
    padding: 15px 20px;
    font-weight: 500;
    position: relative;
    margin-bottom: 10px;
    transform: translateX(100%);
    transition: all 0.3s ease;
    opacity: 0;
    border: 1px solid;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 14px;
    box-shadow: var(--shadow);
}

/* Animation d'entrée */
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Animation de sortie */
.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Success - Vert */
.notification.success {
    background: #d1f1dc;
    color: #0f5132;
    border-color: #a4e4b6;
}

/* Error/Alert - Rouge */
.notification.error,
.notification.alert {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Warning - Orange */
.notification.warning {
    background: rgba(242, 201, 76, 0.15);
    color: #b45309;
    border-color: rgba(242, 201, 76, 0.3);
}

/* Info - Bleu */
.notification.info {
    background: rgba(45, 156, 219, 0.08);
    color: var(--primary);
    border-color: rgba(45, 156, 219, 0.2);
}

/* Bouton de fermeture */
.notification .notification-close {
    all: initial;
    background: none !important;
    border: none !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
    color: inherit !important;
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    line-height: 1 !important;
}

.notification .notification-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.notification .notification-close:focus {
    outline: none !important;
    background: rgba(0, 0, 0, 0.15) !important;
}

.notification-close:hover {
    opacity: 1;
}

.notification-message {
    margin-right: 1rem;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Styles pour les tabs dans les modals */
.tab {
    overflow: hidden;
    border-bottom: 1px solid #E6E8EB;
    background: #F6F8FA;
    margin: 0 -20px 0 -20px;
}

.tab button {
    background: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: 0.3s;
    font-size: 14px;
    color: var(--text);
    width: 50%;
    text-align: center;
    font-weight: 600;
    border-radius:0;
    border-top-left-radius:12px;
    border-top-right-radius:12px;
}

.tab button:hover {
    background: #EAECEE;
}

.tab button.active {
    background: #d5d7d9;
}

.tabcontent {
    display: none;
    padding: 20px 0;
    border: none;
    background: white;
    max-height: 250px;
    overflow-y: auto;
    margin: 0;
}

.tabcontent.active {
    display: block;
}

/* Clear float après les tabs */
.tab::after {
    content: "";
    display: table;
    clear: both;
}

/* -------- Accordions (mois / élèves) -------- */
.accordion-container { 
    display: grid; 
    gap: 14px; 
}

.month-container, 
.student-container {
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 10;
}

.student-container {
    margin: 0.5rem 0;
}

.month-header, 
.student-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    background: #F6F8FA;
    flex-wrap: nowrap;
}



.month-header:hover:not(:has(.btn-close-month:hover)):not(:has(.contain-pill-icon:hover)) {
    background: #EAECEE; 
}


.student-header:hover { 
    background: #EAECEE; 
}

.month-title {
    margin: 8px;
    font-size: 18px;
    color: var(--text);
    font-weight: 800;
    flex: 0 0 auto;
    margin-right: 12px;
}

.student-title { 
    margin: 0; 
    font-size: 16px; 
    color: var(--text); 
    font-weight: 600; 
}

.fold-icon {
    display: inline-block;
    width: 16px;
    transition: transform .18s ease;
    font-weight: 700;
    color: var(--muted);
}

.month-header.active .fold-icon,
.student-header.active .fold-icon { 
    transform: rotate(90deg); 
}

.month-panel, 
.student-panel { 
    display: none; 
    padding: 10px 14px 14px; 
}

.badge-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text);
    background: rgba(45, 156, 219, 0.08);
    border: 1px solid rgba(45, 156, 219, 0.2);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

/* -------- Liste des sessions -------- */
.sessions-list { 
    display: grid; 
    gap: 10px; 
}

.session-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #E6E8EB;
    border-radius: 10px;
    background: #fff;
}

.session-row:hover { 
    background: #F6F8FA; 
}

.session-main { 
    display: grid; 
    gap: 6px; 
}

.session-date { 
    font-weight: 600; 
    color: var(--text); 
}

.session-meta { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
}

.chip {
    font-size: 12px;
    color: var(--text);
    background: #F6F8FA;
    border: 1px solid #E6E8EB;
    padding: 2px 8px;
    border-radius: 999px;
}

.chip.status { 
    background: rgba(39, 174, 96, 0.08); 
    border-color: rgba(39, 174, 96, 0.2);
    color: var(--success);
}

.session-actions { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.link { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 500; 
}

.link:hover { 
    text-decoration: underline; 
}

.link.danger { 
    color: #d11a2a; 
}

.sep { 
    color: var(--muted); 
}

/* Responsive */
@media (max-width: 720px) {
    .session-row { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .session-actions { 
        padding-top: 6px; 
    }
}

.btn-close-month {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    width: auto !important;
    min-width: 0;
    max-width: none;
    flex: 0 0 auto !important;
    margin-left: 12px;
    background-color: var(--bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
    font-weight: 700;
    box-shadow:var(--shadow);
}

.btn-close-month:hover { 
    background: #d1eeff; 
}

.btn-close-month:disabled {
    background: #c5c5c5;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: default;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-close-month:disabled:hover,
.btn-close-month:disabled:focus {
    outline: none;
}

.btn-close-month.done {
    background: var(--success);
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: default;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-close-month.done:hover,
.btn-close-month.done:focus {
    background: var(--success);
    outline: none;
}

.month-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    flex: 0 0 auto;
}

@media (max-width: 820px) {
    .month-stats {
        display: none;
    }
}

.contain-pill-icon {
    display: flex;
    align-items: center;
}

.pill-icon-btn {
    cursor: pointer;
    font-size: 14px;
    color: var(--primary);
    margin-left: 6px;
    transition: color 0.2s, transform 0.2s;
}

.pill-icon-btn:hover {
    color: #1b7fb7;
    transform: scale(1.1);
}

.pill-icon-btn:active {
    transform: scale(0.95);
}

/* intro & lien */
.fact-intro {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin: 6px 0 14px;
}

.fact-model {
    text-align: center;
    margin: 8px 0 16px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn-link:hover { 
    color: #1b7fb7; 
    text-decoration: underline; 
}

/* zone d'upload (dropzone) */
.file-field {
    display: grid;
    margin-top: 3rem;
}

.file-label {
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.file-drop {
    position: relative;
    border: 2px dashed #E6E8EB;
    background: #F6F8FA;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: border-color .2s, background .2s;
}

.file-drop:hover { 
    border-color: var(--muted); 
    background: #EAECEE; 
}

.file-drop.dragover { 
    border-color: var(--primary); 
    background: rgba(45, 156, 219, 0.08); 
}

#factFile {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop .icon {
    font-size: 28px;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 6px;
}

.file-drop .headline {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.file-drop .subline {
    font-size: 13px;
    color: var(--muted);
}

.file-name {
    margin: 10px 0;
    font-size: 13px;
    text-align: center;
    color: var(--text);
}

.file-help {
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

#factError {
    color: #d11a2a;
    font-size: 13px;
    text-align: center;
    display: none;
}

/* profile */
.profile-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 8px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Cards */
.card-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 720px) {
    .card-grid { 
        grid-template-columns: 1fr; 
    }
}

.card-click {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    cursor: pointer;
    border: 1px solid #E6E8EB;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 12px;
}

.card-click:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #dfe6ee;
}

.card-click h3 { 
    margin: 0 0 6px; 
    font-size: 18px; 
    color: var(--text);
    font-weight: 800;
}

.card-click p { 
    margin: 0; 
    color: var(--muted); 
    font-size: 14px; 
}

.card-cta { 
    white-space: nowrap; 
    font-size: 13px; 
    color: var(--primary); 
    font-weight: 600; 
}

.card-click.notallowedcard {
    background: #c4c4c4;
    cursor: default;
    opacity: 0.3;
}

.card-cta.notallowedcard {
    color: #000;
}

.card-click.alert {
    background: #ffcccc;
    cursor: default;
    opacity: 0.7;
}

.card-cta.alert {
    color: #000;
}


.card-click.done
{
    background: #c8e8b0;
}


.card-click.notallowedcard:hover {
    transform: none;  
}

/* Form (⚠️ fix critique: border-box) */
.profile-form {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    overflow: hidden;
}

.profile-form h2 {
    margin: 0 0 18px 0;
    font-size: 20px;
    color: var(--text);
    font-weight: 800;
}

/* Grille interne du form, qui ne déborde pas */
.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 720px) {
    .profile-form .form-row { 
        grid-template-columns: 1fr; 
    }
}

/* Autoriser le shrink des enfants dans la grid */
.profile-form .form-group { 
    min-width: 0; 
}

/* Si texte très long (erreurs/valeurs), ne casse pas la mise en page */
.profile-form input,
.profile-form textarea,
.profile-form select {
    width: 100%;
    max-width: 100%;
}

.error { 
    overflow-wrap: anywhere; 
}

/* Texte "read-only" qui a la même gueule qu'un input */
.view-text {
    padding: 12px;
    border: 1px solid #E6E8EB;
    border-radius: 12px;
    background: #F6F8FA;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--text);
}

/* S'assurer que hidden gagne toujours */
[hidden] { 
    display: none !important;
}

.false-link-span {
    text-decoration: underline;
    cursor: pointer;
    color: var(--primary);
}

.false-link-span:hover {
    color: #1b7fb7;
}


/* Footer */
.footer2 {
    padding: 28px 0;
    border-top: 1px solid #EAECEE;
    margin-top: 40px;
    position: relative; /* Par défaut */
    bottom:0;
}

.footer2.sticky {
    position: absolute;
    bottom: 0;
    width: 100%;
}


.logo-mark2 {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
}

.muted2 {
    color: var(--muted);
}

.muted2 a {
    color:var(--primary);
    text-decoration: none;
}

.muted2 a:hover {
    text-decoration: underline;
}


.container2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive pour le footer */
@media (max-width: 680px) {
    .container2 {
        padding: 0 16px;
    }
}


html
{
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}


.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    color: white;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
}


.actions-cell {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background: #f8f9fa;
}

.edit-btn {
    color: #007bff;
}

.edit-btn:hover {
    background: rgba(0, 123, 255, 0.1);
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

.action-btn i {
    width: 16px;
    height: 16px;
}

.form-group.reduced_gap
{
    margin-bottom:12px;
}

.form-group.reduced_gap label
{
    margin-bottom:0;
}


.text-modal-presentation
{
    font-size: 14px;color: #333;text-align: left;margin-bottom: 20px;margin-top: -5px;
}


.uList-modal
{
    font-size: 14px; color: #333; margin: 15px 30px 5px 0; line-height: 1.6;
}


.uList-modal li
{
    margin:10px 0;
}