/* Styles propres a une page precise. */

.accueil-page {
    padding-top: 22px;
}

.accueil-banniere {
    overflow: hidden;
    width: calc(100% - 40px);
    max-width: 368px;
    margin: 0 auto 28px;
    border-radius: 22px;
    background: var(--blanc);
    padding: 20px;
}

.accueil-banniere img {
    display: block;
    width: 100%;
    height: auto;
}

.profil-page {
    /* Espace entre la barre blanche du haut et le contenu de la page profil */
    padding-top: 34px;
}

.profil-page .titre-page {
    /* On remet le padding normal du titre pour ne pas agrandir la bulle blanche */
    padding-top: 10px;
}

.connexion-page,
.inscription-page {
    /* Espace des pages connexion et inscription sans faire apparaitre le fond blanc du navigateur */
    min-height: calc(100vh - 86px);
    padding-top: 46px;
}

.connexion-page .titre-page,
.inscription-page .titre-page {
    margin-top: 0;
}

.connexion-page .message,
.inscription-page .message {
    min-height: 20px;
}

.connexion-page .formulaire,
.inscription-page .formulaire {
    width: calc(100% - 52px);
    max-width: 330px;
    margin: 0 auto;
}

.connexion-page .formulaire button,
.inscription-page .formulaire button {
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.connexion-page .lien-page,
.inscription-page .lien-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 52px);
    max-width: 330px;
    min-height: 42px;
    margin-right: auto;
    margin-left: auto;
    border: 1px solid var(--bordure);
    border-radius: 999px;
    color: var(--vert-fonce);
    background: var(--blanc);
    font-weight: 700;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.connexion-page .lien-page:hover,
.inscription-page .lien-page:hover,
.connexion-page .formulaire button:hover,
.inscription-page .formulaire button:hover {
    border-color: var(--vert-fonce);
    color: #ffffff;
    background: var(--vert-fonce);
}

.compte-page {
    /* Espace de la page compte sans faire apparaitre le fond blanc du navigateur */
    min-height: calc(100vh - 86px);
    padding-top: 46px;
}

.compte-page .bouton-raconter {
    margin-top: 0;
}

/* Page admin */

body.page-admin {
    width: 100%;
    color: var(--texte);
    background: linear-gradient(180deg, #174f43 0%, #9fe1cf 320px, #9fe1cf 100%);
}

.page-admin .bottom-nav {
    width: 100%;
}

.admin-page {
    min-height: calc(100vh - 86px);
    padding: 46px clamp(18px, 4vw, 56px) 34px;
}

.admin-page .titre-page {
    margin-top: 0;
    margin-bottom: 28px;
    color: var(--vert-fonce);
    font-size: 18px;
    font-weight: 700;
}

.admin-outils {
    /* Zone responsive qui place les filtres et la carte cote a cote sur grand ecran */
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 30px;
}

.admin-filtres {
    /* Colonne des filtres admin */
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    justify-content: flex-start;
    min-width: min(100%, 280px);
}

.admin-page .form-recherche,
.admin-page .filtres-accueil {
    width: 100%;
    max-width: none;
}

.admin-page .filtres-accueil {
    display: flex;
    flex-wrap: wrap;
}

.admin-page .filtres-accueil .form-filtre,
.admin-page .filtres-accueil .form-filtre-date-conteneur {
    flex: 1 1 140px;
}

.carte-admin {
    /* Grande carte admin pour voir les histoires sur un ecran large */
    flex: 3 1 520px;
    min-width: min(100%, 320px);
    height: clamp(340px, 56vh, 640px);
    overflow: hidden;
    border-radius: 28px;
    background: var(--blanc);
}

.carte-admin #map-admin {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-admin .compteur-histoires,
.page-admin .compteur-histoires-vide {
    max-width: 1180px;
}

.page-admin .histoires-grille {
    /* Grille admin en flexbox pour que les cartes prennent mieux la largeur disponible */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1180px;
    margin-top: 22px;
}

.page-admin .carte-histoire {
    flex: 1 1 210px;
    max-width: 280px;
    min-height: 150px;
}

.page-admin .carte-histoire-bas,
.page-admin .formulaire-simple {
    width: 100%;
}

.page-admin .lien-lire-carte,
.page-admin .carte-histoire button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 140px);
    min-height: 32px;
    margin-right: auto;
    margin-left: auto;
}

.page-admin .statut-validation-histoire {
    /* Statut visible uniquement dans l'admin pour savoir si l'histoire est publique */
    margin: 2px 0 0;
    color: var(--vert-fonce);
    font-size: 12px;
    font-weight: 700;
}

.page-admin .lectures-histoire-admin {
    /* Compteur visible uniquement dans l'admin pour suivre les lectures des histoires */
    margin: 2px 0 0;
    color: var(--texte);
    font-size: 12px;
    font-weight: 700;
}

.page-admin .bouton-valider-histoire {
    /* Bouton vert qui publie l'histoire sur la page d'accueil */
    border-color: var(--vert-fonce);
    color: #ffffff;
    background: var(--vert-fonce);
    padding-left: 0;
}

.compteur-visites-admin {
    /* Petit compteur admin pour suivre les visites uniques du site */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 360px);
    margin: 0 auto 24px;
    padding: 14px 20px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--vert-fonce);
}

.compteur-visites-admin strong {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

.compteur-visites-admin span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 700px) {
    .admin-page {
        padding-right: 18px;
        padding-left: 18px;
    }

    .admin-outils {
        gap: 18px;
    }

    .carte-admin {
        height: 360px;
    }

    .page-admin .carte-histoire {
        max-width: none;
    }
}

/* Page raconter */

body.page-raconter,
body.page-lire-histoire,
body.page-mes-zhistoires-vide {
    color: #154035;
    background: #9de2cf;
    font-size: 14px;
}

body.page-raconter {
    width: min(100%, 409px);
    line-height: 1.35;
}

.popup-introduction-histoire {
    /* Fond du pop up qui explique les règles avant de raconter une histoire */
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 53, 46, 0.55);
}

.popup-introduction-cachee {
    display: none;
}

.popup-introduction-contenu {
    width: min(100%, 340px);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 24px 22px 20px;
    border-radius: 24px;
    background: #ffffff;
    color: var(--texte);
    box-shadow: 0 18px 40px rgba(18, 53, 46, 0.25);
}

.popup-introduction-contenu h2 {
    margin: 0 0 14px;
    color: var(--vert-fonce);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.popup-introduction-contenu p {
    margin: 0;
    color: var(--texte);
    font-size: 14px;
    line-height: 1.55;
}

.popup-introduction-contenu button {
    margin-top: 20px;
    min-height: 42px;
    border-color: var(--vert-fonce);
    color: #ffffff;
    background: var(--vert-fonce);
    font-weight: 700;
}

.popup-introduction-contenu button:hover {
    color: var(--vert-fonce);
    background: #ffffff;
}

body.page-lire-histoire,
body.page-mes-zhistoires-vide {
    width: min(100%, 402px);
}

.page-raconter *,
.page-lire-histoire * {
    letter-spacing: 0;
}

.page-raconter .site-header,
.page-lire-histoire .site-header {
    min-height: 62px;
    padding: 0;
    background: #ffffff;
}

.page-raconter .bottom-nav,
.page-lire-histoire .bottom-nav,
.page-mes-zhistoires-vide .bottom-nav {
    background: #ffffff;
}

.page-raconter .bottom-nav {
    width: min(100%, 409px);
}

.raconter-page {
    min-height: calc(100vh - 62px);
    padding: 30px 0 28px;
    background: linear-gradient(180deg, #154035 0, #9de2cf 373px, #9de2cf 100%);
}

.page-raconter .titre-page {
    width: calc(100% - 84px);
    max-width: 310px;
    min-height: 52px;
    margin-top: 0;
    margin-bottom: 36px;
    padding: 14px 22px;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 18px;
    font-weight: 700;
}

.page-raconter .message {
    width: calc(100% - 42px);
    max-width: 360px;
    margin: -20px auto 16px;
    color: var(--vert-fonce);
    font-size: 13px;
    text-align: center;
}

.page-raconter .message:empty {
    display: none;
}

.page-raconter .formulaire-histoire {
    width: calc(100% - 42px);
    max-width: 360px;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
}

.page-raconter .bulle-blanche,
.page-raconter .lien-page {
    max-width: none;
}

.page-raconter .formulaire-histoire>p:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    white-space: normal;
    min-height: 80px;
    margin: 0 0 16px;
    padding: 20px 24px;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 13px;
    line-height: 18px;
}

.page-raconter .champ-activite-intro {
    display: inline-block;
    flex: 1 1 96px;
    width: auto;
    min-width: 96px;
    max-width: 150px;
    min-height: 28px;
    margin: 0;
    padding: 5px 9px;
    border: 1px solid #8cc7b8;
    border-radius: 20px;
    background: #ecf9f5;
    color: #154035;
    font-size: 12px;
    font-weight: 500;
    vertical-align: middle;
}

.page-raconter .champ-activite-intro::placeholder {
    color: #6f8f87;
}

.page-raconter .champ-activite-intro:focus {
    border-color: #154035;
    background: #ffffff;
}

.page-raconter .formulaire-histoire>p:nth-of-type(2) {
    display: none;
}

.page-raconter .groupe-milieu,
.page-raconter .groupe-zone,
.page-raconter .question-haut {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
}

.page-raconter .groupe-milieu,
.page-raconter .groupe-zone,
.page-raconter .question-frequence,
.page-raconter .question-notes {
    position: relative;
    padding-top: 54px;
}

.page-raconter .groupe-milieu,
.page-raconter .groupe-zone {
    min-height: auto;
    padding-bottom: 30px;
}

.page-raconter .question-commune {
    gap: 12px;
    min-height: 136px;
}

.page-raconter .question-carte {
    gap: 10px;
    min-height: 292px;
}

.page-raconter .question-frequence,
.page-raconter .question-notes {
    gap: 18px;
}

.page-raconter .question-frequence {
    min-height: auto;
    padding: 116px 28px 30px;
}

.page-raconter .question-notes {
    padding: 56px 28px 28px;
}

.page-raconter .question-premier-ressenti,
.page-raconter .question-anecdote,
.page-raconter .question-deuxieme-ressenti {
    gap: 12px;
    min-height: 166px;
}

.page-raconter .groupe-milieu .question-haut-titre,
.page-raconter .groupe-zone .question-haut-titre,
.page-raconter .question-haut-titre {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    color: #154035;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.page-raconter .groupe-milieu>.question-haut-titre,
.page-raconter .groupe-zone>.question-haut-titre,
.page-raconter .question-notes>.question-haut-titre {
    position: absolute;
    top: 18px;
    left: 28px;
    right: 28px;
    width: auto;
    margin-bottom: 0;
}

.page-raconter .question-frequence>.question-haut-titre {
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    display: block;
    width: auto;
    max-width: 300px;
    margin: 0;
}

.page-raconter .question-notes>.question-haut-titre {
    top: 24px;
}

.page-raconter .question-haut>.question-haut-titre:last-child {
    margin-bottom: 0;
}

.page-raconter .groupe-milieu .question-haut-titre::after,
.page-raconter .groupe-zone .question-haut-titre::after {
    margin-left: auto;
    color: #154035;
    font-size: 11px;
    font-weight: 400;
}

.page-raconter .obligatoire {
    margin-left: 4px;
    color: #db1e1e;
    font-size: 15px;
    font-weight: 700;
}

.page-raconter .champ-obligatoire-erreur {
    outline: 2px solid #db1e1e;
    outline-offset: 3px;
}

.page-raconter .message-champ-obligatoire {
    width: 100%;
    margin: 10px 0 0;
    color: #db1e1e;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
}

.page-raconter .choix-milieu,
.page-raconter .choix-zone {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 8vw, 44px);
    row-gap: 17px;
}

.page-raconter .choix-milieu label,
.page-raconter .choix-zone label,
.page-raconter .question-haut-choix label,
.page-raconter .question-bigriverwatch label {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #154035;
    font-size: 12px;
    line-height: 16px;
}

.page-raconter .choix-milieu label,
.page-raconter .choix-zone label {
    color: #000000;
}

.page-raconter .question-haut-choix {
    gap: 12px;
}

.page-raconter input[type="radio"],
.page-raconter input[type="checkbox"] {
    flex: 0 0 15px;
    width: 15px;
    min-height: 15px;
    height: 15px;
    margin: 0;
    padding: 0;
    border: 1px solid #154035;
    border-radius: 50%;
    background: #ffffff;
    appearance: none;
}

.page-raconter input[type="checkbox"] {
    border-radius: 3px;
}

.page-raconter input[type="radio"]:checked,
.page-raconter input[type="checkbox"]:checked {
    border-color: #154035;
    background:
        radial-gradient(circle, #154035 0 4px, transparent 4.5px),
        #ffffff;
    box-shadow: none;
}

.page-raconter input[type="checkbox"]:checked {
    background:
        linear-gradient(#154035, #154035) center / 7px 7px no-repeat,
        #ffffff;
}

.page-raconter input[type="text"],
.page-raconter textarea {
    width: 100%;
    border: 1px solid #8cc7b8;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 12px;
}

.page-raconter #commune_search {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 10px 16px;
}

.page-raconter #commune_search::placeholder,
.page-raconter textarea::placeholder {
    color: #acacac;
}

.page-raconter .suggestions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: -4px;
}

.page-raconter .suggestions button {
    width: auto;
    min-width: 64px;
    min-height: 28px;
    margin: 0;
    padding: 6px 16px;
    border: 1px solid #8cc7b8;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 11px;
    text-align: center;
}

.page-raconter .carte {
    width: 100%;
    max-width: 338px;
    height: 222px;
    margin: 0 auto 10px;
    border: 0;
    border-radius: 20px;
    background: #ffffff;
}

.page-raconter .carte.leaflet-container,
.page-raconter .carte .leaflet-container,
.page-raconter .carte .leaflet-pane,
.page-raconter .carte .leaflet-map-pane {
    border-radius: 20px;
}

.page-raconter .leaflet-control-container {
    font-size: 12px;
}

.page-raconter .question-carte .question-haut-aide {
    margin: -2px 28px 0;
    color: #154035;
    font-size: 12px;
    font-weight: 500;
}

.page-raconter .question-frequence .question-haut-choix {
    margin-top: 2px;
}

.page-raconter textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    resize: vertical;
}

.page-raconter .question-notes {
    gap: 14px;
}

.page-raconter .notation-lieu {
    gap: 12px;
}

.page-raconter .ligne-etoiles {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.page-raconter .ligne-etoiles p {
    min-width: 0;
    margin: 0;
    color: #154035;
    font-size: 12px;
}

.page-raconter .etoiles {
    gap: 2px;
}

.page-raconter .etoile-bouton {
    width: auto;
    min-height: auto;
    margin: 0;
    border: 0;
    background: transparent;
    font-size: 22px;
}

.page-raconter .titre-section-bigriverwatch {
    width: 100%;
    max-width: 310px;
    min-height: 52px;
    margin: 14px auto 16px;
    padding: 14px 22px;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.page-raconter #questions-bigriverwatch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 20px;
}

.page-raconter .categorie-bigriverwatch {
    width: 100%;
}

.page-raconter .categorie-bigriverwatch-ouverte {
    padding: 18px 20px 20px;
    border-radius: 20px;
    background: #ffffff;
}

.page-raconter .bouton-categorie-bigriverwatch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 22px 10px 26px;
    border: 1px solid #8cc7b8;
    border-radius: 20px;
    background: #ffffff;
    color: #154035;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-align: left;
}

.page-raconter .categorie-bigriverwatch-ouverte .bouton-categorie-bigriverwatch {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.page-raconter .bouton-categorie-bigriverwatch span:first-child {
    overflow-wrap: anywhere;
}

.page-raconter .fleche-categorie {
    flex: 0 0 auto;
    color: #154035;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
}

.page-raconter .contenu-categorie-bigriverwatch {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 24px;
}

.page-raconter .contenu-categorie-bigriverwatch[hidden] {
    display: none;
}

.page-raconter .question-bigriverwatch {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.page-raconter .question-bigriverwatch .question-haut-titre {
    display: block;
    margin: 0 0 14px;
    color: #154035;
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
}

.page-raconter .reponses-bigriverwatch {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-raconter .question-bigriverwatch input[type="text"] {
    width: 100%;
    min-height: 78px;
    padding: 12px 14px;
}

.page-raconter .question-bigriverwatch .champ-autre-bigriverwatch {
    margin-top: 4px;
    border-color: #8cc7b8;
    border-radius: 20px;
}

.page-raconter .question-bigriverwatch .reponse-autre-bigriverwatch {
    align-items: center;
    margin-top: 4px;
}

.page-raconter .question-bigriverwatch .reponse-autre-bigriverwatch .champ-autre-bigriverwatch {
    margin-top: 0;
}

.page-raconter hr {
    display: none;
}

.page-raconter .ajout-photos,
.page-raconter .formulaire-histoire>button[type="submit"] {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.page-raconter #bouton_photos,
.page-raconter .formulaire-histoire>button[type="submit"],
.page-raconter .lien-page {
    min-height: 46px;
    padding: 13px 20px;
    border: 1px solid #8cc7b8;
    border-radius: 20px;
    color: #154035;
    font-size: 15px;
    font-weight: 700;
}

.page-raconter #bouton_photos,
.page-raconter .formulaire-histoire>button[type="submit"] {
    width: 100%;
    margin-top: 0;
    background: #ecf9f5;
}

.page-raconter .formulaire-histoire>button[type="submit"] {
    min-height: 50px;
    color: #ffffff;
    background: #154035;
    font-size: 16px;
}

.page-raconter .lien-page {
    width: calc(100% - 42px);
    max-width: 360px;
    margin-top: 16px;
    background: #ffffff;
}

@media (max-width: 480px) {
    body.page-raconter {
        width: 100%;
    }

    .page-raconter .formulaire-histoire>p:first-child {
        /* Sur les petits téléphones l'introduction peut revenir à la ligne pour rester lisible */
        min-height: auto;
        line-height: 20px;
    }

    .page-raconter .choix-milieu,
    .page-raconter .choix-zone {
        column-gap: 16px;
    }
}

.lien-lire-carte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 8px;
    padding: 6px 16px;
    border: 1px solid #8cc7b8;
    border-radius: 999px;
    color: #154035;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.page-lire-histoire .bottom-nav {
    width: min(100%, 402px);
}

.lire-histoire-page {
    position: relative;
    min-height: calc(100vh - 62px);
    padding: 34px 0 28px;
    background: linear-gradient(180deg, #174f43 0, #9de2cf 260px, #9de2cf 100%);
}

.retour-lire-histoire {
    position: absolute;
    top: 34px;
    left: 24px;
    width: 34px;
    min-height: 34px;
    color: #ffffff;
    font-size: 34px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
}

.titre-lire-histoire {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    min-height: 35px;
    margin: 0 auto 24px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #111111;
    background: #ffffff;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
}

.bloc-lire-histoire,
.bloc-carte-lire-histoire,
.photo-lire-histoire {
    width: 367px;
    max-width: calc(100% - 42px);
    margin: 0 auto 24px;
}

.bloc-lire-histoire {
    padding: 22px 24px;
    border-radius: 20px;
    background: #ffffff;
}

.texte-lire-histoire {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.texte-lire-histoire p,
.notes-lire-histoire p,
.photo-lire-histoire-vide {
    margin: 0;
    color: #154035;
    font-size: 13px;
    line-height: 18px;
}

.texte-lire-histoire strong {
    color: #154035;
}

.carte-lire-histoire {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
}

.carte-lire-histoire-vide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #6d7471;
    text-align: center;
}

.notes-lire-histoire {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-lire-histoire h2 {
    margin: 0 0 8px;
    color: #154035;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.notes-lire-histoire p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notes-lire-histoire span {
    min-width: 0;
}

.notes-lire-histoire strong {
    flex: 0 0 auto;
    color: #154035;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
}

.photo-lire-histoire img {
    display: block;
    width: 100%;
    max-height: 260px;
    border-radius: 20px;
    object-fit: cover;
}

.mes-zhistoires-vide {
    min-height: calc(100vh - 62px);
    min-height: calc(100dvh - 62px);
    padding: 28px 20px 32px;
    background: #9de2cf;
}

.page-mes-zhistoires-vide .mes-zhistoires-vide>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 8px 18px;
    border-radius: 999px;
    color: #154035;
    background: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.page-mes-zhistoires-vide h1 {
    margin: 0 0 20px;
    color: #154035;
    font-size: 22px;
    line-height: 28px;
}

.page-mes-zhistoires-vide h2 {
    margin: 20px 0 12px;
    color: #154035;
    font-size: 18px;
    line-height: 24px;
}

.page-mes-zhistoires-vide p {
    margin: 0 0 14px;
    padding: 16px 18px;
    border-radius: 20px;
    background: #ffffff;
    line-height: 20px;
}

.page-mes-zhistoires-vide #map-lire-histoire {
    overflow: hidden;
    margin: 0 0 14px;
    border-radius: 20px;
}

.page-mes-zhistoires-vide .bottom-nav {
    width: min(100%, 402px);
}

.page-mes-zhistoires-vide .image-mes-zhistoires {
    display: block;
    width: 320px;
    height: 220px;
    max-width: 100%;
    margin: 0 auto 18px;
    border-radius: 20px;
    object-fit: cover;
}

@media (max-width: 360px) {
    .retour-lire-histoire {
        left: 18px;
    }

    .titre-lire-histoire {
        width: 205px;
    }

    .notes-lire-histoire p {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

.graphiques-admin {
    /* Conteneur responsive des graphiques admin */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 34px;
    padding: 0 18px;
}

.bloc-graphique-admin {
    flex: 0 1 520px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 30px;
    padding: 24px;
    border-radius: 24px;
    background: var(--blanc);
}

.bloc-graphique-admin-large {
    /* Graphique plus large pour comparer les notes de chaque milieu sans tasser les textes */
    flex-basis: 820px;
    max-width: 820px;
}

.bloc-graphique-admin h2 {
    margin: 0 0 18px;
    color: var(--vert-fonce);
    font-size: 18px;
    text-align: center;
}

.bloc-graphique-admin canvas {
    width: 100%;
    max-height: 360px;
}

.matrice-correlation-conteneur {
    overflow-x: auto;
    padding-bottom: 8px;
}

.bloc-graphique-admin .matrice-correlation-canvas {
    display: block;
    width: auto;
    max-width: none;
    max-height: none;
    margin: 0 auto;
}

.info-correlation {
    margin: 16px 0 0;
    color: var(--vert-fonce);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 900px) {
    .bloc-graphique-admin {
        /* Sur PC, deux graphiques peuvent tenir cote a cote sans s'agrandir */
        margin-bottom: 0;
    }
}
