/*
Theme Name: Pizzamour Diner
Theme URI: https://www.pizzamour.fr/
Author: Pizzamour
Description: Thème léger et sur mesure pour la pizzeria Pizzamour à Appoigny, dans l'esprit des diners américains des années 50. Carte des pizzas gérée depuis l'administration (menu « Carte »), coordonnées et horaires dans Apparence › Personnaliser › Pizzamour.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pizzamour-diner
*/

/* ---------- Polices (hébergées localement, aucun appel externe) ---------- */
@font-face { font-family: "Pacifico"; src: url("assets/fonts/pacifico-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("assets/fonts/bebas-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/nunito-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("assets/fonts/nunito-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Palette ---------- */
:root {
	--rouge: #d7263d;
	--rouge-fonce: #a3162b;
	--menthe: #7fd6cc;
	--menthe-fonce: #2f9e93;
	--creme: #fff4e0;
	--creme-fonce: #f3e2c2;
	--noir: #161616;
	--chrome: #d9dde3;
	--moutarde: #f2b134;
	--texte: #2a2420;
	--damier: repeating-conic-gradient(var(--noir) 0 25%, #fff 0 50%) 0 0 / 28px 28px;
	--ombre: 0 10px 30px rgba(0, 0, 0, .18);
	--rayon: 18px;
	--largeur: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--texte);
	background:
		radial-gradient(circle at 12% 18%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 46px 46px,
		var(--menthe);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rouge); }
a:hover { color: var(--rouge-fonce); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }
.conteneur { width: min(var(--largeur), 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .04em; line-height: 1.05; color: var(--noir); margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.7rem; }
.script { font-family: "Pacifico", cursive; font-weight: 400; letter-spacing: 0; }

/* ---------- Bandeau supérieur ---------- */
.bandeau-infos { background: var(--noir); color: #fff; font-size: .9rem; }
.bandeau-infos .conteneur { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.bandeau-infos a { color: var(--moutarde); text-decoration: none; font-weight: 800; letter-spacing: .03em; }
.pastille-ouvert { display: inline-flex; align-items: center; gap: 8px; }
.pastille-ouvert::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.pastille-ouvert.ferme::before { background: #ff5a5a; box-shadow: 0 0 8px #ff5a5a; }

/* ---------- En-tête ---------- */
.site-header { background: var(--rouge); position: relative; box-shadow: inset 0 -6px 0 var(--rouge-fonce); }
.site-header .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.site-branding a { text-decoration: none; display: block; }
.site-branding img { max-height: 92px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.logo-texte { font-family: "Pacifico", cursive; color: #fff; font-size: 2.6rem; line-height: 1; text-shadow: 3px 3px 0 var(--rouge-fonce), 0 0 18px rgba(255,255,255,.35); }
.logo-texte span { color: var(--moutarde); }
.bordure-damier { height: 28px; background: var(--damier); border-block: 4px solid var(--chrome); }

.nav-principale ul { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; background: linear-gradient(#fafbfc, var(--chrome)); border-radius: 999px; box-shadow: inset 0 2px 0 #fff, 0 4px 0 rgba(0,0,0,.18); }
.nav-principale a { display: block; padding: 8px 18px; border-radius: 999px; text-decoration: none; color: var(--noir); font-family: "Bebas Neue", sans-serif; font-size: 1.35rem; letter-spacing: .06em; }
.nav-principale a:hover, .nav-principale .current-menu-item > a, .nav-principale .current_page_item > a { background: var(--noir); color: #fff; }
.nav-principale ul ul { display: none; }
.menu-bascule { display: none; }
.menu-bouton { display: none; cursor: pointer; background: #fff; color: var(--noir); border-radius: 999px; padding: 8px 18px; font-family: "Bebas Neue", sans-serif; font-size: 1.3rem; letter-spacing: .06em; box-shadow: 0 4px 0 rgba(0,0,0,.2); }

/* ---------- Héros (accueil) ---------- */
.heros { position: relative; padding: 70px 0 90px; text-align: center; overflow: hidden; }
.heros::before, .heros::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 22px solid rgba(255,255,255,.28); }
.heros::before { left: -150px; top: -120px; }
.heros::after { right: -140px; bottom: -170px; border-color: rgba(215,38,61,.15); }
.enseigne { position: relative; z-index: 1; display: inline-block; background: var(--noir); border-radius: 28px; padding: 28px 46px 34px; border: 8px solid var(--chrome); box-shadow: var(--ombre), inset 0 0 0 3px #555; }
.enseigne .neon { font-family: "Pacifico", cursive; font-size: clamp(3rem, 9vw, 5.8rem); line-height: 1.15; color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px #ff4d6d, 0 0 26px #ff2850, 0 0 46px #ff2850; margin: 0; }
.enseigne .sous-neon { font-family: "Bebas Neue", sans-serif; font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .32em; color: var(--menthe); text-shadow: 0 0 10px rgba(127,214,204,.9); margin: 4px 0 0; }
.heros .accroche { position: relative; z-index: 1; max-width: 640px; margin: 30px auto 0; font-size: 1.15rem; font-weight: 700; color: var(--noir); }
.boutons { position: relative; z-index: 1; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.bouton { display: inline-block; padding: 13px 28px; border-radius: 999px; font-family: "Bebas Neue", sans-serif; font-size: 1.45rem; letter-spacing: .07em; text-decoration: none; background: var(--rouge); color: #fff; box-shadow: 0 5px 0 var(--rouge-fonce); transition: transform .12s, box-shadow .12s; }
.bouton:hover { color: #fff; transform: translateY(2px); box-shadow: 0 3px 0 var(--rouge-fonce); }
.bouton.secondaire { background: #fff; color: var(--noir); box-shadow: 0 5px 0 #9aa1aa; }
.bouton.secondaire:hover { color: var(--noir); box-shadow: 0 3px 0 #9aa1aa; }

/* ---------- Contenu ---------- */
.site-main { padding: 0 0 70px; }
.carte-papier { background: var(--creme); border-radius: var(--rayon); box-shadow: var(--ombre); padding: clamp(26px, 5vw, 56px); position: relative; border: 3px solid var(--noir); outline: 6px solid var(--creme); outline-offset: -12px; }
.titre-page { text-align: center; padding: 46px 0 34px; }
.titre-page h1 { margin: 0; display: inline-block; background: var(--rouge); color: #fff; padding: 10px 34px 6px; border-radius: 12px; box-shadow: 0 6px 0 var(--rouge-fonce); transform: rotate(-1.5deg); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { color: var(--rouge); border-bottom: 3px dashed var(--rouge); padding-bottom: 4px; }

/* Vignettes rubriques (accueil) */
.rubriques { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin: 34px 0 0; }
.rubrique { background: #fff; border: 3px solid var(--noir); border-radius: var(--rayon); padding: 26px 22px; text-align: center; text-decoration: none; color: var(--texte); box-shadow: 0 6px 0 var(--noir); transition: transform .15s; }
.rubrique:hover { transform: translateY(-4px) rotate(-.6deg); color: var(--texte); }
.rubrique .pictogramme { width: 74px; height: 74px; margin: 0 auto 10px; }
.rubrique h3 { margin: 0 0 6px; color: var(--rouge); }
.rubrique p { margin: 0; font-size: .95rem; }

/* ---------- Carte des plats ---------- */
.carte-rubrique { margin: 0 0 46px; }
.carte-rubrique > h2 { text-align: center; border: 0; margin: 0 0 6px; }
.carte-rubrique > h2 .script { display: block; font-size: .55em; color: var(--menthe-fonce); letter-spacing: 0; margin-bottom: -4px; }
.carte-intro { text-align: center; font-style: italic; margin: 0 0 18px; }
.carte-liste { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 46px; }
.plat { padding: 12px 0; border-bottom: 2px dotted rgba(0,0,0,.18); }
.plat-ligne { display: flex; align-items: baseline; gap: 10px; }
.plat-nom { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; letter-spacing: .04em; color: var(--noir); }
.plat-points { flex: 1; border-bottom: 3px dotted var(--rouge); transform: translateY(-6px); opacity: .55; }
.plat-prix { font-family: "Bebas Neue", sans-serif; font-size: 1.5rem; color: #fff; background: var(--rouge); border-radius: 999px; padding: 0 12px; line-height: 1.5; white-space: nowrap; }
.plat-description { margin: 2px 0 0; font-size: .95rem; color: #5b524a; }
.plat.vedette { grid-column: 1 / -1; background: #fff; border: 3px solid var(--moutarde); border-radius: var(--rayon); padding: 16px 22px; position: relative; }
.plat.vedette::before { content: "La maison"; position: absolute; top: -14px; left: 20px; background: var(--moutarde); color: var(--noir); font-family: "Bebas Neue", sans-serif; letter-spacing: .1em; padding: 0 12px; border-radius: 999px; }
.sommaire-carte { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.sommaire-carte a { display: block; padding: 6px 16px; border-radius: 999px; background: var(--noir); color: #fff; text-decoration: none; font-family: "Bebas Neue", sans-serif; font-size: 1.2rem; letter-spacing: .06em; }
.sommaire-carte a:hover { background: var(--rouge); color: #fff; }

/* ---------- Horaires ---------- */
.horaires { list-style: none; margin: 0; padding: 0; }
.horaires li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.25); }
.horaires li:last-child { border: 0; }
.horaires .jour { font-weight: 800; }
.horaires .aujourdhui { color: var(--moutarde); }

/* ---------- Bloc infos (accueil / contact) ---------- */
.infos-pratiques { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; margin-top: 46px; }
.panneau { border-radius: var(--rayon); padding: 30px; box-shadow: var(--ombre); }
.panneau h2 { margin-top: 0; }
.panneau.noir { background: var(--noir); color: #fff; border: 6px solid var(--chrome); }
.panneau.noir h2 { color: var(--moutarde); border: 0; }
.panneau.rouge { background: var(--rouge); color: #fff; }
.panneau.rouge h2 { color: #fff; border: 0; }
.panneau.rouge a { color: #fff; }
.grand-tel { font-family: "Bebas Neue", sans-serif; font-size: 2.6rem; letter-spacing: .05em; text-decoration: none; display: inline-block; margin: 4px 0 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--noir); color: #e9e9e9; }
.site-footer .conteneur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 48px 0 30px; }
.site-footer h2 { color: #fff; font-size: 1.7rem; margin: 0 0 10px; border: 0; }
.site-footer a { color: var(--menthe); }
.site-footer .logo-texte { font-size: 2.2rem; }
.mentions { border-top: 1px solid #333; text-align: center; font-size: .85rem; padding: 14px 0; color: #9a9a9a; }
.mentions a { color: #bdbdbd; }

/* ---------- Blocs WordPress ---------- */
.wp-block-button__link { border-radius: 999px; background: var(--rouge); font-family: "Bebas Neue", sans-serif; font-size: 1.35rem; letter-spacing: .06em; }
.alignwide { max-width: none; }
.wp-block-image img { border-radius: var(--rayon); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.site-header .conteneur { flex-wrap: wrap; }
	.menu-bouton { display: inline-block; }
	.nav-principale { width: 100%; display: none; }
	.menu-bascule:checked ~ .nav-principale { display: block; }
	.nav-principale ul { flex-direction: column; border-radius: var(--rayon); }
	.carte-liste { grid-template-columns: 1fr; }
	.infos-pratiques, .site-footer .conteneur { grid-template-columns: 1fr; }
	.bandeau-infos .conteneur { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Horaires dans une page claire */
.entry-content .horaires li { border-bottom-color: rgba(0,0,0,.15); }
.entry-content .horaires .aujourdhui { color: var(--rouge); }
.entry-content .grand-tel { color: var(--rouge); }
.panneau.rouge { display: flex; flex-direction: column; justify-content: center; }
.panneau.rouge .bouton.secondaire { color: var(--noir); }

/* ---------- Voitures, route et éclats années 50 ---------- */
.heros { padding-bottom: 0; }
.eclat { position: absolute; width: 70px; height: 70px; opacity: .9; z-index: 0; }
.heros .e1 { left: 9%; top: 60px; }
.heros .e2 { right: 11%; top: 40px; width: 90px; height: 90px; }
.heros .e3 { right: 20%; top: 300px; width: 44px; height: 44px; }
.heros .e4 { left: 17%; top: 290px; width: 52px; height: 52px; opacity: .7; }
.route { position: relative; margin-top: 34px; }
.route-voitures { display: flex; justify-content: center; gap: 6%; position: relative; z-index: 1; margin-bottom: -26px; }
.route-heros .voiture { width: min(560px, 86vw); animation: pz-arrivee 1.4s cubic-bezier(.2,.7,.3,1) both; }
.route-bitume { height: 64px; background:
	linear-gradient(90deg, var(--moutarde) 0 50%, transparent 0) 0 30px / 70px 6px repeat-x,
	#3a3a3a; border-top: 6px solid var(--chrome); }
.route-heros + * { margin-top: 0; }
.route-pied { margin-top: 0; }
.route-pied .route-voitures { justify-content: space-between; padding-inline: 6%; }
.route-pied .voiture { width: min(260px, 40vw); }
.route-pied .voiture:first-child { transform: scaleX(-1); }
.route-pied .route-bitume { height: 46px; background-position: 0 20px, 0 0; }
.titre-page { position: relative; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.voiture-titre { width: 190px; height: auto; transform: scaleX(-1); }
.eclat-titre { position: static; width: 54px; height: 54px; }
.site-main .heros + .conteneur { margin-top: 46px; }
@keyframes pz-arrivee { from { transform: translateX(-70vw); } to { transform: none; } }
@media (max-width: 860px) {
	.heros .e3, .heros .e4, .voiture-titre, .eclat-titre { display: none; }
	.route-pied .voiture:last-child { display: none; }
	.route-pied .route-voitures { justify-content: center; }
}

/* ---------- v1.2 : scène illustrée, comptoir, textures ---------- */
body {
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"),
		radial-gradient(circle at 50% 50%, rgba(255,255,255,.35) 0 1.6px, transparent 2.4px) 0 0 / 22px 22px,
		var(--menthe);
}
.heros-scene { position: relative; background: #1f1e25; }
.scene-diner { display: block; width: 100%; height: clamp(360px, 46vw, 660px); }
.scintille { animation: pz-scintille 2.6s ease-in-out infinite; transform-box: fill-box; }
.ampoule { animation: pz-ampoule 1.35s steps(2) infinite; }
.neon-texte, .open-texte { animation: pz-neon 6s infinite; }
.voiture-scene { overflow: visible; }
.bandeau-accroche { background: var(--rouge); color: #fff; border-top: 6px solid var(--chrome); border-bottom: 6px solid var(--rouge-fonce); position: relative; }
.bandeau-accroche::after { content: ""; position: absolute; left: 0; right: 0; bottom: -34px; height: 28px; background: var(--damier); border-bottom: 4px solid var(--chrome); }
.bandeau-accroche .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 26px 0; }
@media (max-width: 1100px) { .bandeau-accroche .conteneur { flex-wrap: wrap; justify-content: center; } }
.bandeau-accroche .accroche { margin: 0; max-width: 540px; font-size: 1.12rem; font-weight: 700; color: #fff; text-align: left; }
.bandeau-accroche .accroche .script { display: block; font-size: 2rem; color: var(--moutarde); line-height: 1.2; text-shadow: 2px 2px 0 var(--rouge-fonce); }
.bandeau-accroche .boutons { margin: 0; }
.bandeau-accroche .bouton { background: var(--noir); box-shadow: 0 5px 0 #000; }
.bandeau-accroche .bouton.secondaire { background: #fff; color: var(--noir); box-shadow: 0 5px 0 #9aa1aa; }
.heros-scene + .conteneur { margin-top: 84px !important; }

.carte-papier { background: linear-gradient(180deg, #fffaf0, var(--creme) 40%, #fbedd2); }
.rubrique { background: linear-gradient(#fff, #fff 70%, #fdf6e8); position: relative; overflow: hidden; }
.rubrique::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--rouge) 0 14px, #fff 14px 28px); }
.panneau.noir { background: linear-gradient(160deg, #2a2a2e, var(--noir) 60%); }
.panneau.rouge { background: linear-gradient(160deg, #e8475b, var(--rouge) 55%, var(--rouge-fonce)); }

.comptoir svg { display: block; width: 100%; height: clamp(150px, 17vw, 250px); }

@keyframes pz-scintille { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pz-ampoule { 0% { opacity: 1; } 100% { opacity: .35; } }
@keyframes pz-neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .35; } }
@media (max-width: 860px) {
	.bandeau-accroche .accroche { text-align: center; }
	.bandeau-accroche .conteneur { justify-content: center; }
	.scene-diner { height: 270px; }
}
@media (prefers-reduced-motion: reduce) { .scintille, .ampoule, .neon-texte, .open-texte, .route-heros .voiture { animation: none !important; } }
