
.auth-fluid {
    background: none;
}

:root {
    /* === COULEURS PRINCIPALES === */
    --primary-blue: #3774fe;
    --primary-blue-dark: #234eae;
    --primary-blue-background: rgba(55, 116, 254, 0.1);

    /* === COULEURS SECONDAIRES === */
    --secondary-gray: #DCDCDC;
    --secondary-gray-light: #EFEFEF;
    --secondary-gray-dark: #989898;

    /* === COULEURS DE FOND === */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #f5f5f5;
    --bg-gray: #e9ecef;
    --bg-input: #f8f9fa;

    /* === COULEURS DE BORDURE === */
    --border-focus: var(--primary-blue);

    /* === COULEURS DE TEXTE === */
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #666;
    --text-placeholder: #999;
    --text-white: #ffffff;

    /* === OMBRES === */
    --shadow-light: 1px 2px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover-primary: 0 4px 4px rgba(187, 66, 19, 0.2);

    /* === TAILLES DE POLICE === */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */
    --font-size-5xl: 2.5rem; /* 40px */

    /* === POIDS DE POLICE === */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* === HAUTEURS DE LIGNE === */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 2;

    /* === ESPACEMENTS === */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem; /* 8px */
    --spacing-md: 1rem; /* 16px */
    --spacing-md-2: 1.25rem; /* 20px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-2xl: 2.5rem; /* 40px */
    --spacing-3xl: 3rem; /* 48px */
    --spacing-4xl: 4rem; /* 64px */
    --spacing-5xl: 5rem; /* 80px */

    /* === RAYONS DE BORDURE === */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;

    /* === LARGEURS MAXIMALES === */
    --max-width-xs: 320px;
    --max-width-sm: 480px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1280px;
    --max-width-2xl: 1536px;
    --max-width-form: 500px;
    --max-width-content: 600px;

    /* === HAUTEURS === */
    --height-input: 50px;
    --height-button: 50px;
    --height-header: 70px;
    --height-photo: 300px;
    --height-photo-mobile: 200px;

    /* === TRANSITIONS === */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-all: all 0.3s ease;
    --transition-transform: transform 0.3s ease;
    --transition-opacity: opacity 0.3s ease;
    --transition-colors: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;

    /* === BREAKPOINTS === */
    --breakpoint-mb: 768px;
    --breakpoint-tb: 1024px;

    /* === ANIMATIONS === */
    --animation-duration-fast: 0.15s;
    --animation-duration-normal: 0.3s;
    --animation-duration-slow: 0.5s;
    --animation-duration-slower: 1s;

    /* === OPACITÉ === */
    --opacity-disabled: 0.5;
    --opacity-hover: 0.8;
    --opacity-active: 0.9;
    --opacity-overlay: 0.1;

    /* === VARIABLES SPÉCIFIQUES AU DESIGN === */
    --logo-font-size: var(--font-size-5xl);
    --title-font-size: var(--font-size-3xl);
    --subtitle-font-size: var(--font-size-xl);
    --form-padding: var(--spacing-4xl) var(--spacing-2xl);
    --section-padding: var(--spacing-4xl) var(--spacing-2xl);
    --mobile-padding: var(--spacing-2xl) var(--spacing-lg);

    /* === COULEURS D'ÉTAT === */
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;

    /* === COULEURS HOVER === */
    --hover-orange: var(--primary-blue-dark);
    --hover-gray: var(--secondary-gray-dark);
}

/* Couleur dark et light mode */
/* Par défaut (light) */
html[data-bs-theme="light"] {
    --text-title-color: var(--text-primary);
    --bg-color: #fff;
    --border-color: var(--secondary-gray-light);
    --bg-color-input: var(--secondary-gray-light);
}

/* Dark */
html[data-bs-theme="dark"] {
    --text-title-color: #8391a2;
    --bg-color: #37404a;
    --border-color: var(--secondary-gray-dark);
    --bg-color-input: #343a40;
}

* {
    padding: 0;
    margin: 0;
    font-family: "Rubik", sans-serif;
}

.title-connexion {
    color: var(--text-title-color);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
}

.page-connexion__separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-title-color); /* couleur du texte */
}

.page-connexion__separator::before,
.page-connexion__separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color); /* couleur des traits */
}

.page-connexion__separator::before {
    margin: 0 15px 0 0; /* espace entre texte et trait */
}

.page-connexion__separator::after {
    margin: 0 0 0 15px; /* espace entre texte et trait */
}

/* bouton primary */

.btn-connexion-pc {
    background-color: var(--primary-blue);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
    border: 0;
    width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.btn-connexion-pc:hover {
    color: var(--text-primary);
    background-color: var(--hover-orange);
    box-shadow: var(--shadow-hover-primary);
    color: white;
    transform: scale(1.02); /* Agrandit légèrement le bouton (2%) */
}

.btn-connexion-pc:focus {
    background-color: var(--hover-orange);
    color: var(--text-white);
    transform: scale(0.98); /* Rétrécit légèrement quand cliqué */
    box-shadow: 0 0 white;
}


/* input */

#mf_connexion_mdp,
#mf_connexion_login,
#mf_connexion_email,
#mf_mdp_new_1,
#mf_mdp_new_2 {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-color-input);
    border-radius: var(--radius-md);
}

#mf_instance {
    padding: var(--spacing-md);
    height: 3.4rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color-input);
    border-radius: var(--radius-md);
    z-index: 0;
}

.pc-instance-select-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: var(--font-size-sm);
    color: var(--text-title-color);
    z-index: 2;
    transform: translateY(-100%);
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group:hover {
    box-shadow: var(--shadow-light);
    border-radius: var(--radius-md);
}

.input-group .toggle-delete {
    z-index: 1;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-title-color);
    font-size: var(--font-size-xl);
    display: none;
}

/*
 * AJOUTS POUR LE LABEL FLOTTANT
 */

/* 2. On positionne le label PAR-DESSUS l'input */
.form-label {
    position: absolute;
    top: 50%;
    left: var(--spacing-md-2);
    transform: translateY(-50%);
    color: var(--text-placeholder);
    font-weight: var(--font-weight-semibold);
    padding: 0 5px;
    margin: 0;
    transition: all 0.2s ease-out;
    display: none;

    /* Astuce cruciale : permet de cliquer "à travers" le label sur l'input en dessous */
    pointer-events: none;
    z-index: 0;
}


/* 3. L'animation ! Quand l'input est focus OU qu'il n'est pas vide... */
.form-control:focus + .form-label,
.form-label.has-value {
    top: 0;
    left: 0;
    font-size: var(--font-size-sm);
    color: var(--secondary-gray-dark);
    transform: translateY(-100%);
    z-index: 2;
    display: inline;
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

/* 5. On ajuste le style du focus de l'input pour que le label ressorte bien */
#mf_connexion_mdp:focus,
#mf_connexion_login:focus,
#mf_connexion_email:focus,
#mf_mdp_new_1:focus,
#mf_mdp_new_2:focus,
#mf_instance:focus {
    z-index: 1; /* Se place sous le label mais au-dessus du reste */
    border: 1px solid var(--border-focus);
    background-color: var(--bg-color); /* Important pour le fond du label */
}

/* encart droite */

.card-pc {
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.connexion-left {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.page-connexion__left__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--spacing-xl);
}

.auth-fluid .auth-fluid-form-box {
    padding: 0 3rem;
}

.title-connexion {
    font-size: var(--font-size-xl);
}
.subtitle-connexion {
    text-align: center;
}

/*suppresion espace*/
.connexion-right {
    padding: 0 !important;
    margin: 0 !important;
    background-color: var(--bg-color) !important;
}

.slide-connexion-bg {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.slide-connexion-bg-unique {
    height: 100vh;
    background-color: var(--primary-blue-background);
}

.img-top-connexion-slide {
    height: 70vh;
    border-radius: 0px;
    object-fit: cover;
}

.body-bot-connexion-slide {
    height: 30vh;
    padding: 2rem;
    background-color: var(--primary-blue-background);
}

.font-size-card-slide-pc-info {
    font-size: var(--font-size-xl);
    color: var(--text-title-color);
    font-weight: var(--font-weight-semibold);
}

.card-pc-left-slide {
    min-height: 180px; /* augmente la taille */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-light);
}

.card-body-pc {
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image-top-pc {
    max-height: 15vh;
    object-fit: fill;
}

@media (max-width: 1324px) {
    .card-image-top-pc {
        object-fit: cover;
    }
}

.color-icon-arrow {
    color: var(--primary-blue);
    font-size: var(--font-size-xl);
}

.card-title-slide-pc {
    color: var(--primary-blue);
    padding-bottom: var(--spacing-md);
}

.card-text-slide-pc {
    font-size: var(--font-size-base);
    color: var(--text-title-color);
}

.full-page-card {
    background-color: var(--primary-blue-background);
    padding: 60px 40px; /* Generous padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    box-sizing: border-box;
}

.full-page-card blockquote {
    margin: 0;
    padding: 0;
    font-size: 2.2em; /* Larger font size for prominence */
    line-height: 1.4;
    color: var(--text-title-color);
    margin-bottom: 25px; /* Space below the quote */
}

.full-page-card blockquote p {
    margin-bottom: 10px; /* Space between lines of the quote */
}

.full-page-card .highlight {
    color: var(--primary-blue); /* Orange color for highlights */
    font-weight: 700;
}

.full-page-card .author {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-connexion__right__body {
    background-color: var(--primary-blue-background);
    height: 100vh;
    padding: 20px;
}

/* slide caroussel avec les 3 cards */

.stat-card {
    flex: 1; /* les cards prennent la même hauteur */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    background-color: var(--bg-color);
    text-align: center;
}

.stat-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.stat-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}