/*style pour ADSAE.FR new*//* background:linear-gradient(to right, #00163f, #0ba9af);*/
* {
	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; 
 }
/* ---------- Menu du haut (commande/haut.php + js/menu.js) – 16/10/2026, repris de Timbrophilie ---------- */
#menu_haut {
    width: 100%;
    background: linear-gradient(to right, #00163f, #0ba9af); /* dégradé du site */
    position: sticky;   /* 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; }
#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: 230px;
    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: #e0f4f5; color: #00163f; }

@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); /* 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: #e0f4f5; color: #00163f; }
    #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;
    }
}

#nav_logo{
    width: 100%;
  max-width: 1053px;
  margin: auto;
  text-align: center;
  background-color: white;
}
#nav_logo img.imghaut {
	max-width: 528px;
	height: auto;
	max-height: 150px;
	object-fit: cover;
}
#chemin{
	width: 100%;
	max-width: 1053px;
	margin: auto;
	text-align: left;
	background-color: white;
}
#chemin p{
    font-size: 0.8em; 
    margin: 0.4rem; 
    line-height:0.9;
}
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: 1053px;
	margin: auto;
        padding-top: 1px; /*seulement pour ce site/*/
	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 */
}
#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, #00163f, #0ba9af);
}
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 : 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: #578CA9; 
    text-decoration : none; 
}
/* */
.box_presentation {
    width: 200px;
    height: 201px;
    margin: 4px 4px;
    border: #578CA9 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;
    font-size: 10px;
    line-height: 1.1;
    position: relative; /* Pour ajouter un effet de flottation */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation pour l'effet de flottation */
}

.box_presentation:hover {
    transform: translateY(-5px);  /* Légère élévation de la boîte lorsqu'on survole */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Ombre portée pour renforcer l'effet flottant */
}

.box_presentation a {
    font-size: 10px;
    color: #578CA9; 
    font-weight: bolder;
}

.photo-containerca img {
    max-width: 200px;
    max-height: 150px;
    width: auto;
    height: auto;
    text-align: center;
    border-radius: 10px;
}
.photo-containerde img {  max-width: 300px; height: auto; width: auto;text-align: center; border-radius: 10px;}
.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;
}
.infost{ 
    font-size: 1em;  
    min-height: 400px; 
    max-width: 500px;
    margin-left: 0.4rem; 
    float: left;
}
.photo-containera img {
    float: left; 
    padding-left: 10px; 
    max-width: 300px; 
    width: auto; 
    height: auto;
}
.colorgrey{color: grey;font-size: 0.9em;font-style: italic; 
}
#pub, #encart-local {
	width: 95%;
        max-width: 750px;
        margin: 0.4rem auto; 
        font-size: 0.6rem;
	text-align: center;
        border: 2px dashed #578CA9;
        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 : #578CA9;
    text-decoration: none;
    font-weight: normal;
}
 
.leftcol_box { 
    width : 200px; 
    padding-right: 10px; 
    float: left; 
}
.leftcol_box h4 {
    background:linear-gradient(to right, #00163f, #0ba9af);
    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: #578CA9; 
    text-decoration : none; 
}

#mentions{
    background-color : #ddd;
    font-size: 0.8rem;
    padding: 0.4rem;
    margin: 0 auto;
    max-width: 1053px;
}
#mentions span a{
    font-family : tahoma, sans-serif; 
    font-weight: bold;
	color: #578CA9;
        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;
    }
}

/* ---------- 16/10/2026 : vérification du site ---------- */
.epuise { color: #c62828; font-weight: bold; }
.sans-image { display: inline-block; width: 120px; height: 100px; line-height: 100px; text-align: center; font-size: 2.5rem; color: #578CA9; }
.alpha a.actif { text-decoration: underline; color: #00163f; }
span.chemin { margin: 0.4rem; color: #444; }
ul.liste-pays { columns: 2; column-gap: 2rem; list-style: none; padding: 0 0.6rem; }
ul.liste-pays li { break-inside: avoid; margin: 0.25rem 0; }
img.drapeau { border: #000 solid 1px; vertical-align: middle; max-height: 20px; width: auto; }
ul.liste-series { list-style: none; padding: 0 0.6rem; }
ul.liste-series li { margin: 0.3rem 0; }
.date-serie { font-size: 0.8em; color: #666; display: inline-block; min-width: 9em; }
.photos-fiche { float: left; padding: 0.6rem 0 0 10px; }
.photos-fiche .photo-containera img { max-width: 300px; width: auto; height: auto; }
.petit { font-size: 0.8em; }
@media (max-width: 768px) {
    #nav_bas { flex: none; }
    .leftcol_box, .categories ul { width: auto !important; float: none; }
    ul.liste-pays { columns: 1; }
    .photos-fiche { float: none; padding-left: 0; }
    .photos-fiche .photo-containera img { max-width: 100%; }
}

/* ---------- Formulaire de contact (contact.php) ---------- */
.contact-note { background: #e8f4f8; border-left: 4px solid #0b6f8a; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.contact-erreurs { background: #fee2e2; color: #991b1b; border-radius: 6px; padding: 8px 12px; margin: 10px 0; }
.contact-erreurs ul { margin: 0; }
.contact-erreurs li { padding-left: 0; }
.contact-ok { background: #dcfce7; color: #166534; font-weight: bold; border-radius: 6px; padding: 10px 12px; margin: 10px 0; }
.form-contact {
    background: #f9f9f9;
    border: 1px solid #0b6f8a;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    max-width: 640px;
}
.form-contact label { font-weight: bold; display: block; margin: 10px 0 4px; }
.form-contact input[type="text"],
.form-contact input[type="email"],
.form-contact textarea {
    width: 100%;
    padding: 9px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font: inherit;
}
.form-contact button {
    margin-top: 14px;
    background-color: #0b6f8a;
    color: white;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}
.form-contact button:hover { background-color: #00163f; }

.form-contact select { width: 100%; padding: 9px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font: inherit; background: #fff; }
.form-contact .facultatif { font-weight: normal; color: #666; font-size: 0.9em; }

/* ---------- 16/10/2026 : plus de colonne de droite, autres sites dans le pied ---------- */
#article { padding: 0 10px; }
#mentions { text-align: center; }
#mentions, #reseau { box-sizing: border-box; } /* même largeur que la page */
#reseau {
    background-color: #eee;
    font-size: 0.8rem;
    padding: 0.4rem;
    margin: 0 auto;
    max-width: 1053px;
    text-align: center;
    border-top: 1px solid #ccc;
}

#reseau span a { font-family: tahoma, sans-serif; font-weight: bold; color: #578CA9; text-decoration: none; }
#reseau span a:hover, #mentions span a:hover { text-decoration: underline; }

/* ---------- Partenaires institutionnels (cbdd/partenaires-pied.php), repris de Timbrophilie ---------- */
#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; }
/* Page « Nos sites et projets numériques » (reseaux.php) */
#texteunique { padding: 0.4rem 0; }
#texteunique h2 { margin: 0.8rem 0 0.3rem; color: #00163f; font-size: 1.15rem; }
#texteunique ul { margin-left: 1.4rem; }
