body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; background-color: #f4f7f9; min-height: 100vh; }

/* === BOOTSTRAP surcharge  === */
:root {
    --bs-primary: #17a2b8;
    --bs-primary-rgb: 23, 162, 184;
    --bs-link-color: #17a2b8;
    --bs-link-hover-color: #3c727a;
    --bs-link-hover-color-rgb: 19, 132, 150;

    --bs-btn-hover-border-color: #17a2b8;
    --bs-btn-hover-bg: hsl(188, 41%, 53%);

}

.link-primary:hover,
.link-primary:focus {
    color: var(--bs-link-hover-color) !important;
}

.btn {
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
    }

.btn-group-sm>.btn, .btn-sm {
   padding: 4px;
    font-size: 0.8em;
    font-weight: 200;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #17a2b8;
    --bs-btn-border-color: #2492a3;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6bb6c2;
    --bs-btn-hover-border-color: #17a2b8;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0eb1ca;
    --bs-btn-active-border-color: #17a2b8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #17a2b8;
    --bs-btn-disabled-border-color: #17a2b8;
}
.btn-info {
    --bs-btn-color: #f5f3f3;
    --bs-btn-bg: #03d4fd;
    --bs-btn-border-color: #0dcaf0;
    --bs-btn-hover-color: #03d4fd;
    --bs-btn-hover-bg: #f5f3f3
    --bs-btn-hover-border-color: #121313;
    --bs-btn-focus-shadow-rgb: 11, 172, 204;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #3dd5f3;
    --bs-btn-active-border-color: #25cff2;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #979797;
    --bs-btn-disabled-bg: #0dcaf0;
    --bs-btn-disabled-border-color: #0dcaf0;
}

select { padding: 4px 8px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 0.9em; background: white; cursor: pointer; color: #1e293b; font-weight: 600; }

/* === HEADER =============================== */
 .header { color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
   
.header a { color: white; text-decoration: none; padding: 8px 15px; border: 1px solid white; border-radius: 4px; transition: background-color 0.3s; font-size: 0.9em; }
.header a:hover { background-color: rgba(255, 255, 255, 0.2); }
.header h1 { font-size: 1.5em; margin: 0; }
.header { background-color: #17a2b8;}

/* === LAYOUT =============================== */

.shadow-card{background: white; 
    margin: 20px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);}

.content { padding: 20px; max-width: 1000px; width: 95%; margin: auto; margin-top: 10px;}
.welcome-card { background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }

/* === TITRES =============================== */ 
h2 { text-align: center; color: #333; margin-bottom: 30px; }
h3 { color: #333; border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 20px; }
.card h4 { margin: 0; color: #007bff; }

/* === CARD GRID =============================== */
.card-grid { display: grid; gap: 20px; margin-top: 30px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); }
.card p { font-size: 0.9em; color: #666; }

/* === TAGS =============================== */
.role-tag { display: inline-block; background-color: #007bff; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; font-weight: 600; margin-top: 5px; }
.functional-tag { background-color: #dc3545; margin-right: 5px; }
.author-badge { display: inline-block; background-color: #28a745; color: white; padding: 4px 8px; border-radius: 20px; font-weight: 600; text-decoration: none; margin-left: 10px; transition: background-color 0.2s; font-size: 0.9em;

/* === FORMS =============================== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #555; }
.form-group input, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 16px; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus { border-color: #0056b3; outline: none; }
.form-section { margin-bottom: 30px; padding: 15px; border: 1px solid #ddd; border-radius: 6px; }
.form-section h3 { color: #17a2b8; margin: 0 0 10px 0; }
.static-info { font-weight: 600; color: #333; margin-top: 5px; }

/* === RADIO / CHECKBOX =============================== */
.checkbox-group { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.checkbox-group label { margin-left: 10px; cursor: pointer; margin-bottom: 0; }
.radio-option { display: flex; align-items: center; white-space: nowrap; margin-right: 20px; }
.hidden-group { display: none; }

/* === BUTTONS =============================== */
.btn-submit, .btn-validate { width: 100%; padding: 15px; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 1.1em; font-weight: 700; transition: background-color 0.3s; }
.btn-submit { background-color: #007bff; }
.btn-submit:hover { background-color: #0056b3; }
a.btn-submit, a.btn-validate { text-decoration: none; }


.btn-submit {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    border-radius: 0.375rem;
 
    text-align: center;
    text-decoration: none;
    vertical-align: middle;

    cursor: pointer;
    user-select: none;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out;
}


  .btn-action {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;

    color: #fff;
    background-color: #0d6efd;
    border: 1px solid #000;
    border-radius: 0.375rem;

    text-align: center;
    text-decoration: none;
    vertical-align: middle;

    cursor: pointer;
    user-select: none;
    transition: color .15s ease-in-out,
                background-color .15s ease-in-out,
                border-color .15s ease-in-out,
                box-shadow .15s ease-in-out;
}


/* === ALERTS =============================== */
.alert-error { background-color: #fdd; color: #c00; padding: 10px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #f99; }
.alert-success { background-color: #d4edda; color: #155724; padding: 15px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #c3e6cb; }

/* === LINKS =============================== */
.action-link { text-align: center; margin-top: 20px; font-size: 0.9em; color: #17a2b8; }
.action-link a { color: blue; text-decoration: none; font-weight: 600; }
.action-link a:hover { text-decoration: underline; }

/* === SPECIAL TEXT TOOLS =============================== */
.fit-oneline { display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === MOBILE ========================================== */
@media (max-width: 576px) {
    .fit-oneline { font-size: clamp(0.7rem, 2vw, 1.2rem); }
    .header { font-size: clamp(0.8rem, 2vw, 1.3rem); }
    .mini-header { font-size: clamp(0.8rem, 2vw, 1.2rem); padding-left: 2%; background-color: #17a2b8; color: white; display: block; }
    .action-link { font-size: small; }
}
