/*
Theme Name: FormuleHair
Theme URI: https://formulehair.fr
Author: FormuleHair
Description: Le laboratoire des noms de salons de coiffure — générateur de jeux de mots capillaires et annuaire des salons à jeux de mots de France.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: formulehair
*/

/* ---------- Fontes locales ---------- */
@font-face {
	font-family: 'Shrikhand';
	src: url('assets/fonts/shrikhand-latin.woff2') format('woff2');
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Shrikhand';
	src: url('assets/fonts/shrikhand-latin-ext.woff2') format('woff2');
	font-display: swap;
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('assets/fonts/bricolage-latin.woff2') format('woff2');
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('assets/fonts/bricolage-latin-ext.woff2') format('woff2');
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Variables & base ---------- */
:root {
	--creme: #FFF3E2;
	--encre: #23103A;
	--rose: #FF3E8A;
	--bleu: #2E4CFF;
	--jaune: #FFD23F;
	--display: 'Shrikhand', 'Cooper Black', serif;
	--texte: 'Bricolage Grotesque', system-ui, sans-serif;
	--bord: 3px solid var(--encre);
	--ombre: 6px 6px 0 var(--encre);
}

*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--creme);
	color: var(--encre);
	font-family: var(--texte);
	font-size: 1.06rem;
	line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); margin: 0.4em 0; }
h1 em { font-style: normal; color: var(--rose); text-decoration: underline wavy var(--jaune) 0.08em; text-underline-offset: 0.12em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); }

:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--jaune); padding: 0.6em 1em; z-index: 99; }
.skip-link:focus { left: 0; }
.centre { text-align: center; }

/* ---------- Header ---------- */
.site-header {
	display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem;
	align-items: center; justify-content: space-between;
	padding: 0.9rem clamp(1rem, 4vw, 3rem);
	background: var(--creme);
	border-bottom: var(--bord);
}
.logo {
	font-family: var(--display); font-size: 1.7rem;
	color: var(--encre); text-decoration: none;
}
.logo span { color: var(--rose); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; align-items: center; }
.site-nav a { color: var(--encre); font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--rose); }
.nav-cta {
	background: var(--jaune); border: var(--bord); border-radius: 999px;
	padding: 0.35em 1em; box-shadow: 3px 3px 0 var(--encre);
}
.nav-cta:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--encre); color: var(--encre) !important; }

/* ---------- Boutons ---------- */
.btn {
	display: inline-block; cursor: pointer;
	font-family: var(--texte); font-weight: 750; font-size: 1.05rem;
	border: var(--bord); border-radius: 14px;
	padding: 0.75em 1.5em;
	color: var(--encre); text-decoration: none;
	box-shadow: var(--ombre);
	transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--encre); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--encre); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-principal { background: var(--rose); color: #fff; }
.btn-ia { background: var(--bleu); color: #fff; }
.btn-partage { background: var(--jaune); }

/* ---------- Hero + alambic ---------- */
.hero {
	padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem) 3rem;
	max-width: 62rem; margin: 0 auto; text-align: center;
}
.hero-eyebrow {
	display: inline-block; background: var(--encre); color: var(--jaune);
	font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem;
	padding: 0.35em 1em; border-radius: 999px; margin: 0;
}
.hero-sous-titre { max-width: 40rem; margin: 0 auto 2.2rem; }

.alambic { max-width: 46rem; margin: 0 auto; }

/* L'enseigne : l'élément signature. Cadre encre, ampoules en pourtour, nom qui s'allume. */
.enseigne {
	background: var(--encre);
	border: var(--bord); border-radius: 22px;
	box-shadow: var(--ombre);
	padding: clamp(1.8rem, 5vw, 3rem) 1.4rem;
	position: relative;
}
/* Les ampoules du pourtour : bordure pointillée épaisse, simple et fiable. */
.enseigne::before {
	content: ''; position: absolute; inset: 9px;
	border: 7px dotted var(--jaune);
	border-radius: 14px; pointer-events: none;
	opacity: 0.85;
}
.enseigne-nom {
	display: grid;
	place-items: center;
	line-height: 1.15;
	min-height: 2.3em; /* réserve 2 lignes : les boutons ne bougent pas quand le nom passe à la ligne */
	font-family: var(--display);
	font-size: clamp(1.7rem, 6vw, 3.4rem);
	color: var(--jaune);
	text-shadow: 0 0 18px rgba(255, 210, 63, 0.55), 3px 3px 0 var(--rose);
	overflow-wrap: anywhere;
}
@keyframes allumage {
	0% { opacity: 0; } 18% { opacity: 1; } 26% { opacity: 0.25; }
	38% { opacity: 1; } 46% { opacity: 0.4; } 60%, 100% { opacity: 1; }
}
.enseigne-nom.allume { animation: allumage 0.9s steps(1, end); }

.alambic-commandes { margin-top: 1.6rem; text-align: left; }
.alambic-commandes label { font-weight: 700; display: block; margin-bottom: 0.3rem; }
.alambic-commandes input, .formulaire-proposer input[type='text'], .filtres input {
	width: 100%; font: inherit;
	border: var(--bord); border-radius: 12px;
	padding: 0.7em 1em; background: #fff; color: var(--encre);
}
.alambic-boutons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.1rem; }
.alambic-note { min-height: 1.4em; text-align: center; font-weight: 650; color: var(--bleu); }

.apres-nom {
	margin-top: 1.4rem; padding: 1.2rem;
	border: var(--bord); border-radius: 16px;
	background: #fff; box-shadow: var(--ombre);
}
.apres-titre { margin: 0 0 0.7rem; font-weight: 750; }
.apres-liens { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 0.9rem; }
.apres-liens a {
	background: var(--creme); border: 2px solid var(--encre); border-radius: 999px;
	padding: 0.4em 1em; color: var(--encre); font-weight: 650; text-decoration: none;
}
.apres-liens a:hover { background: var(--jaune); }

/* ---------- Carte de France ---------- */
.carte-france {
	height: 70vh; min-height: 24rem;
	margin: 0 clamp(1rem, 4vw, 3rem) 1.5rem;
	border: var(--bord); border-radius: 22px;
	box-shadow: var(--ombre);
	z-index: 0; /* sous le header et les focus */
}
.fh-pin {
	display: grid; place-items: center;
	background: var(--jaune); border: 2px solid var(--encre); border-radius: 50%;
	font-size: 15px; box-shadow: 2px 2px 0 var(--encre);
}
.marker-cluster { background: rgba(255, 62, 138, 0.35) !important; }
.marker-cluster div {
	background: var(--rose) !important; color: #fff !important;
	font-family: var(--texte) !important; font-weight: 750 !important;
	border: 2px solid var(--encre) !important;
}
.leaflet-popup-content-wrapper {
	border: var(--bord); border-radius: 14px;
	box-shadow: var(--ombre); background: var(--creme); color: var(--encre);
}
.leaflet-popup-content { margin: 0.9rem 1.1rem; font-family: var(--texte); }
.fh-popup-nom { display: block; font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.fh-popup-ville { display: block; font-weight: 650; color: var(--rose); margin: 0.15rem 0 0.4rem; }
.fh-popup-lien {
	display: inline-block; font-weight: 700; color: var(--encre);
	background: var(--jaune); border: 2px solid var(--encre); border-radius: 999px;
	padding: 0.2em 0.8em; text-decoration: none;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--encre); }

/* ---------- Ciseaux d'Or (votes) ---------- */
.bloc-vote {
	text-align: center; margin: 2rem 0; padding: 1.4rem;
	border: var(--bord); border-radius: 16px;
	background: #fff; box-shadow: var(--ombre);
}
.compteur-votes { font-weight: 700; margin: 0.8rem 0 0; }
.compteur-votes span { font-family: var(--display); font-size: 1.3rem; color: var(--rose); }
.carte-salon-votes { font-weight: 700; font-size: 0.9rem; }
.grille-podium { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.podium-place { position: relative; }
.podium-medaille {
	position: absolute; top: -1.1rem; left: 50%; transform: translateX(-50%);
	font-size: 1.8rem; z-index: 1;
	filter: drop-shadow(2px 2px 0 var(--encre));
}
.podium-place .carte-salon { padding-top: 1.6rem; text-align: center; }

/* ---------- Premium ---------- */
.badge-premium {
	display: inline-block; background: var(--jaune);
	border: 2px solid var(--encre); border-radius: 999px;
	padding: 0.15em 0.8em; font-size: 0.85rem; font-weight: 750;
}
.badge-premium-fiche { font-size: 1.05rem; box-shadow: 3px 3px 0 var(--encre); }
.carte-premium { background: var(--jaune); }
.carte-premium:hover { background: #fff; }
.tableau-premium { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 2rem 0; }
.offre { border: var(--bord); border-radius: 16px; padding: 1.4rem 1.6rem; background: #fff; box-shadow: var(--ombre); }
.offre ul { list-style: none; padding: 0; margin: 0.8rem 0; }
.offre li { margin: 0.5rem 0; }
.offre-premium { background: var(--creme); border-width: 4px; }

/* ---------- Page éditoriale ---------- */
.page-editoriale .chapo { font-size: 1.15rem; font-weight: 550; }
.page-editoriale h2 { margin-top: 2rem; }

/* ---------- Bande défilante ---------- */
.bande-defilante {
	overflow: hidden; white-space: nowrap;
	border-top: var(--bord); border-bottom: var(--bord);
	background: var(--rose); color: #fff;
	padding: 0.55rem 0;
	font-family: var(--display); font-size: 1.25rem;
}
.bande-contenu { display: inline-block; animation: defile 28s linear infinite; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.bande-contenu { animation: none; }
	.enseigne-nom.allume { animation: none; }
	.btn, .carte-salon { transition: none; }
}

/* ---------- Sections ---------- */
.section-annuaire, .section-proposer, .entete-annuaire {
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
	max-width: 66rem; margin: 0 auto; text-align: center;
}
.section-proposer {
	background: var(--jaune);
	border-top: var(--bord); border-bottom: var(--bord);
	max-width: none;
}
.section-proposer h2, .section-proposer p { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Grille salons ---------- */
.grille-salons {
	display: grid; gap: 1.2rem;
	grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
	margin: 2rem 0; text-align: left;
}
.grille-annuaire { max-width: 66rem; margin: 2rem auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.carte-salon {
	display: flex; flex-direction: column; gap: 0.4rem; justify-content: center;
	min-height: 7.5rem; padding: 1.1rem 1.2rem;
	background: #fff; border: var(--bord); border-radius: 16px;
	box-shadow: var(--ombre); text-decoration: none; color: var(--encre);
	transition: transform 0.08s, box-shadow 0.08s;
}
.carte-salon:hover { transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--encre); background: var(--jaune); }
.carte-salon-nom { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; overflow-wrap: anywhere; }
.carte-salon-ville { font-weight: 650; color: var(--rose); }
.carte-salon:nth-child(3n) .carte-salon-ville { color: var(--bleu); }

/* ---------- Annuaire : filtres ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; align-items: end; margin: 1.5rem 0 1rem; }
.filtres label { font-weight: 700; text-align: left; }
.filtres input { width: min(18rem, 100%); }
.filtres-types { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.filtres-types a {
	border: 2px solid var(--encre); border-radius: 999px;
	padding: 0.25em 0.9em; text-decoration: none; color: var(--encre); font-weight: 650;
}
.filtres-types a[aria-current] { background: var(--encre); color: var(--creme); }

/* ---------- Salon du jour (accueil) ---------- */
.salon-du-jour {
	max-width: 46rem; margin: 0 auto; text-align: center;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 1rem;
}
.salon-du-jour .enseigne { margin-top: 1.2rem; }
.salon-du-jour-infos { max-width: 36rem; margin: 1.2rem auto; }
.salon-du-jour .centre { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Partage réseaux ---------- */
.bloc-partage { text-align: center; margin: 2rem 0; }
.partage-reseaux {
	display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
	margin: 1rem 0;
}
.partage-reseaux a, .partage-reseaux button {
	font: inherit; font-weight: 700; cursor: pointer;
	background: #fff; color: var(--encre); text-decoration: none;
	border: 2px solid var(--encre); border-radius: 999px;
	padding: 0.45em 1.1em;
	box-shadow: 3px 3px 0 var(--encre);
	transition: transform 0.08s, box-shadow 0.08s;
}
.partage-reseaux a:hover, .partage-reseaux button:hover {
	transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--encre); background: var(--jaune);
}
.partage-reseaux small { font-weight: 500; opacity: 0.7; }

/* ---------- Encart recrutement (fiche salon) ---------- */
.encart-recrutement {
	margin-top: 2.5rem; padding: 1.2rem 1.5rem;
	background: var(--jaune); border: var(--bord); border-radius: 16px;
	box-shadow: var(--ombre);
}
.encart-recrutement a { color: var(--encre); font-weight: 750; }

/* ---------- Fiche salon ---------- */
.fiche-salon { max-width: 46rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.enseigne-fiche { text-align: center; }
.fiche-infos { margin: 1.8rem 0; }
.fiche-explication { font-size: 1.15rem; }
.photo-rue { margin: 1.8rem 0; text-align: center; }
.photo-rue img {
	display: block; width: 100%; max-height: 24rem; object-fit: cover;
	border: var(--bord); border-radius: 16px; box-shadow: var(--ombre);
}
.photo-rue figcaption { margin-top: 0.5rem; font-size: 0.85rem; opacity: 0.75; }
.fiche-lieu, .fiche-types { font-weight: 650; }
.fiche-lieux {
	margin: 1.8rem 0; padding: 1.3rem 1.5rem;
	background: #fff; border: var(--bord); border-radius: 16px;
	box-shadow: var(--ombre);
}
.liste-lieux { margin: 0.6rem 0 0; padding-left: 1.2rem; columns: 2 18rem; column-gap: 2rem; }
.liste-lieux li { margin: 0.3rem 0; break-inside: avoid; }
.fiche-coordonnees {
	display: grid; gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	margin: 1.8rem 0; padding: 1.3rem 1.5rem;
	background: #fff; border: var(--bord); border-radius: 16px;
	box-shadow: var(--ombre);
}
.fiche-coordonnees dt { font-weight: 750; margin-bottom: 0.2rem; }
.fiche-coordonnees dd { margin: 0; overflow-wrap: anywhere; }
.fiche-salon .centre { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Formulaire proposer + pages ---------- */
.page-etroite { max-width: 42rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
.formulaire-proposer label { font-weight: 700; display: block; margin-bottom: 0.3rem; }
.formulaire-proposer p { margin: 1.1rem 0; }
.champ-piege { position: absolute !important; left: -9999px !important; }
.message { border: var(--bord); border-radius: 12px; padding: 0.9em 1.2em; font-weight: 700; box-shadow: var(--ombre); }
.message-ok { background: var(--jaune); }
.message-erreur { background: var(--rose); color: #fff; }

/* ---------- Pagination ---------- */
.pagination { text-align: center; margin: 2rem 0; }
.page-numbers {
	display: inline-block; min-width: 2.2em; padding: 0.35em 0.6em; margin: 0 0.15em;
	border: 2px solid var(--encre); border-radius: 10px;
	text-decoration: none; color: var(--encre); font-weight: 700; background: #fff;
}
.page-numbers.current { background: var(--encre); color: var(--creme); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--encre); color: var(--creme);
	text-align: center;
	padding: 2.5rem clamp(1rem, 4vw, 3rem) 2rem;
	border-top: 6px solid var(--rose);
}
.footer-logo { font-family: var(--display); font-size: 1.6rem; color: var(--jaune); margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin: 1rem 0; }
.site-footer a { color: var(--jaune); }
.footer-mini { opacity: 0.7; font-size: 0.9rem; }
