/*
Theme Name: mytec
Theme URI: https://mytec.fr
Description: Thème enfant de Twenty Twenty-Five pour le blog mytec.fr (direction « Clair » : fond gris clair, cartes blanches, barre nuit, sarcelle, Manrope, encadrés « L'essentiel » et « Retour terrain »).
Author: Yves Eberle
Template: twentytwentyfive
Version: 3.1.0
Requires at least: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytec
*/

:root {
	--mytec-ombre: 0 6px 14px -6px rgba(19, 32, 46, 0.10);
	--mytec-rayon: 10px;
}

/* Liens soulignés seulement au survol */
a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* ---------- En-tête : bandeau blanc + barre nuit ---------- */
.mytec-entete {
	background: #FFFFFF;
	border-bottom: 1px solid #E3E7EE;
}
.mytec-entete .wp-block-navigation { font-weight: 600; font-size: 15px; }
.mytec-entete .wp-block-navigation a { color: #3B4558; }
.mytec-entete .wp-block-navigation .current-menu-item > a,
.mytec-entete .wp-block-navigation a[aria-current] { color: #0F766E; }
.mytec-logo img { display: block; width: 121px; height: auto; }
.mytec-barre { background: #13202E; color: #E6ECF2; }
.mytec-barre .wp-block-site-tagline { margin: 0; font-size: 14px; font-weight: 600; color: #E6ECF2; }
.mytec-barre .wp-block-search__inside-wrapper {
	background: #22324A; border: 0; border-radius: 8px; padding: 2px 4px;
}
.mytec-barre .wp-block-search__input {
	background: transparent; border: 0; color: #FFFFFF; font-size: 14px; min-width: 200px;
}
.mytec-barre .wp-block-search__input::placeholder { color: #AEB9C7; }
.mytec-barre .wp-block-search__button {
	background: transparent; color: #AEB9C7; border: 0; padding: 6px 8px; margin: 0;
}

/* ---------- Cartes : article, page, liste d'articles ---------- */
body.single main > .wp-block-group.alignfull,
body.page main > .wp-block-group.alignfull {
	background: #FFFFFF;
	border: 1px solid #E3E7EE;
	border-radius: var(--mytec-rayon);
	box-shadow: var(--mytec-ombre);
	max-width: 960px;
	margin: 40px auto 56px !important;
	padding: 48px clamp(20px, 5vw, 56px) !important;
	box-sizing: border-box;
}
body.single main > .wp-block-group.alignfull .wp-block-post-content,
body.page main > .wp-block-group.alignfull .wp-block-post-content {
	padding-left: 0 !important; padding-right: 0 !important;
}
.wp-block-post-template > li {
	background: #FFFFFF;
	border: 1px solid #E3E7EE;
	border-radius: var(--mytec-rayon);
	box-shadow: var(--mytec-ombre);
	padding: 24px 28px;
}
.mytec-card {
	background: #FFFFFF; border: 1px solid #E3E7EE; border-radius: var(--mytec-rayon);
	box-shadow: var(--mytec-ombre); padding: 24px;
}
.wp-block-post-terms a, .mytec-pill {
	display: inline-block; font-size: 12px; font-weight: 700; color: #0B5A54;
	background: #E6F3F1; border-radius: 6px; padding: 2px 10px;
}

/* ---------- Article à deux lectures ---------- */
.mytec-lecture {
	display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
	text-transform: uppercase; color: #0F766E;
}
p.mytec-lecture.wp-block-paragraph { display: block; }
.is-style-mytec-essentiel {
	background: #F2F8F7;
	border: 1px solid #CFE6E2;
	border-radius: var(--mytec-rayon);
	padding: 24px 28px;
}
.is-style-mytec-essentiel .wp-block-heading { color: #0B5A54; }
.is-style-mytec-reco {
	background: #FDF6EC;
	border: 1px solid #F1DDBE;
	border-radius: var(--mytec-rayon);
	padding: 24px 28px;
}
.is-style-mytec-reco .wp-block-heading { color: #8A4B08; }
.mytec-plus-loin {
	display: flex; align-items: center; gap: 16px;
	margin-block: 2.5rem 1rem;
}
.mytec-plus-loin::before, .mytec-plus-loin::after {
	content: ""; flex: 1; height: 1px; background: #E3E7EE;
}
.is-style-mytec-cta {
	background: #13202E; color: #E6ECF2; border-radius: var(--mytec-rayon);
	padding: 28px; margin-top: 3rem;
}
.is-style-mytec-cta .wp-block-heading { color: #FFFFFF; }
.is-style-mytec-cta a { color: #5EEAD4; font-weight: 700; }
.is-style-mytec-hero { border-bottom: 1px solid #E3E7EE; }

/* Tableaux */
.wp-block-table table { border-collapse: collapse; font-size: 15px; }
.wp-block-table th, .wp-block-table td { border: 1px solid #E3E7EE; padding: 10px 14px; text-align: left; }
.wp-block-table thead { border-bottom: 2px solid #CBD2DC; background: #F4F6F9; }

/* Code en ligne */
:not(pre) > code {
	font-family: var(--wp--preset--font-family--mono); font-size: 0.85em;
	background: #F4F6F9; border: 1px solid #E3E7EE; border-radius: 4px; padding: 1px 6px;
}

/* ---------- Pied de page ---------- */
.mytec-pied { background: #FFFFFF; border-top: 1px solid #E3E7EE; font-size: 14px; color: #5A6478; }
.mytec-pied p { margin: 0; }

/* ---------- Accueil : liste d'articles + colonne latérale ---------- */
.mytec-liste { display: flex; flex-direction: column; gap: 24px; padding: 0; margin: 0; }
.mytec-liste .wp-block-post-title a { color: #1A2233; }
.mytec-liste .wp-block-post-title a:hover { color: #0F766E; }
.mytec-liste .wp-block-post-excerpt { color: #3B4558; }
.mytec-liste .wp-block-post-excerpt__more-link { display: none; }
.mytec-meta { font-size: 14px; color: #5A6478; gap: 6px 16px; }
.mytec-meta > * { margin: 0; }
.mytec-profil { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.mytec-profil p { margin: 0; font-size: 15px; color: #3B4558; }
.mytec-profil-tete { display: flex; align-items: center; gap: 14px; }
.mytec-avatar {
	flex: 0 0 56px; height: 56px; border-radius: 50%; background: #E6F3F1; color: #0F766E;
	display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.mytec-profil .mytec-profil-nom { font-weight: 800; color: #1A2233; font-size: 17px; }
.mytec-profil .mytec-profil-titre { font-size: 14px; color: #5A6478; line-height: 1.4; }
.mytec-bouton-contour {
	display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
	border-radius: 8px; border: 1.5px solid #0F766E; color: #0F766E; font-weight: 700; font-size: 14px;
}
.mytec-bouton-contour:hover { background: #0F766E; color: #FFFFFF; text-decoration: none; }
.mytec-encart-titre { font-size: 17px; margin: 0 0 8px; }
.mytec-encart .wp-block-categories { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mytec-encart .wp-block-categories a {
	display: inline-block; font-size: 13px; font-weight: 700; color: #0B5A54;
	background: #E6F3F1; border-radius: 6px; padding: 6px 12px;
}
