/*
Theme Name: Divi Minter FR
Theme URI: https://www.minterdial.fr
Description: Child theme of Divi for minterdial.fr, styled like minterdial.com (Open Sans body, Roboto headings, link #2ea3f2, menu/footer #135590).
Author: Minter Dial
Template: Divi
Version: 1.1.1
Text Domain: divi-minter-fr
*/

/* ---------- Header like minterdial.com: white bar, blue menu ---------- */
#main-header { background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); }
#top-menu li a, #top-menu li.current-menu-item > a, #top-menu li.current-menu-ancestor > a { color: #135590 !important; font-weight: 500; font-size: 15px; }
#top-menu li a:hover { color: #2ea3f2 !important; opacity: 1; }
#top-menu li.current-menu-item > a::before { display: none; }
#top-menu li ul.sub-menu { background: #fff !important; border-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.1); }
#top-menu li li a { color: #135590 !important; }
#top-menu li li.current-menu-item > a { color: #000 !important; }
#top-menu .menu-item-has-children > a:first-child::after { color: #135590; }
.et_mobile_menu { background: #fff; border-color: #fff; }
.et_mobile_menu li a { color: #135590 !important; }
#et_mobile_nav_menu .mobile_menu_bar::before { color: #135590; }
#logo { max-height: 100%; }

/* ---------- Typography (tokens from minterdial.com) ---------- */
body { font-family: 'Open Sans', Helvetica, Arial, sans-serif; color: #333; font-size: 16px; line-height: 1.75; }
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto', Helvetica, Arial, sans-serif; color: #135590; font-weight: 300; line-height: 1.2; }
.single .entry-title, .page .entry-title { font-weight: 400; }
#left-area .entry-title { margin-bottom: 8px; }
a { color: #2ea3f2; }
a:hover { color: #135590; }
.post-meta, .post-meta a { color: #777; font-size: 14px; }
.post-meta a:hover { color: #2ea3f2; }

/* blog index like the .com "Blog" list: excerpt cards */
.home #left-area .et_pb_post, .blog #left-area .et_pb_post, .archive #left-area .et_pb_post { border-bottom: 1px solid #e5e5e5; padding-bottom: 36px; margin-bottom: 36px; }
#left-area .et_pb_post h2.entry-title { font-size: 26px; }
#left-area .et_pb_post h2.entry-title a { color: #135590; }
#left-area .et_pb_post h2.entry-title a:hover { color: #2ea3f2; }
#left-area .et_pb_post .more-link { color: #2ea3f2; font-weight: 600; }
#left-area .et_pb_post .more-link::after { content: " \2192"; }
#left-area .et_pb_post .entry-featured-image-url img { width: 100%; height: auto; }

/* ---------- Sidebar ---------- */
#sidebar .widgettitle, #sidebar h4.widgettitle { color: #135590; font-family: 'Roboto', sans-serif; font-weight: 400; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
#sidebar .widget a { color: #135590; }
#sidebar .widget a:hover { color: #2ea3f2; }
#sidebar .widget li { padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
#sidebar .widget iframe { max-width: 100%; }
#sidebar .widget_text img { max-width: 100%; height: auto; }

/* ---------- Footer like minterdial.com: blue bottom bar ---------- */
#main-footer { background: #135590; }
#footer-bottom { background: #135590; padding: 26px 0; }
#footer-bottom #footer-info, #footer-bottom #footer-info a { color: #fff; font-size: 13px; }
#footer-bottom .et-social-icons a { color: #fff; font-size: 20px; }
#footer-bottom .et-social-icons a:hover { color: #cde3f5; }
#et-footer-nav { background: #135590; border-bottom: 1px solid rgba(255,255,255,.15); }
#et-footer-nav .bottom-nav li a, .bottom-nav li.current-menu-item a { color: #fff !important; font-size: 14px; font-weight: 500; }
#et-footer-nav .bottom-nav li a:hover { color: #cde3f5 !important; }
#footer-widgets { display: none; } /* the two old footer text widgets are redundant with the bottom bar */

/* ---------- Buttons ---------- */
.et_pb_button, #left-area .button, input[type=submit] { background: #2ea3f2; border-color: #2ea3f2; color: #fff; border-radius: 3px; }
.et_pb_button:hover { background: #135590; border-color: #135590; }

/* ---------- Content polish for the French archive ---------- */
#left-area img { max-width: 100%; height: auto; }
#left-area iframe { max-width: 100%; }
#left-area blockquote { border-left: 4px solid #2ea3f2; color: #555; }
.single .et_post_meta_wrapper .post-meta { margin-bottom: 20px; }
.comment-reply-link, .form-submit input { background: #2ea3f2; }

/* ---------- Tricolour "EN FRANÇAIS" bar under the logo (like the French podcast art) ---------- */
/* Logo container becomes a vertical stack: logo, then the bar. Divi's helper span is not needed then. */
.et_header_style_left #main-header .logo_container { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
#main-header .logo_container .logo_helper { display: none; }
#main-header .logo_container > a { display: block; line-height: 0; }
#main-header #logo { max-height: 42px !important; width: auto; max-width: none; display: block; }
#main-header.et-fixed-header #logo { max-height: 30px !important; }
.mdfr-bar {
	display: block; width: 100%; max-width: 168px; height: 19px; margin-top: 4px; overflow: hidden;
	background: linear-gradient(90deg, #000091 0, #000091 33.34%, #fff 33.34%, #fff 66.66%, #e1000f 66.66%, #e1000f 100%);
	box-shadow: inset 0 0 0 1px rgba(0,0,0,.07);
}
#main-header.et-fixed-header .mdfr-bar { max-width: 120px; height: 16px; margin-top: 3px; }
.mdfr-bar__text {
	display: block; width: 100%; text-align: center; white-space: nowrap;
	font-family: 'Roboto', Helvetica, Arial, sans-serif; font-weight: 500; font-size: 9.5px; line-height: 19px;
	letter-spacing: .42em; text-indent: .42em; text-transform: uppercase;
	/* letters white over the blue and red stripes, grey over the white one — as on the podcast banner */
	background: linear-gradient(90deg, #fff 0, #fff 33.34%, #8c8c8c 33.34%, #8c8c8c 66.66%, #fff 66.66%, #fff 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
#main-header.et-fixed-header .mdfr-bar__text { font-size: 8px; line-height: 16px; letter-spacing: .36em; text-indent: .36em; }
@media (max-width: 980px) {
	#main-header #logo { max-height: 38px !important; }
	.mdfr-bar { max-width: 152px; height: 17px; margin-top: 3px; }
	.mdfr-bar__text { font-size: 8.5px; line-height: 17px; letter-spacing: .4em; text-indent: .4em; }
}
