@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,500&display=swap');

:root {
    --primary-color: #1a1918;
    --secondary-color: #353332;
    --tertiary-color: #1a19182d;
    --text-color: #1a1918;
    --background-color: #f5f0ea;
    --background-card: #fdfcfb;
    --sidebar-color: #f5f0ea;
    --sidebar-hover-color: #f5f0ea;
    --sidebar-active-color: #f5f0ea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

body {
    background-color: var(--background-color);
}

.title {
    font-family: 'Instrument Serif', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    z-index: 100;
}

header .logo img {
    width: 50px;
    height: 50px;
}

header nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
}

header nav ul li a:hover {
    background: var(--tertiary-color);
}

header nav ul li a.active {
    color: var(--primary-color);
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styles pour les formulaires d'authentification */
.wrapper {
    max-width: 600px;
    margin: auto;
    padding: 2rem;
    background: var(--background-card);
    border-radius: 10px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--primary-color);
}

.wrapper .logo {
    text-align: center;
    margin-bottom: 20px;
}

.wrapper .logo img {
    width: 50px;
    height: 50px;
}

.wrapper h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

.wrapper .subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
    min-width: 0; /* Empêche le débordement des champs */
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.action {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.register-text {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-text a {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.register-text a:hover {
    text-decoration: underline;
}

/* Styles pour le tableau de bord */
.profile-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.profile-info p {
    margin: 10px 0;
    font-size: 16px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.btn-danger:hover {
    background-color: #c82333;
}

header nav .auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

main {
    width: 100%;
    height: 100vh;
}

main section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 100;
}
