/*
Theme Name: Foundry
Theme URI: https://thepluginfoundry.com/
Author: The Plugin Foundry
Description: Le thème de thepluginfoundry.com. Deux extensions, une page de prix, un espace client. Rien d'autre.
Version: 1.0.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: foundry
*/

:root {
	--cream: #F8F4E6;
	--paper: #FFFDF6;
	--ink: #141D21;
	--ink-soft: #4A5358;
	--rust: #D87A47;
	--rust-deep: #B85E2E;
	--line: #E4DCC6;
	--navy: #0F2546;
	--serif: "Newsreader", Georgia, serif;
	--sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--wrap: 1120px;
	--radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font: 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 10; }

/* Bandeau mode test */
.testbar { background: var(--ink); color: var(--cream); font: 13px/1.5 var(--mono); text-align: center; padding: 6px 16px; }
.testbar strong { color: var(--rust); }

/* En-tête */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.brand img { display: block; width: 150px; }
.nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav .current-menu-item a { text-decoration: underline; text-decoration-color: var(--rust); }

/* Boutons */
.button, .fstore-buy button, button.button {
	display: inline-block; font: 600 15px/1 var(--sans); padding: 14px 20px; border-radius: 999px;
	background: var(--ink); color: var(--cream); border: 2px solid var(--ink); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.button:hover, .fstore-buy button:hover { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; transform: translateY(-1px); }
.button-ghost { background: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.button-rust { background: var(--rust); border-color: var(--rust); color: var(--ink); }
button.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
.fstore-buy { margin: 0; }

/* Accueil */
.hero { padding: 88px 0 72px; }
.hero .kicker { font: 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--rust-deep); margin-bottom: 20px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--rust-deep); }
.hero .lede { font-size: 1.25rem; max-width: 40rem; color: var(--ink-soft); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.rule { height: 3px; width: 64px; background: var(--rust); margin: 0 0 24px; border: 0; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section .intro { max-width: 42rem; color: var(--ink-soft); margin-bottom: 36px; }

.plugins { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.plugin {
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
	display: flex; flex-direction: column; gap: 12px; position: relative;
}
.plugin .logo { height: 64px; display: flex; align-items: center; }
.plugin .logo img { max-height: 64px; width: auto; }
.plugin .tags { display: flex; gap: 8px; }
.tag { font: 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--ink); }
.tag-free { background: var(--cream); }
.tag-pro { background: var(--rust); border-color: var(--rust); }
.plugin p { color: var(--ink-soft); }
.plugin .aside { font-family: var(--serif); font-style: italic; color: var(--ink); border-left: 3px solid var(--rust); padding-left: 12px; }
.plugin .more { margin-top: auto; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.principles h3 { font-size: 1.2rem; }
.principles p { color: var(--ink-soft); font-size: .98rem; }
.principles .n { font: 13px/1 var(--mono); color: var(--rust-deep); display: block; margin-bottom: 10px; }

/* Prix */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--rust); }
.plan .name { font: 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.plan .price { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.plan .price small { font: 14px var(--sans); color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 4px 0 12px; font-size: .95rem; color: var(--ink-soft); }
.plan li { padding: 4px 0 4px 20px; position: relative; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--rust-deep); }
.plan .fstore-buy { margin-top: auto; }
.plan .fstore-buy button { width: 100%; }
.plan .ribbon { font: 12px/1 var(--mono); background: var(--ink); color: var(--cream); align-self: flex-start; padding: 5px 8px; border-radius: 4px; }
.pricing-note { margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }
.notice-box { background: var(--paper); border: 1px dashed var(--rust); padding: 14px 18px; border-radius: var(--radius); margin: 0 0 24px; }

/* Comparaison */
.compare { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--cream); }
.table-scroll { overflow-x: auto; }

/* Liste de fonctions */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; list-style: none; padding: 0; margin: 0; }
.features li strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.features li span { color: var(--ink-soft); font-size: .96rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-family: var(--serif); font-size: 1.25rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--rust-deep); }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); max-width: 44rem; }

/* Pages ordinaires */
.page-head { padding: 64px 0 24px; }
.content { max-width: 44rem; padding-bottom: 72px; }
.content h2 { margin-top: 1.6em; font-size: 1.7rem; }
.content ul { padding-left: 1.2em; }

/* Boutique : merci, compte */
.fstore-license { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 20px; }
.fstore-license h3 { margin-bottom: 8px; }
.fstore-plan { font: 13px var(--mono); color: var(--ink-soft); }
.fstore-test { font: 11px/1 var(--mono); background: #fcf0c3; padding: 3px 6px; border-radius: 4px; vertical-align: middle; }
.fstore-key code { display: inline-block; font-size: 1.15rem; background: var(--cream); border: 1px dashed var(--ink); padding: 10px 14px; border-radius: 6px; user-select: all; word-break: break-all; }
.fstore-lead { font-family: var(--serif); font-size: 1.3rem; }
.fstore-facts { display: flex; gap: 8px 20px; flex-wrap: wrap; list-style: none; padding: 0; color: var(--ink-soft); font-size: .95rem; }
.fstore-sites { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
.fstore-sites th, .fstore-sites td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.fstore-login label { display: block; font-weight: 600; margin-bottom: 8px; }
.fstore-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fstore-row input { flex: 1 1 240px; font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.fstore-small { font-size: .88rem; color: var(--ink-soft); margin-top: 10px; }
.fstore-note { background: var(--paper); border-left: 3px solid var(--rust); padding: 10px 14px; }
.fstore-who { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 20px; }
.fstore-inline { display: inline; }
.alert { background: #fbe0e0; border-left: 3px solid #8a1f1f; padding: 10px 14px; margin: 16px 0; }

/* Pied */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .92rem; color: var(--ink-soft); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot ul { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0; flex-wrap: wrap; }
.site-foot .fine { font-family: var(--mono); font-size: 12px; }

@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.hero { padding: 56px 0 48px; }
	.section { padding: 52px 0; }
	.plugin { padding: 24px; }
	.brand img { width: 124px; }
	.nav ul { gap: 14px; }
}
