/*header style*/
html, body {

    margin: 0; /* Enlever les marges qui pourraient affecter */
    padding: 0;
    overflow-x: hidden; /* Empêche un scroll horizontal inutile */
}

body {
 font-family: "Century Gothic";
 font-size: 13px;
}
header {
    text-align: center; 
    /* padding: 20px; */
 }
footer{
    text-align: center;
    font-size: smaller;
}
main {
    border-bottom: solid grey  0.5px;
    min-height: 500px;
    margin-top: 21px;
    text-justify: inter-word;
}

/*navigation bar style*/
nav {
    text-align: center;
    position:sticky;
    top: 0;
    z-index: 1000;
    display: block;
    height: auto;
    width: 100%; /* Permet à la barre de navigation de s'étendre */
}
 /*navigation bar button style*/
 nav a {
    color: #000000;
    text-decoration: none;
    font-size: larger;
    padding-left : 15px;
    padding-right: 15px;
    background: linear-gradient(to top, rgba(170, 12, 12, 0.685) 0%, rgba(170, 12, 12, 0.685) 10%, transparent 10.01%) no-repeat left bottom / 0 100%;
    transition: background-size .5s;
 }
 nav a:hover {
    background-size: 100% 100%;
 }

 nav a.no-nav-style {
    color: initial;               /* couleur par défaut du navigateur */
    text-decoration: underline;   /* ou none selon ce que tu veux */
    font-size: initial;            /* taille normale */
    padding-left: 0;
    padding-right: 0;
    background: none;
    transition: none;
}

cite{
    font-size: small;
}

/* Style global balise */
h2{
    line-height: 0.8 !important;
}

.logo {
    width: 65px;
    height: 65px;
    display: inline;

} 
.row-spe {
    flex-wrap: wrap;
    display: flex;
    margin : 5vh 45vh 5vh 45vh;
   
 }

 .center{
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
 }

.right{
    justify-content: right; /* Centre horizontalement */
    align-items: right; /* Centre verticalement */
    

}

.left{
    justify-content: left; /* Centre horizontalement */
    align-items: left; /* Centre verticalement */

}
/* bannière réseau sociaux */

.social-banner {
    position: fixed;
    top: 50%;
    right: 0;
    width: 50px;
    height: 150px;
    background-color: #d83c16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transform: translateY(-50%);
    border-radius: 10px 0 0 10px;
}

.social-icon {
    color: white;
    font-size: 24px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    color: #f5f5dc;
    transform: scale(1.2);
}
/* Image d'accueil */
.home-img {
    background-image: url('../image/banner.png');
    background-size: cover;
    background-position: center;
    width: 100%;      /* prend toute la largeur de l'écran */
    height: 40vh;     /* hauteur = 50% de l'écran */
    display: flex;    /* pour centrer le texte */
    align-items: center;
    justify-content: flex-end;  /* texte sur la droite */
    text-align: right;          /* texte aligné à droite */
    padding-right: 50px;        /* espace entre texte et bord droit */
    padding-left: 20px;         /* petit padding gauche */
}

.home-txt {
    font-size: clamp(1.5rem, 5vw, 3rem); /* taille responsive */
    font-weight: bold;
    color: white;
    line-height: 1.4;
}
.home-img img {
    width: auto;  /* L'image prend toute la largeur de son conteneur */
    height: auto; /* La hauteur s'ajuste proportionnellement */
  }

 .post-box {
    background-color: #f5f5dc;
    border-radius: 25px;
    width: 800px;
    height: 80%;
    display: flex;
    padding: 20px;
    margin-right: 50px;
    margin-left: 50px;
 }
 
.text-post-box{
    margin-left: 0;
    width: 70%;
}

 .img-post-box {
    margin : 0 0px 0 20px;
 }
 /*profile image and heading style*/
 .img-post-box img {
    display: block;
    margin-left: 0;
    margin-right: 0;
    width:300px;
    height:300px;
 }
 .profile h1 {
    text-align: center;
 }

 .img-card-pers{
    width:100%;
    height:180px;
 }

 /* Alertify */
 /* Ajuster la largeur max de la modale Alertify */
.alertify .ajs-dialog {
  max-width: 900px;   /* adapte selon tes besoins */
  width: 90%;         /* pour être responsive */
}

/* Ajuster le contenu (padding, texte centré, etc.) */
.alertify .ajs-content {
  padding: 20px;
}


/* MOBILE */
 @media (max-width: 576px) {
    .home-txt {
        font-size: 1.5rem;
        padding: 0 10px; /* un peu d'air sur les côtés */
    }

    .home-img {
        height: 30vh; /* moins haut sur mobile */
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .social-banner {
        top: auto;        /* on ne veut plus centrer verticalement */
        bottom: 0;        /* placé en bas de l’écran */
        right: 0;
        width: 10%;      /* largeur pleine pour toucher facilement */
        height: 75px;     /* hauteur réduite */
        flex-direction: column;
        justify-content: space-around;
        border-radius: 10px 0 0 10px;
    }

    .social-icon {
        font-size: 20px; /* légèrement plus petit si besoin */
    }

    .custom-img {
    height: 150px;     /* encore plus petit sur mobile */
  }

    .custom-avatar {
        zoom: 50%;
    }

}