.header_space{
  height: 100px; 
}

.header_space_mobile{
  height: 50px; 
}


html{
    position:relative;
    min-height: 100%;
}

body{
	background-color: #FAFAFA;
	color:#404040;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html, body.HomePage{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* page d'accueil : exactement la hauteur de l'écran, sans défilement ; photo au-dessus du pied de page */
body.HomePage.full-dark{
    background-color: black;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

body.HomePage.full-dark > br{
    display: none;
}

body.HomePage.full-dark > .container{
    max-width: none;
    padding: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* la photo recouvre tout l'écran, quel que soit son format : agrandie et centrée, sans déformation */
.home-photo{
    position: fixed;
    inset: 0;
    z-index: 0;
}

.home-photo img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/* fondu d'arrivée sur les autres pages (script dans _base.html) : la photo recouvre la page, puis s'efface */
html.fondu-casaque::after{
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000 url('../images/casaque-1200.jpg') center / cover no-repeat;
    background-image: image-set(url('../images/casaque-1200.jpg') 1x, url('../images/casaque-2400.jpg') 2x);
    transition: opacity 1s ease-out;
}

html.fondu-casaque.fondu-casaque-fin::after{
    opacity: 0;
    pointer-events: none;
}

/* bloc de connexion : sombre et discret, posé sur la photo, en bas et centré */
.home-login{
    position: fixed;
    left: 50%;
    bottom: 6vh;
    transform: translateX(-50%);
    z-index: 1;
    width: max-content;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background-color: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    transition: opacity 1s ease-out, visibility 1s;
}

/* caché jusqu'à la première action du visiteur (static/js/accueil.js) ; sans JavaScript, il reste visible */
html.js .home-login:not(.home-login-visible){
    opacity: 0;
    visibility: hidden;
}

/* réglage système « réduire les animations » : le bloc apparaît sans fondu */
@media (prefers-reduced-motion: reduce){
    .home-login{
        transition: none;
    }
}

.home-login input{
    width: 220px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
}

.home-login input::placeholder{
    color: rgba(255, 255, 255, 0.7);
}

.home-login input:focus{
    outline: 2px solid #FFFFFF;
    outline-offset: 1px;
}

.home-login button{
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    background-color: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.home-login a{
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* téléphone : les éléments s'empilent sur toute la largeur du bloc */
@media (max-width: 576px){
    .home-login{
        left: 16px;
        right: 16px;
        bottom: 4vh;
        transform: none;
        width: auto;
        max-width: none;
    }
    .home-login input,
    .home-login button{
        width: 100%;
    }
}

/* pas de pied de page sur l'accueil : la photo occupe tout l'écran */
body.HomePage.full-dark .footer-custom{
    display: none;
}

.icon_viewability{
    color: #CED4DA;
    fill: currentColor;
}

.logo_small{
  height:35px;
}

#toast-container > div {
    opacity:0.95 !important; 
}

#toast-container{
    padding-top: 10px;
}


.dropdown-menu-large {
    min-width: 20rem;
}
.dropdown-border-top{
    border-top:  1px solid #E9ECEF;
}

.info_perso {
    background-color: #EDF2FA;
}

a{
  color:inherit;
}

.bleu{
  color: #007bff;
}


a.info_perso:hover{
    background-color: #E5EAF2;
}

.background_white{
    background-color: white;
}

a.background_white:hover{
    background-color: #F8F9FA;
}

.dropdown-notifications-background {
    background-color: #F8F9FA;
}

.dropdown-notifications-bottom {
    background-color: #F8F9FA;
    font-weight: bold;
    text-align: center;
}

.dropdown-item .span_notif_dropdown{
    white-space: normal;
    font-size:85%;
}

a.notification_page{
    text-decoration: none;
    color: inherit;
}

.lien_gris{
    color: #B4B4B4;
    font-style: italic;
    fill: currentColor;
}

.{
    background-color: #EDF2FA;
}

.comment_form_margin .form-group{
    margin-bottom: 0;
}


a.lien_gris:hover{
    color:#A0A0A0;
    fill: currentColor;
}

.size_normal{
    font-size: 10px;
}

pretty{
    font-size:25px;
}

/*fix for pretty checkbox lib*/
.pretty {
    white-space: normal;
}
.pretty .state label::after, .pretty .state label::before
{
    top:-2px;
}

/* photo de profil devant un commentaire (voir templates/users/avatar.html) */
.avatar{
    flex-shrink: 0;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-initiale{
    background-color: #08217B;
    color: #FFFFFF;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment_writter{
    color:#385898;   
    font-weight: bold; 
}


.big-checkbox{
    width: 30px;
    height: 30px;
}

.commentaire{
    background-color:#EBEBEB;
    padding: 2px 9px 3px 9px;
    border-radius: 15px;
}

.comment_form{
    background-color:#F5F5F5;
    padding: 2px 9px 3px 9px;
    margin:5px 0 0 0;
    border-radius: 15px;   
}


.noborder{
	border:0 0 0 0;
	background-color:transparent;
}

.border-thick{
    border-style: solid;
    border-width: 0px 0px 0px 3px;
    border-color:#A0A0A0;

    min-height: 10px;
}

.footer-custom {
    background-color:white;
    border-top:2px solid #EEEEEE;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 55px;
}

/* change the background color */
.navbar-custom {
    background-color:white;
    border-bottom:2px solid #EEEEEE;
}
/* change the brand and text color */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
 
}
/* change the link color */
.navbar-custom .navbar-nav .nav-link {
    color: #404040;
}
/* change the color of active or hovered links */
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:focus .nav-link,
.navbar-custom .nav-item:hover .nav-link {
    color: #808080;
}



.navbar-brand img {
    width:auto;
    max-height: 50px;
}

/*pagination*/
.pagination_custom .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #404040;
  /*background-color: #D8EBEB;*/
  border: 1px solid #DFDFDF;
}
.pagination_custom .page-item.disabled .page-link {
  color: #868e96;
  pointer-events: none;
  cursor: auto;
  background-color: #CEFFCE;
  border-color: #DFDFDF;
}
.pagination_custom .page-item.active .page-link {
  z-index: 1;
  color: #404040;
  background-color: #fff;
  border-color: #404040;
}
.pagination_custom .page-link:focus, .page-link:hover {
  color: #fff;
  text-decoration: none;
  background-color: #404040;
  border-color: #404040;
}

/* ===== Page d'une liste : design A, couleurs de la casaque (maquette templates/maquettes/liste-a.html) ===== */

/* liseré tricolore sous la barre de navigation, sur toutes les pages */
.navbar-custom::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 6px;
    background: linear-gradient(to right, #08217B 33.33%, #7BBDFF 33.33% 66.66%, #FF7321 66.66%);
}

.liste{
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
    color: #1A1A1A;
    font-size: 16px;
}

.liste a{
    color: #08217B;
}

.liste-entete{
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 0 40px;
}

.liste-titre{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 24px;
}

.liste-titre h1{
    flex-grow: 1;
    margin: 0;
    color: #08217B;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.liste .liste-ajouter{
    font-weight: 600;
    padding: 10px 0;
}

.liste-accueil{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #E3F1FF;
    border-left: 4px solid #FF7321;
    border-radius: 4px 12px 12px 4px;
    padding: 16px 20px;
}

.liste-accueil strong{
    font-size: 14px;
    font-weight: 600;
    color: #08217B;
}

.liste-accueil p{
    margin: 2px 0 0;
    line-height: 1.6;
}

.liste .liste-accueil-vide{
    display: block;
    border: 1px dashed #7BBDFF;
    border-radius: 12px;
    padding: 14px 20px;
    color: #4A4A4A;
}

.liste-sommaire{
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 12px;
    padding: 12px 20px;
}

.liste-sommaire h2{
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #6B6B6B;
}

.liste-sommaire ol{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.liste-sommaire li{
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.liste-sommaire li + li{
    border-top: 1px solid #F0F0F0;
}

.liste-sommaire-numero{
    color: #6B6B6B;
    font-variant-numeric: tabular-nums;
}

.liste .liste-sommaire a{
    color: #1A1A1A;
    font-weight: 500;
}

.liste-vide{
    color: #4A4A4A;
}

/* statut d'une idée, juste à côté de son nom */
.statut{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.statut::before{
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.statut-disponible{
    background: #E3F1FF;
    color: #08217B;
}

.statut-disponible::before{
    background: #08217B;
}

.statut-moi{
    background: #E8F5EC;
    color: #1B6B3A;
}

.statut-moi::before{
    background: #2E9E5B;
}

.statut-autre{
    background: #F0F0F0;
    color: #4A4A4A;
}

.statut-autre::before{
    background: #9A9A9A;
}

.statut-brouillon{
    background: #FFF4DE;
    color: #7A4B00;
}

.statut-brouillon::before{
    background: #E0A030;
}

/* une idée */
.idee{
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 8px;
    border-top: 1px solid #ECECEC;
    padding: 32px 0;
}

.idee:last-child{
    border-bottom: 1px solid #ECECEC;
}

.idee-numero{
    color: #FF7321;
    font-size: 28px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.idee-corps{
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.idee-ligne-titre{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.idee-titre{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    flex-grow: 1;
    min-width: 0;
}

.idee-titre h2{
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.idee-offrir{
    border: 0;
    border-radius: 999px;
    background: #D9480F;
    color: #FFFFFF;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
}

.idee-offrir:hover{
    background: #B4430E;
}

.idee-ne-plus-offrir, .commentaire-supprimer{
    border: 0;
    background: transparent;
    color: #4A4A4A;
    text-decoration: underline;
    cursor: pointer;
}

.idee-ne-plus-offrir{
    font-size: 14px;
    padding: 10px 4px;
}

.idee-autres-actions{
    border: 0;
    background: transparent;
    color: #4A4A4A;
    font-size: 22px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.idee-autres-actions:hover{
    background: #F0F0F0;
}

/* ligne d'informations : séparées par un filet, sans icône */
.idee-infos{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 14px;
    color: #6B6B6B;
}

.idee-infos > span + span:not(.idee-etiquette)::before{
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    margin-right: 12px;
    vertical-align: -2px;
    background: #D4D4D4;
}

.idee-etiquette{
    border: 1px solid #E8A27A;
    color: #B4430E;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}

.idee-description{
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.idee-description a{
    display: inline-block;
}

.idee-commentaires{
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #F4F4F5;
    font-size: 14px;
    color: #4A4A4A;
}

.idee-commentaires h3{
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6B6B6B;
}

/* les commentaires de la page d'une liste (remplace l'ancienne bulle grise) */
.idee-commentaires .commentaire{
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.commentaire-corps{
    min-width: 0;
    overflow-wrap: anywhere;
}

.commentaire-corps strong{
    color: #1A1A1A;
    font-weight: 600;
}

.commentaire-date{
    color: #6B6B6B;
    font-size: 13px;
}

.commentaire-corps p{
    margin: 2px 0 0;
    line-height: 1.5;
}

.commentaire-corps form{
    display: inline;
}

.commentaire-supprimer{
    padding: 0;
    font-size: 13px;
}

.commentaire-saisie label{
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #6B6B6B;
}

.commentaire-saisie div{
    display: flex;
    gap: 8px;
}

.commentaire-saisie input{
    flex-grow: 1;
    min-width: 0;
    border: 1px solid #DADADA;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
}

.commentaire-saisie button{
    border: 0;
    background: transparent;
    color: #08217B;
    font-weight: 600;
    font-size: 15px;
    padding: 0 8px;
    min-height: 44px;
    cursor: pointer;
}

@media (max-width: 480px){
    .liste-titre h1{
        font-size: 34px;
    }

    .idee-titre h2{
        font-size: 23px;
    }
}

/* encadré « qui voit quoi » de la page d'une liste */
.liste-info{
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-left: 4px solid #7BBDFF;
    border-radius: 4px 12px 12px 4px;
    padding: 12px 20px;
    font-size: 14px;
    color: #4A4A4A;
}

/* accueil : les listes de la famille, en pastilles avec la photo de chacun */
.accueil-titre{
    color: #08217B;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.accueil-listes{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

a.accueil-liste{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 5px;
    border: 1px solid #DCE6F2;
    border-radius: 999px;
    background: #FFFFFF;
    color: #08217B;
    font-weight: 600;
    text-decoration: none;
}

a.accueil-liste:hover{
    background: #E3F1FF;
    border-color: #7BBDFF;
    color: #08217B;
}

a.accueil-liste-moi, a.accueil-liste-moi:hover{
    background: #08217B;
    border-color: #08217B;
    color: #FFFFFF;
}

.accueil-liste-moi .avatar-initiale{
    background: #FFFFFF;
    color: #08217B;
}

.accueil-liste .avatar, .navbar-custom .avatar{
    width: 28px;
    height: 28px;
    font-size: 13px;
}

/* photo de profil à gauche de l'e-mail, dans la navigation */
.navbar-custom .avatar{
    display: inline-flex;
    vertical-align: middle;
    margin-right: 8px;
}
