/*--------------------------------------------------------------
# Styles communs des pages publiques (actualités, départements, laboratoires, …)
# Chargé après style.css dans sige_app/frontend/template/frontend.blade.php
--------------------------------------------------------------*/

.page { padding: 20px 0 48px; }

/* Bandeau de titre de page */
.page-bandeau {
    display: flex; align-items: center; gap: 18px; padding: 24px 26px; border-radius: 16px; margin-bottom: 26px;
    background: linear-gradient(135deg, #0e5f47 0%, #13795b 60%, #3ba57e 100%); color: #fff;
    box-shadow: 0 8px 24px rgba(14, 95, 71, .25);
}
.page-bandeau-icone {
    flex: 0 0 auto; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.page-bandeau h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(24px, 3vw, 36px); margin: 0; line-height: 1.15; color: #fff; }
.page-bandeau p { margin: 6px 0 0; opacity: .9; font-size: 15px; }
.page-fil { font-size: 13px; opacity: .85; margin-bottom: 4px; }
.page-fil a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Cartes et titres */
.page-carte { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, .07); padding: 24px; }
.page-titre { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #0b5e45; margin: 0 0 16px; }
.page-titre i {
    color: #fff; background: #13795b; width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.page-texte { color: #3d4a44; font-size: 15.5px; line-height: 1.75; }
.page-texte img { max-width: 100%; height: auto; border-radius: 10px; }
.page-texte table { width: 100%; max-width: 100%; }
.page-vide { text-align: center; padding: 44px 20px; color: #5f6b66; }
.page-vide i { font-size: 46px; color: #13795b; opacity: .6; display: block; margin-bottom: 8px; }

/* Carte d'actualité (accueil, liste, détail) */
.actu-carte {
    position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .07); color: inherit; transition: transform .25s, box-shadow .25s;
}
.actu-carte:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(19, 121, 91, .18); color: inherit; }
.actu-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #13795b, #3ba57e); }
.actu-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.actu-carte:hover .actu-image img { transform: scale(1.05); }
.actu-image .actu-sans-image { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .7); font-size: 46px; }
.actu-date {
    position: absolute; left: 12px; top: 12px; background: #fff; color: #0b5e45; border-radius: 10px;
    padding: 4px 10px; text-align: center; line-height: 1.1; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.actu-date strong { display: block; font-size: 20px; }
.actu-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.actu-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.actu-corps h3 { font-size: 16.5px; font-weight: 700; color: #10261d; line-height: 1.35; margin: 0 0 8px;
                 display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actu-corps p { font-size: 14px; color: #5f6b66; line-height: 1.55; margin: 0 0 14px;
                display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actu-pied { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: #8a948f; }
/* Lien étiré : toute la carte mène à l'article, sauf le bouton « Commenter » placé au-dessus */
.actu-lien { color: inherit; }
.actu-lien::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.actu-lien:hover { color: inherit; }
.actu-lien:focus-visible { outline: 0; }
.actu-carte:focus-within { box-shadow: 0 0 0 3px rgba(19, 121, 91, .35); }
.actu-commenter { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: #0b5e45; font-weight: 600;
                  background: #e3f4ec; border-radius: 999px; padding: 5px 12px; white-space: nowrap; transition: background .15s, color .15s; }
.actu-commenter:hover { background: #13795b; color: #fff; }
.actu-lire { color: #8f5d08; font-weight: 700; white-space: nowrap; }
.actu-carte:hover .actu-lire i { transform: translateX(3px); }
.actu-lire i { display: inline-block; transition: transform .2s; }

/* Pagination Bootstrap aux couleurs du site */
.page .pagination { justify-content: center; flex-wrap: wrap; gap: 4px; }
.page .page-link { border-radius: 8px !important; color: #0b5e45; border-color: #d5e7de; }
.page .page-item.active .page-link { background: #13795b; border-color: #13795b; color: #fff; }

@media (max-width: 575.98px) {
    .page-bandeau { padding: 16px; gap: 12px; }
    .page-bandeau-icone { width: 46px; height: 46px; font-size: 21px; }
    .page-bandeau p { font-size: 13px; }
    .page-carte { padding: 16px; }
}

/* ---------- Documents d'inscription (fiches, quitus) ---------- */
.doc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.doc-carte {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 14px;
    background: #fff; border: 1px solid #d5e7de; color: #1f2a1f; height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.doc-carte:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(19, 121, 91, .15); border-color: #13795b; color: #1f2a1f; }
.doc-icone { width: 48px; height: 48px; border-radius: 12px; background: #e3f4ec; color: #13795b; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.doc-carte h3 { font-size: 16px; font-weight: 700; color: #10261d; margin: 0; }
.doc-carte p { font-size: 13.5px; color: #5f6b66; line-height: 1.5; margin: 0; }
.doc-action { margin-top: auto; color: #8f5d08; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.doc-carte:hover .doc-action i { transform: translateY(2px); }
.doc-action i { transition: transform .2s; }
.doc-carte.doc-attente { border-style: dashed; background: #fffaf0; border-color: #f0d79c; }
.doc-carte.doc-attente .doc-icone { background: #fdf0d2; color: #8f5d08; }
.doc-succes { width: 84px; height: 84px; border-radius: 50%; background: #e3f4ec; color: #13795b; font-size: 42px;
              display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.doc-note { display: flex; gap: 12px; align-items: flex-start; background: #f6faf8; border: 1px solid #e3f0ea; border-radius: 12px;
            padding: 14px 16px; color: #3d4a44; font-size: 14.5px; line-height: 1.6; }
.doc-note i { color: #13795b; font-size: 20px; line-height: 1.2; }
.doc-identite { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.doc-identite span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #fff; }

/* ---------- Fenêtres de connexion / récupération ---------- */
.auth-modal .modal-dialog { max-width: 420px; }
.auth-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.auth-entete { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; color: #fff; padding: 12px 48px 12px 18px;
               background: linear-gradient(135deg, #0e5f47 0%, #13795b 60%, #1f9a73 100%); }
.auth-entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e9a825; }
.auth-entete .btn-close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); opacity: .8; }
.auth-entete .btn-close:hover { opacity: 1; }
.auth-logo { flex: 0 0 auto; width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 9px; padding: 3px;
             box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.auth-pastille { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
                 display: flex; align-items: center; justify-content: center; font-size: 19px; }
.auth-entete-texte { min-width: 0; }
.auth-entete h5 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 20px; line-height: 1.2; margin: 0; color: #fff; }
.auth-entete p { margin: 1px 0 0; font-size: 12.5px; opacity: .85; }
.auth-corps { padding: 24px 26px 26px; background: #fff; }
.auth-label { display: block; font-size: 13.5px; font-weight: 600; color: #10261d; margin-bottom: 6px; }
.auth-champ { display: flex; align-items: center; gap: 10px; border: 1.5px solid #d5e7de; border-radius: 12px; padding: 0 12px;
              margin-bottom: 16px; background: #f8fbf9; transition: border-color .15s, box-shadow .15s, background .15s; }
.auth-champ:focus-within { border-color: #13795b; background: #fff; box-shadow: 0 0 0 4px rgba(19, 121, 91, .12); }
.auth-champ > i { color: #13795b; font-size: 17px; }
.auth-champ input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 0; font-size: 15px; color: #10261d; }
.auth-oeil { border: 0; background: transparent; color: #6b7772; padding: 6px; font-size: 17px; line-height: 1; }
.auth-oeil:hover { color: #13795b; }
.auth-lien { color: #8f5d08; font-size: 13.5px; font-weight: 600; }
.auth-lien:hover { color: #6e4705; text-decoration: underline; }
.auth-aide { font-size: 13px; color: #6b7772; margin: -6px 0 16px; }
.auth-bouton { width: 100%; justify-content: center; border: 0; padding: 13px 20px; font-size: 15.5px; }
.auth-alerte { display: flex; gap: 10px; align-items: flex-start; background: #fffaf0; border: 1px solid #f0d79c; color: #6e4705;
               border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 18px; }
.auth-alerte i { font-size: 18px; line-height: 1.2; }
@media (max-width: 575.98px) {
    .auth-modal .modal-dialog { margin: 12px; }
    .auth-corps { padding: 20px 18px 22px; }
}

/* ---------- Statistiques des actualités (cartes) ---------- */
.actu-stats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8a948f; }
.actu-stats > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.actu-stats i { color: #13795b; }

/* ---------- Commentaires des actualités (page de détail et fenêtre rapide) ---------- */
.commentaire-form textarea { width: 100%; border: 1.5px solid #d5e7de; border-radius: 12px; padding: 12px 14px; min-height: 110px;
                             resize: vertical; font-size: 15px; background: #f8fbf9; display: block; }
.commentaire-form textarea:focus { outline: 0; border-color: #13795b; background: #fff; box-shadow: 0 0 0 4px rgba(19, 121, 91, .12); }
.commentaire-form-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.commentaire-aide { font-size: 13px; color: #6b7772; }
.commentaire-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.commentaires { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.commentaire { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #e3f0ea; border-radius: 12px; background: #fff; }
.commentaire-avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #e3f4ec; color: #13795b;
                      display: flex; align-items: center; justify-content: center; font-size: 18px; }
.commentaire-corps { flex: 1 1 auto; min-width: 0; }
.commentaire-entete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: #8a948f; margin-bottom: 4px; }
.commentaire-entete strong { color: #10261d; font-size: 14px; }
.commentaire-texte { color: #3d4a44; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; margin: 0; }
.commentaire-masquer { border: 0; background: none; color: #b42318; font-size: 12.5px; font-weight: 600; padding: 0; }

/* Pseudo (facultatif, tirage au hasard) */
.pseudo-label { display: block; font-size: 13.5px; font-weight: 600; color: #10261d; margin-bottom: 6px; }
.pseudo-label span { font-weight: 400; color: #8a948f; }
.pseudo-champ { display: flex; align-items: center; gap: 10px; border: 1.5px solid #d5e7de; border-radius: 12px; padding: 0 6px 0 12px;
                margin-bottom: 14px; background: #f8fbf9; transition: border-color .15s, box-shadow .15s, background .15s; }
.pseudo-champ:focus-within { border-color: #13795b; background: #fff; box-shadow: 0 0 0 4px rgba(19, 121, 91, .12); }
.pseudo-champ > i { color: #13795b; font-size: 17px; }
.pseudo-champ input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 10px 0; font-size: 15px; color: #10261d; }
.pseudo-hasard { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: #fdf0d2;
                 color: #8f5d08; font-weight: 700; font-size: 13px; padding: 6px 12px; transition: background .15s; }
.pseudo-hasard:hover { background: #e9a825; color: #1f2a1f; }
.pseudo-hasard.tourne i { animation: pseudo-de .45s ease; }
@keyframes pseudo-de { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (max-width: 400px) { .pseudo-hasard span { display: none; } }

/* Fenêtre de commentaire rapide */
.mc-contenu { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.mc-entete { position: relative; display: flex; align-items: center; gap: 14px; color: #fff; padding: 12px 48px 12px 18px;
             background: linear-gradient(135deg, #0e5f47 0%, #13795b 60%, #1f9a73 100%); }
.mc-entete::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #e9a825; }
.mc-entete .btn-close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }
.mc-entete-icone { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16);
                   border: 1px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.mc-entete-texte { min-width: 0; }
.mc-entete h5 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 20px; margin: 0; color: #fff; }
.mc-entete p { margin: 1px 0 0; font-size: 13px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-corps { padding: 20px 22px 22px; }
.mc-erreur { margin-top: 10px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.mc-recents { margin-top: 22px; padding-top: 16px; border-top: 1px solid #eef2f0; }
.mc-recents-titre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-weight: 700; color: #0b5e45; font-size: 15px; }
.mc-recents-titre a { font-size: 13.5px; color: #8f5d08; font-weight: 600; }
.mc-recents .commentaires { margin-top: 12px; }
.mc-vide, .mc-chargement { text-align: center; color: #6b7772; padding: 18px 0 4px; font-size: 14px; }
