@font-face {
	font-family: 'Sora';
	src: url('../fonts/Sora-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Sora';
	src: url('../fonts/Sora-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Author';
	src: url('../fonts/Author-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Author';
	src: url('../fonts/Author-Medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Author';
	src: url('../fonts/Author-Semibold.otf') format('opentype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Author';
	src: url('../fonts/Author-Bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Technor';
	src: url('../fonts/Technor-Medium.otf') format('opentype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

/*
 * Charte typographique du site (voir doc/elements-typographie.md) :
 * - Sora ExtraBold pour les titres de section (tp-section-title, natif du thème)
 * - Author Regular pour tout le texte courant, y compris les éléments qui
 *   n'ont pas de règle Tailwind explicite (menu, boutons, footer, badges).
 * Ces règles CSS globales évitent d'avoir à retoucher chaque template PHP.
 */
body,
p {
	font-family: 'Author', sans-serif !important;
}

.tp-section-title {
	font-family: 'Sora', sans-serif !important;
	font-weight: 800 !important;
}

.tp-main-menu-content,
.tp-main-menu-content a {
	font-family: 'Author', sans-serif !important;
	font-weight: 600 !important;
}

.fo-card-title {
	font-family: 'Author', sans-serif !important;
	font-weight: 600 !important;
}

.fo-footer-email {
	font-family: 'Author', sans-serif !important;
	font-weight: 600 !important;
}

.fo-site-logo,
.fo-name-font {
	font-family: 'Technor', sans-serif !important;
	font-weight: 500 !important;
}

.tp-hero-2-subtitle {
	font-family: 'Sora', sans-serif !important;
	font-weight: 500 !important;
}

/* Biographie accordion sections (page-biographie.php) — hide the native
   <summary> disclosure triangle since we render our own chevron icon. */
details summary::-webkit-details-marker {
	display: none;
}
details summary {
	list-style: none;
}

/* Hero slider (tp-hero-2-title): the title block must always reserve
   room for 2 lines, so a 1-line vs 2-line caption never shifts the rest
   of the slide layout vertically. */
.tp-hero-2-title {
	min-height: calc(160px * 0.93 * 2);
}
@media only screen and (min-width: 1400px) and (max-width: 1599px), only screen and (min-width: 1200px) and (max-width: 1399px) {
	.tp-hero-2-title {
		min-height: calc(120px * 0.93 * 2);
	}
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
	.tp-hero-2-title {
		min-height: calc(110px * 0.93 * 2);
	}
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
	.tp-hero-2-title {
		min-height: calc(100px * 0.93 * 2);
	}
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
	.tp-hero-2-title {
		min-height: calc(80px * 0.93 * 2);
	}
}
@media (max-width: 575px) {
	.tp-hero-2-title {
		min-height: calc(54px * 0.93 * 2);
	}
}

.tw-scrollbar-none {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tw-scrollbar-none::-webkit-scrollbar {
	display: none;
}

/*
 * Footer (template-parts/footer/footer-1.php) — the layout itself is
 * Tailwind, but widget titles and the nav_menu widget links are rendered
 * by WordPress core (before_title/after_title, wp_nav_menu) so they need
 * their own rules here rather than inline classes.
 */
.fo-footer-col .tp-footer-widget-title {
	font-family: 'Sora', sans-serif;
	font-weight: 800;
	font-size: 17px;
	color: #fff;
	margin: 0 0 18px;
	text-transform: none;
}

.fo-footer-col .tp-footer-widget-content.mb-50,
.fo-footer-col > .mb-50 {
	margin-bottom: 0 !important;
}

.fo-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fo-footer-col ul li {
	margin: 0 0 10px;
	transition: none;
}

.fo-footer-col ul li::after {
	content: none;
}

.fo-footer-col ul li:hover {
	margin-left: 0;
}

.fo-footer-col ul li a {
	color: rgba(255, 255, 255, 0.65);
	font-size: 16px;
	text-decoration: none;
	transition: color 0.2s ease;
}

.fo-footer-col ul li a:hover {
	color: #fff;
}

.fo-footer-col p,
.fo-footer-col span,
.fo-footer-col a {
	font-size: 16px;
}

.fo-footer-col .tw-text-xs {
	font-size: 12px !important;
}

/* Footer background pattern (topographic lines) — light on white in the
   source file, so invert() turns it into faint light lines on the dark
   green footer. Sits behind the portrait watermark and the columns. */
.fo-footer-pattern {
	background-image: url('../img/patterns/footer-pattern.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	opacity: 0.15;
}

/* "Présentation" section (about.php, layout-4) background portrait —
   sits behind the text column, fades out on both edges so it never
   competes with the title/description/button next to it or ends in a
   hard cut on the right. Section background is light here, so no
   invert/luminosity treatment needed. */
.fo-about-watermark {
	opacity: 0.08;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 30%, #000 70%, transparent);
}

/* "Ce qui m'anime" section (includes/activites.php) background pattern —
   source art is black shapes on white; invert() flips it to white shapes
   on black, then low opacity keeps it a subtle texture on the green
   section background instead of a flat black rectangle. */
.fo-activites-pattern {
	background-image: url('../img/patterns/activites-pattern.png');
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	filter: grayscale(1) brightness(3);
	opacity: 0.05;
}
