/* Monte Cristo : reproduction fidèle du design d'origine (2007), en CSS moderne. */
body {
	margin: 0; padding: 10px;
	background-color: #0A0A0A;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 11px;
	color: #C9C9C9;
}
ul, ol, li, h1, h2, h3, h4, pre, form, p, blockquote, fieldset, input { margin: 0; padding: 0; }
img { border: 0; }
a { color: #d4d4d5; text-decoration: none; }
:focus-visible { outline: 2px solid #d4d4d5; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: #d4d4d5; color: #000; padding: 6px 10px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* ----- STRUCTURE (page de 760 px centrée sur fond noir) ----- */
.page { background: #000; min-height: calc(100vh - 20px); display: flex; justify-content: center; align-items: flex-start; }
#main { width: 760px; }
.top { display: flex; height: 83px; }
.top .logo { display: block; width: 200px; height: 83px; }
.top .logo img { display: block; width: 200px; height: 83px; }
.top .banner { display: block; width: 556px; height: 83px; }
.nav-toggle { display: none; }
.body { display: grid; grid-template-columns: 200px 545px 15px; }

#menu { position: relative; background: url(../img/construct/bg_menu.jpg) repeat-y; }
#menu .menu-border { position: absolute; left: 0; top: 0; width: 10px; height: 400px; }
#menu ul { list-style: none; margin: 0 0 0 10px; }
#menu li { margin: 0; padding: 0; }
#menu a, #menu img { display: block; }
#menu a:hover img, #menu a:focus-visible img { filter: brightness(1.45); }
#menu a[aria-current="page"] img { filter: brightness(1.6); }

.content-cell { background: url(../img/construct/bg_content.jpg) no-repeat right bottom; min-width: 0; }
.right { background: url(../img/construct/left.jpg) repeat-y; }
.bottom img { display: block; width: 760px; height: 52px; }

/* ----- CONTENU ----- */
h1 { margin: 20px 0 5px 5px; color: #5a0f0f; font-size: 13px; font-style: italic; }
.content { border-top: 1px solid #5a5a5a; border-left: 1px solid #5a5a5a; text-align: left; display: flow-root; }
h2 { margin: 15px 10px 10px 10px; color: #CECECE; font-size: 13px; font-weight: bold; border-bottom: 1px solid #5a5a5a; }
h3 { margin: 15px 10px 0 10px; color: #d4d4d5; font-size: 11px; font-weight: bold; }
p { margin: 10px 10px 20px 10px; font-size: 11px; text-align: left; }
li { margin: 5px 0 5px 25px; font-size: 11px; text-align: left; color: #C9C9C9; }
li a { font-size: 11px; color: #C9C9C9; }
li a:hover { color: #5D0000; }
p a { color: #C9C9C9; }
p a:hover { color: #5D0000; }
b { color: inherit; }
.content img { border: 1px solid #5a5a5a; }
figure { margin: 0; }
.center { text-align: center; }
.center img, .center video { display: block; margin: 0 auto; }
.center { margin-bottom: 20px; }
.pic-right { float: right; margin: 0 0 10px 10px; }
.pic-left { float: left; margin: 0 10px 0 0; }
video { background: #000; border: 1px solid #5a5a5a; max-width: 100%; height: auto; }

/* Références / Zygo-Magic / Contact */
.refimgs { width: 400px; margin: 20px auto 0; display: flex; justify-content: space-around; }
.refs { margin: 10px 10px 20px 10px; padding-top: 5px; list-style: disc; }
.zygo { padding: 0 10px; display: flex; justify-content: center; align-items: center; gap: 20px; margin: 30px 0 20px; }
.zygo-video { width: 400px; text-align: center; }
.zygo > a { align-self: flex-start; margin-top: 20px; }
.credits { clear: both; color: #565656; text-align: right; font-size: 9px; margin-top: 20px; }
.chico { margin: 0 0 0 30px; border: 0 !important; }

/* Galerie */
.gallery { list-style: none; padding: 0; margin: 0 0 20px; display: flow-root; }
.gallery li { width: 130px; height: 130px; float: left; text-align: center; margin: 0 20px 10px 20px; display: flex; align-items: center; justify-content: center; }
.gallery button { padding: 0; margin: 0; background: none; border: 0; cursor: pointer; }
.gallery img { max-width: 130px; max-height: 130px; border: 1px solid #260404 !important; }
dialog#lightbox { border: 1px solid #5a5a5a; background: #141213; color: #C9C9C9; padding: 0; max-width: 96vw; max-height: 96vh; }
dialog#lightbox::backdrop { background: #000c; }
#lightbox figure { margin: 0; text-align: center; }
#lightbox img { display: block; max-width: 90vw; max-height: 78vh; margin: 20px auto 6px; border: 1px solid #260404; }
#lightbox figcaption { padding: 4px 10px; }
#lightbox .lb-bar { display: flex; justify-content: space-between; padding: 8px 14px 12px; }
#lightbox button { font: inherit; font-size: 11px; background: none; border: 0; color: #d4d4d5; cursor: pointer; }
#lightbox button:hover { color: #5D0000; background: #C9C9C9; }

/* Liens utiles */
.links li { overflow: hidden; }
.links li img { float: right; margin-right: 10px; border: 1px solid #fff; }

/* ----- BAS DE PAGE ----- */
.copylien { font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif; font-size: 7pt; color: #ffffff; text-align: center; padding: 10px 0 14px; line-height: 1.4; }
.copylien a { color: #fff; }
a.copylien:hover, .copylien a:hover { color: #d4d4d5; }

/* ----- MOBILE : même habillage, empilé sur une colonne ----- */
@media (max-width: 799px) {
	body { padding: 0; }
	.page { min-height: 100vh; }
	#main { width: 100%; }
	.top { height: auto; align-items: center; justify-content: space-between; padding: 6px 10px; background: linear-gradient(#000, #1a0505); border-bottom: 1px solid #5a0f0f; }
	.top .banner { display: none; }
	.nav-toggle { display: block; font: inherit; font-size: 14px; color: #C9C9C9; background: #000; border: 1px solid #5a0f0f; padding: 8px 16px; cursor: pointer; }
	.nav-toggle[aria-expanded="true"] { color: #fff; border-color: #C9C9C9; }
	.body { display: block; }
	#menu { display: none; padding: 10px 0; }
	#menu.open { display: block; }
	#menu .menu-border { display: none; }
	#menu ul { margin: 0 auto; width: 190px; }
	.right { display: none; }
	.bottom img { width: 100%; height: auto; }
	body, p, li, li a { font-size: 14px; line-height: 1.5; }
	h1 { font-size: 16px; margin: 14px 10px 8px; }
	h2 { font-size: 15px; } h3 { font-size: 14px; }
	.content { border-left: 0; }
	.refimgs { width: auto; }
	.zygo { flex-direction: column; margin-top: 10px; }
	.zygo > a { align-self: center; margin: 0; }
	.zygo-video { width: auto; }
	.gallery li { margin: 0 10px 10px; }
	.credits { font-size: 11px; }
	.pic-right, .pic-left { max-width: 40%; height: auto; }
	.copylien { font-size: 11px; }
}
@media print { body { background: #fff; color: #000; } .top, #menu, .right, .bottom, .copylien { display: none; } }
