/* debut du framework tyche info */
/* Variables globales */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #81C784;
    --background-color: #F4F6F8;
    --menu-bg-color: rgb(202, 214, 203);
    --menu-bg-color-hover: rgb(173, 191, 174);
    --text-color: #333;
    --border-color: #CCC;
    --card-bg-color: #FFF;
    --button-hover-color: #388E3C;
    --input-bg-color: #FFF;
    --input-border-color: #CCC;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);


    --danger-color: #dc3545;
    --danger-hover-color: #b52a36;
    --warning-color: #ffc107;
    --warning-hover-color: #e0a800;
    --gray-color: #6c757d;
    --gray-hover-color: #5a6268;

    --top-bar-height: 40px;

    --bp-xs: 480px;
    --bp-sm: 640px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1280px;

    /* espacements par défaut pour la grille auto */
    --grid-gap: 1rem;
}

:root .dark {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --background-color: #121212;
    --menu-bg-color: #1E1E1E;
    --menu-bg-color-hover: #292929;
    --text-color: #EEE;
    --border-color: #292929;
    --card-bg-color: #1C1C1C;
    --button-hover-color: #66BB6A;
    --input-bg-color: #1E1E1E;
    --input-border-color: #444;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);

    --danger-color: #b52a36;
    --danger-hover-color: #931d2a;
    --warning-color: #e0a800;
    --warning-hover-color: #c69500;
    --gray-color: #495057;
    --gray-hover-color: #343a40;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100dvh;
    /*overflow-x: hidden;*/
}

/* Background Color */
.bg-default {
    background-color: var(--background-color);
}

.bg-menu {
    background-color: var(--menu-bg-color);
}

.bg-card {
    background-color: var(--card-bg-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-danger {
    background-color: var(--danger-color);
}

.bg-warning {
    background-color: var(--warning-color);
}

.bg-gray {
    background-color: var(--gray-color);
}

/* Other Color Background */
.bg-dark {
    background-color: #333;

    &.bg-hover {
        &:hover {
            background-color: #555;
        }
    }
}

.bg-light {
    background-color: #f4f4f4;

    &.bg-hover {
        &:hover {
            background-color: #e0e0e0;
        }
    }
}

.bg-white {
    background-color: #FFF;

    &.bg-hover {
        &:hover {
            background-color: #f0f0f0;
        }
    }
}

.bg-red {
    background-color: #f00;

    &.bg-hover {
        &:hover {
            background-color: #c00;
        }
    }
}

.bg-green {
    background-color: #0f0;

    &.bg-hover {
        &:hover {
            background-color: #0c0;
        }
    }
}

.bg-blue {
    background-color: #00f;

    &.bg-hover {
        &:hover {
            background-color: #00c;
        }
    }
}

.bg-yellow {
    background-color: #ff0;

    &.bg-hover {
        &:hover {
            background-color: #cc0;
        }
    }
}

.bg-orange {
    background-color: #f90;

    &.bg-hover {
        &:hover {
            background-color: #c60;
        }
    }
}

.bg-purple {
    background-color: #90f;

    &.bg-hover {
        &:hover {
            background-color: #60c;
        }
    }
}

.bg-pink {
    background-color: #f0f;

    &.bg-hover {
        &:hover {
            background-color: #c0c;
        }
    }
}

.bg-cyan {
    background-color: #0ff;

    &.bg-hover {
        &:hover {
            background-color: #0cc;
        }
    }
}

.bg-transparent {
    background-color: transparent;

    &.bg-hover {
        &:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }
    }
}

/* bg hover one of the above */
.bg-hover {
    transition: background-color 0.3s ease;
}

/* Text Color */
.text-white {
    color: #FFF !important;
}
.text-dark {
    color: #000 !important;
}
.text-primary {
    color: var(--primary-color) !important;
}
.text-secondary {
    color: var(--secondary-color) !important;
}
.text-danger {
    color: var(--danger-color) !important;
}
.text-warning {
    color: var(--warning-color) !important;
}
.text-gray {
    color: var(--gray-color) !important;
}


/* Disposition */
.hide {
    display: none !important;
}
.show {
    display: block !important;
}
.flex {
    display: flex !important;
}
.inline-flex {
    display: inline-flex !important;
}
.block {
    display: block !important;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;

    @media (min-width: 640px) { max-width: 600px; }
    @media (min-width: 768px) { max-width: 720px; }
    @media (min-width: 1024px){ max-width: 960px; }
    @media (min-width: 1280px){ max-width: 100%; }
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--auto-min, 220px), 1fr));
    gap: var(--grid-gap);
}

/* presets de largeur minimale */
.auto-160 { --auto-min: 160px; }
.auto-200 { --auto-min: 200px; }
.auto-220 { --auto-min: 220px; }
.auto-260 { --auto-min: 260px; }
.auto-300 { --auto-min: 300px; }

.h-left {
    align-items: start;
}
.h-center {
    align-items: center;
}
.h-right {
    align-items: end;
}

.v-left {
    justify-content: start;
}
.v-center {
    justify-content: center;
}
.v-right {
    justify-content: end;
}
.v-space-between {
    justify-content: space-between;
}
.v-space-around {
    justify-content: space-around;
}

.self-h-left {
    align-self: start;
}
.self-h-center {
    align-self: center;
}
.self-h-right {
    align-self: end;
}
.self-v-top {
    justify-self: start;
}
.self-v-center {
    justify-self: center;
}
.self-v-bottom {
    justify-self: end;
}

.indent-none {
    overflow: hidden;
}
.indent-all {
    overflow: scroll !important;
}
.indent-x {
    overflow-x: scroll !important;
}
.indent-y {
    overflow-y: scroll !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: var(--grid-gap);
    /*margin-right: -15px;
    margin-left: -15px;*/
}
.col {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.col-sm {
    flex: 0 0 50%;
    max-width: 50%;
}
.col-md {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
}
.col-lg {
    flex: 0 0 25%;
    max-width: 25%;
}
.col- {
    sm {
        max-width: 50%;
    }
    md {
        max-width: 33.3333%;
    }
    lg {
        max-width: 25%;
    }
}

/* Typographie */
.title {
    font-weight: 700;
    color: var(--text-color);
}

.text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
p {
    font-size: 1rem;
    line-height: 1.5;
    /*margin-bottom: 1rem;*/
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-sm {
    display: inline-block;
    padding: 0.4rem;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 10px;

    width: fit-content;
    height: fit-content;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #FFF;
}
.btn-primary:hover {
    background-color: var(--button-hover-color);
}
.btn-danger {
    background-color: var(--danger-color);
    color: #FFF;
}
.btn-danger:hover {
    background-color: var(--danger-hover-color);
}
.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}
.btn-warning:hover {
    background-color: var(--warning-hover-color);
}
.btn-secondary {
    background-color: var(--gray-color);
    color: #FFF;
}
.btn-secondary:hover {
    background-color: var(--gray-hover-color);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #FFF;
}

/* Formulaires */
/*.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: var(--input-bg-color);
    box-shadow: var(--box-shadow);
    color: var(--text-color);
}*/
.form-control {
    width: 100%;
    padding: 0.25rem;
    border: 1px solid var(--input-border-color);
    border-radius: 2px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    background-color: #F1F1F1;
    color: var(--text-color);
}
.form-control:focus {
    /* color outline */
    outline: 1px solid var(--primary-color);
    border-color: var(--primary-color);
}
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}
.form-check:checked {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
}

.form-check:checked::after {
    content: "✔";
    position: absolute;
    width: 100%;
    height: 100%;
    color: white;
    text-align: center;
}
/*.form-check input {
    margin-right: 0.5rem;
}*/

/* Cartes */
.card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);

    padding: 20px;
}

.glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    backdrop-filter: blur(1px);
    box-shadow: inset -10px -8px 0px -11px rgba(255, 255, 255, 1),
    inset 0px -9px 0px -8px rgba(255, 255, 255, 1);
    opacity: 0.6;
    z-index: -1;
    filter: blur(1px) drop-shadow(10px 4px 6px black) brightness(115%);
}

/* Tableaux */
.table-container {
    overflow-x: auto;

    width: fit-content;
    height: fit-content;

    max-width: 100%; 
    max-height: 100%;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.table > tbody > tr {
    cursor: pointer;
    background-color: var(--input-bg-color);

    &:hover {
        background-color: var(--menu-bg-color);
    }
}
.table th, .table td {
    padding: 2px;
    font-size: 12px;
    text-align: left;

    border: none;
    border-bottom: solid 1px lightgray;
}

.table thead {
    position: sticky;
    top: 0;
    /*background-color: var(--background-color);*/
}

/* Modaux */
.foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-bg-color);
    box-shadow: var(--box-shadow);
    padding: 20px;
    border-radius: 6px;
    z-index: 1050;
    display: none;
}
.modal.active {
    display: block;
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}
.modal-backdrop.active {
    display: block;
}

/* Alertes */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1rem;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Utilitaires */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Margins all/bottom/top/left/right */
.m-0 {
    margin: 0;
}
.m-1 {
    margin: 0.25rem;
}
.m-2 {
    margin: 0.5rem;
}
.m-3 {
    margin: 1rem;
}
.m-4 {
    margin: 1.5rem;
}
.m-5 {
    margin: 3rem;
}
.m-6 {
    margin: 4.5rem;
}
.m-auto {
    margin: auto;
}
.m-0-bottom {
    margin-bottom: 0;
}
.m-1-bottom {
    margin-bottom: 0.25rem;
}
.m-2-bottom {
    margin-bottom: 0.5rem;
}
.m-3-bottom {
    margin-bottom: 1rem;
}
.m-4-bottom {
    margin-bottom: 1.5rem;
}
.m-5-bottom {
    margin-bottom: 3rem;
}
.m-6-bottom {
    margin-bottom: 4.5rem;
}
.m-auto-bottom {
    margin-bottom: auto;
}
.m-0-top {
    margin-top: 0;
}
.m-1-top {
    margin-top: 0.25rem;
}
.m-2-top {
    margin-top: 0.5rem;
}
.m-3-top {
    margin-top: 1rem;
}
.m-4-top {
    margin-top: 1.5rem;
}
.m-5-top {
    margin-top: 3rem;
}
.m-6-top {
    margin-top: 4.5rem;
}
.m-auto-top {
    margin-top: auto;
}
.m-0-left {
    margin-left: 0;
}
.m-1-left {
    margin-left: 0.25rem;
}
.m-2-left {
    margin-left: 0.5rem;
}
.m-3-left {
    margin-left: 1rem;
}
.m-4-left {
    margin-left: 1.5rem;
}
.m-5-left {
    margin-left: 3rem;
}
.m-6-left {
    margin-left: 4.5rem;
}
.m-auto-left {
    margin-left: auto;
}
.m-0-right {
    margin-right: 0;
}
.m-1-right {
    margin-right: 0.25rem;
}
.m-2-right {
    margin-right: 0.5rem;
}
.m-3-right {
    margin-right: 1rem;
}
.m-4-right {
    margin-right: 1.5rem;
}
.m-5-right {
    margin-right: 3rem;
}
.m-6-right {
    margin-right: 4.5rem;
}
.m-auto-right {
    margin-right: auto;
}

/* Paddings all/bottom/top/left/right */
.p-0 {
    padding: 0;
}
.p-1 {
    padding: 0.25rem;
}
.p-2 {
    padding: 0.5rem;
}
.p-3 {
    padding: 1rem;
}
.p-4 {
    padding: 1.5rem;
}
.p-5 {
    padding: 3rem;
}
.p-6 {
    padding: 4.5rem;
}
.p-0-bottom {
    padding-bottom: 0;
}
.p-1-bottom {
    padding-bottom: 0.25rem;
}
.p-2-bottom {
    padding-bottom: 0.5rem;
}
.p-3-bottom {
    padding-bottom: 1rem;
}
.p-4-bottom {
    padding-bottom: 1.5rem;
}
.p-5-bottom {
    padding-bottom: 3rem;
}
.p-6-bottom {
    padding-bottom: 4.5rem;
}
.p-0-top {
    padding-top: 0;
}
.p-1-top {
    padding-top: 0.25rem;
}
.p-2-top {
    padding-top: 0.5rem;
}
.p-3-top {
    padding-top: 1rem;
}
.p-4-top {
    padding-top: 1.5rem;
}
.p-5-top {
    padding-top: 3rem;
}
.p-6-top {
    padding-top: 4.5rem;
}
.p-0-left {
    padding-left: 0;
}
.p-1-left {
    padding-left: 0.25rem;
}
.p-2-left {
    padding-left: 0.5rem;
}
.p-3-left {
    padding-left: 1rem;
}
.p-4-left {
    padding-left: 1.5rem;
}
.p-5-left {
    padding-left: 3rem;
}
.p-6-left {
    padding-left: 4.5rem;
}
.p-0-right {
    padding-right: 0;
}
.p-1-right {
    padding-right: 0.25rem;
}
.p-2-right {
    padding-right: 0.5rem;
}
.p-3-right {
    padding-right: 1rem;
}
.p-4-right {
    padding-right: 1.5rem;
}
.p-5-right {
    padding-right: 3rem;
}
.p-6-right {
    padding-right: 4.5rem;
}

/* Width / Height / Flex */
.w-100 {
    width: 100%;
}
.w-75 {
    width: 75%;
}
.w-50 {
    width: 50%;
}
.w-25 {
    width: 25%;
}
.w-20 {
    width: 20%;
}
.w-15 {
    width: 15%;
}
.w-10 {
    width: 10%;
}
.w-5 {
    width: 5%;
}
.w-400-px {
    width: 400px;
    max-width: 100dvi;
}
.w-350-px {
    width: 350px;
    max-width: 100dvi;
}
.w-300-px {
    width: 300px;
    max-width: 100dvi;
}
.w-250-px {
    width: 250px;
    max-width: 100dvi;
}
.w-200-px {
    width: 200px;
    max-width: 100dvi;
}
.w-150-px {
    width: 150px;
    max-width: 100dvi;
}
.w-100-px {
    width: 100px;
    max-width: 100dvi;
}
.w-75-px {
    width: 75px;
    max-width: 100dvi;
}
.w-50-px {
    width: 50px;
    max-width: 100dvi;
}
.w-25-px {
    width: 25px;
    max-width: 100dvi;
}
.w-20-px {
    width: 20px;
    max-width: 100dvi;
}
.w-15-px {
    width: 15px;
    max-width: 100dvi;
}
.w-10-px {
    width: 10px;
    max-width: 100dvi;
}
.w-5-px {
    width: 5px;
    max-width: 100dvi;
}
.h-100 {
    height: 100%;
}
.h-75 {
    height: 75%;
}
.h-50 {
    height: 50%;
}
.h-25 {
    height: 25%;
}
.h-20 {
    height: 20%;
}
.h-15 {
    height: 15%;
}
.h-10 {
    height: 10%;
}
.h-5 {
    height: 5%;
}
.h-400-px {
    height: 400px;
    max-height: 100dvh;
}
.h-350-px {
    height: 350px;
    max-height: 100dvh;
}
.h-300-px {
    height: 300px;
    max-height: 100dvh;
}
.h-250-px {
    height: 250px;
    max-height: 100dvh;
}
.h-200-px {
    height: 200px;
    max-height: 100dvh;
}
.h-150-px {
    height: 150px;
    max-height: 100dvh;
}
.h-100-px {
    height: 100px;
    max-height: 100dvh;
}
.h-75-px {
    height: 75px;
    max-height: 100dvh;
}
.h-50-px {
    height: 50px;
    max-height: 100dvh;
}
.h-25-px {
    height: 25px;
    max-height: 100dvh;
}
.h-20-px {
    height: 20px;
    max-height: 100dvh;
}
.h-15-px {
    height: 15px;
    max-height: 100dvh;
}
.h-10-px {
    height: 10px;
    max-height: 100dvh;
}
.h-5-px {
    height: 5px;
    max-height: 100dvh;
}
.wd {
    width: 100dvi;
}
.hd {
    height: 100dvh;
}
.flex1 {
    flex: 1;
}

/* Radius */
.radius-0 {
    border-radius: 0 !important;
}
.radius-1 {
    border-radius: 4px !important;
}
.radius-2 {
    border-radius: 8px !important;
}
.radius-3 {
    border-radius: 12px !important;
}
.radius-4 {
    border-radius: 16px !important;
}
.radius-less {
    border-radius: 25% !important;
}
.radius-big {
    border-radius: 50% !important;
}
.radius-1-tb-left {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
}
.radius-1-tb-right {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}
.radius-2-tb-left {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
.radius-2-tb-right {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
.radius-3-tb-left {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}
.radius-3-tb-right {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
.radius-4-tb-left {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}
.radius-4-tb-right {
    border-top-right-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
}
.radius-less-tb-left {
    border-top-left-radius: 25% !important;
    border-bottom-left-radius: 25% !important;
}
.radius-less-tb-right {
    border-top-right-radius: 25% !important;
    border-bottom-right-radius: 25% !important;
}
.radius-big-tb-left {
    border-top-left-radius: 50% !important;
    border-bottom-left-radius: 50% !important;
}
.radius-big-tb-right {
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

/* Border */
.border-1 {
    border: 1px solid var(--border-color) !important;
}
.border-2 {
    border: 2px solid var(--border-color) !important;
}
.border-3 {
    border: 3px solid var(--border-color) !important;
}
.border-4 {
    border: 4px solid var(--border-color) !important;
}
.border-5 {
    border: 5px solid var(--border-color) !important;
}
.border-top-1 {
    border-top: 1px solid var(--border-color) !important;
}
.border-top-2 {
    border-top: 2px solid var(--border-color) !important;
}
.border-top-3 {
    border-top: 3px solid var(--border-color) !important;
}
.border-top-4 {
    border-top: 4px solid var(--border-color) !important;
}
.border-top-5 {
    border-top: 5px solid var(--border-color) !important;
}
.border-bottom-1 {
    border-bottom: 1px solid var(--border-color) !important;
}
.border-bottom-2 {
    border-bottom: 2px solid var(--border-color) !important;
}
.border-bottom-3 {
    border-bottom: 3px solid var(--border-color) !important;
}
.border-bottom-4 {
    border-bottom: 4px solid var(--border-color) !important;
}
.border-bottom-5 {
    border-bottom: 5px solid var(--border-color) !important;
}
.border-left-1 {
    border-left: 1px solid var(--border-color) !important;
}
.border-left-2 {
    border-left: 2px solid var(--border-color) !important;
}
.border-left-3 {
    border-left: 3px solid var(--border-color) !important;
}
.border-left-4 {
    border-left: 4px solid var(--border-color) !important;
}
.border-left-5 {
    border-left: 5px solid var(--border-color) !important;
}
.border-right-1 {
    border-right: 1px solid var(--border-color) !important;
}
.border-right-2 {
    border-right: 2px solid var(--border-color) !important;
}
.border-right-3 {
    border-right: 3px solid var(--border-color) !important;
}
.border-right-4 {
    border-right: 4px solid var(--border-color) !important;
}
.border-right-5 {
    border-right: 5px solid var(--border-color) !important;
}

/* Cursors */
.pointer {
    cursor: pointer;
}

.not-allowed {
    cursor: not-allowed;
}

.default {
    cursor: default;
}

.crosshair {
    cursor: crosshair;
}

/*.text {
    cursor: text;
}*/

/* Animation / Transition */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out;
}

.shadow-hover {
    box-shadow: var(--box-shadow);
    transition-duration: 0.3s;

    &:hover {
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

    /* animation sur les cliquables */
    &:active {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsivité */
@media (max-width: 768px) {
    .col-md {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
@media (max-width: 576px) {
    .col-sm {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 5) Utilitaires responsive (show/hide + widths + alignements) */
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: initial !important; } }

@media (max-width: 639.98px) { .show-sm-only { display: initial !important; } }
@media (min-width: 640px)     { .show-sm-only { display: none !important;   } }

/* Largeurs responsive */
@media (min-width: 640px) {
    .sm-w-100 { width: 100% !important; }
    .sm-w-75  { width: 75%  !important; }
    .sm-w-50  { width: 50%  !important; }
    .sm-w-33  { width: 33.333% !important; }
    .sm-w-25  { width: 25%  !important; }
}
@media (min-width: 768px) {
    .md-w-100 { width: 100% !important; }
    .md-w-75  { width: 75%  !important; }
    .md-w-50  { width: 50%  !important; }
    .md-w-33  { width: 33.333% !important; }
    .md-w-25  { width: 25%  !important; }
}
@media (min-width: 1024px) {
    .lg-w-100 { width: 100% !important; }
    .lg-w-75  { width: 75%  !important; }
    .lg-w-50  { width: 50%  !important; }
    .lg-w-33  { width: 33.333% !important; }
    .lg-w-25  { width: 25%  !important; }
}

/* Alignements responsive (flex) */
@media (max-width: 639.98px) {
    .stack-sm        { flex-direction: column !important; }
    .stack-sm .col   { --span: 12 !important; }
    .h-center-sm     { justify-content: center !important; }
    .v-center-sm     { align-items: center !important; }
}

/*html { font-size: clamp(14px, 1.6vw, 16px); }
h1   { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
h2   { font-size: clamp(1.4rem, 3.2vw, 2rem); }
.text, p { font-size: clamp(0.9rem, 2.2vw, 1rem); }*/