/*
Theme Name: RAISE
Theme URI: https://seabraise.com
Author: Seab
Description: Thème du journal RAISE. Sombre, sobre, dense. À utiliser avec l'extension RAISE.
Version: 1.0.3
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raise
*/

/* Grain discret sur tout le site */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--wp--preset--color--kaki); color: var(--wp--preset--color--noir); }

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--kaki);
	outline-offset: 3px;
}

img { height: auto; }

/* En-tête */
.raise-entete { border-bottom: 1px solid var(--wp--preset--color--ligne); }
.raise-entete .wp-block-site-logo img { max-height: 44px; width: auto; }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--noir) !important; color: var(--wp--preset--color--os) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 2rem; }
.wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--kaki); }
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Libellé sur-titre */
.raise-surtitre {
	font-family: var(--wp--preset--font-family--titre);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--cendre);
}

/* Bouton secondaire */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--os);
	border: 1px solid var(--wp--preset--color--os);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--os);
	color: var(--wp--preset--color--noir);
}

/* Couverture d'accueil */
.raise-hero { border-bottom: 1px solid var(--wp--preset--color--ligne); }
.raise-hero .wp-block-cover__image-background { filter: saturate(0.85); }
.raise-hero h1 { max-width: 14ch; }

/* Liste du journal */
.raise-fil .wp-block-post { border-top: 1px solid var(--wp--preset--color--ligne); padding-top: 1.5rem; }
.raise-fil .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.9); transition: filter .3s; }
.raise-fil .wp-block-post:hover .wp-block-post-featured-image img { filter: saturate(1.05); }
.raise-fil .wp-block-post-title a { text-decoration: none; }
.raise-fil .wp-block-post-title a:hover { color: var(--wp--preset--color--kaki); }

/* Article */
.raise-article .wp-block-post-content > p:first-child::first-line { font-weight: 600; }
.raise-article .wp-block-post-content :where(figure img) { width: 100%; }
.wp-block-post-navigation-link a { text-decoration: none; font-family: var(--wp--preset--font-family--titre); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* Bloc chiffres (motif) */
.raise-chiffres { border-top: 1px solid var(--wp--preset--color--ligne); border-bottom: 1px solid var(--wp--preset--color--ligne); }
.raise-chiffres .raise-chiffre {
	font-family: var(--wp--preset--font-family--titre);
	font-weight: 800;
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1;
	margin: 0;
}
.raise-chiffres .raise-chiffre-legende { margin-top: .4rem; color: var(--wp--preset--color--cendre); font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: .12em; }

/* Pied de page */
.raise-pied { border-top: 1px solid var(--wp--preset--color--ligne); }
.raise-pied a { text-decoration: none; }
.raise-pied .wp-block-social-links .wp-social-link { background: transparent !important; color: var(--wp--preset--color--os) !important; }

/* Pagination */
.wp-block-query-pagination { font-family: var(--wp--preset--font-family--titre); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.wp-block-query-pagination a { text-decoration: none; }

/* Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* Alignement de la couverture sur la grille de l’en-tête */
.raise-hero.wp-block-cover {
	padding-left: var(--wp--style--root--padding-left) !important;
	padding-right: var(--wp--style--root--padding-right) !important;
}
.raise-hero .wp-block-cover__inner-container { max-width: 1240px; margin-inline: auto; width: 100%; }

/* Phrase forte */
.wp-block-pullquote { padding: 0; margin: 0; }
.has-charbon-background-color .wp-block-pullquote p { font-size: var(--wp--preset--font-size--xx-large); line-height: .95; }
.has-charbon-background-color .wp-block-pullquote blockquote { margin: 0; }

/* Piliers du journal */
.raise-piliers { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-family: var(--wp--preset--font-family--titre); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.raise-piliers a { text-decoration: none; color: var(--wp--preset--color--cendre); }
.raise-piliers a:hover, .raise-piliers .current-cat a { color: var(--wp--preset--color--os); }

/* Logo */
.raise-logo { line-height: 0; }
.raise-logo a { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.raise-logo:not(:has(a)) { display: flex; align-items: center; gap: .6rem; }
.raise-logo.aligncenter { justify-content: center; }
.raise-logo.aligncenter a { justify-content: center; }
.raise-logo__svg { display: block; flex: none; }
.raise-logo__nom { font-family: var(--wp--preset--font-family--titre); font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; }
.raise-entete .raise-logo a:hover { color: var(--wp--preset--color--kaki); }

/* Image à la une : hauteur bornée, utile pour les photos verticales */
.raise-article .wp-block-post-featured-image img { max-height: 78vh; width: 100%; object-fit: cover; }
.raise-article .wp-block-post-content .wp-block-pullquote { margin-block: var(--wp--preset--spacing--40); padding-block: var(--wp--preset--spacing--30); }
.raise-article .wp-block-post-content .wp-block-gallery { margin-block: var(--wp--preset--spacing--30); }
