/*
Theme Name: Pirouli
Theme URI: https://pirouli.fr
Author: pirouli.fr
Description: Vitrine vintage et humoristique des Piroulis, l'ancienne glace à l'eau des Glaces Givror devenue nom commun par antonomase. One-page pop années 80, 100% CSS/SVG, formulaire via Contact Form 7.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pirouli
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	--fuchsia: #ff2e88;
	--cyan:    #00d2e6;
	--lemon:   #ffd23f;
	--cream:   #fff8ec;
	--ink:     #1b1033;

	--radius:   22px;
	--radius-s: 14px;

	/* Ombres "dures" sans flou = look sticker 80s */
	--shadow:    6px 6px 0 var(--ink);
	--shadow-lg: 10px 10px 0 var(--ink);

	--font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
	--font-text:    "Baloo 2", "Fredoka", system-ui, sans-serif;

	--wrap: 1100px;
}

/* ============================================================
   2. BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
	margin: 0;
	font-family: var(--font-text);
	font-weight: 500;
	color: var(--ink);
	background: var(--cream);
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.6;
	overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 .4em; }

a { color: var(--fuchsia); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img, svg { max-width: 100%; }

:focus-visible {
	outline: 3px dashed var(--fuchsia);
	outline-offset: 3px;
	border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.wrap--narrow { max-width: 720px; }

.pirouli-top-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }

.pirouli-skip {
	position: absolute; left: -999px; top: 0; z-index: 1000;
	background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.pirouli-skip:focus { left: 0; color: #fff; }

/* ============================================================
   3. NAVIGATION COLLANTE
   ============================================================ */
.pirouli-nav {
	position: sticky; top: 0; z-index: 100;
	background: var(--ink);
	border-bottom: 4px solid var(--lemon);
}
.pirouli-nav__inner {
	max-width: var(--wrap); margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px clamp(18px, 5vw, 40px);
	gap: 16px;
}
.pirouli-nav__brand {
	font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
	color: var(--lemon); text-decoration: none; letter-spacing: .5px;
}
.pirouli-nav__ghost-s { opacity: .35; }
.pirouli-nav__menu {
	list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap;
}
.pirouli-nav__menu a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--cream); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.pirouli-nav__menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.pirouli-nav__cta {
	background: var(--fuchsia); color: #fff !important;
}
.pirouli-nav__cta:hover { background: var(--cyan); color: var(--ink) !important; }

.pirouli-nav__burger { display: none; }

/* ============================================================
   4. BOUTONS
   ============================================================ */
.btn {
	display: inline-block; padding: 14px 26px; border-radius: 999px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
	text-decoration: none; border: 3px solid var(--ink);
	box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--primary { background: var(--fuchsia); color: #fff; }
.btn--ghost   { background: var(--lemon); color: var(--ink); }

/* ============================================================
   5. HÉRO
   ============================================================ */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(circle at 80% -10%, rgba(0,210,230,.35), transparent 45%),
		radial-gradient(circle at 0% 110%, rgba(255,46,136,.30), transparent 45%),
		var(--cream);
	padding: clamp(40px, 8vw, 90px) 0 clamp(50px, 9vw, 100px);
}
.hero__inner {
	max-width: var(--wrap); margin: 0 auto;
	padding: 0 clamp(18px, 5vw, 40px);
	display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center;
	position: relative; z-index: 2;
}
.hero__kicker {
	display: inline-block; margin: 0 0 12px;
	background: var(--lemon); color: var(--ink);
	padding: 6px 16px; border-radius: 999px; border: 3px solid var(--ink);
	font-weight: 700; font-size: .85rem; letter-spacing: 1px; text-transform: uppercase;
}
.hero__logo {
	font-size: clamp(3.4rem, 11vw, 7rem); font-weight: 700;
	color: var(--fuchsia);
	text-shadow: 5px 5px 0 var(--ink), 5px 5px 0 var(--ink);
	margin: 0 0 .1em; line-height: .9;
}
.hero__ghost-s { color: var(--cyan); opacity: .5; }
.hero__tagline {
	font-family: var(--font-display); font-weight: 600;
	font-size: clamp(1.2rem, 3.5vw, 1.9rem); margin: 0 0 .5em;
}
.hero__sub { max-width: 46ch; font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero__tubes { display: flex; justify-content: center; gap: 6px; }
.hero__tubes .tube { width: clamp(54px, 9vw, 84px); height: auto; }
.hero__tubes .tube:nth-child(1) { animation: float 4s ease-in-out infinite; }
.hero__tubes .tube:nth-child(2) { animation: float 4s ease-in-out infinite .6s; transform: translateY(18px); }
.hero__tubes .tube:nth-child(3) { animation: float 4s ease-in-out infinite 1.2s; }

@keyframes float { 50% { transform: translateY(-14px); } }

/* Décor Memphis */
.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.blob--1 { width: 120px; height: 120px; background: var(--cyan); top: 12%; left: 6%; opacity: .5; }
.blob--2 { width: 70px; height: 70px; background: var(--fuchsia); bottom: 14%; right: 12%; opacity: .5; }
.zig {
	position: absolute; top: 22%; right: 8%; width: 90px; height: 18px;
	background: repeating-linear-gradient(135deg, var(--lemon) 0 8px, transparent 8px 16px);
	transform: rotate(-8deg);
}
.dots {
	position: absolute; bottom: 8%; left: 10%; width: 110px; height: 60px;
	background-image: radial-gradient(var(--ink) 2.5px, transparent 2.6px);
	background-size: 16px 16px; opacity: .25;
}

/* ============================================================
   6. SECTIONS GÉNÉRIQUES
   ============================================================ */
.section { padding: clamp(50px, 9vw, 96px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--cyan  { background: var(--cyan); }
.section--lemon { background: var(--lemon); }

.section__title {
	font-size: clamp(2rem, 5.5vw, 3.2rem); text-align: center;
	color: var(--ink); margin-bottom: .2em;
}
.section__intro {
	text-align: center; max-width: 60ch; margin: 0 auto clamp(32px, 5vw, 56px);
	font-size: 1.15rem;
}

/* ============================================================
   7. HISTOIRE
   ============================================================ */
.histoire {
	max-width: 760px; margin: 0 auto;
	background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 48px);
}
.histoire__lead { font-size: 1.25rem; font-weight: 600; }
.histoire__quote {
	margin: 28px 0; padding: 20px 24px;
	background: var(--cream); border-left: 8px solid var(--fuchsia); border-radius: var(--radius-s);
	font-style: italic; font-size: 1.1rem;
}
.histoire__quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: .9rem; }
.histoire__wink {
	background: var(--lemon); border: 3px dashed var(--ink); border-radius: var(--radius-s);
	padding: 16px 20px; font-weight: 600;
}
.histoire__sources { font-size: .85rem; opacity: .8; margin-bottom: 0; }

/* Encart « Archives & preuves » */
.preuves {
	margin-top: 28px; background: var(--cream);
	border: 3px solid var(--ink); border-radius: var(--radius-s); padding: 20px 22px;
}
.preuves__intro { margin: 0 0 14px; }
.preuves__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.preuves__list a {
	display: flex; align-items: flex-start; gap: 12px;
	text-decoration: none; color: var(--ink);
	background: #fff; border: 2px solid var(--ink); border-radius: 12px;
	padding: 10px 14px; transition: transform .12s ease, box-shadow .12s ease;
}
.preuves__list a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.preuves__tag {
	flex: 0 0 auto; font-family: var(--font-display); font-weight: 700; font-size: .72rem;
	letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--fuchsia);
	border-radius: 999px; padding: 4px 11px; margin-top: 2px;
}
.preuves__list li:nth-child(2) .preuves__tag { background: var(--cyan); color: var(--ink); }
.preuves__list li:nth-child(3) .preuves__tag { background: var(--ink); }
.preuves__txt { font-size: .96rem; line-height: 1.45; }

/* ============================================================
   8. PARFUMS
   ============================================================ */
.parfums {
	display: grid; gap: 26px;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.card {
	background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 26px 22px 28px; text-align: center;
	border-top: 10px solid var(--card-accent, var(--fuchsia));
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.card__tube { height: 130px; display: flex; justify-content: center; margin-bottom: 14px; }
.card__tube .tube { height: 130px; width: auto; }
.card__title { font-size: 1.35rem; }
.card__emoji { font-size: 1.2em; }
.card__desc { font-size: 1rem; margin: 0; }

/* ============================================================
   9. LEXIQUE
   ============================================================ */
.lexique {
	display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center;
	max-width: 760px; margin: 0 auto;
	background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 40px);
}
.lexique__map { width: 200px; height: auto; }
.lexique__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lexique__legend li { display: flex; align-items: baseline; gap: 10px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); flex: 0 0 auto; transform: translateY(2px); }
.dot--fuchsia { background: var(--fuchsia); }
.dot--cyan    { background: var(--cyan); }
.dot--lemon   { background: var(--lemon); }
.dot--ink     { background: var(--ink); }
.lexique__note {
	max-width: 760px; margin: 28px auto 0; text-align: center;
	background: #fff; border: 3px dashed var(--ink); border-radius: var(--radius-s);
	padding: 16px 22px; font-weight: 500;
}

/* ============================================================
   10. LIVRE D'OR
   ============================================================ */
.temoignages {
	display: grid; gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.quote-card {
	margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 26px 24px;
}
.quote-card blockquote { margin: 0 0 16px; font-size: 1.08rem; font-style: italic; }
.quote-card figcaption { display: flex; flex-direction: column; }
.quote-card figcaption strong { color: var(--fuchsia); }
.quote-card figcaption span { font-size: .9rem; opacity: .75; }
.temoignages__cta { text-align: center; margin-top: 32px; font-size: 1.15rem; font-weight: 600; }

/* ============================================================
   11. CONTACT + Contact Form 7
   ============================================================ */
.contact-box {
	background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 44px);
}
.contact-box .wpcf7 p { margin: 0 0 16px; font-weight: 600; }
.contact-box input[type="text"],
.contact-box input[type="email"],
.contact-box input[type="tel"],
.contact-box textarea,
.contact-box select {
	width: 100%; font: inherit; color: var(--ink);
	padding: 12px 16px; margin-top: 6px;
	background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius-s);
}
.contact-box textarea { min-height: 140px; resize: vertical; }
.contact-box input:focus, .contact-box textarea:focus, .contact-box select:focus {
	outline: none; border-color: var(--fuchsia); box-shadow: 4px 4px 0 var(--fuchsia);
}
.contact-box .wpcf7-submit {
	cursor: pointer; padding: 14px 30px; border-radius: 999px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
	background: var(--fuchsia); color: #fff; border: 3px solid var(--ink);
	box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.contact-box .wpcf7-submit:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.pirouli-form-fallback { text-align: center; font-weight: 600; }
.pirouli-form-fallback__note { font-size: .82rem; opacity: .7; font-weight: 500; }

/* ============================================================
   11b. PARTAGE
   ============================================================ */
.share { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.share__btn {
	display: inline-block; padding: 13px 24px; border-radius: 999px;
	font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
	text-decoration: none; color: #fff; border: 3px solid var(--ink);
	box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.share__btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); color: #fff; }
.share__btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.share__btn--fb   { background: #1877f2; }
.share__btn--x    { background: #1b1033; }
.share__btn--wa   { background: #25d366; color: var(--ink); }
.share__btn--wa:hover { color: var(--ink); }
.share__btn--mail { background: var(--fuchsia); }

/* ============================================================
   12. PIED DE PAGE
   ============================================================ */
.pirouli-footer { background: var(--ink); color: var(--cream); padding: clamp(40px, 7vw, 70px) 0; }
.pirouli-footer__inner { max-width: 760px; margin: 0 auto; padding: 0 24px; text-align: center; }
.pirouli-footer__logo { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--lemon); margin: 0 0 .3em; }
.pirouli-footer__legal { font-size: .92rem; opacity: .85; }
.pirouli-footer__wink { margin-top: 18px; font-weight: 600; }
.pirouli-footer__wink a { color: var(--cyan); }
.pirouli-footer__copy { margin-top: 18px; font-size: .8rem; opacity: .6; }

/* ============================================================
   12b. SOUVENIRS / MASCOTTE LE PETIT INDIEN
   ============================================================ */
.section--indien {
	background:
		radial-gradient(circle at 12% 20%, rgba(0,210,230,.18), transparent 40%),
		radial-gradient(circle at 90% 80%, rgba(255,210,63,.22), transparent 42%),
		#ffeef6;
}
.archive {
	max-width: 520px; margin: 0 auto clamp(36px, 5vw, 52px); text-align: center;
}
.archive__img {
	width: 100%; height: auto; image-rendering: auto;
	background: #fff; border: 4px solid var(--ink); border-radius: 10px;
	box-shadow: var(--shadow-lg); padding: 8px;
	transform: rotate(-1.5deg);
}
.archive figcaption {
	margin-top: 16px; font-size: .95rem; line-height: 1.5;
}
.archive__src { display: block; margin-top: 4px; font-size: .8rem; opacity: .75; }

.mascotte {
	display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 40px; align-items: center;
	max-width: 920px; margin: 0 auto;
}
.mascotte__art { text-align: center; }
.mascotte__svg {
	width: 100%; max-width: 280px;
	filter: drop-shadow(8px 8px 0 rgba(27,16,51,.15));
}
.mascotte__name {
	font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
	color: var(--fuchsia); margin: 8px 0 0;
}
.mascotte__gallery {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.polaroid {
	margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 8px;
	padding: 10px 10px 14px; box-shadow: var(--shadow);
	transform: rotate(-2deg); transition: transform .15s ease;
}
.polaroid:nth-child(even) { transform: rotate(2deg); }
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid__pic {
	display: flex; align-items: center; justify-content: center;
	height: 110px; border-radius: 5px; font-size: 2.6rem;
}
.polaroid__pic--1 { background: var(--lemon); }
.polaroid__pic--2 { background: var(--cyan); }
.polaroid__pic--3 { background: #ffd9a8; }
.polaroid__pic--4 { background: #d9c6ff; }
.polaroid figcaption {
	font-family: var(--font-display); font-weight: 600; text-align: center;
	margin-top: 10px; font-size: .98rem;
}
.mascotte__disclaimer {
	text-align: center; max-width: 60ch; margin: 32px auto 0;
	font-size: .9rem; opacity: .8;
}

/* Carte hexagone : étiquettes de villes */
.lexique__map { width: 220px; height: auto; }
.lexique__pin {
	font-family: var(--font-text); font-weight: 700; font-size: 9px; fill: var(--ink);
	paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; stroke-linejoin: round;
}

/* ============================================================
   12c. LIVRE D'OR — MERCI + FORMULAIRE DE SOUVENIR
   ============================================================ */
.souvenir-merci {
	max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center;
	background: var(--lemon); border: 3px solid var(--ink); border-radius: var(--radius-s);
	box-shadow: var(--shadow); padding: 16px 22px; font-weight: 600;
}
.souvenir-form {
	max-width: 640px; margin: clamp(36px, 5vw, 56px) auto 0;
	background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 40px);
}
.souvenir-form__title { text-align: center; font-size: 1.5rem; }
.souvenir-form__note { font-size: .85rem; opacity: .75; font-weight: 500; }
.souvenir-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.souvenir-form input[type="text"],
.souvenir-form input[type="email"],
.souvenir-form textarea {
	width: 100%; font: inherit; color: var(--ink);
	padding: 12px 16px; margin-bottom: 14px;
	background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius-s);
}
.souvenir-form textarea { min-height: 130px; resize: vertical; }
.souvenir-form input:focus, .souvenir-form textarea:focus {
	outline: none; border-color: var(--fuchsia); box-shadow: 4px 4px 0 var(--fuchsia);
}
.souvenir-form .form-submit { text-align: center; margin: 6px 0 0; }
.souvenir-form .comment-form-cookies-consent { font-size: .85rem; opacity: .8; }
.souvenir-form .comment-form-cookies-consent input { width: auto; margin-right: 8px; }

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
	.hero__inner { grid-template-columns: 1fr; text-align: center; }
	.hero__kicker, .hero__sub { margin-left: auto; margin-right: auto; }
	.hero__actions { justify-content: center; }
	.hero__tubes { margin-top: 20px; }
	.lexique { grid-template-columns: 1fr; justify-items: center; text-align: left; }
	.mascotte { grid-template-columns: 1fr; }

	.pirouli-nav__burger {
		display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px;
	}
	.pirouli-nav__burger span { width: 26px; height: 3px; background: var(--lemon); border-radius: 3px; }
	.pirouli-nav__menu {
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; gap: 2px;
		background: var(--ink); padding: 12px 18px 18px;
		max-height: 0; overflow: hidden; transition: max-height .25s ease;
		border-bottom: 4px solid var(--lemon);
	}
	.pirouli-nav__toggle:checked ~ .pirouli-nav__menu { max-height: 360px; }
	.pirouli-nav__menu a { padding: 12px 14px; }
}

/* ============================================================
   14. PRÉFÉRENCE MOUVEMENT RÉDUIT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
