/*
Theme Name: Twenty Eleven MotoMag
Theme URI: https://lesblogs.motomag.com/
Description: Thème enfant de Twenty Eleven pour les blogs de Moto Magazine. Reproduit l'habillage MotoMag d'avant 2026 (bandeau de menu Motomag, titre posé sur l'image d'en-tête, pied de page) sans modifier le thème parent officiel.
Author: IT Expert Services pour Moto Magazine
Template: twentyeleven
Version: 1.0.2
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Update URI: false
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyeleven-motomag
*/

/*
 * Écarts MotoMag réécrits depuis le différentiel relu du Twenty Eleven 1.4
 * modifié (lot 3 du chantier BLG). Le parent est chargé avant cette feuille.
 * Propriétés sans effet de l'ancienne feuille non reprises (voir la note
 * de livraison) : top de #access, display: block-inline.
 * L'ancien emplacement publicitaire (#pubBandeau, 730 x 140) n'est pas repris :
 * les positions du titre et de la description sont remontées de 114 px
 * (hauteur qu'il occupait, mesurée au banc), et de 119 px au téléphone, où le
 * bandeau garde 5 px de marge basse au lieu de 10 : titre et description restent
 * au même endroit de l'image d'en-tête (mesuré en bureau, tablette et téléphone).
 */

/* =Structure
----------------------------------------------- */

body {
	background: #fff;
}

#page {
	margin: 10px auto;
}

/* =Liens
----------------------------------------------- */

a {
	text-decoration: none !important;
}

a:focus,
a:active,
a:hover {
	text-decoration: underline !important;
}

/* =En-tête
----------------------------------------------- */

#branding {
	border-top: 0;
	padding-bottom: 0;
}

#site-title {
	position: absolute;
	top: 46px;
	left: 0;
	z-index: 9999;
	width: 416px;
	height: 150px;
	margin-right: 0;
	padding: 160px 0 0 10px;
}

/* Titre du blog en blanc sur l'image d'en-tête, survol compris
   (remplace l'ancien style en ligne posé sur le lien). */
#branding #site-title a,
#branding #site-title a:hover,
#branding #site-title a:focus,
#branding #site-title a:active {
	color: #fff;
	text-decoration: none !important;
}

/* Indice de focus au clavier sur le titre et sur l'image d'en-tête (1.0.1,
   visa Accessibilité T-1, WCAG 2.4.7) : rien ne change au repos ni à la souris. */
#branding #site-title a:focus-visible {
	text-decoration: underline !important;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#branding > a[rel="home"]:focus-visible img {
	outline: 3px solid #111;
	outline-offset: -3px;
}

#site-description {
	position: absolute;
	top: 256px;
	left: 0;
	z-index: 9999;
	width: 350px;
	height: 30px;
	margin: 0;
	padding: 0 0 0 10px;
	color: #fff;
	font-size: 18px;
}

/* Au zoom (150 et 200 %), la boîte du titre posée sur l'image recouvre les liens du
   bandeau passés à la ligne : elle laisse passer les clics, seul le lien du titre
   les reçoit (1.0.2, visa Correcteur s-3). Rendu inchangé. */
#site-title,
#site-description {
	pointer-events: none;
}

#site-title a {
	pointer-events: auto;
}

/* =Bandeau « Menu Motomag »
----------------------------------------------- */

/* Hauteur : une ligne de liens = 35 px comme avant ; au zoom, la hauteur suit
   les liens passés à la ligne au lieu de les laisser sous l'image d'en-tête
   (1.0.1, visa Accessibilité T-2, WCAG 1.4.4 et 1.4.10). */
#menuMotomag {
	display: block;
	float: left;
	width: 100%;
	height: auto;
	min-height: 35px;
	margin: 0 auto 10px;
	border-bottom: 1px solid #000;
	color: #000;
}

#menuMotomag ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

#menuMotomag li {
	float: left;
	margin-left: 50px;
	list-style: none;
}

#menuMotomag a,
#menuMotomag a:hover,
#menuMotomag a:active {
	float: left;
	padding: 3px;
	background: url(images/background-menu.png) no-repeat 5px 25px;
	color: #111;
	font-size: 15px;
	font-weight: bold;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
}

/* Indice de focus au clavier sur les 7 liens du bandeau (1.0.1, visa
   Accessibilité T-1, WCAG 2.4.7) : rien ne change au repos ni à la souris. */
#menuMotomag a:focus-visible {
	text-decoration: underline !important;
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* =Menu du blog
----------------------------------------------- */

#access {
	border-top: 1px solid #fff;
}

#access a {
	color: #fff;
}

/* =Pied de page
----------------------------------------------- */

#site-generator a.ites-motomag-credit {
	font-weight: normal;
}

/* =Règles du parent rejouées après les écarts
   (dans l'ancienne feuille, elles venaient après les règles modifiées)
----------------------------------------------- */

@media (max-width: 650px) {
	#site-title {
		padding: 5.30625em 0 0;
	}
	#site-description {
		font-size: 12px;
	}
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
	#page {
		margin-top: 0;
	}
}

@media print {
	#site-description {
		font-size: 10pt;
	}
}

/* =Tablette (iPad, largeur d'écran 768 px)
----------------------------------------------- */

@media only screen and (device-width: 768px) {
	#site-title {
		display: block;
		top: 46px;
		width: 416px;
		height: 82px;
		left: 0;
		padding: 120px 0 0 10px;
	}
	#site-title a {
		font-size: 30px;
		font-weight: bold;
		line-height: 36px;
	}
	#site-description {
		top: 196px;
		left: 0;
		width: 350px;
		height: 30px;
		padding: 0 0 0 10px;
		font-size: 16px;
	}
	#menuMotomag li {
		margin-left: 20px;
	}
	#menuMotomag a,
	#menuMotomag a:hover,
	#menuMotomag a:active {
		padding: 5px;
	}
}

/* =Téléphone (écran de 760 px au plus)
----------------------------------------------- */

@media only screen and (max-device-width: 760px) {
	body {
		padding: 0;
		background-color: #000;
	}
	#page {
		width: 760px !important;
		margin-top: 0;
		background-color: #fff;
	}
	#branding {
		border-top: none;
	}
	#site-title {
		display: block;
		top: 131px;
		left: 0;
		width: 350px;
		height: 200px;
		padding: 0 0 0 10px;
	}
	#site-title a {
		font-size: 32px;
		font-weight: bold;
		line-height: 36px;
	}
	#site-description {
		top: 176px;
		left: 0;
		width: 350px;
		height: 30px;
		padding: 0 0 0 10px;
		font-size: 24px;
	}
	#menuMotomag {
		margin: 0 auto 5px;
	}
	#menuMotomag li {
		margin-left: 15px;
	}
	#menuMotomag a,
	#menuMotomag a:hover,
	#menuMotomag a:active {
		padding: 5px;
	}
}
