/*
Theme Name: carnetsdetireurs
Theme URI: https://carnetsdetireurs.fr
Description: Thème enfant de Twenty Twenty-Five pour carnetsdetireurs.fr : bibliothèque collaborative du tir sportif. Palette bleu nuit, vert mousse, beige et or vieilli.
Author: carnetsdetireurs
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carnetsdetireurs
*/

/* Liens : soulignés, accent brun */
a { text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}

/* En-tête */
.ctd-header { border-bottom: 1px solid var(--wp--preset--color--accent-5); background: var(--wp--preset--color--base); }
.ctd-header .wp-block-site-title { white-space: nowrap; }
.ctd-header .wp-block-site-title a { text-decoration: none; }
.ctd-header .wp-block-navigation { font-size: .9rem; font-weight: 500; flex: 1 1 auto; justify-content: flex-end; }
.ctd-header .wp-block-navigation__container { flex-wrap: nowrap; column-gap: .9rem; }
.ctd-header .wp-block-navigation .wp-block-navigation-item a { text-decoration: none; padding: .4rem .2rem; border-bottom: 2px solid transparent; }
.ctd-header .wp-block-navigation .wp-block-navigation-item a:hover { border-bottom-color: var(--wp--preset--color--accent-1); }

/* Bandeau d'accueil */
.ctd-hero {
	position: relative;
	overflow: hidden;
	color: #F6F1E4;
	background:
		url("assets/img/hero-montagnes.svg") center bottom / 100% auto no-repeat,
		linear-gradient(180deg, #1D2A3F 0%, #2F4038 62%, #4A5A3A 100%);
	padding-bottom: clamp(140px, 22vw, 300px) !important;
}
.ctd-hero h1 { color: #F6F1E4; text-wrap: balance; }
.ctd-hero h1 em { color: #E6CD93; font-weight: 400; }
.ctd-hero .ctd-kicker { color: #E6CD93; letter-spacing: .16em; text-transform: uppercase; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.ctd-hero p { color: #E8DFC9; }
.ctd-hero a { color: inherit; }
.ctd-hero .is-style-outline .wp-block-button__link { color: #F6F1E4; border: 1.5px solid #E6CD93; background: transparent; }
.ctd-hero .is-style-outline .wp-block-button__link:hover { background: #E6CD93; color: #1D2A3F; }

/* Liste des rubriques */
.ctd-rubriques { list-style: none; padding: 0; margin: 0; }
.ctd-rubriques li { border-bottom: 1px solid var(--wp--preset--color--accent-5); }
.ctd-rubriques li a {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	padding: 1.1rem 0; text-decoration: none; min-height: 44px;
	font-family: var(--wp--preset--font-family--vollkorn); font-weight: 600;
	font-size: var(--wp--preset--font-size--x-large);
}
.ctd-rubriques li a span { font-family: var(--wp--preset--font-family--manrope); font-weight: 400; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--accent-4); text-align: right; }
.ctd-rubriques li a:hover { color: var(--wp--preset--color--accent-3); }

/* Fiche technique */
.ctd-fiche { border: 1px solid var(--wp--preset--color--accent-5); border-radius: 6px; background: #fff; }
.ctd-fiche table { border-collapse: collapse; width: 100%; }
.ctd-fiche th { text-align: left; width: 34%; font-weight: 600; color: var(--wp--preset--color--accent-3); }
.ctd-fiche th, .ctd-fiche td { padding: .7rem 0; border-top: 1px solid var(--wp--preset--color--accent-5); }

/* Pied de page */
.ctd-footer .wp-block-separator { border-color: #5A6579; color: #5A6579; opacity: 1; }
.ctd-footer a { color: inherit; }
.ctd-footer .wp-block-navigation a { text-decoration: none; }
.ctd-footer .wp-block-navigation a:hover { text-decoration: underline; }

/* Cartes d'articles */
.ctd-articles .wp-block-post-title a { text-decoration: none; }
.ctd-articles .wp-block-post-title a:hover { text-decoration: underline; }

@media (max-width: 781px) {
	.ctd-rubriques li a { flex-direction: column; gap: .15rem; }
	.ctd-rubriques li a span { text-align: left; }
}
