html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 100% de la hauteur de la fenêtre */
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #37474f;
    background: #fafafa;
}

/* Header et navigation */
header {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #37474f;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #26a69a;
}

/* Menu utilisateur */
.user-status {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    height: 100%;
}

.user-icon {
    font-size: 1.3em;
    color: #37474f;
    cursor: pointer;
}

.user-name {
    font-weight: 500;
    color: #37474f;
    cursor: pointer;
    margin-right: 10px;
}

.user-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 200px;
    z-index: 1000;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-status:hover .user-menu {
    display: block;
}

.user-menu a {
    display: block;
    padding: 12px 20px;
    color: #37474f;
    text-decoration: none;
    border-top: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s;
}

.user-menu a:hover {
    background: #f5f5f5;
    color: #26a69a;
}

.btn-connexion,
.btn-inscription {
    padding: 8px 16px;
    border: 1px solid #26a69a;
    background: white;
    text-decoration: none;
    color: #26a69a;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.btn-connexion:hover,
.btn-inscription:hover {
    background: #26a69a;
    color: white;
}

/*Menu*/
/* Reset et base */
/* body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #37474f;
    background: #f5f5f5;
} */

/* Header minimaliste pour les pages d'authentification */
/* header {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
} */

/* nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #37474f;
    font-weight: 500;
} */

/* Authentification */
.auth-container {
    width: 30%;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-title {
    text-align: center;
    color: #1e3d33;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.auth-title:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #26a69a;
    margin: 15px auto 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/*???*/

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #37474f;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1em;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #26a69a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(38, 166, 154, 0.2);
}

.form-error {
    color: #d32f2f;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Boutons */
.auth-button {
    padding: 12px;
    background: #26a69a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-button:hover {
    background: #1e7d74;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95em;
}

.auth-links a {
    color: #26a69a;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Lien vers l'autre page (inscription/connexion) */
.switch-link {
    text-align: center;
    margin-top: 20px;
    color: #546e7a;
}

.switch-link a {
    color: #26a69a;
    text-decoration: none;
    font-weight: 500;
}

.switch-link a:hover {
    text-decoration: underline;
}

footer {
    flex-shrink: 0; /* Empêche le footer de rétrécir */
    background: #1e3d33;
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto; /* Pousse le footer en bas */
}

/* Responsive */
@media (max-width: 600px) {
    .auth-container {
        margin: 20px;
        padding: 20px;
    }
}

/* Bandeau de présentation */
.banniere {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2ebf2 100%);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.banniere h1 {
    margin: 0 0 15px 0;
    color: #1e3d33;
    font-size: 2em;
}

.banniere p {
    margin: 0;
    color: #37474f;
    font-size: 1.1em;
}

/* Sections principales */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-livres,
.section-formulaires {
    margin-bottom: 40px;
}

.section-livres h2,
.section-formulaires h2 {
    text-align: center;
    color: #1e3d33;
    margin-bottom: 20px;
    font-size: 1.8em;
    position: relative;
}

.section-livres h2:after,
.section-formulaires h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #26a69a;
    margin: 10px auto 0;
}

.intro {
    text-align: center;
    color: #546e7a;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grilles des livres et formulaires */
.grille-livres,
.grille-formulaires {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.carte-livre,
.carte-formulaire {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.carte-livre:hover,
.carte-formulaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carte-livre img {
    max-width: 100%;
    height: auto;
    margin-bottom: 12px;
    border-radius: 4px;
}

.carte-livre h3,
.carte-formulaire h3 {
    color: #1e3d33;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.carte-livre p,
.carte-formulaire p {
    color: #546e7a;
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* Boutons */
.boutons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bouton-details,
.bouton-acheter,
.bouton-remplir {
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s;
}

.bouton-details {
    background: white;
    color: #26a69a;
    border: 1px solid #26a69a;
}

.bouton-details:hover {
    background: #26a69a;
    color: white;
}

.bouton-acheter {
    background: #26a69a;
    color: white;
    border: 1px solid #26a69a;
}

.bouton-acheter:hover {
    background: #1e7d74;
    border-color: #1e7d74;
}

.bouton-remplir {
    background: #4caf50;
    color: white;
    border: 1px solid #4caf50;
}

.bouton-remplir:hover {
    background: #3d8b40;
    border-color: #3d8b40;
}

/* Footer */
/* footer {
    background: #1e3d33;
    color: white;
    padding: 30px 20px;
    text-align: center;
} */

.bandeau_pied {
    max-width: 1200px;
    margin: 0 auto;
}

.liens_pied ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
    gap: 20px;
}

.liens_pied ul li a {
    color: #b2ebf2;
    text-decoration: none;
    transition: color 0.3s;
}

.liens_pied ul li a:hover {
    color: white;
}

footer p {
    color: #b2ebf2;
    margin: 0;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .grille-livres,
    .grille-formulaires {
        grid-template-columns: 1fr;
    }

    .boutons {
        flex-direction: column;
    }

    .bouton-details,
    .bouton-acheter,
    .bouton-remplir {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* Tableau comparatif */
.full-width-section {
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 30px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 12px;
}
.comparison-table th,
.comparison-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.comparison-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}
/* FAQ */
.faq-title {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 20px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 15px;
    background: #f8f9fa;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.faq-answer.active {
    padding: 15px;
    max-height: 500px;
}

/*Mentions legales*/
.mention-container section
{
    padding: 15px 15px;
}





