/* ======================================================
   INDEX
   ======================================================

   1. BASE
   2. COMPONENTS
   3. LIENS
   4. LAYOUT
   5. HEADER
   6. ARCHIVES
   7. MENU
   8. SIDEBAR
   9. GRID / BOX
   10. FLEX / CARTES

   12. TABLES (ancien code)
   13. RESPONSIVE

   15. NOUVEAU DESIGN
   16. DIVERS / FIX

====================================================== */


/* ===== 1. BASE ===== */

:root {
    /* couleurs */
    --main-dark: #6f6762;
    --main-light: #a79b93;
    --bg-interface: #f1f1f1;
    --bg-content: #ffffff;
    --text-dark: #444;
    --text-mid: #666;
    --text-light: #999;
    --text-important: #C00;

    /* espacements */
    --space-s: 10px;
    --space-m: 25px;
    --space-l: 30px;

    /* radius */
    --radius-s: 8px;
    --radius-s: 12px;
}

* {
    box-sizing: border-box;
}

body {
    max-width: 1280px;
    margin: 0 auto;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    background: #f1f1f1;
}

body,
td,
th {
    color: var(--text-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.editing .submenu {
    display: none !important;
}

body.editing .grid {
    display: block;
}


.left {
  float: left;
}

.right {
  float: right;
}

/* ===== 2. COMPONENTS ===== */

.dual-title span {
    display: block;
}

.dual-title .main {
    font-weight: bold;
}

.dual-title .sub {
    font-weight: normal;
    opacity: 0.8;
}

.important {
	color: var(--text-important);
    font-size: 14px;
    font-weight: bold;	
}

.optional {
	color: var(--main-dark);
    font-size: 14px;
	    font-weight: bold;	
}

.divider-gradient {
  height: 1px;
  background: linear-gradient(to right, transparent, #ccc, transparent);
  margin: 20px 0;
}

.divider {
  border-top: 1px solid #e5e5e5;
  margin: 0;
}



.line-bar {
    height: 40px;
    background: var(--main-dark);
    display: flex;
    align-items: center;
	margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    box-sizing: border-box;
	
}

.line-bar-light {
    height: 30px;
    background: var(--main-light);
    display: flex;
    align-items: center;
	margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    box-sizing: border-box;
	color: var(--text-dark);
    font-weight: italic;
    font-size: 13px;
	

=}

/* ===== 3. LIENS ===== */

a {
    color: var(--text-dark);
    text-decoration: none;

}

a:visited {
    color: var(--text-dark);
}

#content a {
    text-decoration: underline;
}

a:active {
    color: var(--text-light);
}

a:hover {
    color: var(--text-mid);
}


/* ===== 4. LAYOUT ===== */

#Header,
#content,
#right,
#footer {
    width: 100%;
    display: block;
}

#Header {
    background-color: #f1f1f1 !important;
}

#content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 15px;
}

#right {
    padding-left: 15px;
    vertical-align: top;
    margin-top: 0;
}

#content,
#right {
    box-sizing: border-box;
}

#footer {
    color: #999;
    font-style: italic;
    font-size: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    clear: both;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}


/* ===== 5. HEADER ===== */

#header {
    background: #f1f1f1;
}

.header-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; 
  padding-right: 15px;

}

.header-images img:last-child {
  margin-left: auto;
}

.header-images a {
  margin-right: auto;
}

.header-images img {
  display: block; 
  max-width: 100%;
}


/* ===== 6. ARCHIVES ===== */

#content .archive-list {
    margin-top: 20px;
}

.archive-list {
    text-align: left;
    margin-top: 20px;
}

.archive-intro {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 15px;
    color: var(--text-dark);
}

.archive-item {
    margin-bottom: 10px;
}

.archive-line {
    cursor: pointer;
    font-weight: normal;
    list-style: none;
}

.archive-line::-webkit-details-marker {
    display: none;
}

.archive-line::marker {
    content: "";
}

.archive-line::before {
    content: "▶ ";
    font-size: 0.9em;
}

.archive-item[open] .archive-line::before {
    content: "▼ ";
}

.archive-preview {
    margin-left: 15px;
    margin-top: 5px;
}

.archive-preview img {
    display: block;
    margin: 0 auto;
}

.archive-preview a {
    text-decoration: underline;
    text-align: left;
}

.archive-line:hover {
    text-decoration: underline;
}

#content .archive-list,
#content .archive-item,
#content .archive-preview {
    text-align: left !important;
}


/* ===== 7. MENU ===== */

.navbar {
  clear: both;
}

.menu,
.menu2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu li,
.menu2 li {
    position: relative;
}

.menu a,
.menu2 a {
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 20px;
    padding-right: 20px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    text-align: left;
    line-height: 1.2;
    position: relative;
}

.menu {
    min-height: 48px;
}

.menu a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* underline anim */
.menu a::after,
.menu2 a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 5px;
    width: 0;
    height: 2px;
    background: #fff;
}

.menu a:hover::after,
.menu2 a:hover::after {
    width: calc(100% - 40px);
}

/* couleurs */
.menu a,
.menu2 a {
    color: #747474 !important;
}

.menu2 {
    background: #f1f1f1 !important;
}

.menu2 td {
    background: #f1f1f1 !important;
}

/* sous-menu (fusion des doublons) */
.submenu {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    background: #f1f1f1;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.has-submenu:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* menu2 */
.menu2 .submenu a {
    color: #747474 !important;
    background: #f1f1f1;
}

.menu2 .submenu a:hover {
    background: var(--main-dark);
    color: #fff !important;
}

/* hover global */
.menu a:hover,
.menu2 a:hover {
    background: var(--main-dark);
    color: #fff !important;
}

/* texte */
.menu a strong,
.menu2 a strong {
    font-weight: bold;
    display: block;
}

.menu a span,
.menu2 a span {
    font-weight: normal;
    display: block;
    font-size: 14px;
}


/* ===== 8. SIDEBAR ===== */

.sidebar {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar td[bgcolor="#CCCCCC"] {
    background: var(--main-dark) !important;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}


.sidebar img {
    display: block;
    margin: 0 auto;
}

.sidebar a {
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}


.side-content {
    text-align: center;
    padding: 10px;
}


.side-section {
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
}

.side-title {
    background: var(--main-dark);
    color: #fff;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: bold;
}

.side-content {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.side-content img {
    display: block;
    margin: 8px auto;
}


/* ===== 9. ANTIQUITES ===== */

.box,
.box1,
.box2,
.box21 {
    float: none;
    width: auto;
    flex: 1 1 250px;
    max-width: 300px;
}

@media (min-width: 481px) {

    .box,
    .box1,
    .box2,
    .box21 {
        width: 50%;
    }
}

@media (min-width: 821px) {

    .box,
    .box1,
    .box2,
    .box21 {
        width: 33.33%;
    }
}

.box table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


/* ===== 10. FLEX / CARTES ===== */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.box,
.box1,
.box2,
.box21,
.flex-item,
.flex-text {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px;
    box-sizing: border-box;
}

.flex-item {
    flex: 1 1 calc((100% - 40px) / 3);
}

.flex-text {
    flex: 1 1 calc((100% - 20px) / 2);
}

.flex-text,
.flex-text td {
    text-align: left !important;
	    color: var(--text-mid);
}


.flex-item.full {
    flex: 1 1 100%;
}

.flex-item td {
    text-align: center;
}

.flex-item td[bgcolor="#6f6762"] {
    text-align: center;
}

.box table,
.flex-item table {
    width: 100%;
    border-collapse: collapse;
}

.box td[bgcolor="#6f6762"],
.flex-item td[bgcolor="#6f6762"] {
height: 25px;
    background: var(--main-light)!important;
    color: var(--text-dark) !important;
    border-radius: 6px 6px 0 0;
    padding-top: 12px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
	
}

.flex-item table tr:first-child td {
    background: var(--main-light);
    color: var(--text-dark);
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px 6px 0 0;
	height: 25px;
}

.flex-text table tr:first-child td {
    background: var(--main-dark);
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px 6px 0 0;
	height: 25px;
}


.flex-item img {
    display: block;
    margin: 0 auto;
}

.flex-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.flex-text {
    min-width: 0;
}

.flex-text table {
    width: 100%;
}

.no-card-style {
    box-shadow: none;
    padding: 0;
    background: transparent;
}

/* ===== 12. TABLES  (à virer après refactoring total) ===== */

#content table {
    border-spacing: 0;
    width: 100%;
    table-layout: fixed;
    clear: both;
    border-collapse: collapse;
}

#content td {
    padding: 0;
}

td[bgcolor="#6f6762"] {
    padding: 12px;
}


/* ===== 13. RESPONSIVE ===== */

@media (min-width: 1064px) {
    #content {
        float: left;
        width: 74%;
    }

    #right {
        float: left;
        width: 24%;
    }
}

@media (max-width: 1063px) {

    #content,
    #right {
        width: 100%;
        float: none;
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    .menu,
    .menu2 {
        display: none;
        flex-direction: column;
    }

    .menu.active,
    .menu2.active {
        display: block;
    }

    .submenu {
        position: static;
    }

    .has-submenu:hover .submenu {
        display: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }
}

@media (min-width: 481px) {
    .image {
        max-width: 800px;
    }
}




/* =============================== */
/* ===== 15. NOUVEAU DESIGN ===== */
/* ============================= */

/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.col-1 {
    grid-column: span 6;
}

/* full */
.col-2 {
    grid-column: span 3;
}

/* 2 colonnes */
.col-3 {
    grid-column: span 2;
}

/* 3 colonnes */

.grid.reverse {
    transform: scale(-1, -1);
}

.grid.reverse .card {
    transform: scale(-1, -1);
}


@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .col-1,
    .col-2,
    .col-3 {
        grid-column: span 1;
    }
}


/* ===== BARRES DE TITRES ===== */

.title-bar {
    background: var(--main-dark);
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 12px;
    padding-right: 12px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: -15px;
    /* force à toucher les bords de content */
    margin-bottom: 0px;
    /* permet de coller à date */

    border-radius: 10px 10px 0 0;
    text-align: left;
}

.date-bar {
    margin-top: 0;
    border-radius: 0;
    background: #e6e2df;
    color: #666;
    padding: 8px 12px;
    text-align: center;
    font-size: 14px;
    display: flex;
    align-items: center;
    height: 40px;
    justify-content: center;
}

.title-bar,
.date-bar {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    box-sizing: border-box;

}


/* ===== barre de sous-titre ===== */
.subtitle {
    background: #e6e2df;
    color: #666;
    padding: 8px 12px;
    margin: 0;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-left: -15px;
    margin-right: -15px;
	margin-top: 20px;
	margin-bottom: 20px;
    width: calc(100% + 30px);
}


/* ===== PREVIEW ===== */

.image {
    margin: 25px;
}

.preview {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

/* ===== SECTION DONATORS ===== */

.donator-block {
    text-align: center;
    margin: 25px 0;
}

.donator-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.donator-link {
    text-decoration: underline;
}

.donator-sub {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-bottom: 10px;
}

.donator-button img {
    display: block;
    margin: 10px auto;
}



/* ===== la barre de couleur dans toute la fenêtre ===== */

.section-bar {
    height: 25px;
    background: var(--main-dark);
    margin: 25px -15px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 13px;
    padding-left: 25px;
    /*pour compenser le -15 de margin*/
    width: calc(100% + 30px);
}


/* ===== card - élément principal ===== */

.item-card-big,
.item-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
}

.item-card {
    flex: 1 1 calc((100% - 40px) / 3);
}

.item-card-big {
    flex: 1 1 100%;
}

.item-bar {
    height: 35px;
    background: var(--main-light);
}

.item-bar-dark {
    height: 35px;
    background: var(--main-dark);
}

.item-content {
    padding: 10px;
}

/* content elements */

.item-title {
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.item-desc {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.item-image img {
    max-width: 100%;
    display: block;
    margin: 10px auto;
}

.item-download img {
    margin: 25px auto;
    display: block;
}

.item-meta {
    font-size: 12px;
    font-style: italic;
    color: #999;
    margin-top: 10px;
}

/* fin de content elements */

/* ===== SECTION voir aussi ===== */

.grid.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));/* = pour 6x120 == pour 3x256: repeat(auto-fit, minmax(256px, 1fr)); */
    margin-top: 20px;

}

.related-item img {
    display: block;
    margin: 15px;
    border-radius: 6px;
		    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	    transition: 0.2s;
}

.related-item {
    text-align: center;
    font-size: 13px;


}


.related-item:hover img {
    transform: scale(1.05);
}

/* ===== navigation bas de page ===== */

.section-nav {
    text-align: center;
    margin: 5px 0;
    font-size: 13px;
}

.section-nav a {
    color: var(--text-mid);
}

.section-nav a:hover {
    color: var(--text-light);
}


.bottom-bar {
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 15px;
    margin-bottom: -15px;
    overflow: hidden;
	align-items: center;
}

.bottom-block .section-bar {
    margin-bottom: 0;
}

.bottom-bar .grid {
    margin: 15px 0;
    padding: 0 15px;
}

.bottom-bar .section-bar {
    margin: 0 -15px;
}

/* ===== la barre de couleur dans toute la fenêtre ===== */

.section-pageend {
    height: 25px;
    background: var(--main-dark);
	margin-top: 15px;
    margin-left: -15px;
    margin-right: -15px;
	margin-bottom: -15px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 13px;
    padding-left: 25px;
    /*pour compenser le -15 de margin*/
    width: calc(100% + 30px);
	    border-radius: 0 0 10px 10px;
}


/* ===== GRILLE FINE REVERSE ===== */

.grid-fine.reverse {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));/* = pour 6x120 == pour 3x256: repeat(auto-fit, minmax(256px, 1fr)); */
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row-reverse;
	    justify-content: center;
			background: #fff;
}


/* ===== PAGES D'INDEX CATEGORIES ===== */

.grid-thumb {
    display: grid;
    grid-template-columns: repeat(auto-fill, 256px);
    justify-content: center;
    gap: 16px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.grid-thumb.reverse {
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row-reverse;
}


.thumb img {
    width: 100%;
    max-width: 256px;
    display: block;
    margin: 0 auto;
}


.thumb {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
    position: relative;
}


.thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.thumb-advent {
	padding: 10px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.thumb-advent:hover {
    transform: translateY(-3px);;


/* ===== INDEX ===== */

.update-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 75px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: bold;
}

.update-text a {
    color: var(--text-dark);
	
}

    /* ===== 16. DIVERS ===== */

    .Notes {
        color: #666;
    }
	
	
