/*
Theme Name: Juste à côté
Theme URI: https://justeacote68.fr
Description: Theme custom pour le site vitrine de la boutique de créateurs Juste à côté (Ribeauvillé)
Author: Tribu Indigo
Version: 0.2
Text Domain: justeacote
*/

:root {
	/* Charte graphique validée : couleur secondaire encore susceptible de changer (Meghan) */
	--jac-color-primary: #FECC2B;
	--jac-color-secondary: #6496BB;
	--jac-color-bg: #F5F0E6; /* placeholder beige clair, hex exact a confirmer avec Meghan */
	--jac-color-text: #2b2b2b;
	/* Police en attente de décision Meghan : pile systeme neutre en placeholder, un seul point a changer plus tard */
	--jac-font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	font-family: var(--jac-font-base);
	color: var(--jac-color-text);
	background: var(--jac-color-bg);
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.jac-header-inner, .jac-footer-inner, .jac-page, .jac-hero-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1rem 1.25rem;
}
.jac-header { background: #fff; border-bottom: 1px solid #e5ddc8; }
.jac-header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.jac-logo { font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.jac-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.jac-nav a { text-decoration: none; }

.jac-hero { background: var(--jac-color-primary); text-align: center; padding: 3rem 1rem; }

.jac-footer { background: #2b2b2b; color: #fff; margin-top: 3rem; }
.jac-footer a { color: #fff; }

/* Grille Créateurs : dense, 3-4 col desktop / 1-2 col mobile, filtre permanent/temporaire */
.jac-createurs-filtre { display: flex; gap: .75rem; margin: 1.5rem 0; flex-wrap: wrap; }
.jac-createurs-filtre a {
	padding: .4rem 1rem; border-radius: 2rem; border: 1px solid var(--jac-color-secondary);
	text-decoration: none; font-size: .9rem;
}
.jac-createurs-filtre a.is-active { background: var(--jac-color-secondary); color: #fff; }

.jac-createurs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}
@media (max-width: 1024px) { .jac-createurs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .jac-createurs-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
@media (max-width: 480px)  { .jac-createurs-grid { grid-template-columns: 1fr; } }

.jac-tuile { background: #fff; border-radius: .5rem; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.jac-tuile-img { aspect-ratio: 1/1; overflow: hidden; background: #eee; }
.jac-tuile-img img { width: 100%; height: 100%; object-fit: cover; }
.jac-tuile-body { padding: .75rem; }
.jac-tuile-nom { font-weight: 600; margin: 0 0 .25rem; }
.jac-tuile-activite { font-size: .85rem; color: #666; margin: 0; }
.jac-badge { display: inline-block; font-size: .7rem; padding: .15rem .5rem; border-radius: 1rem; margin-top: .4rem; }
.jac-badge-permanent { background: var(--jac-color-primary); color: #2b2b2b; }
.jac-badge-temporaire { background: var(--jac-color-secondary); color: #fff; }

.jac-galerie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 768px) { .jac-galerie-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .jac-galerie-grid { grid-template-columns: 1fr; } }

.jac-map { width: 100%; aspect-ratio: 16/9; border: 0; margin: 1.5rem 0; }

.jac-form label { display: block; margin: 1rem 0 .25rem; font-weight: 600; }
.jac-form input, .jac-form textarea { width: 100%; padding: .6rem; border: 1px solid #ccc; border-radius: .3rem; font-family: inherit; }
.jac-form button { margin-top: 1.5rem; background: var(--jac-color-primary); border: 0; padding: .75rem 2rem; border-radius: .3rem; font-weight: 600; cursor: pointer; }
.jac-form-success { background: #e3f3e3; padding: 1rem; border-radius: .3rem; }

.jac-horaires { width: 100%; max-width: 400px; border-collapse: collapse; margin: 1rem 0; }
.jac-horaires td { padding: .4rem .75rem .4rem 0; border-bottom: 1px solid #e5ddc8; }

/* Header : telephone + hamburger mobile */
.jac-header-tel { text-decoration: none; font-weight: 600; }
.jac-nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; padding: 0 .25rem; }

@media (max-width: 768px) {
	.jac-header-inner { position: relative; }
	.jac-nav-toggle { display: block; order: 3; }
	.jac-nav { order: 4; width: 100%; }
	.jac-nav ul { display: none; flex-direction: column; gap: 0; width: 100%; }
	.jac-nav.is-open ul { display: flex; }
	.jac-nav ul li { border-top: 1px solid #e5ddc8; }
	.jac-nav ul li a { display: block; padding: .75rem 0; }
}

/* Footer */
.jac-footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 1rem; }
.jac-footer-col p { margin: 0; line-height: 1.6; }
.jac-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 1rem; font-size: .85rem; }
.jac-footer-bottom a { text-decoration: underline; }

/* Hero home : immersif, piece maitresse de la page. Image desktop/mobile independantes via variables CSS. */
.jac-hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--jac-color-primary);
	background-image: var(--jac-hero-desktop);
	background-size: cover;
	background-position: center 25%;
	padding: 2rem 1.25rem;
}
.jac-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.4) 100%);
}
.jac-hero-inner { position: relative; z-index: 1; text-align: center; color: #fff; }
.jac-hero h1 { font-size: 3rem; margin: 0 0 .5rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.jac-hero p { font-size: 1.2rem; margin: 0 0 1.5rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
@media (max-width: 768px) {
	.jac-hero { min-height: 60vh; background-image: var(--jac-hero-mobile); background-position: center; }
	.jac-hero h1 { font-size: 2.1rem; }
}

/* Fil d'actu (derniers createurs) : tuiles en scroll horizontal, deborde plutot que de wrapper */
.jac-fil-scroll {
	display: flex;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	padding-bottom: .75rem;
	-webkit-overflow-scrolling: touch;
}
.jac-fil-scroll .jac-tuile { flex: 0 0 240px; scroll-snap-align: start; }
@media (max-width: 480px) { .jac-fil-scroll .jac-tuile { flex-basis: 72vw; } }
.jac-cta {
	display: inline-block; background: #2b2b2b; color: #fff; text-decoration: none;
	padding: .75rem 1.75rem; border-radius: 2rem; font-weight: 600;
}

.jac-presentation { max-width: 700px; text-align: center; }
.jac-derniers-createurs, .jac-instagram, .jac-cta-createur { text-align: center; }
.jac-cta-createur { background: #fff; border-radius: .5rem; padding: 2rem 1.25rem; margin: 3rem auto; max-width: 1100px; }
