/* admin/style/styles.css */

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

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* Conteneur principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Conteneur centré (login, résultat) */
.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header nav a {
    margin-left: 15px;
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
}

/* Formulaire d'envoi de mail */
.flex-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mail-form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-group button {
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Boîte de connexion */
.login-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.error {
    color: red;
    margin-bottom: 15px;
}

/* Boîte de résultat */
.result-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Tableau (historique) */
.flex-table-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #007BFF;
    color: #fff;
}

/* Bouton */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header nav a {
        margin: 5px 0;
    }
}

/* ... les styles existants ... */

/* Bouton de déconnexion */
.logout-btn {
    margin-left: 15px;
    display: flex;
    align-items: center;
}

.logout-btn img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
}

.logout-btn:hover img {
    opacity: 0.7;
}

/* ----- Footer ----- */
.cnd-footer {
    background-color: #4F46E5;
    /* Couleur de fond principale */
    color: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Section supérieure */
.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-top h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-top p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.4;
}

.footer-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #4F46E5;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

.footer-btn:hover {
    background-color: #ebe9ff;
}

/* Section inférieure */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

/* Colonne du footer */
.footer-col {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-col p {
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-col ul li a:hover {
    opacity: 0.8;
}

/* Liens sociaux */
.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
}

/* Newsletter */
.newsletter h4 {
    margin-bottom: 10px;
}

.newsletter form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter button {
    background-color: #fff;
    color: #4F46E5;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #ebe9ff;
}

/* Responsivité */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ----- HEADER & LOGO ----- */
.cnd-header {
    width: 100%;
    background-color: #4F46E5;
    /* Bleu/violet */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;

    /* Disposition en flex pour aligner logo et bouton de déconnexion */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Ajustez selon vos besoins */
}

.logout-container {
    display: flex;
    align-items: center;
}

.logout-btn img {
    height: 32px;
    /* Ajustez la taille de l'icône */
    width: 32px;
    transition: opacity 0.3s;
}

.logout-btn:hover img {
    opacity: 0.8;
    /* Effet au survol */
}


/* ----- HEADER & NAVBAR ----- */
.cnd-header {
    width: 100%;
    background-color: #4F46E5;
    /* Couleur de fond */
}

/* Conteneur principal du header */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;

    /* Disposition en flex pour aligner logo, menu et déconnexion */
    display: flex;
    align-items: center;
}

/* Logo à gauche */
.logo img {
    height: 40px;
    /* Ajustez selon vos besoins */
}

/* Menu de navigation au milieu */
.main-nav {
    flex: 1;
    /* Le menu prend l'espace disponible */
    display: flex;
    justify-content: center;
    /* Centre les liens horizontalement */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    /* Espacement horizontal entre les liens */
    margin: 0;
    padding: 0;
}

.main-nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.main-nav li a:hover {
    background-color: #3b33c2;
    /* Légère variation au survol */
}

/* Bouton de déconnexion à droite */
.logout-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
    /* Éventuel espacement entre le menu et le bouton */
}

.logout-btn img {
    height: 32px;
    width: 32px;
    transition: opacity 0.3s;
}

.logout-btn:hover img {
    opacity: 0.8;
    /* Effet au survol */
}

/* Adaptation responsive pour les écrans plus petits */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }

    .main-nav {
        margin-top: 10px;
        justify-content: flex-start;
        /* Aligne à gauche sur mobile, par exemple */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .logout-container {
        margin-top: 10px;
    }
}
/* ... le reste des styles ... */
