* {
	margin: 0;
	padding: 0;
}

body { 
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 1em;
	line-height: 1.6;
	background-color: #D5E3EA;
}
h2, h3{
   margin: 0.4rem;
}
#nav_haut {
	padding: 0;
	margin: 0;
	width: 100%;
	background: linear-gradient(to right, #578CA9, #0ef1f9);
}
#nav_haut ul {
	padding-top: 10px;
	padding-bottom: 10px;
	max-width: 1100px;
	margin: auto;
        justify-content:flex-start;
	display:flex;
	align-items:center;
}

#nav_haut li {
	padding: 0 40px;
	list-style:none;
	display:flex;
	align-items:center;
}

#nav_haut li a {
	font-family:tahoma,sans-serif;
	font-size:0.9em;
	font-weight:bold;
	color:white;
	text-decoration:none;

	display:flex;
	align-items:center;
}
#nav_haut li:last-child {
  margin-left: auto;   /* Pousse l'élément vers la droite */
}
.btn-member{
    margin-left:auto;
    padding-right:15px;
}
.btn-member svg{
	width:22px;
	height:22px;
	display:block;
}

#nav_imag {
	width: 100%;
	text-align: center;
}

#chemin {
	width: 100%;
	max-width: 1100px;
	margin: auto;
	text-align: left;
	background-color: white;
}

#chemin p {
	font-size: 0.8em;
	margin: 0.4rem;
	line-height: 0.9;
}
/*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: #578CA9; text-decoration: none; }      
.breadcrumb a:hover {  text-decoration: underline; }
a.chemin:link, 
a.chemin:visited, 
a.chemin:hover, 
a.chemin:active {
	color: #578CA9;
	font-weight: normal;
	margin: 0.4rem;
}

main {
	background-color: white;
	width: 100%;
	max-width: 1100px;
	margin: auto;
	height: auto;
	border-bottom: 1px solid #fff;
}

main img.imghaut {
    display: block;          /* nécessaire pour que margin fonctionne */
    margin: 0 auto;          /* centre horizontalement */
    width: 100%;
    max-width: 150px;
    height: auto;
    max-height: 150px;
    object-fit: cover;
    background-color: white;
    padding-bottom: 0;
}
#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: 20px; /* Espacement pour séparer du nav_bas */
    box-sizing: border-box; /* Inclut padding et bordures dans la largeur totale */
}
/***********************/
  /* */
.box_presentation {
    width: 280px;
    height: 281px;
    margin: 4px;
    border: #007BFF 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: 280px;
    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: 245px;  /* 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 */
}
    /****ADSAE******/
.logo-containera img { /*doit rester a droite */
    float: right; 
    padding-left: 10px; 
    max-width: 160px; 
    width: auto; 
    height: auto;
}
.redac{
    font-size: 0.85em;
} 
.photo-article img { 
    padding: 0.4rem;
    max-width: 500px;
    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 */
    border : #007BFF solid 1px;
}
.photo-article300 img { 
    padding: 0.4rem;
    max-width: 300px;
    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 */
    border : #007BFF solid 1px;
}
.photo-adsae img { 
    padding: 0.4rem;
    max-width: 300px;
    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 */
    border : #007BFF solid 1px;
}
.photo-adsae2 img { 
    padding: 0.4rem;
    max-width: 500px;
    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 */
    border : #007BFF solid 1px;
}
#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(to right, #578CA9, #0ef1f9);
}

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: #578CA9;
	text-decoration: none;
}

main ul {
	margin-left: 0;
	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: #578CA9;
	text-decoration: none;
}
/* Conteneur du formulaire */
form {
    border: 1px solid #007BFF;   /* 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: #007BFF;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #0056b3;
}
/*max-width: 1100px; */
#partenaires-pied{
    max-width: 1100px; /*modifier pour chaque site; */
    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;
}

#pub, #encart-local {
	width: 95%;
        max-width: 750px;
        margin: 0.4rem auto; 
        font-size: 0.6rem;
	text-align: center;
        border: 2px dashed #007BFF;
        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; 
}
/* table pour les tarifs*/

    .table-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      width: 100%;
      max-width: 600px;
      /* Centrage horizontal */
      margin: 20px auto; 

      border-top: 1px solid #ccc;
      border-left: 1px solid #ccc;
}

  .table-cell {
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    min-height: 40px; /* Assure une visibilité même vide */
  }

  /* Optionnel : Style pour la première ligne (En-tête) */
  .header {
    background-color: #f4f4f4;
    font-weight: bold;
  }
/* fin table pour les tarifs*/
@media (max-width: 768px) {
    #pub, #encart-local {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .presentation-pub {
        font-size: 0.5rem;
    }
}

#nav_bas {
    background-color: #eee;
    width: 200px;
    box-sizing: border-box;
    padding: 0; /* Réinitialise tout padding */
    margin: 0; /* Réinitialise toute marge */
}

.leftcol_box {
	width: 200px;
	padding-right: 10px;
	float: left;
}


.leftcol_box h4 {
   background: linear-gradient(to right, #578CA9, #0ef1f9);
    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: 0;
	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: #578CA9;
	text-decoration: none;
}

#mentions, #reseau {
	background-color: #ddd;
	font-size: 0.8rem;
	padding: 0.4rem 0;
	margin: 0 auto;
	max-width: 1100px;
	text-align: center;
}

#mentions span a, #reseau span a {
	font-family: tahoma, sans-serif;
	font-weight: bold;
	color: #578CA9;
	text-decoration: none;
}
#mentions img {
    max-width: 25px;
    max-height: 25px;
    width: auto;
    height: auto;/* Conserve les proportions de l'image */
    border-radius: 5px; /* Ajoute des coins arrondis */
}
footer {
	margin: 0px auto;
	padding-top: 1rem;
	max-width: 1100px;
	height: 4rem;
	background-color: #5C5E5F;
	font-size: 0.6rem;
	color: #C8C6C6;
	text-align: center;
}

.clearthis {
	clear: both;
}
/* Style général pour la liste des catégories */
ul.artcategories {
  list-style-type: none; /* Retire les puces des éléments principaux */
  padding-left: 0; /* Enlève le padding par défaut de la liste */
}
/* Style pour chaque élément de la liste principale */
ul.artcategories li {
  margin-bottom: 15px; /* Espacement entre chaque item */
  font-size: 16px;
}

/* Style pour les sous-catégories */
ul .artsub-categories {
  list-style-type: disc; /* Puces pour les sous-catégories */
  padding-left: 20px; /* Décalage des sous-catégories */
}
/* Réarrangement pour le svg bonhonne*/
.btn-member{
    width:20px;
    height:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:2px;
}

.btn-member svg{
    width:22px;
    height:22px;
    color:white;
}
/* 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 */
    }
}
/* ==========================================================
 * 05/10/2026 : REFONTE – nouveau menu du haut (#menu_haut)
 * (commande/haut.php + js/menu.js). L'ancien #nav_haut reste
 * plus haut pour les pages pas encore passées sur haut.php.
 * Ordinateur : une ligne avec des groupes « ▾ ».
 * Téléphone (< 768 px) : bouton « Menu ».
 * ========================================================== */
#menu_haut {
	width: 100%;
	background: linear-gradient(to right, #3f7391, #0c9fb3); /* plus foncé que l'ancien : 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: 1100px;
	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: #e6f4f8; color: #3f7391; }

/* Logo sous le menu (espace intérieur blanc, pas de marge : pas de bande grise) */
main img.logo-haut { padding: 12px 0 8px; }

@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: #e6f4f8; color: #3f7391; }
    /* 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;
    }
}

/* ==========================================================
 * 05/10/2026 : REFONTE – page d'accueil (index.php)
 * Présentation, encadrés « nouveauté », grille des cases.
 * ========================================================== */
.presentation-asso { padding: 0.6rem 0.4rem 0.2rem; }
.presentation-asso p { margin-bottom: 0.6rem; }
.nouveaute-item {
	margin: 0.6rem 0.4rem 1rem;
	padding: 0.6rem 0.9rem;
	border-left: 4px solid #0c9fb3;
	background: #f3fafc;
	border-radius: 6px;
}
.nouveaute-item h2 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.nouveaute-item p { margin: 0; }
.titre-grille { font-size: 1.2rem; margin: 1.2rem 0.4rem 0.8rem; }
.grille-sections {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* la dernière ligne reste centrée */
	gap: 14px;
	margin: 0 0 1.5rem;
}
.grille-sections .box_presentation {
	float: none;
	width: 240px;  /* 4 cases par ligne sur ordinateur */
	height: auto;
	margin: 0;
	padding: 10px 10px 12px;
	box-sizing: border-box;
}
.grille-sections .photo-presentation { display: block; max-width: none; text-decoration: none; }
.grille-sections .photo-presentation img { max-width: 100%; max-height: 200px; margin: 0 auto 8px; }
.grille-sections .ptitrep {
	display: block;
	font-family: tahoma, sans-serif;
	font-weight: bold;
	color: #3f7391;
}

/* ==========================================================
 * Plumes et voix du Mellois – événements (ajouté le 17/10/2026)
 * Cartes de la liste (section) et en-tête des pages d'événement.
 * ========================================================== */
.pvm-evt { display: flex; gap: 14px; align-items: stretch; margin: 10px 0.4rem 14px; border: 1px solid #d6e4ee; border-left: 5px solid #578CA9; border-radius: 10px; background: #ffffff; overflow: hidden; }
.pvm-evt-passe { border-left-color: #a0aec0; opacity: 0.9; }
.pvm-evt-date { flex: 0 0 150px; padding: 12px; background: #eef5fa; color: #2c5d7a; font-weight: bold; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pvm-evt-passe .pvm-evt-date { background: #f2f4f7; color: #5a6675; }
.pvm-evt-date span { font-weight: normal; font-size: 0.9em; }
.pvm-evt-corps { padding: 10px 12px 10px 0; }
.pvm-evt-corps h3 { margin: 0.2rem 0.4rem 0.3rem; font-size: 1.1rem; }
.pvm-evt-lieu { color: #5a6675; }
.pvm-evt-lien { font-weight: bold; }
.pvm-badge { display: inline-block; padding: 3px 12px !important; border-radius: 999px; background: #e3f4e8; color: #1f7a3c; font-weight: bold; font-size: 0.9em; }
.pvm-badge-passe { background: #f2f4f7; color: #5a6675; }
.pvm-infos { margin: 10px 0.4rem; padding: 10px 14px; background: #eef5fa; border-radius: 10px; }
.pvm-retour { margin-top: 1.4rem !important; }
@media (max-width: 600px) {
    .pvm-evt { flex-direction: column; gap: 0; }
    .pvm-evt-date { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; }
    .pvm-evt-corps { padding: 8px 10px; }
    /* image d'article : ne déborde plus sur téléphone (toutes les pages) */
    .photo-article img, .photo-article300 img { max-width: 100%; box-sizing: border-box; height: auto; }
}
