/*
Theme Name: 100% Sports
Theme URI: https://instagram.com/100pourcentsportspringy
Author: 100% Sports Pringy
Description: Thème sur mesure pour 100% Sports, l'outlet outdoor de Pringy (Haute-Savoie) depuis 1993 : accueil, atelier, location, magasin et blog. Tous les textes, prix et images se modifient depuis l'éditeur de pages et Apparence › Réglages 100% Sports.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 100-sports
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   Polices (hébergées localement)
   ========================================================================== */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url("assets/fonts/archivo-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url("assets/fonts/archivo-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 100%; font-display: swap; src: url("assets/fonts/archivo-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/hanken-grotesk-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/hanken-grotesk-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Base
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; }
::selection { background: #D9532A; color: #fff; }
a { color: var(--accent, #D9532A); }
a:hover { color: var(--accent-d, #B8451F); }
img { max-width: 100%; }

.s100-site {
	--wood: #5C3D24; --wood-d: #3A2310;
	--cream: #F7F1E5; --cream-2: #EFE5D2; --sand: #E3D5BC;
	--ink: #28201A; --muted: #857866;
	font-family: 'Hanken Grotesk', system-ui, sans-serif;
	color: var(--ink);
	background: var(--cream);
	min-height: 100vh;
	overflow-x: clip;
}

@keyframes heroIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hero-side-photo { display: none !important; } }

/* Apparition au défilement (navigateurs compatibles) */
.s100-reveal { animation: reveal both linear; animation-timeline: view(); animation-range: entry 0% cover 22%; }
.s100-reveal-20 { animation: reveal both linear; animation-timeline: view(); animation-range: entry 0% cover 20%; }
@media (prefers-reduced-motion: reduce) {
	.s100-reveal, .s100-reveal-20 { animation: none; }
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; left: 8px; z-index: 100000; background: #fff; color: var(--ink);
	padding: 10px 16px; border-radius: 8px; font-weight: 700;
}

/* ==========================================================================
   En-tête (rétrécit au défilement)
   ========================================================================== */

.s100-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(247, 241, 229, .82);
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(92, 61, 36, .14);
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: background .35s ease, box-shadow .35s ease;
}
.s100-header.is-scrolled { background: rgba(247, 241, 229, .97); box-shadow: 0 8px 26px rgba(40, 32, 26, .14); }
.admin-bar .s100-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .s100-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .s100-header { top: 0; } }

.s100-header__inner {
	max-width: 1280px; margin: 0 auto; padding: 14px 22px;
	transition: padding .35s cubic-bezier(.2, .8, .2, 1);
}
.s100-header.is-scrolled .s100-header__inner { padding: 7px 22px; }

.s100-header__logo {
	height: 69px; width: 77px; border-radius: 11px;
	box-shadow: 0 4px 14px rgba(217, 83, 42, .28); display: block;
	transition: height .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1);
}
.s100-header.is-scrolled .s100-header__logo { height: 46px; width: 52px; }

/* ==========================================================================
   Survols (équivalents des effets « hover » du site d'origine)
   ========================================================================== */

.hv-nav:hover { background: var(--cream-2) !important; color: var(--accent) !important; }
.hv-green:hover { background: var(--green-d) !important; color: var(--cream) !important; }
.hv-green-lift:hover { background: var(--green-d) !important; color: var(--cream) !important; transform: translateY(-2px) !important; }
.hv-glass:hover { background: rgba(247, 241, 229, .22) !important; color: #fff !important; }
.hv-white:hover { background: #fff !important; }
.hv-sand:hover { background: var(--sand) !important; }
.hv-outline:hover { border-color: var(--accent) !important; background: rgba(92, 61, 36, .04) !important; }
.hv-tier:hover { box-shadow: 0 10px 28px rgba(40, 32, 26, .13) !important; transform: translateY(-3px) !important; border-color: rgba(92, 61, 36, .22) !important; }
.hv-text-white:hover { color: #fff !important; }
.hv-text-accent:hover { color: var(--accent) !important; }
.hv-lift-shadow:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 18px rgba(40, 32, 26, .12) !important; }
.hv-cta:hover { color: #fff !important; transform: translateY(-3px) !important; box-shadow: 0 16px 40px rgba(217, 83, 42, .5) !important; }
.hv-card:hover { transform: translateY(-6px) !important; box-shadow: 0 18px 40px rgba(40, 32, 26, .15) !important; }
.hv-tile:hover { color: #fff; }

/* ==========================================================================
   Éléments interactifs (dépliables, modales)
   ========================================================================== */

[hidden] { display: none !important; }

.s100-modal { position: fixed; inset: 0; z-index: 100; }
body.s100-modal-open { overflow: hidden; }

/* Contenu éditable des pages légales (éditeur de blocs) */
.s100-legal { font-family: 'Hanken Grotesk'; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.s100-legal h2, .s100-legal h3, .s100-legal h4 { font-family: 'Archivo'; font-weight: 800; font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
.s100-legal > :first-child { margin-top: 0; }
.s100-legal p { color: var(--muted); }
.s100-legal p + p { margin-top: 8px; }
.s100-legal p.is-ink { color: var(--ink); }
.s100-legal p.is-gap { margin-top: 12px; }
.s100-legal p.is-note { margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.s100-legal ul, .s100-legal ol { color: var(--muted); padding-left: 1.3em; margin: 8px 0; }
.s100-legal a { color: var(--accent); }

/* Contenu des articles (éditeur de blocs) */
.s100-article-content { display: flex; flex-direction: column; gap: 14px; }
.s100-article-content > * { margin: 0; }
.s100-article-content p, .s100-article-content li { color: var(--ink); opacity: .85; font-size: 15px; line-height: 1.7; }
.s100-article-content h2, .s100-article-content h3, .s100-article-content h4 { font-family: 'Archivo'; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: 8px; }
.s100-article-content h2 { font-size: 22px; }
.s100-article-content h3 { font-size: 18px; }
.s100-article-content ul, .s100-article-content ol { padding-left: 1.3em; }
.s100-article-content img { height: auto; border-radius: 14px; }
.s100-article-content figure { margin: 0; }
.s100-article-content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.s100-article-content blockquote { border-left: 4px solid var(--accent); padding-left: 16px; }

/* Contenu libre (page.php) */
.s100-page-content > * + * { margin-top: 14px; }
.s100-page-content p, .s100-page-content li { font-size: 15.5px; line-height: 1.7; color: var(--ink); }
.s100-page-content h2, .s100-page-content h3 { font-family: 'Archivo'; font-weight: 900; color: var(--ink); letter-spacing: -.5px; margin-top: 28px; }
.s100-page-content h2 { font-size: clamp(24px, 3vw, 32px); }
.s100-page-content h3 { font-size: 20px; }
.s100-page-content ul, .s100-page-content ol { padding-left: 1.3em; }
.s100-page-content img { height: auto; border-radius: 16px; }

/* Pagination du blog */
.s100-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.s100-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid rgba(92, 61, 36, .12); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.s100-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.s100-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* Classes WordPress usuelles */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--muted); }
