/* reset.css */
/* Ajoutez ici le contenu de votre reset.css si nécessaire */

/* style.css */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #B6C9DD;
    color: #333;
}

header {
    background-color: #B74232;
    color: white;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #B74232;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav ul li {
    float: left;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #E2351D;
}

main {
    padding: 20px;
}

.box {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item img {
    width: 100%;
    height: auto;
}

.news-content {
    padding: 15px;
    position: relative;
}

.news-content h3 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.news-content p {
    margin: 0;
    overflow: hidden;
    position: relative;
    height: 80px; /* Ajustez cette hauteur en fonction de vos besoins */
}

.summary {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    height: 3.6em;
    line-height: 1.2em;
    max-height: 3.6em;
    background: linear-gradient(to bottom, transparent, white);
}
.italic {
    font-style: italic;
}
.bold {
    font-weight: bold;
}
/* #################### CHARTE DE PETIT COEUR ############# */
.charte-content {
    display: flex;
    flex-direction: column;
    margin-left: 20vw;
    align-content: space-around;
    margin-right: 20vw;
}
#Charte-title {
    color: #B74232;
    font-size: 4em;
}
.Charte-title_div {
    display: flex;
    justify-content: space-between;
}
.Charte-title_div img {
    max-width: 102px; /* Limiter la taille maximale des images */
    max-height: 77px; 
}
#Charte-title_explication {
    margin-left: 5rem;
    color:#E2351D;
    font-weight: bold;
}

#Charte-begin_charte {
    text-align: center;
    font-size: 3.5rem;
}

.Charte-Articles {
    color: #B74232;
    font-weight: bold;
    font-size: 20px;
    margin-top: 1em;
    margin-bottom: 1em;
}
#Charte-Puces {
    margin-left: 5em;
}
.Charte-Sous_puces {
    margin-top: 5px;
    margin-bottom: 5px;
    list-style-type: circle;
}
.Charte-Article_texte {
    margin-left: 2em;
}
.Charte-footer {
    margin-top: 2em;
    font-style: italic;
}


/* #################################################################### */
/* ############### PARTIE CREATION COMPTE UTILISATEUR ################# */
.box h2 {
    text-align: center;
    color: #B74232;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    justify-content: center;
}

.form-group input:focus {
    border-color: #B74232;
    outline: none;
}

.note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.button-container {
    display: flex;
    justify-content: center;
}

button[type="submit"] {
    background-color: #B74232;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #E2351D;
}

.box {
    padding: 20px;
}

.box p {
    text-align: center;
    color: #666;
    margin-top: 20px;
}


/* #################################################################### */
/* ############### PARTIE CREATION COMMENTAIRES ####################### */

#comments .comment {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#comments .comment p {
    margin: 0 0 5px;
}

#comments .comment strong {
    color: #B74232;
}

#comments .comment-date {
    font-size: 0.85em;
    color: #666;
}

#add-comment .box {
    margin-top: 20px;
}

#add-comment .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

#add-comment .form-group button {
    background-color: #B74232;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#add-comment .form-group button:hover {
    background-color: #E2351D;
}
.displayname_article p,
.displayname_article a {
    display: inline;
    margin: 0 5px;
}
.displayname_article {
    display: inline-block;
    white-space: nowrap;
}


/* #################################################################### */
/* ##################### PARTIE PROFILE ####################### */

/* Formulaires de profil */
#profile .form-group, #profile .btn-delete {
    margin-bottom: 15px;
}

#profile input[type="text"], #profile input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#profile button[type="submit"] {
    padding: 10px 20px;
    background-color: #B74232;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#profile button[type="submit"]:hover {
    background-color: #E2351D;
}

#profile .btn-delete {
    background-color: #ff4c4c;
    color: white;
}

#profile .btn-delete:hover {
    background-color: #e60000;
}

/* Section des commentaires */
#user-comments .comment {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

#user-comments .comment p {
    margin: 0 0 5px;
}

#user-comments .comment strong {
    color: #B74232;
}

#user-comments .comment-date {
    font-size: 0.85em;
    color: #666;
}

/* #################################################################### */
/* ##################### PARTIE NOTIFICATION ####################### */


/* Styles pour la notification */
.notification {
    display: none;
    position: fixed;
    top: -100px; /* Position initiale hors de l'écran */
    left: 20%;
    transform: translateX(-50%);
    background-color: #4CAF50; /* Couleur par défaut : succès */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: top 0.5s ease-in-out;
    font-size: 16px;
}

.notification.error {
    background-color: #f44336; /* Rouge pour les erreurs */
}

.notification.success {
    background-color: #4CAF50; /* Vert pour les succès */
}

/* #################################################################### */
/* ##################### PARTIE DECONNEXION ####################### */

/* Styles pour l'icône de déconnexion */
nav ul li a {
    display: flex;
    align-items: center;
}

nav ul li a i.fas {
    margin-right: 8px;
    font-size: 16px;
}

nav ul li a:hover i.fas {
    color: #E2351D; /* Changer la couleur de l'icône au survol */
}


/* ########## Style général ########## */

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* #################################################################### */
/* ##################### PARTIE CONTACT ####################### */

.contact-page {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

.contact-left {
    width: 65%; /* Largeur de la partie gauche */
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-left h2 {
    color: #B74232;
}

.team-member {
    margin-bottom: 20px;
}

.team-member h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}

.team-member p {
    margin: 5px 0;
}

/* Partie droite pour la carte et les contacts */

.contact-right {
    width: 30%;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 300px; /* Hauteur de la carte */
    margin-bottom: 20px;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 10px;
    color: #B74232;
}

.contact-info p {
    margin: 5px 0;
}

/* ########## Responsive ########## */

@media (max-width: 768px) {
/* #################################################################### */
/* ##################### RESPONSIVE INDEX ####################### */
    header {
        width: 100vw;
        max-width: 100vw;
    }
    header nav ul{
        display: flex;
        flex-direction: column;
    }
/* #################################################################### */
/* ##################### RESPONSIVE CONTACT ####################### */
    .contact-page {
        flex-direction: column;
        justify-content: space-around;
        padding:0;
        width: 100vw;
        max-width: 100vw;
    }

    .contact-left, .contact-right {
        padding-top: 1vh;
        margin-bottom: 2vh;
        width: 90vw;
        margin-right: auto;
        margin-left: auto;
    }
}
@media (max-device-width:768px) and (orientation: landscape) {
  html {
   -webkit-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
  }
}



