:root {
    /* Couleurs - Light */
    --color-bg-nav: #fafcf7;
    --color-bg-collection: #fafff1;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-btn: #111111;
    --color-slider-text: #ffffff;

    /* Mesures */
    --card-img-height: 400px;
}

[data-theme="dark"] {
    /* Couleurs - Dark */
    --color-bg-nav: #1c1e1a;
    --color-bg-collection: #14150f;
    --color-white: #242621;
    --color-black: #f0f0f0;
    --color-btn: #f0f0f0;
    --color-slider-text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 90px;
    padding: 15px 30px;

    background-color: var(--color-bg-nav);
    color: var(--color-black);
    font-size: 22px;
}

nav > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;

    height: 100%;
    font-size: 35px;
}

nav ul {
    display: flex;
    gap: 60px;

    margin-right: 100px;
    list-style: none;
}

.nav-links {
    margin-left: 40px;
    cursor: pointer;
}

.logo-img {
    display: block;

    width: 80px;
    height: 80px;
    margin: 0 10px;
	border-radius: 20%;

}

.account-img {
    display: block;

    width: 70px;
    height: 70px;
    margin-left: 0;

    object-fit: cover;
    border-radius: 50%;
}

.account-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.account-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-img,
.signup-img {
    width: 70px;
    height: 35px;
    object-fit: contain;
}

.slider {
    display: flex;
    justify-content: center;

    width: 100%;
    height: calc(100vh - 80px);

    background-color: var(--color-white);
}

.slider img {
    display: block;

    width: auto;
    height: 100%;
    object-fit: contain;
}

.slider-text {
    position: absolute;
    left: 200px;
    bottom: 50px;

    font-family: cursive;
    font-size: 6rem;
    color: var(--color-slider-text);
}

.collection {
    padding: 40px;
    background-color: var(--color-bg-collection);
}

.collection-title {
    margin-bottom: 20px;
    font-size: 2.3rem;
}

.cards {
    display: flex;
    gap: 20px;
}

.card {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: var(--card-img-height);
    object-fit: cover;
}

.account-popup {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;

    display: none;

    width: 300px;
    padding: 25px;

    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.account-popup.show {
    display: block;
}

.account-popup h2 {
    margin-bottom: 10px;
}

.account-popup p {
    margin-bottom: 15px;
}

.account-popup a {
    display: block;

    margin-top: 10px;
    padding: 10px;

    background-color: var(--color-btn);
    color: var(--color-white);

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

    border-radius: 6px;
}

.close-popup {
    position: absolute;
    top: 8px;
    right: 10px;

    border: none;
    background: none;

    font-size: 25px;
    cursor: pointer;
}

.theme-toggle {
    position: relative;

    width: 60px;
    height: 30px;
    margin: 10px auto;

    background-color: #ccc;
    border-radius: 15px;

    cursor: pointer;
    transition: background-color 0.3s ease;
}

.theme-toggle-circle {
    position: absolute;
    top: 3px;
    left: 3px;

    width: 24px;
    height: 24px;

    background-color: var(--color-white);
    border-radius: 50%;

    transition: left 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background-color: var(--color-btn);
}

[data-theme="dark"] .theme-toggle-circle {
    left: 33px;
}

