@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Fanwood+Text&display=swap');

:root {
    --dark: #262746;
    --blue: #494D7C;
    --purple: #8C6C9B;
    --pink: #C69FA4;
    --yellow: #F3D3ADFF;
    --yellow-semi-transparent: #F3D3AD80;
    --yellow-transparent: #F3D3AD00;
    --white: #FAF5EF;

    --red: #f53d6b;
    --green: #41ee8f;
}

body {
    margin: 0px;

    font-family: 'Montserrat', sans-serif;
}
input,
select,
option {
    font-family: 'Montserrat', sans-serif;
}

section {
    padding: 8vh 10vw;
}

a {
    text-decoration: underline;
    color: var(--purple);

    transition: 200ms;
}
a:hover {
    color: var(--pink);

    transition: 200ms;
}

h2 {
    margin: 0;

    font-size: xxx-large;
}

h3 {
    margin-bottom: 8vh;

    font-size: xx-large;
}

input:not([type=submit]),
select, option {
    padding: 0.5vh 0.5vw;

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

    border: none;
    outline: none;

    font-size: large;
}
input:not([type=submit]):disabled,
select[disabled] {
    border-bottom: 1px solid var(--blue);

    background-color: var(--dark);
    color: var(--yellow);
}
select[disabled] {
    appearance: none;
}
input:not([type=submit])::placeholder {
    color: var(--blue);
}
input[type=number] {
    -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type=checkbox] {
    margin: 1vh;

    border-radius: 0;
}
input[type=checkbox]:checked {
    accent-color: var(--green);
}
input[type=file]::file-selector-button {
    border: none;

    text-align: center;
    font-variant: small-caps;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;

    background-color: var(--blue);
    color: var(--yellow);
}
input[type=file]::file-selector-button:hover {
    background-color: var(--purple);
}

/* Classes */
.bg-dark {
    background-color: var(--dark);
    color: var(--yellow);
}

.bg-light {
    background-color: var(--white);
    color: var(--dark);
}
.bg-blue {
    background-color: var(--blue);
    color: var(--yellow);
}
.bg-red {
    background-color: var(--red);
    color: var(--white);
}

.txt-dark {
    color: var(--dark);
    transition: 200ms
}
a.txt-dark:hover {
    color: var(--purple);
    transition: 200ms;
}

.txt-light {
    color: var(--yellow);
}
.txt-blue {
    color: var(--blue);
}
.txt-red {
    color: var(--red);
}
.txt-green {
    color: var(--green);
}
.txt-purple {
    color: var(--purple);
}
.txt-pink {
    color: var(--pink);
}

.btn {
    display: block;

    margin: 8px;
    padding: 12px 16px;
    
    border: none;

    text-align: center;
    font-variant: small-caps;
    text-decoration: none;
}
.btn:hover {
    background-color: var(--blue);
}
.btn.bg-blue:hover {
    background-color: var(--purple);
}
.btn.bg-light:hover {
    color: var(--dark);
    background-color: var(--pink);
}
.btn.bg-red:hover {
    color: var(--white);
    background-color: var(--purple);
}

.card {
    
    width: 16vw;
    height: 48vh;

    margin: 0.5vw 1vh;
    padding-bottom: 48px;

    
    font-variant: small-caps;
    text-decoration: none;

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

    transition: 200ms;
}
.card > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

    text-align: center;
}
.card:hover {
    width: 17vw;
    height: 50vh;

    margin: 0;

    transition: 200ms;
}
.card h3 {
    width: 14vw;

    margin-bottom: 2vh;

    font-weight: 100;
    font-size: medium;
}
.card img {
    margin: 8vh 0;

    max-width: 16vw;
}
@media only screen and (max-width: 992px) {
    .card {
        width: 60vw;
        height: fit-content;
    }
    .card:hover {
        width: 60vw;
        height: fit-content;

        margin: 0.5vw 1vh;
    }

    .card img {
        max-width: 40vw;
    }

    .card h3 {
        width: 50vw;

        font-size: large;
    }
}

.border-top-dark {
    border-top: 3px solid var(--dark);
}

.pbox {
    padding: 4vh 2vw;

    background-color: var(--blue);
    color: var(--yellow);
}
@media only screen and (max-width: 992px) {
    .pbox {
        padding: 2vh 4vw;
    }
}

.modal {
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
    position: fixed;
    width: 60vw !important;
    height: fit-content;
    top: 30vh;
    left: 20vw;
    z-index: 10;

    padding: 2vh 2vw;

    text-align: center;
}
.modal[open] {
    display: flex !important;
}
.modal > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
}
@media only screen and (max-width: 992px) {
    .modal > h3 {
        text-align: center;
    }

    .modal > div {
        flex-direction: column;
    }
}

/* Nav bar */
nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    padding: 2vh 8vw;

    align-items: center;
}

nav h1 {
    margin: 0px;

    font-family: 'Fanwood Text', serif;
    font-size: xx-large;
    
    color: var(--yellow);
}

nav a {
    display: flex;
    flex-direction: row;

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

nav a:nth-child(2) {
    color: var(--yellow);
}

nav a:nth-child(2) i {
    display: none;
}

@media only screen and (max-width: 992px) {
    nav a:nth-child(2) i {
        display: inline;
    }
    nav a:nth-child(2) span {
        display: none;
    }
}

/* Footer */
footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 2vh 0;
}

footer > div > p {
    margin: 0;

    text-align: justify;
}

footer > div:nth-child(1) {

    margin: 5vh 30vw;
    padding: 16px;

    font-size: small;

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

footer > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;

    padding-top: 2vh;

    font-size: x-small;

    border-top: 1px solid var(--blue);
}

footer address {
    display: flex;
    flex-direction: column;
}

footer > div > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3vw;

    padding: 0 2vw;
}

footer > div > div > div {
    width: 15vw;
}

footer address > a {
    margin: 1vh 0;
}

footer img {
    max-width: 16vw;
    max-height: 20vh;
}

footer h4 {
    font-size: large;
}

@media only screen and (max-width: 992px) {
    footer > div {
        width: 75vw;
    }

    footer > div > div {
        flex-direction: column;
    }

    footer > div > div > div {
        width: 60vw;
    }

    footer > div > div > div > h4 {
        margin-left: -4vw;
    }

    footer img {
        max-width: 30vw;
    }
}

#back-button {
    position: fixed;
    bottom: 10px;
    left: 10px;

    padding: 1.5vh 1vw;

    background-color: var(--blue);
    color: var(--yellow);
}

#back-button:hover {
    background-color: var(--purple);
    color: var(--yellow);
}

@media only screen and (max-width: 992px) {
    #back-button {    
        padding: 1.5vh 5vw;
    }
}

.navbar-custom {
    background-color: #262746
}

.font-color-custom {
    color: #F3D3ADFF
}

.navbar-custom .navbar-nav .nav-link {
    color: #F3D3ADFF;
    background-color: #262746
}

.navbar-toggler {
    background-color: #F3D3ADFF !important;
    border-color: #F3D3ADFF !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none !important;
    box-shadow: 0 0 0 0 transparent !important;
}

.navbar-toggler-icon {
    background-color: #F3D3ADFF !important;
}

.btn {
    background-color: #262746 !important;
    color: #F3D3ADFF !important; /* Pour que le texte reste lisible */
}

.bg-custom-white {
    background-color: #faf5ef !important;
}


.bg-dark {
    background-color: #262746 !important;
}

.btn:hover {
    filter: brightness(1.2);
}

.logo:hover {
    filter: brightness(1.2);
}

  .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


