  /*style pour poemes poesie new*/  
* { 
	margin : 0px;
	padding : 0px;
}
 body { 
	font-family : "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size : 1em; 
        line-height:1.6;
        background-color: #D5E3EA; 
        justify-content: center; 
 }
#nav_haut{
    padding: 0px;
    margin : 0px; 
    width: 100%; 
    background: linear-gradient(90deg, #8B5E3C, #D9B08C);
} 
#nav_haut ul{ 
    padding-top: 10px;
    padding-bottom:10px; 
    max-width: 1053px;
    text-align: left; 
    margin: auto;
}
#nav_haut li { 
    padding : 19px 40px 0px; 
    height : auto; 
    display : inline;
}
#nav_haut li a{ 
    font-family : tahoma, sans-serif;
    font-size: 0.9em; 
    font-weight: bold;
    color: white; 
    text-decoration : none;
}
/*chemin*/
.breadcrumb { list-style: none; font-size: 0.8em; padding: 0; margin: 0; display: flex; line-height: .8;  }
.breadcrumb li {  padding: 5px 0 5px 5px;  }
.breadcrumb li + li::before {  content: ">"; margin: 0 5px 0 2px; }
.breadcrumb a { color: #8B5E3C; text-decoration: none; }      
.breadcrumb a:hover {  text-decoration: underline; }

main{ 
	background-color: white;
	width: 100%;
	max-width: 1053px;
	margin: auto;
	height: auto;
	border-bottom: 1px solid #fff;
}
main img.imghaut{  
    width: 100%; 
    max-width: 1053px;
    height: auto; 
    max-height: 372px; 
    object-fit: cover; 
    background-color: white; 
    padding-bottom: 0px;
}
#deuxcol {
    display: flex; /* Utiliser Flexbox pour l'agencement */
    justify-content: space-between; /* Espacer les éléments horizontalement */
    flex-wrap: wrap; /* Permet de passer en une colonne sur petits écrans */
    align-items: flex-start; /* Aligner les éléments en haut pour éviter le décalage vertical */
}

#article {
    flex: 1; /* Prend tout l'espace restant disponible */
    min-width: 0; /* Permet à l'article de se réduire si nécessaire */
    padding-right: 10px; /* Espacement pour séparer du nav_bas */
    box-sizing: border-box; /* Inclut padding et bordures dans la largeur totale */
}

.imagearticle {
    float: right; /* Positionne l'image à droite */
    width: 200px;
    height: 200px;
    border-radius: 5px; /* Coins arrondis */
    object-fit: cover; /* Remplit bien le cadre */
    overflow: hidden; /* Cache le surplus */
    margin-left: 15px; /* Ajoute un espace entre l'image et le texte */
}
.photo-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.photo-container img { 
    padding: 0.4rem;
    max-width: 600px;
    width: 100%; /* Assure que l'image prend toute la largeur disponible */
    height: auto; /* Conserve les proportions de l'image */
    display: block; /* Assure que l'image est centrée correctement */
    margin: 0 auto; /* Centre l'image horizontalement */
    border-radius: 10px; /* Ajoute des coins arrondis */
}
  /* */
.box_presentation {
    width: 200px;
    height: 226px;
    margin: 4px;
    border: #8B5E3C solid 1px;
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    text-align: center;
    float: left;
    position: relative;  /* Position relative pour positionner l'effet flottant */
    overflow: hidden;    /* Pour éviter que l'image dépasse du conteneur */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Ombre discrète pour l'effet flottant */
    transition: transform 0.3s ease;  /* Transition pour l'effet de flottement */
}

.box_presentation:hover {
    transform: translateY(-5px);  /* Légère élévation de la box au survol */
}

.photo-presentation {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    text-align: center;
    position: relative;  /* Pour contrôler le flottement */
}

.photo-presentation img {
    max-width: 100%;  /* Assure que l'image prend la largeur du conteneur sans la dépasser */
    max-height: 200px;  /* L'image ne doit pas dépasser 250px en hauteur */
    width: auto;  /* Conserver les proportions de l'image */
    height: auto;
    display: block;  /* L'image est centrée automatiquement */
    margin: 0 auto;  /* Centrer l'image horizontalement */
    border-radius: 10px;  /* Coins arrondis pour l'image */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  /* Ombre pour un effet flottant */
    transition: transform 0.3s ease;  /* Transition pour l'effet au survol */
}

.box_presentation:hover .photo-presentation img {
    transform: translateY(-5px);  /* L'image monte légèrement quand on survole */
}
.ptitrep { 
    line-height: 1.2;  /* Ajuster l'interligne */
    display: block;  /* Prend toute la largeur disponible */
    width: 100%;  /* Respecte la largeur du parent */
    max-width: 200px; /* Assure que ça ne dépasse pas */
    white-space: nowrap; /* Empêche le retour à la ligne */
    overflow: hidden; /* Cache le texte qui dépasse */
    text-overflow: ellipsis; /* Ajoute des "..." si le texte est trop long */
    text-align: center; /* Centre le texte sous l'image */
    margin-top: 5px; /* Espacement entre l'image et le texte */
}
/* */
.box_aut_presentation {
    width: 250px;
    height: 50px;
    margin: 4px;
    border: 1px solid #8B5E3C;
    border-radius: 8px;
    text-align: left;
    float: left;
    position: relative;
    background: linear-gradient(90deg, #F5E3D0, #D9B08C);
color: black;
    overflow: hidden;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transition fluide */
    
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 0 0 5px;
}

/* Effet de flottement au survol */
.box_aut_presentation:hover {
    transform: translateY(-5px); /* Fait légèrement flotter la box */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
}

.photo-aut-mini {
    display: flex;
    align-items: center;
}

.photo-aut-mini img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.box_aut_presentation .text-container {
    margin-left: 5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: left;
}

.box_aut_presentation .text-container a {
    text-decoration: none; /* Supprime le soulignement du lien */
    font-weight: bold; /* Rend le texte plus visible */
    display: inline-block;
}

#nav_bas {
    background-color: #eee;
    width: 200px;
    box-sizing: border-box;
    padding: 0; /* Réinitialise tout padding */
    margin: 0; /* Réinitialise toute marge */
}
#nav_bas {
    flex: 0 0 200px; /* Largeur fixe de 200px, mais peut s'ajuster sur petits écrans */
    max-width: 100%; /* S'assure que nav_bas ne dépasse pas la largeur disponible */
    box-sizing: border-box; /* Inclut padding et bordures dans la largeur totale */
}
main h1{
    padding: 0.4rem;
    margin-bottom: 1rem; 
    font-size:1.1rem;
    color: #fff; 
    background: linear-gradient(90deg, #8B5E3C, #D9B08C)
}
main h2{
    padding: 0.4rem;
    font-size:1.1rem;
}
main p{
     margin: 0.4rem;
}
.ptitre {
    margin: 0.4rem; 
    font-size:1.2rem; 
    font-weight: bold; 
    padding-top: 1.2rem;
}
main a{ 
    font-weight: bold; 
    color: #8B5E3C; 
    text-decoration : none; 
}
main ul { 
    margin-left : 0px;  
    margin-right: 10px; 
    margin-bottom : 14px; 
    display:block; 
}
main li {  
    list-style: none; 
    text-align: left;   
    padding-left: 10px;
}
main li a{ 
    font-family : tahoma, sans-serif;
    font-size : 1em; 
    font-weight: bold; 
    color: #8B5E3C; 
    text-decoration : none; 
}
main .liste-article {
    padding-left: 30px;
    list-style-position: outside;
}

main .liste-article li {
    list-style: disc !important;
    padding-left: 0;
    margin-left: 0;
}
.ptitre {
    margin: 0.4rem; 
    font-size:1.2rem; 
    font-weight: bold; 
    padding-top: 1.2rem;
}
p .redac { font-size : 0.7em; }
.photo-mini img{
    max-width: 40px;
    max-height: 40px;
    object-fit: cover; /* L'image remplit l'espace tout en gardant ses proportions */
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 5px;
}
/* Conteneur du formulaire */
form {
    border: 1px solid #8B5E3C;   /* Bordure bleue */
    border-radius: 5px;          /* Coins arrondis */
    padding: 15px;               /* Espace intérieur */
    margin: 10px 0 10px 10px; /* marge gauche de 10px */ 
    background: #f9f9f9;         /* Léger fond gris */
}

/* Labels */
form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Champs texte */
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Bouton */
form button {
    background-color: #8B5E3C;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}

#pub, #encart-local {
	width: 95%;
        max-width: 750px;
        margin: 0.4rem auto; 
        font-size: 0.6rem;
	text-align: center;
        border: 2px dashed #8B5E3C;
        border-radius: 6px;
        background-color: #eee;
}

#pub img, #encart-local img {
	width: 99%;
	max-width: 720px;
	height: auto;
	max-height: 270px;
	object-fit: contain;
	background-color: white;
        margin: 0.5rem auto; 
}

.pagenumero, .alpha {
    background-color : #ddd;
    text-align:center; word-spacing: 0.5rem;padding: 0.5rem 0;
}
.pagenumero, .alpha  p{ font-size : 0.9em; font-weight: bold;}
.pagenumero, .alpha  a{
    color : #8B5E3C;
    text-decoration: none;
    font-weight: normal;
}
.leftcol_box { 
    width : 200px; 
    padding-right: 10px; 
    float: left; 
}
.leftcol_box h4 {
        background: linear-gradient(90deg, #8B5E3C, #D9B08C);
    padding: 7px 0;
    margin: 0; /* Supprime la marge */
    line-height: 1.2em;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
}
.leftcol_box h4 span {
	padding-left: 10px;
}
.categories ul { 
    margin-left : 0px; 
    margin-right: 10px; 
    margin-bottom : 14px; 
    width : 200px; 
    display:block; 
}
.categories li { 
    list-style: none; 
    text-align: left; 
    padding-left: 10px; 
}
.categories li a{ 
    font-family : tahoma, sans-serif; 
    font-size: 0.9rem;
    font-weight: bold; 
    color: #8B5E3C; 
    text-decoration : none; 
}

#mentions, #reseau{
    background-color : #ddd;
    font-size: 0.8rem;
    padding: 0.4rem;
    margin: 0 auto;
    max-width: 1053px;
}
#mentions span a, #reseau span a{
    font-family : tahoma, sans-serif; 
    font-weight: bold;
	color: #8B5E3C;
        text-decoration : none;
}
footer {
	margin : 0px auto;
        padding-top: 1rem;
	max-width : 1053px;
	height : 4rem;
	background-color : #5C5E5F;
	font-size : 0.6rem;
	color : #C8C6C6; 
        text-align: center;
}
.clearthis {
	clear : both;  
}
/* Réarrangement pour petits écrans */
@media (max-width: 768px) {
    #deuxcol {
        flex-direction: column; /* Aligne les colonnes en une seule colonne */
    }

    #nav_bas {
        width: 100%; /* Prend toute la largeur disponible */
        padding-left: 0; /* Supprime le padding gauche */
        padding-top: 20px; /* Espacement en haut pour séparer de l'article */
    }

    #article {
        padding-right: 0; /* Supprime le padding droit */
    }
}
@media only screen and (max-width: 600px) {
    .photo-mini {
        width: 40px; /* ou une taille adaptée aux mobiles */
        height: 40px;
    }
}

/* ==========================================================
 * 06/10/2026 : REFONTE – menu du haut déroulant, collé en haut
 * (commande/haut.php + js/menu.js), même principe qu'aepm.fr.
 * L'ancien #nav_haut ci-dessus n'est plus utilisé.
 * ========================================================== */
#menu_haut {
	width: 100%;
	background: linear-gradient(90deg, #6B4428, #A7764F); /* brun du site, foncé : texte blanc lisible */
	position: sticky;   /* 05/10/2026 : le menu reste en haut de l'écran quand on descend */
	top: 0;
	z-index: 100;
}
#menu_haut .menu-inner {
	max-width: 1053px;
	margin: 0 auto;
	padding: 4px 12px;
	display: flex;
	align-items: center;
	gap: 4px;
	position: relative;
}
#menu_haut ul { list-style: none; }
#menu_haut .menu-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
#menu_haut .menu-links a,
#menu_haut .plus-btn,
#menu_haut .menu-toggle,
#menu_haut .btn-member {
	font-family: tahoma, sans-serif;
	font-size: 15px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 6px;
}
#menu_haut .menu-links a:hover,
#menu_haut .plus-btn:hover,
#menu_haut .menu-toggle:hover,
#menu_haut .btn-member:hover { background: rgba(255, 255, 255, 0.18); }
#menu_haut .menu-toggle { display: none; }
#menu_haut .menu-toggle svg,
#menu_haut .btn-member svg { width: 24px; height: 24px; display: block; }
#menu_haut .menu-toggle .icon-close { display: none; }
#menu_haut .btn-member { margin-left: auto; }

/* Groupes déroulants */
#menu_haut .menu-plus { position: relative; }
#menu_haut .plus-title { display: none; }
#menu_haut .plus-list {
	display: none;
	position: absolute;
	top: 46px;
	left: 0;
	z-index: 50;
	min-width: 260px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
	padding: 6px 0;
}
#menu_haut .menu-plus.plus-ouvert .plus-list { display: block; }
#menu_haut .plus-list a {
	color: #1e293b;
	display: block;
	min-height: 0;
	padding: 10px 18px;
	border-radius: 0;
	font-size: 14px;
}
#menu_haut .plus-list a:hover { background: #f5ece3; color: #6B4428; }

@media (max-width: 768px) {
    #menu_haut .menu-inner { flex-wrap: wrap; padding: 4px 8px; }
    #menu_haut .menu-toggle { display: flex; }
    #menu_haut .btn-member { order: 2; }
    #menu_haut .menu-links {
        display: none;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: calc(100% + 16px);
        margin: 4px -8px -4px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    }
    #menu_haut.menu-ouvert .menu-links {
        display: flex;
        max-height: calc(100vh - 56px); /* menu bloqué en haut : la liste défile si elle est trop longue */
        overflow-y: auto;
    }
    #menu_haut.menu-ouvert .menu-toggle .icon-open { display: none; }
    #menu_haut.menu-ouvert .menu-toggle .icon-close { display: block; }
    #menu_haut .menu-links a {
        color: #1e293b;
        min-height: 50px;
        padding: 0 20px;
        border-radius: 0;
        border-bottom: 1px solid #e2e8f0;
        font-size: 16px;
    }
    #menu_haut .menu-links a:hover { background: #f5ece3; color: #6B4428; }
    /* Les groupes deviennent des listes toujours dépliées */
    #menu_haut .plus-btn { display: none; }
    #menu_haut .plus-title {
        display: block;
        padding: 12px 20px 4px;
        font-family: tahoma, sans-serif;
        font-size: 12px;
        font-weight: bold;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #475569;
        background: #f8fafc;
    }
    #menu_haut .plus-list {
        display: block;
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        background: #f8fafc;
    }
}

/* Barre de lettres : lettre en cours + affinage */
.alpha a.actif { font-weight: bold; text-decoration: underline; }
.alpha .sous-lettres { font-size: 0.9em; margin-top: 4px; }
.alpha .sous-lettres a { display: inline-block; padding: 0 4px; }
/* Sans colonne de droite : l'article prend toute la largeur */
#article { padding-left: 10px; }

/* 06/10/2026 : partenaires institutionnels en pied de page (cbdd/partenaires-pied.php) */
#partenaires-pied {
	max-width: 1053px;
	text-align: center;
	margin: 0 auto;
	padding: 15px 0;
	background-color: #f9f9f9;
}
#partenaires-pied p {
	font-size: 0.85rem;
	color: #7f8c8d;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 15px;
	font-weight: bold;
}
#partenaires-pied2 {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	flex-wrap: wrap;
	padding: 0 10px;
}
#partenaires-pied2 img {
	height: 50px;
	width: auto;
	max-width: 100%;
	filter: grayscale(100%);
	opacity: 0.8;
	transition: all 0.3s ease;
}
#partenaires-pied2 img:hover { filter: none; opacity: 1; }
/* liens du pied de page centrés */
#mentions, #reseau { text-align: center; }

/* 06/10/2026 : accueil, portraits plus petits en grille (6 par ligne sur ordinateur) */
.grille-portraits {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin: 10px 0 20px;
}
.grille-portraits .box_presentation {
	float: none;
	width: auto;
	height: auto;
	margin: 0;
	padding: 6px 4px 8px;
}
.grille-portraits .photo-presentation { max-width: none; display: block; }
.grille-portraits .photo-presentation img {
	width: 100%;
	max-width: 150px;
	height: 170px;
	object-fit: cover;
}
.grille-portraits .ptitrep { max-width: none; font-size: 0.9em; margin-top: 6px; }
@media (max-width: 480px) {
	.grille-portraits { grid-template-columns: repeat(2, 1fr); }
}

/* 06/10/2026 : listes de noms centrées (biographies, melloises, à écrire, rédacteurs) */
.liste-noms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 10px 0 20px;
}
.liste-noms .box_aut_presentation { float: none; margin: 0; width: 240px; }
