:root {
    /* Palette de fond */
    --color-bg-start: #020408;
    --color-bg-end: #0a0a14;
    --color-spotlight: rgba(0, 169, 157, 0.1); /* Turquoise from brand guide */
    
    /* Palette de texte */
    --color-text-primary: #f0f2f5;
    --color-text-secondary: #a0a7b5;
    --color-text-muted: #6b7280;
    
    /* Palette de la carte */
    --color-card-bg: rgba(17, 24, 39, 0.75);
    --color-card-border: rgba(55, 65, 81, 0.5);
    
    /* Palette des champs */
    --color-input-bg: rgba(31, 41, 55, 0.8);
    --color-input-border: #374151;
    
    /* Palette d'action (selon votre demande) */
    --color-action-start: #1c398e;
    --color-action-end: #1447e6;
    --color-focus: var(--color-action-end);
    
    /* Polices */
    --font-main: 'Ubuntu', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* Rayons */
    --radius-md: 0.5rem;
    --radius-lg: 0.875rem;
}

/* --------------------------------- */
/*          STYLES DE BASE           */
/* --------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ui);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--color-bg-start);
    background-image: 
        radial-gradient(ellipse at center, var(--color-spotlight) 0%, transparent 60%),
        linear-gradient(170deg, var(--color-bg-start) 0%, var(--color-bg-end) 100%);
}

/* --------------------------------- */
/*       ÉLÉMENTS DE LA PAGE         */
/* --------------------------------- */
.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.page-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 3rem 3rem;
    z-index: -1;
    opacity: 0.5;
}

.language-switcher {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

/* On utilise des liens <a> au lieu de <button> */
.language-switcher a {
    background: none; border: none; color: var(--color-text-muted);
    cursor: pointer; padding: 0.25rem; transition: color 0.3s ease; opacity: 0.7;
    text-decoration: none;
}

.language-switcher a.active { color: var(--color-text-primary); font-weight: 500; opacity: 1; }
.language-switcher a:not(.active):hover { color: var(--color-text-secondary); opacity: 1; }
.language-switcher .separator { width: 1px; height: 0.875rem; background-color: var(--color-input-border); opacity: 0.7; }

/* ... (le reste de votre CSS reste inchangé) ... */

/* --------------------------------- */
/*       FORMULAIRE DE CONNEXION     */
/* --------------------------------- */
.login-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--color-card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.login-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-lg); border: 1px solid transparent;
    background: linear-gradient(135deg, var(--color-card-border), transparent, var(--color-card-border)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out; mask-composite: exclude; pointer-events: none;
}

.login-header { text-align: center; margin-bottom: 2rem; }
.logo { width: 160px; height: auto; margin: 0 auto 1.5rem auto; display: block; }
.login-header p { font-size: 1rem; font-weight: 500; color: var(--color-text-primary); font-family: var(--font-main); }
.login-header .subtitle { font-size: 0.875rem; color: var(--color-text-secondary); margin-top: 0.5rem; line-height: 1.5; max-width: 380px; margin-left: auto; margin-right: auto; }

.login-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--color-text-secondary); }

.access-type-selector { display: flex; background-color: var(--color-input-bg); border-radius: var(--radius-md); padding: 0.25rem; border: 1px solid var(--color-input-border); }
.access-type-btn { flex: 1; padding: 0.5rem; font-size: 0.8rem; font-weight: 500; color: var(--color-text-secondary); background: transparent; border: none; border-radius: 0.375rem; cursor: pointer; transition: all 0.3s ease; }
.access-type-btn:hover:not(.active) { background-color: rgba(255,255,255,0.05); }
.access-type-btn.active {
    color: #fff;
    background-image: linear-gradient(to right, var(--color-action-start), var(--color-action-end));
    box-shadow: 0 2px 10px -2px rgba(20, 71, 230, 0.5);
}

.input-group { position: relative; }
.input-group svg { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); width: 1.125rem; height: 1.125rem; color: var(--color-text-muted); pointer-events: none; transition: color 0.3s ease; }
.form-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; background-color: var(--color-input-bg); border: 1px solid var(--color-input-border); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: 0.9rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-input::placeholder { color: var(--color-text-muted); }
.form-input:focus { outline: none; border-color: var(--color-focus); box-shadow: 0 0 0 3px rgba(20, 71, 230, 0.25); }
.form-input:focus + svg { color: var(--color-focus); }

.submit-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.75rem 1rem; font-size: 0.9rem; font-weight: 500;
    color: #fff; border: none; border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.4s ease-in-out; margin-top: 0.5rem;
    background-image: linear-gradient(to right, var(--color-action-start), var(--color-action-end), var(--color-action-start));
    background-size: 200% auto;
}

.submit-btn:hover {
    background-position: right center;
    box-shadow: 0 8px 25px -8px rgba(20, 71, 230, 0.6);
    transform: translateY(-2px);
}

.submit-btn svg { width: 1.125rem; height: 1.125rem; transition: transform 0.3s ease; }
.submit-btn:hover svg { transform: translateX(3px); }

.page-footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center; /* Assure le centrage du texte */
    color: var(--color-text-muted);
    font-size: 0.8rem;
    z-index: 10;
}

/* --------------------------------- */
/*             ANIMATIONS            */
/* --------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.page-wrapper { animation: fadeIn 1s ease-out forwards; }
.login-card { animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.animated-item { opacity: 0; animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.4s; } .delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.6s; }


/* /assets/style.css */

/* --- STYLE DE L'ENCADRÉ DE CONSENTEMENT --- */
.consent-popup {
    position: fixed;
    bottom: 2rem; /* Espace par rapport au bas de la page */
    right: 2rem;   /* Espace par rapport à la gauche */
    max-width: 400px;
    background-color: #1f1f1f; /* Un peu plus clair que le fond */
    color: #f0f0f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border: 1px solid #333;

    /* Animation d'apparition */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none; /* Inactif quand caché */
}

.consent-popup.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* Actif quand visible */
}

.consent-popup h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 500;
    color: #fff;
}

.consent-popup p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}

.consent-popup a {
    color: #4dabf7;
    text-decoration: underline;
}

.consent-buttons {
    display: flex;
    justify-content: flex-end; /* Aligne les boutons à droite */
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.consent-btn {
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.9rem;
}

/* --- LE "NUDGE" DESIGN --- */

/* Bouton ACCEPTER : Action principale, visuellement fort */
.consent-btn.accept {
    background-color: #2f9e44; /* Vert positif */
    color: white;
}
.consent-btn.accept:hover {
    background-color: #37b24d;
    transform: translateY(-2px);
}

/* Bouton REFUSER : Action secondaire, visuellement faible */
.consent-btn.decline {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #555;
}
.consent-btn.decline:hover {
    background-color: #333;
    color: #fff;
}

/* Pour les petits écrans */
@media (max-width: 500px) {
    .consent-popup {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        width: auto;
    }
    .page-wrapper{
        padding-top: 70px;
        align-items: flex-start;
    }
}