/* ============================================================
   BDE Sciences Po -- reconstructed theme stylesheet
   The original 2011 stylesheets/images were never archived by
   the Wayback Machine, so this is a clean re-creation using the
   site's known color scheme (#1c5a80 / #18374a) and HTML structure.
   ============================================================ */

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #333;
	background: #e9eef2;
}

#wrapper {
	background: #fff;
	box-shadow: 0 0 12px rgba(0,0,0,.15);
	margin: 20px auto;
}

a { color: #1c5a80; }
a:hover { color: #18374a; }

/* ===================== HEADER ===================== */

#header {
	background: #1c5a80;
	color: #fff;
	height: auto;
}

.visuel { position: relative; }

.visuel > a:first-child {
	display: block;
	text-decoration: none;
}

.visuel > a:first-child::before {
	content: "BDE Sciences Po";
	display: block;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-weight: bold;
	letter-spacing: .5px;
	color: #fff;
	padding: 18px 20px 10px;
}

/* lost banner photos / decorative images */
img:not([alt]),
img[alt=""] {
	display: none;
}
#show2 img,
.slideshow-images img {
	display: block;
}

/* ===================== HORIZONTAL MENU ===================== */

#smoothmenu1.ddsmoothmenu {
	background: #18374a;
	clear: both;
}

#smoothmenu1.ddsmoothmenu > ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

#smoothmenu1.ddsmoothmenu > ul > li {
	position: relative;
	width: auto !important;
}

#smoothmenu1.ddsmoothmenu > ul > li > a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

#smoothmenu1.ddsmoothmenu > ul > li > a:hover,
#smoothmenu1.ddsmoothmenu > ul > li > a.selected {
	background: #1c5a80;
}

#smoothmenu1.ddsmoothmenu > ul > li > a img {
	display: none;
}

/* text labels for the icon-only top-level menu buttons (icons never archived) */
#smoothmenu1.ddsmoothmenu > ul > li:nth-child(1) > a::before        { content: "Accueil"; }
#smoothmenu1.ddsmoothmenu > ul > li.menu2 > a::before                { content: "Le BDE"; }
#smoothmenu1.ddsmoothmenu > ul > li.menu3 > a::before                { content: "Services"; }
#smoothmenu1.ddsmoothmenu > ul > li.menu4 > a::before                { content: "Événements"; }
#smoothmenu1.ddsmoothmenu > ul > li.menu5 > a::before                { content: "Photos & Vidéos"; }
#smoothmenu1.ddsmoothmenu > ul > li.menu6 > a::before                { content: "Partenaires"; }
#smoothmenu1.ddsmoothmenu > ul > li:last-child > a::before           { content: "Adhérer"; }

/* dropdown submenus */
#smoothmenu1.ddsmoothmenu ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: #18374a;
	z-index: 200;
	box-shadow: 0 4px 10px rgba(0,0,0,.25);
	margin: 0;
	padding: 0;
	list-style: none;
}

#smoothmenu1.ddsmoothmenu ul ul li {
	width: 100% !important;
	float: none;
}

#smoothmenu1.ddsmoothmenu ul ul li a {
	display: block;
	padding: 8px 14px;
	color: #fff;
	font-weight: normal;
	text-transform: none;
	font-size: 12px;
	white-space: normal;
	border-top: 1px solid rgba(255,255,255,.12);
}

#smoothmenu1.ddsmoothmenu ul ul li:first-child a {
	border-top: 0;
}

#smoothmenu1.ddsmoothmenu ul ul li a:hover,
#smoothmenu1.ddsmoothmenu ul ul li a.selected {
	background: #1c5a80;
}

/* pure-CSS fallback so dropdowns work even if jQuery (CDN) can't load */
#smoothmenu1.ddsmoothmenu li:hover > ul {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
}

.ddshadow { display: none !important; }

/* ===================== SEARCH BOX & SOCIAL LINKS ===================== */

#search_box {
	position: absolute;
	top: 16px;
	right: 20px;
}

#search_box table { border: 0; }

#search_box input.text {
	padding: 5px 8px;
	border: 1px solid #cfd8de;
	border-radius: 3px;
	font-size: 12px;
	width: 150px;
}

#search_box input[type="image"] { display: none; }

#rezo {
	position: absolute;
	top: 58px;
	right: 20px;
	font-size: 12px;
}

#rezo table { display: inline-block; }
#rezo td { color: #d7e6f0; vertical-align: middle; padding: 0 2px; }
#rezo img { display: none; }

#rezo a {
	color: #fff;
	text-decoration: none;
	padding: 2px 6px;
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 3px;
	font-size: 11px;
}
#rezo a:hover { background: rgba(255,255,255,.15); }

#rezo a[href*="facebook"]::after  { content: "Facebook"; }
#rezo a[href*="twitter"]::after   { content: "Twitter"; }
#rezo a[href$="actualites.xml"]::after { content: "RSS"; }

/* ===================== TWO COLUMN LAYOUT ===================== */

#container { padding: 0 20px; }

#left {
	float: left;
	box-sizing: border-box;
	padding: 20px 20px 20px 0;
}

#main {
	box-sizing: border-box;
	padding: 20px 0 20px 20px;
	border-left: 1px solid #e6ebee;
}

/* ===================== LEFT SIDEBAR ===================== */

#connexion {
	background: #1c5a80;
	color: #fff;
	padding: 14px;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 12px;
}

#connexion a { color: #cfe6f5; }

#connexion .formbody label {
	display: block;
	margin: 8px 0 2px;
	font-size: 11px;
}

#connexion input.text,
#connexion input.password {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 6px;
	border: 1px solid #cfd8de;
	border-radius: 3px;
	font-size: 12px;
}

#connexion .submit_container {
	margin-top: 10px;
	overflow: hidden;
}

#connexion .submit_container a { font-size: 11px; }

#connexion input[type="image"] { display: none; }

#connexion input[type="submit"],
#connexion button {
	background: #fff;
	color: #1c5a80;
	border: 0;
	padding: 6px 14px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: bold;
	cursor: pointer;
}

/* poll widget -- never had any content configured */
#sondagetop, #sondage_bottom { display: none; }
#sondage:has(.mod_qpolllist:empty) { display: none; }
img[src*="actu_titre"] { display: none; }

/* slideshow */
.mod_slideshow2 { margin-bottom: 18px; }
#show2.slideshow {
	width: 100%;
	max-width: 240px;
	height: 320px;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f4f7;
}
#show2 .slideshow-images { position: relative; width: 100%; height: 100%; }
#show2 .slideshow-images img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===================== MAIN CONTENT ===================== */

#main h1 {
	font-size: 20px;
	color: #18374a;
	border-bottom: 2px solid #1c5a80;
	padding-bottom: 8px;
	margin: 0 0 16px;
}

#main h2 { font-size: 16px; color: #18374a; margin: 14px 0 8px; }
#main h3 { font-size: 14px; color: #1c5a80; margin: 12px 0 6px; }
#main p { margin: 0 0 10px; }

/* lost promo banner grid */
.ce_text.banniere table { display: none; }

/* news list */
.mod_newslist { float: left; width: 62%; box-sizing: border-box; padding-right: 20px; }

.layout_short {
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e6ebee;
}
.layout_short.last { border-bottom: 0; margin-bottom: 0; }
.layout_short table { width: 100%; }
.layout_short td { vertical-align: top; }

.image_news img {
	width: 100px;
	height: auto;
	border: 1px solid #e6ebee;
	border-radius: 3px;
	background: #f4f7f9;
	color: #99a;
	font-size: 10px;
	text-align: center;
}

.layout_short h2 { font-size: 15px; margin: 0 0 6px; }
.layout_short h2 a { color: #18374a; text-decoration: none; }
.layout_short h2 a:hover { text-decoration: underline; }
.layout_short p.info { display: none; }
.layout_short p.teaser { font-size: 12px; color: #555; margin: 0 0 6px; }
.layout_short p.more a {
	font-size: 11px;
	color: #1c5a80;
	font-weight: bold;
	text-decoration: none;
	text-transform: uppercase;
}

/* right column -- partner logos */
.ce_text.table#c_right {
	float: right;
	width: 34%;
	box-sizing: border-box;
	text-align: center;
}
.ce_text.table#c_right img {
	max-width: 100%;
	height: auto;
	margin-bottom: 4px;
}
.ce_text.table#c_right h3 { margin-top: 18px; }

/* ===================== FOOTER ===================== */

#footer {
	background: #18374a;
	color: #fff;
	text-align: center;
	padding: 14px 0;
	font-size: 11px;
	clear: both;
}
#footer a { color: #9fc6dd; }

/* ===================== FORMS (contact, login, etc.) ===================== */

.formbody label { display: block; margin: 10px 0 3px; font-weight: bold; font-size: 12px; }

.formbody input.text,
.formbody textarea,
.formbody select {
	padding: 6px 8px;
	border: 1px solid #cfd8de;
	border-radius: 3px;
	font-size: 12px;
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
}

.formbody input[type="submit"],
.formbody button,
input.submit,
input[type="submit"] {
	background: #1c5a80;
	color: #fff;
	border: 0;
	padding: 8px 18px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	font-weight: bold;
	margin-top: 8px;
}
.formbody input[type="submit"]:hover,
input.submit:hover,
input[type="submit"]:hover {
	background: #18374a;
}

/* generic content images on inner pages (team photos etc.) */
#main .mod_article img {
	max-width: 100%;
	height: auto;
	max-height: 200px;
	border: 1px solid #e6ebee;
	background: #f4f7f9;
}

/* responsive fallback for narrow viewports */
@media (max-width: 1000px) {
	#wrapper { width: 100% !important; margin: 0; }
	#left { float: none; width: 100% !important; }
	#main { margin-left: 0 !important; border-left: 0; }
	.mod_newslist, .ce_text.table#c_right { float: none; width: 100%; }
}
