/* =====================================================================
   IMMO-2026.08.04-05  —  style_investisseur.css
   Feuille de style du site public (investisseur / locations).
   ---------------------------------------------------------------------
   Historique (anti-chronologique) :
   - 2026.08.04-05 : menu utilisateur au clic (@media hover pour la souris,
                     classe .ouvert pour le tactile) ; panneau des liens en
                     order:1 (le statut reste en haut a droite).
   - 2026.08.04-04 : zone statut du menu principal maintenue en haut a
                     droite sur mobile (compacte) ; texte "non connecte"
                     masque sur petit ecran.
   - 2026.08.04-03 : menu principal en hamburger sur mobile (scope
                     .nav-principal, aucun impact sur le menu simplifie) ;
                     classe .bouton-inscription (remplace un style inline
                     dans I_MenuPrincipal.php).
   - 2026.08.04-02 : regle font-size mobile restreinte a .auth-form
                     (evite d'imposer 16px a tous les .form-group input
                     du site).
   - 2026.08.04-01 : ergonomie mobile de la page d'authentification —
                     largeur de .auth-container neutralisee sur tablette et
                     mobile (le width:30% desktop debordait sur petit ecran) ;
                     ajout de la classe .form-message (remplace un style
                     inline dans I_ConnexionUtilisateur.php).
   ===================================================================== */

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;
}

/********************************************************************************/
/***************************Affichage des erreurs********************************/
/********************************************************************************/
.alert {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-error {
    background-color: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.alert-success {
    background-color: #edf7ed;
    color: #1e4620;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.error-message {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
}

/********************************************************************************/
/***************************Boite de connexion************************************/
/********************************************************************************/
.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;
}

/* Message d'information (flash) sur les formulaires d'authentification */
.form-message {
    color: #26a69a;
}
/********************************************************************************/
/***************************Boite de dialogue************************************/
/********************************************************************************/
.confirmation-dialog {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    border: 2px solid #28a745; /* Vert moyen */
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 400px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: center;
}
.confirmation-dialog .buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.confirmation-dialog button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.confirmation-dialog .confirm {
    background-color: #218838; /* Vert foncé */
    color: white;
}
.confirmation-dialog .cancel {
    background-color: #6c757d;
    color: white;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/********************************************************************************/
/********************************Boutons ****************************************/
/********************************************************************************/
.btn-ajouter {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    background-color: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-ajouter:hover {
    background-color: #2980b9;
}

.btn-submit {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 2rem auto 0;
    padding: 0.75rem;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

.btn-submit:hover {
    background-color: #27ae60;
}

/* Boutons d'action (édition/suppression) utilisés dans les listes*/
.btn-editer, .btn-supprimer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 36px;
    margin: 0 4px;
    border-radius: 2px; 
    font-size: 18px;
    text-decoration: none;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 
    transition: background-color 0.2s;
}

.btn-editer {
    background-color: #5ee6bb; 
}

.btn-supprimer {
    background-color: #ee5666; 
}

.btn-editer:hover {
    background-color: #1a6b4f; 
}

.btn-supprimer:hover {
    background-color: #c82333; 
}

/* =========================
   FORMULAIRES
========================= */
.required:after {
    content: " *";
    color: red;
}


/* =========================
   BOUTON AJOUTER OPTION
========================= */
.btn-ajouter-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;
    margin-top: 10px;

    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;

    border: none;
    /* border-radius: 999px; */

    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.25);
}

.btn-ajouter-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.35);
    background: linear-gradient(135deg, #3fa2e5, #2471a3);
}

.btn-ajouter-option:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.2);
}


/********************************************************************************/
/***************************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 principal : hamburger mobile (scope .nav-principal) ---- */
.nav-burger {
    display: none;              /* cache sur desktop */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.nav-burger-barre {
    display: block;
    width: 26px;
    height: 3px;
    background: #37474f;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-principal-contenu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
}

@media (max-width: 768px) {
    /* Repasse en ligne (annule le flex-direction:column generique du nav)
       et deplie le panneau sous le bouton. */
    .nav-principal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .nav-burger {
        display: flex;
    }
    .nav-principal-contenu {
        display: none;             /* replie par defaut */
        order: 1;                  /* passe sous le statut : le statut reste en haut a droite */
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 12px;
    }
    .nav-principal.ouvert .nav-principal-contenu {
        display: flex;             /* deplie au clic */
    }
    .nav-principal-contenu ul {
        flex-direction: column;
        gap: 0;
    }
    .nav-principal-contenu ul li a {
        display: block;
        padding: 12px 4px;
    }
    /* La zone statut reste dans la barre du haut (compacte, a droite) */
    .nav-principal .user-status {
        gap: 10px;
        height: auto;
    }
    /* Non connecte : ne garder que le bouton "Se connecter" dans la barre */
    .nav-principal .statut-bandeau {
        margin: 0;
        padding: 0;
        flex-direction: row;
    }
    .nav-principal .statut-bandeau .statut-texte {
        display: none;
    }
    .nav-principal.ouvert .nav-burger-barre:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-principal.ouvert .nav-burger-barre:nth-child(2) { opacity: 0; }
    .nav-principal.ouvert .nav-burger-barre:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}


/********************************************************************************/
/****************************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);
}

@media (hover: hover) {
    .user-status:hover .user-menu {
        display: block;
    }
}
.user-status.ouvert .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;
}


/* 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;
}


/* 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 — page d'authentification (connexion / inscription) */
@media (max-width: 768px) {
    .auth-container {
        width: 60%;
        margin: 32px auto;
    }
}

@media (max-width: 600px) {
    .auth-container {
        width: auto;            /* annule le width:30% desktop : carte pleine largeur */
        margin: 24px 16px;
        padding: 24px 20px;
    }
    .auth-title {
        font-size: 1.5em;
        margin-bottom: 24px;
    }
    .auth-form {
        gap: 18px;
    }
    .auth-form .form-group input {
        font-size: 16px;        /* >=16px : evite le zoom auto iOS au focus */
    }
    .auth-button {
        padding: 14px;          /* cible tactile plus confortable */
    }
}

/* 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;
}



.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;
}
.comparison-table .th-note {
    display: block;
    font-weight: 400;
    font-size: 0.72em;
    opacity: 0.85;
    margin-top: 2px;
}
/* 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;
}

/* Bandeau de statut utilisateur */
.statut-bandeau {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 1200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.statut-texte {
    font-size: 1.1em;
    margin: 0 10px;
}
.statut-connexion {
    display: flex;
    align-items: center;
}
.abonne-badge {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-left: 10px;
}
.credits-badge {
    background: #007bff;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-left: 10px;
}
.bouton-connexion {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}
.bouton-connexion:hover {
    background: #218838;
}
.bouton-inscription {
    background: #007bff;
}
.bouton-inscription:hover {
    background: #0069d9;
}

/* Message d'offre spéciale */
.offre-speciale {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe9d6 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px auto;
    max-width: 1200px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #ffd7a9;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.offre-texte {
    font-size: 1.1em;
    color: #d35400;
    flex: 1;
    text-align: left;
    margin-right: 15px;
}
.offre-bouton {
    background: #e67e22;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin: 5px;
}
.offre-bouton:hover {
    background: #d35400;
}
.cadeau-icon {
    color: #e67e22;
    font-size: 1.5em;
    margin-right: 10px;
}
@media (max-width: 768px) {
    .statut-bandeau, .offre-speciale {
        flex-direction: column;
        text-align: center;
    }
    .offre-texte {
        text-align: center;
        margin-right: 0;
        margin-bottom: 10px;
    }
}
/* =========================================================
   AJOUTS RESPONSIVE & CORRECTIFS  (v2 — cartes livres horizontales)
   --> REMPLACE le bloc précédemment collé à la fin de
       style_investisseur.css (depuis le commentaire "AJOUTS
       RESPONSIVE & CORRECTIFS" jusqu'à la fin du fichier) par
       cette version. Bénéficie à toutes les pages.
   ========================================================= */

/* 1) Reset largeur : empêche tout "width:100% + padding" de déborder. */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2) Bannière (hero) : dégradé pleine largeur, contenu limité + responsive. */
.banniere {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 20px;
    text-align: left;
}
.banniere h1 {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
    line-height: 1.25;
}
.avatar-banniere {
    width: 72px;
    height: auto;
    flex: 0 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* 3) Cartes LIVRE : couverture à GAUCHE, texte + prix à DROITE.
      Carte compacte, visible sans scroll sur PC, couverture jamais rognée.
      (Les cartes "formulaire" de l'accueil ne sont pas touchées.) */
.grille-livres {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}
.carte-livre {
    display: flex;
    align-items: stretch;
    gap: 18px;
    text-align: left;          /* annule le center partagé */
    padding: 16px;
}
.carte-livre img {
    flex: 0 0 130px;           /* colonne image, largeur fixe */
    width: 130px;
    height: auto;              /* ratio préservé -> jamais rognée */
    max-height: none;
    object-fit: contain;
    align-self: center;
    margin: 0;
    border-radius: 6px;
}
.carte-livre-infos {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;              /* autorise le texte à wrapper proprement */
}
.carte-livre-infos h3 {
    text-align: left;
    margin: 0 0 8px;
}
.carte-livre-infos p {
    text-align: left;
    margin: 0 0 12px;
}
.carte-livre .boutons {
    justify-content: flex-start;
    margin-top: auto;          /* boutons collés en bas de la carte */
    flex-wrap: wrap;
}
.carte-livre .prix {
    margin-left: 6px;
    font-weight: 700;
}

/* 4) Tableaux larges : défilent dans leur cadre au lieu d'élargir la page. */
.full-width-section {
    overflow-x: auto;
}

/* 5) Responsive */
@media (max-width: 768px) {
    .banniere { gap: 18px; padding: 28px 16px; }
    .grille-livres { grid-template-columns: 1fr; }
    .carte-livre img { flex-basis: 110px; width: 110px; }
}
@media (max-width: 600px) {
    .banniere {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 24px 16px;
    }
    .banniere h1 { max-width: 100%; }
    .avatar-banniere { width: 64px; }
}

/* 6) Bandeau de statut (surtout l'état "non connecté") : plus compact */
.statut-bandeau {
    padding: 6px 14px;
    margin: 8px auto;
    gap: 10px;
    box-shadow: none;            /* allège : plus l'air d'une grosse carte */
    background: transparent;     /* ou garde le dégradé si tu préfères */
    border: none;
}
.statut-texte {
    font-size: 0.95em;
    margin: 0 6px;
}
.bouton-connexion {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* Bannière « configurer les options » : bouton bien lisible */
.alert-options-amont {
    background: #e8f5ee;
    border: 1px solid #a5d6a7;
    border-left: 4px solid #1f7955;
    border-radius: 6px;
    padding: 14px 16px;
    text-align: center;
}
.alert-options-amont p {
    margin: 0 0 12px;
    color: #2b3a4a;
}
.alert-options-amont .btn-ajouter-option {
    display: inline-block;
    background: #1f7955;   /* vert plein de la charte */
    color: #fff;            /* texte blanc, bon contraste */
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s ease;
}
.alert-options-amont .btn-ajouter-option:hover {
    background: #15603f;
}