/*
Theme Name: Ohmy26
Theme URI: https://ohmybox.info/
Author: Laurence Dierickx (@ohmyshambles)
Author URI: https://ohmybox.info/
Description: Thème du site OhMyBox.info — grille d'articles, pages, recherche et page « À propos / Review ».
Version: 26.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ohmybox
*/

/* =========================================================
   Polices
   ========================================================= */
@font-face {
	font-family: Helvetica;
	src: url(assets/fonts/helvetica.woff2) format("woff2");
	font-display: swap;
}
@font-face {
	font-family: Roboto;
	src: url(assets/fonts/roboto-regular.woff2) format("woff2");
	font-display: swap;
}

/* =========================================================
   Animations (extrait d'animate.css 3.5.2 — seules celles utilisées)
   ========================================================= */
.animated { animation-duration: 1s; animation-fill-mode: both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInRight { from { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
.fadeIn { animation-name: fadeIn; }
.fadeInRight { animation-name: fadeInRight; }
.fadeInUp { animation-name: fadeInUp; }

/* =========================================================
   Base
   ========================================================= */
html { margin: 0; }
body { background: #FFFFFF; font-size: 1em; overflow-x: hidden; color: #1D1A39; font-family: "Helvetica", sans-serif; }
a .btn { color: #FFFFFF !important; }
.search-no-results { background: #FFFFFF url('assets/images/locker.jpg') no-repeat center center !important; background-size: cover !important; text-align: center; max-height: 100vh; overflow-y: hidden; }
a, .burgermenu { transition: all 0.4s linear 0s !important; }
img a { border: none; text-decoration: none; }
::selection { background: #EFEFEF; color: #1D1A39; text-shadow: none; }
iframe { width: 100%; border: 1px solid #F8F8F8; }
#prev a { position: fixed; left: 15px; top: 225px; font-size: 22px; color: #dedede; transition: all 0.4s linear 0s !important; }
#next a { position: fixed; right: 60px; top: 225px; font-size: 22px; color: #dedede; }
#prev a:hover, #next a:hover { color: #CC0033; }
.btn { border-radius: 2px; transition: all 0.4s linear 0s !important; background: #1D1A39; border: none; padding: 12px 16px; margin: 30px 0; font-size: 15px; }
li { transition: all 0.4s linear 0s !important; }
.btn:hover { background: #036286; color: #FFFFFF; }
a button, button a { color: #FFFFFF; }
a:hover { text-decoration: none !important; }
code { width: 70%; margin: 0 auto; color: #666666; font-size: 1.2em; }
#infscr-loading { float: none; z-index: 100; text-align: center; position: absolute; bottom: -40px; width: 100%; margin: 20px auto !important; }
#plus { margin: 50px 0; text-align: center; }
.grid { padding-bottom: 70px; }
hr { border-top: 1px solid #666; }
h1 { font-family: Arial, sans-serif; font-weight: bold; }
img { height: auto; max-width: 100%; }

/* =========================================================
   Barre de navigation
   ========================================================= */
.container { width: 90%; padding: 0; max-width: 1400px; font-size: 17px; }
.decal { float: none; margin-top: 85px; }
.navbar-inverse { background: #FFFFFF !important; border: none; box-shadow: 0 1px 1px rgba(1, 1, 1, 0.16); padding-top: 0; position: fixed; width: 100%; top: 0; z-index: 99999; }
.navbar-inverse .navbar-brand { color: #036286; padding: 0; max-width: 200px; margin-left: -20px !important; }
.navbar > .container .navbar-brand { margin-left: -15px !important; float: left; font-family: 'Arial', sans-serif; font-size: 19px; text-transform: uppercase; font-weight: bold; }
.navbar-brand span { margin-top: 18px; float: left; }
a.navbar-brand { text-decoration: none !important; color: #036286 !important; transition: all 0.4s linear 0s !important; }
.navbar-brand:hover { opacity: 0.8; }
.navbar-header { padding-left: 15px; }
.en { float: right; text-align: right; }
#navbar { position: absolute; top: 0; right: 0; }
#navbar ul { list-style-type: none; display: inline !important; }
#navbar li { font-size: 26px !important; display: inline-block !important; padding: 9px 14px 4px 14px !important; margin: 0 !important; border-right: 1px solid #EFEFEF; background: inherit; }
#navbar li a { color: #1D1A39; text-decoration: none; transition: all 0.4s linear 0s !important; border: none !important; border-right: 1px solid #EFEFEF; margin: 0 !important; padding: 0 !important; }
#navbar li:hover, #navbar li a:hover, #navbar li a:active, #navbar li a:focus { color: #036286; margin: 0 !important; padding: 0 !important; }
#navbar li:hover { color: #036286; background: #EDEDED; padding: 9px 14px 4px 14px !important; }
.navright { top: 50px; position: fixed; width: 100%; display: none; z-index: 99999; background: #036286 !important; color: #FFFFFF; padding: 0; }
.navright { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.navright .container { padding: 18px 0; margin: 0 auto; }
.search-bar { display: flex; align-items: center; gap: 14px; margin: 0; width: 100%; }
.search-bar__icon { font-size: 22px; opacity: 0.75; }
.search-bar .field { flex: 1; min-width: 0; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.5); border-radius: 0; background: transparent; color: #FFFFFF; font-size: 1.4em; padding: 6px 2px; outline: none; transition: border-color 0.3s; }
.search-bar .field::placeholder { color: rgba(255, 255, 255, 0.65); }
.search-bar .field:focus { border-bottom-color: #FFFFFF; }
.search-bar .field::-webkit-search-cancel-button { filter: invert(1); cursor: pointer; }
.search-bar__submit { margin: 0; padding: 10px 22px; background: #1D1A39 !important; color: #FFFFFF; font-weight: bold; letter-spacing: 0.05em; }
.search-bar__submit:hover, .search-bar__submit:focus { background: #57BDCB !important; color: #FFFFFF; }
.burgermenu { cursor: pointer; text-align: center; font-size: 28px; color: #1D1A39; }
.burgermenu:hover { opacity: 0.7 !important; color: #036286; }
.headbar { position: relative; }
#lateral { position: fixed; top: 0; right: -300px; height: 100vh; padding: 15px 25px 25px 25px; background: #efefef; width: 300px; z-index: 2147483647; }
.burgerclose { text-align: right; font-size: 28px; font-weight: bold; font-family: "Arial", sans-serif; cursor: pointer; color: #15344D; }
.burgerclose:hover { opacity: 0.7; }
#lateral ul { list-style-type: none; padding: 0; margin: 15px 0 0 0; overflow-y: auto; }
#lateral li { font-size: 21px; margin-bottom: 22px; font-family: "Roboto", sans-serif; }
#lateral li a { color: #15344D; }
#lateral li a:hover { text-decoration: underline !important; }
#lateral hr { border-top: 1px solid #FFFFFF; }
.btn a { color: white !important; text-decoration: none !important; }
.admin-bar #top { top: 32px; }
.admin-bar .navright { top: 82px; }

/* =========================================================
   Articles et pages
   ========================================================= */
.container a:hover { color: #036286; text-decoration: none; transition: all 0.4s linear 0s !important; }
.container a { color: #1D1A39; text-decoration: underline; }
.h4, h4 { font-size: 22px; line-height: 1.3; color: #434343 !important; }
.container h3 { font-size: 1.4em; font-weight: normal !important; line-height: 110%; margin: 50px 0 30px 0; font-family: 'Arial', sans-serif; }
h5 { font-size: 20px; }
.tagslist { margin-top: 40px; color: #036286; font-family: "Roboto", sans-serif; }
.fa-twitter { background: #2CA8D2; color: #FFFFFF; padding: 10px 12px; transition: all 0.4s linear 0s !important; }
.fa-facebook-f { background: #305891; color: #FFFFFF; padding: 10px 17px; transition: all 0.4s linear 0s !important; }
.fa-linkedin-in { background: #4498C8; color: #FFFFFF; padding: 10px 14px; transition: all 0.4s linear 0s !important; }
.fa-twitter:hover, .fa-facebook-f:hover, .fa-linkedin-in:hover { opacity: 0.6 !important; }
.networks { margin: 25px 0; text-align: center; font-size: 0.8em !important; }
.networks a { text-decoration: none; margin: 0 3px; }
.networks .fab { border-radius: 200px; }
.alignright { float: right; padding-left: 5%; }
img.aligncenter, img.size-full { width: 100%; margin: 24px 0; height: auto; max-width: 100%; }

h2 { margin: 50px 0 30px 0; }
embed, object { width: 666px; height: 500px; }

/* =========================================================
   Page « Review / À propos »
   ========================================================= */
.apropos .mainarticle { padding-bottom: 80px; }
.review-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 10px; font-size: 15px; }
.review-links a, .review-mail { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid #DADADA; border-radius: 20px; text-decoration: none !important; color: #1D1A39; }
.review-links a:hover { border-color: #036286; color: #036286; }
.review-mail { border-style: dashed; color: #666; }
.review-nav { position: sticky; top: 55px; z-index: 5; display: flex; gap: 8px; margin: 30px 0 10px; padding: 10px 0; background: #FFFFFF; border-bottom: 1px solid #E5E5E5; font-size: 15px; }
.admin-bar .review-nav { top: 87px; }
.review-nav a { padding: 6px 14px; border-radius: 4px; background: #EFEFEF; color: #1D1A39; text-decoration: none !important; font-weight: bold; }
.review-nav a:hover { background: #036286; color: #FFFFFF; }
.review-section { scroll-margin-top: 120px; margin-top: 40px; }
.review-title { margin: 0 0 24px; padding-bottom: 10px; border-bottom: 3px solid #036286; color: #036286; font-family: Arial, sans-serif; font-size: 1.35em; font-weight: bold; }
.review-title small { color: #888; font-weight: normal; font-size: 0.75em; }
.review-title .fa { margin-right: 6px; }
.review-section--press .review-title { border-bottom-color: #3BA5BB; color: #1F7F93; }
.review-section ul { margin: 0; padding: 0; }
.mainarticle .review-section li { list-style: none; margin-left: 0; }

/* Publications, groupées par année */
.pub-year { display: grid; grid-template-columns: 110px 1fr; gap: 0 24px; padding: 18px 0; border-top: 1px solid #EFEFEF; }
.pub-year:first-of-type { border-top: none; padding-top: 0; }
.review-section .pub-year__label { position: sticky; top: 125px; align-self: start; margin: 6px 0 0; padding: 0; color: #036286; font-family: Arial, sans-serif; font-size: 1.3em; font-weight: bold !important; }
.pub-list { font-size: 0.85em; line-height: 1.4; }
.pub-list li { padding: 9px 0 11px; border-bottom: 1px dotted #DADADA; }
.pub-list li:last-child { border-bottom: none; }
.pub-venue { display: block; margin-bottom: 3px; color: #666; font-size: 0.78em; letter-spacing: 0.04em; text-transform: uppercase; }
.review-section .container a, .review-section li a { color: #1D1A39; text-decoration: none; font-weight: bold; background-image: linear-gradient(#036286, #036286); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: all 0.3s !important; }
.review-section li a:hover { color: #036286; background-size: 100% 1px; }
.pub-extra { color: #888; font-size: 0.9em; }

/* Revue de presse, en cartes */
.press-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 0.82em; line-height: 1.4; }
.press-list li { padding: 12px 16px; background: #F6F7F8; border-left: 3px solid #3BA5BB; }
.press-list li:hover { background: #EEF6F8; }
.press-meta { display: block; margin-bottom: 4px; color: #666; font-size: 0.85em; }
.press-meta strong { color: #1F7F93; }
.press-meta a { font-weight: normal; }

.tagslist a { text-decoration: none; text-align: center; color: #036286; transition: all 0.4s linear 0s !important; }
.tagslist a:hover { opacity: 0.8; }
blockquote { line-height: 120%; color: #036286; margin: 50px 0; font-size: 1.2em; width: 83%; padding-left: 50px; }
.post-password-form { min-height: 220px; }
.post-password-form > p:nth-child(2) > input:nth-child(2) { background: #39ADB3; color: #FFFFFF; border: none; padding: 4px 19px !important; height: 42px; }
.post-password-form > p:nth-child(2) > input:nth-child(2):hover { background: #CC0033; }
.post-password-form > p { margin: 40px 0 50px 0; font-size: 1.8em; color: #808080; }
.post-password-form > p:nth-child(2) { font-size: 1.2em; color: #222222; }
.container.animate { max-width: 51%; font-size: 1.3em; float: none; margin: 0 auto; }
.topics h5 a, .topics h5 { color: #1D1A39; text-decoration: none; font-weight: bold; font-size: 1.1em; padding: 10px 10px 15px 0; text-align: left; font-family: 'Helvetica', sans-serif !important; }
.topics a:hover { opacity: 0.8; }
.well p { margin-bottom: 0 !important; }
.une h1 a { text-decoration: none; font-size: 0.69em; line-height: 90% !important; }
.une .titrecontent { line-height: 84%; margin-top: 5px; text-align: center; font-family: 'Arial', sans-serif; font-weight: bold; }
.fa-search { cursor: pointer; }
.mainarticle { margin-top: 90px; font-size: 20px; color: #1D1A39; }
.page .mainarticle { margin-top: 30px; }
#topmain { text-align: center; margin-bottom: 20px; font-size: 2.7em; font-family: 'Arial', sans-serif; font-weight: bold; }
.well { border: none; background: #EFEFEF; margin: 30px 0; padding: 25px; }
.col-md-6 { padding: 0; }
#toparticle { font-size: 130%; padding: 100px 0; background: #1D1A39; margin-top: 55px; text-align: center; height: auto !important; }
#toparticle h1 { font-size: 42px; font-weight: 700; color: #FFFFFF !important; }
#topdiv { margin: 30px 0; font-size: 15px; color: #FFFFFF !important; }
#topdiv p { font-size: 17px; margin: 0; }
#toparticle .networks { margin-bottom: 0 !important; }
table { width: 100% !important; }
.mainarticle li { margin-left: 20px; list-style-type: square; }
.row-flush { margin-left: 0; margin-right: 0; }

/* Références (catégorie 100) : même largeur que les pages */
.ref-content { margin: 50px auto; font-size: 1.15em; line-height: 1.6; }

/* =========================================================
   Catégories, grille
   ========================================================= */
.catframe { font-size: 19px; }
.col-md-4 h1 a { text-decoration: none; }
.col-md-4 img { width: 100%; height: auto; border: 1px solid #EFEFEF; }
.col-md-4 { min-height: 180px; margin-bottom: 26px; }
.col-md-4 .btn { display: none; }
.clear { clear: both; }
.btn-success { background-color: #036286; border: none; color: #FFFFFF; }
.btn-success:hover, .btn-success:focus, .btn-success:active { color: #FFFFFF; background: #44BEC4 !important; }
.titrecontent { font-size: 26px; line-height: 105%; margin-top: 6px; }
.archive-title { margin: 0 0 20px 0; font-size: 1.2em; color: #23547C; text-align: center; text-transform: uppercase; }
.archive-title.is-tag { margin: 0 0 1rem 0; }

/* =========================================================
   Barre de progression, légendes, retour en haut
   ========================================================= */
#progression { position: fixed; display: none; top: 0; height: 4px; width: 100%; background: #EFEFEF; z-index: 99999; transition: all 0.3s ease; }
#barre { position: absolute; top: 0; background-color: #036286; width: 1%; height: 100%; transition: all 0.3s; }
.wp-caption { background: #fff; max-width: 100%; padding: 0; text-align: center; }
.wp-caption-text { margin-bottom: 20px; font-size: 12px; color: #696969; margin-top: -20px; }
.topics a { text-decoration: none; }
#up { position: fixed; display: none; text-align: center; z-index: 99999999; color: #CDCDCD; width: 40px; height: 38px; line-height: 38px; right: 2px; bottom: 8px; padding-top: 2px; transition: all 0.5s ease-in-out; font-size: 36px; cursor: pointer; }
#up:hover { color: #036286; }

/* Ancres sous la barre fixe */
h4 { padding-top: 70px; margin-top: -70px; }

/* Articles liés */
.related { margin: 30px auto; float: none; }
.container a img:hover { background-color: #036286 !important; }
.une { border: 1px dotted #CDCDCD; padding: 15px 15px 0 15px; margin-bottom: 0; z-index: 10; overflow: hidden; }
.row { margin-top: 20px; }
.wp-post-image { width: 100%; max-width: 100%; z-index: 10; transition: all .3s ease-out; backface-visibility: hidden; margin: 0; border: 0; }
.wp-post-image:hover { transform: scale(1.1); margin-top: -5px; margin-bottom: 6px; }
#latest h3 { color: #036286; font-weight: bold; }
#latest h5 { font-size: 16px; font-weight: bold; }
#latest { margin-bottom: 30px; }
.topics img { aspect-ratio: 3 / 2; object-fit: cover; } /* vignettes liées de même hauteur */
.container > .row.grid { margin-left: 0; margin-right: 0; } /* grille alignée sur le bandeau */
.apropos img { max-width: 100px; }
.apropos p { padding-right: 30px; }
.apropos h1 { margin-top: 0 !important; }
.well h3, .well h2, .well h4 { margin-top: 0; }

/* Pages d'erreur / recherche vide */
.container.error-page { margin-top: 50px; padding: 160px 0; color: #FFFFFF; text-align: center; }
.error-page .cell { height: 42vh; display: flex; align-items: center; justify-content: center; }
.error-page h1 { font-weight: bold !important; font-size: 3em !important; text-align: center; }
.no-result h1 { text-align: center; }
.error-page h1 span, .no-result h1 span { padding: 10px; display: inline-block; background: #47A6C5; }
body.error404 { background: #FFFFFF url('assets/images/locker.jpg') no-repeat center center !important; background-size: cover !important; text-align: center; max-height: 100vh; overflow-y: hidden; }
html:has(> body.error404) { background: #FFFFFF url('assets/images/locker.jpg') no-repeat center center !important; background-size: cover !important; max-height: 100vh; overflow-y: hidden; }
.no-result { padding: 160px 0; color: #FFFFFF; margin: 0 auto; }
.no-result .cell { height: 32vh; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   Responsive
   ========================================================= */
@media screen and (min-width: 1700px) {
	.container.animate { width: 60%; max-width: 1000px !important; }
}
@media screen and (max-width: 1024px) {
	.container.animate { max-width: 80%; }
	.mainarticle { font-size: 19px; color: #1D1A39; }
}
@media screen and (max-width: 1010px) {
	.container { width: 96% !important; padding: 0; }
	.container img { width: 100%; height: auto; }
	#infscr-loading img { max-width: 60px; height: auto; }
	.titrecontent, .une .titrecontent, h1.titrecontent, .topics { width: 100% !important; }
	h5, .titrecontent, #latest h5 { font-size: 28px !important; padding-bottom: 8px; line-height: 1.1 !important; }
	#prev, #next { display: none; }
}
@media screen and (max-width: 989px) {
	.apropos p { padding-right: 0; }
	.alignright, .alignleft, .size-full, .wp-caption, .col-md-4 img, article img { max-width: 100%; width: 100% !important; height: auto; margin: 0 0 14px 0 !important; padding: 0 !important; float: left !important; }
	#plus img, .view_txt img { width: 32px !important; }
	.apropos { margin-bottom: 30px; }
	#toparticle { height: auto !important; }
}
@media screen and (max-width: 769px) {
	.container.animate { max-width: 100%; }
	.content ul { padding: 0 !important; margin: 0 !important; }
	.container { padding: 0 15px; width: 100%; }
	#prev a, #next a { display: none; }
	.navbar-brand { margin-left: -10px !important; left: 10px !important; }
	.mainarticle ul { margin: 0; padding: 0; }
	.well h3, .well h2, .well h4 { font-size: 20px !important; }
	.well { font-size: 1em; }
	h5, .titrecontent, #latest h5 { font-size: 22px !important; }
	/* Ajustements mobile */
	.mainarticle { margin-top: 40px; }
	blockquote { width: 100%; padding-left: 20px; margin: 30px 0; }
	.pub-year { grid-template-columns: 1fr; }
	.review-section .pub-year__label { position: static; margin: 0 0 6px; }
	.press-list { grid-template-columns: 1fr; }
	.review-nav { top: 50px; }
	#latest .topics { width: 50% !important; padding: 0 8px; }
	#latest h5 { font-size: 16px !important; }
	.navright .container { padding: 12px 15px; }
	.search-bar { gap: 10px; }
	.search-bar__icon { display: none; }
	.search-bar .field { font-size: 1.15em; }
	.search-bar__submit { padding: 9px 14px; }
}
@media screen and (max-width: 660px) {
	.titrecontent, .une .titrecontent, h1.titrecontent { font-size: 22px !important; }
	#topmain { font-size: 2.2em; }
	.une h1 a { font-size: 20px !important; line-height: 140% !important; }
}
@media screen and (max-width: 320px) {
	#topmain { font-size: 1.6em; }
}
