/* POLICES */
@font-face {
    font-family: 'NunitoSans';
    src: url('../fonts/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'NunitoSans';
    src: url('../fonts/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}
/* BASE */
body {
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
    font-family: 'NunitoSans', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* LE HEADER */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #262660;
    color: white;
    min-height: 45px;
    position: sticky; 
    top: 0;        
    z-index: 1000;
}

/* Le bloc Logo + Titre à gauche */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.logo {
    display: block;
}

.head-h1 {
    margin: 0;
    font-size: 1.5rem;
    white-space: nowrap;
}

/* Le Menu au milieu */
.container-nav {
    flex: 1; 
    display: flex;
    justify-content: center;
}

.container-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.container-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.container-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
/* Connection*/
.container-connecter {
    flex: 1; /* Prend aussi 1 part de l'espace */
    display: flex;
    justify-content: flex-end;
}

.container-connecter-info span{
    padding: 5px;
    margin-left: 10px ;
}

/* LE MAIN */
main {
    padding: 10px 50px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center; /* Centre tout le contenu du main horizontalement */
    min-height: 80vh;
}

/* Titre de la section */
.content {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
}
.content h2 {
    color: #262660;
    font-size: 2rem;
    font-weight: 800 !important;
    margin-bottom: 5px;
    margin-top: 5px;
}
.content p {
    color: #5f5f5f;
    margin-bottom: 5px;
}

.container-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
/*carte */
.card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    width: 240px;
    transition: 0.3s;
}
.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.card-content{
    text-align: kleft;
}
.card h3 {
    color: #262660;
    font-size: 1.5rem;
    margin: 0px;
}
.card p.content-num{
    color: #000000;
    font-size: 3rem;
    font-weight: 700 !important;
    margin: 0px;
    padding-left: 15px;
}
.card p {
    color: #5f5f5f;
    margin: 0px;
}
/* content stats*/
.content-stats {
    background-color: #ffffff;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border-radius: 10px;
    padding: 15px;
}
.content-stats h2 {
    color: #262660;
    font-size: 1rem;
    margin-top: 0px;
    margin-bottom: 12px;
    text-align: center;
}
.content-stats-items {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.stats-item {
    background-color: #ebebeb;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 240px;
    text-align: center;
}
.stats-item h3 {
    color: #000000;
    font-size: 1.2rem;
    margin: 0px;
}
.stats-item p.content-num {
    color: #000000;
    font-size: 2.5rem;
    font-weight: 700 !important;
    margin: 5px 0px;
}
.stats-item p {
    color: #5f5f5f;
    margin: 0px;
}
/* Buttons */

.content-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 45px;
}

.btn-principal {
    background-color: #262660;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;

    appearance: none;
    border: none;           /* Supprime la bordure grise en relief */
    font-family: inherit;   /* Utilise la même police que le reste du site */
    font-size: inherit;     /* Utilise la même taille que tes liens */
    cursor: pointer;
}
.btn-principal:hover {
    background-color: #5858a6;
    box-shadow: #5858a6 0px 0px 10px;
}

.btn-secondaire {
    appearance: none;       /* Supprime le look "système" */
    background: #f0f0f0;    /* Ta couleur de fond habituelle */
    border: none;           /* Supprime la bordure grise en relief */
    font-family: inherit;   /* Utilise la même police que le reste du site */
    font-size: inherit;     /* Utilise la même taille que tes liens */
    cursor: pointer;

    background-color: #ebebeb;
    color: #262660;
    padding: 7px 17px;
    font-weight: 700 !important;
    text-decoration: none;
    border: 3px solid #262660;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-secondaire:hover {
    background-color: #262660;
    color: white;
}
/* content description */
.content-description {
    display: flex;
    background-color: #ffffff;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    border-radius: 10px;
    padding: 15px;
    margin-top: 45px;
    gap: 20px;
}
.content-cart-desc {
    border: #262660 4px solid;
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s;
}
.content-cart-desc:hover {
    background-color: #262660;
    color: white;
}
.content-cart-desc h2 {
    color: #262660;
    font-size: 1.8rem;
    font-weight: 800 !important;
    margin-top: 0px;
    margin-bottom: 12px;
    text-align: center;
}
.content-cart-desc:hover h2 {
    color: white;
}
.content-cart-desc p {
    margin: 0px;
    max-width: 400px;
}

.content-list-desc {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

/* LE FOOTER */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    background-color: #1b2028;
    color: white;
    gap: 17px;
    margin-top: 50px;
}
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.contact-info-doit p {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    color: #cccccc !important;
    transition: 0.3s;
}
.social-icons:hover {
    color: #ffffff !important;
}

.social-icons a {
    color: #cccccc !important;
    text-decoration: none;
    transition: 0.3s;
}
.social-icons:hover a {
    color: #ffffff !important;
    text-decoration: underline;
}
/*Boit de massage*/
/*boite erreur*/
.content-message-erreur {
    background-color: #ffd4d4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
    text-align: center;
    margin-top: 10px;
}
.content-message-erreur h2 {
    margin-top: 0px;
}
.content-message-erreur p {
    margin-bottom: 0px;
}

/*boite valide*/
.content-message-valide {
    background-color: #c8feca;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 400px;
    text-align: center;
    margin-top: 10px;
}
.content-message-valide h2 {
    margin-top: 0px;
}
.content-message-valide p {
    margin-bottom: 0px;
}