/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/

/* Global */
:root {--vh: 100vh;}
body {font-weight: normal;}
::marker {color: #a00000;}
ul ul {list-style: none !important;}
svg {max-width: 100%;}
.et_pb_main_blurb_image {margin-bottom: 0;}
.et_pb_button_alignment_right {text-align: right;}
.et_contact_bottom_container {float: none; justify-content: flex-end; margin-top: 0;}
.et_pb_blurb_0_tb_header {flex-grow: inherit !important;}
.et_pb_blurb_0_tb_header .et_pb_blurb_content {width: auto; margin: 0;}
.et_pb_blurb_0_tb_header .et_pb_main_blurb_image {display: block;}
.et_pb_blurb_3_tb_header {flex-grow: inherit !important;}
.et_pb_blurb_3_tb_header .et_pb_blurb_content {width: auto; margin: 0;}
.et_pb_blurb_3_tb_header .et_pb_main_blurb_image {display: block;}

/* Tableaux */
table {border: none !important;}
table thead th {background: #a00000; color: #fff !important; text-align: center; text-transform: uppercase;}
table tr:nth-child(2n+1) td {background: #f7f7f7;}
table td {border-left: 2px solid #a00000; border-right: 2px solid #a00000; text-align: center;}
table td:first-child {border-left: none;}
table td:last-child {border-right: none;}

/* Articles */
.articles_listing {display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px;}
.articles_listing .article {display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px; background: #f7f7f7; line-height: 17px;}
.articles_listing .article_illustration {max-width: 110px; text-align: center;}
.articles_listing .article_contenu_wrapper {display: flex; justify-content: space-between; align-items: center; flex-grow: 1; width: 100%; padding: 20px 45px 20px 20px; background: #fff; border-left: 5px solid #a00000;}
.articles_listing .article_titre {font-size: 17px;}
.articles_listing .article_numero_page {font-size: 13px;}
.articles_listing .article_edition {margin-top: 15px; font-size: 11px; color: #a00000; text-transform: uppercase;}
.articles_listing .article_lien {width: 25px;}

/* Search form */
.input-search-icon input.et_pb_searchsubmit,
.widget_search input#searchsubmit {z-index: 2; width: 55px; background: transparent; border: none; color: transparent;}
.input-search-icon form input.et_pb_s,
.widget_search form input#s {height: 40px; padding-right: 55px !important;}
.input-search-icon .et_pb_searchform:before,
.widget_search::before {content: '\55'; position: absolute; z-index: 1; right: 0; width: 55px; height: 40px; line-height: 40px; font-family: 'ETModules'; font-size: 20px; color: #a00000; text-align: center;}

/* Menu */
#section_menu {position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; visibility: hidden; transform: translateY(-100%); transition: all 0.5s ease-in-out;}
body.admin-bar #section_menu {top: 32px;}
#section_menu.active {transform: translateY(0); visibility: visible;}
.vertical-menu .et-menu.nav {flex-direction: column; text-align: center;}
.vertical-menu .menu-item {margin: 0 !important;}
.vertical-menu .menu-item a {width: 100%; padding: 15px 0 !important;}
#open_menu .et-pb-icon, #close_menu .et-pb-icon {cursor: pointer;}

/* WPML */
.wpml-ls-legacy-list-vertical {width: 100%;}
.wpml-ls-legacy-list-vertical > ul {padding: 0;}
.wpml-ls-legacy-list-vertical a {font-weight: bold; color: #444;}
.wpml-ls-legacy-list-vertical .wpml-ls-current-language a {color: #a00000;}
#section_menu .wpml-ls-legacy-list-vertical a {color: #fff;}

/* Divers */
.accueil_accroche h1 {font-size: clamp(32px, 3vw, 58px);}

/* Responsive */
@media screen and (max-width: 1400px) {
	.home .et_pb_text_1 br.hide {display: none;}
}

@media screen and (max-width: 980px) {
	.et-l--header .et_pb_menu .et_pb_menu__menu {display: block;}
	.et-l--header .et_pb_menu .et_mobile_nav_menu {display: none;}

	.accueil_accroche h1 {font-size: clamp(24px, 4.5vw, 40px);}

	.articles_listing .article {flex-direction: column;}

	.et-l--footer .et_pb_menu__wrap {justify-content: center;}
	.et-l--footer .et_pb_menu .et_pb_menu__menu {display: block;}
	.et-l--footer .et_pb_menu .et_mobile_nav_menu {display: none;}
}

@media screen and (max-width: 767px) {
	.articles_listing {grid-template-columns: 1fr;}
}

@media screen and (max-width: 479px) {
	.articles_listing .article_contenu_wrapper {padding-right: 20px;}

	.et-l--footer .et_pb_menu__wrap {justify-content: flex-start;}
	.et-l--footer .et_pb_menu .et-menu-nav > ul {flex-direction: column;}
}
